- Timestamp:
- Feb 26, 2024, 5:58:03 PM (9 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/bin/Mods/TFP_WebServer/webroot/static/js/main.e01f51c2.js
r484 r485 1 /*! For license information please see main. 31badb24.js.LICENSE.txt */2 !function(){var e={1167:function(e,t,n){"use strict";function o(e){return null==e||""===e?null:e}function r(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function i(e){return!r(e)}function s(e){return null==e||0===e.length}function a(e){return null!=e&&"function"===typeof e.toString?e.toString():null}function l(e){if(void 0!==e){if(null===e||""===e)return null;if("number"===typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function u(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"===typeof e?e:/true/i.test(e))}function c(e,t,n){void 0===n&&(n=!1);var o=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&r)return 0;if(o)return-1;if(r)return 1;function i(e,t){return e>t?1:e<t?-1:0}if("string"!==typeof e)return i(e,t);if(!n)return i(e,t);try{return e.localeCompare(t)}catch(s){return i(e,t)}}function p(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.values(e)}Object.defineProperty(t,"__esModule",{value:!0});var d=Object.freeze({makeNull:o,exists:r,missing:i,missingOrEmpty:s,toStringOrNull:a,attrToNumber:l,attrToBoolean:u,attrToString:function(e){if(null!=e&&""!==e)return e},referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:c,values:p}),h=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=a(e);for(var n=0;;){var o=void 0;if(e?(o=e,0!==n&&(o+="_"+n)):t?(o=t,0!==n&&(o+="_"+n)):o=""+n,!this.existingKeys[o])return this.existingKeys[o]=!0,o;n++}},e}();function f(e,t){null!=e&&(Array.isArray(e)?e.forEach((function(e,n){return t(""+n,e)})):Object.keys(e).forEach((function(n){return t(n,e[n])})))}function g(e){for(var t={},n=Object.keys(e),o=0;o<n.length;o++){var r=n[o],i=e[r];t[r]=i}return t}function m(e,t){if(e){var n=e,o={};return Object.keys(n).forEach((function(e){if(!(t&&t.indexOf(e)>=0)){var r=n[e],i=R(r)&&r.constructor===Object;o[e]=i?m(r):r}})),o}}function v(e,t){return e[t]}function y(e,t,n){e[t]=n}function C(e,t,n,o){var r=v(e,n);void 0!==r&&y(t,n,o?o(r):r)}function w(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)}function _(e){if(!e)return[];var t=Object;if("function"===typeof t.values)return t.values(e);var n=[];for(var o in e)e.hasOwnProperty(o)&&e.propertyIsEnumerable(o)&&n.push(e[o]);return n}function b(e,t,n,o){void 0===n&&(n=!0),void 0===o&&(o=!1),r(t)&&f(t,(function(t,r){var i=e[t];if(i!==r){if(o)if(null==i&&null!=r)"object"===typeof r&&r.constructor===Object&&(i={},e[t]=i);R(r)&&R(i)&&!Array.isArray(i)?b(i,r,n,o):(n||void 0!==r)&&(e[t]=r)}}))}function E(e,t,n){if(t&&e){if(!n)return e[t];for(var o=t.split("."),r=e,i=0;i<o.length;i++){if(null==r)return;r=r[o[i]]}return r}}function S(e,t){Object.keys(e).forEach((function(t){"object"===typeof e[t]&&(e[t]=void 0)}));var n=Object.getPrototypeOf(e),o={};Object.keys(n).forEach((function(e){if("function"===typeof n[e]){o[e]={value:function(){console.warn("AG Grid: "+t+" function "+e+"() cannot be called as the grid has been destroyed.\n Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n be keeping the API reference, your application has a memory leak! Remove the API reference\n when the grid is destroyed.")},writable:!0}}})),Object.defineProperties(e,o)}function R(e){return"object"===typeof e&&null!==e}var O=Object.freeze({iterateObject:f,cloneObject:g,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneDefinition:m,getProperty:v,setProperty:y,copyPropertiesIfPresent:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];n.forEach((function(n){return C(e,t,n)}))},copyPropertyIfPresent:C,getAllKeysInObjects:w,getAllValuesInObject:_,mergeDeep:b,missingOrEmptyObject:function(e){return i(e)||0===Object.keys(e).length},get:function(e,t,n){if(null==e)return n;for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return n;var i=r[o[0]];return null!=i?i:n},set:function(e,t,n){if(null!=e){for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return;r[o[0]]=n}},deepFreeze:function e(t){return Object.freeze(t),p(t).forEach((function(t){(R(t)||"function"===typeof t)&&e(t)})),t},getValueUsingField:E,removeAllReferences:S,isNonNullObject:R}),P=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,T=/([^\s,]+)/g,A={};function D(e,t){A[t]||(e(),A[t]=!0)}function x(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function N(e){return!!(e&&e.constructor&&e.call&&e.apply)}function L(e){k(e,400)}var I=[],M=!1;function F(e){I.push(e),M||(M=!0,window.setTimeout((function(){var e=I.slice();I.length=0,M=!1,e.forEach((function(e){return e()}))}),0))}function k(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function G(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,a=n&&!o;window.clearTimeout(o),o=window.setTimeout((function(){o=null,n||e.apply(s,r)}),t),a&&e.apply(s,r)}}function H(e,t){var n=0;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=this,s=(new Date).getTime();s-n<t||(n=s,e.apply(i,o))}}function W(e,t,n,o){void 0===n&&(n=100);var r=(new Date).getTime(),i=null,s=!1,a=function(){var a=(new Date).getTime()-r>n;(e()||a)&&(t(),s=!0,null!=i&&(window.clearInterval(i),i=null),a&&o&&console.warn(o))};a(),s||(i=window.setInterval(a,10))}function V(e){e&&e()}var j=Object.freeze({doOnce:D,getFunctionName:x,getFunctionParameters:function(e){var t=e.toString().replace(P,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(T)||[]},isFunction:N,executeInAWhile:L,executeNextVMTurn:F,executeAfter:k,debounce:G,throttle:H,waitUntil:W,compose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},callIfPresent:V}),B=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return p(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),r(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),f(this.beanWrappers,(function(t,n){var o;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(o=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var r=e.getBeansForParameters(o,n.bean.name),i=function(e,t){var n=[null].concat(t);return new(e.bind.apply(e,n))}(n.bean,r);n.beanInstance=i}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var n=void 0;return n=e.prototype.constructor?x(e.prototype.constructor):""+e,void console.error("Context item "+n+" is not a bean")}var o={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=o},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){var r=n.agClassAttributes;r&&r.forEach((function(n){var r=t.lookupBeanInstance(o,n.beanName,n.optional);e[n.attributeName]=r}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){f(n.autowireMethods,(function(n,r){if("agConstructor"!==n){var i=t.getBeansForParameters(r,o);e[n].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var o=n.constructor;if(o.hasOwnProperty("__agBeanMetaData"))t(o.__agBeanMetaData,this.getBeanName(o));n=Object.getPrototypeOf(n)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var n=this,o=[];return e&&f(e,(function(e,r){var i=n.lookupBeanInstance(t,r);o[Number(e)]=i})),o},e.prototype.lookupBeanInstance=function(e,t,n){if(void 0===n&&(n=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var o=this.beanWrappers[t];return o?o.beanInstance:(n||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var n=this;e.forEach((function(e){return n.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,n){var o={};this.forEachMetaDataInHierarchy(e,(function(e){var r=e[t];r&&r.forEach((function(e){e!=n&&(o[e]=!0)}))})),Object.keys(o).forEach((function(t){return e[t]()}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var n=e;"function"===typeof n.destroy&&n.destroy()})),[]):[]},e}();function z(e,t,n){var o=Q(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function U(e,t,n){var o=Q(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function K(e,t,n){var o=Q(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function q(e){return function(t){Q(t).beanName=e}}function Y(e){return function(t,n,o){$(t,e,!1,t,n,null)}}function Z(e){return function(t,n,o){$(t,e,!0,t,n,null)}}function $(e,t,n,o,r,i){if(null!==t)if("number"!==typeof i){var s=Q(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:t,optional:n})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function X(e){return function(t,n,o){var r,i="function"==typeof t?t:t.constructor;if("number"===typeof o){var s=void 0;n?(r=Q(i),s=n):(r=Q(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][o]=e}}}function Q(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var J,ee=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},te=function(e,t){return function(n,o){t(n,o,e)}},ne=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,n,o){if(void 0===o&&(o=null),this.frameworkOverrides=n,o){var r=t.useAsyncEvents();this.addGlobalListener(o,r)}},e.prototype.getListeners=function(e,t,n){var o=t?this.allAsyncListeners:this.allSyncListeners,r=o.get(e);return!r&&n&&(r=new Set,o.set(e,r)),r},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n,!0).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1);var o=this.getListeners(e,n,!1);o&&(o.delete(t),0===o.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,t){var n=this,o=e.type,r=this.getListeners(o,t,!1);r&&function(o){o.forEach((function(o){t?n.dispatchAsync((function(){return o(e)})):o(e)}))}(r),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(r){t?n.dispatchAsync((function(){return n.frameworkOverrides.dispatchEvent(o,(function(){return r(o,e)}),!0)})):n.frameworkOverrides.dispatchEvent(o,(function(){return r(o,e)}),!0)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},ee([te(0,X("loggerFactory")),te(1,X("gridOptionsWrapper")),te(2,X("frameworkOverrides")),te(3,X("globalEventListener"))],e.prototype,"setBeans",null),e=ee([q("eventService")],e)}(),oe=function(){function e(){}return e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e.INPUT_SELECTOR="input, select, button, textarea",e.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",e.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",e}();(J=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",J.CommunityAllModules="@ag-grid-community/all",J.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",J.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",J.CsvExportModule="@ag-grid-community/csv-export",J.EnterpriseCoreModule="@ag-grid-enterprise/core",J.EnterpriseAllModules="@ag-grid-enterprise/all",J.RowGroupingModule="@ag-grid-enterprise/row-grouping",J.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",J.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",J.MenuModule="@ag-grid-enterprise/menu",J.SetFilterModule="@ag-grid-enterprise/set-filter",J.MultiFilterModule="@ag-grid-enterprise/multi-filter",J.StatusBarModule="@ag-grid-enterprise/status-bar",J.SideBarModule="@ag-grid-enterprise/side-bar",J.RangeSelectionModule="@ag-grid-enterprise/range-selection",J.MasterDetailModule="@ag-grid-enterprise/master-detail",J.RichSelectModule="@ag-grid-enterprise/rich-select",J.GridChartsModule="@ag-grid-enterprise/charts",J.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",J.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",J.ExcelExportModule="@ag-grid-enterprise/excel-export",J.ClipboardModule="@ag-grid-enterprise/clipboard",J.SparklinesModule="@ag-grid-enterprise/sparklines",J.AngularModule="@ag-grid-community/angular",J.ReactModule="@ag-grid-community/react",J.VueModule="@ag-grid-community/vue",J.PolymerModule="@ag-grid-community/polymer";var re=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=n:e.moduleBased!==n&&D((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,n){void 0===n&&(n=!0),t&&t.forEach((function(t){return e.register(t,n)}))},e.assertRegistered=function(t,n){if(this.isRegistered(t))return!0;var o,r=n+t;return o=e.moduleBased?"AG Grid: unable to use "+n+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+n+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",D((function(){console.warn(o)}),r),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return p(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),ie=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},se=0,ae=function(){function e(e,t,n,o){this.instanceId=se++,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ne,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=o,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?e.sort!==oe.SORT_ASC&&e.sort!==oe.SORT_DESC||(this.sort=e.sort):e.initialSort!==oe.SORT_ASC&&e.initialSort!==oe.SORT_DESC||(this.sort=e.initialSort);var t=l(e.sortIndex),n=l(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);var o=u(e.hide),r=u(e.initialHide);this.visible=void 0!==o?!o:!r,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var i=l(e.flex),s=l(e.initialFlex);void 0!==i?this.flex=i:void 0!==s&&(this.flex=s)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation()},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=r(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=r(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(i(this.colDef)||i(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function n(e,t,n){D((function(){n?console.warn(e,n):D((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsWrapper.isRowModelDefault()&&!re.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){r(e[o])&&(re.isPackageBased()?n("AG Grid: "+o+" is only valid in ag-grid-enterprise, your column definition should not have "+o,"ColumnRowGroupingMissing"+o):n("AG Grid: "+o+" is only valid with AG Grid Enterprise Module "+t.ModuleNames.RowGroupingModule+" - your column definition should not have "+o,"ColumnRowGroupingMissing"+o))}))}if(re.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"===this.colDef.cellEditor&&(re.isPackageBased()?n("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){r(e[t])&&n("AG Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}r(this.colDef.width)&&"number"!==typeof this.colDef.width&&n("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),e.pinnedRowCellRenderer&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererParams&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererFramework&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowValueGetter&&n("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"===typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"===typeof this.colDef.suppressNavigable){var t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!u(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!u(this.colDef.autoHeight)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!!u(this.colDef.resizable)},e.prototype.isColumnFunc=function(e,t){return"boolean"===typeof t?t:"function"===typeof t&&t(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===oe.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===oe.SORT_DESC},e.prototype.isSortNone=function(){return i(this.sort)},e.prototype.isSorting=function(){return r(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,o){void 0===n&&(n="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,n)));var r=this.createColumnEvent(e.EVENT_FILTER_CHANGED,n);o&&b(r,o),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){!0===e||e===oe.PINNED_LEFT?this.pinned=oe.PINNED_LEFT:e===oe.PINNED_RIGHT?this.pinned=oe.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===oe.PINNED_LEFT||this.pinned===oe.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===oe.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===oe.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,n)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(i(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},e.prototype.getRowSpan=function(e){if(i(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(e,t,n){void 0===t&&(t="api"),void 0===n&&(n=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,t))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),r(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",ie([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ie([Y("columnUtils")],e.prototype,"columnUtils",void 0),ie([Y("columnApi")],e.prototype,"columnApi",void 0),ie([Y("gridApi")],e.prototype,"gridApi",void 0),ie([Y("context")],e.prototype,"context",void 0),ie([U],e.prototype,"initialise",null),e}();function le(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++){var o=e[n];if(r(o))return o}return null}function ue(e){if(e&&e.length)return e[e.length-1]}function ce(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,o){return n?n(e,t[o]):t[o]===e}))}function pe(e){return e.sort((function(e,t){return e-t}))}function de(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function he(e,t){t.forEach((function(t){return de(e,t)}))}function fe(e,t,n){e.splice(n,0,t)}function ge(e,t,n){he(e,t),t.slice().reverse().forEach((function(t){return fe(e,t,n)}))}function me(e,t){return e.indexOf(t)>-1}function ve(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}var ye=Object.freeze({firstExistingValue:le,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:ue,areEqual:ce,compareArrays:function(e,t){return ce(e,t)},shallowCompare:function(e,t){return ce(e,t)},sortNumerically:pe,removeRepeatsFromArray:function(e,t){if(e)for(var n=e.length-2;n>=0;n--){var o=e[n]===t,r=e[n+1]===t;o&&r&&e.splice(n+1,1)}},removeFromArray:de,removeAllFromArray:he,insertIntoArray:fe,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){fe(e,t[o],n)}},moveInArray:ge,includes:me,flatten:function(e){return[].concat.apply([],e)},pushAll:ve,toStrings:function(e){return e.map(a)},forEachReverse:function(e,t){if(null!=e)for(var n=e.length-1;n>=0;n--)t(e[n],n)}}),Ce=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},we=function(){function e(e,t,n,o){this.displayedChildren=[],this.localEventService=new ne,this.groupId=t,this.instanceId=n,this.providedColumnGroup=e,this.pinned=o}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=ue(this.displayedChildren).getLeft();this.setLeft(t)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var n=!1;return this.children.forEach((function(o){t===o&&(n=!0),o instanceof e&&o.isChildInThisGroupDeepSearch(t)&&(n=!0)})),n},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()||0})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(n){n instanceof ae?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof ae?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!(!!n&&n.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(o){if(!(o instanceof e&&(!o.displayedChildren||!o.displayedChildren.length)))switch(o.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.providedColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case e.HEADER_GROUP_SHOW_CLOSED:n.providedColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",Ce([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),_e=function(){function e(e,t,n,o){this.localEventService=new ne,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=n,this.level=o}return e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var n={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(n)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(n){n instanceof ae?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(ae.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,o=!1,r=this.findChildrenRemovingPadding(),i=0,s=r.length;i<s;i++){var a=r[i];if(a.isVisible()){var l=a.getColumnGroupShow();l===we.HEADER_GROUP_SHOW_OPEN?(t=!0,o=!0):l===we.HEADER_GROUP_SHOW_CLOSED?(n=!0,o=!0):(t=!0,n=!0)}}var u=t&&n&&o;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildrenRemovingPadding=function(){var t=[];return function n(o){o.forEach((function(o){o instanceof e&&o.isPadding()?n(o.children):t.push(o)}))}(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),be={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Ee="__ag_Grid_Stop_Propagation",Se=["touchstart","touchend","touchmove","touchcancel"],Re={};function Oe(e){e[Ee]=!0}function Pe(e){return!0===e[Ee]}var Te=function(){var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(t){if("boolean"===typeof Re[t])return Re[t];var n=document.createElement(e[t]||"div");return Re[t="on"+t]=t in n}}();function Ae(e,t,n){for(var o=t.target;o;){var r=e.getDomData(o,n);if(r)return r;o=o.parentElement}return null}function De(e,t){return!(!t||!e)&&Ne(t).indexOf(e)>=0}function xe(e){for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return t}function Ne(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:xe(e)}function Le(e,t,n,o){var r=me(Se,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,o,r)}var Ie=Object.freeze({stopPropagationForAgGrid:Oe,isStopPropagationForAgGrid:Pe,isEventSupported:Te,getCtrlForEvent:Ae,addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t)},isElementInEventPath:De,createEventPath:xe,addAgGridEventPath:function(e){e.__agGridEventPath=Ne(e)},getEventPath:Ne,addSafePassiveEventListener:Le}),Me=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fe=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new ne),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,t,n){var o=this;if(!this.destroyed){e instanceof HTMLElement?Le(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var r=function r(){return e.removeEventListener(t,n),o.destroyFunctions=o.destroyFunctions.filter((function(e){return e!==r})),null};return this.destroyFunctions.push(r),r}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n},e.prototype.createBean=function(e,t,n){return(t||this.getContext()).createBean(e,n)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var n=this;return e&&e.forEach((function(e){return n.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",Me([Y("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Me([Y("context")],e.prototype,"context",void 0),Me([Y("eventService")],e.prototype,"eventService",void 0),Me([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Me([K],e.prototype,"destroy",null),e}(),ke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ge=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},He=function(e,t){return function(n,o){t(n,o,e)}},We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ke(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,n){var o=new h,r=this.extractExistingTreeData(n),i=r.existingCols,s=r.existingGroups,a=r.existingColKeys;o.addExistingKeys(a);var l=this.recursivelyCreateColumns(e,0,t,i,o,s),u=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+u);var c=this.balanceColumnTree(l,0,u,o);return this.columnUtils.depthFirstOriginalTreeSearch(null,c,(function(e,t){e instanceof _e&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:c,treeDept:u}},t.prototype.extractExistingTreeData=function(e){var t=[],n=[],o=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof _e){var r=e;n.push(r)}else{var i=e;o.push(i.getId()),t.push(i)}})),{existingCols:t,existingGroups:n,existingColKeys:o}},t.prototype.createForAutoGroups=function(e,t){var n=this;return e.map((function(e){return n.createAutoGroupTreeItem(t,e)}))},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,o=this.findDepth(e)-1;o>=0;o--){var r=new _e(null,"FAKE_PATH_"+t.getId()+"}_"+o,!0,o);this.context.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},t.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof _e;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,o){for(var r=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof _e){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,o);a.setChildren(l),r.push(a)}else{for(var u=void 0,c=void 0,p=n-1;p>=t;p--){var d=o.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new _e(h,d,!0,t);this.context.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(r.push(u),e.some((function(e){return e instanceof _e}))){c.setChildren([s]);continue}c.setChildren(e);break}r.push(s)}}return r},t.prototype.findMaxDept=function(e,t){for(var n=t,o=0;o<e.length;o++){var r=e[o];if(r instanceof _e){var i=r,s=this.findMaxDept(i.getChildren(),t+1);n<s&&(n=s)}}return n},t.prototype.recursivelyCreateColumns=function(e,t,n,o,r,i){var s=this;return(e||[]).map((function(e){return s.isColumnGroup(e)?s.createColumnGroup(n,e,t,o,r,i):s.createColumn(n,e,o,r)}))},t.prototype.createColumnGroup=function(e,t,n,o,r,i){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId||null,null),l=new _e(s,a,!1,n);this.context.createBean(l);var u=this.findExistingGroup(t,i);u&&de(i,u),u&&u.isExpanded()&&l.setExpanded(!0);var c=this.recursivelyCreateColumns(s.children,n+1,e,o,r,i);return l.setChildren(c),l},t.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(t,e),this.checkForDeprecatedItems(t),t},t.prototype.createColumn=function(e,t,n,o){var r=this.mergeColDefs(t);this.checkForDeprecatedItems(r);var i=this.findExistingColumn(t,n);if(n&&i&&de(n,i),i)i.setColDef(r,t),this.applyColumnState(i,r);else{var s=o.getUniqueKey(r.colId,r.field);i=new ae(r,t,s,e),this.context.createBean(i)}return i},t.prototype.applyColumnState=function(e,t){var n=l(t.flex);if(void 0!==n&&e.setFlex(n),e.getFlex()<=0){var o=l(t.width);if(null!=o)e.setActualWidth(o);else{var r=e.getActualWidth();e.setActualWidth(r)}}void 0!==t.sort&&(t.sort==oe.SORT_ASC||t.sort==oe.SORT_DESC?e.setSort(t.sort):e.setSort(void 0));var i=l(t.sortIndex);void 0!==i&&e.setSortIndex(i);var s=u(t.hide);void 0!==s&&e.setVisible(!s),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){return(t||[]).find((function(t){var n=t.getUserProvidedColDef();if(!n)return!1;var o=null!=e.colId,r=null!=e.field;return o?t.getId()===e.colId:r?n.field===e.field:n===e}))},t.prototype.findExistingGroup=function(e,t){return t.find((function(t){return!!t.getColGroupDef()&&(!(null==e.groupId)&&t.getId()===e.groupId)}))},t.prototype.mergeColDefs=function(e){var t={},n=this.gridOptionsWrapper.getDefaultColDef();b(t,n,!1,!0);var o=e.type;return o||(o=n&&n.type),o&&this.assignColumnTypes(o,t),b(t,e,!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var n=[];if(e instanceof Array){e.some((function(e){return"string"!==typeof e}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=e}else{if("string"!==typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");n=e.split(",")}var o=Object.assign({},be);f(this.gridOptionsWrapper.getColumnTypes()||{},(function(e,t){e in o?console.warn("AG Grid: the column type '"+e+"' is a default column type and cannot be overridden."):o[e]=t})),n.forEach((function(e){var n=o[e.trim()];n?b(t,n,!1,!0):console.warn("AG Grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},t.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("AG Grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},t.prototype.isColumnGroup=function(e){return void 0!==e.children},Ge([Y("columnUtils")],t.prototype,"columnUtils",void 0),Ge([He(0,X("loggerFactory"))],t.prototype,"setBeans",null),t=Ge([q("columnFactory")],t)}(Fe),Ve=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_CELL_EDIT_REQUEST="cellEditRequest",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_BODY_SCROLL_END="bodyScrollEnd",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e.EVENT_STORE_UPDATED="storeUpdated",e}(),je=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,n=this.existingIds[e];return t="number"!==typeof n?0:n+1,this.existingIds[e]=t,t},e}(),Be=/[&<>"']/g,ze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ue(e){return null===e||void 0===e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function Ke(e){return null===e||void 0===e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function qe(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function Ye(e){return null==e?null:e.toString().toString().replace(Be,(function(e){return ze[e]}))}function Ze(e){if(!e||null==e)return null;return e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" ")}var $e=Object.freeze({utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function o(e){if(e>=0&&e<=31&&10!==e)return"_x"+e.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&e))return t(e);var o="";return 0==(4294965248&e)?o=t(e>>6&31|192):0==(4294901760&e)?(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),o=t(e>>12&15|224),o+=n(e,6)):0==(4292870144&e)&&(o=t(e>>18&7|240),o+=n(e,12),o+=n(e,6)),o+=t(63&e|128)}for(var r=function(e){var t=[];if(!e)return[];for(var n,o,r=e.length,i=0;i<r;)(n=e.charCodeAt(i++))>=55296&&n<=56319&&i<r?56320==(64512&(o=e.charCodeAt(i++)))?t.push(((1023&n)<<10)+(1023&o)+65536):(t.push(n),i--):t.push(n);return t}(e),i=r.length,s=-1,a="";++s<i;)a+=o(r[s]);return a},camelCaseToHyphen:Ue,hyphenToCamelCase:Ke,capitalise:qe,escapeString:Ye,camelCaseToHumanText:Ze});function Xe(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}var Qe=Object.freeze({convertToMap:Xe,mapById:function(e,t){var n=new Map;return e.forEach((function(e){return n.set(t(e),e)})),n},keys:function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}}),Je=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),et=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tt=function(e,t){return function(n,o){t(n,o,e)}},nt=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ot=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},rt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ot(arguments[t]));return e},it=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.gridHeaderRowCount=0,t.displayedColumnsLeft=[],t.displayedColumnsRight=[],t.displayedColumnsCenter=[],t.displayedColumns=[],t.displayedColumnsAndGroupsMap={},t.viewportColumns=[],t.viewportColumnsCenter=[],t.autoHeightActiveAtLeastOnce=!1,t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t.colDefVersion=0,t.flexColsCalculatedAtLestOnce=!1,t}return Je(t,e),t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var t=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,"defaultColDef",(function(){return e.onDefaultColDefChanged()}))},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.onDefaultColDefChanged=function(){this.colDefVersion++,this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},t.prototype.getColDefVersion=function(){return this.colDefVersion},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var n=!!this.columnDefs;this.colDefVersion++,this.columnDefs=e,this.createColumnsFromColumnDefs(n,t)},t.prototype.createColumnsFromColumnDefs=function(e,t){var n=this;void 0===t&&(t="api");var o=e?this.compareColumnStatesAndRaiseEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns,i=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,i);this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(e){return n.primaryColumnsMap[e.getId()]=e})),this.extractRowGroupColumns(t,r),this.extractPivotColumns(t,r),this.extractValueColumns(t,r),this.ready=!0;var a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a)&&(this.updateGridColumns(),e&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),o&&o(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){var e={type:Ve.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:Ve.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;t&&this.gridColumns.sort((function(n,o){var r=t.indexOf(n),i=t.indexOf(o),s=r>=0,a=i>=0;return s&&a?r-i:s?1:a?-1:e.gridColumns.indexOf(n)-e.gridColumns.indexOf(o)}))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},t.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter){var e=this.viewportColumns.map((function(e){return e.getId()})).join("#");if(this.extractViewport(),e!==this.viewportColumns.map((function(e){return e.getId()})).join("#")){var t={type:Ve.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},t.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},t.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var n={type:Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(i(this.secondaryColumns))return null;var n=this.getPrimaryColumn(t),o=null;return this.secondaryColumns.forEach((function(t){var r=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;ce(r,e)&&i===n&&(o=t)})),o},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?ue(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?ue(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(o){o.setLastLeftPinned(o===t,e),o.setFirstRightPinned(o===n,e)}))},t.prototype.autoSizeColumns=function(e){var t=this,n=e.columns,o=e.skipHeader,r=e.skipHeaderGroups,i=e.stopAtGroup,s=e.source,a=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var l=[],u=-1,c=null!=o?o:this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),p=null!=r?r:c;0!==u;)u=0,this.actionOnGridColumns(n,(function(e){if(l.indexOf(e)>=0)return!1;var n=t.autoWidthCalculator.getPreferredWidthForColumn(e,c);if(n>0){var o=t.normaliseColumnWidth(e,n);e.setActualWidth(o,a),l.push(e),u++}return!0}),a);p||this.autoSizeColumnGroupsByColumns(n,i),this.fireColumnResizedEvent(l,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,t,n,o){if(void 0===o&&(o=null),e&&e.length){var r={type:Ve.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:o,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)}},t.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:n})},t.prototype.autoSizeColumnGroupsByColumns=function(e,t){var n,o,r,i,s,a=new Set;this.getGridColumns(e).forEach((function(e){for(var n=e.getParent();n&&n!=t;)n.isPadding()||a.add(n),n=n.getParent()}));try{for(var l=nt(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(r=void 0,nt(this.ctrlsService.getHeaderRowContainerCtrls())),d=p.next();!d.done;d=p.next()){if(s=d.value.getHeaderCtrlForColumn(c))break}}catch(h){r={error:h}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}s&&s.resizeLeafColumnsToFit()}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}return[]},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:e,source:t})},t.prototype.getColumnsFromTree=function(e){var t=[];return function e(n){for(var o=0;o<n.length;o++){var r=n[o];r instanceof ae?t.push(r):r instanceof _e&&e(r.getChildren())}}(e),t},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.getDisplayedColumnsForRow=function(e,t,n,o){for(var r,i=[],s=null,a=function(a){var l,u=t[a],c=t.length-a,p=Math.min(u.getColSpan(e),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}if(n?(l=!1,d.forEach((function(e){n(e)&&(l=!0)}))):l=!0,l){if(0===i.length&&s)!!o&&o(u)&&i.push(s);i.push(u)}s=u,r=a},l=0;l<t.length;l++)a(l),l=r;return i},t.prototype.getViewportCenterColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var n=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,n,(function(e){var n=e.getLeft();return r(n)&&n>t.viewportLeft}))},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,n=t+e.getActualWidth(),o=this.viewportLeft-200,r=this.viewportRight+200;return!(t<o&&n<o)&&!(t>r&&n>r)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,n,o,r,i){var a=this;if(void 0===i&&(i="api"),e&&!s(e)){var l=!1;if(e.forEach((function(e){var r=a.getPrimaryColumn(e);if(r){if(n){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;de(t,r)}o(r),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var u={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(u)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),Ve.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,Ve.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){n.setPivotActive(e,t)}),t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),Ve.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,n,o,i){var s=this;t.length=0,r(e)&&e.forEach((function(e){var n=s.getPrimaryColumn(e);n&&t.push(n)})),(this.primaryColumns||[]).forEach((function(e){var n=t.indexOf(e)>=0;o(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i),this.fireColumnEvent(n,t,i)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,Ve.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var o=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(o)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Ve.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Ve.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var n=e.getMinWidth();r(n)&&t<n&&(t=n);var o=e.getMaxWidth();return r(o)&&e.isGreaterThanMax(t)&&(t=o),t},t.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,t,n,o){var r=this;void 0===o&&(o="api");var i=[];e.forEach((function(e){var n=r.getPrimaryOrGridColumn(e.key);if(n&&(i.push({width:e.newWidth,ratios:[1],columns:[n]}),"shift"===r.gridOptionsWrapper.getColResizeDefault()&&(t=!t),t)){var o=r.getDisplayedColAfter(n);if(!o)return;var s=n.getActualWidth()-e.newWidth,a=o.getActualWidth()+s;i.push({width:a,ratios:[1],columns:[o]})}})),0!==i.length&&this.resizeColumnSets({resizeSets:i,finished:n,source:o})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,n=e.width,o=0,i=0,s=!0;return t.forEach((function(e){var t=e.getMinWidth();o+=t||0;var n=e.getMaxWidth();r(n)&&n>0?i+=n:s=!1})),n>=o&&(!s||n<=i)},t.prototype.resizeColumnSets=function(e){var t=this,n=e.resizeSets,o=e.finished,i=e.source;if(!n||n.every((function(e){return t.checkMinAndMaxWidthsForSet(e)}))){var s=[],a=[];n.forEach((function(e){var t=e.width,n=e.columns,o=e.ratios,l={},u={};n.forEach((function(e){return a.push(e)}));for(var c=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],i=0,s=t;n.forEach((function(t,n){if(u[t.getId()])s-=l[t.getId()];else{e.push(t);var r=o[n];i+=r}}));var a=1/i;e.forEach((function(n,i){var p;i===e.length-1?p=s:(p=Math.round(o[i]*t*a),s-=p);var d=n.getMinWidth(),h=n.getMaxWidth();r(d)&&p<d?(p=d,u[n.getId()]=!0,c=!0):r(h)&&h>0&&p>h&&(p=h,u[n.getId()]=!0,c=!0),l[n.getId()]=p}))};c;){if("break"===d())break}n.forEach((function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,i),s.push(e))}))}));var l=s.length>0,u=[];l&&(u=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(i),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(u);(l||o)&&this.fireColumnResizedEvent(c,o,i,u)}else if(o){var p=n&&n.length>0?n[0].columns:null;this.fireColumnResizedEvent(p,o,i)}},t.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){var o=this.getPrimaryColumn(e);o&&(o.setAggFunc(t),this.fireColumnEvent(Ve.EVENT_COLUMN_VALUE_CHANGED,[o],n))}},t.prototype.fireColumnEvent=function(e,t,n){var o={type:e,columns:t,column:t&&1==t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)},t.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n="api");var o=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,o);var r={type:Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)},t.prototype.moveColumns=function(e,t,n){if(void 0===n&&(n="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var o=this.getGridColumns(e);if(!!this.doesMovePassRules(o,t)){ge(this.gridColumns,o,t),this.updateDisplayedColumns(n);var r={type:Ve.EVENT_COLUMN_MOVED,columns:o,column:1===o.length?o[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r),this.columnAnimationService.finish()}},t.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return ge(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||(e.filter((function(e){return t.gridColumns.indexOf(e)<0})).length>0||e.sort((function(e,n){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(n)})))},t.prototype.doesMovePassLockedPositions=function(e){var t=0,n=!0;return e.forEach((function(e){var o,r=(o=e.getColDef().lockPosition)?!0===o||"left"===o?0:2:1;r<t&&(n=!1),t=r})),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof _e){var o=n,r=o.getColGroupDef();if(r&&r.marryChildren){var i=[];o.getLeafColumns().forEach((function(t){var n=e.indexOf(t);i.push(n)})),Math.max.apply(Math,i)-Math.min.apply(Math,i)>o.getLeafColumns().length-1&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},t.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var o=this.gridColumns[e];this.moveColumn(o,t,n)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,n){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)})):this.lastPrimaryOrder&&t.sort((function(t,n){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(n)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case oe.PINNED_LEFT:return this.leftWidth;case oe.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var o={type:Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},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 oe.PINNED_LEFT:return this.getDisplayedLeftColumns();case oe.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return s(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return s(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},t.prototype.setColumnsVisible=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,n),!0)}),n,(function(){return{type:Ve.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi,source:n}})),this.columnAnimationService.finish()},t.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},t.prototype.setColumnsPinned=function(e,t,n){var o,r=this;(void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),o=!0===t||t===oe.PINNED_LEFT?oe.PINNED_LEFT:t===oe.PINNED_RIGHT?oe.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==o&&(e.setPinned(o),!0)}),n,(function(){return{type:Ve.EVENT_COLUMN_PINNED,pinned:o,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},t.prototype.actionOnGridColumns=function(e,t,n,o){var i=this;if(!s(e)){var a=[];if(e.forEach((function(e){var n=i.getGridColumn(e);n&&(!1!==t(n)&&a.push(n))})),a.length&&(this.updateDisplayedColumns(n),r(o)&&o)){var l=o();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,t){for(var n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),o=e.getDisplayedLeafColumns(),r="After"===t?ue(o):o[0],i="getDisplayedCol"+t;;){var s=this[i](r);if(!s)return null;var a=this.getColumnGroupAtLevel(s,n);if(a!==e)return a}},t.prototype.getColumnGroupAtLevel=function(e,t){for(var n=e.getParent();;){if(n.getProvidedColumnGroup().getLevel()+n.getPaddingLevel()<=t)break;n=n.getParent()}return n},t.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},t.prototype.getPrimaryAndAutoGroupCols=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.groupAutoColumns||[]]))},t.prototype.getPrimaryAndSecondaryColumns=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.secondaryColumns||[]]))},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null,r=null!=e.getSort()?e.getSort():null,i=null!=e.getSortIndex()?e.getSortIndex():null,s=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:r,sortIndex:i,aggFunc:o,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:s}},t.prototype.getColumnState=function(){if(i(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},t.prototype.orderColumnStateList=function(e){var t=Xe(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,n){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)}))},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),n=[],o=1e3,r=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),t&&(s=s.concat(t)),s.forEach((function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},s=e.getColDef(),a=t(s.sort,s.initialSort),l=t(s.sortIndex,s.initialSortIndex),u=t(s.hide,s.initialHide),c=t(s.pinned,s.initialPinned),p=t(s.width,s.initialWidth),d=t(s.flex,s.initialFlex),h=t(s.rowGroupIndex,s.initialRowGroupIndex),f=t(s.rowGroup,s.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=t(s.pivotIndex,s.initialPivotIndex),m=t(s.pivot,s.initialPivot);null!=g||null!=m&&0!=m||(g=null,m=null);var v=t(s.aggFunc,s.initialAggFunc),y={colId:e.getColId(),sort:a,sortIndex:l,hide:u,pinned:c,width:p,flex:d,rowGroup:f,rowGroupIndex:h,pivot:m,pivotIndex:g,aggFunc:v};i(h)&&f&&(y.rowGroupIndex=o++),i(g)&&m&&(y.pivotIndex=r++),n.push(y)})),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var n=this;if(void 0===t&&(t="api"),s(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 o=function(o,r,i){var s=n.compareColumnStatesAndRaiseEvents(t);n.autoGroupsNeedBuilding=!0;var a=r.slice(),l={},u={},c=[],p=[],d=0,h=n.rowGroupColumns.slice(),f=n.pivotColumns.slice();o.forEach((function(o){var r=o.colId||"";if(r.startsWith(oe.GROUP_AUTO_COLUMN_ID))return c.push(o),void p.push(o);var s=i(r);s?(n.syncColumnWithStateItem(s,o,e.defaultState,l,u,!1,t),de(a,s)):(p.push(o),d+=1)}));var g=function(o){return n.syncColumnWithStateItem(o,null,e.defaultState,l,u,!1,t)};a.forEach(g);var m=function(e,t,n,o){var r=e[n.getId()],i=e[o.getId()],s=null!=r,a=null!=i;if(s&&a)return r-i;if(s)return-1;if(a)return 1;var l=t.indexOf(n),u=t.indexOf(o),c=l>=0;return c&&u>=0?l-u:c?-1:1};n.rowGroupColumns.sort(m.bind(n,l,h)),n.pivotColumns.sort(m.bind(n,u,f)),n.updateGridColumns();var v=n.groupAutoColumns?n.groupAutoColumns.slice():[];return c.forEach((function(o){var r=n.getAutoColumn(o.colId);de(v,r),n.syncColumnWithStateItem(r,o,e.defaultState,null,null,!0,t)})),v.forEach(g),n.applyOrderAfterApplyState(e),n.updateDisplayedColumns(t),n.dispatchEverythingChanged(t),s(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var i=o(e.state||[],this.primaryColumns||[],(function(e){return n.getPrimaryColumn(e)})),a=i.unmatchedAndAutoStates,l=i.unmatchedCount;return(a.length>0||r(e.defaultState))&&(l=o(a,this.secondaryColumns||[],(function(e){return n.getSecondaryColumn(e)})).unmatchedCount),this.columnAnimationService.finish(),0===l},t.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var n=[],o={};e.state.forEach((function(e){if(e.colId&&!o[e.colId]){var r=t.gridColumnsMap[e.colId];r&&(n.push(r),o[e.colId]=!0)}}));var r=0;this.gridColumns.forEach((function(e){var t=e.getColId();null!=o[t]||(t.startsWith(oe.GROUP_AUTO_COLUMN_ID)?fe(n,e,r++):n.push(e))})),n=this.placeLockedColumns(n),this.doesMovePassMarryChildren(n)?this.gridColumns=n:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var t=this,n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},o=this.getColumnState(),r={};return o.forEach((function(e){r[e.colId]=e})),function(){if(!t.gridOptionsWrapper.isSuppressColumnStateEvents()){var i=t.getPrimaryAndSecondaryAndAutoColumns(),s=function(n,o,r,i){if(!ce(o.map(i),r.map(i))){var s={type:n,columns:r,column:1===r.length?r[0]:null,api:t.gridApi,columnApi:t.columnApi,source:e};t.eventService.dispatchEvent(s)}},a=function(e){var t=[];return i.forEach((function(n){var o=r[n.getColId()];o&&e(o,n)&&t.push(n)})),t},l=function(e){return e.getColId()};s(Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,t.rowGroupColumns,l),s(Ve.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,t.pivotColumns,l);a((function(e,t){var n=null!=e.aggFunc,o=n!=t.isValueActive(),r=n&&e.aggFunc!=t.getAggFunc();return o||r})).length>0&&t.fireColumnEvent(Ve.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.fireColumnResizedEvent(a((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.raiseColumnPinnedEvent(a((function(e,t){return e.pinned!=t.getPinned()})),e);t.raiseColumnVisibleEvent(a((function(e,t){return e.hide==t.isVisible()})),e);a((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(e),t.raiseColumnMovedEvent(o,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.getPinned()})),r={type:Ve.EVENT_COLUMN_PINNED,pinned:null!=o?o:null,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var n=t(e[0]),o=1;o<e.length;o++)if(n!==t(e[o]))return;return n}},t.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.isVisible()})),r={type:Ve.EVENT_COLUMN_VISIBLE,visible:o,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r)}},t.prototype.raiseColumnMovedEvent=function(e,t){var n=this,o=this.getColumnState(),r={};o.forEach((function(e){return r[e.colId]=e}));var i={};e.forEach((function(e){r[e.colId]&&(i[e.colId]=!0)}));var s=e.filter((function(e){return i[e.colId]})),a=o.filter((function(e){return i[e.colId]})),l=[];if(a.forEach((function(e,t){var o=s&&s[t];if(o&&o.colId!==e.colId){var r=n.getGridColumn(o.colId);r&&l.push(r)}})),l.length){var u={type:Ve.EVENT_COLUMN_MOVED,columns:l,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(u)}},t.prototype.syncColumnWithStateItem=function(e,t,n,o,i,s,a){if(e){var l=function(e,o){var i={value1:void 0,value2:void 0},s=!1;return t&&(void 0!==t[e]&&(i.value1=t[e],s=!0),r(o)&&void 0!==t[o]&&(i.value2=t[o],s=!0)),!s&&n&&(void 0!==n[e]&&(i.value1=n[e]),r(o)&&void 0!==n[o]&&(i.value2=n[o])),i},u=l("hide").value1;void 0!==u&&e.setVisible(!u,a);var c=l("pinned").value1;void 0!==c&&e.setPinned(c);var p=this.columnUtils.calculateColMinWidth(e.getColDef()),d=l("flex").value1;if(void 0!==d&&e.setFlex(d),e.getFlex()<=0){var h=l("width").value1;null!=h&&null!=p&&h>=p&&e.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&(f===oe.SORT_DESC||f===oe.SORT_ASC?e.setSort(f,a):e.setSort(void 0,a));var g=l("sortIndex").value1;if(void 0!==g&&e.setSortIndex(g),!s&&e.isPrimary()){var m=l("aggFunc").value1;void 0!==m&&("string"===typeof m?(e.setAggFunc(m),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(r(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,a),de(this.valueColumns,e))));var v=l("rowGroup","rowGroupIndex"),y=v.value1,C=v.value2;void 0===y&&void 0===C||("number"===typeof C||y?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),o&&"number"===typeof C&&(o[e.getId()]=C)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),de(this.rowGroupColumns,e)));var w=l("pivot","pivotIndex"),_=w.value1,b=w.value2;void 0===_&&void 0===b||("number"===typeof b||_?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),i&&"number"===typeof b&&(i[e.getId()]=b)):e.isPivotActive()&&(e.setPivotActive(!1,a),de(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var o=t(e);o&&n.push(o)})),n},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,t,n){if(!e)return null;if("string"==typeof e&&n[e])return n[e];for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},t.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&r(this.groupAutoColumns)&&!i(this.groupAutoColumns)&&this.groupAutoColumns.find((function(n){return t.columnsMatch(n,e)}))||null},t.prototype.columnsMatch=function(e,t){var n=e===t,o=e.getColDef()===t,r=e.getColId()==t;return n||o||r},t.prototype.getDisplayNameForColumn=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;var o=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,o):o},t.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,n){var o=t?t.getColGroupDef():null;return o?this.getHeaderName(o,null,e,t,n):null},t.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},t.prototype.getHeaderName=function(e,t,n,o,r){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:n,providedColumnGroup:o,location:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return"function"===typeof i?i(s):"string"===typeof i?this.expressionService.evaluate(i,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?Ze(e.field):""},t.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var n,o=e.getColDef().pivotValueColumn,i=null;if(r(o)){var s=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,a=void 0!==e.getColDef().pivotTotalColumnIds;if(s&&!a)return t;i=o?o.getAggFunc():null,n=!0}else{var l=e.isValueActive(),u=this.pivotMode||!this.isRowGroupEmpty();l&&u?(i=e.getAggFunc(),n=!0):n=!1}if(n){var c="string"===typeof i?i:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(c,c)+"("+t+")"}return t},t.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof we)return e;var n=this.getAllDisplayedTrees(),o="number"===typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof we){var i=n;(o?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(r=i)}})),r},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,n){return t.setValueActive(n,e)}),(function(){}),(function(){}),(function(e){var t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0}),(function(e){return null!=e.initialAggFunc&&""!=e.initialAggFunc})),this.valueColumns.forEach((function(e){var t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)}))},t.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,n){return t.setRowGroupActive(n,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.initialRowGroupIndex}),(function(e){return e.rowGroup}),(function(e){return e.initialRowGroup}))},t.prototype.extractColumns=function(e,t,n,o,r,i,s){void 0===e&&(e=[]),void 0===t&&(t=[]);var a=[],c=[];(this.primaryColumns||[]).forEach((function(n){var p=e.indexOf(n)<0,d=n.getColDef(),h=u(i(d)),f=u(s(d)),g=l(o(d)),m=l(r(d));(void 0!==h?h:void 0!==g?null!==g&&g>=0:p?void 0!==f?f:!!(void 0!==m)&&(null!=m&&m>=0):t.indexOf(n)>=0)&&((p?null!=g||null!=m:null!=g)?a.push(n):c.push(n))}));var p=function(e){var t=o(e.getColDef()),n=r(e.getColDef());return null!=t?t:n};a.sort((function(e,t){var n=p(e),o=p(t);return n===o?0:n<o?-1:1}));var d=[].concat(a);return t.forEach((function(e){c.indexOf(e)>=0&&d.push(e)})),c.forEach((function(e){d.indexOf(e)<0&&d.push(e)})),t.forEach((function(e){d.indexOf(e)<0&&n(e,!1)})),d.forEach((function(e){t.indexOf(e)<0&&n(e,!0)})),d},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,n){return t.setPivotActive(n,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof _e){var n=e.getColGroupDef(),o={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(o)}})),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){t instanceof _e&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e},t.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var o=[];e.forEach((function(e){var t=e.groupId,r=e.open,i=n.getProvidedColumnGroup(t);i&&i.isExpanded()!==r&&(n.logger.log("columnGroupOpened("+i.getGroupId()+","+r+")"),i.setExpanded(r),o.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),o.forEach((function(e){var t={type:Ve.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,n){var o;void 0===n&&(n="api"),o=e instanceof _e?e.getId():e||"",this.setColumnGroupState([{groupId:o,open:t}],n)},t.prototype.getProvidedColumnGroup=function(e){"string"!==typeof e&&console.error("AG Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){n instanceof _e&&n.getId()===e&&(t=n)})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&i(this.secondaryColumns)?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&me(e.groupAutoColumns,t),o=e.valueColumns&&me(e.valueColumns,t);return n||o})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&me(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){r(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&r(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return r(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,t){var n=this;void 0===t&&(t="api");var o=e&&e.length>0;if(o||!i(this.secondaryColumns)){if(o){this.processSecondaryColumnDefinitions(e);var r=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=r.columnTree,this.secondaryHeaderRowCount=r.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(e){return n.secondaryColumnsMap[e.getId()]=e})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){e&&function e(o){o.forEach((function(o){if(r(o.children)){var i=o;n&&n(i),e(i.children)}else t&&t(o)}))}(e)}},t.prototype.updateGridColumns=function(){var e=this;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var t=this.secondaryColumns.every((function(t){return void 0!==e.gridColumnsMap[t.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,t&&this.orderGridColsLike(this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLike(this.lastPrimaryOrder));this.addAutoGroupToGridColumns(),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t})),this.setAutoHeightActive();var n={type:Ve.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(e){return e.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();if(!(e===oe.ROW_MODEL_TYPE_CLIENT_SIDE||e===oe.ROW_MODEL_TYPE_SERVER_SIDE)){D((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}}},t.prototype.orderGridColsLike=function(e){if(!i(e)){var t=Xe(e.map((function(e,t){return[e,t]}))),n=!0;if(this.gridColumns.forEach((function(e){t.has(e)&&(n=!1)})),!n){var o=Xe(this.gridColumns.map((function(e){return[e,!0]}))),r=e.filter((function(e){return o.has(e)})),s=Xe(r.map((function(e){return[e,!0]}))),a=this.gridColumns.filter((function(e){return!s.has(e)})),l=r.slice();a.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;){t.getLeafColumns().forEach((function(e){var t=l.indexOf(e)>=0,o=n.indexOf(e)<0;t&&o&&n.push(e)})),t=t.getOriginalParent()}if(n.length){var o=n.map((function(e){return l.indexOf(e)})),r=Math.max.apply(Math,rt(o));fe(l,e,r+1)}else l.push(e)}else l.push(e)})),this.gridColumns=l}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},t.prototype.placeLockedColumns=function(e){var t=[],n=[],o=[];return e.forEach((function(e){var r=e.getColDef().lockPosition;"right"===r?o.push(e):"left"===r||!0===r?t.push(e):n.push(e)})),rt(t,n,o)},t.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!i(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},t.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[]},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((function(e){return e.isAutoHeight()}))},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),o=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(r){if(o){var i=t.getWidthOfColsInList(r);r.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var s=0;r.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}he(n,r)})),n.forEach((function(t){t.setLeft(null,e)}))}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof we&&e.checkLeft()}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof ae&&t.push(e)}))},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?this.viewportColumnsCenter=this.displayedColumnsCenter:this.viewportColumnsCenter=this.filterOutColumnsWithinViewport(),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case oe.PINNED_LEFT:n=this.viewportRowLeft[t];break;case oe.PINNED_RIGHT:n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return i(n)&&(n=[]),n},t.prototype.extractViewportRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.viewportColumns.forEach((function(t){return e[t.getId()]=!0}));var t=function t(n,o,r){for(var i=!1,s=0;s<n.length;s++){var a=n[s],l=!1;if(a instanceof ae)l=!0===e[a.getId()];else{var u=a.getDisplayedChildren();u&&(l=t(u,o,r+1))}l&&(i=!0,o[r]||(o[r]=[]),o[r].push(a))}return i};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){this.extractViewportColumns(),this.extractViewportRows()},t.prototype.filterOutColumnsWithinViewport=function(){return this.displayedColumnsCenter.filter(this.isColumnInViewport.bind(this))},t.prototype.refreshFlexedColumns=function(e){var t=this;void 0===e&&(e={});var n=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var o=-1;e.resizingCols&&e.resizingCols.forEach((function(e){var n=t.displayedColumnsCenter.indexOf(e);o<n&&(o=n)}));var i=function(e){var n=t.displayedColumnsCenter.indexOf(e)>o;return e.getFlex()&&n},s=this.displayedColumnsCenter.filter((function(e){return!i(e)})),a=this.displayedColumnsCenter.filter((function(e){return i(e)})),l=[];if(!a.length)return[];var u,c=[];e:for(;;){var p=a.reduce((function(e,t){return e+t.getFlex()}),0);u=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var d=0;d<a.length;d++){var h=a[d],f=u*h.getFlex()/p,g=0,m=h.getMinWidth(),v=h.getMaxWidth();if(r(m)&&f<m?g=m:r(v)&&f>v&&(g=v),g){h.setActualWidth(g,n),de(a,h),l.push(h),s.push(h);continue e}c[d]=Math.round(f)}break}var y=u;return a.forEach((function(e,t){e.setActualWidth(Math.min(c[t],y),n),l.push(e),y-=c[t]})),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(l,!0,n,a),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),a},t.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var o=this.getAllDisplayedColumns();if(!(e<=0)&&o.length){var i=[],s=[];o.forEach((function(e){!0===e.getColDef().suppressSizeToFit?s.push(e):i.push(e)}));var a=i.slice(0),l=!1,u=function(e){de(i,e),s.push(e)};for(i.forEach((function(e){return e.resetActualWidth(t)}));!l;){l=!0;var c=e-this.getWidthOfColsInList(s);if(c<=0)i.forEach((function(e){e.setMinimum(t)}));else for(var p=c/this.getWidthOfColsInList(i),d=c,h=i.length-1;h>=0;h--){var f=i[h],g=f.getMinWidth(),m=f.getMaxWidth(),v=Math.round(f.getActualWidth()*p);r(g)&&v<g?(v=g,u(f),l=!1):r(m)&&f.isGreaterThanMax(v)?(v=m,u(f),l=!1):0===h&&(v=d),f.setActualWidth(v,t,!0),d-=v}}a.forEach((function(e){e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),n||this.fireColumnResizedEvent(a,!0,t)}},t.prototype.buildDisplayedTrees=function(e){var t=[],n=[],o=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":n.push(e);break;default:o.push(e)}}));var r=new je;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,oe.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,oe.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof we&&e.calculateDisplayedColumns()}))},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e){var n=this.groupAutoColumns||[],o=this.autoGroupColService.createAutoGroupColumns(n,this.rowGroupColumns);(!this.autoColsEqual(o,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=o)}else this.groupAutoColumns=null}},t.prototype.autoColsEqual=function(e,t){return ce(e,t,(function(e,t){return e.getColId()===t.getColId()}))},t.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(e){return e.getColDef().floatingFilter}))},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var n=0;n<t.length;n++){var o=this[t[n]]();if(o.length)return e?ue(o):o[0]}return null},et([Y("expressionService")],t.prototype,"expressionService",void 0),et([Y("columnFactory")],t.prototype,"columnFactory",void 0),et([Y("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),et([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),et([Y("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),et([Y("columnUtils")],t.prototype,"columnUtils",void 0),et([Y("columnAnimationService")],t.prototype,"columnAnimationService",void 0),et([Y("autoGroupColService")],t.prototype,"autoGroupColService",void 0),et([Z("aggFuncService")],t.prototype,"aggFuncService",void 0),et([Z("valueCache")],t.prototype,"valueCache",void 0),et([Z("animationFrameService")],t.prototype,"animationFrameService",void 0),et([Y("rowModel")],t.prototype,"rowModel",void 0),et([Y("columnApi")],t.prototype,"columnApi",void 0),et([Y("gridApi")],t.prototype,"gridApi",void 0),et([Y("sortController")],t.prototype,"sortController",void 0),et([Y("columnDefFactory")],t.prototype,"columnDefFactory",void 0),et([U],t.prototype,"init",null),et([tt(0,X("loggerFactory"))],t.prototype,"setBeans",null),t=et([q("columnModel")],t)}(Fe),st=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),at=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return st(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.gridOptionsWrapper.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,n=this.calculateColMinWidth(e),o=this.calculateColMaxWidth(e),r=l(e.width),i=l(e.initialWidth);return t=null!=r?r:null!=i?i:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(t,o),n)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1;return function t(r,i){for(var s=0;s<r.length;s++){if(o)return;var a=r[s];if(a instanceof _e)t(a.getChildren(),i+1),n[i]=a;else a===e&&(o=!0)}}(t,0),o?n:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var o=this;t&&t.forEach((function(t){t instanceof _e&&o.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof we&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof we&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},t=at([q("columnUtils")],t)}(Fe),ut=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ct=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ut(t,e),t.prototype.createDisplayedGroups=function(e,t,n,o,r){var i,s,a=this,l=[],u=this.mapOldGroupsById(r);return e.forEach((function(e){for(var r=a.getOriginalPathForColumn(t,e),c=[],p=!s,d=0;d<r.length;d++)if(p||r[d]!==s[d]){var h=a.createColumnGroup(r[d],n,u,o);c[d]=h,0==d?l.push(h):c[d-1].addChild(h)}else c[d]=i[d];0===c.length?l.push(e):ue(c).addChild(e);i=c,s=r})),this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,t,n,o){var i=e.getGroupId(),s=t.getInstanceIdForKey(i),a=n[we.createUniqueId(i,s)];return a&&a.getProvidedColumnGroup()!==e&&(a=null),r(a)?a.reset():(a=new we(e,i,s,o),this.context.createBean(a)),a},t.prototype.mapOldGroupsById=function(e){var t={};return e&&function e(n){n.forEach((function(n){if(n instanceof we){var o=n;t[n.getUniqueId()]=o,e(o.getChildren())}}))}(e),t},t.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach((function(e){if(e.setParent(t),e instanceof we){var o=e;n.setupParentsIntoColumns(o.getChildren(),o)}}))},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1;return function e(r,i){for(var s=0;s<r.length;s++){if(o)return;var a=r[s];a instanceof _e?(e(a.getChildren(),i+1),n[i]=a):a===t&&(o=!0)}}(e,0),o?n:(console.warn("AG Grid: could not get path"),null)},t=ct([q("displayedGroupCreator")],t)}(Fe),dt=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},ht=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dt(arguments[t]));return e},ft=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","statusBar","sideBar","chartThemeOverrides","customChartThemes"],e.ARRAY_PROPERTIES=["alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],e.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges"],e.FUNCTION_PROPERTIES=["localeTextFunc","getLocaleText","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","groupRowAggNodes","getGroupRowAgg","getRowNodeId","isFullWidthCell","isFullWidthRow","fullWidthCellRenderer","fullWidthCellRendererFramework","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","isRowMaster","isRowSelectable","postSort","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","defaultGroupSortComparator","defaultGroupOrderComparator","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],e.ALL_PROPERTIES=ht(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),gt=function(){return gt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},gt.apply(this,arguments)},mt=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},vt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mt(arguments[t]));return e},yt=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=e.EVENTS.map((function(t){return e.getCallbackForEvent(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,n,o){"object"!==typeof t&&(t={});var r=t,i=function(e){return"undefined"!==typeof n[e]};return i("groupAggFiltering")&&"function"!==typeof n.groupAggFiltering&&(r.groupAggFiltering=e.toBoolean(n.groupAggFiltering),delete n.groupAggFiltering),vt(e.ARRAY_PROPERTIES,e.STRING_PROPERTIES,e.OBJECT_PROPERTIES,e.FUNCTION_PROPERTIES,e.getEventCallbacks()).filter(i).forEach((function(e){return r[e]=n[e]})),e.BOOLEAN_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toBoolean(n[t])})),e.NUMBER_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toNumber(n[t])})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,n,o,r){if(t){var i=gt({},t),s=n,a=function(e){return i[e]};a("groupAggFiltering")&&("function"===typeof i.groupAggFiltering?s.groupAggFiltering=i.groupAggFiltering:s.groupAggFiltering=e.toBoolean(i.groupAggFiltering),delete i.groupAggFiltering),i.rowClass&&(o.setRowClass(i.rowClass.currentValue),delete i.rowClass),vt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(a).forEach((function(e){return s[e]=i[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toBoolean(i[t].currentValue)})),e.NUMBER_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toNumber(i[t].currentValue)})),i.enableCellTextSelection&&(o.setEnableCellTextSelection(e.toBoolean(i.enableCellTextSelection.currentValue)),delete i.enableCellTextSelection),i.quickFilterText&&(o.setQuickFilter(i.quickFilterText.currentValue),delete i.quickFilterText),i.autoGroupColumnDef&&(o.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.columnDefs&&(o.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs),i.defaultColDef&&(o.setDefaultColDef(i.defaultColDef.currentValue,"gridOptionsChanged"),delete i.defaultColDef),i.paginationPageSize&&(o.paginationSetPageSize(e.toNumber(i.paginationPageSize.currentValue)),delete i.paginationPageSize),i.pivotMode&&(r.setPivotMode(e.toBoolean(i.pivotMode.currentValue)),delete i.pivotMode),i.groupRemoveSingleChildren&&(o.setGroupRemoveSingleChildren(e.toBoolean(i.groupRemoveSingleChildren.currentValue)),delete i.groupRemoveSingleChildren),i.suppressRowDrag&&(o.setSuppressRowDrag(e.toBoolean(i.suppressRowDrag.currentValue)),delete i.suppressRowDrag),i.suppressMoveWhenRowDragging&&(o.setSuppressMoveWhenRowDragging(e.toBoolean(i.suppressMoveWhenRowDragging.currentValue)),delete i.suppressMoveWhenRowDragging),i.suppressRowClickSelection&&(o.setSuppressRowClickSelection(e.toBoolean(i.suppressRowClickSelection.currentValue)),delete i.suppressRowClickSelection),i.suppressClipboardPaste&&(o.setSuppressClipboardPaste(e.toBoolean(i.suppressClipboardPaste.currentValue)),delete i.suppressClipboardPaste),i.headerHeight&&(o.setHeaderHeight(e.toNumber(i.headerHeight.currentValue)),delete i.headerHeight);var l=o;Object.keys(i).forEach((function(e){var n="set"+e.charAt(0).toUpperCase()+e.substring(1);l[n]&&l[n](t[e].currentValue)}));var u={type:Ve.EVENT_COMPONENT_STATE_CHANGED,api:n.api,columnApi:n.columnApi};f(t,(function(e,t){u[e]=t})),o.dispatchEvent(u)}},e.toBoolean=function(e){return"boolean"===typeof e?e:"string"===typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"===typeof e?e:"string"===typeof e?Number(e):void 0},e.EVENTS=[],e.PUBLIC_EVENTS=[],e.EXCLUDED_INTERNAL_EVENTS=[],e.STRING_PROPERTIES=ft.STRING_PROPERTIES,e.OBJECT_PROPERTIES=ft.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=ft.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=ft.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=ft.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=ft.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=ft.ALL_PROPERTIES,e}();yt.EVENTS=p(Ve),yt.EXCLUDED_INTERNAL_EVENTS=[Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,Ve.EVENT_CHECKBOX_CHANGED,Ve.EVENT_HEIGHT_SCALE_CHANGED,Ve.EVENT_BODY_HEIGHT_CHANGED,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,Ve.EVENT_COLUMN_HOVER_CHANGED,Ve.EVENT_FLASH_CELLS,Ve.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,Ve.EVENT_DISPLAYED_ROWS_CHANGED,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,Ve.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,Ve.EVENT_POPUP_TO_FRONT,Ve.EVENT_KEYBOARD_FOCUS,Ve.EVENT_MOUSE_FOCUS,Ve.EVENT_STORE_UPDATED,Ve.EVENT_COLUMN_PANEL_ITEM_DRAG_START,Ve.EVENT_COLUMN_PANEL_ITEM_DRAG_END,Ve.EVENT_FILL_START,Ve.EVENT_FILL_END,Ve.EVENT_FULL_WIDTH_ROW_FOCUSED],yt.PUBLIC_EVENTS=yt.EVENTS.filter((function(e){return!me(yt.EXCLUDED_INTERNAL_EVENTS,e)}));var Ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Ct(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach((function(e){return t.addComponent(e)}))},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=wt([q("agStackComponentsRegistry")],t)}(Fe),bt=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Et=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(bt(arguments[t]));return e},St=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","filter","initialAggFunc","defaultAggFunc","aggFunc","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","floatingFilterFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=Et(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Rt=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Ot=function(){function e(e,t,n,o){void 0===o&&(o=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,o||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var n=e.nameToHex[t];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.parseHex=function(e){var t;switch((e=e.replace(/ /g,"").slice(1)).length){case 6:case 8:t=[];for(var n=0;n<e.length;n+=2)t.push(parseInt(""+e[n]+e[n+1],16));break;case 3:case 4:t=e.split("").map((function(e){return parseInt(e,16)})).map((function(e){return e+16*e}))}if(t.length>=3&&t.every((function(e){return e>=0})))return 3===t.length&&t.push(255),t},e.fromHexString=function(t){var n=e.parseHex(t);if(n){var o=Rt(n,4);return new e(o[0]/255,o[1]/255,o[2]/255,o[3]/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.stringToRgba=function(e){for(var t=Rt([NaN,NaN],2),n=t[0],o=t[1],r=0;r<e.length;r++){var i=e[r];if(n||"("!==i){if(")"===i){o=r;break}}else n=r}var s=n&&o&&e.substring(n+1,o);if(s){var a=s.split(","),l=[];for(r=0;r<a.length;r++){var u=a[r],c=parseFloat(u);if(isNaN(c))return;u.indexOf("%")>=0?(c=Math.max(0,Math.min(100,c)),c/=100):3===r?c=Math.max(0,Math.min(1,c)):(c=Math.max(0,Math.min(255,c)),c/=255),l.push(c)}return l}},e.fromRgbaString=function(t){var n=e.stringToRgba(t);if(n){if(3===n.length)return new e(n[0],n[1],n[2]);if(4===n.length)return new e(n[0],n[1],n[2],n[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,o,r){void 0===r&&(r=1);var i=e.HSBtoRGB(t,n,o);return new e(i[0],i[1],i[2],r)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,n){var o=Math.min(e,t,n),r=Math.max(e,t,n),i=NaN;if(o!==r){var s=r-o,a=(r-e)/s,l=(r-t)/s,u=(r-n)/s;i=e===r?u-l:t===r?2+a-u:4+l-a,(i/=6)<0&&(i+=1)}return[360*i,0!==r?(r-o)/r:0,r]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var o=0,r=0,i=0;if(0===t)o=r=i=n;else{var s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=n*(1-t),u=n*(1-t*a),c=n*(1-t*(1-a));switch(s>>0){case 0:o=n,r=c,i=l;break;case 1:o=u,r=n,i=l;break;case 2:o=l,r=n,i=c;break;case 3:o=l,r=u,i=n;break;case 4:o=c,r=l,i=n;break;case 5:o=n,r=l,i=u}}return[o,r,i]},e.prototype.derive=function(t,n,o,r){var i=e.RGBtoHSB(this.r,this.g,this.b),s=i[2];0==s&&o>1&&(s=.05);var a=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*n,1),0);s=Math.max(Math.min(s*o,1),0);var u=Math.max(Math.min(this.a*r,1),0),c=e.HSBtoRGB(a,l,s);return c.push(u),e.fromArray(c)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();function Pt(e,t){void 0===t&&(t=",");var n=[],o=function(e){return"\r"===e||"\n"===e},r=!1;if(""===e)return[[""]];for(var i,s,a,l=function(l,u,c){var p=e[c-1],d=e[c],h=e[c+1],f=function(){n[l]||(n[l]=[]),n[l][u]||(n[l][u]="")};if(f(),'"'===d){if(r)return'"'===h?(n[l][u]+='"',c++):r=!1,i=l,s=u,a=c,"continue";if(void 0===p||p===t||o(p))return r=!0,i=l,s=u,a=c,"continue"}if(!r){if(d===t)return u++,f(),i=l,s=u,a=c,"continue";if(o(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&c++,i=l,s=u,a=c,"continue"}n[l][u]+=d,i=l,s=u,a=c},u=0,c=0,p=0;p<e.length;p++)l(u,c,p),u=i,c=s,p=a;return n}var Tt,At,Dt,xt,Nt,Lt,It,Mt,Ft=Object.freeze({stringToArray:Pt}),kt=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Gt(){return void 0===Dt&&(void 0===At&&(At=!!document.documentMode),Dt=!At&&!!window.StyleMedia),Dt}function Ht(){return void 0===Tt&&(Tt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Tt}function Wt(){if(void 0===xt){var e=window;xt=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return xt}function Vt(){if(void 0===Nt){var e=window;Nt="undefined"!==typeof e.InstallTrigger}return Nt}function jt(){return void 0===Lt&&(Lt=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),Lt}function Bt(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute("tabIndex");return-1!==t||null!==n&&(""!==n||Vt())?t.toString():null}function zt(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var o=2*e;if(n.style.height=o+"px",o>t||n.clientHeight!==o)break;e=o}return document.body.removeChild(n),e}function Ut(){return null==Mt&&Kt(),Mt}function Kt(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var n=t.offsetWidth-t.clientWidth;0===n&&0===t.clientWidth&&(n=null),t.parentNode&&t.parentNode.removeChild(t),null!=n&&(Mt=n,It=0===n)}function qt(){return null==It&&Kt(),It}function Yt(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function Zt(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var $t,Xt=Object.freeze({isBrowserEdge:Gt,isBrowserSafari:Ht,isBrowserChrome:Wt,isBrowserFirefox:Vt,isIOSUserAgent:jt,getTabIndex:Bt,getMaxDivHeight:zt,getScrollbarWidth:Ut,isInvisibleScrollbar:qt,hasOverflowScrolling:function(){var e,t,n=["webkit","moz","o","ms"],o=document.createElement("div"),r=!1;document.getElementsByTagName("body")[0].appendChild(o),o.setAttribute("style",n.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var i=window.getComputedStyle(o);if("touch"===i.overflowScrolling&&(r=!0),!r)try{for(var s=kt(n),a=s.next();!a.done;a=s.next())if("touch"===i[a.value+"OverflowScrolling"]){r=!0;break}}catch(l){e={error:l}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return o.parentNode&&o.parentNode.removeChild(o),r},getBodyWidth:Yt,getBodyHeight:Zt});function Qt(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,oe.INPUT_SELECTOR),o=t.call(e,oe.FOCUSABLE_EXCLUDE),r=fn(e);return n&&!o&&r}function Jt(e,t){e.classList.toggle("ag-hidden",!t)}function en(e,t){e.classList.toggle("ag-invisible",!t)}function tn(e,t){var n="disabled",o=t?function(e){return e.setAttribute(n,"")}:function(e){return e.removeAttribute(n)};o(e),In(e.querySelectorAll("input"),(function(e){return o(e)}))}function nn(e,t,n){for(var o=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,n&&++o>n)break}return!1}function on(e){var t=window.getComputedStyle(e),n=t.height,o=t.width,r=t.paddingTop,i=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,l=t.marginTop,u=t.marginRight,c=t.marginBottom,p=t.marginLeft,d=t.boxSizing;return{height:parseFloat(n),width:parseFloat(o),paddingTop:parseFloat(r),paddingRight:parseFloat(i),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(u),marginBottom:parseFloat(c),marginLeft:parseFloat(p),boxSizing:d}}function rn(e){var t=on(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function sn(e){var t=on(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function an(e){var t=on(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function ln(e){var t=on(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function un(){if("boolean"===typeof $t)return $t;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='<div style="width: 2px">\n <span style="display: inline-block; width: 1px"></span>\n <span style="display: inline-block; width: 1px"></span>\n </div>',document.body.appendChild(e),e.scrollLeft=1,$t=0===Math.floor(e.scrollLeft),document.body.removeChild(e),$t}function cn(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),Wt()&&!un()&&(n=e.scrollWidth-e.clientWidth-n)),n}function pn(e,t,n){n&&(un()?t*=-1:(Ht()||Wt())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function dn(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function hn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function fn(e){return null!==e.offsetParent}function gn(e){if(null!==DOMParser)return(new DOMParser).parseFromString(e,"text/html").body.firstChild;var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function mn(e){return e&&e.clientHeight?e.clientHeight:0}function vn(e){return e&&e.clientWidth?e.clientWidth:0}function yn(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function Cn(e,t){for(var n=0;n<t.length;n++){var o=t[n],r=e.children[n];r!==o&&e.insertBefore(o,r)}}function wn(e,t,n){n?n.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function _n(e,t){t&&Object.keys(t).forEach((function(n){var o=Ke(n);o&&(e.style[o]=t[n])}))}function bn(e){return e.clientWidth<e.scrollWidth}function En(e){return e.clientHeight<e.scrollHeight}function Sn(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Rn(e,t)}function Rn(e,t){t=Pn(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function On(e,t){t=Pn(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Pn(e){return"number"===typeof e?e+"px":e}function Tn(e){return"function"===typeof Node?e instanceof Node:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName}function An(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&R(e)&&1===e.nodeType&&"string"===typeof e.nodeName}function Dn(e){return Tn(e)||An(e)}function xn(e){if(null==e)return[];var t=[];return In(e,(function(e){return t.push(e)})),t}function Nn(e,t){if(e)for(var n=0;n<e.length;n++){var o=e[n];t(o.name,o.value)}}function Ln(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n.toString())}function In(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n])}var Mn=Object.freeze({radioCssClass:function(e,t,n){for(var o=e.parentElement,r=o&&o.firstChild;r;)t&&r.classList.toggle(t,r===e),n&&r.classList.toggle(n,r!==e),r=r.nextSibling},isFocusableFormField:Qt,setDisplayed:Jt,setVisible:en,setDisabled:tn,isElementChildOfClass:nn,getElementSize:on,getInnerHeight:rn,getInnerWidth:sn,getAbsoluteHeight:an,getAbsoluteWidth:ln,isRtlNegativeScroll:un,getScrollLeft:cn,setScrollLeft:pn,clearElement:dn,removeElement:function(e,t){hn(e.querySelector(t))},removeFromParent:hn,isVisible:fn,loadTemplate:gn,appendHtml:function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},getElementAttribute:function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},offsetHeight:mn,offsetWidth:vn,ensureDomOrder:yn,setDomChildOrder:Cn,insertWithDomOrder:wn,prependDC:function(e,t){r(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:_n,isHorizontalScrollShowing:bn,isVerticalScrollShowing:En,setElementWidth:Sn,setFixedWidth:Rn,setElementHeight:function(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):On(e,t)},setFixedHeight:On,formatSize:Pn,isNode:Tn,isElement:An,isNodeOrElement:Dn,copyNodeList:xn,iterateNamedNodeMap:Nn,setCheckboxState:function(e,t){"boolean"===typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},addOrRemoveAttribute:Ln,nodeListForEach:In});var Fn=Object.freeze({getNameOfClass:function(e){var t=e.toString(),n=/function (.{1,})\(/.exec(t);return n&&n.length>1?n[1]:""},findLineByLeastSquares:function(e){var t=e.length,n=0;if(t<=1)return e;for(var o=0;o<e.length;o++){var r=e[o],i=r.toString().split("e-");i.length>1?n=Math.max(n,parseInt(i[1],10)):Math.floor(r)!==r&&(n=Math.max(n,r.toString().split(".")[1].length))}for(var s=0,a=0,l=0,u=0,c=0,p=0;p<t;p++)s+=p,a+=c=e[p],u+=p*p,l+=p*c;var d=(t*l-s*a)/(t*u-s*s),h=a/t-d*s/t,f=[];for(p=0;p<=t;p++)f.push(parseFloat((p*d+h).toFixed(n)));return f},cssStyleObjectToMarkup:function(e){if(!e)return"";var t=[];return f(e,(function(e,n){var o=Ue(e);t.push(o+": "+n+";")})),t.join(" ")},message:function(e){var t=document.createElement("div"),n=document.querySelector("#__ag__message");if(t.innerHTML=e,!n){n=gn('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(n)}n.insertBefore(t,n.children[0])},bindCellRendererToHtmlElement:function(e,t){e.then((function(e){var n=e.getGui();null!=n&&("object"===typeof n?t.appendChild(n):t.innerHTML=n)}))}});function kn(e,t,n){e.setAttribute(Hn(t),n.toString())}function Gn(e,t){e.removeAttribute(Hn(t))}function Hn(e){return"aria-"+e}function Wn(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Vn(e){return e.isSortAscending()?"ascending":e.isSortDescending()?"descending":"none"}function jn(e){return parseInt(e.getAttribute("aria-level"),10)}function Bn(e){return parseInt(e.getAttribute("aria-posinset"),10)}function zn(e,t){var n="label";t?kn(e,n,t):Gn(e,n)}function Un(e,t){var n="labelledby";t?kn(e,n,t):Gn(e,n)}function Kn(e,t){var n="description";t?kn(e,n,t):Gn(e,n)}function qn(e,t){var n="describedby";t?kn(e,n,t):Gn(e,n)}function Yn(e,t){kn(e,"level",t)}function Zn(e,t){kn(e,"disabled",t)}function $n(e,t){kn(e,"expanded",t)}function Xn(e){Gn(e,"expanded")}function Qn(e,t){kn(e,"setsize",t)}function Jn(e,t){kn(e,"posinset",t)}function eo(e,t){kn(e,"multiselectable",t)}function to(e,t){kn(e,"rowcount",t)}function no(e,t){kn(e,"rowindex",t)}function oo(e,t){kn(e,"colcount",t)}function ro(e,t){kn(e,"colindex",t)}function io(e,t){kn(e,"colspan",t)}function so(e,t){kn(e,"sort",t)}function ao(e){Gn(e,"sort")}function lo(e,t){var n="selected";t?kn(e,n,t):Gn(e,n)}function uo(e,t){kn(e,"checked",void 0===t?"mixed":t)}var co=Object.freeze({setAriaRole:Wn,getAriaSortState:Vn,getAriaLevel:jn,getAriaPosInSet:Bn,getAriaDescribedBy:function(e){return e.getAttribute("aria-describedby")||""},setAriaLabel:zn,setAriaLabelledBy:Un,setAriaDescription:Kn,setAriaDescribedBy:qn,setAriaLevel:Yn,setAriaDisabled:Zn,setAriaExpanded:$n,removeAriaExpanded:Xn,setAriaSetSize:Qn,setAriaPosInSet:Jn,setAriaMultiSelectable:eo,setAriaRowCount:to,setAriaRowIndex:no,setAriaColCount:oo,setAriaColIndex:ro,setAriaColSpan:io,setAriaSort:so,removeAriaSort:ao,setAriaSelected:lo,setAriaChecked:uo});function po(e,t){return e.toString().padStart(t,"0")}function ho(e,t){for(var n=[],o=e;o<=t;o++)n.push(o);return n}function fo(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function go(e,t,n){return"number"!==typeof e?"":e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}var mo=Object.freeze({padStartWidthZeros:po,createArrayOfNumbers:ho,isNumeric:fo,cleanNumber:function(e){return"string"===typeof e&&(e=parseInt(e,10)),"number"===typeof e?Math.floor(e):null},decToHex:function(e,t){for(var n="",o=0;o<t;o++)n+=String.fromCharCode(255&e),e>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e,t,n){return"number"!==typeof e?"":go(Math.round(100*e)/100,t,n)},formatNumberCommas:go,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}}),vo=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s};function yo(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n="-"),!e)return null;var o=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return po(e,2)})).join(n);return t&&(o+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return po(e,2)})).join(":")),o}function Co(e){if(!e)return null;var t=vo(e.split(" "),2),n=t[0],o=t[1];if(!n)return null;var r=n.split("-").map((function(e){return parseInt(e,10)}));if(3!==r.filter((function(e){return!isNaN(e)})).length)return null;var i=vo(r,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(!o||"00:00:00"===o)return u;var c=vo(o.split(":").map((function(e){return parseInt(e,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 wo=Object.freeze({serialiseDate:yo,parseDateTimeFromString:Co});function _o(e,t,n){var o={},r=e.filter((function(e){return!t.some((function(t){return t===e}))}));return r.length>0&&r.forEach((function(e){return o[e]=bo(e,n)})),o}function bo(e,t,n,o){var r=o?Ro:So,i=t.map((function(t){return{value:t,relevance:r(e.toLowerCase(),t.toLocaleLowerCase())}}));return i.sort((function(e,t){return t.relevance-e.relevance})),n&&(i=i.filter((function(e){return 0!==e.relevance}))),i.map((function(e){return e.value}))}function Eo(e){var t,n,o,r=e.toLowerCase(),i=new Array(r.length-1);for(t=n=0,o=i.length;n<=o;t=n+=1)i[t]=r.slice(t,t+2);return i}function So(e,t){if(0===e.length&&0===t.length)return 0;var n,o,r=Eo(e),i=Eo(t),s=r.length+i.length,a=0;for(n=0,o=r.length;n<o;n++){var l,u=r[n],c=void 0;for(c=0,l=i.length;c<l;c++){u===i[c]&&a++}}return a>0?2*a/s:0}function Ro(e,t){for(var n=e.replace(/\s/g,""),o=t.replace(/\s/g,""),r=0,i=0,s=0;s<n.length;s++){var a=o.indexOf(n[s],i);-1!==a&&(r+=100-100*(i=a)/1e4*100)}return r}var Oo=Object.freeze({fuzzyCheckStrings:_o,fuzzySuggestions:bo,get_bigrams:Eo,string_distances:So,string_weighted_distances:Ro}),Po={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};function To(e,t,n){var o=Ao(e,t,n);if(o&&o.className.indexOf("ag-icon")>-1)return o;var r=document.createElement("span");return r.appendChild(o),r}function Ao(e,t,n,o){var r=null,i=n&&n.getColDef().icons;if(i&&(r=i[e]),t&&!r){var s=t.getIcons();s&&(r=s[e])}if(!r){var a=document.createElement("span"),l=Po[e];return l||(o?l=e:(console.warn("AG Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),Wn(a,"presentation"),a}var u=void 0;if("function"===typeof r)u=r();else{if("string"!==typeof r)throw new Error("icon from grid options needs to be a string or a function");u=r}return"string"===typeof u?gn(u):Dn(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Do=Object.freeze({iconNameClassMap:Po,createIcon:To,createIconNoSpan:Ao});function xo(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;var t=1===e.key.length,n=function(e){return Gt()&&"Del"===e.key&&46===e.charCode}(e);return t||n}function No(e,t,n,o,r){var i=e.getSuppressKeyboardEventFunc(),s=o?o.getColDef().suppressKeyboardEvent:void 0;if(!i&&!s)return!1;var a={event:t,editing:r,column:o,api:e.getApi(),node:n,data:n.data,colDef:o.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};if(s&&s(a))return!0;return!!i&&i(a)}function Lo(e,t,n,o){var i=o.getDefinition(),s=i&&i.suppressHeaderKeyboardEvent;return!!r(s)&&!!s({api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext(),colDef:i,column:o,headerRowIndex:n,event:t})}var Io=Object.freeze({isEventFromPrintableCharacter:xo,isUserSuppressingKeyboardEvent:No,isUserSuppressingHeaderKeyboardEvent:Lo});function Mo(e,t,n){if(0===n)return!1;var o=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY);return Math.max(o,r)<=n}var Fo=Object.freeze({areEventsNear:Mo});var ko=Object.freeze({sortRowNodesByOrder:function(e,t){if(e){for(var n=function(e,n){var o=t[e.id],r=t[n.id],i=void 0!==o,s=void 0!==r;return i&&s?o-r:!i&&!s?e.__objectId-n.__objectId:i?1:-1},o=!1,r=0;r<e.length-1;r++)if(n(e[r],e[r+1])>0){o=!0;break}o&&e.sort(n)}},traverseNodesWithKey:function(e,t){var n=[];!function e(o){if(!o)return;o.forEach((function(o){if(o.group||o.hasChildren()){n.push(o.key);var r=n.join("|");t(o,r),e(o.childrenAfterGroup),n.pop()}}))}(e)}});function Go(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var Ho,Wo=Object.freeze({convertToSet:Go}),Vo=function(){return Vo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Vo.apply(this,arguments)},jo=Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo({},Fn),co),ye),Xt),Ft),wo),Mn),Ie),j),Oo),d),Do),Io),Qe),Fo),mo),O),ko),Wo),$e),Bo=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();(Ho=t.AgPromiseStatus||(t.AgPromiseStatus={}))[Ho.IN_PROGRESS=0]="IN_PROGRESS",Ho[Ho.RESOLVED=1]="RESOLVED";var zo,Uo=function(){function e(e){var n=this;this.status=t.AgPromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],e((function(e){return n.onDone(e)}),(function(e){return n.onReject(e)}))}return e.all=function(t){return new e((function(e){var n=t.length,o=new Array(n);t.forEach((function(t,r){t.then((function(t){o[r]=t,0===--n&&e(o)}))}))}))},e.resolve=function(t){return void 0===t&&(t=null),new e((function(e){return e(t)}))},e.prototype.then=function(n){var o=this;return new e((function(e){o.status===t.AgPromiseStatus.RESOLVED?e(n(o.resolution)):o.waiters.push((function(t){return e(n(t))}))}))},e.prototype.resolveNow=function(e,n){return this.status===t.AgPromiseStatus.RESOLVED?n(this.resolution):e},e.prototype.onDone=function(e){this.status=t.AgPromiseStatus.RESOLVED,this.resolution=e,this.waiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),Ko=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}(),qo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yo=function(){return Yo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Yo.apply(this,arguments)},Zo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(zo||(zo={}));var $o=function(e){function t(t){var n=e.call(this)||this;return n.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,n.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=zo.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n}return qo(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!jt()&&this.state==zo.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=zo.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===zo.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=zo.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===zo.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=zo.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(n)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=Yo({},this.parentComp.getTooltipParams());if(r(e.value)){this.state=zo.SHOWING,this.tooltipInstanceCount++;var t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(t)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==zo.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var n=t.getGui();this.tooltipComp=t,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom");var o=this.gridOptionsWrapper.getLocaleTextFunc(),r=this.popupService.addPopup({eChild:n,ariaLabel:o("ariaLabelTooltip","Tooltip")});r&&(this.tooltipPopupDestroyFunc=r.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Zo([Y("popupService")],t.prototype,"popupService",void 0),Zo([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Zo([Y("columnApi")],t.prototype,"columnApi",void 0),Zo([Y("gridApi")],t.prototype,"gridApi",void 0),Zo([U],t.prototype,"postConstruct",null),t}(Fe),Xo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Jo=new Bo,er=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,n=(e||"").split(" ");n.length>1?n.forEach((function(e){return t.addCssClass(e)})):!0!==this.cssClassStates[e]&&e.length&&(this.getGui().classList.add(e),this.cssClassStates[e]=!0)},e.prototype.removeCssClass=function(e){var t=this,n=(e||"").split(" ");n.length>1?n.forEach((function(e){return t.removeCssClass(e)})):!1!==this.cssClassStates[e]&&e.length&&(this.getGui().classList.remove(e),this.cssClassStates[e]=!1)},e.prototype.containsCssClass=function(e){return this.getGui().classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,t){var n=this,o=(e||"").split(" ");o.length>1?o.forEach((function(e){return n.addOrRemoveCssClass(e,t)})):this.cssClassStates[e]!==t&&e.length&&(this.getGui().classList.toggle(e,t),this.cssClassStates[e]=t)},e}(),tr=function(e){function t(t){var n=e.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=Jo.next(),n.cssClassManager=new er((function(){return n.eGui})),t&&n.setTemplate(t),n}return Xo(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new $o(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var n=this;xn(e.childNodes).forEach((function(o){if(o instanceof HTMLElement){var r=n.createComponentFromElement(o,(function(e){e.getGui()&&n.copyAttributesFromNode(o,e.getGui())}),t);if(r){if(r.addItems&&o.children.length){n.createChildComponentsFromTags(o,t);var i=Array.prototype.slice.call(o.children);r.addItems(i)}n.swapComponentForNode(r,e,o)}else o.childNodes&&n.createChildComponentsFromTags(o,t)}}))},t.prototype.createComponentFromElement=function(e,n,o){var r=e.nodeName,i=o?o[e.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(r);if(s){t.elementGettingCreated=e;var a=new s(i);return a.setParentComponent(this),this.createBean(a,null,n),a}return null},t.prototype.copyAttributesFromNode=function(e,t){Nn(e.attributes,(function(e,n){return t.setAttribute(e,n)}))},t.prototype.swapComponentForNode=function(e,t,n){var o=e.getGui();t.replaceChild(o,n),t.insertBefore(document.createComment(n.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var n=this;this.iterateOverQuerySelectors((function(o){n[o.attributeName]===t&&(n[o.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var n=t.__agComponentMetaData,o=x(t.constructor);n&&n[o]&&n[o].querySelectors&&n[o].querySelectors.forEach((function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=gn(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(n){var o=function(e){return t[n.attributeName]=e};if(n.refSelector&&e.eGui.getAttribute("ref")===n.refSelector)o(e.eGui);else{var r=e.eGui.querySelector(n.querySelector);r&&o(r.__agComponent||r)}}))}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(t||(t=this.eGui),null!=e)if(Dn(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,n))}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,en(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,Jt(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var n=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return n.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){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,t){this.cssClassManager.addOrRemoveCssClass(e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Qo([Y("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Qo([z],t.prototype,"preConstructOnComponent",null),Qo([z],t.prototype,"createChildComponentsPreConstruct",null),t}(Fe);function nr(e){return or.bind(this,"[ref="+e+"]",e)}function or(e,t,n,o,r){null!==e?"number"!==typeof r?function(e,t,n){var o=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,x(e.constructor));o[t]||(o[t]=[]);o[t].push(n)}(n,"querySelectors",{attributeName:o,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var rr,ir=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ar=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return ir(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+n("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var o=n.getModelAsString(e);t.eFloatingFilterText.setValue(o)}})):this.eFloatingFilterText.setValue("")},sr([nr("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),sr([Y("columnModel")],t.prototype,"columnModel",void 0),t}(tr),lr=function(){function e(e,t,n,o){var r=this;this.alive=!0,this.context=e,this.eParent=o,t.getDateCompDetails(n).newAgStackInstance().then((function(t){r.alive?(r.dateComp=t,t&&(o.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),r.tempValue&&t.setDate(r.tempValue),null!=r.disabled&&r.setDateCompDisabled(r.disabled))):e.destroyBean(t)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){Jt(this.eParent,e)},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"===typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),ur=function(){return ur=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ur.apply(this,arguments)},cr=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e),this.checkForDeprecatedParams()},e.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){if("string"!==typeof t){if([["displayKey"],["displayName"],["predicate","test"]].every((function(e){return!!e.some((function(e){return null!=t[e]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+e+"'"),!1)}))){var n=t.test,o=ur({},t);null!=n&&null==t.predicate&&(o.predicate=function(e,t){return n(e[0],t)},delete o.test),o.hideFilterInput&&null==o.numberOfInputs&&(o.numberOfInputs=0,delete o.hideFilterInput),e.customFilterOptions[t.displayKey]=o}else e.filterOptions=e.filterOptions.filter((function(e){return e===t}))||[]}}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"===typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),pr={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},dr=function(){function e(){}return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.V="KeyV",e.D="KeyD",e.Z="KeyZ",e.Y="KeyY",e}(),hr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fr=function(){return fr=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},fr.apply(this,arguments)},gr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},mr=function(e){function t(t,n){void 0===n&&(n={});var o=e.call(this)||this;return o.eFocusableElement=t,o.callbacks=n,o.callbacks=fr({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},n),o}return hr(t,e),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 t=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||Pe(e)||(t.callbacks.shouldStopEventPropagation(e)?Oe(e):e.key===dr.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",gr([Y("focusService")],t.prototype,"focusService",void 0),gr([U],t.prototype,"postConstruct",null),t}(Fe),vr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cr=function(e){function t(t){var n=e.call(this)||this;return n.filterNameKey=t,n.applyActive=!1,n.hidePopup=null,n.appliedModel=null,n}return vr(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new mr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},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 t='\n <div class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n '+this.createBodyTemplate()+"\n </div>\n </div>";this.setTemplate(t,e)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var n=document.createElement("div");n.classList.add("ag-filter-apply-panel");Go(t).forEach((function(t){return function(t){var o,r;switch(t){case"apply":o=e.translate("applyFilter"),r=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":o=e.translate("clearFilter"),r=function(){return e.onBtClear()};break;case"reset":o=e.translate("resetFilter"),r=function(){return e.onBtReset()};break;case"cancel":o=e.translate("cancelFilter"),r=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var i=gn('<button\n type="button"\n ref="'+t+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+o+"\n </button>");n.appendChild(i),e.addManagedListener(i,"click",r)}(t)})),this.getGui().appendChild(n)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=G(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var t=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){t.updateUiVisibility(),t.applyModel()}))},t.prototype.onBtCancel=function(e){var t=this,n=this.getModel(),o=function(){t.onUiChanged(!1,"prevent"),t.providedFilterParams.closeOnApply&&t.close(e)};null!=n?this.setModelIntoUi(n).then(o):this.resetUiToDefaults().then(o)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var t=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(t,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onBtApply=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(n)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,n=e,o=n&&n.key;"Enter"!==o&&"Space"!==o||(t={keyboardEvent:n}),this.hidePopup(t),this.hidePopup=null}},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var n=this.isModelValid(this.getModelFromUi());tn(this.getRefElement("applyFilterButton"),!n)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,pr[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,n=t.api,o=t.colDef,r=t.column,i=t.columnApi,s=t.context;return this.providedFilterParams.valueGetter({api:n,colDef:o,column:r,columnApi:i,context:s,data:e.data,getValue:function(t){return e.data[t]},node:e})},yr([Y("rowModel")],t.prototype,"rowModel",void 0),yr([Y("valueService")],t.prototype,"valueService",void 0),yr([U],t.prototype,"postConstruct",null),t}(tr),wr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_r=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},br=function(e){function t(t,n){var o=e.call(this,n)||this;return o.labelSeparator="",o.labelAlignment="left",o.label="",o.config=t||{},o}return wr(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,n=e.label,o=e.labelWidth,r=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=o&&this.setLabelWidth(o),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){dn(this.eLabel),"string"===typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),Wn(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),Wn(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Sn(this.eLabel,e),this},_r([U],t.prototype,"postConstruct",null),t}(tr),Er=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sr=function(e){function t(t,n,o){var r=e.call(this,t,n)||this;return r.className=o,r.disabled=!1,r}return Er(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Rn(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e||(this.previousValue=this.value,this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return tn(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(br),Rr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Or=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pr=function(e){function t(t,n,o,r){var i=e.call(this,t,'<div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper"\n class="ag-wrapper ag-picker-field-wrapper"\n tabIndex="-1"\n aria-expanded="false"\n '+(r?'role="'+r+'"':"")+'\n >\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>',n)||this;return i.pickerIcon=o,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return Rr(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),qn(this.eWrapper,n);var o=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},r=this.getGui();if(this.addManagedListener(r,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&fn(t.pickerComponent.getGui())&&r.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(r,"keydown",(function(e){switch(e.key){case dr.UP:case dr.DOWN:case dr.ENTER:case dr.SPACE:o();case dr.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",o),this.addManagedListener(this.eLabel,"click",o),this.pickerIcon){var i=Ao(this.pickerIcon,this.gridOptionsWrapper);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){r(this.getLabel())?Un(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return zn(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return Sn(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Or([nr("eLabel")],t.prototype,"eLabel",void 0),Or([nr("eWrapper")],t.prototype,"eWrapper",void 0),Or([nr("eDisplayField")],t.prototype,"eDisplayField",void 0),Or([nr("eIcon")],t.prototype,"eIcon",void 0),t}(Sr),Tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ar=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Dr=function(e){function t(t){void 0===t&&(t="default");var n=e.call(this,'<div class="ag-list ag-'+t+'-list" role="listbox"></div>')||this;return n.cssIdentifier=t,n.options=[],n.itemEls=[],n}return Tr(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.key;switch(t){case dr.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case dr.DOWN:case dr.UP:var o=t===dr.DOWN,r=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(o?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),r=this.itemEls[i]}else r=this.itemEls[o?0:this.itemEls.length-1];this.highlightItem(r)}},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){var t=e.value,n=Ye(e.text||t);return this.options.push({value:t,text:n}),this.renderOption(t,n),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(t,n){Jn(t,n+1),Qn(t,e.length)}))},t.prototype.renderOption=function(e,t){var n=this,o=document.createElement("div");Wn(o,"option"),o.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),o.innerHTML="<span>"+t+"</span>",o.tabIndex=-1,this.itemEls.push(o),this.addManagedListener(o,"mouseover",(function(){return n.highlightItem(o)})),this.addManagedListener(o,"mouseleave",(function(){return n.clearHighlighted()})),this.addManagedListener(o,"click",(function(){return n.setValue(e)})),this.getGui().appendChild(o)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=this.options.findIndex((function(t){return t.value===e}));if(-1!==n){var o=this.options[n];this.value=o.value,this.displayValue=null!=o.text?o.text:o.value,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=this.options.findIndex((function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),lo(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),lo(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Sr.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",Ar([U],t.prototype,"init",null),t}(tr),xr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lr=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return xr(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new Dr("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Dr.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,Sr.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),n=this.gridOptionsWrapper.getDocument(),o=this.addManagedListener(n.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),r=this.addManagedListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()})),i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,r(),o(),e.isAlive()&&($n(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:i("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,Sn(t,ln(this.eWrapper)),$n(this.eWrapper,!0),t.style.maxHeight=rn(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,n,o){return this.value===t?this:(o||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},Nr([Y("popupService")],t.prototype,"popupService",void 0),Nr([U],t.prototype,"init",null),t}(Pr),Ir=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fr=function(e){function t(t,n,o,r){void 0===o&&(o="text"),void 0===r&&(r="input");var i=e.call(this,t,'\n <div role="presentation">\n <div ref="eLabel" class="ag-input-field-label"></div>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <'+r+' ref="eInput" class="ag-input-field-input"></'+r+">\n </div>\n </div>",n)||this;return i.inputType=o,i.displayFieldTag=r,i}return Ir(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,n=t.width,o=t.value;null!=n&&this.setWidth(n),null!=o&&this.setValue(o),this.addInputListeners()},t.prototype.refreshLabel=function(){r(this.getLabel())?Un(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){return e.setValue(t.target.value)}))},t.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Sn(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Ln(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return zn(this.eInput,e),this},t.prototype.setDisabled=function(t){return tn(this.eInput,t),e.prototype.setDisabled.call(this,t)},Mr([nr("eLabel")],t.prototype,"eLabel",void 0),Mr([nr("eWrapper")],t.prototype,"eWrapper",void 0),Mr([nr("eInput")],t.prototype,"eInput",void 0),t}(Sr),kr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(rr||(rr={}));var Hr,Wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kr(t,e),t.prototype.getNumberOfInputs=function(e){var n=this.optionsFactory.getCustomOption(e);if(n){var o=n.numberOfInputs;return null!=o?o:1}var r=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&r.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(rr.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(rr.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(rr.One),condition2:this.createCondition(rr.Two)}:this.createCondition(rr.One):null},t.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n,o=!e.operator,r=!t.operator;if(!o&&r||o&&!r)return!1;if(o){var i=e,s=t;n=this.areSimpleModelsEqual(i,s)}else{var a=e,l=t;n=a.operator===l.operator&&this.areSimpleModelsEqual(a.condition1,l.condition1)&&this.areSimpleModelsEqual(a.condition2,l.condition2)}return n},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,n="OR"===t.operator;this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(t.condition1.type),this.eType2.setValue(t.condition2.type),this.setConditionIntoUi(t.condition1,rr.One),this.setConditionIntoUi(t.condition2,rr.Two)}else{var o=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(o.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(o,rr.One),this.setConditionIntoUi(null,rr.Two)}return Uo.resolve()},t.prototype.doesFilterPass=function(e){var t=this,n=this.getModel();if(null==n)return!0;var o=n.operator,r=[];if(o){var i=n;r.push(i.condition1,i.condition2)}else r.push(n);return r[o&&"OR"===o?"some":"every"]((function(n){return t.individualConditionPasses(e,n)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new cr,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.alwaysShowBothConditions=!!t.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return me(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions(),n=[this.eType1,this.eType2];t.forEach((function(t){var o="string"===typeof t?e.createBoilerplateListOption(t):e.createCustomListOption(t);n.forEach((function(e){return e.addOption(o)}))})),n.forEach((function(e){return e.setDisabled(t.length<=1)}))},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.gridOptionsWrapper.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(rr.One)+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n </div>\n <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n '+this.createValueTemplate(rr.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,t=[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]],n=[this.eCondition1Body,this.eCondition2Body];t.forEach((function(t,n){var o=e.isConditionVisible(n),r=e.isConditionDisabled(n);t.forEach((function(e){e instanceof Fr||e instanceof Lr?(e.setDisabled(r),e.setDisplayed(o)):(tn(e,r),Jt(e,o))}))})),n.forEach((function(t,n){Jt(t,e.isConditionBodyVisible(n))})),this.forEachInput((function(t,n,o,r){e.setElementDisplayed(t,n<r),e.setElementDisabled(t,e.isConditionDisabled(o))})),this.resetPlaceholder()},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!t||!t.suppressFocus&&!this.isReadOnly()){var n=this.getInputs()[0][0];if(!n)return;n instanceof Fr&&n.getInputElement().focus()}},t.prototype.resetPlaceholder=function(){var e=this,t=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput((function(n,o,r,i){if(n instanceof Fr){var s=0===o&&i>1?"inRangeStart":0===o?"filterOoo":"inRangeEnd",a=0===o&&i>1?t("ariaFilterFromValue","Filter from value"):0===o?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(e.translate(s)),n.setInputAriaLabel(a)}}))},t.prototype.setElementValue=function(e,t,n){e instanceof Fr&&e.setValue(null!=t?String(t):null,n)},t.prototype.setElementDisplayed=function(e,t){e instanceof tr&&Jt(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof tr&&tn(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof Fr&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this,n=this.getInputs();this.getConditionTypes().forEach((function(o,r){for(var i=t.getNumberOfInputs(o),s=0;s<n[r].length;s++){var a=n[r][s];null!=a&&e(a,s,r,i)}}))},t.prototype.isConditionVisible=function(e){return 0===e||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(e):!!this.alwaysShowBothConditions||this.isConditionUiComplete(e-1))},t.prototype.isConditionDisabled=function(e){return!!this.isReadOnly()||(!this.isConditionVisible(e)||0!==e&&!this.isConditionUiComplete(e-1))},t.prototype.isConditionBodyVisible=function(e){if(!this.isConditionVisible(e))return!1;var t=this.getConditionTypes()[e];return this.getNumberOfInputs(t)>0},t.prototype.isConditionUiComplete=function(e){return this.getConditionTypes()[e]!==t.EMPTY&&!this.getValues(e).some((function(e){return null==e}))},t.prototype.resetUiToDefaults=function(e){var t=this,n=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),o="ag-simple-filter-and-or-"+this.getCompId(),r=this.optionsFactory.getDefaultOption();return this.eType1.setValue(r,e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(o).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(o).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(n){t.setElementValue(n,null,e),t.setElementDisabled(n,t.isReadOnly())})),this.resetPlaceholder(),Uo.resolve()},t.prototype.setConditionIntoUi=function(e,t){var n=this,o=this.mapValuesFromModel(e);this.forEachInput((function(e,r,i,s){i===t&&n.setElementValue(e,null!=o[r]?o[r]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(n,o,r,i){t.setElementValue(n,0===o&&0===r?e:null)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t),this.forEachInput((function(n){e.attachElementOnChange(n,t)}))}},t.prototype.individualConditionPasses=function(e,t){var n=this.getCellValue(e.node),o=this.mapValuesFromModel(t),r=this.optionsFactory.getCustomOption(t.type),i=this.evaluateCustomFilter(r,o,n);return null!=i?i:null==n?this.evaluateNullValue(t.type):this.evaluateNonNullValue(o,n,t,e)},t.prototype.evaluateCustomFilter=function(e,t,n){if(null!=e){var o=e.predicate;return null==o||t.some((function(e){return null==e}))?void 0:o(t,n)}},t.prototype.isBlank=function(e){return null==e||"string"===typeof e&&0===e.trim().length},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",Gr([nr("eOptions1")],t.prototype,"eType1",void 0),Gr([nr("eOptions2")],t.prototype,"eType2",void 0),Gr([nr("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),Gr([nr("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),Gr([nr("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),Gr([nr("eCondition1Body")],t.prototype,"eCondition1Body",void 0),Gr([nr("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(Cr),Vr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vr(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t},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,n,o){var r=this.comparator(),i=null!=e[0]?r(e[0],n):0;switch(o.type){case t.EQUALS:return 0===i;case t.NOT_EQUAL:return 0!==i;case t.GREATER_THAN:return i>0;case t.GREATER_THAN_OR_EQUAL:return i>=0;case t.LESS_THAN:return i<0;case t.LESS_THAN_OR_EQUAL:return i<=0;case t.IN_RANGE:var s=r(e[1],n);return this.scalarFilterParams.inRangeInclusive?i>=0&&s<=0:i>0&&s<0;case t.BLANK:return this.isBlank(n);case t.NOT_BLANK:return!this.isBlank(n);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}(Wr),Br=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zr=function(){return zr=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},zr.apply(this,arguments)},Ur=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kr=1/0,qr=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.minValidYear=1e3,t.maxValidYear=Kr,t}return Br(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateCondition1FromComp.afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.dateFrom,o=t.dateTo,r=t.type;return[n&&Co(n)||null,o&&Co(o)||null].slice(0,this.getNumberOfInputs(r))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t;var n=function(e,n){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?n:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return n};this.minValidYear=n("minValidYear",1e3),this.maxValidYear=n("maxValidYear",Kr),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t=function(t){return new lr(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},t)};this.dateCondition1FromComp=t(this.eCondition1PanelFrom),this.dateCondition1ToComp=t(this.eCondition1PanelTo),this.dateCondition2FromComp=t(this.eCondition2PanelFrom),this.dateCondition2ToComp=t(this.eCondition2PanelTo),this.addDestroyFunc((function(){e.forEachInput((function(e){return e.destroy()}))}))},t.prototype.setElementValue=function(e,t,n){e.setDate(t)},t.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},t.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+t+'PanelFrom"></div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+t+'PanelTo"></div>\n </div>'},t.prototype.isConditionUiComplete=function(t){var n=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var o=!0;return this.forEachInput((function(e,r,i,s){var a;i!==t||!o||r>=s||(o=o&&(null!=(a=e.getDate())&&a.getUTCFullYear()>=n.minValidYear&&a.getUTCFullYear()<=n.maxValidYear))})),o},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={},o=this.getValues(e);return o.length>0&&(n.dateFrom=yo(o[0])),o.length>1&&(n.dateTo=yo(o[1])),zr({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},n)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(n)}))},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var t=[];return this.forEachInput((function(n,o,r,i){e===r&&o<i&&t.push(n.getDate())})),t},t.DEFAULT_FILTER_OPTIONS=[jr.EQUALS,jr.GREATER_THAN,jr.LESS_THAN,jr.NOT_EQUAL,jr.IN_RANGE,jr.BLANK,jr.NOT_BLANK],Ur([nr("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),Ur([nr("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),Ur([nr("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),Ur([nr("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),Ur([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(jr),Yr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yr(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.getTextFromModel=function(e){if(!e)return null;if(null!=e.operator){var t=e,n=t||{},o=n.condition1,r=n.condition2,i=this.optionsFactory.getCustomOption(o.type),s=this.optionsFactory.getCustomOption(r.type);return[this.conditionToString(o,i),t.operator,this.conditionToString(r,s)].join(" ")}var a=e,l=this.optionsFactory.getCustomOption(a.type),u=l||{},c=u.displayKey,p=u.displayName,d=u.numberOfInputs;return c&&p&&0===d?(this.gridOptionsWrapper.getLocaleTextFunc()(c,p),p):this.conditionToString(a,l)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new cr,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveSingleInput=function(e){var t=(this.optionsFactory.getCustomOption(e)||{}).numberOfInputs;return null==t||1==t},t.prototype.isTypeEditable=function(e){var t=[Wr.IN_RANGE,Wr.EMPTY,Wr.BLANK,Wr.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},t}(tr),$r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qr=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex;"></div>\n </div>')||this}return $r(t,e),t.prototype.getDefaultFilterOptions=function(){return qr.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e,t){var n=e.type,o=(t||{}).numberOfInputs,r=n==Wr.IN_RANGE||2===o,i=Co(e.dateFrom),s=Co(e.dateTo);return r?yo(i,!1)+"-"+yo(s,!1):null!=i?""+yo(i,!1):""+n},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent();var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){Jt(this.eDateWrapper,e),Jt(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var o=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(o),o){if(t){var r=t;this.dateComp.setDate(Co(r.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=yo(this.dateComp.getDate());this.params.parentFilterInstance((function(n){if(n){var o=Co(t);n.onFloatingFilterChanged(e.getLastType()||null,o)}}))},t.prototype.createDateComponent=function(){var e=this,t=Cr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:G(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new lr(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},Xr([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Xr([nr("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Xr([nr("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Zr),Jr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ei=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ti=function(e){function t(){return e.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return Jr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,n=this.gridOptionsWrapper.getDocument(),o=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(o.type="date"),this.addManagedListener(o,"mousedown",(function(){t.eDateInput.isDisabled()||o.focus()})),this.addManagedListener(o,"input",(function(o){o.target===n.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())}));var r=e.filterParams||{},i=r.minValidYear,s=r.maxValidYear;i&&(o.min=i+"-01-01"),s&&(o.max=s+"-12-31")},t.prototype.getDate=function(){return Co(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(yo(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Wt()||Vt()},ei([nr("eDateInput")],t.prototype,"eDateInput",void 0),t}(tr),ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),oi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ri=function(e){function t(){return e.call(this,"numberFilter")||this}return ni(t,e),t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,o=t.filterTo,r=t.type;return[null==n?null:n,null==o?null:o].slice(0,this.getNumberOfInputs(r))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},t.prototype.setParams=function(t){this.numberFilterParams=t;var n=this.getAllowedCharPattern();if(n){var o={allowedCharPattern:n};this.resetTemplate({"eValue-index0-1":o,"eValue-index1-1":o,"eValue-index0-2":o,"eValue-index1-2":o})}e.prototype.setParams.call(this,t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2",n=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <'+n+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></'+n+">\n <"+n+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></'+n+">\n </div>"},t.prototype.getValues=function(e){var t=this,n=[];return this.forEachInput((function(o,r,i,s){e===i&&r<s&&n.push(t.stringToFloat(o.getValue()))})),n},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return"number"},t.prototype.stringToFloat=function(e){if("number"===typeof e)return e;var t=o(e);return null!=t&&""===t.trim()&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):null==t||"-"===t.trim()?null:parseFloat(t)},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},o=this.getValues(e);return o.length>0&&(n.filter=o[0]),o.length>1&&(n.filterTo=o[1]),n},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(Wt()||Gt()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[jr.EQUALS,jr.NOT_EQUAL,jr.LESS_THAN,jr.LESS_THAN_OR_EQUAL,jr.GREATER_THAN,jr.GREATER_THAN_OR_EQUAL,jr.IN_RANGE,jr.BLANK,jr.NOT_BLANK],oi([nr("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),oi([nr("eValue-index1-1")],t.prototype,"eValueTo1",void 0),oi([nr("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),oi([nr("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(jr),ii=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),si=function(){return si=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},si.apply(this,arguments)},ai=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},li=function(e){function t(){return e.call(this,"textFilter")||this}return ii(t,e),t.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(jo.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(t){var n=t.filterOption,o=t.value,r=t.filterText;return e(n,o,r)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},o=this.getValues(e);return o.length>0&&(n.filter=o[0]),o.length>1&&(n.filterTo=o[1]),n},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var n=this,r=[];return this.forEachInput((function(i,s,a,l){if(e===a&&s<l){var u=o(i.getValue()),c=(n.textFilterParams.trimInput?t.trimInput(u):u)||null;r.push(c),i.setValue(c,!0)}})),r},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></ag-input-text-field>\n <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></ag-input-text-field>\n </div>'},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,o=t.filterTo,r=t.type;return[n||null,o||null].slice(0,this.getNumberOfInputs(r))},t.prototype.evaluateNullValue=function(e){var t=[Wr.NOT_EQUAL,Wr.NOT_CONTAINS,Wr.BLANK];return!!e&&t.indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,t,n,o){var r=this,i=e.map((function(e){return r.formatter(e)}))||[],s=this.formatter(t),a=this.textFilterParams,l=a.api,u=a.colDef,c=a.column,p=a.columnApi,d=a.context,h=a.textFormatter;if(n.type===Wr.BLANK)return this.isBlank(t);if(n.type===Wr.NOT_BLANK)return!this.isBlank(t);var f={api:l,colDef:u,column:c,columnApi:p,context:d,node:o.node,data:o.data,filterOption:n.type,value:s,textFormatter:h};return i.some((function(e){return r.matcher(si(si({},f),{filterText:e}))}))},t.DEFAULT_FILTER_OPTIONS=[Wr.CONTAINS,Wr.NOT_CONTAINS,Wr.EQUALS,Wr.NOT_EQUAL,Wr.STARTS_WITH,Wr.ENDS_WITH,Wr.BLANK,Wr.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var n=e.filterOption,o=e.value,r=e.filterText;if(null==r)return!1;switch(n){case t.CONTAINS:return o.indexOf(r)>=0;case t.NOT_CONTAINS:return o.indexOf(r)<0;case t.EQUALS:return o===r;case t.NOT_EQUAL:return o!=r;case t.STARTS_WITH:return 0===o.indexOf(r);case t.ENDS_WITH:var i=o.lastIndexOf(r);return i>=0&&i===o.length-r.length;default:return!1}},ai([nr("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),ai([nr("eValue-index1-1")],t.prototype,"eValueTo1",void 0),ai([nr("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),ai([nr("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Wr),ui=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ci=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.postConstruct=function(){this.resetTemplate()},t.prototype.resetTemplate=function(e){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>\n ',e)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=Cr.isUseApplyButton(this.params.filterParams);var n=this.params.filterParams.allowedCharPattern;if(null!=n&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:n}}),!this.isReadOnly()){var o=Cr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=G(this.syncUpWithParentFilter.bind(this),o),i=this.eFloatingFilterInput.getGui();this.addManagedListener(i,"input",r),this.addManagedListener(i,"keypress",r),this.addManagedListener(i,"keydown",r)}var s=t.column.getDefinition();(this.isReadOnly()||s.filterParams&&s.filterParams.filterOptions&&1===s.filterParams.filterOptions.length&&"inRange"===s.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var a=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),l=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(a+" "+l("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=e.key===dr.ENTER;if(!this.applyActive||n){var o=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(o=li.trimInput(o),this.eFloatingFilterInput.setValue(o,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,o||null)}))}},t.prototype.conditionToString=function(e,t){var n=(t||{}).numberOfInputs;return e.type==Wr.IN_RANGE||2===n?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},ci([Y("columnModel")],t.prototype,"columnModel",void 0),ci([nr("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),ci([U],t.prototype,"postConstruct",null),t}(Zr),di=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return di(t,e),t.prototype.getDefaultFilterOptions=function(){return ri.DEFAULT_FILTER_OPTIONS},t}(pi),fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.getDefaultFilterOptions=function(){return li.DEFAULT_FILTER_OPTIONS},t}(pi),mi=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ne,this.eElement=e,this.preventMouseClick=t;var o=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",o,{passive:!0}),n.eElement.removeEventListener("touchmove",r,{passive:!0}),n.eElement.removeEventListener("touchend",i,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var n=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var o=this.touchStart;window.setTimeout((function(){var r=n.touchStart===o;if(n.touching&&r&&!n.moved){n.moved=!0;var i={type:e.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:t};n.eventService.dispatchEvent(i)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t)!Mo(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var n={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var n={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}(),vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return vi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)))},t.prototype.workOutTemplate=function(){var e=le(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=Ye(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var o=Ao(e,this.gridOptionsWrapper,n);o&&t.appendChild(o)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new mi(this.getGui(),!0),o=t.isSuppressMenuHide(),i=o&&r(this.eMenu),s=i?new mi(this.eMenu,!0):n;if(this.params.enableMenu){var a=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,mi[a],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(n,mi.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),i&&this.addDestroyFunc((function(){return s.destroy()}))}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),t=jt()&&e;return this.params.enableMenu&&!t},t.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",t)}else hn(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.removeSortIcons=function(){hn(this.eSortAsc),hn(this.eSortDesc),hn(this.eSortNone),hn(this.eSortOrder)},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.currentSort){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,ae.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(n){var o=e.params.column.isMoving(),r=(new Date).getTime()-e.lastMovingChanged<50;if(!(o||r)){var i=t?n.ctrlKey||n.metaKey:n.shiftKey;e.params.progressSort(i)}})),this.addManagedListener(this.params.column,ae.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(this.addOrRemoveCssClass("ag-header-cell-sorted-asc",this.params.column.isSortAscending()),this.addOrRemoveCssClass("ag-header-cell-sorted-desc",this.params.column.isSortDescending()),this.addOrRemoveCssClass("ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),n=t.indexOf(e),o=t.length>1,r=e.isSorting()&&o;Jt(this.eSortOrder,r),n>=0?this.eSortOrder.innerHTML=(n+1).toString():dn(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ae.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n <span ref="eText" class="ag-header-cell-text"></span>\n <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span>\n <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span>\n <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span>\n <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span>\n </div>\n </div>',yi([Y("sortController")],t.prototype,"sortController",void 0),yi([Y("menuFactory")],t.prototype,"menuFactory",void 0),yi([nr("eFilter")],t.prototype,"eFilter",void 0),yi([nr("eSortAsc")],t.prototype,"eSortAsc",void 0),yi([nr("eSortDesc")],t.prototype,"eSortDesc",void 0),yi([nr("eSortNone")],t.prototype,"eSortNone",void 0),yi([nr("eSortOrder")],t.prototype,"eSortOrder",void 0),yi([nr("eMenu")],t.prototype,"eMenu",void 0),yi([nr("eLabel")],t.prototype,"eLabel",void 0),yi([nr("eText")],t.prototype,"eText",void 0),t}(tr),wi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_i=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return wi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){if(this.params.template){D((function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Pe(t)){var n=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){Oe(e)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var o=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(o,_e.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(o,_e.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new mi(e,!0);this.addManagedListener(n,mi.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();Jt(this.eOpenIcon,e),Jt(this.eCloseIcon,!e)}else Jt(this.eOpenIcon,!1),Jt(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=Ao(e,this.gridOptionsWrapper,null);n&&this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Jt(this.eOpenIcon,!1),void Jt(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(r(e)){var t=Ye(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n </div>',_i([Y("columnModel")],t.prototype,"columnModel",void 0),_i([nr("agOpened")],t.prototype,"eOpenIcon",void 0),_i([nr("agClosed")],t.prototype,"eCloseIcon",void 0),t}(tr),Ei=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ei(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){t.addCssClass("ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&t.getGui().classList.remove("ag-has-popup"),e.prototype.destroy.call(this)},t}(tr),Ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ri(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),r(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.key;(t===dr.LEFT||t===dr.UP||t===dr.RIGHT||t===dr.DOWN||e.shiftKey&&t===dr.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',Oi([nr("eTextArea")],t.prototype,"eTextArea",void 0),t}(Si),Ti=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ai=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Di=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return t.startedByEnter=!1,t}return Ti(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,i(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===dr.ENTER;var n=!1;e.values.forEach((function(o){var r={value:o},i=t.valueFormatterService.formatValue(e.column,null,null,o),s=null!==i&&void 0!==i;r.text=s?i:o,t.eSelect.addOption(r),n=n||e.value===o})),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Ai([Y("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ai([nr("eSelect")],t.prototype,"eSelect",void 0),t}(Si),xi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ni=function(e){function t(){var t=e.call(this)||this;return D((function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')}),"PopupSelectCellEditor.deprecated"),t}return xi(t,e),t.prototype.isPopup=function(){return!0},t}(Di),Li=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ii=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Mi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Li(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===dr.BACKSPACE||e.eventKey===dr.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==dr.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&n.setValue(t,!0),this.addManagedListener(n.getGui(),"keydown",(function(e){var t=e.key;t!==dr.PAGE_UP&&t!==dr.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){Ht()||t.getFocusableElement().focus();var n=t.getInputElement();if(this.highlightAllOnFocus)n.select();else{var o=t.getValue(),i=r(o)&&o.length||0;i&&n.setSelectionRange(i,i)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-cell-edit-wrapper"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',Ii([nr("eInput")],t.prototype,"eInput",void 0),t}(Si),Fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ki=function(e){function t(){var t=e.call(this)||this;return D((function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')}),"PopupTextCellEditor.deprecated"),t}return Fi(t,e),t.prototype.isPopup=function(){return!0},t}(Mi),Gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return Gi(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var n=Math.abs(t),o=e.formatValue(n),i=r(o)?o:n,s=t>=0;this.eDelta.innerHTML=s?"\u2191"+i:"\u2193"+i,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),dn(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(r(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:r(e.value)?this.eValue.innerHTML=t:dn(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"===typeof t&&"number"===typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',Hi([Y("filterManager")],t.prototype,"filterManager",void 0),t}(tr),Vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ji=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(".ag-value-slide-current"),n}return Vi(t,e),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=gn('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;return i(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,r(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:r(e.value)?this.eCurrent.innerHTML=t:dn(this.eCurrent),!0))},t.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',ji([Y("filterManager")],t.prototype,"filterManager",void 0),t}(tr);(Hr=t.RowHighlightPosition||(t.RowHighlightPosition={}))[Hr.Above=0]="Above",Hr[Hr.Below=1]="Below";var zi,Ui,Ki,qi=function(){function e(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.onRowHeightChangedDebounced=G(this.onRowHeightChanged.bind(this),100),this.beans=t}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var n=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(o)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,o){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:o}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return this.rowPinned===oe.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===oe.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var n=r(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.beans.selectionService.syncInRowNode(this,n),this.checkRowSelectable();var i=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(t){var n=this.beans.gridOptionsWrapper.getRowIdFunc();if(n)if(this.data){var o=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:o.length>0?o:void 0,level:this.level}),null!==this.id&&"string"===typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!==typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],n=this;for(e&&(n=n.parent);n&&n.level>=0;)t.push(n.key),n=n.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!r(this.rowTop)||!r(this.rowHeight))&&(e>=this.rowTop&&e<this.rowTop+this.rowHeight)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},e.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},e.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setGroup=function(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_GROUP_CHANGED)))},e.prototype.setRowHeight=function(t,n){void 0===n&&(n=!1),this.rowHeight=t,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowAutoHeight=function(e,t){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=G(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},e.prototype.checkAutoHeights=function(){var e=!1,t=!0,n=0,o=this.__autoHeights;null!=o&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(r){var i=o[r.getId()];null!=i?(t=!1,i>n&&(n=i)):e=!0})),e||((t||n<10)&&(n=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),n!=this.rowHeight&&(this.setRowHeight(n),this.onRowHeightChangedDebounced())))},e.prototype.onRowHeightChanged=function(){var e=this.beans.rowModel;e.onRowHeightChanged&&e.onRowHeightChanged()},e.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t,n){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=Object.assign({},this.createGlobalRowEvent(Ve.EVENT_ROW_GROUP_OPENED),{expanded:t,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(o),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,n){var o=this.beans.columnModel.getPrimaryColumn(e),r=this.beans.valueService.getValue(o,this),i=this.beans.valueService.setValue(this,o,t,n);return this.dispatchCellChangedEvent(o,t,r),i},e.prototype.setGroupValue=function(e,t){var n=this.beans.columnModel.getGridColumn(e);i(this.groupData)&&(this.groupData={});var o=n.getColId(),r=this.groupData[o];r!==t&&(this.groupData[o]=t,this.dispatchCellChangedEvent(n,t,r))},e.prototype.setAggData=function(e){var t=this,n=w([this.aggData,e]),o=this.aggData;this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.beans.columnModel.getGridColumn(e),r=t.aggData?t.aggData[e]:void 0,i=o?o[e]:void 0;t.dispatchCellChangedEvent(n,r,i)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&s(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n,o){var r={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:o};this.dispatchLocalEvent(r)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t,n=!1,o=!1,r=!1;if(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length){for(var i=0;i<this.childrenAfterGroup.length;i++){var s=this.childrenAfterGroup[i];if(s.selectable)switch(s.isSelected()){case!0:n=!0;break;case!1:o=!0;break;default:r=!0}}t=r?void 0:!(!n||o)||!(!n&&o)&&void 0,this.selectThisNode(t)}},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===oe.PINNED_TOP||this.rowPinned===oe.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t,n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,r=!0===e.clearSelection,i=!0===e.suppressFinishActions,s=!0===e.rangeSelect,a=n&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(s&&this.beans.selectionService.getLastSelectedNode()){var l=this.beans.selectionService.getLastSelectedNode()!==this,u=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(l&&u){var c=this.doRowRangeSelection(e.newValue);return this.beans.selectionService.setLastSelectedNode(this),c}}var p=0;a&&this.group||this.selectThisNode(o)&&p++;if(n&&(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length)&&(p+=this.selectChildNodes(o,a)),!i){if(o&&(r||!this.beans.gridOptionsWrapper.isRowSelectionMulti())&&(p+=this.beans.selectionService.clearOtherNodes(this)),p>0){this.beans.selectionService.updateGroupsFromChildrenSelections();var d={type:Ve.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};this.beans.eventService.dispatchEvent(d)}o&&this.beans.selectionService.setLastSelectedNode(this)}return p},e.prototype.doRowRangeSelection=function(e){var t=this;void 0===e&&(e=!0);var n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=this.beans.selectionService.getLastSelectedNode(),r=this.beans.rowModel.getNodesInRangeForSelection(this,o),i=0;r.forEach((function(o){o.group&&n||!1===e&&t===o||o.selectThisNode(e)&&i++})),this.beans.selectionService.updateGroupsFromChildrenSelections();var s={type:Ve.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};return this.beans.eventService.dispatchEvent(s),i},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){var n=!this.selectable&&t,o=this.selected===t;if(n||o)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var r=this.createGlobalRowEvent(Ve.EVENT_ROW_SELECTED);return this.beans.eventService.dispatchEvent(r),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterAggFilter:this.childrenAfterGroup;if(i(n))return 0;for(var o=0,r=0;r<n.length;r++)o+=n[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return o},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new ne),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService&&(this.eventService.removeEventListener(e,t),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t=this,n=!0,o=!1,i=null;n&&!o;){var s=t.parent;r(s)&&t.firstChild?s.rowGroupColumn===e&&(o=!0,i=s):n=!1,t=s}return o?i:null},e.prototype.isFullWidthCell=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e({rowNode:this})},e.prototype.getRoute=function(){if(null!=this.key){for(var e=[],t=this;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}},e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MASTER_CHANGED="masterChanged",e.EVENT_GROUP_CHANGED="groupChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_DISPLAYED_CHANGED="displayedChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",e}(),Yi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},$i=function(e){function t(){return e.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return Yi(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),o=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(o+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return Oe(e)})),this.addGuiEventListener("dblclick",(function(e){return Oe(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){var n=t.eCheckbox.getValue();void 0===t.eCheckbox.getPreviousValue()||void 0===n?0===t.onUncheckedClicked(e||{})&&t.onCheckedClicked(e):n?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,qi.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||this.checkboxCallbackExists()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,qi.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return!!e&&"function"===typeof e.checkboxSelection},Zi([nr("eCheckbox")],t.prototype,"eCheckbox",void 0),Zi([U],t.prototype,"postConstruct",null),t}(tr),Xi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ji=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};(zi=t.DragSourceType||(t.DragSourceType={}))[zi.ToolPanel=0]="ToolPanel",zi[zi.HeaderCell=1]="HeaderCell",zi[zi.RowDrag=2]="RowDrag",zi[zi.ChartPanel=3]="ChartPanel",(Ui=t.VerticalDirection||(t.VerticalDirection={}))[Ui.Up=0]="Up",Ui[Ui.Down=1]="Down",(Ki=t.HorizontalDirection||(t.HorizontalDirection={}))[Ki.Left=0]="Left",Ki[Ki.Right=1]="Right";var es,ts=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var o;return Xi(n,e),o=n,n.prototype.init=function(){this.ePinnedIcon=To("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=To("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=To("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=To("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=To("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=To("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=To("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=To("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=To("dropNotAllowed",this.gridOptionsWrapper,null)},n.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n,t)},n.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find((function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),de(this.dragSourceAndParamsList,t))},n.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},n.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},n.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},n.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},n.prototype.onDragging=function(e,t){var n=this,o=this.getHorizontalDirection(e),r=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var i=this.dropTargets.filter((function(t){return n.isMouseOnDropTarget(e,t)})),s=i.length,a=null;if(s>0&&(a=1===s?i[0]:i.reduce((function(e,t){if(!e)return t;var n=e.getContainer(),o=t.getContainer();return n.contains(o)?t:e}))),a!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,r,t),this.enterDragTargetIfExists(a,e,o,r,t),this.lastDropTarget=a;else if(a&&a.onDragging){var l=this.createDropTargetEvent(a,e,o,r,t);a.onDragging(l)}},n.prototype.enterDragTargetIfExists=function(e,t,n,o,r){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,n,o,r);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},n.prototype.leaveLastTargetIfExists=function(e,t,n,o){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,n,o);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},n.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n},n.prototype.allContainersIntersect=function(e,t){var n,o;try{for(var r=Ji(t),i=r.next();!i.done;i=r.next()){var s=i.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var a=e.clientX>=s.left&&e.clientX<s.right,l=e.clientY>=s.top&&e.clientY<s.bottom;if(!a||!l)return!1}}catch(u){n={error:u}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return!0},n.prototype.isMouseOnDropTarget=function(e,t){var n,o,r=this.getAllContainersFromDropTarget(t),i=!1;try{for(var s=Ji(r),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(e,l)){i=!0;break}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&(i&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},n.prototype.addDropTarget=function(e){this.dropTargets.push(e)},n.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},n.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},n.prototype.findExternalZone=function(e){return this.dropTargets.filter((function(e){return e.external})).find((function(t){return t.getContainer()===e.getContainer()}))||null},n.prototype.getHorizontalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientX,o=e.clientX;return n===o?null:n>o?t.HorizontalDirection.Left:t.HorizontalDirection.Right},n.prototype.getVerticalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientY,o=e.clientY;return n===o?null:n>o?t.VerticalDirection.Up:t.VerticalDirection.Down},n.prototype.createDropTargetEvent=function(e,t,n,o,r){var i=e.getContainer(),s=i.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,c=a.dragItem,p=a.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:o,hDirection:n,dragSource:p,fromNudge:r,dragItem:c,api:l,columnApi:u,dropZoneTarget:i}},n.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var n=t.getBoundingClientRect().height,o=Yt()-2,r=Zt()-2,i=e.pageY-n/2,s=e.pageX-10,a=this.gridOptionsWrapper.getDocument(),l=a.defaultView||window,u=l.pageYOffset||a.documentElement.scrollTop,c=l.pageXOffset||a.documentElement.scrollLeft;o>0&&s+t.clientWidth>o+c&&(s=o+c-t.clientWidth),s<0&&(s=0),r>0&&i+t.clientHeight>r+u&&(i=r+u-t.clientHeight),i<0&&(i=0),t.style.left=s+"px",t.style.top=i+"px"}},n.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},n.prototype.createGhost=function(){this.eGhost=gn(o.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;N(n)&&(n=n()),t.innerHTML=Ye(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsWrapper.getDocument(),i=null;try{i=r.fullscreenElement}catch(s){}finally{i||(i=r.querySelector("body"))}this.eGhostParent=i,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},n.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),dn(this.eGhostIcon);var n=null;switch(e||(e=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),e){case o.ICON_PINNED:n=this.ePinnedIcon;break;case o.ICON_MOVE:n=this.eMoveIcon;break;case o.ICON_LEFT:n=this.eLeftIcon;break;case o.ICON_RIGHT:n=this.eRightIcon;break;case o.ICON_GROUP:n=this.eGroupIcon;break;case o.ICON_AGGREGATE:n=this.eAggregateIcon;break;case o.ICON_PIVOT:n=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:n=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||n&&this.eGhostIcon.appendChild(n)},n.ICON_PINNED="pinned",n.ICON_MOVE="move",n.ICON_LEFT="left",n.ICON_RIGHT="right",n.ICON_GROUP="group",n.ICON_AGGREGATE="aggregate",n.ICON_PIVOT="pivot",n.ICON_NOT_ALLOWED="notAllowed",n.ICON_HIDE="hide",n.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',Qi([Y("dragService")],n.prototype,"dragService",void 0),Qi([Y("environment")],n.prototype,"environment",void 0),Qi([Y("columnApi")],n.prototype,"columnApi",void 0),Qi([Y("gridApi")],n.prototype,"gridApi",void 0),Qi([U],n.prototype,"init",null),Qi([K],n.prototype,"clearDragSourceParamsList",null),n=o=Qi([q("dragAndDropService")],n)}(Fe),ns=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),os=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rs=function(e){function n(t,n,o,r,i,s){var a=e.call(this)||this;return a.cellValueFn=t,a.rowNode=n,a.column=o,a.customGui=r,a.dragStartPixels=i,a.suppressVisibilityChange=s,a.dragSource=null,a}return ns(n,e),n.prototype.isCustomGui=function(){return null!=this.customGui},n.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Ao("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new as(this,this.beans,this.rowNode,this.column):new ss(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},n.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},n.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return 1;var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e.length:1},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&D((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(e){var n=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var o={rowNode:this.rowNode,columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()},r=this.column&&this.column.getColDef().rowDragText,i=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e=n.getSelectedCount();return r?r(o,e):1===e?n.cellValueFn():e+" "+i("rowDragRows","rows")},getDragItem:function(){return o},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},n.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},os([Y("beans")],n.prototype,"beans",void 0),os([U],n.prototype,"postConstruct",null),os([K],n.prototype,"removeDragSource",null),n}(tr),is=function(e){function t(t,n,o){var r=e.call(this)||this;return r.parent=t,r.rowNode=n,r.column=o,r}return ns(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=!0,n=!1;this.column&&(t=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=N(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):(this.parent.setDisplayed(t),this.parent.setVisible(!0))}},t}(Fe),ss=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return ns(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},os([U],t.prototype,"postConstruct",null),t}(is),as=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return ns(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Ve.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!o||n;this.setDisplayedOrVisible(r)},os([U],t.prototype,"postConstruct",null),t}(is),ls=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),us=function(){return us=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},us.apply(this,arguments)},cs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ps=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),t.prototype.init=function(e,t,n,o,r,i,s){this.params=s,this.eGui=t,this.eCheckbox=n,this.eExpanded=o,this.eContracted=r,this.comp=e,this.compClass=i;var a=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),u=null==s.value,c=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var p=s.node;if(p.footer)c=(s.colDef&&s.colDef.showRowGroup)!==(p.rowGroupColumn&&p.rowGroupColumn.getColId())}this.cellIsBlank=!a&&(l||u||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,n=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var o=function(){$n(n,!!t.expanded)};this.expandListener=this.addManagedListener(t,qi.EVENT_EXPANDED_CHANGED,o)||null,o()}else Xn(n)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===oe.PINNED_LEFT,t=this.params.pinned===oe.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!t:!n:this.columnModel.isPinningLeft()?!e:!n},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var n=t.parent;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}i(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var n=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var o=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=o}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),n=e.valueFormatted,o=e.value,r=null!=n?n:o;this.comp.setInnerRenderer(t,r)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var n=this.params,o=this.params,r=o.value,i=o.node,s=this.valueFormatterService.formatValue(e,i,r);return us(us({},n),{valueFormatted:s})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var n=g(this.params);n.value=this.params.value,"function"===typeof e?t=e(n):"string"===typeof e?t=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+(null!=this.params.value?this.params.value:"");var o=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(o,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),o=function(e){return e&&e.componentClass==t.compClass};if(n&&!o(n))return n;var r=this.displayedGroupNode.rowGroupColumn,i=r?r.getColDef():void 0;if(i){var s=this.userComponentFactory.getCellRendererDetails(i,e);if(s&&!o(s))return s;if(o(s)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,qi.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"("+e+")":"";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,t=Ao("groupExpanded",this.gridOptionsWrapper,null),n=Ao("groupContracted",this.gridOptionsWrapper,null);t&&this.eExpanded.appendChild(t),n&&this.eContracted.appendChild(n);var o=e.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(o,"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(o,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,qi.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,qi.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,qi.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,qi.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,qi.EVENT_HAS_CHILDREN_CHANGED,r)},t.prototype.onExpandClicked=function(e){Pe(e)||(Oe(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,n=!t.expanded;t.setExpanded(n,e)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;var n=this.params.column;return null==n||"string"!==typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,n=e.displayedGroupNode,o=e.columnModel,r=t.node,i=this.isExpandable();if(i){var s=!!this.showingValueForOpenedParent||r.expanded;this.comp.setExpandedDisplayed(s),this.comp.setContractedDisplayed(!s)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var a=o.isPivotMode(),l=a&&n.leafGroup,u=i&&!l,c=r.footer&&-1===r.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",u),this.comp.addOrRemoveCssClass("ag-row-group",u),a?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!u)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,qi.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node,n=!!e.colDef,o=this.gridOptionsWrapper.isTreeData(),r=!n||o||!0===e.colDef.showRowGroup?t.uiLevel:0;e.padding>=0&&D((function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+r,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new rs((function(){return e.params.value}),this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement("afterbegin",t.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"===typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroupNode,n=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(n){var o=new $i;this.getContext().createBean(o),o.init({rowNode:t,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(o)}))}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){e.key!==dr.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e))},t.prototype.onCellDblClicked=function(e){Pe(e)||(De(this.eExpanded,e)||De(this.eContracted,e)||this.onExpandOrContract(e))},cs([Y("expressionService")],t.prototype,"expressionService",void 0),cs([Y("valueFormatterService")],t.prototype,"valueFormatterService",void 0),cs([Y("columnModel")],t.prototype,"columnModel",void 0),cs([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),cs([Y("gridOptions")],t.prototype,"gridOptions",void 0),t}(Fe),ds=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},fs=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ds(t,e),t.prototype.init=function(e){var t=this,n={setInnerRenderer:function(e,n){return t.setRenderDetails(e,n)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,n){return t.addOrRemoveCssClass(e,n)},setContractedDisplayed:function(e){return Jt(t.eContracted,e)},setExpandedDisplayed:function(e){return Jt(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},o=this.createManagedBean(new ps),r=!e.colDef,i=this.getGui();o.init(n,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),r&&Wn(i,"gridcell")},t.prototype.setRenderDetails=function(e,t){var n=this;if(e){var o=e.newAgStackInstance();if(!o)return;o.then((function(e){if(e){var t=function(){return n.context.destroyBean(e)};n.isAlive()?(n.eValue.appendChild(e.getGui()),n.addDestroyFunc(t)):t()}}))}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper">\n <span class="ag-group-expanded" ref="eExpanded"></span>\n <span class="ag-group-contracted" ref="eContracted"></span>\n <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n <span class="ag-group-value" ref="eValue"></span>\n <span class="ag-group-child-count" ref="eChildCount"></span>\n </span>',hs([nr("eExpanded")],t.prototype,"eExpanded",void 0),hs([nr("eContracted")],t.prototype,"eContracted",void 0),hs([nr("eCheckbox")],t.prototype,"eCheckbox",void 0),hs([nr("eValue")],t.prototype,"eValue",void 0),hs([nr("eChildCount")],t.prototype,"eChildCount",void 0),t}(tr),gs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ms=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vs=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return gs(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){this.eLoadingText.innerText="ERR"},t.prototype.setupLoading=function(){var e=Ao("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',ms([nr("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),ms([nr("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(tr),ys=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cs=function(e){function t(){return e.call(this)||this}return ys(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[LOADING...]",o("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(tr),ws=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_s=function(e){function t(){return e.call(this)||this}return ws(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[NO_ROWS_TO_SHOW]",o("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}(tr),bs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Es=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return bs(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=Ye(t)},t}(Si),Ss=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:ti,agColumnHeader:Ci,agColumnGroupHeader:bi,agTextColumnFloatingFilter:gi,agNumberColumnFloatingFilter:hi,agDateColumnFloatingFilter:Qr,agReadOnlyFloatingFilter:ar,agAnimateShowChangeCellRenderer:Wi,agAnimateSlideCellRenderer:Bi,agGroupCellRenderer:fs,agGroupRowRenderer:fs,agLoadingCellRenderer:vs,agCellEditor:Mi,agTextCellEditor:Mi,agSelectCellEditor:Di,agPopupTextCellEditor:ki,agPopupSelectCellEditor:Ni,agLargeTextCellEditor:Pi,agTextColumnFilter:li,agNumberColumnFilter:ri,agDateColumnFilter:qr,agLoadingOverlay:Cs,agNoRowsOverlay:_s,agTooltipComponent:Es},t.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},t.jsComps={},t.fwComps={},t}return Ss(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&f(this.gridOptions.components,(function(t,n){return e.registerJsComponent(t,n)})),null!=this.gridOptions.frameworkComponents&&f(this.gridOptions.frameworkComponents,(function(t,n){return e.registerFwComponent(t,n)}))},t.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},t.prototype.registerJsComponent=function(e,t){var n=this.translateIfDeprecated(e);this.fwComps[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComps[n]=t},t.prototype.registerFwComponent=function(e,t){D((function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")}),"UserComponentRegistry.frameworkComponentsDeprecated");var n=this.translateIfDeprecated(e);this.fwComps[n]=t},t.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e),n=function(e,t){return{componentFromFramework:t,component:e}},o=this.getFrameworkOverrides().frameworkComponent(t);if(null!=o)return n(o,!0);var r=this.fwComps[t];if(r)return n(r,!0);var i=this.jsComps[t];if(i)return n(i,this.getFrameworkOverrides().isFrameworkComponent(i));var s=this.agGridDefaults[t];return s?n(s,!1):(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("AG Grid: Looking for component ["+t+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(D((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},Rs([Y("gridOptions")],t.prototype,"gridOptions",void 0),Rs([Y("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Rs([U],t.prototype,"init",null),t=Rs([q("userComponentRegistry")],t)}(Fe),Ps={propertyName:"dateComponent",cellRenderer:!1},Ts={propertyName:"headerComponent",cellRenderer:!1},As={propertyName:"headerGroupComponent",cellRenderer:!1},Ds={propertyName:"cellRenderer",cellRenderer:!0},xs={propertyName:"cellEditor",cellRenderer:!1},Ns={propertyName:"innerRenderer",cellRenderer:!0},Ls={propertyName:"loadingOverlayComponent",cellRenderer:!1},Is={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ms={propertyName:"tooltipComponent",cellRenderer:!1},Fs={propertyName:"filter",cellRenderer:!1},ks={propertyName:"floatingFilterComponent",cellRenderer:!1},Gs={propertyName:"toolPanel",cellRenderer:!1},Hs={propertyName:"statusPanel",cellRenderer:!1},Ws={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Vs={propertyName:"loadingCellRenderer",cellRenderer:!0},js={propertyName:"groupRowRenderer",cellRenderer:!0},Bs={propertyName:"detailCellRenderer",cellRenderer:!0},zs=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),Us=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ks=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qs=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Us(n,e),n.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,Ts,"agColumnHeader",t)},n.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,As,"agColumnGroupHeader",e)},n.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ws,null,e,!0)},n.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Vs,"agLoadingCellRenderer",e,!0)},n.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,js,"agGroupRowRenderer",e,!0)},n.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Bs,"agDetailCellRenderer",e,!0)},n.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,Ns,null,t)},n.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,Ns,null,t)},n.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,Ds,null,t)},n.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,xs,"agCellEditor",t,!0)},n.prototype.getFilterDetails=function(e,t,n){return this.getCompDetails(e,Fs,n,t,!0)},n.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ps,"agDateInput",e,!0)},n.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ls,"agLoadingOverlay",e,!0)},n.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Is,"agNoRowsOverlay",e,!0)},n.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Ms,"agTooltipComponent",e,!0)},n.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,Ds,null,t)},n.prototype.getFloatingFilterCompDetails=function(e,t,n){return this.getCompDetails(e,ks,n,t)},n.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,Gs,null,t,!0)},n.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,Hs,null,t,!0)},n.prototype.getCompDetails=function(e,t,n,o,r){var i=this;void 0===r&&(r=!1);var s=t.propertyName,a=t.cellRenderer,l=this.getCompKeys(e,t,o),u=l.compName,c=l.jsComp,p=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(e){var t=i.userComponentRegistry.retrieve(e);t&&(c=t.componentFromFramework?void 0:t.component,p=t.componentFromFramework?t.component:void 0)};if(null!=u&&g(u),null==c&&null==p&&null!=n&&g(n),c&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,c)),c||p){var m=this.mergeParamsWithApplicationProvidedParams(e,t,o,d),v=null==c,y=c||p;return{componentFromFramework:v,componentClass:y,params:m,type:t,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return i.newAgStackInstance(y,v,m,t)}}}r&&console.error("Could not find component "+u+", did you forget to configure this component?")},n.prototype.getCompKeys=function(e,t,n){var o,r,i,s,a,l,u=this,c=t.propertyName;if(e){var p=e,d=p[c+"Selector"],h=d?d(n):null,f=function(e,t){var n=function(){var e="AG Grid: As of v27, the property "+c+"Framework is deprecated. The property "+c+" can now be used for JavaScript AND Framework Components.";D((function(){return console.warn(e)}),"UserComponentFactory."+c+"FrameworkDeprecated")};if("string"===typeof e)o=e;else if("string"===typeof t)n(),o=t;else if(null!=e&&!0!==e){u.getFrameworkOverrides().isFrameworkComponent(e)?i=e:r=e}else null!=t&&(n(),i=t)};if(h){if(null!=h.frameworkComponent){var g="AG Grid: As of v27, the return for "+c+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";D((function(){return console.warn(g)}),"UserComponentFactory."+c+"FrameworkSelectorDeprecated"),f(h.frameworkComponent,void 0)}else f(h.component,void 0);s=h.params,a=h.popup,l=h.popupPosition}else f(p[c],p[c+"Framework"])}return{compName:o,jsComp:r,fwComp:i,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},n.prototype.newAgStackInstance=function(e,t,n,o){var r,i=o.propertyName;if(!t)r=new e;else{var s=this.componentMetadataProvider.retrieve(i);r=this.frameworkComponentWrapper.wrap(e,s.mandatoryMethodList,s.optionalMethodList,o)}var a=this.initComponent(r,n);return null==a?Uo.resolve(r):a.then((function(){return r}))},n.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,n,o){void 0===o&&(o=null);var r={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};b(r,n);var i=e&&e[t.propertyName+"Params"];"function"===typeof i?b(r,i(n)):"object"===typeof i&&b(r,i);return b(r,o),r},n.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},n.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var n=null,o=this.getCompKeys(e,Fs),r=o.compName,i=o.jsComp,s=o.fwComp;r?n=zs.getFloatingFilterType(r):null==i&&null==s&&!0===e.filter&&(n=re.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");return n},Ks([Y("gridOptions")],n.prototype,"gridOptions",void 0),Ks([Y("agComponentUtils")],n.prototype,"agComponentUtils",void 0),Ks([Y("componentMetadataProvider")],n.prototype,"componentMetadataProvider",void 0),Ks([Y("userComponentRegistry")],n.prototype,"userComponentRegistry",void 0),Ks([Z("frameworkComponentWrapper")],n.prototype,"frameworkComponentWrapper",void 0),n=Ks([q("userComponentFactory")],n)}(Fe);(es=t.ExcelFactoryMode||(t.ExcelFactoryMode={}))[es.SINGLE_SHEET=0]="SINGLE_SHEET",es[es.MULTI_SHEET=1]="MULTI_SHEET";var Ys=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},$s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return Ys(t,e),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=this.dragSources.find((function(t){return t.dragSource===e}));t&&(this.removeListener(t),de(this.dragSources,t))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){var n=this;void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var r=null,i=this.gridOptionsWrapper.isSuppressTouch();t&&!i&&(r=function(t){t.cancelable&&t.preventDefault(),n.onTouchStart(e,t)},e.eElement.addEventListener("touchstart",r,{passive:!0})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:r,touchEnabled:t})},t.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var o=t.touches[0];this.touchLastTime=o,this.touchStart=o;var r=function(t){return n.onTouchUp(t,e.eElement)},i=e.eElement,s=[{target:document,type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:function(t){return n.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:r,options:{passive:!0}},{target:i,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onCommonMove(o,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,t){var n=this,o=t;if((!e.skipMouseEvent||!e.skipMouseEvent(t))&&!o._alreadyProcessedByDragService&&(o._alreadyProcessedByDragService=!0,0===t.button)){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var r=this.gridOptionsWrapper.getDocument(),i=[{target:r,type:"mousemove",listener:function(t){return n.onMouseMove(t,e.eElement)}},{target:r,type:"mouseup",listener:function(t){return n.onMouseUp(t,e.eElement)}},{target:r,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.addEventListener(n,o,r)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.removeEventListener(n,o,r)}))}))},t.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels;return Mo(e,t,r(n)?n:4)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},t.prototype.onCommonMove=function(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:Ve.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:n};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},t.prototype.onMouseMove=function(e,t){Ht()&&"mousemove"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)},t.prototype.isOverFormFieldElement=function(e){var t,n;return!!(null===(n=null===(t=e.target)||void 0===t?void 0:t.tagName.toLocaleLowerCase())||void 0===n?void 0:n.match("^a$|textarea|input|select|button"))},t.prototype.onTouchUp=function(e,t){var n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)},t.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},t.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var n={type:Ve.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:t};this.eventService.dispatchEvent(n)}this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},Zs([Y("loggerFactory")],t.prototype,"loggerFactory",void 0),Zs([Y("columnApi")],t.prototype,"columnApi",void 0),Zs([Y("gridApi")],t.prototype,"gridApi",void 0),Zs([Y("mouseEventService")],t.prototype,"mouseEventService",void 0),Zs([U],t.prototype,"init",null),Zs([K],t.prototype,"removeAllListeners",null),t=Zs([q("dragService")],t)}(Fe),Xs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qs=function(){return Qs=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Qs.apply(this,arguments)},Js=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ea=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.allColumnFilters=new Map,t.activeAggregateFilters=[],t.activeColumnFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var o;return Xs(n,e),o=n,n.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VALUE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter()},n.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},n.prototype.setFilterModel=function(e){var t=this,n=[],o=this.getFilterModel();if(e){var r=Go(Object.keys(e));this.allColumnFilters.forEach((function(o,i){var s=e[i];n.push(t.setModelOnFilterWrapper(o.filterPromise,s)),r.delete(i)})),r.forEach((function(o){var r=t.columnModel.getPrimaryColumn(o)||t.columnModel.getGridColumn(o);if(r)if(r.isFilterAllowed()){var i=t.getOrCreateFilterWrapper(r,"NO_UI");i?n.push(t.setModelOnFilterWrapper(i.filterPromise,e[o])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+o)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+o);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+o)}))}else this.allColumnFilters.forEach((function(e){n.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));Uo.all(n).then((function(){var e=t.getFilterModel(),n=[];t.allColumnFilters.forEach((function(t,r){var i=o?o[r]:null,s=e?e[r]:null;jo.jsonEquals(i,s)||n.push(t.column)})),n.length>0&&t.onFilterChanged({columns:n})}))},n.prototype.setModelOnFilterWrapper=function(e,t){return new Uo((function(n){e.then((function(e){"function"!==typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),n()),(e.setModel(t)||Uo.resolve()).then((function(){return n()}))}))}))},n.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach((function(t,n){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"===typeof o.getModel){var i=o.getModel();r(i)&&(e[n]=i)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),e},n.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},n.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},n.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},n.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var t=function(e){return!!e&&(e.isFilterActive?e.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},n=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach((function(o){if(o.filterPromise.resolveNow(!1,t)){var r=o.filterPromise.resolveNow(null,(function(e){return e}));!function(t){if(!t.isPrimary())return!0;var o=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!o)&&(!!e.columnModel.isPivotMode()||n)}(o.column)?e.activeColumnFilters.push(r):e.activeAggregateFilters.push(r)}}))},n.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach((function(n){var o=n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));n.column.setFilterActive(o,e,t)}))},n.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent()},n.prototype.doColumnFiltersPass=function(e,t,n){for(var o=e.data,r=e.aggData,i=n?this.activeAggregateFilters:this.activeColumnFilters,s=n?r:o,a=0;a<i.length;a++){var l=i[a];if(null!=l&&l!==t){if("function"!==typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:s}))return!1}}return!0},n.prototype.parseQuickFilter=function(e){return r(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},n.prototype.setQuickFilter=function(e){if(null==e||"string"===typeof e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof e)},n.prototype.refreshFiltersForAggregations=function(){this.gridOptionsWrapper.getGroupAggFiltering()&&this.onFilterChanged()},n.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var t=this;void 0===e&&(e={});var n=function(){return t.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(n,0):n()},n.prototype.onFilterChanged=function(e){void 0===e&&(e={});var t=e.filterInstance,n=e.additionalEventAttributes,o=e.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.allColumnFilters.forEach((function(e){e.filterPromise&&e.filterPromise.then((function(e){e&&e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var r={type:Ve.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi,columns:o||[]};n&&b(r,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(r),this.processingFilterChange=!1},n.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},n.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},n.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},n.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(o){var i=n.getQuickFilterTextForColumn(o,e);return r(i)&&i.indexOf(t)>=0}))},n.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},n.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every((function(o){return n?t.doesRowPassQuickFilterCache(e,o):t.doesRowPassQuickFilterNoCache(e,o)}))},n.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},n.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.gridOptionsWrapper.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(e.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)))},n.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var i={value:n,node:t,data:t.data,column:e,colDef:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};n=o.getQuickFilterText(i)}return r(n)?n.toString().toUpperCase():null},n.prototype.aggregateRowForQuickFilter=function(e){var t=this,n=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(o){var i=t.getQuickFilterTextForColumn(o,e);r(i)&&n.push(i)})),e.quickFilterAggregateText=n.join(o.QUICK_FILTER_SEPARATOR)},n.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.updateActiveFilters()},n.prototype.createValueGetter=function(e){var t=this;return function(n){var o=n.node;return t.valueService.getValue(e,o,!0)}},n.prototype.getFilterComponent=function(e,t,n){var o;if(void 0===n&&(n=!0),n)return(null===(o=this.getOrCreateFilterWrapper(e,t))||void 0===o?void 0:o.filterPromise)||null;var r=this.cachedFilter(e);return r?r.filterPromise:null},n.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},n.prototype.getOrCreateFilterWrapper=function(e,t){if(!e.isFilterAllowed())return null;var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allColumnFilters.set(e.getColId(),n)),n},n.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},n.prototype.createFilterInstance=function(e){var n,o=this,r=re.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",i=e.getColDef(),s=Qs(Qs({},this.createFilterParams(e,i)),{filterModifiedCallback:function(){var t={type:Ve.EVENT_FILTER_MODIFIED,api:o.gridApi,columnApi:o.columnApi,column:e,filterInstance:n};o.eventService.dispatchEvent(t)},filterChangedCallback:function(t){var r={filterInstance:n,additionalEventAttributes:t,columns:[e]};o.callOnFilterChangedOutsideRenderCycle(r)},doesRowPassOtherFilter:function(e){return o.doesRowPassOtherFilters(n,e)}}),a=this.userComponentFactory.getFilterDetails(i,s,r);if(!a)return null;var l=a.newAgStackInstance();return l&&l.then((function(e){return n=e})),l},n.prototype.createFilterParams=function(e,t){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:e,colDef:g(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},n.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,compiledElement:null,guiPromise:Uo.resolve(null)};return n.filterPromise=this.createFilterInstance(e),n.filterPromise&&this.putIntoGui(n,t),n},n.prototype.putIntoGui=function(e,t){var n=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new Uo((function(i){e.filterPromise.then((function(s){var a=s.getGui();r(a)||console.warn("AG Grid: getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"===typeof a&&(a=gn(a)),o.appendChild(a),i(o),n.eventService.dispatchEvent({type:Ve.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o,api:n.gridApi,columnApi:n.columnApi})}))}))},n.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach((function(n,o){(n.column.isPrimary()?e.columnModel.getPrimaryColumn(o):e.columnModel.getGridColumn(o))||(t.push(n.column),e.disposeFilterWrapper(n,"filterDestroyed"))})),t.length>0&&this.onFilterChanged({columns:t})},n.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allColumnFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged({columns:[e]}))},n.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(o){(o.setModel(null)||Uo.resolve()).then((function(){n.getContext().destroyBean(o),e.column.setFilterActive(!1,t),n.allColumnFilters.delete(e.column.getColId())}))}))},n.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach((function(e){return t.disposeFilterWrapper(e,"filterDestroyed")}))},n.QUICK_FILTER_SEPARATOR="\n",Js([Y("valueService")],n.prototype,"valueService",void 0),Js([Y("columnModel")],n.prototype,"columnModel",void 0),Js([Y("rowModel")],n.prototype,"rowModel",void 0),Js([Y("columnApi")],n.prototype,"columnApi",void 0),Js([Y("gridApi")],n.prototype,"gridApi",void 0),Js([Y("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Js([Y("rowRenderer")],n.prototype,"rowRenderer",void 0),Js([U],n.prototype,"init",null),Js([K],n.prototype,"destroy",null),n=o=Js([q("filterManager")],n)}(Fe),ta=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),na=function(e){function t(t,n){var o=e.call(this,t)||this;return o.ctrl=n,o}return ta(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(tr),oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ra=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ia=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return oa(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveBodyCssClass:function(t,n){return e.eFloatingFilterBody.classList.toggle(t,n)},addOrRemoveButtonWrapperCssClass:function(t,n){return e.eButtonWrapper.classList.toggle(t,n)},setCompDetails:function(t){return e.setCompDetails(t)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return t.style.width=e},setMenuIcon:function(t){return e.eButtonShowMainFilter.appendChild(t)}};this.ctrl.setComp(n,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return t.afterCompCreated(e)}))},t.prototype.afterCompCreated=function(e){var t=this;e&&(this.addDestroyFunc((function(){return t.context.destroyBean(e)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n <div ref="eFloatingFilterBody" role="presentation"></div>\n <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',ra([nr("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),ra([nr("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),ra([nr("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),ra([U],t.prototype,"postConstruct",null),t}(na),sa=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"===typeof t)return e.parse([t]);if(Array.isArray(t)){var n=[];return t.forEach((function(t){var o=e.DEFAULT_BY_KEY[t];o?n.push(o):console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===n.length?null:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}},e.parseComponents=function(t){var n=[];return t?(t.forEach((function(t){var o=null;if("string"===typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));o=r}else o=t;n.push(o)})),n):n},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}(),aa=function(){return aa=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},aa.apply(this,arguments)},la=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ua=function(e,t){return function(n,o){t(n,o,e)}},ca=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},pa=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ca(arguments[t]));return e};function da(e){return!0===e||"true"===e}function ha(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function fa(e,t){var n=parseInt(e,10);return fo(n)&&n>0?n:t}var ga,ma=function(){function e(){this.propertyEventService=new ne,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var n;return n=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=sa.parse(this.gridOptions.sideBar));var n=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),n),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.isRowModelServerSide()){var o=function(e){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model"};r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupDefaultExpanded")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeFooter")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&re.assertRegistered(t.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("AG Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var i=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};i("radioButtonOff"),i("radioButtonOn"),i("checkboxChecked"),i("checkboxUnchecked"),i("checkboxIndeterminate"),this.getScrollbarWidth()},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var n=Object.getOwnPropertyNames(t),o=pa(St.ALL_PROPERTIES,St.FRAMEWORK_PROPERTIES);e.checkProperties(n,o,o,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=pa(ft.ALL_PROPERTIES,ft.FRAMEWORK_PROPERTIES,p(Ve).map((function(e){return yt.getCallbackForEvent(e)}))),n=pa(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},e.prototype.checkProperties=function(e,t,n,o,r){var i=_o(e,t,n);f(i,(function(e,t){console.warn("ag-grid: invalid "+o+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(i).length>0&&console.warn("ag-grid: to see all the valid "+o+" properties please check: "+r)},e.prototype.mergeGridCommonParams=function(e){var t=this;if(e){return function(n){var o=aa(aa({},n),{api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()});return e(o)}}return e},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var n=e[this.getDomDataKey()];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var o=this.getDomDataKey(),r=e[o];i(r)&&(r={},e[o]=r),r[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isSuppressRowDeselection=function(){return da(this.gridOptions.suppressRowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return da(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return da(this.gridOptions.pivotMode)},e.prototype.isSuppressExpandablePivotGroups=function(){return da(this.gridOptions.suppressExpandablePivotGroups)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return i(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return da(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return da(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return da(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return da(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return da(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return da(this.gridOptions.suppressTouch)},e.prototype.isMaintainColumnOrder=function(){return da(this.gridOptions.maintainColumnOrder)},e.prototype.isSuppressRowTransform=function(){return da(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressColumnStateEvents=function(){return da(this.gridOptions.suppressColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return da(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!da(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return da(this.gridOptions.enableCellChangeFlash)},e.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},e.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},e.prototype.isGroupSelectsChildren=function(){return da(this.gridOptions.groupSelectsChildren)},e.prototype.isSuppressRowHoverHighlight=function(){return da(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isColumnHoverHighlight=function(){return da(this.gridOptions.columnHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return da(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return da(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMaintainOrder=function(){return da(this.gridOptions.groupMaintainOrder)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):da(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType))},e.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},e.prototype.isGroupRemoveSingleChildren=function(){return da(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return da(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return da(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return da(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return da(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return da(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellFocus=function(){return da(this.gridOptions.suppressCellFocus)},e.prototype.isSuppressMultiSort=function(){return da(this.gridOptions.suppressMultiSort)},e.prototype.isAlwaysMultiSort=function(){return da(this.gridOptions.alwaysMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isPivotSuppressAutoColumn=function(){return da(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return da(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return da(this.gridOptions.suppressScrollOnNewData)},e.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return da(this.gridOptions.suppressScrollWhenPopupsAreOpen)},e.prototype.isRowDragEntireRow=function(){return da(this.gridOptions.rowDragEntireRow)},e.prototype.isSuppressRowDrag=function(){return da(this.gridOptions.suppressRowDrag)},e.prototype.isRowDragManaged=function(){return da(this.gridOptions.rowDragManaged)},e.prototype.isSuppressMoveWhenRowDragging=function(){return da(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isRowDragMultiRow=function(){return da(this.gridOptions.rowDragMultiRow)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||oe.DOM_LAYOUT_NORMAL;return-1===[oe.DOM_LAYOUT_PRINT,oe.DOM_LAYOUT_AUTO_HEIGHT,oe.DOM_LAYOUT_NORMAL].indexOf(e)?(D((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+oe.DOM_LAYOUT_NORMAL+", "+oe.DOM_LAYOUT_AUTO_HEIGHT+" and "+oe.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),oe.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return da(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return da(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return da(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowHorizontalScroll=function(){return da(this.gridOptions.alwaysShowHorizontalScroll)},e.prototype.isAlwaysShowVerticalScroll=function(){return da(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isDebounceVerticalScrollbar=function(){return da(this.gridOptions.debounceVerticalScrollbar)},e.prototype.isSuppressLoadingOverlay=function(){return da(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return da(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return da(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return da(this.gridOptions.functionsPassive)},e.prototype.isSuppressChangeDetection=function(){return da(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return da(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return da(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return da(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return da(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return da(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return da(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return da(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return ha(this.gridOptions.undoRedoCellEditingLimit)},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},e.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getServerSideStoreType=function(){return this.gridOptions.serverSideStoreType},e.prototype.getServerSideStoreParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideStoreParams)},e.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},e.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},e.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptions,t=e.initialGroupOrderComparator,n=e.defaultGroupOrderComparator;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodeA,e.nodeB)}:void 0},e.prototype.getIsFullWidthCellFunc=function(){var e=this.gridOptions,t=e.isFullWidthRow,n=e.isFullWidthCell;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.rowNode)}:void 0},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return da(this.gridOptions.embedFullWidthRows)||da(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.isDetailRowAutoHeight=function(){return da(this.gridOptions.detailRowAutoHeight)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isReadOnlyEdit=function(){return da(this.gridOptions.readOnlyEdit)},e.prototype.isImmutableData=function(){var e=null!=this.gridOptions.getRowId,t=da(this.gridOptions.immutableData);return!da(this.gridOptions.resetRowDataOnUpdate)&&(e||t)},e.prototype.isEnsureDomOrder=function(){return da(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!da(this.gridOptions.enableCharts)&&re.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return da(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return da(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenCellsLoseFocus=function(){return da(this.gridOptions.stopEditingWhenCellsLoseFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){var e=ha(this.gridOptions.maxConcurrentDatasourceRequests);return null==e?2:e<=0?void 0:e},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return ha(this.gridOptions.paginationPageSize)},e.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||da(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return fa(this.gridOptions.cacheBlockSize)},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return da(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return da(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isEnableRtl=function(){return da(this.gridOptions.enableRtl)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return da(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return da(this.gridOptions.angularCompileFilters)},e.prototype.isDebug=function(){return da(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return da(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return da(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return da(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return da(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return da(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return da(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return da(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return da(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressRowVirtualisation=function(){return da(this.gridOptions.suppressRowVirtualisation)},e.prototype.isSuppressContextMenu=function(){return da(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return da(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return da(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isSuppressCopySingleCellRanges=function(){return da(this.gridOptions.suppressCopySingleCellRanges)},e.prototype.isCopyHeadersToClipboard=function(){return da(this.gridOptions.copyHeadersToClipboard)},e.prototype.isCopyGroupHeadersToClipboard=function(){return da(this.gridOptions.copyGroupHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return da(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return da(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return da(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return da(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},e.prototype.getAsyncTransactionWaitMillis=function(){return r(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:oe.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return da(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&da(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return da(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return da(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return da(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||da(this.gridOptions.suppressAggFilteredOnly)},e.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return da(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},e.prototype.isShowOpenedGroup=function(){return da(this.gridOptions.showOpenedGroup)},e.prototype.isReactUi=function(){return da(this.gridOptions.reactUi)},e.prototype.isSuppressReactUi=function(){return da(this.gridOptions.suppressReactUi)},e.prototype.isEnableRangeSelection=function(){return re.isRegistered(t.ModuleNames.RangeSelectionModule)&&da(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return da(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return da(this.gridOptions.enableFillHandle)},e.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(D((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):e:"xy"},e.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},e.prototype.isSuppressMultiRangeSelection=function(){return da(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return da(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return da(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"===typeof e?this.mergeGridCommonParams(e):da(e)?function(){return!0}:void 0},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){return!!da(this.gridOptions.masterDetail)&&re.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return da(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return r(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return da(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return da(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return da(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isSuppressClipboardApi=function(){return da(this.gridOptions.suppressClipboardApi)},e.prototype.isFunctionsReadOnly=function(){return da(this.gridOptions.functionsReadOnly)},e.prototype.isEnableCellTextSelect=function(){return da(this.gridOptions.enableCellTextSelection)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+qe(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},e.prototype.isSuppressCsvExport=function(){return da(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return da(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return da(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return da(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},e.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggFunc=function(){var e=this.gridOptions,t=e.getGroupRowAgg,n=e.groupRowAggNodes;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodes)}:void 0},e.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},e.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},e.prototype.getRowIdFunc=function(){var e=this.gridOptions,t=e.getRowId,n=e.getRowNodeId;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.data)}:void 0},e.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},e.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},e.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},e.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},e.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},e.prototype.isTreeData=function(){return!!da(this.gridOptions.treeData)&&re.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return da(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return da(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return da(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return da(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},e.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},e.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},e.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},e.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},e.prototype.getViewportRowModelPageSize=function(){return fa(this.gridOptions.viewportRowModelPageSize,5)},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return da(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.isServerSideFilteringAlwaysResets=function(){return da(this.gridOptions.serverSideFilteringAlwaysResets)},e.prototype.getPostSortFunc=function(){var e=this.gridOptions,t=e.postSortRows,n=e.postSort;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodes)}:void 0},e.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},e.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},e.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},e.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},e.prototype.getClipboardDelimiter=function(){return r(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},e.prototype.setProperty=function(e,t,n){void 0===n&&(n=!1);var o=this.gridOptions,r=o[e];if(n||r!==t){o[e]=t;var i={type:e,currentValue:t,previousValue:r};this.propertyEventService.dispatchEvent(i)}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},e.prototype.getHeaderHeight=function(){return"number"===typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"===typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"===typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},e.prototype.doesExternalFilterPass=function(e){return"function"===typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getTooltipDelay=function(e){var t=this.gridOptions,n=t.tooltipShowDelay,o=t.tooltipHideDelay,i="show"===e?n:o,s=qe(e);return r(i)?(i<0&&D((function(){return console.warn("ag-grid: tooltip"+s+"Delay should not be lower than 0")}),"tooltip"+s+"DelayWarn"),Math.max(200,i)):null},e.prototype.isTooltipMouseTrack=function(){return da(this.gridOptions.tooltipMouseTrack)},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return da(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&r(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&r(e)?e:document},e.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(r(e)&&e>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var t=this.getFromTheme(null,"headerCellMinWidth");return r(t)?Math.max(t,n.MIN_COL_WIDTH):n.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!==typeof this.gridOptions.colWidth||this.gridOptions.colWidth<n.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"===typeof e?e<0&&(D((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=oe.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e="number"===typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:Ut();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:Ve.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var t=function(t,n,o){null!=e[t]&&(console.warn("AG Grid: since version "+o+", '"+t+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==e[n]&&(e[n]=e[t]))};if(t("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),t("deltaRowDataMode","immutableData","23.1.x"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),t("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var n=e.groupRowRendererParams;e.groupRowInnerRenderer&&(n.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(n.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(n.innerRendererFramework=e.groupRowInnerRendererFramework)}if(e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn){var o=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+o+" = 'custom'`"),e.groupDisplayType="custom"}e.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),e.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),e.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),e.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),e.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),e.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),e.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),e.suppressCellFocus=e.suppressCellSelection),e.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),e.immutableData&&(e.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),e.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),e.clipboardDelimiter=e.clipboardDeliminator)},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&i(this.getDataPathFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(i(this.getIsServerSideGroupFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),i(this.getServerSideGroupKeyFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){var e=this,t=this.gridOptions,n=t.localeText,o=t.getLocaleText,r=t.localeTextFunc;return o?function(t,n,r){var i={key:t,defaultValue:n,variableValues:r,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()};return o(i)}:r||function(e,t,o){var r=n&&n[e];if(r&&o&&o.length)for(var i=0;!(i>=o.length);){if(-1===r.indexOf("${variable}"))break;r=r.replace("${variable}",o[i++])}return null!==r&&void 0!==r?r:t}},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var n=yt.getCallbackForEvent(e);"function"===typeof this.gridOptions[n]&&this.gridOptions[n](t)}},e.prototype.setRowHeightVariable=function(e){var t=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=t&&this.eGridDiv.style.setProperty("--ag-line-height",t)},e.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||i(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.isGetRowHeightFunction=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getRowHeightForNode=function(e,t,n){if(void 0===t&&(t=!1),null==n&&(n=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:n,estimated:!0};var o={node:e,data:e.data},r=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(o);if(this.isNumeric(r))return 0===r&&D((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,r),estimated:!1}}return e.detail&&this.isMasterDetail()?this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"===typeof e&&isFinite(e)},e.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.prototype.matchesGroupDisplayType=function(e,t){var n=["groupRows","multipleColumns","custom","singleColumn"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},e.prototype.matchesTreeDataDisplayType=function(e,t){var n=["auto","custom"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",e.PROP_TAB_TO_NEXT_CELL="tabToNextCell",e.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",e.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",e.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",e.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_GET_ROW_CLASS="getRowClass",e.PROP_GET_ROW_STYLE="getRowStyle",e.PROP_GET_ROW_HEIGHT="getRowHeight",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",e.PROP_ROW_CLASS="rowClass",e.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",e.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",e.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",e.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",e.PROP_GET_CHILD_COUNT="getChildCount",e.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",e.PROP_GET_ROW_NODE_ID="getRowNodeId",e.PROP_GET_ROW_ID="getRowId",e.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",e.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",e.PROP_IS_ROW_SELECTABLE="isRowSelectable",e.PROP_IS_ROW_MASTER="isRowMaster",e.PROP_POST_SORT="postSort",e.PROP_POST_SORT_ROWS="postSortRows",e.PROP_GET_DOCUMENT="getDocument",e.PROP_POST_PROCESS_POPUP="postProcessPopup",e.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",e.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",e.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",e.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",e.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",e.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",e.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",e.PROP_SEND_TO_CLIPBOARD="sendToClipboard",e.PROP_PROCESS_TO_SECONDARY_COLDEF="processSecondaryColDef",e.PROP_PROCESS_SECONDARY_COL_GROUP_DEF="processSecondaryColGroupDef",e.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",e.PROP_GET_SERVER_SIDE_STORE_PARAMS="getServerSideStoreParams",e.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",e.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",e.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",e.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",la([Y("gridOptions")],e.prototype,"gridOptions",void 0),la([Y("eventService")],e.prototype,"eventService",void 0),la([Y("environment")],e.prototype,"environment",void 0),la([Y("eGridDiv")],e.prototype,"eGridDiv",void 0),la([ua(0,X("gridApi")),ua(1,X("columnApi"))],e.prototype,"agWire",null),la([K],e.prototype,"destroy",null),la([U],e.prototype,"init",null),e=n=la([q("gridOptionsWrapper")],e)}(),va=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ya=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(ga=t.LayoutCssClasses||(t.LayoutCssClasses={})).AUTO_HEIGHT="ag-layout-auto-height",ga.NORMAL="ag-layout-normal",ga.PRINT="ag-layout-print";var Ca,wa=function(e){function n(t){var n=e.call(this)||this;return n.view=t,n}return va(n,e),n.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},n.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),n={autoHeight:e===oe.DOM_LAYOUT_AUTO_HEIGHT,normal:e===oe.DOM_LAYOUT_NORMAL,print:e===oe.DOM_LAYOUT_PRINT},o=n.autoHeight?t.LayoutCssClasses.AUTO_HEIGHT:n.print?t.LayoutCssClasses.PRINT:t.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(o,n)},ya([Y("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ya([U],n.prototype,"postConstruct",null),n}(Fe),_a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ba=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ea=function(e){function t(t){var n=e.call(this)||this;return n.scrollLeft=-1,n.nextScrollTop=-1,n.scrollTop=-1,n.eBodyViewport=t,n.resetLastHorizontalScrollElementDebounced=G(n.resetLastHorizontalScrollElement.bind(n),500),n}return _a(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()}))},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?G(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(!(null==this.centerRowContainerCtrl)){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.ctrlsService.getTopCenterRowContainerCtrl(),o=this.ctrlsService.getBottomCenterRowContainerCtrl(),r=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(t),o.setContainerTranslateX(t),n.setContainerTranslateX(t),pn(this.lastHorizontalScrollElement===this.centerRowContainerCtrl.getViewportElement()?r.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(cn(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){var t=cn(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,n={type:Ve.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=Object.assign({},n,{type:Ve.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)}),100)},t.prototype.shouldBlockScrollUpdate=function(e,t,n){if(void 0===n&&(n=!1),n&&!jt())return!1;if("vertical"===e){var o=rn(this.eBodyViewport),r=this.eBodyViewport.scrollHeight;if(t<0||t+o>r)return!0}if("horizontal"===e){var i=this.centerRowContainerCtrl.getCenterWidth(),s=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&un()){if(t>0)return!0}else if(t<0)return!0;if(Math.abs(t)+i>s)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&un()?e>0?0:t:Math.min(Math.max(e,0),t)),pn(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var n=this.rowModel.getRowCount(),o="function"===typeof e,r=-1,i=0;i<n;i++){var s=this.rowModel.getRow(i);if(o){if(e(s)){r=i;break}}else if(e===s||e===s.data){r=i;break}}r>=0&&this.ensureIndexVisible(r,t)},t.prototype.ensureIndexVisible=function(e,t){if(this.gridOptionsWrapper.getDomLayout()!==oe.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!==typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var o,r=this.paginationProxy.getRow(e);do{var i=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,u=l+r.rowHeight,c=this.getVScrollPosition(),p=this.heightScaler.getDivStretchOffset(),d=c.top+p,h=c.bottom+p,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),m=this.heightScaler.getScrollPositionForPixel(u-f),v=Math.min((g+m)/2,l),y=null;"top"===t?y=g:"bottom"===t?y=m:"middle"===t?y=v:d>l?y=g:h<u&&(y=m),null!==y&&(this.eBodyViewport.scrollTop=y,this.rowRenderer.redrawAfterScroll()),o=i!==r.rowTop||s!==r.rowHeight}while(o);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto");var n=this.columnModel.getGridColumn(e);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var o=this.getPositionedHorizontalScroll(n,t);null!==o&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(o),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,t){var n=this.isColumnOutsideViewport(e),o=n.columnBeforeStart,r=n.columnAfterEnd,i=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?o:r)||i,u=a?r:o;"auto"!==t&&(l="start"===t,u="end"===t);var c="middle"===t;if(l||u||c){var p=this.getColumnBounds(e),d=p.colLeft,h=p.colMiddle,f=p.colRight;return c?h-s/2:l?a?f:d:a?d-s:f-s}return null},t.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),n=t.start,o=t.end,r=this.getColumnBounds(e),i=r.colLeft,s=r.colRight,a=this.enableRtl;return{columnBeforeStart:a?n>s:o<s,columnAfterEnd:a?o<i:n>i}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),o=e.getActualWidth(),r=e.getLeft(),i=t?-1:1,s=t?n-r:r;return{colLeft:s,colMiddle:s+o/2*i,colRight:s+o*i}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},ba([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),ba([Y("animationFrameService")],t.prototype,"animationFrameService",void 0),ba([Y("columnApi")],t.prototype,"columnApi",void 0),ba([Y("gridApi")],t.prototype,"gridApi",void 0),ba([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),ba([Y("rowModel")],t.prototype,"rowModel",void 0),ba([Y("rowContainerHeightService")],t.prototype,"heightScaler",void 0),ba([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),ba([Y("columnModel")],t.prototype,"columnModel",void 0),ba([U],t.prototype,"postConstruct",null),t}(Fe),Sa=function(){function e(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||function(){return!1}}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var n=t||this.shouldSkipVerticalScroll();if(!n||!this.shouldSkipHorizontalScroll()){var o=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=e.clientX<o.left+r,this.tickRight=e.clientX>o.right-r,this.tickUp=e.clientY<o.top+r&&!n,this.tickDown=e.clientY>o.bottom-r&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){var n=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(n-e),this.tickRight&&this.setHorizontalPosition(n+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),Ra=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oa=function(){return Oa=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Oa.apply(this,arguments)},Pa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ta=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Aa=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ta(arguments[t]));return e},Da=function(e){function n(t){var n=e.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=t,n}return Ra(n,e),n.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var t=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,(function(){t()})),t(),this.ctrlsService.whenReady((function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Sa({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})}))},n.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},n.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},n.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!s(e)},n.prototype.getContainer=function(){return this.eContainer},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.RowDrag},n.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?ts.ICON_NOT_ALLOWED:ts.ICON_MOVE},n.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},n.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var n=this.gridOptionsWrapper.isRowDragMultiRow(),o=Aa(this.selectionService.getSelectedNodes()).sort((function(e,n){return t.getRowIndexNumber(e)-t.getRowIndexNumber(n)})),r=e.dragItem.rowNode;return n&&-1!==o.indexOf(r)?(this.isMultiRowDrag=!0,o):(this.isMultiRowDrag=!1,[r])},n.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},n.prototype.onDragging=function(e){this.onEnterOrDragging(e)},n.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsWrapper.getDomDataKey()},n.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl().getGui(),n=e.dropZoneTarget;return!t.contains(n)},n.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},n.prototype.doManagedDrag=function(e,t){var n=this.isFromThisGrid(e),o=this.gridOptionsWrapper.isRowDragManaged(),r=e.dragItem.rowNodes;o&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!n?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(r[0],t):this.moveRows(r,t))},n.prototype.getRowIndexNumber=function(e){return parseInt(ue(e.getRowIndexString().split("-")),10)},n.prototype.moveRowAndClearHighlight=function(e){var n=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),r=o&&o.highlighted===t.RowHighlightPosition.Below,i=this.mouseEventService.getNormalisedPosition(e).y,s=e.dragItem.rowNodes,a=r?1:0;if(this.isFromThisGrid(e))s.forEach((function(e){e.rowTop<i&&(a-=1)})),this.moveRows(s,i,a);else{var l=this.gridOptionsWrapper.getRowIdFunc(),u=this.clientSideRowModel.getRowIndexAtPixel(i)+1;this.clientSideRowModel.getHighlightPosition(i)===t.RowHighlightPosition.Above&&u--,this.clientSideRowModel.updateRowData({add:s.map((function(e){return e.data})).filter((function(e){return!n.clientSideRowModel.getRowNode(l?l({data:e,level:0}):e.id)})),addIndex:u})}this.clearRowHighlight()},n.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},n.prototype.moveRows=function(e,t,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},n.prototype.addRowDropZone=function(e){var n=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(t){e.onDragEnter(n.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(o.onDragLeave=function(t){e.onDragLeave(n.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(o.onDragging=function(t){e.onDragging(n.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(o.onDragStop=function(t){e.onDragStop(n.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(Oa({isInterestedIn:function(e){return e===t.DragSourceType.RowDrag},getIconName:function(){return ts.ICON_MOVE},external:!0},o))}else D((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},n.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),o=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),s=this.onDragStop.bind(this);return e?{getContainer:n,onDragEnter:e.onDragEnter?function(n){o(n),e.onDragEnter(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_ENTER,n))}:o,onDragLeave:e.onDragLeave?function(n){r(n),e.onDragLeave(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){s(n),e.onDragStop(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:o,onDragLeave:r,onDragging:i,onDragStop:s,fromGrid:!0}},n.prototype.draggingToRowDragEvent=function(e,n){var o,r,i=this.mouseEventService.getNormalisedPosition(n).y,s=-1;switch(i>this.paginationProxy.getCurrentPageHeight()||(s=this.rowModel.getRowIndexAtPixel(i),o=this.rowModel.getRow(s)),n.vDirection){case t.VerticalDirection.Down:r="down";break;case t.VerticalDirection.Up:r="up";break;default:r=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,nodes:n.dragItem.rowNodes,overIndex:s,overNode:o,y:i,vDirection:r}},n.prototype.dispatchGridEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},n.prototype.onDragLeave=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},n.prototype.onDragStop=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},n.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Pa([Y("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Pa([Y("rowModel")],n.prototype,"rowModel",void 0),Pa([Y("paginationProxy")],n.prototype,"paginationProxy",void 0),Pa([Y("columnModel")],n.prototype,"columnModel",void 0),Pa([Y("focusService")],n.prototype,"focusService",void 0),Pa([Y("sortController")],n.prototype,"sortController",void 0),Pa([Y("filterManager")],n.prototype,"filterManager",void 0),Pa([Y("selectionService")],n.prototype,"selectionService",void 0),Pa([Y("mouseEventService")],n.prototype,"mouseEventService",void 0),Pa([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),Pa([Z("rangeService")],n.prototype,"rangeService",void 0),Pa([Y("columnApi")],n.prototype,"columnApi",void 0),Pa([Y("gridApi")],n.prototype,"gridApi",void 0),Pa([U],n.prototype,"postConstruct",null),n}(Fe),xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Na=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(Ca=t.RowAnimationCssClasses||(t.RowAnimationCssClasses={})).ANIMATION_ON="ag-row-animation",Ca.ANIMATION_OFF="ag-row-no-animation";var La,Ia,Ma="ag-selectable",Fa="ag-force-vertical-scroll",ka="ag-column-moving",Ga=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return xa(n,e),n.prototype.getScrollFeature=function(){return this.bodyScrollFeature},n.prototype.getBodyViewportElement=function(){return this.eBodyViewport},n.prototype.setComp=function(e,t,n,o,r){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=o,this.eBottom=r,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new wa(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Ea(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([o,n,r]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},n.prototype.getComp=function(){return this.comp},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_PINNED_ROW_DATA_CHANGED,this.setFloatingHeights.bind(this))},n.prototype.addFocusListeners=function(e){var t=this;e.forEach((function(e){t.addManagedListener(e,"focusin",(function(){e.classList.add("ag-has-focus")})),t.addManagedListener(e,"focusout",(function(t){e.contains(t.relatedTarget)||e.classList.remove("ag-has-focus")}))}))},n.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?ka:null,e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?Ma:null;this.comp.setCellSelectableCss(t,e)},n.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e)},n.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},n.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var t=function(t){var o=t.relatedTarget;if(null!==Bt(o)){var r=n.some((function(e){return e.contains(o)}))&&e.mouseEventService.isElementInThisGrid(o);if(!r){var i=e.popupService;r=i.getActivePopups().some((function(e){return e.contains(o)}))||i.isElementWithinCustomPopup(o)}r||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop];n.forEach((function(n){return e.addManagedListener(n,"focusout",t)}))}},n.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.paginationProxy.getType(),n=-1;t===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(n=0,this.paginationProxy.forEachNode((function(e){e.group||n++})));var o=-1===n?-1:e+n;this.comp.setRowCount(o)},n.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},n.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)},n.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),t=e?Fa:null;return this.comp.setAlwaysVerticalScrollClass(t,e),e||En(this.eBodyViewport)},n.prototype.setupRowAnimationCssClass=function(){var e=this,n=function(){var n=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),o=n?t.RowAnimationCssClasses.ANIMATION_ON:t.RowAnimationCssClasses.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(o,n)};n(),this.addManagedListener(this.eventService,Ve.EVENT_HEIGHT_SCALE_CHANGED,n)},n.prototype.getGridBodyElement=function(){return this.eGridBody},n.prototype.addBodyViewportListener=function(){var e=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(t){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&t.preventDefault();var n=t.target;n!==e.eBodyViewport&&n!==e.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||e.contextMenuFactory&&e.contextMenuFactory.onContextMenu(t,null,null,null,null,e.eGridBody)})),this.addManagedListener(this.eBodyViewport,"wheel",this.onWheel.bind(this))},n.prototype.onWheel=function(e){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},n.prototype.getGui=function(){return this.eGridBody},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Da(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},n.prototype.getRowDragFeature=function(){return this.rowDragFeature},n.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight();t&&(t+=1);var n=e.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(n),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none")},n.prototype.sizeColumnsToFit=function(e){var t=this,n=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,o=sn(this.eBodyViewport)-n;o>0?this.columnModel.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Na([Y("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),Na([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),Na([Y("columnModel")],n.prototype,"columnModel",void 0),Na([Y("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Na([Z("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Na([Y("headerNavigationService")],n.prototype,"headerNavigationService",void 0),Na([Y("paginationProxy")],n.prototype,"paginationProxy",void 0),Na([Y("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Na([Y("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Na([Y("rowRenderer")],n.prototype,"rowRenderer",void 0),Na([Y("popupService")],n.prototype,"popupService",void 0),Na([Y("mouseEventService")],n.prototype,"mouseEventService",void 0),n}(Fe);(La=t.SelectionHandleType||(t.SelectionHandleType={}))[La.FILL=0]="FILL",La[La.RANGE=1]="RANGE",(Ia=t.CellRangeType||(t.CellRangeType={}))[Ia.VALUE=0]="VALUE",Ia[Ia.DIMENSION=1]="DIMENSION";var Ha,Wa="ag-cell-range-selected",Va=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Wa,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),lo(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,o=!t&&e.right,r=!t&&e.bottom,i=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",i)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return me([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,n=this,o=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,i=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,p=u.columnModel;o?(e=p.getDisplayedColAfter(l),t=p.getDisplayedColBefore(l)):(e=p.getDisplayedColBefore(l),t=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter((function(e){return c.isCellInSpecificRange(n.cellCtrl.getCellPosition(),e)}));e||(a=!0),t||(i=!0);for(var h=0;h<d.length&&!(r&&i&&s&&a);h++){var f=d[h],g=c.getRangeStartRow(f),m=c.getRangeEndRow(f);!r&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(m,this.cellCtrl.getCellPosition())&&(s=!0),!a&&e&&f.columns.indexOf(e)<0&&(a=!0),!i&&t&&f.columns.indexOf(t)<0&&(i=!0)}return{top:r,right:i,bottom:s,left:a}},e.prototype.refreshHandle=function(){if(this.beans.rangeService){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},e.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=e.rangeService,r=o.getCellRanges(),i=r.length;if(this.rangeCount<1||i<1)return!1;var s=ue(r),a=this.cellCtrl.getCellPosition(),l=n.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),u=n.isEnableRangeHandle(),c=1===i&&!this.cellCtrl.isEditing()&&(l||u);if(this.hasChartRange){var p=r[0].type===t.CellRangeType.DIMENSION&&o.isCellInSpecificRange(a,r[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",p),c=s.type===t.CellRangeType.VALUE}return c&&null!=s.endRow&&o.isContiguousRange(s)&&o.isBottomRightCell(s,a)},e.prototype.addSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=ue(e.rangeService.getCellRanges()).type,r=n.isEnableFillHandle()&&i(o)?t.SelectionHandleType.FILL:t.SelectionHandleType.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(r)),this.selectionHandle.refresh(this.cellCtrl)},e.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},e}(),ja=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ba=function(e){function t(t,n){var o=e.call(this)||this;return o.cellCtrl=t,o.beans=n,o.column=t.getColumn(),o.rowNode=t.getRowNode(),o.setupColSpan(),o.setupRowSpan(),o}return ja(t,e),t.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},t.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();ce(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width=e+"px"}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,o=this.column.getPinned(),r=0;n&&r<e&&(t.push(n),(n=this.beans.columnModel.getDisplayedColAfter(n))&&!i(n))&&o===n.getPinned();r++);return t},t.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?ue(this.colsSpanning):this.column).getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===oe.PINNED_LEFT)return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();return this.column.getPinned()===oe.PINNED_RIGHT?t+this.beans.columnModel.getBodyContainerWidth()+(e||0):t+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=e+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),za=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ua=function(e){function t(t,n){var o=e.call(this)||this;return o.staticClasses=[],o.cellCtrl=t,o.beans=n,o.column=t.getColumn(),o.rowNode=t.getRowNode(),o}return za(t,e),t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(t.cellClassRules,n,(function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}),(function(t){return e.cellComp.addOrRemoveCssClass(t,!1)}))},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var t;if("function"===typeof e.cellStyle){var n={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};t=(0,e.cellStyle)(n)}else t=e.cellStyle;this.cellComp.setUserStyles(t)}},t.prototype.applyClassesFromColDef=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,n),this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Ka=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qa=function(e){function t(t,n){var o=e.call(this)||this;return o.ctrl=t,o.beans=n,o}return Ka(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(null==this.genericTooltipFeature){var t={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new $o(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,n=e.getColDef?e.getColDef():void 0,o=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:n,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:o,data:o?o.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Ya=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Za=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Ya([Y("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Ya([Y("paginationProxy")],e.prototype,"paginationProxy",void 0),Ya([Y("context")],e.prototype,"context",void 0),Ya([Y("columnApi")],e.prototype,"columnApi",void 0),Ya([Y("gridApi")],e.prototype,"gridApi",void 0),Ya([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ya([Y("expressionService")],e.prototype,"expressionService",void 0),Ya([Y("rowRenderer")],e.prototype,"rowRenderer",void 0),Ya([Y("templateService")],e.prototype,"templateService",void 0),Ya([Y("valueService")],e.prototype,"valueService",void 0),Ya([Y("eventService")],e.prototype,"eventService",void 0),Ya([Y("columnModel")],e.prototype,"columnModel",void 0),Ya([Y("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Ya([Y("navigationService")],e.prototype,"navigationService",void 0),Ya([Y("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Ya([Z("rangeService")],e.prototype,"rangeService",void 0),Ya([Y("focusService")],e.prototype,"focusService",void 0),Ya([Z("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Ya([Y("popupService")],e.prototype,"popupService",void 0),Ya([Y("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Ya([Y("stylingService")],e.prototype,"stylingService",void 0),Ya([Y("columnHoverService")],e.prototype,"columnHoverService",void 0),Ya([Y("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ya([Y("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),Ya([Y("animationFrameService")],e.prototype,"animationFrameService",void 0),Ya([Y("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ya([Y("sortController")],e.prototype,"sortController",void 0),Ya([Y("filterManager")],e.prototype,"filterManager",void 0),Ya([Y("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Ya([Y("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Ya([Y("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Ya([Y("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Ya([Y("selectionService")],e.prototype,"selectionService",void 0),Ya([Z("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),Ya([Y("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Ya([Y("rowModel")],e.prototype,"rowModel",void 0),Ya([Y("ctrlsService")],e.prototype,"ctrlsService",void 0),Ya([Y("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),Ya([Y("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),Ya([Y("valueCache")],e.prototype,"valueCache",void 0),Ya([Y("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),Ya([U],e.prototype,"postConstruct",null),e=Ya([q("beans")],e)}(),$a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xa=function(e){function t(t,n,o){var r=e.call(this)||this;return r.cellCtrl=t,r.beans=n,r.column=o,r}return $a(t,e),t.prototype.onMouseEvent=function(e,t){if(!Pe(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,o=t.gridOptionsWrapper,r=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_CLICKED);n.dispatchEvent(r);var i=this.column.getColDef();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(r)}),0),(o.isSingleClickEdit()||i.singleClickEdit)&&!o.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!jt()||Te("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),n=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"===typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,o=e.shiftKey,r=e.target,i=this.beans,s=i.eventService,a=i.rangeService;if(!this.isRightClickInExistingRange(e)){var l=a&&0!=a.getCellRanges().length;if(!o||!l){var u=Gt()&&!this.cellCtrl.isEditing()&&!Qt(r);this.cellCtrl.focusCell(u)}if(o&&l&&e.preventDefault(),!this.containsWidget(r)){if(a){var c=this.cellCtrl.getCellPosition();if(o)a.extendLatestRangeToCell(c);else{var p=t||n;a.setRangeToCell(c,p)}}s.dispatchEvent(this.cellCtrl.createEvent(e,Ve.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t&&(t.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===e.button))return!0;return!1},t.prototype.containsWidget=function(e){return nn(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),n=t.contains(e.target),o=t.contains(e.relatedTarget);return n&&o},t.prototype.destroy=function(){},t}(Za),Qa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ja=function(e){function t(t,n,o,r,i){var s=e.call(this)||this;return s.cellCtrl=t,s.beans=n,s.rowNode=r,s.rowCtrl=i,s}return Qa(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case dr.ENTER:this.onEnterKeyDown(e);break;case dr.F2:this.onF2KeyDown(e);break;case dr.ESCAPE:this.onEscapeKeyDown(e);break;case dr.TAB:this.onTabKeyDown(e);break;case dr.BACKSPACE:case dr.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case dr.DOWN:case dr.UP:case dr.RIGHT:case dr.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(e,void 0,t)},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,dr.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(dr.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(dr.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):xo(e)&&(this.cellCtrl.startRowOrCellEdit(null,t,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var n=this.rowNode.isSelected(),o=!n;if(o||!t.isSuppressRowDeselection()){var r=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),i=this.rowNode.setSelectedParams({newValue:o,rangeSelect:e.shiftKey,groupSelectsFiltered:r});void 0===n&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:r})}}e.preventDefault()},t.prototype.destroy=function(){},t}(Fe),el=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},nl=function(e){function t(t,n,o,r){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=t,i.column=n,i.beans=o,i.eCell=r,i}return el(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Ao("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation()})),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var n=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n)}catch(o){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},tl([U],t.prototype,"postConstruct",null),t}(tr),ol=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rl=function(){return rl=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},rl.apply(this,arguments)},il="ag-cell-not-inline-editing",sl=0,al=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.suppressRefreshCell=!1,i.column=t,i.rowNode=n,i.beans=o,i.rowCtrl=r,i.instanceId=t.getId()+"-"+sl++,i.createCellPosition(),i.addFeatures(),i}return ol(t,e),t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new Ba(this,this.beans),this.addDestroyFunc((function(){return e.cellPositionFeature.destroy()})),this.cellCustomStyleFeature=new Ua(this,this.beans),this.addDestroyFunc((function(){return e.cellCustomStyleFeature.destroy()})),this.cellMouseListenerFeature=new Xa(this,this.beans,this.column),this.addDestroyFunc((function(){return e.cellMouseListenerFeature.destroy()})),this.cellKeyboardListenerFeature=new Ja(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){return e.cellKeyboardListenerFeature.destroy()})),this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection()&&(this.cellRangeFeature=new Va(this.beans,this),this.addDestroyFunc((function(){return e.cellRangeFeature.destroy()}))),this.addTooltipFeature()},t.prototype.addTooltipFeature=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var t=e.column.getColDef(),n=e.rowNode.data;if(t.tooltipField&&r(n))return E(n,t.tooltipField,e.column.isTooltipFieldContainsDots());var o=t.tooltipValueGetter;return o?o({location:"cell",api:e.beans.gridOptionsWrapper.getApi(),columnApi:e.beans.gridOptionsWrapper.getColumnApi(),context:e.beans.gridOptionsWrapper.getContext(),colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new qa(t,this.beans),this.addDestroyFunc((function(){return e.tooltipFeature.destroy()}))},t.prototype.setComp=function(e,t,n,o,r){this.cellComp=e,this.gow=this.beans.gridOptionsWrapper,this.eGui=t,this.eCellWrapper=n,this.printLayout=o,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(),this.setAriaColIndex(),this.gow.isSuppressCellFocus()||this.cellComp.setTabIndex(-1);var i=Ye(this.column.getId());this.cellComp.setColId(i),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(t),this.cellCustomStyleFeature.setComp(e),this.tooltipFeature.setComp(e),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),r&&this.isCellEditable()?this.startEditing():this.showValue()},t.prototype.setupAutoHeight=function(){var e=this;if(this.column.isAutoHeight()){var t=this.eCellWrapper,n=t.parentElement,o=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,r=function r(i){if(!e.editing&&e.isAlive()){var s=on(n),a=s.paddingTop,l=s.paddingBottom,u=t.offsetHeight+a+l;if(i<5){var c=e.beans.gridOptionsWrapper.getDocument();if(!c||!c.contains(t)||0==u)return void e.beans.frameworkOverrides.setTimeout((function(){return r(i+1)}),0)}var p=Math.max(u,o);e.rowNode.setRowAutoHeight(p,e.column)}},i=function(){return r(0)};i();var s=this.beans.resizeObserverService.observeResize(t,i);this.addDestroyFunc((function(){s(),e.rowNode.setRowAutoHeight(void 0,e.column)}))}},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.showValue=function(e){void 0===e&&(e=!1);var t=null!=this.valueFormatted?this.valueFormatted:this.value,n=this.createCellRendererParams(),o=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n);this.cellComp.setRenderDetails(o,t,e),this.refreshHandle()},t.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},t.prototype.isForceWrapper=function(){return this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.isAutoHeight()},t.prototype.isIncludeControl=function(e){return!(null!=this.rowNode.rowPinned)&&("function"===typeof e||!0===e)},t.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),o=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||n||o},t.prototype.startEditing=function(e,t,n,o){var r,i;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),void 0===o&&(o=null),this.isCellEditable()&&!this.editing){var s=this.createCellEditorParams(e,t,n),a=this.column.getColDef(),l=this.beans.userComponentFactory.getCellEditorDetails(a,s),u=null!=(null===(r=l)||void 0===r?void 0:r.popupFromSelector)?l.popupFromSelector:!!a.cellEditorPopup,c=null!=(null===(i=l)||void 0===i?void 0:i.popupPositionFromSelector)?l.popupPositionFromSelector:a.cellEditorPopupPosition;this.setEditing(!0,u),this.cellComp.setEditDetails(l,u,c);var p=this.createEvent(o,Ve.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(p)}},t.prototype.setEditing=function(e,t){void 0===t&&(t=!1),this.editing!==e&&(this.editing=e,this.editingInPopup=t,this.setInlineEditingClass())},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},t.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},t.prototype.takeValueFromCellEditor=function(e){var t={newValueExists:!1};if(e)return t;var n=this.cellComp.getCellEditor();return n?n.isCancelAfterEnd&&n.isCancelAfterEnd()?t:{newValue:n.getValue(),newValueExists:!0}:t},t.prototype.saveNewValue=function(e,t){if(t===e)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(e,t),!1;this.suppressRefreshCell=!0;var n=this.rowNode.setDataValue(this.column,t);return this.suppressRefreshCell=!1,n},t.prototype.dispatchEventForSaveValueReadOnly=function(e,t){var n=this.rowNode,o={type:Ve.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),data:n.data,node:n,oldValue:e,newValue:t,value:t,source:void 0};this.beans.eventService.dispatchEvent(o)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),n=t.newValue,o=t.newValueExists,r=this.getValueFromValueService(),i=!1;return o&&(i=this.saveNewValue(r,n)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(r,n),i},t.prototype.dispatchEditingStoppedEvent=function(e,t){var n=rl(rl({},this.createEvent(null,Ve.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t});this.beans.eventService.dispatchEvent(n)},t.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editing&&!this.editingInPopup,t=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass("ag-cell-inline-editing",e),this.cellComp.addOrRemoveCssClass(il,!e),this.cellComp.addOrRemoveCssClass("ag-cell-popup-editing",t),this.rowCtrl.setInlineEditingCss(this.editing)}},t.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},t.prototype.createCellEditorParams=function(e,t,n){return{value:this.getValueFromValueService(),key:e,eventKey:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},t.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(t,n,o,r){return e.registerRowDragger(t,n,r)},addRowCompListener:function(t,n){console.warn("AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided."),e.rowCtrl.addEventListener(t,n)}}},t.prototype.parseValue=function(e){var t=this.column.getColDef(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},o=t.valueParser;return r(o)?this.beans.expressionService.evaluate(o,n):e},t.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},t.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},t.prototype.onCellChanged=function(e){this.cellComp&&(e.column===this.column&&this.refreshCell({}))},t.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var t=this.column.getColDef(),n=null!=e&&!!e.newData,o=null!=e&&!!e.suppressFlash||!!t.suppressCellFlash,r=null==t.field&&null==t.valueGetter&&null==t.showRowGroup,i=e&&e.forceRefresh||r||n,s=this.updateAndFormatValue();if(i||s){this.showValue(n);var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!o&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.navigationService.navigateToNextCell(null,dr.DOWN,this.getCellPosition(),!1)},t.prototype.flashCell=function(e){var t=e&&e.flashDelay,n=e&&e.fadeDelay;this.animateCell("data-changed",t,n)},t.prototype.animateCell=function(e,t,n){var o=this,i="ag-cell-"+e,s="ag-cell-"+e+"-animation",a=this.beans.gridOptionsWrapper;t||(t=a.getCellFlashDelay()),r(n)||(n=a.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(i,!0),this.cellComp.addOrRemoveCssClass(s,!1),window.setTimeout((function(){o.cellComp.addOrRemoveCssClass(i,!1),o.cellComp.addOrRemoveCssClass(s,!0),o.eGui.style.transition="background-color "+n+"ms",window.setTimeout((function(){o.cellComp.addOrRemoveCssClass(s,!1),o.eGui.style.transition=""}),n)}),t)},t.prototype.onFlashCells=function(e){if(this.cellComp){var t=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[t]&&this.animateCell("highlight")}},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},t.prototype.formatValue=function(e){var t=this.callValueFormatter(e);return null!=t?t:e},t.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},t.prototype.updateAndFormatValue=function(e){void 0===e&&(e=!1);var t=this.value,n=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n)},t.prototype.valuesAreEqual=function(e,t){var n=this.column.getColDef();return n.equals?n.equals(e,t):e===t},t.prototype.getComp=function(){return this.cellComp},t.prototype.getValueFromValueService=function(){var e=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),o=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r=t&&n&&!o;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},t.prototype.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,n=this.getGui();this.beans.gridOptionsWrapper.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,null)}))},t.prototype.createEvent=function(e,t){return{type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyPress=function(e){this.cellKeyboardListenerFeature.onKeyPress(e)},t.prototype.onKeyDown=function(e){this.cellKeyboardListenerFeature.onKeyDown(e)},t.prototype.onMouseEvent=function(e,t){this.cellMouseListenerFeature.onMouseEvent(e,t)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},t.prototype.onLeftChanged=function(){this.cellComp&&this.cellPositionFeature.onLeftChanged()},t.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},t.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);ro(this.getGui(),e)},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},t.prototype.getColumn=function(){return this.column},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getBeans=function(){return this.beans},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.appendChild=function(e){this.eGui.appendChild(e)},t.prototype.refreshHandle=function(){this.editing||this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.isEditing=function(){return this.editing},t.prototype.startRowOrCellEdit=function(e,t,n){void 0===n&&(n=null),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(e,t,this):this.startEditing(e,t,!0,n)},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},t.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusService.setFocusedCell(this.getCellPosition().rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",e)}},t.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",e)}},t.prototype.onCellFocused=function(e){if(this.cellComp&&!this.gow.isSuppressCellFocus()){var t=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp.addOrRemoveCssClass("ag-cell-focus",t),t&&e&&e.forceBrowserFocus)this.cellComp.getFocusableElement().focus();var n=this.beans.gridOptionsWrapper.isFullRowEdit();t||n||!this.editing||this.stopRowOrCellEdit()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:o(this.rowNode.rowPinned),column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass(il,!0);var e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",e),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!e)},t.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",e)}},t.prototype.onNewColumnsLoaded=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},t.prototype.setWrapText=function(){var e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",e)},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.column.getColDef(),n=this.createEvent(e,Ve.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(n)}),0)},t.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},t.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.createSelectionCheckbox=function(){var e=new $i;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new nl(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},t.prototype.registerRowDragger=function(e,t,n){var o=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,t);else{var r=this.createRowDragComp(e,t,n);r&&(this.customRowDragComp=r,this.addDestroyFunc((function(){return o.beans.context.destroyBean(r)})))}},t.prototype.createRowDragComp=function(e,t,n){var o=this,r=this.beans.gridOptionsWrapper.isPagination(),i=this.beans.gridOptionsWrapper.isRowDragManaged(),s=this.beans.gridOptionsWrapper.isRowModelDefault();if(i){if(!s)return void D((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(r)return void D((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var a=new rs((function(){return o.value}),this.rowNode,this.column,e,t,n);return this.beans.context.createBean(a),a},t.DOM_DATA_KEY_CELL_CTRL="cellCtrl",t}(Fe),ll=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ul=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},cl=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ul(arguments[t]));return e};!function(e){e.Normal="Normal",e.FullWidth="FullWidth",e.FullWidthLoading="FullWidthLoading",e.FullWidthGroup="FullWidthGroup",e.FullWidthDetail="FullWidthDetail"}(Ha||(Ha={}));var pl,dl,hl=0,fl=function(e){function n(t,n,o,r,i){var s=e.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.beans=n,s.rowNode=t,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=r,s.printLayout=i,s.instanceId=t.id+"-"+hl++,s.setAnimateFlags(o),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s.setInitialRowTop(),s}return ll(n,e),n.prototype.getBeans=function(){return this.beans},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e,n,o){var r={rowComp:e,element:n,containerType:o};this.allRowGuis.push(r),o===t.RowContainerType.LEFT?this.leftGui=r:o===t.RowContainerType.RIGHT?this.rightGui=r:o===t.RowContainerType.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r;var i=null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui,s=null!=this.fullWidthGui;(i||s)&&this.initialiseRowComps()},n.prototype.isCacheable=function(){return this.rowType===Ha.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},n.prototype.setCached=function(e){var t=e?"none":"";this.allRowGuis.forEach((function(e){return e.element.style.display=t}))},n.prototype.initialiseRowComps=function(){var e=this,t=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),t.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&F(this.onTopChanged.bind(this)),this.fadeRowIn&&F((function(){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}))}));var o=this.getRowBusinessKey(),r=Ye(this.rowNode.id),i=Ye(o);this.allRowGuis.forEach((function(o){var s=o.rowComp;s.setRole("row"),e.getInitialRowClasses(o.containerType).forEach((function(e){return s.addOrRemoveCssClass(e,!0)})),e.rowNode.group&&$n(o.element,1==e.rowNode.expanded),null!=r&&s.setRowId(r),null!=i&&s.setRowBusinessKey(i),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&s.setTabIndex(-1),t.setDomData(o.element,n.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc((function(){return t.setDomData(o.element,n.DOM_DATA_KEY_ROW_CTRL,null)})),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,o.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(o.element),e.isFullWidth()&&e.setupFullWidth(o),t.isRowDragEntireRow()&&e.addRowDraggerToRow(o),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask((function(){e.isAlive()&&o.rowComp.addOrRemoveCssClass("ag-after-created",!0)}))})),this.executeProcessRowPostCreateFunc()},n.prototype.addRowDraggerToRow=function(e){if(this.beans.gridOptionsWrapper.isEnableRangeSelection())D((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var t=new rs((function(){return"1 row"}),this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(t,this.beans.context)}},n.prototype.setupFullWidth=function(e){var n=this.getPinnedForContainer(e.containerType),o=this.createFullWidthParams(e.element,n),r=re.isRegistered(t.ModuleNames.MasterDetailModule);if(this.rowType!=Ha.FullWidthDetail||r){var i;switch(this.rowType){case Ha.FullWidthDetail:i=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case Ha.FullWidthGroup:i=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case Ha.FullWidthLoading:i=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:i=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o)}e.rowComp.showFullWidth(i)}else re.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+t.ModuleNames.MasterDetailModule)},n.prototype.isPrintLayout=function(){return this.printLayout},n.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},n.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},n.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,o=this.beans.columnModel.isPivotMode(),r=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(o);this.rowType=e?Ha.FullWidthLoading:n?Ha.FullWidthDetail:t?Ha.FullWidth:r?Ha.FullWidthGroup:Ha.Normal},n.prototype.updateColumnLists=function(e){var t=this;(void 0===e&&(e=!1),this.isFullWidth())||(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){t.active&&t.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},n.prototype.createCellCtrls=function(e,t,n){var o=this;void 0===n&&(n=null);var r={list:[],map:{}},i=function(e,t){r.list.push(t),r.map[e]=t};return t.forEach((function(t){var n=t.getInstanceId(),r=e.map[n];r||(r=new al(t,o.rowNode,o.beans,o)),i(n,r)})),e.list.forEach((function(e){null!=r.map[e.getColumn().getInstanceId()]||(!o.isCellEligibleToBeRemoved(e,n)?i(e.getColumn().getInstanceId(),e):e.destroy())})),r},n.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var n=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var o=n.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);var r=n.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,oe.PINNED_LEFT);var i=n.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,oe.PINNED_RIGHT)}this.allRowGuis.forEach((function(n){var o=n.containerType===t.RowContainerType.LEFT?e.leftCellCtrls:n.containerType===t.RowContainerType.RIGHT?e.rightCellCtrls:e.centerCellCtrls;n.rowComp.setCellCtrls(o.list)}))},n.prototype.isCellEligibleToBeRemoved=function(e,t){var n=!0;if(e.getColumn().getPinned()!=t)return n;var o=e.isEditing(),r=this.beans.focusService.isCellFocused(e.getCellPosition());if(o||r){var i=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(i)>=0)&&n}return n},n.prototype.setAnimateFlags=function(e){if(e){var t=r(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.rowType!==Ha.Normal},n.prototype.getRowType=function(){return this.rowType},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n){if(!t)return!0;var o=t.rowComp.getFullWidthCellRenderer();if(!o)return!1;if(!o.refresh)return!1;var r=e.createFullWidthParams(t.element,n);return o.refresh(r)},n=t(this.fullWidthGui,null),o=t(this.centerGui,null),r=t(this.leftGui,oe.PINNED_LEFT),i=t(this.rightGui,oe.PINNED_RIGHT);return n&&o&&r&&i},n.prototype.addListeners=function(){this.addManagedListener(this.rowNode,qi.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,Ve.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,Ve.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.onColumnMoved=function(){this.updateColumnLists()},n.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,qi.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},n.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(n){var o=e===t.RowHighlightPosition.Above,r=e===t.RowHighlightPosition.Below;n.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),n.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)}))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},n.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",e),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),$n(n.element,e&&t)}))},n.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},n.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},n.prototype.getRowPosition=function(){return{rowPinned:o(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},n.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)}));if((t?t.element:null)===e.target){var n=this.rowNode,o=this.beans.focusService.getFocusedCell(),r={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:o&&o.column};this.beans.navigationService.navigateToNextCell(e,e.key,r,!0),e.preventDefault()}},n.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Pe(e)){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)})),n=t?t.element:null,o=n===e.target,r=null;o||(r=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&o||!r)&&this.beans.navigationService.onTabKeyDown(this,e)}},n.prototype.onFullWidthRowFocused=function(e){var t,n=this.rowNode,o=this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,r=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;r&&(r.classList.toggle("ag-full-width-focus",o),o&&r.focus({preventScroll:!0}))},n.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},n.prototype.removeCellCtrl=function(e,t){var n={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(n.list.push(e),n.map[e.getInstanceId()]=e)})),n},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}},n.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!Pe(e)){var t=this.createRowEventWithSource(Ve.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=nn(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,n=this.beans.columnModel;this.beans.focusService.setFocusedCell(t.rowIndex,n.getAllDisplayedColumns()[0],t.rowPinned,!0)}},n.prototype.onRowClick=function(e){if(!(Pe(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(Ve.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,o=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!o,rangeSelect:o});else{var s=!r&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:o})}}}},n.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===Ha.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var n=e.clientHeight;if(null!=n&&n>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(n),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},o=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(o),n()}},n.prototype.createFullWidthParams=function(e,t){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,o,r){return n.addFullWidthRowDragging(e,t,o,r)}}},n.prototype.addFullWidthRowDragging=function(e,t,n,o){if(void 0===n&&(n=""),this.isFullWidth()){var r=new rs((function(){return n}),this.rowNode,void 0,e,t,o);this.createManagedBean(r,this.beans.context)}},n.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=e},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},n.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-last",t)})))},n.prototype.stopEditing=function(e){void 0===e&&(e=!1);var t=this.getAllCellCtrls().map((function(t){return t.stopEditing(e)}));if(this.editingRow){if(!e&&t.some((function(e){return e}))){var n=this.createRowEvent(Ve.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(n)}this.setEditingRow(!1)}},n.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)}))},n.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-editing",e)}));var t=e?this.createRowEvent(Ve.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Ve.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),this.editingRow||(this.getAllCellCtrls().forEach((function(r){var i=r===n;i?r.startEditing(e,t,i,o):r.startEditing(null,null,i,o)})),this.setEditingRow(!0))},n.prototype.getAllCellCtrls=function(){return cl(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);t&&t.length&&t.forEach((function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}),(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!1)}))}))},n.prototype.setStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(t){return t.rowComp.setUserStyles(e)}))},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"===typeof e)return e(this.rowNode)},n.prototype.getPinnedForContainer=function(e){return e===t.RowContainerType.LEFT?oe.PINNED_LEFT:e===t.RowContainerType.RIGHT?oe.PINNED_RIGHT:null},n.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!==typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return Object.assign({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.onRowSelected=function(){var e=this,t=!!this.rowNode.isSelected();this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-selected",t),lo(n.element,!!t||void 0);var o=e.createAriaLabel();zn(n.element,null==o?"":o)}))},n.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsWrapper.isSuppressRowDeselection())return this.beans.gridOptionsWrapper.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},n.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,qi.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||e.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,qi.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,o=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),o)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.onRowHeightChanged=function(){if(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,t=this.beans.gridOptionsWrapper.getDefaultRowHeight(),n=this.beans.gridOptionsWrapper.isGetRowHeightFunction()?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,o=n?Math.min(t,n)-2+"px":void 0;this.allRowGuis.forEach((function(t){t.element.style.height=e+"px",o&&t.element.style.setProperty("--ag-line-height",o)}))}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Ve.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+Ve.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Ve.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Ve.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(Ve.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},n.prototype.setupRemoveAnimation=function(){if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},n.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(e){return e.list.forEach((function(e){return e.destroy()})),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},n.prototype.setFocusedClasses=function(){var e=this;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&r(e)){var t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.setRowTopStyle(n)}},n.prototype.getInitialRowTop=function(){return this.initialTop},n.prototype.getInitialTransform=function(){return this.initialTransform},n.prototype.setInitialRowTop=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.initialTop=n:this.initialTransform="translateY("+n+")"},n.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(n){return t?n.rowComp.setTop(e):n.rowComp.setTransform("translateY("+e+")")}))},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(n){n.getColumn()==e&&(t=n)})),null!=t||this.getAllCellCtrls().forEach((function(n){n.getColSpanningList().indexOf(e)>=0&&(t=n)})),t},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},n.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2===0,o=t+this.rowNode.rowIndex+1;this.allRowGuis.forEach((function(t){t.rowComp.setRowIndex(e),t.rowComp.addOrRemoveCssClass("ag-row-even",n),t.rowComp.addOrRemoveCssClass("ag-row-odd",!n),no(t.element,o)}))},n.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},n.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},n.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},n.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},n.DOM_DATA_KEY_ROW_CTRL="renderedRow",n}(Fe),gl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ml=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vl=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},yl=function(e){function n(t){var n=e.call(this)||this;return n.element=t,n}return gl(n,e),n.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var n=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",Te("touchstart")?"touchstart":"mousedown"].forEach((function(t){var n=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Pe(t)){var n=this.getRowForEvent(t),o=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,n,o):(o&&o.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},n.prototype.mockContextMenuForIPad=function(){var e=this;if(jt()){var t=new mi(this.element);this.addManagedListener(t,mi.EVENT_LONG_TAP,(function(t){var n=e.getRowForEvent(t.touchEvent),o=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,o)})),this.addDestroyFunc((function(){return t.destroy()}))}},n.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var n=this.gridOptionsWrapper.getDomData(t,fl.DOM_DATA_KEY_ROW_CTRL);if(n)return n;t=t.parentElement}return null},n.prototype.handleContextMenuMouseEvent=function(e,t,n,o){var r=n?n.getRowNode():null,i=o?o.getColumn():null,s=null;if(i){var a=e||t;o.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,r)}var l=this.ctrlsService.getGridBodyCtrl(),u=o?o.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,r,i,s,u)},n.prototype.processKeyboardEvent=function(e,t){var n=Ae(this.gridOptionsWrapper,t,al.DOM_DATA_KEY_CELL_CTRL),o=Ae(this.gridOptionsWrapper,t,fl.DOM_DATA_KEY_ROW_CTRL);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):o&&o.isFullWidth()&&this.processFullWidthRowKeyboardEvent(o,e,t))},n.prototype.processCellKeyboardEvent=function(e,t,n){var o=e.getRowNode(),r=e.getColumn(),i=e.isEditing();if(!No(this.gridOptionsWrapper,n,o,r,i))switch(t){case"keydown":!i&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing());break;case"keypress":e.onKeyPress(n)}if("keydown"===t){var s=e.createEvent(n,Ve.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===t){var a=e.createEvent(n,Ve.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(a)}},n.prototype.processFullWidthRowKeyboardEvent=function(e,t,n){var o=e.getRowNode(),r=this.focusService.getFocusedCell(),i=r&&r.column;if(!No(this.gridOptionsWrapper,n,o,i,!1)){var s=n.key;if("keydown"===t)switch(s){case dr.UP:case dr.DOWN:e.onKeyboardNavigate(n);break;case dr.TAB:e.onTabKeyDown(n)}}if("keydown"===t){var a=e.createRowEvent(Ve.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(a)}if("keypress"===t){var l=e.createRowEvent(Ve.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(l)}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e))switch(e.code){case dr.A:return this.onCtrlAndA(e);case dr.C:return this.onCtrlAndC(e);case dr.V:return this.onCtrlAndV();case dr.D:return this.onCtrlAndD(e);case dr.Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case dr.Y:return this.undoRedoService.redo()}},n.prototype.onCtrlAndA=function(e){var t=this,n=t.pinnedRowModel,o=t.paginationProxy,r=t.rangeService,i=oe.PINNED_BOTTOM,a=oe.PINNED_TOP;if(r&&o.isRowsToRender()){var l=vl([n.isEmpty(a),n.isEmpty(i)],2),u=l[0]?null:a,c=void 0,p=void 0;l[1]?(c=null,p=this.paginationProxy.getRowCount()-1):(c=i,p=n.getPinnedBottomRowData().length-1);var d=this.columnModel.getAllDisplayedColumns();if(s(d))return;r.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:p,rowEndPinned:c,columnStart:d[0],columnEnd:ue(d)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){re.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){re.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},ml([Y("mouseEventService")],n.prototype,"mouseEventService",void 0),ml([Y("valueService")],n.prototype,"valueService",void 0),ml([Z("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),ml([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),ml([Y("navigationService")],n.prototype,"navigationService",void 0),ml([Y("focusService")],n.prototype,"focusService",void 0),ml([Y("undoRedoService")],n.prototype,"undoRedoService",void 0),ml([Y("columnModel")],n.prototype,"columnModel",void 0),ml([Y("paginationProxy")],n.prototype,"paginationProxy",void 0),ml([Y("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),ml([Z("rangeService")],n.prototype,"rangeService",void 0),ml([Z("clipboardService")],n.prototype,"clipboardService",void 0),ml([U],n.prototype,"postConstruct",null),n}(Fe),Cl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_l=function(e){function t(t){var n=e.call(this)||this;return n.centerContainerCtrl=t,n}return Cl(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()})),this.addManagedListener(this.eventService,Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},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=rn(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:Ve.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},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),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},wl([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),wl([Y("columnModel")],t.prototype,"columnModel",void 0),wl([Y("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),wl([Y("columnApi")],t.prototype,"columnApi",void 0),wl([Y("gridApi")],t.prototype,"gridApi",void 0),wl([U],t.prototype,"postConstruct",null),t}(Fe),bl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),El=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return bl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;Jt(this.element,t),t&&Rn(this.element,e)},El([Y("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),El([U],t.prototype,"postConstruct",null),t}(Fe),Rl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ol=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return Rl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;Jt(this.element,t),t&&Rn(this.element,e)},Ol([Y("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Ol([U],t.prototype,"postConstruct",null),t}(Fe),Tl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Al=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Dl=function(e){function t(t,n){var o=e.call(this)||this;return o.eContainer=t,o.eWrapper=n,o}return Tl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+"px":"";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},Al([Y("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),Al([U],t.prototype,"postConstruct",null),t}(Fe),xl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ll=function(e){function t(t){var n=e.call(this)||this;return n.eContainer=t,n}return xl(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!i(this.rangeService)){var t={dragStartPixels:0,eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(t),this.addDestroyFunc((function(){return e.dragService.removeDragSource(t)}))}},Nl([Z("rangeService")],t.prototype,"rangeService",void 0),Nl([Y("dragService")],t.prototype,"dragService",void 0),Nl([U],t.prototype,"postConstruct",null),t}(Fe),Il=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ml=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fl=function(e){function t(t){var n=e.call(this)||this;return n.callback=t,n}return Il(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),o=e.getDisplayedColumnsLeftWidth(),r=e.getDisplayedColumnsRightWidth(),i=t?n+o+r:n;this.callback(i)},Ml([Y("columnModel")],t.prototype,"columnModel",void 0),Ml([U],t.prototype,"postConstruct",null),t}(Fe),kl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Hl=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Wl=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Hl(arguments[t]));return e};function Vl(e){switch(e){case t.RowContainerName.CENTER:case t.RowContainerName.TOP_CENTER:case t.RowContainerName.BOTTOM_CENTER:return t.RowContainerType.CENTER;case t.RowContainerName.LEFT:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.BOTTOM_LEFT:return t.RowContainerType.LEFT;case t.RowContainerName.RIGHT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.BOTTOM_RIGHT:return t.RowContainerType.RIGHT;case t.RowContainerName.FULL_WIDTH:case t.RowContainerName.TOP_FULL_WIDTH:case t.RowContainerName.BOTTOM_FULL_WIDTH:return t.RowContainerType.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(pl=t.RowContainerName||(t.RowContainerName={})).LEFT="left",pl.RIGHT="right",pl.CENTER="center",pl.FULL_WIDTH="fullWidth",pl.TOP_LEFT="topLeft",pl.TOP_RIGHT="topRight",pl.TOP_CENTER="topCenter",pl.TOP_FULL_WIDTH="topFullWidth",pl.BOTTOM_LEFT="bottomLeft",pl.BOTTOM_RIGHT="bottomRight",pl.BOTTOM_CENTER="bottomCenter",pl.BOTTOM_FULL_WIDTH="bottomFullWidth",(dl=t.RowContainerType||(t.RowContainerType={})).LEFT="left",dl.RIGHT="right",dl.CENTER="center",dl.FULL_WIDTH="fullWidth";var jl=Xe([[t.RowContainerName.CENTER,"ag-center-cols-container"],[t.RowContainerName.LEFT,"ag-pinned-left-cols-container"],[t.RowContainerName.RIGHT,"ag-pinned-right-cols-container"],[t.RowContainerName.FULL_WIDTH,"ag-full-width-container"],[t.RowContainerName.TOP_CENTER,"ag-floating-top-container"],[t.RowContainerName.TOP_LEFT,"ag-pinned-left-floating-top"],[t.RowContainerName.TOP_RIGHT,"ag-pinned-right-floating-top"],[t.RowContainerName.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[t.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-container"],[t.RowContainerName.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[t.RowContainerName.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[t.RowContainerName.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Bl=Xe([[t.RowContainerName.CENTER,"ag-center-cols-viewport"],[t.RowContainerName.TOP_CENTER,"ag-floating-top-viewport"],[t.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),zl=Xe([[t.RowContainerName.CENTER,"ag-center-cols-clipper"]]),Ul=function(e){function n(t){var n=e.call(this)||this;return n.name=t,n}return kl(n,e),n.getRowContainerCssClasses=function(e){return{container:jl.get(e),viewport:Bl.get(e),wrapper:zl.get(e)}},n.getPinned=function(e){switch(e){case t.RowContainerName.BOTTOM_LEFT:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.LEFT:return oe.PINNED_LEFT;case t.RowContainerName.BOTTOM_RIGHT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.RIGHT:return oe.PINNED_RIGHT;default:return null}},n.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([t.RowContainerName.CENTER],(function(){return e.viewportSizeFeature=e.createManagedBean(new _l(e))}))},n.prototype.registerWithCtrlsService=function(){switch(this.name){case t.RowContainerName.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case t.RowContainerName.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case t.RowContainerName.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case t.RowContainerName.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case t.RowContainerName.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case t.RowContainerName.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},n.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},n.prototype.getContainerElement=function(){return this.eContainer},n.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},n.prototype.setComp=function(e,n,o,r){var i=this;this.comp=e,this.eContainer=n,this.eViewport=o,this.eWrapper=r,this.createManagedBean(new yl(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var s=[t.RowContainerName.TOP_CENTER,t.RowContainerName.TOP_LEFT,t.RowContainerName.TOP_RIGHT],a=[t.RowContainerName.BOTTOM_CENTER,t.RowContainerName.BOTTOM_LEFT,t.RowContainerName.BOTTOM_RIGHT],l=[t.RowContainerName.CENTER,t.RowContainerName.LEFT,t.RowContainerName.RIGHT],u=Wl(s,a,l),c=[t.RowContainerName.CENTER,t.RowContainerName.LEFT,t.RowContainerName.RIGHT,t.RowContainerName.FULL_WIDTH],p=[t.RowContainerName.CENTER,t.RowContainerName.TOP_CENTER,t.RowContainerName.BOTTOM_CENTER],d=[t.RowContainerName.LEFT,t.RowContainerName.BOTTOM_LEFT,t.RowContainerName.TOP_LEFT],h=[t.RowContainerName.RIGHT,t.RowContainerName.BOTTOM_RIGHT,t.RowContainerName.TOP_RIGHT];this.forContainers(d,(function(){return i.createManagedBean(new Sl(i.eContainer))})),this.forContainers(h,(function(){return i.createManagedBean(new Pl(i.eContainer))})),this.forContainers(c,(function(){return i.createManagedBean(new Dl(i.eContainer,i.eWrapper))})),this.forContainers(u,(function(){return i.createManagedBean(new Ll(i.eContainer))})),this.forContainers(p,(function(){return i.createManagedBean(new Fl((function(e){return i.comp.setContainerWidth(e+"px")})))})),this.addListeners(),this.registerWithCtrlsService()},n.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return e.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return e.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},n.prototype.listenOnDomOrder=function(){var e=this,t=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,t),t()},n.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([t.RowContainerName.TOP_CENTER,t.RowContainerName.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},n.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([t.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},n.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([t.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},n.prototype.onScrollVisibilityChanged=function(){if(this.name===t.RowContainerName.CENTER){var e=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=0==e?"100%":"calc(100% + "+e+"px)";this.comp.setViewportHeight(n)}},n.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc((function(){return e.eContainer.removeEventListener("touchmove",t)}))},n.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},n.prototype.getCenterWidth=function(){return sn(this.eViewport)},n.prototype.getCenterViewportScrollLeft=function(){return cn(this.eViewport,this.enableRtl)},n.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((function(){return t()}))},n.prototype.isViewportVisible=function(){return fn(this.eViewport)},n.prototype.isViewportHScrollShowing=function(){return bn(this.eViewport)},n.prototype.getViewportScrollLeft=function(){return cn(this.eViewport,this.enableRtl)},n.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||bn(this.eViewport)},n.prototype.getViewportElement=function(){return this.eViewport},n.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},n.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},n.prototype.setCenterViewportScrollLeft=function(e){pn(this.eViewport,e,this.enableRtl)},n.prototype.onDisplayedRowsChanged=function(){var e=this,n=this.name===t.RowContainerName.TOP_FULL_WIDTH||this.name===t.RowContainerName.BOTTOM_FULL_WIDTH||this.name===t.RowContainerName.FULL_WIDTH,o=this.getRowCtrls().filter((function(t){var o=t.isFullWidth(),r=e.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,i=e.embedFullWidthRows||r;return n?!i&&o:i||!o}));this.comp.setRowCtrls(o)},n.prototype.getRowCtrls=function(){switch(this.name){case t.RowContainerName.TOP_CENTER:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case t.RowContainerName.BOTTOM_CENTER:case t.RowContainerName.BOTTOM_LEFT:case t.RowContainerName.BOTTOM_RIGHT:case t.RowContainerName.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},Gl([Y("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Gl([Y("dragService")],n.prototype,"dragService",void 0),Gl([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),Gl([Y("columnModel")],n.prototype,"columnModel",void 0),Gl([Y("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Gl([Y("rowRenderer")],n.prototype,"rowRenderer",void 0),Gl([U],n.prototype,"postConstruct",null),n}(Fe),Kl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ql=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yl='<div class="ag-root ag-unselectable" role="grid">\n <ag-header-root ref="gridHeader"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation">\n <ag-row-container ref="topLeftContainer" name="'+t.RowContainerName.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+t.RowContainerName.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+t.RowContainerName.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+t.RowContainerName.TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+t.RowContainerName.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+t.RowContainerName.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+t.RowContainerName.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+t.RowContainerName.FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n <ag-row-container ref="bottomLeftContainer" name="'+t.RowContainerName.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+t.RowContainerName.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+t.RowContainerName.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+t.RowContainerName.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n </div>\n <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n <ag-overlay-wrapper></ag-overlay-wrapper>\n </div>',Zl=function(e){function n(){return e.call(this,Yl)||this}return Kl(n,e),n.prototype.init=function(){var e=this,n=function(e,t){var n=e+"px";t.style.minHeight=n,t.style.height=n},o={setRowAnimationCssOnBodyViewport:function(t,n){return e.setRowAnimationCssOnBodyViewport(t,n)},setColumnCount:function(t){return oo(e.getGui(),t)},setRowCount:function(t){return to(e.getGui(),t)},setTopHeight:function(t){return n(t,e.eTop)},setBottomHeight:function(t){return n(t,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setColumnMovingCss:function(t,n){return e.addOrRemoveCssClass(ka,n)},updateLayoutClasses:function(n,o){var r=e.eBodyViewport.classList;r.toggle(t.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),r.toggle(t.LayoutCssClasses.NORMAL,o.normal),r.toggle(t.LayoutCssClasses.PRINT,o.print),e.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),e.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,o.normal),e.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,o.print)},setAlwaysVerticalScrollClass:function(t,n){return e.eBodyViewport.classList.toggle(Fa,n)},registerBodyViewportResizeListener:function(t){var n=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc((function(){return n()}))},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,n){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return e.classList.toggle(Ma,n)}))}};this.ctrl=this.createManagedBean(new Ga),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&eo(this.getGui(),!0)},n.prototype.setRowAnimationCssOnBodyViewport=function(e,n){var o=this.eBodyViewport.classList;o.toggle(t.RowAnimationCssClasses.ANIMATION_ON,n),o.toggle(t.RowAnimationCssClasses.ANIMATION_OFF,!n)},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},ql([Y("resizeObserverService")],n.prototype,"resizeObserverService",void 0),ql([Z("rangeService")],n.prototype,"rangeService",void 0),ql([nr("eBodyViewport")],n.prototype,"eBodyViewport",void 0),ql([nr("eTop")],n.prototype,"eTop",void 0),ql([nr("eBottom")],n.prototype,"eBottom",void 0),ql([nr("gridHeader")],n.prototype,"headerRootComp",void 0),ql([U],n.prototype,"init",null),n}(tr),$l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ql=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $l(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.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(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}},t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:Ve.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Xl([Y("columnApi")],t.prototype,"columnApi",void 0),Xl([Y("gridApi")],t.prototype,"gridApi",void 0),Xl([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Xl([U],t.prototype,"postConstruct",null),t=Xl([q("scrollVisibleService")],t)}(Fe),Jl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),eu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=n.gridInstanceSequence.next(),t}var n;return Jl(t,e),n=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[n.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return Ae(this.gridOptionsWrapper,e,al.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},t.prototype.isElementInThisGrid=function(e){for(var t=e;t;){var o=t[n.GRID_DOM_KEY];if(r(o))return o===this.gridInstanceId;t=t.parentElement}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t,n,o=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,r=e;if(null!=r.clientX||null!=r.clientY?(t=r.clientX,n=r.clientY):(t=r.x,n=r.y),o){var i=this.ctrlsService.getGridBodyCtrl(),s=i.getScrollFeature().getVScrollPosition();t+=i.getScrollFeature().getHScrollPosition().left,n+=s.top}return{x:t,y:n}},t.gridInstanceSequence=new Bo,t.GRID_DOM_KEY="__ag_grid_instance",eu([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),t=n=eu([q("mouseEventService")],t)}(Fe),nu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ou=function(){return ou=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ou.apply(this,arguments)},ru=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},iu=function(e){function t(){var t=e.call(this)||this;return t.onPageDown=H(t.onPageDown,100),t.onPageUp=H(t.onPageUp,100),t}return nu(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},t.prototype.handlePageScrollingKey=function(e){var t=e.key,n=e.altKey,o=e.ctrlKey||e.metaKey,r=!!this.rangeService&&e.shiftKey,i=this.mouseEventService.getCellPositionForEvent(e);if(!i)return!1;var s=!1;switch(t){case dr.PAGE_HOME:case dr.PAGE_END:o||n||(this.onHomeOrEndKey(t),s=!0);break;case dr.LEFT:case dr.RIGHT:case dr.UP:case dr.DOWN:!o||n||r||(this.onCtrlUpDownLeftRight(t,i),s=!0);break;case dr.PAGE_DOWN:o||n||(this.onPageDown(i),s=!0);break;case dr.PAGE_UP:o||n||(this.onPageUp(i),s=!0)}return s&&e.preventDefault(),s},t.prototype.navigateTo=function(e){var t=e.scrollIndex,n=e.scrollType,o=e.scrollColumn,i=e.focusIndex,s=e.focusColumn;if(r(o)&&!o.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(o),r(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,n),this.animationFrameService.flushAllFrames(),this.focusService.setFocusedCell(i,s,null,!0),this.rangeService){var a={rowIndex:i,rowPinned:null,column:s};this.rangeService.setRangeToCell(a)}},t.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),o=this.paginationProxy.getPixelOffset(),r=t.top+n,i=this.paginationProxy.getRowIndexAtPixel(r+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i):this.navigateToNextPage(e,i)},t.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),o=t.top,r=this.paginationProxy.getRowIndexAtPixel(o+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,r,!0):this.navigateToNextPage(e,r,!0)},t.prototype.navigateToNextPage=function(e,t,n){var o,r;void 0===n&&(n=!1);var i,s=this.getViewportHeight(),a=this.paginationProxy.getPageFirstRow(),l=this.paginationProxy.getPageLastRow(),u=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getRow(e.rowIndex),p=n?(null===(o=c)||void 0===o?void 0:o.rowHeight)-s-u:s-u,d=(null===(r=c)||void 0===r?void 0:r.rowTop)+p,h=this.paginationProxy.getRowIndexAtPixel(d+u);if(h===e.rowIndex){var f=n?-1:1;t=h=e.rowIndex+f}n?(i="bottom",h<a&&(h=a),t<a&&(t=a)):(i="top",h>l&&(h=l),t>l&&(t=l)),this.isRowTallerThanView(h)&&(t=h,i="top"),this.navigateTo({scrollIndex:t,scrollType:i,scrollColumn:null,focusIndex:h,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,t,n){var o=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((function(){var r=o.getNextFocusIndexForAutoHeight(e,n);o.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column})}),50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,t){var n;void 0===t&&(t=!1);for(var o=t?-1:1,r=this.getViewportHeight(),i=this.paginationProxy.getPageLastRow(),s=0,a=e.rowIndex;a>=0&&a<=i;){var l=this.paginationProxy.getRow(a);if(l){var u=null!==(n=l.rowHeight)&&void 0!==n?n:0;if(s+u>r)break;s+=u}a+=o}return Math.max(0,Math.min(a,i))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=t),n},t.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var n=t.rowHeight;return"number"===typeof n&&n>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,t){var n=this.cellNavigationService.getNextCellToFocus(e,t,!0),o=n.rowIndex,r=n.column;this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:r,focusIndex:o,focusColumn:r})},t.prototype.onHomeOrEndKey=function(e){var t=e===dr.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),o=t?n[0]:ue(n),r=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:o,focusIndex:r,focusColumn:o})},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;if(this.tabToNextCellCommon(e,n,t))t.preventDefault();else if(n){var o=e.getRowPosition(),r=o.rowIndex;(o.rowPinned?0===r:r===this.paginationProxy.getPageFirstRow())&&(t.preventDefault(),this.focusService.focusLastHeader(t))}else e instanceof al&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&t.preventDefault()},t.prototype.tabToNextCell=function(e,t){var n=this.focusService.getFocusedCell();if(!n)return!1;var o=this.getCellByPosition(n);return!!(o||(o=this.rowRenderer.getRowByPosition(n))&&o.isFullWidth())&&this.tabToNextCellCommon(o,e,t)},t.prototype.tabToNextCellCommon=function(e,t,n){var o=e.isEditing();if(!o&&e instanceof al){var r=e.getRowCtrl();r&&(o=r.isEditing())}return(o?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t,n):this.moveToNextEditingCell(e,t,n):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t,n){void 0===n&&(n=null);var o=e.getCellPosition();e.stopEditing();var r=this.findNextCellToFocusOn(o,t,!0);return null!=r&&(r.startEditing(null,null,!0,n),r.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,t,n){void 0===n&&(n=null);var o=e.getCellPosition(),r=this.findNextCellToFocusOn(o,t,!0);if(null==r)return!1;var i=r.getCellPosition(),s=this.isCellEditable(o),a=this.isCellEditable(i),l=i&&o.rowIndex===i.rowIndex&&o.rowPinned===i.rowPinned;(s&&e.setFocusOutOnEditor(),l)||(e.getRowCtrl().stopEditing(),r.getRowCtrl().startRowEditing(void 0,void 0,void 0,n));return a?(r.setFocusInOnEditor(),r.focusCell()):r.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var n,o=this.columnModel.getAllDisplayedColumns();n=e instanceof fl?ou(ou({},e.getRowPosition()),{column:t?o[0]:ue(o)}):e.getCellPosition();var i=this.findNextCellToFocusOn(n,t,!1);if(i instanceof al)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),t);return r(i)},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var o=e;;){e!==o&&(e=o),t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);var i=this.gridOptionsWrapper.getTabToNextCellFunc();if(r(i)){var s=i({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});r(s)?(s.floating&&(D((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),s.rowPinned=s.floating),o={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):o=null}if(!o)return null;if(o.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+o.rowIndex,column:o.column}}),null}var l=this.gridOptionsWrapper.isFullRowEdit();if(n&&!l)if(!this.isCellEditable(o))continue;this.ensureCellVisible(o);var u=this.getCellByPosition(o);if(u){if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(o),u}else{var c=this.rowRenderer.getRowByPosition(o);if(c&&c.isFullWidth())return c}}},t.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},t.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===oe.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===oe.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,t,n,o){for(var s=n,a=!1;s&&(s===n||!this.isValidNavigateCell(s));)this.gridOptionsWrapper.isEnableRtl()?t===dr.LEFT&&(s=this.getLastCellOfColSpan(s)):t===dr.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=i(s=this.cellNavigationService.getNextCellToFocus(t,s));if(a&&e&&e.key===dr.UP&&(s={rowIndex:-1,rowPinned:null,column:n.column}),o){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(r(l)){var u=l({key:t,previousCellPosition:n,nextCellPosition:s||null,event:e});r(u)?(u.floating&&(D((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:n.column},event:e||void 0})}else{var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var n=this.columnModel.getAllDisplayedColumns(),o=this.rowRenderer.getRowByPosition(e);if(!o||!o.isFullWidth())return!1;var r=this.focusService.getFocusedCell(),i={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?ue(n):n[0])};this.focusPosition(i);var s=null!=r&&this.rowPositionUtils.before(i,r),a={type:Ve.EVENT_FULL_WIDTH_ROW_FOCUSED,api:this.gridApi,columnApi:this.columnApi,rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column,isFullWidthCell:!0,floating:i.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:ue(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){i(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},ru([Y("columnApi")],t.prototype,"columnApi",void 0),ru([Y("gridApi")],t.prototype,"gridApi",void 0),ru([Y("mouseEventService")],t.prototype,"mouseEventService",void 0),ru([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),ru([Y("focusService")],t.prototype,"focusService",void 0),ru([Y("animationFrameService")],t.prototype,"animationFrameService",void 0),ru([Z("rangeService")],t.prototype,"rangeService",void 0),ru([Y("columnModel")],t.prototype,"columnModel",void 0),ru([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),ru([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),ru([Y("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ru([Y("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ru([Y("cellNavigationService")],t.prototype,"cellNavigationService",void 0),ru([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ru([U],t.prototype,"postConstruct",null),t=ru([q("navigationService")],t)}(Fe),su=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),au=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},lu=function(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.params=t,n}return su(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),n=this.params;this.addManagedListener(t,"keydown",(function(t){No(e.gridOptionsWrapper,t,n.node,n.column,!0)||n.onKeyDown(t)}))},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",au([U],t.prototype,"postConstruct",null),t}(Si),uu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cu=function(e){function t(t,n,o,r,i){var s=e.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=t,s.column=n.getColumn(),s.rowNode=n.getRowNode(),s.rowCtrl=n.getRowCtrl(),s.eRow=r,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var a=s.getGui();s.forceWrapper=n.isForceWrapper(),s.refreshWrapper(!1);var l=function(e,t,n){var o=n||a;null!=t&&""!=t?o.setAttribute(e,t):o.removeAttribute(e)},u={addOrRemoveCssClass:function(e,t){return s.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return _n(a,e)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(e){return l("tabindex",e.toString())},setRole:function(e){return Wn(a,e)},setColId:function(e){return l("col-id",e)},setTitle:function(e){return l("title",e)},setIncludeSelection:function(e){return s.includeSelection=e},setIncludeRowDrag:function(e){return s.includeRowDrag=e},setIncludeDndSource:function(e){return s.includeDndSource=e},setRenderDetails:function(e,t,n){return s.setRenderDetails(e,t,n)},setEditDetails:function(e,t,n){return s.setEditDetails(e,t,n)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=n,n.setComp(u,s.getGui(),s.eCellWrapper,o,i),s}return uu(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,n){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var o=this.refreshWrapper(!1);if(e)!(n||o)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},t.prototype.setEditDetails=function(e,t,n){e?this.createCellEditorInstance(e,t,n):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 t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,o=n&&null==this.eCellWrapper;o&&(this.eCellWrapper=gn('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var r=!n&&null!=this.eCellWrapper;r&&(hn(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var i=!e&&n,s=i&&null==this.eCellValue;s&&(this.eCellValue=gn('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var a=!i&&null!=this.eCellValue;a&&(hn(this.eCellValue),this.eCellValue=void 0);var l=o||r||s||a;return l&&this.removeControls(),!e&&t&&this.addControls(),l},t.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),t=[];this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue)),t.push(this.checkboxSelectionComp.getCheckboxId())),t.push(e),qn(this.getGui(),t.join(" "))},t.prototype.createCellEditorInstance=function(e,t,n){var o=this,r=this.editorVersion,s=e.newAgStackInstance();if(s){var a=e.params;s.then((function(e){return o.afterCellEditorCreated(r,e,a,t,n)})),i(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();dn(t);var n=null!=e?Ye(e):null;null!=n&&(t.innerHTML=n)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),hn(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),hn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;var t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t},t.prototype.createCellRendererInstance=function(e){var t=this,n=this.beans.gridOptionsWrapper.isAngularCompileRows(),o=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),r=!n&&!o,i=this.rendererVersion,s=e.componentClass,a=function(){if(!(t.rendererVersion!==i||!t.isAlive())){var n=e.newAgStackInstance(),o=t.afterCellRendererCreated.bind(t,i,s);n&&n.then(o)}};r&&this.firstRender?this.beans.animationFrameService.createTask(a,this.rowNode.rowIndex,"createTasksP2"):a()},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,t,n){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(n);else if(this.cellRenderer=n,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var o=this.getParentOfValue();dn(o),o.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,t,n,o,r){if(e!==this.editorVersion)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing();if(!t.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui(),o||void 0!==t.isPopup&&t.isPopup()?(o||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(n,r)):this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsWrapper.getDocument();(e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,t){var n=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var o=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new lu(e));var r=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&r.appendChild(this.cellEditorGui);var i=this.beans.popupService,s=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),a=null!=t?t:o.getPopupPosition?o.getPopupPosition():"over",l={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:r,keepWithinBounds:!0},u="under"===a?i.positionPopupUnderComponent.bind(i,l):i.positionPopupOverComponent.bind(i,l),c=this.beans.gridOptionsWrapper.getLocaleTextFunc(),p=i.addPopup({modal:s,eChild:r,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:u,ariaLabel:c("ariaLabelCellEditor","Cell Editor")});p&&(this.hideEditorPopup=p.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),e.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),t=this.beans.gridOptionsWrapper.getDocument();e.contains(t.activeElement)&&e.focus({preventScroll:!0}),dn(this.getParentOfValue())},t}(tr),pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),du=function(e){function t(t,n,o){var r=e.call(this)||this;r.cellComps={},r.beans=n,r.rowCtrl=t,r.setTemplate('<div comp-id="'+r.getCompId()+'" style="'+r.getInitialStyle()+'"/>');var i=r.getGui(),s=i.style,a={setDomOrder:function(e){return r.domOrder=e},setCellCtrls:function(e){return r.setCellCtrls(e)},showFullWidth:function(e){return r.showFullWidth(e)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,t){return r.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return _n(i,e)},setTop:function(e){return s.top=e},setTransform:function(e){return s.transform=e},setRowIndex:function(e){return i.setAttribute("row-index",e)},setRole:function(e){return Wn(i,e)},setRowId:function(e){return i.setAttribute("row-id",e)},setRowBusinessKey:function(e){return i.setAttribute("row-business-key",e)},setTabIndex:function(e){return i.setAttribute("tabindex",e.toString())}};return t.setComp(a,r.getGui(),o),r}return pu(t,e),t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),t=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+t},t.prototype.showFullWidth=function(e){var t=this,n=e.newAgStackInstance();n&&n.then((function(e){if(t.isAlive()){var n=e.getGui();t.getGui().appendChild(n),t.rowCtrl.setupDetailRowAutoHeight(n),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)}))},t.prototype.setCellCtrls=function(e){var t=this,n=Object.assign({},this.cellComps);e.forEach((function(e){var o=e.getInstanceId();null==t.cellComps[o]?t.newCellComp(e):n[o]=null}));var o=_(n).filter((function(e){return null!=e}));this.destroyCells(o),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var n=[];e.forEach((function(e){var o=t.cellComps[e.getInstanceId()];o&&n.push(o.getGui())})),Cn(this.getGui(),n)}},t.prototype.newCellComp=function(e){var t=new cu(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=_(this.cellComps).filter((function(e){return null!=e}));this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc((function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)}))},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var t=this;e.forEach((function(e){if(e){var n=e.getCtrl().getInstanceId();t.cellComps[n]===e&&(e.detach(),e.destroy(),t.cellComps[n]=null)}}))},t}(tr),hu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fu=function(){return fu=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},fu.apply(this,arguments)},gu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};var mu,vu=function(e){function n(){var n=e.call(this,function(){var e=tr.elementGettingCreated.getAttribute("name"),n=Ul.getRowContainerCssClasses(e),o=e===t.RowContainerName.CENTER,r=e===t.RowContainerName.TOP_CENTER||e===t.RowContainerName.BOTTOM_CENTER;return o?'<div class="'+n.wrapper+'" ref="eWrapper" role="presentation">\n <div class="'+n.viewport+'" ref="eViewport" role="presentation">\n <div class="'+n.container+'" ref="eContainer"></div>\n </div>\n </div>':r?'<div class="'+n.viewport+'" ref="eViewport" role="presentation">\n <div class="'+n.container+'" ref="eContainer"></div>\n </div>':'<div class="'+n.container+'" ref="eContainer"></div>'}())||this;return n.rowComps={},n.name=tr.elementGettingCreated.getAttribute("name"),n.type=Vl(n.name),n}return hu(n,e),n.prototype.postConstruct=function(){var e=this,t={setViewportHeight:function(t){return e.eViewport.style.height=t},setRowCtrls:function(t){return e.setRowCtrls(t)},setDomOrder:function(t){e.domOrder=t},setContainerWidth:function(t){return e.eContainer.style.width=t}};this.createManagedBean(new Ul(this.name)).setComp(t,this.eContainer,this.eViewport,this.eWrapper)},n.prototype.preDestroy=function(){this.setRowCtrls([])},n.prototype.setRowCtrls=function(e){var t=this,n=fu({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;e.forEach((function(e){var o=e.getInstanceId(),r=n[o];if(r)t.rowComps[o]=r,delete n[o],t.ensureDomOrder(r.getGui());else{var i=t.newRowComp(e);t.rowComps[o]=i,t.appendRow(i.getGui())}})),_(n).forEach((function(e){t.eContainer.removeChild(e.getGui()),e.destroy()})),Wn(this.eContainer,e.length?"rowgroup":"presentation")},n.prototype.appendRow=function(e){this.domOrder?wn(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},n.prototype.ensureDomOrder=function(e){this.domOrder&&(yn(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},n.prototype.newRowComp=function(e){Ul.getPinned(this.name);return new du(e,this.beans,this.type)},gu([Y("beans")],n.prototype,"beans",void 0),gu([nr("eViewport")],n.prototype,"eViewport",void 0),gu([nr("eContainer")],n.prototype,"eContainer",void 0),gu([nr("eWrapper")],n.prototype,"eWrapper",void 0),gu([U],n.prototype,"postConstruct",null),gu([K],n.prototype,"preDestroy",null),n}(tr),yu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cu=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var n=e.dragItem.columns;n&&n.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))}))}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?ts.ICON_PINNED:ts.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},yu([Y("columnModel")],e.prototype,"columnModel",void 0),yu([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),wu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_u=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!r(e)}return e.prototype.init=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.getIconName=function(){return this.pinned?ts.ICON_PINNED:ts.ICON_MOVE},e.prototype.onDragEnter=function(e){var n=e.dragItem.columns;if(e.dragSource.type===t.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,r=(n||[]).filter((function(e){return o[e.getId()]}));this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnModel.setColumnsVisible(o,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnModel.setColumnsPinned(o,t,n)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>n-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!i(e.hDirection)){var o=this.normaliseX(e.x);t||this.checkCenterForScrolling(o);var r=this.normaliseDirection(e.hDirection),s=e.dragSource.type,a=e.dragSource.getDragItem().columns;a=a.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(s,a,r,o,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case t.HorizontalDirection.Left:return t.HorizontalDirection.Right;case t.HorizontalDirection.Right:return t.HorizontalDirection.Left;default:console.error("AG Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnModel.getAllGridColumns(),n=pe(e.map((function(e){return t.indexOf(e)}))),o=n[0];return ue(n)-o!==n.length-1?null:o},e.prototype.attemptMoveColumns=function(e,n,o,r,i){var s=o===t.HorizontalDirection.Left,a=o===t.HorizontalDirection.Right,l=n.slice();this.columnModel.sortColumnsLikeGridColumns(l);var u=this.calculateValidMoves(l,a,r),c=this.calculateOldIndex(l);if(0!==u.length){var p=u[0],d=null!==c&&!i;if(e==t.DragSourceType.HeaderCell&&(d=null!==c),d){if(s&&p>=c)return;if(a&&p<=c)return}for(var h=0;h<u.length;h++){var f=u[h];if(this.columnModel.doesMovePassRules(l,f))return void this.columnModel.moveColumns(l,f,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,n){var o=this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable}));if(o)return[];var r,i=this.columnModel.getDisplayedColumns(this.pinned),s=this.columnModel.getAllGridColumns(),a=i.filter((function(t){return me(e,t)})),l=i.filter((function(t){return!me(e,t)})),u=s.filter((function(t){return!me(e,t)})),c=0,p=n;if(t){var d=0;a.forEach((function(e){return d+=e.getActualWidth()})),p-=d}if(p>0){for(var h=0;h<l.length;h++){if((p-=l[h].getActualWidth())<0)break;c++}t&&c++}if(c>0){var f=l[c-1];r=u.indexOf(f)+1}else-1===(r=u.indexOf(l[0]))&&(r=0);var g=[r],m=function(e,t){return e-t};if(t){for(var v=r+1,y=s.length-1;v<=y;)g.push(v),v++;g.sort(m)}else{v=r,y=s.length-1;for(var C=s[v];v<=y&&this.isColumnHidden(i,C);)v++,g.push(v),C=s[v];v=r-1;for(;v>=0;)g.push(v),v--;g.sort(m).reverse()}return g},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(ts.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(ts.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(ts.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(ts.ICON_PINNED),this.failedMoveAttempts>7)){var r=this.needToMoveLeft?oe.PINNED_LEFT:oe.PINNED_RIGHT;this.setColumnsPinned(o,r,"uiColumnDragged"),this.dragAndDropService.nudge()}}},wu([Y("columnModel")],e.prototype,"columnModel",void 0),wu([Y("dragAndDropService")],e.prototype,"dragAndDropService",void 0),wu([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),wu([Y("ctrlsService")],e.prototype,"ctrlsService",void 0),wu([U],e.prototype,"init",null),e}(),bu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Eu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Su=function(e){function n(t,n){var o=e.call(this)||this;return o.pinned=t,o.eContainer=n,o}return bu(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){switch(e.pinned){case oe.PINNED_LEFT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case oe.PINNED_RIGHT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]]}}))},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},n.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},n.prototype.getContainer=function(){return this.eContainer},n.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new _u(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Cu(this.pinned)),this.dragAndDropService.addDropTarget(this)},n.prototype.getIconName=function(){return this.currentDropListener.getIconName()},n.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel},n.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},n.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},n.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},n.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},Eu([Y("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Eu([Y("columnModel")],n.prototype,"columnModel",void 0),Eu([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),Eu([U],n.prototype,"postConstruct",null),Eu([U],n.prototype,"init",null),n}(Fe),Ru=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Ou=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ru(arguments[t]));return e},Pu=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,n,o){return i(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,n,o)},e.getToolPanelClassesFromColDef=function(e,t,n,o){return i(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,n,o)},e.getClassParams=function(e,t,n,o){return{colDef:e,column:n,columnGroup:o,api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()}},e.getColumnClassesFromCollDef=function(e,t,n,o,r){if(i(e))return[];var s;"function"===typeof e?s=e(this.getClassParams(t,n,o,r)):s=e;return"string"===typeof s?[s]:Array.isArray(s)?Ou(s):[]},e}(),Tu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Au=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Du=function(e){function t(n){var o=e.call(this,t.TEMPLATE,n)||this;return o.headerCompVersion=0,o.column=n.getColumnGroupChild(),o.pinned=n.getPinned(),o}return Tu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n,o){var r=o||t;null!=n&&""!=n?r.setAttribute(e,n):r.removeAttribute(e)},o={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setColId:function(e){return n("col-id",e)},setTitle:function(e){return n("title",e)},setAriaDescription:function(e){return Kn(t,e)},setAriaSort:function(e){return e?so(t,e):ao(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(o,this.getGui(),this.eResize);var r=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",r)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var n=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(n,e)}))},t.prototype.afterCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.getGui().appendChild(this.headerCompGui),this.ctrl.setDragSource(this.headerCompGui)):this.destroyBean(t)},t.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',Au([nr("eResize")],t.prototype,"eResize",void 0),Au([U],t.prototype,"postConstruct",null),Au([K],t.prototype,"destroyHeaderComp",null),t}(na),xu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lu=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return xu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n){return void 0!=n?t.setAttribute(e,n):t.removeAttribute(e)},o={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveResizableCssClass:function(t,n){return e.eResize.classList.toggle(t,n)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return n("aria-expanded",e)},setTitle:function(e){return n("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(o,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then((function(e){return t.afterHeaderCompCreated(e)}))},t.prototype.afterHeaderCompCreated=function(e){var t=this,n=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',Nu([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Nu([nr("eResize")],t.prototype,"eResize",void 0),Nu([U],t.prototype,"postConstruct",null),t}(na),Iu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(mu=t.HeaderRowType||(t.HeaderRowType={})).COLUMN_GROUP="group",mu.COLUMN="column",mu.FLOATING_FILTER="filter";var Fu,ku=function(e){function n(n){var o=e.call(this)||this;o.headerComps={};var r=n.getType()==t.HeaderRowType.COLUMN_GROUP?"ag-header-row-column-group":n.getType()==t.HeaderRowType.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return o.setTemplate('<div class="ag-header-row '+r+'" role="row"></div>'),o.ctrl=n,o}return Iu(n,e),n.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return no(e.getGui(),t)}};this.ctrl.setComp(t)},n.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},n.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},e.forEach((function(e){var o=e.getInstanceId(),r=n[o];delete n[o],null==r&&(r=t.createHeaderComp(e),t.getGui().appendChild(r.getGui())),t.headerComps[o]=r})),f(n,(function(e,n){t.getGui().removeChild(n.getGui()),t.destroyBean(n)})),this.gridOptionsWrapper.isEnsureDomOrder()){var o=_(this.headerComps);o.sort((function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()}));var r=o.map((function(e){return e.getGui()}));Cn(this.getGui(),r)}}},n.prototype.createHeaderComp=function(e){var n;switch(this.ctrl.getType()){case t.HeaderRowType.COLUMN_GROUP:n=new Lu(e);break;case t.HeaderRowType.FLOATING_FILTER:n=new ia(e);break;default:n=new Du(e)}return this.createBean(n),n.setParentComponent(this),n},Mu([U],n.prototype,"init",null),Mu([K],n.prototype,"destroyHeaderCtrls",null),n}(tr),Gu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wu=0,Vu=function(e){function t(t,n){var o=e.call(this)||this;return o.lastFocusEvent=null,o.columnGroupChild=t,o.parentRowCtrl=n,o.instanceId=t.getUniqueId()+"-"+Wu++,o}return Gu(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),n=t.headerRowIndex,o=t.column;return Lo(this.gridOptionsWrapper,e,n,o)},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.addDomData=function(){var e=this,n=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,n,this),this.addDestroyFunc((function(){return e.gridOptionsWrapper.setDomData(e.eGui,n,null)}))},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Hu([Y("focusService")],t.prototype,"focusService",void 0),t}(Fe);(Fu=t.ClientSideRowModelSteps||(t.ClientSideRowModelSteps={})).EVERYTHING="group",Fu.FILTER="filter",Fu.SORT="sort",Fu.MAP="map",Fu.AGGREGATE="aggregate",Fu.FILTER_AGGREGATES="filter_aggregates",Fu.PIVOT="pivot",Fu.NOTHING="nothing";var ju=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function Bu(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var zu,Uu=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case oe.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case oe.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case oe.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.__getContext=function(){return this.context},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;f(this.detailGridInfoMap,(function(n,o){r(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(re.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){re.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},t,e).exportMode},e.prototype.getDataAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel")){var n=this.getExcelExportMode(e);if(this.excelCreator.getFactoryMode(n)!==t.ExcelFactoryMode.MULTI_SHEET)return this.excelCreator.getDataAsExcel(e);console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.exportDataAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")){var n=this.getExcelExportMode(e);this.excelCreator.getFactoryMode(n)!==t.ExcelFactoryMode.MULTI_SHEET?this.excelCreator.exportDataAsExcel(e):console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.getSheetDataForExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel")){var n=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(t.ExcelFactoryMode.MULTI_SHEET,n),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var n=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-"+e;null===t?n.removeAttribute(o):n.setAttribute(o,t)}},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(e))},e.prototype.setFloatingTopRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnModel.setColumnDefs(e,t)},e.prototype.setAutoGroupColumnDef=function(e,t){this.gridOptionsWrapper.setProperty("autoGroupColumnDef",e,!0)},e.prototype.setDefaultColDef=function(e,t){this.gridOptionsWrapper.setProperty("defaultColDef",e,!0)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(e){return e.refresh()}))},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){i(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),r(e)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){i(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var n=t.ClientSideRowModelSteps.EVERYTHING,o={group:t.ClientSideRowModelSteps.EVERYTHING,filter:t.ClientSideRowModelSteps.FILTER,map:t.ClientSideRowModelSteps.MAP,aggregate:t.ClientSideRowModelSteps.AGGREGATE,sort:t.ClientSideRowModelSteps.SORT,pivot:t.ClientSideRowModelSteps.PIVOT};if(r(e)&&(n=o[e]),i(n))console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var s={step:n,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsWrapper.isSuppressAnimationFrame()};this.clientSideRowModel.refreshModel(s)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return Bu(this.sideBarComp.getToolPanelInstance(e));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.addVirtualRowListener=function(e,t,n){"string"!==typeof e&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},e.prototype.addRenderedRowListener=function(e,t,n){"virtualRowSelected"===e&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,n)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,n){console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(e)},e.prototype.selectNode=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){i(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridBodyCtrl.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterInstance=function(e,t){var n=this.getFilterInstanceImpl(e,(function(e){if(t){var n=Bu(e);t(n)}}));return Bu(n)},e.prototype.getFilterInstanceImpl=function(e,t){var n=this.columnModel.getPrimaryColumn(e);if(n){var o=this.filterManager.getFilterComponent(n,"NO_UI"),r=o&&o.resolveNow(null,(function(e){return e}));return r?setTimeout(t,0,r):o&&o.then((function(e){t(e)})),r}},e.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return Bu(this.statusBarService.getStatusPanel(e))},e.prototype.getColumnDef=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusService.setFocusedCell(e,t,n,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_HEADER_HEIGHT,e)},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_FILL_HANDLE_DIRECTION,e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_HEADER_HEIGHT,e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_FLOATING_FILTERS_HEIGHT,e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PIVOT_HEADER_HEIGHT,e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_EXTERNAL_FILTER_PRESENT,e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DOES_EXTERNAL_FILTER_PASS,e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_NAVIGATE_TO_NEXT_CELL,e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_TAB_TO_NEXT_CELL,e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_TAB_TO_NEXT_HEADER,e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_NAVIGATE_TO_NEXT_HEADER,e)},e.prototype.setGroupRowAggNodes=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_ROW_AGG_NODES,e)},e.prototype.setGetGroupRowAgg=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_GROUP_ROW_AGG,e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_BUSINESS_KEY_FOR_NODE,e)},e.prototype.setGetChildCount=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CHILD_COUNT,e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_ROW_POST_CREATE,e)},e.prototype.setGetRowNodeId=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_NODE_ID,e)},e.prototype.setGetRowId=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_ID,e)},e.prototype.setGetRowClass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_CLASS,e)},e.prototype.setIsFullWidthCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_FULL_WIDTH_CELL,e)},e.prototype.setIsFullWidthRow=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_FULL_WIDTH_ROW,e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_ROW_SELECTABLE,e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_ROW_MASTER,e)},e.prototype.setPostSort=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_SORT,e)},e.prototype.setPostSortRows=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_SORT_ROWS,e)},e.prototype.setGetDocument=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_DOCUMENT,e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CONTEXT_MENU_ITEMS,e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_MAIN_MENU_ITEMS,e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_CELL_FOR_CLIPBOARD,e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SEND_TO_CLIPBOARD,e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_CELL_FROM_CLIPBOARD,e)},e.prototype.setProcessSecondaryColDef=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_TO_SECONDARY_COLDEF,e)},e.prototype.setProcessSecondaryColGroupDef=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_SECONDARY_COL_GROUP_DEF,e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_PROCESS_POPUP,e)},e.prototype.setDefaultGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,e)},e.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_INITIAL_GROUP_ORDER_COMPARATOR,e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CHART_TOOLBAR_ITEMS,e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PAGINATION_NUMBER_FORMATTER,e)},e.prototype.setGetServerSideStoreParams=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_SERVER_SIDE_STORE_PARAMS,e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_SERVER_SIDE_GROUP,e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_SERVER_SIDE_GROUP_KEY,e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_STYLE,e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_HEIGHT,e)},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("AG Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("AG Grid: sideBar is not loaded")},e.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},e.prototype.setSideBar=function(e){this.gridOptionsWrapper.setProperty("sideBar",sa.parse(e))},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.doLayout=function(){D((function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")}),"doLayoutDeprecated")},e.prototype.resetRowHeights=function(){if(r(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnModel.getPrimaryColumn(e);return i(n)&&(n=this.columnModel.getGridColumn(e)),i(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(S.bind(window,this,"Grid API"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+e+" was called on a grid that was destroyed."),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return Ze(e)},e.prototype.addRangeSelection=function(e){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartRef")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartImageDataURL")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(e)},e.prototype.createRangeChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createCrossFilterChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,n){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.restoreChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,n)},e.prototype.createPivotChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copySelectedRowsToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t,"columnMenu")},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnModel.getGridColumn(e);n||(n=this.columnModel.getPrimaryColumn(e)),n?this.menuFactory.showMenuAfterMouseEvent(n,t):console.error("AG Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(e){return this.navigationService.tabToNextCell(!1,e)},e.prototype.tabToPreviousCell=function(e){return this.navigationService.tabToNextCell(!0,e)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e).map(Bu)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e).map(Bu)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnModel.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e.rowIndex);var o=this.navigationService.getCellByPosition(n);o&&o.startRowOrCellEdit(e.key,e.charPress)}else console.warn("AG Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.rowRenderer.refreshFullWidthRows(t.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},e.prototype.setDeltaSort=function(e){this.gridOptionsWrapper.setProperty("deltaSort",e)},e.prototype.updateRowData=function(e){return D((function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(e)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){D((function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},e.prototype.insertItemsAtIndex=function(e,t,n){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var n=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:n})},e.prototype.addItems=function(e,t){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){void 0===e&&(e=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSideStore({purge: true}) instead."),this.refreshServerSideStore({route:e,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},e.prototype.refreshServerSideStore=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):console.warn("AG Grid: api.refreshServerSideStore is only available when rowModelType='serverSide'.")},e.prototype.getServerSideStoreState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideStoreState is only available when rowModelType='serverSide'."),[])},e.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(e,t)},e.prototype.setRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},e.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.checkGridSize=function(){console.warn("in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.")},e.prototype.getFirstRenderedRow=function(){return console.warn("in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},e.prototype.setRowClass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_ROW_CLASS,e)},ju([Z("immutableService")],e.prototype,"immutableService",void 0),ju([Z("csvCreator")],e.prototype,"csvCreator",void 0),ju([Z("excelCreator")],e.prototype,"excelCreator",void 0),ju([Y("rowRenderer")],e.prototype,"rowRenderer",void 0),ju([Y("navigationService")],e.prototype,"navigationService",void 0),ju([Y("filterManager")],e.prototype,"filterManager",void 0),ju([Y("columnModel")],e.prototype,"columnModel",void 0),ju([Y("selectionService")],e.prototype,"selectionService",void 0),ju([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ju([Y("valueService")],e.prototype,"valueService",void 0),ju([Y("alignedGridsService")],e.prototype,"alignedGridsService",void 0),ju([Y("eventService")],e.prototype,"eventService",void 0),ju([Y("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),ju([Y("context")],e.prototype,"context",void 0),ju([Y("rowModel")],e.prototype,"rowModel",void 0),ju([Y("sortController")],e.prototype,"sortController",void 0),ju([Y("paginationProxy")],e.prototype,"paginationProxy",void 0),ju([Y("focusService")],e.prototype,"focusService",void 0),ju([Y("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ju([Z("rangeService")],e.prototype,"rangeService",void 0),ju([Z("clipboardService")],e.prototype,"clipboardService",void 0),ju([Z("aggFuncService")],e.prototype,"aggFuncService",void 0),ju([Y("menuFactory")],e.prototype,"menuFactory",void 0),ju([Z("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),ju([Y("valueCache")],e.prototype,"valueCache",void 0),ju([Y("animationFrameService")],e.prototype,"animationFrameService",void 0),ju([Z("statusBarService")],e.prototype,"statusBarService",void 0),ju([Z("chartService")],e.prototype,"chartService",void 0),ju([Z("undoRedoService")],e.prototype,"undoRedoService",void 0),ju([Z("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),ju([Z("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),ju([Y("ctrlsService")],e.prototype,"ctrlsService",void 0),ju([Z("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),ju([U],e.prototype,"init",null),ju([K],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=ju([q("gridApi")],e)}(),Ku=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yu=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=n,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=r,i.beans=o,i}return Ku(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?ue(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ae.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=r(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),n=t.getLeft(),o=t.getOldLeft(),r=this.modifyLeftForPrintLayout(t,o),i=this.modifyLeftForPrintLayout(t,n);this.setLeft(r),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===i&&e.setLeft(i)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){if(!(this.beans.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT))return t;if(e.getPinned()===oe.PINNED_LEFT)return t;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===oe.PINNED_RIGHT?n+this.beans.columnModel.getBodyContainerWidth()+t:n+t},t.prototype.setLeft=function(e){var t;if(r(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof ae)t=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&io(this.ariaEl,n.length),t=n[0]}var o=this.beans.columnModel.getAriaColumnIndex(t);ro(this.ariaEl,o)},qu([U],t.prototype,"postConstruct",null),t}(Fe),Zu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$u=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xu=function(e){function t(t,n){var o=e.call(this)||this;return o.columns=t,o.element=n,o}return Zu(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},$u([Y("columnHoverService")],t.prototype,"columnHoverService",void 0),$u([U],t.prototype,"postConstruct",null),t}(Fe),Qu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ju=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ec=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.column=t,o}return Qu(t,e),t.prototype.setComp=function(t,n,o,r){e.prototype.setGui.call(this,n),this.comp=t,this.eButtonShowMainFilter=o,this.eFloatingFilterBody=r;var i=this.column.getColDef(),s=!!i.filter||!!i.filterFramework,a=!!i.floatingFilter;this.active=s&&a,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=Ao("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new mr(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(!(this.gridOptionsWrapper.getDocument().activeElement===this.eGui)){var t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();var n=this.findNextColumnWithFloatingFilter(e.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,n=this.column;do{if(!(n=e?t.getDisplayedColBefore(n):t.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument().activeElement===this.eGui;switch(e.key){case dr.UP:case dr.DOWN:t||e.preventDefault();case dr.LEFT:case dr.RIGHT:if(t)return;e.stopPropagation();case dr.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case dr.ESCAPE:t||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),n=!!e.relatedTarget&&nn(e.relatedTarget,"ag-floating-filter");if(t&&n&&e.target===this.eGui){var o=this.lastFocusEvent,r=!(!o||o.key!==dr.TAB);if(o&&r){var i=o.shiftKey;this.focusService.focusInto(this.eGui,i)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Xu([this.column],this.eGui));var t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new Yu(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,t),o=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(t,Fs,n),r=this.userComponentFactory.getDefaultFloatingFilterType(t);null==r&&(r="agReadOnlyFloatingFilter");var i={column:this.column,filterParams:o,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(t){return e.parentFilterInstance(t)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(t,i,r);s&&this.comp.setCompDetails(s)}},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,(function(e){return e&&e.getModel()})):null},t.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},t.prototype.parentFilterInstance=function(e){var t=this.getFilterComponent();null!=t&&t.then((function(t){e(Bu(t))}))},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var n=e.comp.getFloatingFilterComp();if(n){var o=e.currentParentModel();n.then((function(e){e&&e.onParentModelChanged(o,t)}))}};this.addManagedListener(this.column,ae.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth()+"px";e.comp.setWidth(t)};this.addManagedListener(this.column,ae.EVENT_WIDTH_CHANGED,t),t()},Ju([Y("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ju([Y("filterManager")],t.prototype,"filterManager",void 0),Ju([Y("columnHoverService")],t.prototype,"columnHoverService",void 0),Ju([Y("gridApi")],t.prototype,"gridApi",void 0),Ju([Y("menuFactory")],t.prototype,"menuFactory",void 0),Ju([Y("beans")],t.prototype,"beans",void 0),t}(Vu),tc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),nc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},oc=function(e){function t(t,n,o,r,i){var s=e.call(this)||this;return s.pinned=t,s.column=n,s.eResize=o,s.comp=r,s.ctrl=i,s}return tc(t,e),t.prototype.postConstruct=function(){var e,t,n=this,o=this.column.getColDef(),r=[],i=function(){r.forEach((function(e){return e()})),r.length=0},s=function(){var s=n.column.isResizable(),a=!n.gridOptionsWrapper.isSuppressAutoSize()&&!o.suppressAutoSize;(s!==e||a!==t)&&(e=s,t=a,i(),function(){if(Jt(n.eResize,e),e){var o=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(r.push(o),t){var i=n.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){n.columnModel.autoSizeColumn(n.column,i,"uiColumnResized")};n.eResize.addEventListener("dblclick",s);var a=new mi(n.eResize);a.addEventListener(mi.EVENT_DOUBLE_TAP,s),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",s),a.removeEventListener(mi.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(i),this.ctrl.addRefreshFunction(s)},t.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),o=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnModel.setColumnWidths(o,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var t=e,n=this.pinned!==oe.PINNED_LEFT,o=this.pinned===oe.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(t*=-1):o&&(t*=-1),t},nc([Y("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),nc([Y("columnModel")],t.prototype,"columnModel",void 0),nc([U],t.prototype,"postConstruct",null),t}(Fe),rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ic=function(e){function t(t,n,o){void 0===n&&(n="ag-checkbox"),void 0===o&&(o="checkbox");var r=e.call(this,t,n,o)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return rc(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return this.eWrapper.classList.toggle("ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"===typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,n,o){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:n,event:o});var r=this.getInputElement(),i={type:Ve.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:n};this.eventService.dispatchEvent(i)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(Fr),sc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ac=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},lc=function(e){function t(t){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=t;var o=t.getColDef();return n.filteredOnly=!!o&&!!o.headerCheckboxSelectionFilteredOnly,n}return sc(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll,n=this.gridOptionsWrapper.getDocument();t.isDisplayed()&&!t.getGui().contains(n.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new ic),this.cbSelectAll.addCssClass("ag-header-select-all"),Wn(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,ic.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",n+" ("+t+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,o=function(o){e.gridOptionsWrapper.isGroupSelectsChildren()&&o.group||(o.isSelected()?t++:o.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(o):this.gridApi.forEachNode(o),{notSelected:n,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===oe.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"===typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),!1))},ac([Y("gridApi")],t.prototype,"gridApi",void 0),ac([Y("columnApi")],t.prototype,"columnApi",void 0),ac([Y("rowModel")],t.prototype,"rowModel",void 0),ac([Y("selectionService")],t.prototype,"selectionService",void 0),t}(Fe),uc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pc=function(e){function n(t,n){var o=e.call(this,t,n)||this;return o.refreshFunctions=[],o.userHeaderClasses=new Set,o.ariaDescriptionProperties=new Map,o.column=t,o}return uc(n,e),n.prototype.setComp=function(t,n,o){var r=this;e.prototype.setGui.call(this,n),this.comp=t,this.colDefVersion=this.columnModel.getColDefVersion(),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new oc(this.getPinned(),this.column,o,t,this)),this.createManagedBean(new Xu([this.column],n)),this.createManagedBean(new Yu(this.column,n,this.beans)),this.createManagedBean(new mr(n,{shouldStopEventPropagation:function(e){return r.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},n.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},n.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},n.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},n.prototype.createParams=function(){var e=this,t=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,"uiColumnSorted")},setSort:function(t,n){e.sortController.setSortForColumn(e.column,t,!!n,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},n.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new lc(this.column)),this.selectAllFeature.setComp(this)},n.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},n.prototype.handleKeyDown=function(e){e.key===dr.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===dr.ENTER&&this.onEnterKeyPressed(e)},n.prototype.onEnterKeyPressed=function(e){var t=this.comp.getUserCompInstance();if(t)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var n=e.shiftKey;this.sortController.progressSort(this.column,n,"uiColumnSorted")}},n.prototype.isMenuEnabled=function(){return this.menuEnabled},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},n.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},n.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},n=this.createManagedBean(new qa(t,this.beans));n.setComp(this.comp),this.refreshFunctions.push((function(){return n.refreshToolTip()}))},n.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),n=e.gridOptionsWrapper,o=Pu.getHeaderClassesFromColDef(t,n,e.column,null),r=e.userHeaderClasses;e.userHeaderClasses=new Set(o),o.forEach((function(t){r.has(t)?r.delete(t):e.comp.addOrRemoveCssClass(t,!0)})),r.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!1)}))};this.refreshFunctions.push(t),t()},n.prototype.setDragSource=function(e){var n=this;this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable&&(this.moveDragSource={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ts.ICON_HIDE,getDragItem:function(){return n.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return n.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return n.column.setMoving(!1,"uiColumnMoved")}},this.dragAndDropService.addDragSource(this.moveDragSource,!0))},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},n.prototype.onNewColumnsLoaded=function(){var e=this.columnModel.getColDefVersion();e!=this.colDefVersion&&(this.colDefVersion=e,this.refresh())},n.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},n.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},n.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(e){return e()}))},n.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},n.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();return!!t&&(!!t.refresh&&t.refresh(e))},n.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},n.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},n.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsWrapper.isSuppressMovableColumns()&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},n.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},n.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},n.prototype.onColumnValueChanged=function(){this.checkDisplayName()},n.prototype.setupWidth=function(){var e=this,t=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,ae.EVENT_WIDTH_CHANGED,t),t()},n.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,ae.EVENT_MOVING_CHANGED,t),t()},n.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,ae.EVENT_MENU_VISIBLE_CHANGED,t),t()},n.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.column,ae.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},n.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(Vn(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},n.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},n.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},n.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},n.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},n.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_HOVER_CHANGED,t),t()},n.prototype.setupFilterCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,ae.EVENT_FILTER_ACTIVE_CHANGED,t),t()},n.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},n.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader("mouseenter"===t.type)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t)},n.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},cc([Y("columnModel")],n.prototype,"columnModel",void 0),cc([Y("columnHoverService")],n.prototype,"columnHoverService",void 0),cc([Y("beans")],n.prototype,"beans",void 0),cc([Y("sortController")],n.prototype,"sortController",void 0),cc([Y("menuFactory")],n.prototype,"menuFactory",void 0),cc([Y("dragAndDropService")],n.prototype,"dragAndDropService",void 0),cc([Y("gridApi")],n.prototype,"gridApi",void 0),cc([Y("columnApi")],n.prototype,"columnApi",void 0),cc([Y("userComponentFactory")],n.prototype,"userComponentFactory",void 0),cc([K],n.prototype,"removeDragSource",null),n}(Vu),dc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},fc=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.eResize=n,i.comp=t,i.pinned=o,i.columnGroup=r,i}return dc(t,e),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",(function(){var t=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||t.push(e.getColId())})),t.length>0&&e.columnModel.autoSizeColumns({columns:t,skipHeader:n,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()}))}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var t=this;this.calculateInitialValues();var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var o=n.getDisplayedLeafColumns();this.resizeTakeFromCols=o.filter((function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,t){var n=this.normaliseDragChange(t),o=this.resizeStartWidth+n;this.resizeColumns(o,e)},t.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},t.prototype.resizeColumns=function(e,t){void 0===t&&(t=!0);var n=[];if(n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var o=e-this.resizeStartWidth;n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-o})}this.columnModel.resizeColumnSets({resizeSets:n,finished:t,source:"uiColumnDragged"}),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,t=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=t.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(t){return e.resizeStartWidth+=t.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(t){return e.resizeRatios.push(t.getActualWidth()/e.resizeStartWidth)}))},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==oe.PINNED_LEFT&&(t*=-1):this.pinned===oe.PINNED_RIGHT&&(t*=-1),t},hc([Y("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),hc([Y("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),hc([Y("columnModel")],t.prototype,"columnModel",void 0),hc([U],t.prototype,"postConstruct",null),t}(Fe),gc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vc=function(e){function t(t,n){var o=e.call(this)||this;return o.removeChildListenersFuncs=[],o.columnGroup=n,o.comp=t,o}return gc(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,we.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(ae.EVENT_WIDTH_CHANGED,t),n.addEventListener(ae.EVENT_VISIBLE_CHANGED,t),e.removeChildListenersFuncs.push((function(){n.removeEventListener(ae.EVENT_WIDTH_CHANGED,t),n.removeEventListener(ae.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},mc([U],t.prototype,"postConstruct",null),t}(Fe),yc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wc=function(e){function n(t,n){var o=e.call(this,t,n)||this;return o.columnGroup=t,o}return yc(n,e),n.prototype.setComp=function(t,n,o){e.prototype.setGui.call(this,n),this.comp=t,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var r=this.getParentRowCtrl().getPinned(),i=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Xu(i,n)),this.createManagedBean(new Yu(this.columnGroup,n,this.beans)),this.createManagedBean(new vc(t,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new fc(t,o,r,this.columnGroup)),this.createManagedBean(new mr(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},n.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},n.prototype.setupUserComp=function(){var e=this,t=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),t,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!t){for(var o=this.columnGroup,r=o.getLeafColumns();o.getParent()&&o.getParent().getLeafColumns().length===r.length;)o=o.getParent();var i=o.getColGroupDef();i&&(t=i.headerName),t||(t=r?this.columnModel.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(s)},n.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef(),n={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(n.getColDef=function(){return t}),this.createManagedBean(new qa(n,this.beans)).setComp(this.comp)},n.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,_e.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,_e.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},n.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},n.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},n.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),n=Pu.getHeaderClassesFromColDef(t,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!0)}))},n.prototype.setupMovingCss=function(){var e=this,t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};t.forEach((function(t){e.addManagedListener(t,ae.EVENT_MOVING_CHANGED,n)})),n()},n.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},n.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument().activeElement===this.eGui;if(this.expandable&&t&&e.key===dr.ENTER){var n=this.columnGroup,o=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),o,"uiColumnExpanded")}},n.prototype.setDragSource=function(e){var n=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ts.ICON_HIDE,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return n.dragAndDropService.removeDragSource(r)}))}},n.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];return this.columnModel.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),de(e,t))})),e.forEach((function(e){return n.push(e)})),{columns:n,visibleState:t}},n.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},Cc([Y("beans")],n.prototype,"beans",void 0),Cc([Y("columnModel")],n.prototype,"columnModel",void 0),Cc([Y("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Cc([Y("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Cc([Y("gridApi")],n.prototype,"gridApi",void 0),Cc([Y("columnApi")],n.prototype,"columnApi",void 0),n}(Vu),_c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ec=0,Sc=function(e){function n(t,n,o){var r=e.call(this)||this;return r.instanceId=Ec++,r.headerCellCtrls={},r.rowIndex=t,r.pinned=n,r.type=o,r}return _c(n,e),n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),Ht()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},n.prototype.getHeaderCellCtrl=function(e){return p(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()===e}))},n.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},n.prototype.getType=function(){return this.type},n.prototype.onColumnResized=function(){this.setWidth()},n.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},n.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(oe.PINNED_RIGHT)+this.columnModel.getContainerWidth(oe.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},n.prototype.onRowHeightChanged=function(){var e,t,n=this.columnModel.getHeaderRowCount(),o=[],r=0;this.columnModel.hasFloatingFilters()&&(n++,r=1),this.columnModel.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+r),s=0;s<i;s++)o.push(e);o.push(t);for(s=0;s<r;s++)o.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.rowIndex;s++)a+=o[s];this.comp.setTop(a+"px"),this.comp.setHeight(o[this.rowIndex]+"px")},n.prototype.getPinned=function(){return this.pinned},n.prototype.getRowIndex=function(){return this.rowIndex},n.prototype.onVirtualColumnsChanged=function(){var e=this,n=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(o){if(!o.isEmptyGroup()){var r=o.getUniqueId(),i=n[r];if(delete n[r],i&&i.getColumnGroupChild()!=o&&(e.destroyBean(i),i=void 0),null==i)switch(e.type){case t.HeaderRowType.FLOATING_FILTER:i=e.createBean(new ec(o,e));break;case t.HeaderRowType.COLUMN_GROUP:i=e.createBean(new wc(o,e));break;default:i=e.createBean(new pc(o,e))}e.headerCellCtrls[r]=i}}));f(n,(function(t,n){var o;(o=n,!!e.focusService.isHeaderWrapperFocused(o)&&e.columnModel.isDisplayed(o.getColumnGroupChild()))?e.headerCellCtrls[t]=n:e.destroyBean(n)}));var o=_(this.headerCellCtrls);this.comp.setHeaderCtrls(o)},n.prototype.destroyCtrls=function(){var e=this;f(this.headerCellCtrls,(function(t,n){e.destroyBean(n)})),this.headerCellCtrls={}},n.prototype.getColumnsInViewport=function(){return this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},n.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],n=this.getActualDepth();return[oe.PINNED_LEFT,null,oe.PINNED_RIGHT].forEach((function(o){var r=e.columnModel.getVirtualHeaderGroupRow(o,n);t=t.concat(r)})),t},n.prototype.getActualDepth=function(){return this.type==t.HeaderRowType.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},n.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},n.prototype.focusHeader=function(e,t){var n=_(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()==e}));return!!n&&(n.focus(t),!0)},bc([Y("columnModel")],n.prototype,"columnModel",void 0),bc([Y("focusService")],n.prototype,"focusService",void 0),bc([K],n.prototype,"destroyCtrls",null),n}(Fe),Rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pc=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Tc=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Pc(arguments[t]));return e},Ac=function(e){function n(t){var n=e.call(this)||this;return n.groupsRowCtrls=[],n.pinned=t,n}return Rc(n,e),n.prototype.setComp=function(e,t){this.comp=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(t),this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},n.prototype.setupDragAndDrop=function(e){var t=new Su(this.pinned,e);this.createManagedBean(t)},n.prototype.refresh=function(e){var n=this;void 0===e&&(e=!1);var o=new Bo,r=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var e=n.columnModel.getHeaderRowCount()-1;n.groupsRowCtrls=n.destroyBeans(n.groupsRowCtrls);for(var r=0;r<e;r++){var i=n.createBean(new Sc(o.next(),n.pinned,t.HeaderRowType.COLUMN_GROUP));n.groupsRowCtrls.push(i)}}(),function(){var r=o.next();(null==n.columnsRowCtrl||!e||n.columnsRowCtrl.getRowIndex()!==r)&&(n.destroyBean(n.columnsRowCtrl),n.columnsRowCtrl=n.createBean(new Sc(r,n.pinned,t.HeaderRowType.COLUMN)))}(),function(){var r=function(){n.filtersRowCtrl=n.destroyBean(n.filtersRowCtrl)};if(n.columnModel.hasFloatingFilters()){var i=o.next();if(n.filtersRowCtrl){var s=n.filtersRowCtrl.getRowIndex()!==i;e&&!s||r()}n.filtersRowCtrl||(n.filtersRowCtrl=n.createBean(new Sc(i,n.pinned,t.HeaderRowType.FLOATING_FILTER)))}else r()}();var i=this.getAllCtrls();this.comp.setCtrls(i),this.restoreFocusOnHeader(r)},n.prototype.restoreFocusOnHeader=function(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})},n.prototype.getAllCtrls=function(){var e=Tc(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},n.prototype.onGridColumnsChanged=function(){this.refresh(!0)},n.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new Fl((function(t){return e.comp.setCenterWidth(t+"px")})))},n.prototype.setHorizontalScroll=function(e){this.comp.setContainerTransform("translateX("+e+"px)")},n.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var t=this.pinned===oe.PINNED_LEFT,n=this.pinned===oe.PINNED_RIGHT,o=function(){var o=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=o){var r=0==o,i=e.gridOptionsWrapper.isEnableRtl(),s=e.gridOptionsWrapper.getScrollbarWidth(),a=e.scrollVisibleService.isVerticalScrollShowing()&&(i&&t||!i&&n)?o+s:o;e.comp.setPinnedContainerWidth(a+"px"),e.comp.addOrRemoveCssClass("ag-hidden",r)}};this.addManagedListener(this.eventService,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,o),this.addManagedListener(this.eventService,Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,o)}},n.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof ae){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(var t=0;t<this.groupsRowCtrls.length;t++){var n=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(n)return n}},n.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},n.prototype.getRowType=function(e){var t=this.getAllCtrls()[e];return t?t.getType():void 0},n.prototype.focusHeader=function(e,t,n){var o=this.getAllCtrls()[e];return!!o&&o.focusHeader(t,n)},n.prototype.getRowCount=function(){return this.getAllCtrls().length},Oc([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),Oc([Y("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Oc([Y("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),Oc([Y("columnModel")],n.prototype,"columnModel",void 0),Oc([Y("focusService")],n.prototype,"focusService",void 0),n}(Fe),Dc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Nc=function(e){function t(t){var n=e.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=t,n}return Dc(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setContainerTransform:function(t){return e.eCenterContainer.style.transform=t},setPinnedContainerWidth:function(t){var n=e.getGui();n.style.width=t,n.style.maxWidth=t,n.style.minWidth=t}};this.createManagedBean(new Ac(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned==oe.PINNED_LEFT,n=this.pinned==oe.PINNED_RIGHT,o=e?t.PINNED_LEFT_TEMPLATE:n?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 t,n=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var r=e.getInstanceId(),i=o[r];delete o[r];var s=i||n.createBean(new ku(e));n.headerRowComps[r]=s,n.rowCompsList.push(s),function(e){var o=e.getGui();o.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(o),t&&yn(n.eRowContainer,o,t),t=o}(s)})),_(o).forEach((function(e){return n.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',t.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',xc([nr("eCenterContainer")],t.prototype,"eCenterContainer",void 0),xc([U],t.prototype,"init",null),xc([K],t.prototype,"destroyRowComps",null),t}(tr),Lc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ic=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(zu=t.HeaderNavigationDirection||(t.HeaderNavigationDirection={}))[zu.UP=0]="UP",zu[zu.DOWN=1]="DOWN",zu[zu.LEFT=2]="LEFT",zu[zu.RIGHT=3]="RIGHT";var Mc=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Lc(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},n.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},n.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},n.prototype.navigateVertically=function(e,n,o){if(n||(n=this.focusService.getFocusedHeader()),!n)return!1;var r=n.headerRowIndex,i=n.column,s=this.getHeaderRowCount(),a=e===t.HeaderNavigationDirection.UP,l=a?r-1:r+1,u=null,c=!1;l<0&&(l=0,u=i,c=!0),l>=s&&(l=-1);var p=this.getHeaderRowType(r);if(!c){if(p===t.HeaderRowType.COLUMN_GROUP){var d=i;u=a?i.getParent():d.getDisplayedChildren()[0]}else if(p===t.HeaderRowType.FLOATING_FILTER)u=i;else{d=i;u=a?d.getParent():d}if(!u)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l,column:u},allowUserOverride:!0,event:o})},n.prototype.navigateHorizontally=function(e,n,o){void 0===n&&(n=!1);var r,i,s=this.focusService.getFocusedHeader();return e===t.HeaderNavigationDirection.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(i="Before",r=this.headerPositionUtils.findHeader(s,i)):(i="After",r=this.headerPositionUtils.findHeader(s,i)),r?this.focusService.focusHeaderPosition({headerPosition:r,direction:i,fromTab:n,allowUserOverride:!0,event:o}):!n||this.focusNextHeaderRow(s,i,o)},n.prototype.focusNextHeaderRow=function(e,t,n){var o,r=e.headerRowIndex,i=null;return"Before"===t?r>0&&(o=r-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"end")):(o=r+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"start")),this.focusService.focusHeaderPosition({headerPosition:i,direction:t,fromTab:!0,allowUserOverride:!0,event:n})},n.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var n;if(e instanceof we){var o=e.getDisplayedLeafColumns();n="Before"===t?ue(o):o[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},Ic([Y("focusService")],n.prototype,"focusService",void 0),Ic([Y("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),Ic([Y("animationFrameService")],n.prototype,"animationFrameService",void 0),Ic([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),Ic([U],n.prototype,"postConstruct",null),n=Ic([q("headerNavigationService")],n)}(Fe),Fc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gc=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Fc(n,e),n.prototype.setComp=function(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new mr(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},n.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e)},n.prototype.setHeaderHeight=function(){var e,t,n,o=this.columnModel,r=this.gridOptionsWrapper,i=0,s=o.getHeaderRowCount();o.hasFloatingFilters()&&(s++,i=1),o.isPivotMode()?(t=r.getPivotGroupHeaderHeight(),n=r.getPivotHeaderHeight()):(t=r.getGroupHeaderHeight(),n=r.getHeaderHeight());var a=s-(1+i);e=i*r.getFloatingFiltersHeight(),e+=a*t;var l=(e+=n)+1+"px";this.comp.setHeightAndMinHeight(l)},n.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},n.prototype.onTabKeyDown=function(e){var n=this.gridOptionsWrapper.isEnableRtl(),o=e.shiftKey!==n?t.HeaderNavigationDirection.LEFT:t.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},n.prototype.handleKeyDown=function(e){var n=null;switch(e.key){case dr.LEFT:n=t.HeaderNavigationDirection.LEFT;case dr.RIGHT:r(n)||(n=t.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(n,!1,e);break;case dr.UP:n=t.HeaderNavigationDirection.UP;case dr.DOWN:r(n)||(n=t.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(n,null,e)&&e.preventDefault();break;default:return}},n.prototype.onFocusOut=function(e){var t=this.gridOptionsWrapper.getDocument(),n=e.relatedTarget;!n&&this.eGui.contains(t.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()},kc([Y("headerNavigationService")],n.prototype,"headerNavigationService",void 0),kc([Y("focusService")],n.prototype,"focusService",void 0),kc([Y("columnModel")],n.prototype,"columnModel",void 0),kc([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),n}(Fe),Hc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vc=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Hc(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}};this.createManagedBean(new Gc).setComp(t,this.getGui(),this.getFocusableElement());var n=function(t){e.createManagedBean(t),e.appendChild(t)};n(new Nc(oe.PINNED_LEFT)),n(new Nc(null)),n(new Nc(oe.PINNED_RIGHT))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',Wc([U],t.prototype,"postConstruct",null),t}(tr),jc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jc(t,e),t.prototype.addResizeBar=function(e){var t=this,n={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(n,!0);return function(){return t.dragService.removeDragSource(n)}},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},Bc([Y("dragService")],t.prototype,"dragService",void 0),Bc([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Bc([q("horizontalResizeService")],t)}(Fe),Uc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Uc(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:o})}),t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,n){var o=this;this.showPopup(e,(function(r){o.popupService.positionPopupUnderComponent({type:n,eventSource:t,ePopup:r,keepWithinBounds:!0,column:e})}),t)},t.prototype.showPopup=function(e,t,n){var o=this,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!r)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var i,s=document.createElement("div");Wn(s,"presentation"),s.classList.add("ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(e){return o.trapFocusWithin(e,s)})),r.guiPromise.then((function(e){return s.appendChild(e)}));var a=n||this.ctrlsService.getGridBodyCtrl().getGui(),l=this.gridOptionsWrapper.getLocaleTextFunc(),u=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,"contextMenu");var r=t instanceof KeyboardEvent;if(o.tabListener&&(o.tabListener=o.tabListener()),r&&n&&fn(n)){var i=o.focusService.findTabbableParent(n);i&&i.focus()}},positionCallback:function(){return t(s)},anchorToElement:a,ariaLabel:l("ariaLabelColumnMenu","Column Menu")});u&&(this.hidePopup=i=u.hideFunc),r.filterPromise.then((function(e){t(s),e.afterGuiAttached&&e.afterGuiAttached({container:"columnMenu",hidePopup:i})})),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.key!==dr.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},Kc([Y("filterManager")],t.prototype,"filterManager",void 0),Kc([Y("popupService")],t.prototype,"popupService",void 0),Kc([Y("focusService")],t.prototype,"focusService",void 0),Kc([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Kc([q("menuFactory")],t)}(Fe),Yc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},$c=function(e){function t(n){var o=e.call(this,t.getTemplate(n.cssClass))||this;return o.items=[],o.tabbedItemScrollMap=new Map,o.params=n,n.items&&n.items.forEach((function(e){return o.addItem(e)})),o}return Yc(t,e),t.prototype.postConstruct=function(){this.createManagedBean(new mr(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n <div ref="eHeader" role="tablist" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n </div>'},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument();switch(e.key){case dr.RIGHT:case dr.LEFT:if(!this.eHeader.contains(t.activeElement))return;var n=this.items.indexOf(this.activeItem),o=e.key===dr.RIGHT?Math.min(n+1,this.items.length-1):Math.max(n-1,0);if(n===o)return;e.preventDefault();var r=this.items[o];this.showItemWrapper(r),r.eHeaderButton.focus();break;case dr.UP:case dr.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,n=t.focusService,o=t.eHeader,r=t.eBody,i=t.activeItem,s=this.gridOptionsWrapper.getDocument().activeElement;if(e.preventDefault(),o.contains(s))n.focusInto(r,e.shiftKey);else if(n.isFocusUnderManagedComponent(r))i.eHeaderButton.focus();else{var a=n.findNextFocusableElement(r,!1,e.shiftKey);a?a.focus():i.eHeaderButton.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");Wn(t,"tab"),t.setAttribute("tabIndex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eHeader.appendChild(t),zn(t,e.titleLabel);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))},t.prototype.showItem=function(e){var t=this.items.find((function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this,n=e.tabbedItem,o=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:n}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),dn(this.eBody),n.bodyPromise.then((function(e){t.eBody.appendChild(e);var o=!t.focusService.isKeyboardMode();if(t.focusService.focusInto(t.eBody,!1,o),n.afterAttachedCallback&&n.afterAttachedCallback(t.afterAttachedParams),t.params.keepScrollPosition){var r=n.getScrollableContainer&&n.getScrollableContainer()||e;t.lastScrollListener=t.addManagedListener(r,"scroll",(function(){t.tabbedItemScrollMap.set(n.name,r.scrollTop)}));var i=t.tabbedItemScrollMap.get(n.name);void 0!==i&&setTimeout((function(){r.scrollTop=i}),0)}})),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),o.classList.add("ag-tab-selected"),this.activeItem=e):V(this.params.onActiveItemClicked)},Zc([Y("focusService")],t.prototype,"focusService",void 0),Zc([nr("eHeader")],t.prototype,"eHeader",void 0),Zc([nr("eBody")],t.prototype,"eBody",void 0),Zc([U],t.prototype,"postConstruct",null),t}(tr);var Xc,Qc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ep=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return Qc(t,e),t.prototype.observeResize=function(e,t){var n=this,o=this.gridOptionsWrapper.getDocument().defaultView||window,r=G(t,50),i=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!o.ResizeObserver&&!i?function(){var t=new o.ResizeObserver(r);return t.observe(e),function(){return t.disconnect()}}():function(){var o=vn(e),r=mn(e),i=!0;return function s(){if(i){var a=vn(e),l=mn(e);(a!==o||l!==r)&&(o=a,r=l,t()),n.doNextPolyfillTurn(s)}}(),function(){return i=!1}}()},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var t=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],t.forEach((function(e){return e()}))}),50)}},t=Jc([q("resizeObserverService")],t)}(Fe),tp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),np=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},op=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return tp(t,e),t.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var o={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],o),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder})),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,o=this.createTasksP2,r=o.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0,u=this.ctrlsService.getGridBodyCtrl();l||a<e;){if(!u.getScrollFeature().executeAnimationFrameScroll()){var c=void 0;if(n.length)this.sortTaskList(t),c=n.pop().task;else if(r.length)this.sortTaskList(o),c=r.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}c=i.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}n.length||r.length||i.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),t=this.gridOptionsWrapper.getDocument().defaultView||window;t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var t=this,n=!1;return function(){t.isOn()?n||(n=!0,t.addDestroyTask((function(){n=!1,e()}))):t.getFrameworkOverrides().setTimeout(e,0)}},np([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),np([U],t.prototype,"init",null),t=np([q("animationFrameService")],t)}(Fe),rp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ip=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sp=function(e){function t(t,n){var o=e.call(this)||this;return o.element=t,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},n),o}return rp(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,n=e.clientWidth/2-this.getWidth()/2,o=t/2-this.getHeight()/2;this.offsetElement(n,o)},t.prototype.initialisePosition=function(){var e=this.config,t=e.centered,n=e.forcePopupParentAsOffsetParent,o=e.minWidth,r=e.width,i=e.minHeight,s=e.height,a=e.x,l=e.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=i||u,this.minWidth=o||c,r&&this.setWidth(r),s&&this.setHeight(s),r&&s||this.refreshSize(),t)this.center();else if(a||l)this.offsetElement(a,l);else if(p&&n&&this.boundaryEl){var m=parseFloat(this.boundaryEl.style.top),v=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(v)?0:v,isNaN(m)?0:m)}this.positioned=!!this.offsetParent},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,t){if(this.config.popup&&e!==this.movable){this.movable=e;var n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var t=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"===typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach((function(n){var o=!!e[n],r=t.getResizerElement(n),i={dragStartPixels:0,eElement:r,onDragStart:function(e){return t.onResizeStart(e,n)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,n)}};!!t.resizable[n]===o&&(t.isAlive()||o)||(o?(t.dragService.addDragSource(i),t.resizeListeners.push(i),r.style.pointerEvents="all"):r.style.pointerEvents="none")}))},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,t=e.height,n=e.width;-1!==n&&(this.element.style.width=n+"px"),-1!==t&&(this.element.style.height=t+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config.popup,n=this.element,o=!1;if("string"===typeof e&&-1!==e.indexOf("%"))On(n,e),e=an(n),o=!0;else if(this.positioned){var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var s=this.offsetParent.clientHeight,a=t?this.position.y:r.top,l=t?0:i.top;s&&e+a>s+l&&(e=s-a)}this.getHeight()!==e&&(o?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?On(n,e):(n.style.height=e+"px",n.style.flex="0 0 auto",this.lastSize.height="number"===typeof e?e:parseFloat(e)))},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,n=this.config.popup,o=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Rn(t,e),e=ln(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var r=this.offsetParent.clientWidth,i=n?this.position.x:this.element.getBoundingClientRect().left;r&&e+i>r&&(e=r-i)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Rn(t,e):(t.style.width=e+"px",t.style.flex=" unset",this.lastSize.width="number"===typeof e?e:parseFloat(e)))},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:n,x:e,y:t,keepWithinBounds:!0}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top))},t.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=e.e,n=e.isLeft,o=e.isTop,r=e.anywhereWithin,i=e.topBuffer,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!n,!!r,s)?0:s,movementY:this.shouldSkipY(t,!!o,i,a)?0:a}},t.prototype.shouldSkipX=function(e,t,n,o){var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:r.left,l=a<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=s.right;return!!l||(l=t?o<0&&e.clientX>a+i.left||o>0&&e.clientX<a+i.left:n?o<0&&e.clientX>s.right||o>0&&e.clientX<a+i.left:o<0&&e.clientX>s.right||o>0&&e.clientX<s.right)},t.prototype.shouldSkipY=function(e,t,n,o){void 0===n&&(n=0);var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:r.top,l=a<=0&&i.top>=e.clientY||i.bottom<=e.clientY&&i.bottom<=s.bottom;return!!l||(l=t?o<0&&e.clientY>a+i.top+n||o>0&&e.clientY<a+i.top:o<0&&e.clientY>s.bottom||o>0&&e.clientY<s.bottom)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var t=(new DOMParser).parseFromString('<div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>',"text/html").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector(".ag-resizer-wrapper");e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");var n=this.config,o=n.popup,r=n.forcePopupParentAsOffsetParent;o||r||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter((function(e){return!e.classList.contains("ag-hidden")})):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,n=0,o=0;o<e.length;o++){var r=e[o],i=!!r.style.flex&&"0 0 auto"!==r.style.flex;if(r!==this.element){var s=this.minHeight||0,a=this.minWidth||0;if(i){var l=window.getComputedStyle(r);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=r.offsetHeight,a=r.offsetWidth;t+=s,n+=a}}return{height:t,width:n}},t.prototype.applySizeToSiblings=function(e){var t=null,n=this.getSiblings();if(n){for(var o=0;o<n.length;o++){var r=n[o];r!==t&&(e?r.style.height=r.offsetHeight+"px":r.style.width=r.offsetWidth+"px",r.style.flex="0 0 auto",r===this.element&&(t=n[o+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var t=this.config,n=t.popup,o=t.forcePopupParentAsOffsetParent,r=this.currentResizer,i=r.isTop,s=r.isRight,a=r.isBottom,l=r.isLeft,u=s||l,c=a||i,p=this.calculateMouseMovement({e:e,isLeft:l,isTop:i}),d=p.movementX,h=p.movementY,f=this.position.x,g=this.position.y,m=0,v=0;if(u&&d){var y=l?-1:1,C=this.getWidth(),w=C+d*y,_=!1;l&&(f+(m=C-w)<=0||w<=this.minWidth)&&(_=!0,m=0),_||this.setWidth(w)}if(c&&h){y=i?-1:1;var b=this.getHeight(),E=b+h*y,S=!1;i?(g+(v=b-E)<=0||E<=this.minHeight)&&(S=!0,v=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&b<E&&this.getMinSizeOfSiblings().height+E>this.element.parentElement.offsetHeight&&(S=!0),S||this.setHeight(E)}this.updateDragStartPosition(e.clientX,e.clientY),((n||o)&&m||v)&&this.offsetElement(f+m,g+v)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var n={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchEvent(n)},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 t,n=this.position,o=n.x,r=n.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var i=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:t}),s=i.movementX,a=i.movementY;this.offsetElement(o+s,r+a),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("static"!==window.getComputedStyle(e).position)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(){e.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},ip([Y("popupService")],t.prototype,"popupService",void 0),ip([Y("dragService")],t.prototype,"dragService",void 0),t}(Fe),ap=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},up=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ap(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl}))},t.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var o=this.rowRenderer.getAllCellsForColumn(e);return t||o.push(n),this.addElementsToContainerAndGetWidth(o)},t.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,n=document.createElement("span");n.style.position="fixed";var o=this.centerRowContainerCtrl.getContainerElement();o.appendChild(n),e.forEach((function(e){return t.cloneItemIntoDummy(e,n)}));var r=n.offsetWidth;return o.removeChild(n),r+this.gridOptionsWrapper.getAutoSizePadding()},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(n){var o=n.getHtmlElementForColumnHeader(e);null!=o&&(t=o)})),t},t.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var o=document.createElement("div"),r=o.classList;["ag-header-cell","ag-header-group-cell"].some((function(e){return n.classList.contains(e)}))?(r.add("ag-header","ag-header-row"),o.style.position="static"):r.add("ag-row");for(var i=e.parentElement;i;){if(["ag-header-row","ag-row"].some((function(e){return i.classList.contains(e)}))){for(var s=0;s<i.classList.length;s++){var a=i.classList[s];"ag-row-position-absolute"!=a&&r.add(a)}break}i=i.parentElement}o.appendChild(n),t.appendChild(o)},lp([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),lp([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),lp([Y("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),lp([U],t.prototype,"postConstruct",null),t=lp([q("autoWidthCalculator")],t)}(Fe),cp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},dp=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},hp=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dp(arguments[t]));return e},fp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCtrlsByRowIndex={},t.zombieRowCtrls={},t.allRowCtrls=[],t.topRowCtrls=[],t.bottomRowCtrls=[],t.refreshInProgress=!1,t}return cp(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()}))},t.prototype.initialise=function(){this.addManagedListener(this.eventService,Ve.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_ROW_CLASS,this.redrawRows.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var e=this.gridOptionsWrapper.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new gp(t)}},t.prototype.getRowCtrls=function(){return this.allRowCtrls},t.prototype.updateAllRowCtrls=function(){var e=_(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&e.sort((function(e,t){return e.getRowNode().rowIndex-t.getRowNode.rowIndex}));var t=_(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=hp(e,t,n)},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_CELL_FOCUSED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellFocused(t)})),e.getFullWidthRowCtrls().forEach((function(e){e.onFullWidthRowFocused(t)}))})),this.addManagedListener(this.eventService,Ve.EVENT_FLASH_CELLS,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onFlashCells(t)}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_HOVER_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onColumnHover()}))})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.getAllCellCtrls().forEach((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,Ve.EVENT_RANGE_SELECTION_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_MOVED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PINNED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VISIBLE,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnModel.getAllGridColumns();t&&t.forEach((function(t){var n=function(n){e.getAllCellCtrls().forEach((function(e){e.getColumn()===t&&n(e)}))},o=function(){n((function(e){return e.onLeftChanged()}))},r=function(){n((function(e){return e.onWidthChanged()}))},i=function(){n((function(e){return e.onFirstRightPinnedChanged()}))},s=function(){n((function(e){return e.onLastLeftPinnedChanged()}))};t.addEventListener(ae.EVENT_LEFT_CHANGED,o),t.addEventListener(ae.EVENT_WIDTH_CHANGED,r),t.addEventListener(ae.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(ae.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(ae.EVENT_LEFT_CHANGED,o),t.removeEventListener(ae.EVENT_WIDTH_CHANGED,r),t.removeEventListener(ae.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(ae.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach((function(n){var o=n.getCellElement(e);o&&t.push(o)})),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCtrls=function(){return this.topRowCtrls},t.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},t.prototype.refreshFloatingRows=function(e,t){var n=this;e.forEach((function(e){e.destroyFirstPass(),e.destroySecondPass()})),e.length=0,t&&t.forEach((function(t){var o=new fl(t,n.beans,!1,!1,n.printLayout);e.push(o)}))},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return i(e)||f(this.rowCtrlsByRowIndex,(function(n,o){var r=o.getRowNode();e.indexOf(r)>=0&&t.push(n)})),t},t.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var n=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:t})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;var n=this.gridOptionsWrapper.getDocument().activeElement,o=this.gridOptionsWrapper.getDomData(n,al.DOM_DATA_KEY_CELL_CTRL),r=this.gridOptionsWrapper.getDomData(n,fl.DOM_DATA_KEY_ROW_CTRL);return o||r?t:null},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&!!e.recycleRows,o=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=n?this.recycleRows():null;n||this.removeAllRowComps();var i=function(){if(null==t||null==r)return!1;var e=!1;return f(r,(function(n,o){var r=o.getRowNode(),i=r.rowIndex==t.rowIndex,s=r.rowPinned==t.rowPinned;i&&s&&(e=!0)})),e}();this.redraw(r,o),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),i||this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.isRefreshInProgress=function(){return this.refreshInProgress},t.prototype.restoreFocusedCell=function(e){e&&this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach((function(t){t.stopEditing(e)}))},t.prototype.onNewColumnsLoaded=function(){this.getAllCellCtrls().forEach((function(e){return e.onNewColumnsLoaded()}))},t.prototype.getAllCellCtrls=function(){var e=[];return this.getAllRowCtrls().forEach((function(t){return e=e.concat(t.getAllCellCtrls())})),e},t.prototype.getAllRowCtrls=function(){var e=this,t=hp(this.topRowCtrls,this.bottomRowCtrls);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(n){return t.push(e.rowCtrlsByRowIndex[n])})),t},t.prototype.addRenderedRowListener=function(e,t,n){var o=this.rowCtrlsByRowIndex[t];o&&o.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,n=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){return e.flashCell({flashDelay:t,fadeDelay:n})}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){if(e.refreshShouldDestroy()){var n=e.getRowCtrl();n&&n.refreshCell(e)}else e.refreshCell(t)})),this.getFullWidthRowCtrls(e.rowNodes).forEach((function(e){e.refreshFullWidth()}))},t.prototype.getCellRendererInstances=function(e){return this.getCellCtrls(e.rowNodes,e.columns).map((function(e){return e.getCellRenderer()})).filter((function(e){return null!=e}))},t.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.mapRowNodes=function(e){if(e){var t={top:{},bottom:{},normal:{}};return e.forEach((function(e){var n=e.id;e.rowPinned===oe.PINNED_TOP?t.top[n]=e:e.rowPinned===oe.PINNED_BOTTOM?t.bottom[n]=e:t.normal[n]=e})),t}},t.prototype.isRowInMap=function(e,t){var n=e.id,o=e.rowPinned;return o===oe.PINNED_BOTTOM?null!=t.bottom[n]:o===oe.PINNED_TOP?null!=t.top[n]:null!=t.normal[n]},t.prototype.getCellCtrls=function(e,t){var n,o=this,i=this.mapRowNodes(e),s=[];r(t)&&(n={},t.forEach((function(e){var t=o.columnModel.getGridColumn(e);r(t)&&(n[t.getId()]=!0)})));var a=function(e){var t=e.getRowNode();(null==i||o.isRowInMap(t,i))&&e.getAllCellCtrls().forEach((function(e){var t=e.getColumn().getId();n&&!n[t]||s.push(e)}))};return f(this.rowCtrlsByRowIndex,(function(e,t){a(t)})),this.topRowCtrls&&this.topRowCtrls.forEach(a),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(a),s},t.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];f(this.rowCtrlsByRowIndex,(function(t,n){null==n.getRowNode().id&&e.push(t)})),this.removeRowCtrls(e);var t={};return f(this.rowCtrlsByRowIndex,(function(e,n){var o=n.getRowNode();t[o.id]=n})),this.rowCtrlsByRowIndex={},t},t.prototype.removeRowCtrls=function(e){var t=this;e.forEach((function(e){var n=t.rowCtrlsByRowIndex[e];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var n=Object.keys(this.rowCtrlsByRowIndex).filter((function(e){return!t[e]}));this.removeRowCtrls(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=ho(this.firstRenderedRow,this.lastRenderedRow),o=function(e,o){var r=o.getRowNode().rowIndex;null!=r&&(r<t.firstRenderedRow||r>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(o)&&n.push(r)};return f(this.rowCtrlsByRowIndex,o),f(e,o),n.sort((function(e,t){return e-t})),n},t.prototype.redraw=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender();var i=this.calculateIndexesToDraw(e);(this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1),i.forEach((function(i){r(o.createOrUpdateRowCtrl(i,e,t,n))})),e)&&(n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((function(){o.destroyRowCtrls(e,t),o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,t));this.updateAllRowCtrls(),this.gridBodyCtrl.updateRowCount()},t.prototype.dispatchDisplayedRowsChanged=function(){var e={type:Ve.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach((function(t){var n=t.getRowNode().rowIndex;e.push(n.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.getFullWidthRowCtrls=function(e){var t=this,n=this.mapRowNodes(e);return _(this.rowCtrlsByRowIndex).filter((function(e){if(!e.isFullWidth())return!1;var o=e.getRowNode();return!(null!=n&&!t.isRowInMap(o,n))}))},t.prototype.refreshFullWidthRows=function(e){var t=[],n=!!e,o=n?{}:void 0;n&&o&&e.forEach((function(e){return o[e.id]=!0})),this.getFullWidthRowCtrls().forEach((function(e){var r=e.getRowNode();if(n&&o){var i=r.level>0&&r.parent?r.parent.id:void 0;if(!o[r.id]&&!o[i])return}if(!e.refreshFullWidth()){var s=e.getRowNode().rowIndex;t.push(s.toString())}})),this.removeRowCtrls(t),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCtrl=function(e,t,n,o){var i,s=this.rowCtrlsByRowIndex[e];if(s||r(i=this.paginationProxy.getRow(e))&&r(t)&&t[i.id]&&i.alreadyRendered&&(s=t[i.id],t[i.id]=null),!s){if(i||(i=this.paginationProxy.getRow(e)),!r(i))return;s=this.createRowCon(i,n,o)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s,s},t.prototype.destroyRowCtrls=function(e,t){var n=this,o=[];f(e,(function(e,r){r&&(n.cachedRowCtrls&&r.isCacheable()?n.cachedRowCtrls.addRow(r):(r.destroyFirstPass(),t?(n.zombieRowCtrls[r.getInstanceId()]=r,o.push((function(){r.destroySecondPass(),delete n.zombieRowCtrls[r.getInstanceId()]}))):r.destroySecondPass()))})),t&&(o.push((function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})),L(o))},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,n=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.gridOptionsWrapper.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),i=this.gridOptionsWrapper.isSuppressRowVirtualisation(),s=!1,a=void 0,l=void 0;do{var u=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),p=c.pageFirstPixel,d=c.pageLastPixel,h=this.rowContainerHeightService.getDivStretchOffset();if(i)a=p+h,l=d+h;else{var f=r.getScrollFeature().getVScrollPosition(),g=f.top,m=f.bottom;a=Math.max(g+u-o,p)+h,l=Math.min(m+u+o,d)+h}s=this.ensureAllRowsInRangeHaveHeightsCalculated(a,l)}while(s);var v=this.paginationProxy.getRowIndexAtPixel(a),y=this.paginationProxy.getRowIndexAtPixel(l),C=this.paginationProxy.getPageFirstRow(),w=this.paginationProxy.getPageLastRow();v<C&&(v=C),y>w&&(y=w),e=v,t=y}else e=0,t=-1;var _=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,b=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),E=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);_&&!b&&t-e>E&&(t=e+E);var S=e!==this.firstRenderedRow,R=t!==this.lastRenderedRow;if(S||R){this.firstRenderedRow=e,this.lastRenderedRow=t;var O={type:Ve.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(O)}if(this.paginationProxy.isRowsToRender()){var P={type:Ve.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(P)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusService.isRowNodeFocused(t),o=e.isEditing(),r=t.detail;return!!(n||o||r)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowCon=function(e,t,n){var o=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(o)return o;var r=this.gridOptionsWrapper.isSuppressAnimationFrame(),i=n&&!r&&!this.printLayout;return new fl(e,this.beans,t,i,this.printLayout)},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.getRowByPosition=function(e){var t;switch(e.rowPinned){case oe.PINNED_TOP:t=this.topRowCtrls[e.rowIndex];break;case oe.PINNED_BOTTOM:t=this.bottomRowCtrls[e.rowIndex];break;default:t=this.rowCtrlsByRowIndex[e.rowIndex]}return t},t.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,t){if(null==e||null==t)return!1;var n=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!n},pp([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),pp([Y("columnModel")],t.prototype,"columnModel",void 0),pp([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),pp([Y("rowModel")],t.prototype,"rowModel",void 0),pp([Y("focusService")],t.prototype,"focusService",void 0),pp([Y("columnApi")],t.prototype,"columnApi",void 0),pp([Y("gridApi")],t.prototype,"gridApi",void 0),pp([Y("beans")],t.prototype,"beans",void 0),pp([Y("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),pp([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),pp([U],t.prototype,"postConstruct",null),t=pp([q("rowRenderer")],t)}(Fe),gp=function(){function e(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}return e.prototype.addRow=function(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){var t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}},e.prototype.getRow=function(e){if(null==e||null==e.id)return null;var t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null},e.prototype.removeFromCache=function(e){var t=e.getRowNode().id;delete this.entriesMap[t],de(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),mp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mp(t,e),t.prototype.formatValue=function(e,t,n,o,r){void 0===r&&(r=!0);var i,s=null,a=e.getColDef();if(o?i=o:r&&(i=t&&t.rowPinned&&a.pinnedRowValueFormatter?a.pinnedRowValueFormatter:a.valueFormatter),i){var l={value:n,node:t,data:t?t.data:null,colDef:a,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s=this.expressionService.evaluate(i,l)}else if(a.refData)return a.refData[n]||"";return null==s&&Array.isArray(n)&&(s=n.join(", ")),s},vp([Y("expressionService")],t.prototype,"expressionService",void 0),t=vp([q("valueFormatterService")],t)}(Fe),Cp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cp(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){return s(e===oe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var n=t===oe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(s(n))return 0;for(var o=0;o<n.length;o++){var r=n[o];if(r.rowTop+r.rowHeight-1>=e)return o}return n.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:Ve.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:Ve.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var n=this,o=[];if(e){var r=0;e.forEach((function(e,i){var s=new qi(n.beans);s.data=e;var a=t?qi.ID_PREFIX_TOP_PINNED:qi.ID_PREFIX_BOTTOM_PINNED;s.id=a+i,s.rowPinned=t?oe.PINNED_TOP:oe.PINNED_BOTTOM,s.setRowTop(r),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),r+=s.rowHeight,o.push(s)}))}return o},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){s(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){s(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var t=ue(e);return t.rowTop+t.rowHeight},wp([Y("columnApi")],t.prototype,"columnApi",void 0),wp([Y("gridApi")],t.prototype,"gridApi",void 0),wp([Y("beans")],t.prototype,"beans",void 0),wp([U],t.prototype,"init",null),t=wp([q("pinnedRowModel")],t)}(Fe);(Xc=t.ServerSideTransactionResultStatus||(t.ServerSideTransactionResultStatus={})).Applied="Applied",Xc.StoreNotFound="StoreNotFound",Xc.StoreLoading="StoreLoading",Xc.StoreWaitingToLoad="StoreWaitingToLoad",Xc.StoreLoadingFailed="StoreLoadingFailed",Xc.StoreWrongType="StoreWrongType",Xc.Cancelled="Cancelled";var bp,Ep=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,n){if(e.childrenAfterGroup)for(var o=0;o<e.childrenAfterGroup.length;o++){var r=e.childrenAfterGroup[o];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[o],t,n):n&&t(r)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,n=0;!this.mapToItems[t.id];){var o={rowNode:t,children:null};this.mapToItems[t.id]=o,n++,t=t.parent}return n},e.prototype.populateColumnsMap=function(e,t){var n=this;if(this.keepingColumns&&t)for(var o=e;o;)this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={}),t.forEach((function(e){return n.nodeIdsToColumns[o.id][e.getId()]=!0})),o=o.parent},e.prototype.linkPathItems=function(e,t){for(var n=e,o=0;o<t;o++){var r=this.mapToItems[n.id],i=this.mapToItems[n.parent.id];i.children||(i.children=[]),i.children.push(r),n=n.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return n[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!n[e.getId()]}))},e}(),Sp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rp=function(e){function t(n){var o=e.call(this)||this;return o.state=t.STATE_WAITING_TO_LOAD,o.version=0,o.id=n,o}return Sp(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,n=this.isAlive();return t&&n},t.prototype.successCommon=function(e,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(n))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var n={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(n)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Fe),Op=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Tp=function(e,t){return function(n,o){t(n,o,e)}},Ap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var n;return Op(t,e),n=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsWrapper.getBlockLoadDebounceMillis();e&&e>0&&(this.checkBlockToLoadDebounce=jo.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(Rp.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){jo.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:n.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===Rp.STATE_WAITING_TO_LOAD&&(e=t)})),e&&(e.load(),this.activeBlockLoadsCount++,this.printCacheStatus())}},t.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var n=t.getBlockStateJson(),o=n.id,r=n.state;e[o]=r})),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",Pp([U],t.prototype,"postConstruct",null),Pp([Tp(0,X("loggerFactory"))],t.prototype,"setBeans",null),t=n=Pp([q("rowNodeBlockLoader")],t)}(Fe),Dp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Np=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return Dp(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,o){var r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:Ve.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var e={type:Ve.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:Ve.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return i(this.topRowBounds)||i(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},t.prototype.isRowInPage=function(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(r(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:Ve.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},t.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!fo(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*this.currentPage,n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var o=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=o-1}}},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!fo(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},xp([Y("rowModel")],t.prototype,"rowModel",void 0),xp([Y("columnApi")],t.prototype,"columnApi",void 0),xp([Y("gridApi")],t.prototype,"gridApi",void 0),xp([U],t.prototype,"postConstruct",null),t=xp([q("paginationProxy")],t)}(Fe),Lp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ip=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Mp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lp(t,e),t.prototype.processAllCellClasses=function(e,t,n,o){this.processClassRules(e.cellClassRules,t,n,o),this.processStaticCellClasses(e,t,n)},t.prototype.processClassRules=function(e,t,n,o){if(null!=e){for(var r=Object.keys(e),i={},s={},a=function(n){var o,a=r[n],u=e[a];"string"===typeof u?o=l.expressionService.evaluate(u,t):"function"===typeof u&&(o=u(t)),a.split(" ").forEach((function(e){null!=e&&""!=e.trim()&&(o?i[e]=!0:s[e]=!0)}))},l=this,u=0;u<r.length;u++)a(u);o&&Object.keys(s).forEach(o),Object.keys(i).forEach(n)}},t.prototype.getStaticCellClasses=function(e,t){var n,o=e.cellClass;if(!o)return[];"function"===typeof o?n=o(t):n=o;return"string"===typeof n&&(n=[n]),n||[]},t.prototype.processStaticCellClasses=function(e,t,n){this.getStaticCellClasses(e,t).forEach((function(e){n(e)}))},Ip([Y("expressionService")],t.prototype,"expressionService",void 0),t=Ip([q("stylingService")],t)}(Fe),Fp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kp=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return Fp(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Ve.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}(ic),Gp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hp=function(e){function t(t){return e.call(this,t,"ag-toggle-button")||this}return Gp(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(ic),Wp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vp=function(e){function t(t,n,o){return void 0===n&&(n="ag-text-field"),void 0===o&&(o="text"),e.call(this,t,n,o)||this}return Wp(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=r(t)?t:""),o},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(t){t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(t){var n,o=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text");o&&o.split("").some((function(t){return!e.test(t)}))&&t.preventDefault()}))},t}(Fr),jp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bp=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return jp(t,e),t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Fr),zp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Up=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return zp(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),n=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==n&&t.setValue(n)})),this.eInput.step="any"},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Ln(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Ln(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.step=e,Ln(this.eInput,"step",e)),this},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(Vp),Kp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qp=function(e){function t(t){return e.call(this,t,"ag-range-field","range")||this}return Kp(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,o=t.max,r=t.step;null!=n&&this.setMinValue(n),null!=o&&this.setMaxValue(o),this.setStep(r||1)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){var n=t.target.value;e.setValue(n)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t}(Fr),Yp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},$p=function(e){function t(n){var o=e.call(this,n,t.TEMPLATE)||this;return o.labelAlignment="top",o}return Yp(t,e),t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=Sr.EVENT_CHANGED;return this.addManagedListener(this.eText,n,(function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)})),this.addManagedListener(this.eSlider,n,(function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Sr.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',Zp([nr("eLabel")],t.prototype,"eLabel",void 0),Zp([nr("eSlider")],t.prototype,"eSlider",void 0),Zp([nr("eText")],t.prototype,"eText",void 0),Zp([U],t.prototype,"init",null),t}(br),Xp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Jp=function(e){function t(n){var o=e.call(this,n,t.TEMPLATE)||this;return o.radius=0,o.offsetX=0,o.offsetY=0,o}return Xp(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var n=parseFloat(e);n>180&&(n-=360),t.setValue(n)})),this.updateNumberInput(),r(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,Sr.EVENT_CHANGED,(function(){var e=t.gridOptionsWrapper.getDocument();t.eAngleValue.getInputElement().contains(e.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,o=t.width/2,r=t.height/2;n.style.left=o+8*Math.cos(e)+"px",n.style.top=r+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,n=t.width/2,o=t.height/2,r=e.clientX-t.left-n,i=e.clientY-t.top-o,s=Math.atan2(i,r);this.setValue(s,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addManagedListener(this,Sr.EVENT_CHANGED,(function(){e(t.degrees)})),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var n;return n=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(n),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(n),this.dispatchEvent({type:Sr.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return Rn(this.getGui(),e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-angle-select">\n <div ref="eLabel"></div>\n <div class="ag-wrapper ag-angle-select-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',Qp([nr("eLabel")],t.prototype,"eLabel",void 0),Qp([nr("eParentCircle")],t.prototype,"eParentCircle",void 0),Qp([nr("eChildCircle")],t.prototype,"eChildCircle",void 0),Qp([nr("eAngleValue")],t.prototype,"eAngleValue",void 0),Qp([Y("dragService")],t.prototype,"dragService",void 0),t}(br),ed=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),td=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},nd=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},od=function(e){function t(n){var o=e.call(this,t.TEMPLATE)||this;return o.H=1,o.S=1,o.B=1,o.A=1,o.isSpectrumDragging=!1,o.isSpectrumHueDragging=!1,o.isSpectrumAlphaDragging=!1,o.colorChanged=!1,o.picker=n.picker,o}return ed(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,o=e.clientY-t.top;n=Math.max(n,0),n=Math.min(n,t.width),o=Math.max(o,0),o=Math.min(o,t.height),this.setSpectrumValue(n/t.width,1-o/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var n=this.spectrumHueSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.H=1-r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var n=this.spectrumAlphaSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.A=r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.update=function(){var e=Ot.fromHSB(360*this.H,this.S,this.B,this.A),t=Ot.fromHSB(360*this.H,1,1),n=e.toRgbaString(),o=this.picker;Ot.fromString(o.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),o.setValue(n),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var o=this.spectrumDragger,r=o.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,o.style.left=e*n.width-r.width/2+"px",o.style.top=(1-t)*n.height-r.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map((function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=Ot.fromString(e),n=nd(t.toHSB(),3),o=n[0],r=n[1],i=n[2];this.H=(isNaN(o)?0:o)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*a.width+"px",this.setSpectrumValue(r,i)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(r(n.id)){var o=parseInt(n.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var e=Ot.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),n=t.recentColors;this.colorChanged&&n[0]!==e&&(n=n.filter((function(t){return t!=e})),(n=[e].concat(n)).length>t.maxRecentColors&&(n=n.slice(0,t.maxRecentColors)),t.recentColors=n)},t.prototype.destroy=function(){this.addRecentColor(),e.prototype.destroy.call(this)},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-spectrum-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',td([nr("spectrumColor")],t.prototype,"spectrumColor",void 0),td([nr("spectrumVal")],t.prototype,"spectrumVal",void 0),td([nr("spectrumDragger")],t.prototype,"spectrumDragger",void 0),td([nr("spectrumHue")],t.prototype,"spectrumHue",void 0),td([nr("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),td([nr("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),td([nr("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),td([nr("recentColors")],t.prototype,"recentColors",void 0),td([U],t.prototype,"postConstruct",null),t}(tr),rd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),id=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sd=function(e){function t(n){var o=e.call(this,t.getTemplate(n))||this;return o.closable=!0,o.config=n,o}return rd(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+t+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper"></div>\n </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,n=t.component,o=t.closable,r=t.hideTitleBar,i=t.title,s=t.minWidth,a=void 0===s?250:s,l=t.width,u=t.minHeight,c=void 0===u?250:u,p=t.height,d=t.centered,h=t.popup,f=t.x,g=t.y;this.positionableFeature=new sp(this.getGui(),{minWidth:a,width:l,minHeight:c,height:p,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var m=this.getGui();n&&this.setBodyComponent(n),r?this.eTitleBar.classList.add("ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=o?o:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){var n=e.gridOptionsWrapper.getDocument();if(m.contains(t.relatedTarget)||m.contains(n.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var o=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");o&&o.focus()}})),h&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),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 n=this.closeButtonComp=new tr(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n);var o=n.getGui(),r=Ao("close",this.gridOptionsWrapper);r.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(r),this.addTitleBarButton(n),n.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(o=this.closeButtonComp.getGui()).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,t){var n=this.eTitleBarButtons,o=n.children,r=o.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r)),e.addCssClass("ag-panel-title-bar-button");var i=e.getGui();0===t?n.insertAdjacentElement("afterbegin",i):t===r?n.insertAdjacentElement("beforeend",i):o[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return rn(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return sn(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 t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',id([nr("eContentWrapper")],t.prototype,"eContentWrapper",void 0),id([nr("eTitleBar")],t.prototype,"eTitleBar",void 0),id([nr("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),id([nr("eTitle")],t.prototype,"eTitle",void 0),id([U],t.prototype,"postConstruct",null),t}(tr),ad=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ld=function(){return ld=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ld.apply(this,arguments)},ud=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},cd=function(e){function t(t){var n=e.call(this,ld(ld({},t),{popup:!0}))||this;return n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.lastPosition={x:0,y:0,width:0,height:0},n}return ad(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),o=this.config,r=o.movable,i=o.resizable,s=o.maximizable;this.addCssClass("ag-dialog"),e.prototype.postConstruct.call(this),this.addManagedListener(n,"focusin",(function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,o=t.modal,r=t.title,i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:o,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n,ariaLabel:r||i("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,n=t.x,o=t.y,r=t.width,i=t.height;this.setWidth(r),this.setHeight(i),this.positionableFeature.offsetElement(n,o)}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(){Jt(this.maximizeIcon,!this.isMaximized),Jt(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(),e.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 t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var o=this.maximizeButtonComp=this.createBean(new tr('<div class="ag-dialog-button"></span>')),r=o.getGui();r.appendChild(this.maximizeIcon=Ao("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=Ao("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","ag-hidden"),o.addManagedListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(o,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},ud([Y("popupService")],t.prototype,"popupService",void 0),t}(sd),pd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dd=function(e){function t(t){var n=e.call(this,t,"ag-color-picker","colorPicker")||this;return t&&t.color&&(n.value=t.color),n}return pd(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,t=this.getGui().getBoundingClientRect(),n=this.createBean(new cd({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250}));this.isPickerDisplayed=!0,n.addCssClass("ag-color-dialog"),$n(this.eWrapper,!0);var o=this.createBean(new od({picker:this}));return o.addDestroyFunc((function(){n.isAlive()&&e.destroyBean(n)})),n.setParentComponent(this),n.setBodyComponent(o),o.setValue(this.getValue()),n.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,o.isAlive()&&e.destroyBean(o)),e.isAlive()&&($n(e.eWrapper,!1),e.getFocusableElement().focus()),e.isPickerDisplayed=!1})),n},t.prototype.setValue=function(t){return this.value===t?this:(this.eDisplayField.style.backgroundColor=t,e.prototype.setValue.call(this,t))},t.prototype.getValue=function(){return this.value},t}(Pr),hd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gd=function(e){function t(n){void 0===n&&(n={});var o=e.call(this,t.getTemplate(n))||this;o.suppressEnabledCheckbox=!0,o.suppressOpenCloseIcons=!1;var r=n.title,i=n.enabled,s=n.items,a=n.suppressEnabledCheckbox,l=n.suppressOpenCloseIcons;return o.title=r,o.cssIdentifier=n.cssIdentifier||"default",o.enabled=null==i||i,o.items=s||[],o.alignItems=n.alignItems||"center",null!=a&&(o.suppressEnabledCheckbox=a),null!=l&&(o.suppressOpenCloseIcons=l),o}return hd(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+t+'-group-container"></div>\n </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("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(To("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(To("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(t){switch(t.key){case dr.ENTER:case dr.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case dr.RIGHT:case dr.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===dr.RIGHT)}}))},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||$n(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;Jt(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),Jt(this.eGroupOpenedIcon,e&&this.expanded),Jt(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-"+this.alignItems),this.alignItems=e;var t="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(t),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Jt(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),Jt(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),this)},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.eContainer,n=e instanceof tr?e.getGui():e;n.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){this.items[t].classList.toggle("ag-hidden",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,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(n){t.setEnabled(n,!0),e(n)})),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",fd([nr("eTitleBar")],t.prototype,"eTitleBar",void 0),fd([nr("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),fd([nr("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),fd([nr("eToolbar")],t.prototype,"eToolbar",void 0),fd([nr("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),fd([nr("eTitle")],t.prototype,"eTitle",void 0),fd([nr("eContainer")],t.prototype,"eContainer",void 0),fd([U],t.prototype,"postConstruct",null),t}(tr),md=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yd=function(e){function t(t){var n=e.call(this)||this;n.skipTabGuardFocus=!1;var o=t.comp,r=t.eTopGuard,i=t.eBottomGuard,s=t.focusInnerElement,a=t.onFocusIn,l=t.onFocusOut,u=t.shouldStopEventPropagation,c=t.onTabKeyDown,p=t.handleKeyDown,d=t.eFocusableElement;return n.comp=o,n.eTopGuard=r,n.eBottomGuard=i,n.providedFocusInnerElement=s,n.eFocusableElement=d,n.providedFocusIn=a,n.providedFocusOut=l,n.providedShouldStopEventPropagation=u,n.providedOnTabKeyDown=c,n.providedHandleKeyDown=p,n}return md(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new mr(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))}))},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var n=this.tabGuardsAreActive();n&&this.deactivateTabGuards();var o=this.getNextFocusableElement(e.shiftKey);n&&setTimeout((function(){return t.activateTabGuards()}),0),o&&(o.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus()},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1);var t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,t.focus()},vd([Y("focusService")],t.prototype,"focusService",void 0),vd([U],t.prototype,"postConstruct",null),t}(Fe),Cd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wd=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},_d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(wd(arguments[t]));return e},bd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cd(t,e),t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var t=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:function(e){t.forEach((function(t){return null!=e?t.setAttribute("tabIndex",e):t.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new yd({comp:n,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var t=document.createElement("div");return t.classList.add("ag-tab-guard","ag-tab-guard-"+e),Wn(t,"presentation"),t},t.prototype.addTabGuards=function(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];dn(this.getFocusableElement()),this.addTabGuards.apply(this,_d(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,n){Dn(t)||(t=t.getGui());var o=this.eBottomGuard;o?o.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,n)},t}(tr),Ed=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sd=function(){return Sd=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Sd.apply(this,arguments)},Rd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Od=function(e){function t(t){void 0===t&&(t=1);var n=e.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return n.level=t,n.menuItems=[],n}return Ed(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.onTabKeyDown=function(e){var t=this.getParentComponent(),n=t&&t.getGui();n&&n.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case dr.UP:case dr.RIGHT:case dr.DOWN:case dr.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case dr.ESCAPE:var t=this.findTopMenu();t&&this.focusService.focusInto(t.getGui())}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var t=this;null!=e&&e.forEach((function(e){"separator"===e?t.addSeparator():"string"===typeof e?console.warn("AG Grid: unrecognised menu item "+e):t.addItem(e)}))},t.prototype.addItem=function(e){var t=this,n=this.createManagedBean(new Nd(Sd(Sd({},e),{isAnotherSubMenuOpen:function(){return t.menuItems.some((function(e){return e.isSubMenuOpen()}))}})));n.setParentComponent(this),Yn(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,Nd.EVENT_MENU_ITEM_SELECTED,(function(e){t.dispatchEvent(e)})),this.addManagedListener(n,Nd.EVENT_MENU_ITEM_ACTIVATED,(function(e){t.activeMenuItem&&t.activeMenuItem!==e.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=e.menuItem}))},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter((function(e){return!e.isDisabled()}))[0];e&&e.activate()},t.prototype.addSeparator=function(){this.appendChild(gn('\n <div class="ag-menu-separator" aria-hidden="true">\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n </div>'))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;for(;;){var n=e&&e.getParentComponent&&e.getParentComponent();if(!n||!(n instanceof t||n instanceof Nd))break;e=n}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case dr.UP:case dr.DOWN:var t=this.findNextItem(e===dr.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gridOptionsWrapper.isEnableRtl()?dr.RIGHT:dr.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof Nd&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var t=this.menuItems.filter((function(e){return!e.isDisabled()}));if(t.length){if(!this.activeMenuItem)return e?ue(t):t[0];var n;e&&t.reverse();for(var o=!1,r=0;r<t.length;r++){var i=t[r];if(o){n=i;break}i===this.activeMenuItem&&(o=!0)}return n||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},Rd([Y("focusService")],t.prototype,"focusService",void 0),Rd([U],t.prototype,"postConstruct",null),t}(bd),Pd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Td=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ad=function(e){function t(t){var n=e.call(this)||this;return n.wrappedComponent=t,n.setTemplateFromElement(t.getGui()),n}return Pd(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.handleKeyDown=function(e){e.key===dr.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)},Td([U],t.prototype,"postConstruct",null),t}(bd),Dd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Nd=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n.isActive=!1,n.subMenuIsOpen=!1,n.setTemplate('<div class="'+n.getClassName()+'" tabindex="-1" role="treeitem"></div>'),n}return Dd(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),Zn(t,!0)):(this.addGuiEventListener("click",(function(t){return e.onItemSelected(t)})),this.addGuiEventListener("keydown",(function(t){t.key!==dr.ENTER&&t.key!==dr.SPACE||(t.preventDefault(),e.onItemSelected(t))})),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return e.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return e.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(t){return e.addCssClass(t)}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var n=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var o,r=gn('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var i=jn(this.getGui()),s=isNaN(i)?1:i+1,a=this.createBean(new Od(s));a.setParentComponent(this),a.addMenuItems(this.params.subMenu),r.appendChild(a.getGui()),this.addManagedListener(a,t.EVENT_MENU_ITEM_SELECTED,(function(e){return n.dispatchEvent(e)})),a.addGuiEventListener("mouseenter",(function(){return n.cancelDeactivate()})),o=function(){return n.destroyBean(a)},e&&setTimeout((function(){return a.activateFirstItem()}),0)}else{var l=this.params.subMenu,u=this.createBean(new Ad(l));u.setParentComponent(this);var c=u.getGui(),p="mouseenter",d=function(){return n.cancelDeactivate()};c.addEventListener(p,d),o=function(){return c.removeEventListener(p,d)},r.appendChild(c),l.afterGuiAttached&&setTimeout((function(){return l.afterGuiAttached()}),0)}var h=this.getGui(),f=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:h,ePopup:r}),g=this.gridOptionsWrapper.getLocaleTextFunc(),m=this.popupService.addPopup({modal:!0,eChild:r,positionCallback:f,anchorToElement:h,ariaLabel:g("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,$n(h,!0),this.hideSubMenu=function(){m&&m.hideFunc(),n.subMenuIsOpen=!1,$n(h,!1),o()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,$n(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout((function(){t.isAlive()&&t.isActive&&t.openSubMenu()}),300),this.onItemActivated())},t.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=gn('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(Ao("check",this.gridOptionsWrapper)):this.params.icon&&(Dn(this.params.icon)?e.appendChild(this.params.icon):"string"===typeof this.params.icon?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(){if(this.params.name||!this.params.isCompact){var e=gn('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new $o(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=gn('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=gn('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),t=this.getGui();if(this.params.subMenu){var n=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";$n(t,!1),e.appendChild(Ao(n,this.gridOptionsWrapper))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),!this.params.subMenu||this.params.action){var n={type:t.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e};this.dispatchEvent(n)}},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.params.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.getClassName=function(e){var t=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?t+"-"+e:t},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,xd([Y("popupService")],t.prototype,"popupService",void 0),xd([U],t.prototype,"init",null),t}(tr),Ld=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Id=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Md=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Fd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Md(arguments[t]));return e},kd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Ld(t,e),n=t,t.addKeyboardModeEvents=function(e,t){var o=n.instancesMonitored.get(e);o&&o.length>0?-1===o.indexOf(t)&&o.push(t):(n.instancesMonitored.set(e,[t]),e.addEventListener("keydown",n.toggleKeyboardMode),e.addEventListener("mousedown",n.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var o=n.instancesMonitored.get(e),r=[];o&&o.length&&(r=Fd(o).filter((function(e){return e!==t})),n.instancesMonitored.set(e,r)),0===r.length&&(e.removeEventListener("keydown",n.toggleKeyboardMode),e.removeEventListener("mousedown",n.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=n.keyboardModeActive,o="keydown"===e.type;if((!o||!(e.ctrlKey||e.metaKey||e.altKey))&&!(t&&o||!t&&!o)){n.keyboardModeActive=o;var r=e.target.ownerDocument;if(r){var i=n.instancesMonitored.get(r);i&&i.forEach((function(e){e.dispatchEvent({type:o?Ve.EVENT_KEYBOARD_FOCUS:Ve.EVENT_MOUSE_FOCUS})}))}}},t.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl;var o=e.gridOptionsWrapper.getDocument();n.addKeyboardModeEvents(o,e.gridCtrl),e.addDestroyFunc((function(){return e.unregisterGridCompController(e.gridCtrl)}))}))},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsWrapper.getDocument();n.removeKeyboardModeEvents(t,e)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return n.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,fl.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,Vu.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(e,t){for(var n=e;n;){if(this.gridOptionsWrapper.getDomData(n,t))return!1;n=n.parentNode}return!0},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(e,t,n,r){void 0===r&&(r=!1);var i=this.columnModel.getGridColumn(t);i?(this.focusedCellPosition=i?{rowIndex:e,rowPinned:o(n),column:i}:null,this.onCellFocused(r)):this.focusedCellPosition=null},t.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},t.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumnGroupChild(),n=e.getRowIndex(),o=e.getPinned(),r=this.focusedHeaderPosition,i=r.column,s=r.headerRowIndex;return t===i&&n===s&&o==i.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e){var t=e.direction,n=e.fromTab,o=e.allowUserOverride,r=e.event,i=e.headerPosition;if(o){var s,a=this.gridOptionsWrapper,l=this.getFocusedHeader(),u=this.headerNavigationService.getHeaderRowCount();if(n){if(s=a.getTabToNextHeaderFunc())i=s({backwards:"Before"===t,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:u})}else if((s=a.getNavigateToNextHeaderFunc())&&r)i=s({key:r.key,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:u,event:r})}return!!i&&(-1===i.headerRowIndex?this.focusGridView(i.column):(this.headerNavigationService.scrollToColumn(i.column,t),this.ctrlsService.getHeaderRowContainerCtrl(i.column.getPinned()).focusHeader(i.headerRowIndex,i.column,r)))},t.prototype.focusFirstHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}))},t.prototype.focusLastHeader=function(e){var t=this.headerNavigationService.getHeaderRowCount()-1,n=ue(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},event:e})},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(e,t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===o(t))},t.prototype.findFocusableElements=function(e,t,n){void 0===n&&(n=!1);var o=oe.FOCUSABLE_SELECTOR,r=oe.FOCUSABLE_EXCLUDE;t&&(r+=", "+t),n&&(r+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll(o)),s=Array.prototype.slice.apply(e.querySelectorAll(r));if(!s.length)return i;var a;return a=s,i.filter((function(e){return-1===a.indexOf(e)}))},t.prototype.focusInto=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=this.findFocusableElements(e,null,n),r=t?ue(o):o[0];return!!r&&(r.focus(),!0)},t.prototype.findNextFocusableElement=function(e,t,n){void 0===e&&(e=this.eGridDiv);var o=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),r=this.gridOptionsWrapper.getDocument().activeElement,i=(t?o.findIndex((function(e){return e.contains(r)})):o.indexOf(r))+(n?-1:1);return i<0||i>=o.length?null:o[i]},t.prototype.isFocusUnderManagedComponent=function(e){var t=this.gridOptionsWrapper.getDocument(),n=e.querySelectorAll("."+mr.FOCUS_MANAGED_CLASS);if(!n.length)return!1;for(var o=0;o<n.length;o++)if(n[o].contains(t.activeElement))return!0;return!1},t.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var n=0;e&&null===Bt(e)&&++n<=t;)e=e.parentElement;return null===Bt(e)?null:e},t.prototype.onCellFocused=function(e){var t={type:Ve.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var n=t.rowIndex=this.focusedCellPosition.rowIndex,o=t.rowPinned=this.focusedCellPosition.rowPinned;t.column=this.focusedCellPosition.column;var r=this.rowRenderer.getRowByPosition({rowIndex:n,rowPinned:o});r&&(t.isFullWidthCell=r.isFullWidth())}this.eventService.dispatchEvent(t)},t.prototype.focusGridView=function(e,t){if(this.gridOptionsWrapper.isSuppressCellFocus())return t?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var n=t?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var r=n.rowIndex,i=n.rowPinned,s=this.getFocusedHeader();if(!e&&s&&(e=s.column),null==r||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:r,column:e,rowPinned:i}),this.setFocusedCell(r,e,o(i),!0),this.rangeService){var a={rowIndex:r,rowPinned:i,column:e};this.rangeService.setRangeToCell(a)}return!0},t.prototype.focusNextGridCoreContainer=function(e){return!!this.gridCtrl.focusNextInnerContainer(e)||(e||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},t.AG_KEYBOARD_FOCUS="ag-keyboard-focus",t.keyboardModeActive=!1,t.instancesMonitored=new Map,Id([Y("eGridDiv")],t.prototype,"eGridDiv",void 0),Id([Y("columnModel")],t.prototype,"columnModel",void 0),Id([Y("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Id([Y("columnApi")],t.prototype,"columnApi",void 0),Id([Y("gridApi")],t.prototype,"gridApi",void 0),Id([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),Id([Y("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Id([Z("rangeService")],t.prototype,"rangeService",void 0),Id([Y("navigationService")],t.prototype,"navigationService",void 0),Id([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Id([U],t.prototype,"init",null),t=n=Id([q("focusService")],t)}(Fe),Gd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal"}(bp||(bp={}));var Wd,Vd=0,jd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}return Gd(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl,e.addManagedListener(e.gridCtrl,Ve.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.add(kd.AG_KEYBOARD_FOCUS)}))})),e.addManagedListener(e.gridCtrl,Ve.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.remove(kd.AG_KEYBOARD_FOCUS)}))}))}))},t.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),o=this.keepXYWithinBounds(e.ePopup,t.top-n.top,bp.vertical),r=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=r+"px";var i,s=n.right-n.left-r;function a(){return t.right-n.left-2}function l(){return t.left-n.left-r}this.gridOptionsWrapper.isEnableRtl()?((i=l())<0&&(i=a()),i>s&&(i=0)):((i=a())>s&&(i=l()),i<0&&(i=0)),e.ePopup.style.left=i+"px",e.ePopup.style.top=o+"px"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=e.ePopup,n=e.nudgeX,o=e.nudgeY,r=this.calculatePointerAlign(e.mouseEvent),i=r.x,s=r.y;this.positionPopup({ePopup:t,x:i,y:s,nudgeX:n,nudgeY:o,keepWithinBounds:!0}),this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=e.alignSide||"left",o=this.getParentRect(),r=t.left-o.left;"right"===n&&(r-=e.ePopup.offsetWidth-t.width),this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:r,y:t.top-o.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-n.left,y:t.top-n.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.callPostProcessPopup=function(e,t,n,o,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:t,type:e,eventSource:n,mouseEvent:o})},t.prototype.positionPopup=function(e){var t=e.ePopup,n=e.keepWithinBounds,o=e.nudgeX,r=e.nudgeY,i=e.x,s=e.y;o&&(i+=o),r&&(s+=r),n&&(i=this.keepXYWithinBounds(t,i,bp.horizontal),s=this.keepXYWithinBounds(t,s,bp.vertical)),t.style.left=i+"px",t.style.top=s+"px"},t.prototype.getActivePopups=function(){return this.popupList.map((function(e){return e.element}))},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var e=this.gridOptionsWrapper.getDocument(),t=this.getPopupParent();t===e.body&&(t=e.documentElement);var n=getComputedStyle(t),o=t.getBoundingClientRect();return{top:o.top+parseFloat(n.borderTopWidth)||0,left:o.left+parseFloat(n.borderLeftWidth)||0,right:o.right+parseFloat(n.borderRightWidth)||0,bottom:o.bottom+parseFloat(n.borderBottomWidth)||0}},t.prototype.keepXYWithinBounds=function(e,t,n){var o=n===bp.vertical,r=o?"clientHeight":"clientWidth",i=o?"top":"left",s=o?"offsetHeight":"offsetWidth",a=o?"scrollTop":"scrollLeft",l=this.gridOptionsWrapper.getDocument(),u=l.documentElement,c=this.getPopupParent(),p=c.getBoundingClientRect(),d=l.documentElement.getBoundingClientRect(),h=c===l.body,f=e[s],g=h?(o?an:ln)(u)+u[a]:c[r];h&&(g-=Math.abs(d[i]-p[i]));var m=g-f;return Math.min(Math.max(t,0),Math.abs(m))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this,n=this.getPopupParent(),o=n.getBoundingClientRect(),r=e.element.getBoundingClientRect(),i=o.top-r.top,s=o.left-r.left,a=i,l=s,u=e.ePopup.style.top,c=parseInt(u.substring(0,u.length-1),10),p=e.ePopup.style.left,d=parseInt(p.substring(0,p.length-1),10);return new Uo((function(o){t.getFrameworkOverrides().setInterval((function(){var o=n.getBoundingClientRect(),r=e.element.getBoundingClientRect();if(0==r.top&&0==r.left&&0==r.height&&0==r.width)e.hidePopup();else{var u=o.top-r.top;if(u!=a){var p=t.keepXYWithinBounds(e.ePopup,c+i-u,bp.vertical);e.ePopup.style.top=p+"px"}a=u;var h=o.left-r.left;if(h!=l){var f=t.keepXYWithinBounds(e.ePopup,d+s-h,bp.horizontal);e.ePopup.style.left=f+"px"}l=h}}),200).then((function(e){o((function(){null!=e&&window.clearInterval(e)}))}))}))},t.prototype.addPopup=function(e){var t=this,n=e.modal,o=e.eChild,r=e.closeOnEsc,i=e.closedCallback,s=e.click,a=e.alwaysOnTop,l=e.afterGuiAttached,u=e.positionCallback,c=e.anchorToElement,p=e.ariaLabel,d=this.gridOptionsWrapper.getDocument(),h=new Uo((function(e){return e((function(){}))}));if(!d)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:h};var f=this.popupList.findIndex((function(e){return e.element===o}));if(-1!==f){var g=this.popupList[f];return{hideFunc:g.hideFunc,stopAnchoringPromise:g.stopAnchoringPromise}}var m=this.getPopupParent();null==o.style.top&&(o.style.top="0px"),null==o.style.left&&(o.style.left="0px");var v=document.createElement("div"),y=this.environment.getTheme().theme;y&&v.classList.add(y),v.classList.add("ag-popup"),o.classList.add(this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr","ag-popup-child"),o.hasAttribute("role")||Wn(o,"dialog"),zn(o,p),this.focusService.isKeyboardMode()&&o.classList.add(kd.AG_KEYBOARD_FOCUS),v.appendChild(o),m.appendChild(v),a?this.setAlwaysOnTop(v,!0):this.bringPopupToFront(v);var C=!1,w=function(e){v.contains(d.activeElement)&&(e.key===dr.ESCAPE&&E({keyboardEvent:e}))},_=function(e){return E({mouseEvent:e})},b=function(e){return E({touchEvent:e})},E=function(e){void 0===e&&(e={});var n=e.mouseEvent,r=e.touchEvent,a=e.keyboardEvent;t.isEventFromCurrentPopup({mouseEvent:n,touchEvent:r},o)||t.isEventSameChainAsOriginalEvent({originalMouseEvent:s,mouseEvent:n,touchEvent:r})||C||(C=!0,m.removeChild(v),d.removeEventListener("keydown",w),d.removeEventListener("mousedown",_),d.removeEventListener("touchstart",b),d.removeEventListener("contextmenu",_),t.eventService.removeEventListener(Ve.EVENT_DRAG_STARTED,_),i&&i(n||r||a),t.popupList=t.popupList.filter((function(e){return e.element!==o})),h&&h.then((function(e){return e&&e()})))};return l&&l({hidePopup:E}),window.setTimeout((function(){r&&d.addEventListener("keydown",w),n&&(d.addEventListener("mousedown",_),t.eventService.addEventListener(Ve.EVENT_DRAG_STARTED,_),d.addEventListener("touchstart",b),d.addEventListener("contextmenu",_))}),0),u&&u(),c&&(h=this.keepPopupPositionedRelativeTo({element:c,ePopup:o,hidePopup:E})),this.popupList.push({element:o,wrapper:v,hideFunc:E,stopAnchoringPromise:h,instanceId:Vd++,isAnchored:!!c}),{hideFunc:E,stopAnchoringPromise:h}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(e){return e.isAnchored}))},t.prototype.isEventFromCurrentPopup=function(e,t){var n=e.mouseEvent,o=e.touchEvent,r=n||o;if(!r)return!1;var i=this.popupList.findIndex((function(e){return e.element===t}));if(-1===i)return!1;for(var s=i;s<this.popupList.length;s++){if(De(this.popupList[s].element,r))return!0}return this.isElementWithinCustomPopup(r.target)},t.prototype.isElementWithinCustomPopup=function(e){for(var t=this.gridOptionsWrapper.getDocument();e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,n=e.mouseEvent,o=e.touchEvent,r=null;if(n?r=n:o&&(r=o.touches[0]),r&&t){var i=n?n.screenX:0,s=n?n.screenY:0,a=Math.abs(t.screenX-i)<5,l=Math.abs(t.screenY-s)<5;if(a&&l)return!0}return!1},t.prototype.getWrapper=function(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),o=n.length,r=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),i=r.length,s=this.getWrapper(e);if(s&&!(o<=1)&&t.contains(e)){var a=n.indexOf(s),l=s.querySelectorAll("div"),u=[];if(l.forEach((function(e){0!==e.scrollTop&&u.push([e,e.scrollTop])})),i)s.classList.contains("ag-always-on-top")?a!==o-1&&ue(r).insertAdjacentElement("afterend",s):a!==o-i-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==o-1&&ue(n).insertAdjacentElement("afterend",s);for(;u.length;){var c=u.pop();c[0].scrollTop=c[1]}var p={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(p)}},Hd([Y("environment")],t.prototype,"environment",void 0),Hd([Y("focusService")],t.prototype,"focusService",void 0),Hd([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Hd([U],t.prototype,"postConstruct",null),t=Hd([q("popupService")],t)}(Fe),Bd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ud=function(e){function t(n,o,r){void 0===n&&(n="default"),void 0===o&&(o="listbox");var i=e.call(this,t.getTemplate(n))||this;return i.cssIdentifier=n,i.ariaRole=o,i.listName=r,i.renderedRows=new Map,i.rowHeight=20,i.isDestroyed=!1,i}return Bd(t,e),t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)},focusInnerElement:function(t){return e.focusInnerElement(t)},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}}),this.setAriaProperties()},t.prototype.setAriaProperties=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),t=this.eContainer;Wn(t,this.ariaRole),zn(t,e)},t.prototype.addResizeObserver=function(){var e=this.drawVirtualRows.bind(this),t=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(t)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var t=e.target;return t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=Bn(t)-1),!1},t.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},t.prototype.handleKeyDown=function(e){switch(e.key){case dr.UP:case dr.DOWN:this.navigate(e.key===dr.UP)&&e.preventDefault()}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.focusService.focusInto(this.getGui(),!e.shiftKey)},t.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout((function(){var n=t.renderedRows.get(e);n&&n.eDiv.focus()}),10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},t.getTemplate=function(e){return'\n <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container" ref="eContainer"></div>\n </div>'},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!==typeof e||e<0||e>=t)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,o=n+this.rowHeight,r=this.getGui(),i=r.scrollTop,s=r.offsetHeight,a=i+s<o;if(i>n)r.scrollTop=n;else if(a){var l=o-s;r.scrollTop=l}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){var e=this;if(null!=this.model&&!this.isDestroyed){var t=this.model.getRowCount();this.eContainer.style.height=t*this.rowHeight+"px",W((function(){return e.eContainer.clientHeight>=t*e.rowHeight}),(function(){e.isDestroyed||(e.clearVirtualRows(),e.drawVirtualRows())}))}},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach((function(t,n){return e.removeRow(n)}))},t.prototype.drawVirtualRows=function(){var e=this.getGui(),t=e.scrollTop,n=t+e.offsetHeight,o=Math.floor(t/this.rowHeight),r=Math.floor(n/this.rowHeight);this.ensureRowsRendered(o,r)},t.prototype.ensureRowsRendered=function(e,t){var n=this;this.renderedRows.forEach((function(o,r){(r<e||r>t)&&r!==n.lastFocusedRowIndex&&n.removeRow(r)}));for(var o=e;o<=t;o++)this.renderedRows.has(o)||o<this.model.getRowCount()&&this.insertRow(o)},t.prototype.insertRow=function(e){var t=this,n=this.model.getRow(e),o=document.createElement("div");if(o.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Wn(o,"tree"===this.ariaRole?"treeitem":"option"),Qn(o,this.model.getRowCount()),Jn(o,e+1),o.setAttribute("tabindex","-1"),"function"===typeof this.model.isRowSelected){var r=this.model.isRowSelected(e);lo(o,!!r),uo(o,r)}o.style.height=this.rowHeight+"px",o.style.top=this.rowHeight*e+"px";var i=this.componentCreator(n,o);i.addGuiEventListener("focusin",(function(){return t.lastFocusedRowIndex=e})),o.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",o):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",o):this.eContainer.appendChild(o),this.renderedRows.set(e,{rowComponent:i,eDiv:o})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isDestroyed||(this.clearVirtualRows(),this.isDestroyed=!0,e.prototype.destroy.call(this))},zd([Y("resizeObserverService")],t.prototype,"resizeObserverService",void 0),zd([Y("focusService")],t.prototype,"focusService",void 0),zd([nr("eContainer")],t.prototype,"eContainer",void 0),zd([U],t.prototype,"postConstruct",null),t}(bd),Kd=["mouseover","mouseout","mouseenter","mouseleave"],qd=["touchstart","touchend","touchmove","touchcancel"],Yd=function(){function e(){this.isOutsideAngular=function(e){return me(Kd,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new Uo((function(n){n(window.setInterval(e,t))}))},e.prototype.addEventListener=function(e,t,n,o){var r=me(qd,t);e.addEventListener(t,n,{capture:!!o,passive:r})},e.prototype.dispatchEvent=function(e,t,n){t()},e.prototype.frameworkComponent=function(e){return null},e.prototype.isFrameworkComponent=function(e){return!1},e}(),Zd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$d=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zd(t,e),t.prototype.getNextCellToFocus=function(e,t,n){return void 0===n&&(n=!1),n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var n,o,r=e===dr.UP,i=e===dr.DOWN,s=e===dr.LEFT;if(r||i)o=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),n=t.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsWrapper.isEnableRtl();o=t.rowIndex,n=s!==l?a[0]:ue(a)}return{rowIndex:o,rowPinned:null,column:n}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){for(var n=t,o=!1;!o;){switch(e){case dr.UP:n=this.getCellAbove(n);break;case dr.DOWN:n=this.getCellBelow(n);break;case dr.RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case dr.LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("AG Grid: unknown key for navigation "+e)}o=!n||this.isCellGoodToFocusOn(n)}return n},t.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case oe.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case oe.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!!t&&!n.isSuppressNavigable(t)},t.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case oe.PINNED_BOTTOM:return null;case oe.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(oe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:oe.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(oe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:oe.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},t.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===oe.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===oe.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},t.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return(n?0===t:t===this.paginationProxy.getPageFirstRow())?n===oe.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(oe.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},t.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:oe.PINNED_TOP}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnModel.getDisplayedColAfter(e.column);if(!r){r=t[0];var s=this.getRowBelow(e);if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnModel.getDisplayedColBefore(e.column);if(!r){r=ue(t);var s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},$d([Y("columnModel")],t.prototype,"columnModel",void 0),$d([Y("rowModel")],t.prototype,"rowModel",void 0),$d([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),$d([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),t=$d([q("cellNavigationService")],t)}(Fe),Qd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},eh=function(e,t){return function(n,o){t(n,o,e)}},th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return Qd(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}}))}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left)}))},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},t.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case Ve.EVENT_COLUMN_MOVED:case Ve.EVENT_COLUMN_VISIBLE:case Ve.EVENT_COLUMN_PINNED:case Ve.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case Ve.EVENT_COLUMN_GROUP_OPENED:var o=e;t.processGroupOpenedEvent(o);break;case Ve.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.")}}))},t.prototype.processGroupOpenedEvent=function(e){var t=e.columnGroup,n=null;if(t){var o=t.getGroupId();n=this.columnModel.getProvidedColumnGroup(o)}t&&!n||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnModel.setColumnGroupOpened(n,t.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t=this,n=e.column,o=null;if(n&&(o=this.columnModel.getPrimaryColumn(n.getColId())),!n||o){var r=this.getMasterColumns(e);switch(e.type){case Ve.EVENT_COLUMN_MOVED:var i=e,s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId}}));this.columnModel.applyColumnState({state:s,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+i.toIndex);break;case Ve.EVENT_COLUMN_VISIBLE:var a=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,hide:e.hide}}));this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible);break;case Ve.EVENT_COLUMN_PINNED:var l=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,pinned:e.pinned}}));this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned);break;case Ve.EVENT_COLUMN_RESIZED:var u=e;r.forEach((function(n){t.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+n.getActualWidth());var o=[{key:n.getColId(),newWidth:n.getActualWidth()}];t.columnModel.setColumnWidths(o,!1,u.finished,"alignedGridChanged")}))}var c=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),p=this.gridOptionsWrapper.getAlignedGrids();p&&p.forEach((function(e){e.api&&e.api.setAlwaysShowVerticalScroll(c)}))}},Jd([Y("columnModel")],t.prototype,"columnModel",void 0),Jd([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Jd([eh(0,X("loggerFactory"))],t.prototype,"setBeans",null),Jd([U],t.prototype,"init",null),t=Jd([q("alignedGridsService")],t)}(Fe),nh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),oh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rh=function(e,t){return function(n,o){t(n,o,e)}},ih=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nh(t,e),t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,Ve.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return f(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},t.prototype.getSelectedRows=function(){var e=[];return f(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},t.prototype.removeGroupsFromSelection=function(){var e=this;f(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new Ep(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var t=this,n={},o=0;return f(this.selectedNodes,(function(r,i){if(i&&i.id!==e.id){var s=t.selectedNodes[i.id];o+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(n[i.parent.id]=i.parent)}})),f(n,(function(e,t){t.calculateSelectedFromChildren()})),o},t.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){if(r(t)&&e.id!==t.id&&t){var n=t.id;this.selectedNodes[n]==e&&(this.selectedNodes[t.id]=t)}},t.prototype.syncInNewRowNode=function(e){r(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var o=0,r=n.length;o<r;o++){var i=n[o];if(i.isSelected())t.push(i);else{var s=i;s.group&&s.children&&e(s.children)}}}(e),t}console.warn("AG Grid: `selectAll` not available doing `rowModel=virtual`")}else console.warn("AG Grid: `getBestCostNodeSelection` is only available when using normal row model")},t.prototype.setRowModel=function(e){this.rowModel=e},t.prototype.isEmpty=function(){var e=0;return f(this.selectedNodes,(function(t,n){n&&e++})),0===e},t.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},n=this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!n)return void console.error("AG Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else f(this.selectedNodes,(function(e,n){n&&t(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:Ve.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==oe.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,n=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(n):t.forEachNode(n),this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:Ve.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},t.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},t.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},t.prototype.selectIndex=function(e,t){var n=this.rowModel.getRow(e);this.selectNode(n,t)},oh([Y("rowModel")],t.prototype,"rowModel",void 0),oh([Y("columnApi")],t.prototype,"columnApi",void 0),oh([Y("gridApi")],t.prototype,"gridApi",void 0),oh([rh(0,X("loggerFactory"))],t.prototype,"setBeans",null),oh([U],t.prototype,"init",null),t=oh([q("selectionService")],t)}(Fe),sh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ah=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){"undefined"===typeof e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnModel.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnModel.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnModel.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnModel.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},e.prototype.moveColumn=function(e,t){"number"===typeof e?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(e,t,"api")):this.columnModel.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n,o){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,n,o)},e.prototype.setColumnWidths=function(e,t,n){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,n)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnModel.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){this.columnModel.autoSizeColumns({columns:e,skipHeader:t})},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(jo.removeAllReferences.bind(window,this,"Column API"),100)},e.prototype.columnGroupOpened=function(e,t){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},e.prototype.setColumnState=function(e){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:e,applyOrder:!0},"api")},e.prototype.getOriginalColumnGroup=function(e){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(e)},sh([Y("columnModel")],e.prototype,"columnModel",void 0),sh([K],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=sh([q("columnApi")],e)}(),lh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),uh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return lh(t,e),t.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(Ve.EVENT_CELL_VALUE_CHANGED,(function(t){return e.callColumnCellValueChangedHandler(t)}),this.gridOptionsWrapper.useAsyncEvents())},t.prototype.getValue=function(e,t,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),this.initialised||this.init(),t){var r,i=e.getColDef(),s=i.field,a=e.getId(),l=t.data,u=t.groupData&&void 0!==t.groupData[a],c=!o&&t.aggData&&void 0!==t.aggData[a];if(n&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&c?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=E(l,s,e.isFieldContainsDots()):u?r=t.groupData[a]:c?r=t.aggData[a]:i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):s&&l&&(r=E(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"===typeof r&&0===r.indexOf("=")){var p=r.substring(1);r=this.executeValueGetter(p,l,e,t)}if(null==r){var d=this.getOpenedGroup(t,e);if(null!=d)return d}return r}},t.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsWrapper.isShowOpenedGroup()&&t.getColDef().showRowGroup)for(var n=t.getColDef().showRowGroup,o=e.parent;null!=o;){if(o.rowGroupColumn&&(!0===n||n===o.rowGroupColumn.getId()))return o.key;o=o.parent}},t.prototype.setValue=function(e,t,n,o){var s=this.columnModel.getPrimaryColumn(t);if(!e||!s)return!1;i(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.newValueHandler,c=a.valueSetter;if(i(l)&&i(u)&&i(c))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var p,d={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:n,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=n,void 0===(p=u&&r(u)?u(d):r(c)?this.expressionService.evaluate(c,d):this.setValueUsingField(e.data,l,n,s.isFieldContainsDots()))&&(p=!0),!p)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(s,e);var h={type:Ve.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:d.column,api:d.api,columnApi:d.columnApi,colDef:d.colDef,context:d.context,data:e.data,node:e,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:o};return this.eventService.dispatchEvent(h),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;"function"===typeof t&&t({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,t,n,o){if(!t)return!1;if(o)for(var r=t.split("."),i=e;r.length>0&&i;){var s=r.shift();0===r.length?i[s]=n:i=i[s]}else e[t]=n;return!0},t.prototype.executeFilterValueGetter=function(e,t,n,o){var r={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)};return this.expressionService.evaluate(e,r)},t.prototype.executeValueGetter=function(e,t,n,o){var r=n.getId(),i=this.valueCache.getValue(o,r);if(void 0!==i)return i;var s={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(o,r,a),a},t.prototype.getValueCallback=function(e,t){var n=this.columnModel.getPrimaryColumn(t);return n?this.getValue(n,e):null},t.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),o=e.getColDef().keyCreator,r=n;o&&(r=o({value:n,colDef:e.getColDef(),column:e,node:t,data:t.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}));return"string"===typeof r||null==r||"[object Object]"===(r=String(r))&&D((function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),r},uh([Y("expressionService")],t.prototype,"expressionService",void 0),uh([Y("columnModel")],t.prototype,"columnModel",void 0),uh([Y("valueCache")],t.prototype,"valueCache",void 0),uh([U],t.prototype,"init",null),t=uh([q("valueService")],t)}(Fe),ph=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hh=function(e,t){return function(n,o){t(n,o,e)}},fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return ph(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("function"===typeof e)return e(t);if("string"===typeof e){var n=e;return this.evaluateExpression(n,t)}console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},dh([hh(0,X("loggerFactory"))],t.prototype,"setBeans",null),t=dh([q("expressionService")],t)}(Fe),gh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return gh(t,e),t.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var o=this.waitingCallbacks[e],r=this;if(!o){o=[],this.waitingCallbacks[e]=o;var i=new XMLHttpRequest;i.onload=function(){r.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&o.push(t),null},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],o=0;o<n.length;o++){(0,n[o])()}}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+t)},t=mh([q("templateService")],t)}(Fe),yh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ch=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wh=function(e,t){return function(n,o){t(n,o,e)}},_h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yh(t,e),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new bh(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Ch([wh(0,X("gridOptionsWrapper"))],t.prototype,"setBeans",null),t=Ch([q("loggerFactory")],t)}(Fe),bh=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+e)},e}(),Eh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rh=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Eh(n,e),n.prototype.setComp=function(e,t,n){var o=this;this.view=e,this.eGridHostDiv=t,this.eGui=n,this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new wa(this.view)),this.addRtlSupport(),this.addManagedListener(this,Ve.EVENT_KEYBOARD_FOCUS,(function(){o.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,Ve.EVENT_MOUSE_FOCUS,(function(){o.view.addOrRemoveKeyboardFocusClass(!1)}));var r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()})),this.ctrlsService.registerGridCtrl(this)},n.prototype.isDetailGrid=function(){var e,t;return(null===(t=null===(e=this.focusService.findTabbableParent(this.getGui()))||void 0===e?void 0:e.getAttribute("row-id"))||void 0===t?void 0:t.startsWith("detail"))||!1},n.prototype.showDropZones=function(){return re.isRegistered(t.ModuleNames.RowGroupingModule)},n.prototype.showSideBar=function(){return re.isRegistered(t.ModuleNames.SideBarModule)},n.prototype.showStatusBar=function(){return re.isRegistered(t.ModuleNames.StatusBarModule)},n.prototype.showWatermark=function(){return re.isRegistered(t.ModuleNames.EnterpriseCoreModule)},n.prototype.onGridSizeChanged=function(){var e={type:Ve.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},n.prototype.destroyGridUi=function(){this.view.destroyGridUi()},n.prototype.getGui=function(){return this.eGui},n.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},n.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},n.prototype.focusNextInnerContainer=function(e){var t=this.gridOptionsWrapper.getDocument(),n=this.view.getFocusableContainers(),o=n.findIndex((function(e){return e.contains(t.activeElement)}))+(e?-1:1);return!(o<=0||o>=n.length)&&this.focusService.focusInto(n[o])},n.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers();if(e){if(t.length>1)return this.focusService.focusInto(ue(t),!0);var n=ue(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(n,!0))return!0}return this.focusService.focusFirstHeader()},n.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Sh([Y("columnApi")],n.prototype,"columnApi",void 0),Sh([Y("gridApi")],n.prototype,"gridApi",void 0),Sh([Y("focusService")],n.prototype,"focusService",void 0),Sh([Y("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Sh([Y("columnModel")],n.prototype,"columnModel",void 0),Sh([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),Sh([Y("mouseEventService")],n.prototype,"mouseEventService",void 0),n}(Fe),Oh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ph=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Th=function(e){function n(t){var n=e.call(this,void 0)||this;return n.eGridDiv=t,n}return Oh(n,e),n.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var t={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(t){return e.addCssClass(t)},addOrRemoveKeyboardFocusClass:function(t){return e.addOrRemoveCssClass(kd.AG_KEYBOARD_FOCUS,t)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(t){e.getGui().style.userSelect=null!=t?t:"",e.getGui().style.webkitUserSelect=null!=t?t:""},setCursor:function(t){e.getGui().style.cursor=null!=t?t:""}};this.ctrl=this.createManagedBean(new Rh);var n=this.createTemplate();this.setTemplate(n),this.ctrl.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(t){return e.ctrl.focusInnerElement(t)}})},n.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc((function(){e.eGridDiv.removeChild(t),e.logger.log("Grid removed from DOM")}))},n.prototype.updateLayoutClasses=function(e,n){var o=this.eRootWrapperBody.classList;o.toggle(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),o.toggle(t.LayoutCssClasses.NORMAL,n.normal),o.toggle(t.LayoutCssClasses.PRINT,n.print),this.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),this.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,n.normal),this.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,n.print)},n.prototype.createTemplate=function(){return'<div class="ag-root-wrapper">\n '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-body ref="gridBody"></ag-grid-body>\n '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n </div>\n "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n <ag-pagination></ag-pagination>\n "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n </div>"},n.prototype.getFocusableElement=function(){return this.eRootWrapperBody},n.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((function(e){return fn(e)}))},Ph([Y("loggerFactory")],n.prototype,"loggerFactory",void 0),Ph([nr("gridBody")],n.prototype,"gridBodyComp",void 0),Ph([nr("sideBar")],n.prototype,"sideBarComp",void 0),Ph([nr("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),Ph([U],n.prototype,"postConstruct",null),n}(bd),Ah=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Ah(t,e),n=t,t.prototype.progressSort=function(e,t,n){var o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t,n)},t.prototype.setSortForColumn=function(e,t,n,o){t!==oe.SORT_ASC&&t!==oe.SORT_DESC&&(t=null),e.setSort(t,o),(n||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,o),this.updateSortIndex(e),this.dispatchSortChangedEvents(o)},t.prototype.updateSortIndex=function(e){var t=this.getColumnsWithSortingOrdered(),n=0;t.forEach((function(t){t!==e&&(t.setSortIndex(n),n++)})),e.getSort()&&e.setSortIndex(n),this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return null==e.getSort()})).forEach((function(e){return e.setSortIndex()}))},t.prototype.onSortChanged=function(e){this.dispatchSortChangedEvents(e)},t.prototype.isSortActive=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e&&e.length>0},t.prototype.dispatchSortChangedEvents=function(e){var t={type:Ve.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},t.prototype.clearSortBarThisColumn=function(e,t){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){n!==e&&n.setSort(void 0,t)}))},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():n.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var o,r=t.indexOf(e.getSort()),i=r<0,s=r==t.length-1;return o=i||s?t[0]:t[r+1],n.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn("AG Grid: invalid sort type "+o),null):o},t.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),t=e.filter((function(e){return!!e.getSort()})),n={};return e.forEach((function(e,t){return n[e.getId()]=t})),t.sort((function(e,t){var o=e.getSortIndex(),r=t.getSortIndex();return null!=o&&null!=r?o-r:null==o&&null==r?n[e.getId()]>n[t.getId()]?1:-1:null==r?-1:1})),t},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),colId:e.getId()}}))},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),column:e}}))},t.DEFAULT_SORTING_ORDER=[oe.SORT_ASC,oe.SORT_DESC,null],Dh([Y("columnModel")],t.prototype,"columnModel",void 0),Dh([Y("columnApi")],t.prototype,"columnApi",void 0),Dh([Y("gridApi")],t.prototype,"gridApi",void 0),t=n=Dh([q("sortController")],t)}(Fe),Nh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ih=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nh(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:Ve.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:Ve.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},Lh([Y("columnApi")],t.prototype,"columnApi",void 0),Lh([Y("gridApi")],t.prototype,"gridApi",void 0),t=Lh([q("columnHoverService")],t)}(Fe),Mh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return Mh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){return e.gridBodyCtrl=t.gridBodyCtrl}))},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridBodyCtrl.setColumnMovingCss(!1)}))},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},Fh([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Fh([U],t.prototype,"postConstruct",null),t=Fh([q("columnAnimationService")],t)}(Fe),Gh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Gh(t,e),n=t,t.prototype.createAutoGroupColumns=function(e,t){var n=this,o=[],r=this.gridOptionsWrapper.isTreeData(),i=this.gridOptionsWrapper.isGroupMultiAutoColumn();return r&&i&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),i=!1),i?t.forEach((function(t,r){o.push(n.createOneAutoGroupColumn(e,t,r))})):o.push(this.createOneAutoGroupColumn(e)),o},t.prototype.createOneAutoGroupColumn=function(e,t,o){var r,s=this.generateDefaultColDef(t);(r=t?oe.GROUP_AUTO_COLUMN_ID+"-"+t.getId():n.GROUP_AUTO_COLUMN_BUNDLE_ID,b(s,this.gridOptionsWrapper.getAutoGroupColumnDef()),(s=this.columnFactory.mergeColDefs(s)).colId=r,this.gridOptionsWrapper.isTreeData())||i(s.field)&&i(s.valueGetter)&&i(s.filterValueGetter)&&(s.filter=!1);o&&o>0&&(s.headerCheckboxSelection=!1);var a=e.find((function(e){return e.getId()==r}));if(a)return a.setColDef(s,null),this.columnFactory.applyColumnState(a,s),a;var l=new ae(s,null,r,!0);return this.context.createBean(l),l},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),e){var o=e.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),(o.cellRenderer||o.cellRendererFramework)&&Object.assign(n,{cellRendererParams:{innerRenderer:o.cellRenderer,innerRendererFramework:o.cellRendererFramework,innerRendererParams:o.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},t.GROUP_AUTO_COLUMN_BUNDLE_ID=oe.GROUP_AUTO_COLUMN_ID,Hh([Y("columnModel")],t.prototype,"columnModel",void 0),Hh([Y("columnFactory")],t.prototype,"columnFactory",void 0),t=n=Hh([q("autoGroupColService")],t)}(Fe),Vh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,Ve.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,e.onScrollVisibilityChanged.bind(e)),e.checkPageSize()}))},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},jh([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),jh([U],t.prototype,"postConstruct",null),t=jh([q("paginationAutoPageSizeService")],t)}(Fe),zh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Uh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return zh(t,e),t.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},Uh([U],t.prototype,"init",null),t=Uh([q("valueCache")],t)}(Fe),qh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qh(t,e),t.prototype.init=function(){this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Ve.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==oe.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),o=new Ep(n,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o)}this.rowRenderer.refreshCells()}},Yh([Y("rowModel")],t.prototype,"rowModel",void 0),Yh([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),Yh([U],t.prototype,"init",null),t=Yh([q("changeDetectionService")],t)}(Fe),$h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $h(t,e),t.prototype.adaptFunction=function(e,t){var n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?n.functionAdapter(t):null},t.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){return this.eGui},t.prototype.init=function(t){var n=e(t),o=typeof n;this.eGui="string"!==o&&"number"!==o&&"boolean"!==o?null!=n?n:gn("<span></span>"):gn("<span>"+n+"</span>")},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},Xh([Y("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=Xh([q("agComponentUtils")],t)}(Fe),Jh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ef=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jh(t,e),t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},ef([Y("agComponentUtils")],t.prototype,"agComponentUtils",void 0),ef([U],t.prototype,"postConstruct",null),t=ef([q("componentMetadataProvider")],t)}(Fe),nf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),of=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rf={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},sf={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},af={},lf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nf(t,e),t.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),o=rf[n][t],r=0;af[e]||(af[e]={});var i=af[e][t];if(null!=i)return i;if(sf[t]){var s=sf[t],a=document.createElement("div");a.classList.add(e),a.style.position="absolute";var l=s.reduce((function(e,t){var n=document.createElement("div");return n.style.position="static",n.classList.add(t),e.appendChild(n),n}),a);if(document.body){document.body.appendChild(a);var u=-1!==t.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(l)[u],10),document.body.removeChild(a)}}return af[e][t]=r||o,af[e][t]},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},t.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/,t=this.eGridDiv,n=null;t&&!(n=e.exec(t.className));)t=t.parentElement||void 0;if(!n)return{};var o=n[0];if(void 0===n[2]){var r=o.replace("ag-","ag-theme-");D((function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+o+" with "+r+".")}),"using-old-theme")}return{theme:o,el:t,themeFamily:o.replace(/-dark$/,"")}},of([Y("eGridDiv")],t.prototype,"eGridDiv",void 0),t=of([q("environment")],t)}(Fe),uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pf=function(e,t){return function(n,o){t(n,o,e)}},df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return uf(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=zt(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+t+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(t)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:Ve.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var t="number"===typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:Ve.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},cf([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),cf([pf(0,X("loggerFactory"))],t.prototype,"agWire",null),cf([U],t.prototype,"postConstruct",null),t=cf([q("rowContainerHeightService")],t)}(Fe),hf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ff=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hf(t,e),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},t.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},t.prototype.recurseDown=function(e,t){var n=this;e&&e.forEach((function(e){if(e.group){var o;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren)o=r((t(e)||[]).find((function(e){return!0===e.selectable})));else o=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(o)}}))},ff([U],t.prototype,"init",null),t=ff([q("selectableService")],t)}(Fe),mf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yf=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return mf(t,e),t.prototype.postConstruct=function(){var e=this,t=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Ao(t?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",Ao(t?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",Ao(t?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",Ao(t?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,Ve.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(t){var n=t.el,o=t.fn;e.addManagedListener(n,"click",o),e.addManagedListener(n,"keydown",(function(e){e.key!==dr.ENTER&&e.key!==dr.SPACE||(e.preventDefault(),o())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(t)return t({value:e});var n=this.gridOptionsWrapper.getLocaleTextFunc();return go(e,n("thousandSeparator",","),n("decimalSeparator","."))},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),o=e("of","of"),r=e("firstPage","First Page"),i=e("previousPage","Previous Page"),s=e("nextPage","Next Page"),a=e("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-to">'+n+'</span>\n <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-of">'+o+'</span>\n <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+r+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+i+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+l+'-start-page">'+t+'</span>\n <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+l+'-of-page">'+o+'</span>\n <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n </span>\n </div>'},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(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var o=this.isZeroPagesToDisplay(),r=t&&e===n-1;this.nextButtonDisabled=r||o,this.lastButtonDisabled=!t||o||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,t){Zn(e,t),e.classList.toggle("ag-disabled",t),t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),o=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?e=t=0:(t=(e=o*n+1)+o-1,r&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=e?this.paginationProxy.getMasterRowCount():null;if(1===n){var o=this.paginationProxy.getRow(0);if(o&&o.group&&!(o.groupData||o.aggData))return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var r=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=r,this.lbRecordCount.innerHTML=r}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},vf([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),vf([Y("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),vf([nr("btFirst")],t.prototype,"btFirst",void 0),vf([nr("btPrevious")],t.prototype,"btPrevious",void 0),vf([nr("btNext")],t.prototype,"btNext",void 0),vf([nr("btLast")],t.prototype,"btLast",void 0),vf([nr("lbRecordCount")],t.prototype,"lbRecordCount",void 0),vf([nr("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),vf([nr("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),vf([nr("lbCurrent")],t.prototype,"lbCurrent",void 0),vf([nr("lbTotal")],t.prototype,"lbTotal",void 0),vf([U],t.prototype,"postConstruct",null),t}(tr),Cf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(Wd||(Wd={}));var _f=function(e){function n(){var t=e.call(this,n.TEMPLATE)||this;return t.inProgress=!1,t.destroyRequested=!1,t.manuallyDisplayed=!1,t}return Cf(n,e),n.prototype.updateLayoutClasses=function(e,n){var o=this.eOverlayWrapper.classList;o.toggle(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),o.toggle(t.LayoutCssClasses.NORMAL,n.normal),o.toggle(t.LayoutCssClasses.PRINT,n.print)},n.prototype.postConstruct=function(){this.createManagedBean(new wa(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,Ve.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},n.prototype.setWrapperTypeClass=function(e){var t=this.eOverlayWrapper.classList;t.toggle("ag-overlay-loading-wrapper",e===Wd.Loading),t.toggle("ag-overlay-no-rows-wrapper",e===Wd.NoRows)},n.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var e=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,Wd.Loading)}},n.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var e=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,Wd.NoRows)}},n.prototype.showOverlay=function(e,t){var n=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then((function(e){n.inProgress=!1,n.eOverlayWrapper.appendChild(e.getGui()),n.activeOverlay=e,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},n.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),dn(this.eOverlayWrapper))},n.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},n.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();e&&!t?this.showNoRowsOverlay():this.hideOverlay()},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},n.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',wf([Y("userComponentFactory")],n.prototype,"userComponentFactory",void 0),wf([Y("paginationProxy")],n.prototype,"paginationProxy",void 0),wf([Y("gridApi")],n.prototype,"gridApi",void 0),wf([Y("columnModel")],n.prototype,"columnModel",void 0),wf([nr("eOverlayWrapper")],n.prototype,"eOverlayWrapper",void 0),wf([U],n.prototype,"postConstruct",null),n}(tr),bf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ef=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bf(t,e),t.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e=oe.PINNED_TOP:this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e=oe.PINNED_BOTTOM),void 0===e?null:{rowIndex:t,rowPinned:e}},t.prototype.getLastRow=function(){var e,t=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),o=this.pinnedRowModel.getPinnedTopRowCount();return n?(t=oe.PINNED_BOTTOM,e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):o&&(t=oe.PINNED_TOP,e=o-1),void 0===e?null:{rowIndex:e,rowPinned:t}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},t.prototype.before=function(e,t){switch(e.rowPinned){case oe.PINNED_TOP:if(t.rowPinned!==oe.PINNED_TOP)return!0;break;case oe.PINNED_BOTTOM:if(t.rowPinned!==oe.PINNED_BOTTOM)return!1;break;default:if(r(t.rowPinned))return t.rowPinned!==oe.PINNED_TOP}return e.rowIndex<t.rowIndex},Ef([Y("rowModel")],t.prototype,"rowModel",void 0),Ef([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ef([Y("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Ef([q("rowPositionUtils")],t)}(Fe),Rf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Of=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rf(t,e),t.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,o=e.column;return this.createIdFromValues(t,o,n)},t.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},t.prototype.equals=function(e,t){var n=e.column===t.column,o=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return n&&o&&r},t=Of([q("cellPositionUtils")],t)}(Fe),Tf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Af=function(e){this.cellValueChanges=e},Df=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.initialRange=n,r.finalRange=o,r}return Tf(t,e),t}(Af),xf=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),Nf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},If=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.activeCellEdit=null,t.activeRowEdit=null,t.isPasting=!1,t.isFilling=!1,t.onCellValueChanged=function(e){var n={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},o=null!==t.activeCellEdit&&t.cellPositionUtils.equals(t.activeCellEdit,n),r=null!==t.activeRowEdit&&t.rowPositionUtils.sameRow(t.activeRowEdit,n);if(o||r||t.isPasting||t.isFilling){var i=e.rowPinned,s=e.rowIndex,a=e.column,l=e.oldValue,u=e.value,c={rowPinned:i,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};t.cellValueChanges.push(c)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return Nf(n,e),n.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new xf(e),this.redoStack=new xf(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,Ve.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_ROW_DRAG_END,this.clearStacks))}},n.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},n.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},n.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof Df?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},n.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof Df?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},n.prototype.processAction=function(e,t){var n=this;e.cellValueChanges.forEach((function(e){var o=e.rowIndex,r=e.rowPinned,i=e.columnId,s={rowIndex:o,rowPinned:r},a=n.getRowNode(s);a.displayed&&a.setDataValue(i,t(e))}))},n.prototype.processRangeAndCellFocus=function(e,t){var n;if(t){var o=t.startRow,r=t.endRow;n={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:t.startColumn.getColId()},this.setLastFocusedCell(n);var i={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:t.startColumn,columns:t.columns};this.gridApi.addCellRange(i)}else{var s=e[0],a={rowIndex:s.rowIndex,rowPinned:s.rowPinned},l=this.getRowNode(a);n={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId},this.setLastFocusedCell(n)}},n.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,o=e.columnId,r=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(o),re.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusService.setFocusedCell(n,o,r,!0)},n.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_ROW_EDITING_STARTED,(function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,Ve.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Af(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null}))},n.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_CELL_EDITING_STARTED,(function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,Ve.EVENT_CELL_EDITING_STOPPED,(function(){if(e.activeCellEdit=null,!e.activeRowEdit&&!e.isPasting&&!e.isFilling){var t=new Af(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))},n.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.addManagedListener(this.eventService,Ve.EVENT_PASTE_END,(function(){var t=new Af(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},n.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_FILL_START,(function(){e.isFilling=!0})),this.addManagedListener(this.eventService,Ve.EVENT_FILL_END,(function(t){var n=new Df(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1}))},n.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},n.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Lf([Y("focusService")],n.prototype,"focusService",void 0),Lf([Y("gridApi")],n.prototype,"gridApi",void 0),Lf([Y("rowModel")],n.prototype,"rowModel",void 0),Lf([Y("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Lf([Y("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),Lf([Y("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),Lf([U],n.prototype,"init",null),n=Lf([q("undoRedoService")],n)}(Fe),Mf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ff=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},kf=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Mf(n,e),n.prototype.findHeader=function(e,t){var n,o,r;if(e.column instanceof we?(o="getDisplayedGroup"+t,n=this.columnModel[o](e.column)):(r="getDisplayedCol"+t,n=this.columnModel[r](e.column)),n)return{column:n,headerRowIndex:e.headerRowIndex}},n.prototype.findColAtEdgeForHeaderRow=function(e,n){var o=this.columnModel.getAllDisplayedColumns(),r=o["start"===n?0:o.length-1];if(r){var i=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()).getRowType(e);return i==t.HeaderRowType.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(r,e)}:{headerRowIndex:null==i?-1:e,column:r}}},Ff([Y("columnModel")],n.prototype,"columnModel",void 0),Ff([Y("ctrlsService")],n.prototype,"ctrlsService",void 0),n=Ff([q("headerPositionUtils")],n)}(Fe),Gf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Hf=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,n){var o=this,r=[],i={};return e.forEach((function(e){for(var s=!0,a=o.createDefFromColumn(e,t,n),l=e.getOriginalParent();l;){var u=null;if(l.isPadding())l=l.getOriginalParent();else{var c=i[l.getGroupId()];if(c){c.children.push(a),s=!1;break}(u=o.createDefFromGroup(l))&&(u.children=[a],i[u.groupId]=u,a=u,l=l.getOriginalParent())}}s&&r.push(a)})),r},e.prototype.createDefFromGroup=function(e){var t=m(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,n){var o=m(e.getColDef());return o.colId=e.getColId(),o.width=e.getActualWidth(),o.rowGroup=e.isRowGroupActive(),o.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,o.pivot=e.isPivotActive(),o.pivotIndex=e.isPivotActive()?n.indexOf(e):null,o.aggFunc=e.isValueActive()?e.getAggFunc():null,o.hide=!e.isVisible()||void 0,o.pinned=e.isPinned()?e.getPinned():null,o.sort=e.getSort()?e.getSort():null,o.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,o},e=Gf([q("columnDefFactory")],e)}(),Wf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vf=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var t=[];return r(e.extraCssClass)&&t.push(e.extraCssClass),t.push("ag-row"),t.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&t.push("ag-opacity-zero"),t.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&t.push("ag-row-pinned"),e.rowNode.isSelected()&&t.push("ag-row-selected"),e.rowNode.footer&&t.push("ag-row-footer"),t.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&t.push("ag-row-loading"),e.fullWidthRow&&t.push("ag-full-width-row"),e.expandable&&(t.push("ag-row-group"),t.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&t.push("ag-row-dragging"),ve(t,this.processClassesFromGridOptions(e.rowNode)),ve(t,this.preProcessRowClassRules(e.rowNode)),t.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&t.push("ag-row-first"),e.lastRowOnPage&&t.push("ag-row-last"),e.fullWidthRow&&(e.pinned===oe.PINNED_LEFT&&t.push("ag-cell-last-left-pinned"),e.pinned===oe.PINNED_RIGHT&&t.push("ag-cell-first-right-pinned")),t},e.prototype.processClassesFromGridOptions=function(e){var t=[],n=function(e){"string"===typeof e?t.push(e):Array.isArray(e)&&e.forEach((function(e){return t.push(e)}))},o=this.gridOptionsWrapper.getRowClass();if(o){if("function"===typeof o)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];n(o)}var r=this.gridOptionsWrapper.getRowClassFunc();r&&n(r({data:e.data,node:e,rowIndex:e.rowIndex}));return t},e.prototype.preProcessRowClassRules=function(e){var t=[];return this.processRowClassRules(e,(function(e){t.push(e)}),(function(e){})),t},e.prototype.processRowClassRules=function(e,t,n){var o={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),o,t,n)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},Wf([Y("stylingService")],e.prototype,"stylingService",void 0),Wf([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Wf([q("rowCssClassCalculator")],e)}(),jf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bf=function(){function e(){}return e.prototype.doFullSort=function(e,t){var n=e.map((function(e,t){return{currentPos:t,rowNode:e}}));return n.sort(this.compareRowNodes.bind(this,t)),n.map((function(e){return e.rowNode}))},e.prototype.compareRowNodes=function(e,t,n){for(var o=t.rowNode,r=n.rowNode,i=0,s=e.length;i<s;i++){var a=e[i],l=a.sort===oe.SORT_DESC,u=this.getValue(o,a.column),c=this.getValue(r,a.column),p=void 0,d=this.getComparator(a,o);if(p=d?d(u,c,o,r,l):jo.defaultComparator(u,c,this.gridOptionsWrapper.isAccentedSort()),!isNaN(p)&&0!==p)return a.sort===oe.SORT_ASC?p:-1*p}return t.currentPos-n.currentPos},e.prototype.getComparator=function(e,t){var n=e.column,o=n.getColDef().comparator;if(null!=o)return o;if(t.rowGroupColumn)return t.rowGroupColumn.getColDef().comparator;if(n.getColDef().showRowGroup){var r=!t.group&&n.getColDef().field;if(r){var i=this.columnModel.getPrimaryColumn(r);if(i)return i.getColDef().comparator}}},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e,!1,!1)},jf([Y("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),jf([Y("valueService")],e.prototype,"valueService",void 0),jf([Y("columnModel")],e.prototype,"columnModel",void 0),e=jf([q("rowNodeSorter")],e)}(),zf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Uf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}var n;return zf(t,e),n=t,t.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollCtrl&&null!=this.gridHeaderCtrl,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach((function(t){return t(e)})),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},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,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollCtrl=function(e){this.fakeHScrollCtrl=e,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(e){this.gridHeaderCtrl=e,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(e){this.centerRowContainerCtrl=e,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(e){this.leftRowContainerCtrl=e,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(e){this.rightRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(e){this.topCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(e){this.topRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(e){this.bottomRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerHeaderContainer=function(e,t){switch(t){case oe.PINNED_LEFT:this.leftHeaderRowContainerCtrl=e;break;case oe.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=e}this.checkReady()},t.prototype.registerGridBodyCtrl=function(e){this.gridBodyCtrl=e,this.checkReady()},t.prototype.registerGridCtrl=function(e){this.gridCtrl=e,this.checkReady()},t.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},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.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(e){switch(e){case oe.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case oe.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME="ctrlsService",t=n=Uf([q(n.NAME)],t)}(Fe),qf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return qf(t,e),t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var t=this.registry[e];if(null!=t)return new t},t=Yf([q("ctrlsFactory")],t)}(Fe),$f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qf=function(e){function t(){return e.call(this)||this}return $f(t,e),t.prototype.setComp=function(e,t,n,o){this.view=e,this.eViewport=n,this.eContainer=o,this.eGui=t,this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged();var r=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,r),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,r),this.setFakeHScrollSpacerWidths(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()),this.ctrlsService.registerFakeHScrollCtrl(this)},t.prototype.addActiveListenerToggles=function(){var e=this;["mouseenter","mousedown","touchstart"].forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","mouseup","touchend"].forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},t.prototype.postConstruct=function(){this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=qt()},t.prototype.onScrollVisibilityChanged=function(){this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL,(function(t){"horizontal"===t.direction&&e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)})),this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL_END,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)}))},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&e,o=this.gridOptionsWrapper.getScrollbarWidth();n&&(t+=o),this.view.setRightSpacerFixedWidth(t),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",t<=o);var r=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(r+=o),this.view.setLeftSpacerFixedWidth(r),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",r<=o)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,n=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,r=n?0:0===o&&t?15:o;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",t),this.view.setHeight(r),this.view.setViewportHeight(r),this.view.setContainerHeight(r)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},Xf([Y("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Xf([Y("columnModel")],t.prototype,"columnModel",void 0),Xf([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),Xf([U],t.prototype,"postConstruct",null),t}(Fe),Jf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),eg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tg=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Jf(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeight:function(t){return On(e.getGui(),t)},setContainerHeight:function(t){return On(e.eContainer,t)},setViewportHeight:function(t){return On(e.eViewport,t)},setRightSpacerFixedWidth:function(t){return Rn(e.eRightSpacer,t)},setLeftSpacerFixedWidth:function(t){return Rn(e.eLeftSpacer,t)},includeLeftSpacerScrollerCss:function(t,n){return e.eLeftSpacer.classList.toggle(t,n)},includeRightSpacerScrollerCss:function(t,n){return e.eRightSpacer.classList.toggle(t,n)}};this.createManagedBean(new Qf).setComp(t,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new Fl((function(t){return e.eContainer.style.width=t+"px"})))},t.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n </div>',eg([nr("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),eg([nr("eRightSpacer")],t.prototype,"eRightSpacer",void 0),eg([nr("eViewport")],t.prototype,"eViewport",void 0),eg([nr("eContainer")],t.prototype,"eContainer",void 0),eg([U],t.prototype,"postConstruct",null),t}(tr),ng=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),og=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ng(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},og([Y("columnModel")],t.prototype,"columnModel",void 0),og([U],t.prototype,"postConstruct",null),t=og([q("pinnedWidthService")],t)}(Fe),ig=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ag=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return ig(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()==oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;if(null!=this.clientSideRowModel){this.events.push(e);null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){t.clientSideRowModel&&t.clientSideRowModel.onRowGroupOpened(),t.events.forEach((function(e){return t.eventService.dispatchEvent(e)})),t.events=[]}))),this.dispatchExpandedDebounced()}else this.eventService.dispatchEvent(e)},sg([Y("animationFrameService")],t.prototype,"animationFrameService",void 0),sg([Y("rowModel")],t.prototype,"rowModel",void 0),sg([U],t.prototype,"postConstruct",null),t=sg([q("rowNodeEventThrottle")],t)}(Fe),lg=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},ug=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(lg(arguments[t]));return e},cg=function(){function e(e,t,n){t?(this.gridOptions=t,(new pg).create(e,t,(function(t){var n=new Th(e);t.createBean(n)}),void 0,n)):console.error("AG Grid: no gridOptions provided to the grid")}return e.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},e}(),pg=function(){function e(){}return e.prototype.create=function(e,n,o,r,i){var s=this,a=!!n.debug,l=this.getRegisteredModules(i),u=this.createBeansList(n.rowModelType,l),c=this.createProvidedBeans(e,n,i);if(u){var p={providedBeanInstances:c,beanClasses:u,debug:a},d=new bh("AG Grid",(function(){return n.debug})),h=new bh("Context",(function(){return p.debug})),f=new B(p,h),g=f.getBean("beans");this.registerModuleUserComponents(g,l),this.registerStackComponents(g,l),this.registerControllers(g,l),o(f),g.ctrlsService.whenReady((function(){s.setColumnsAndData(g),s.dispatchGridReadyEvent(g,n);var e=re.isRegistered(t.ModuleNames.EnterpriseCoreModule);d.log("initialised successfully, enterprise = "+e)})),r&&r(f)}},e.prototype.registerControllers=function(e,t){t.forEach((function(t){t.controllers&&t.controllers.forEach((function(t){return e.ctrlsFactory.register(t)}))}))},e.prototype.registerStackComponents=function(e,t){var n=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(n)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=re.getRegisteredModules(),o=[],r={};function i(e,t){var n;r[(n=t).moduleName]||(r[n.moduleName]=!0,o.push(n),re.register(n,e)),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),n&&n.forEach(i.bind(null,!re.isPackageBased())),o},e.prototype.registerModuleUserComponents=function(e,t){this.extractModuleEntity(t,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(t){e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)}))},e.prototype.createProvidedBeans=function(e,t,n){var o=n?n.frameworkOverrides:null;i(o)&&(o=new Yd);var r={gridOptions:t,eGridDiv:e,globalEventListener:n?n.globalEventListener:null,frameworkOverrides:o};return n&&n.providedBeanInstances&&Object.assign(r,n.providedBeanInstances),r},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:ic},{componentName:"AgRadioButton",componentClass:kp},{componentName:"AgToggleButton",componentClass:Hp},{componentName:"AgInputTextField",componentClass:Vp},{componentName:"AgInputTextArea",componentClass:Bp},{componentName:"AgInputNumberField",componentClass:Up},{componentName:"AgInputRange",componentClass:qp},{componentName:"AgSelect",componentClass:Lr},{componentName:"AgSlider",componentClass:$p},{componentName:"AgAngleSelect",componentClass:Jp},{componentName:"AgColorPicker",componentClass:dd},{componentName:"AgGridBody",componentClass:Zl},{componentName:"AgHeaderRoot",componentClass:Vc},{componentName:"AgPagination",componentClass:yf},{componentName:"AgOverlayWrapper",componentClass:_f},{componentName:"AgGroupComponent",componentClass:gd},{componentName:"AgPanel",componentClass:sd},{componentName:"AgDialog",componentClass:cd},{componentName:"AgRowContainer",componentClass:vu},{componentName:"AgFakeHorizontalScroll",componentClass:tg}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(n)},e.prototype.createBeansList=function(e,t){var n=this.getRowModelClass(e,t);if(n){var o=[n,Za,Sf,Pf,kf,Bh,Uu,Os,Qh,tf,ep,qs,df,zc,_p,$s,pt,ne,ma,jd,ih,ea,it,Mc,Np,fp,fh,We,vh,th,iu,Kh,ch,_h,lt,up,qc,ts,ah,kd,tu,lf,Xd,yp,Mp,Ql,xh,Ih,kh,gf,Wh,Zh,op,If,_t,Hf,Vf,Ap,Bf,Kf,rg,ag,Zf],r=this.extractModuleEntity(t,(function(e){return e.beans?e.beans:[]}));o.push.apply(o,ug(r));var i=[];return o.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],ug(e.map(t)))},e.prototype.setColumnsAndData=function(e){var t=e.gridOptionsWrapper.getColumnDefs();e.columnModel.setColumnDefs(t||[],"gridInitializing"),e.rowModel.start()},e.prototype.dispatchGridReadyEvent=function(e,t){var n={type:Ve.EVENT_GRID_READY,api:t.api,columnApi:t.columnApi};e.eventService.dispatchEvent(n)},e.prototype.getRowModelClass=function(e,n){e||(e=oe.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};n.forEach((function(e){f(e.rowModels,(function(e,t){o[e]=t}))}));var i=o[e];if(r(i))return i;re.isPackageBased()?[oe.ROW_MODEL_TYPE_VIEWPORT,oe.ROW_MODEL_TYPE_SERVER_SIDE].includes(e)?console.error('AG Grid: Row Model "'+e+"\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/"):console.error("AG Grid: could not find row model for rowModelType "+e):e===oe.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+t.ModuleNames.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+t.ModuleNames.ClientSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):console.error("AG Grid: could not find row model for rowModelType "+e)},e}();var dg,hg=function(){function e(){}return e.prototype.wrap=function(e,t,n,o){var r=this;void 0===n&&(n=[]);var i=this.createWrapper(e,o);return t.forEach((function(e){r.createMethod(i,e,!0)})),n.forEach((function(e){r.createMethod(i,e,!1)})),i},e.prototype.unwrap=function(e){return e},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},e}();(dg=t.BarColumnLabelPlacement||(t.BarColumnLabelPlacement={})).InsideBase="insideBase",dg.InsideEnd="insideEnd",dg.Center="center",dg.OutsideEnd="outsideEnd";var fg="undefined"===typeof n.g?{}:n.g;fg.HTMLElement="undefined"===typeof HTMLElement?{}:HTMLElement,fg.HTMLButtonElement="undefined"===typeof HTMLButtonElement?{}:HTMLButtonElement,fg.HTMLSelectElement="undefined"===typeof HTMLSelectElement?{}:HTMLSelectElement,fg.HTMLInputElement="undefined"===typeof HTMLInputElement?{}:HTMLInputElement,fg.Node="undefined"===typeof Node?{}:Node,fg.MouseEvent="undefined"===typeof MouseEvent?{}:MouseEvent;var gg,mg=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},vg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mg(arguments[t]));return e},yg=function(){function e(t,n,o,r,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.eventService=o,this.columnModel=r,this.gridApi=i,this.columnApi=s,this.beans=l,this.selectionService=a,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return jo.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){var n=this;if("string"!==typeof t){var o=this.rootNode,r=this.rootNode.sibling;o.childrenAfterFilter=null,o.childrenAfterGroup=null,o.childrenAfterAggFilter=null,o.childrenAfterSort=null,o.childrenMapped=null,o.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?o.allLeafChildren=t.map((function(t){return n.createNode(t,n.rootNode,e.TOP_LEVEL)})):(o.allLeafChildren=[],o.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=o.childrenAfterFilter,r.childrenAfterGroup=o.childrenAfterGroup,r.childrenAfterAggFilter=o.childrenAfterAggFilter,r.childrenAfterSort=o.childrenAfterSort,r.childrenMapped=o.childrenMapped,r.allLeafChildren=o.allLeafChildren)}else console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.updateRowData=function(e,t){var n={remove:[],update:[],add:[]},o=[];return this.executeRemove(e,n,o),this.executeUpdate(e,n,o),this.executeAdd(e,n),this.updateSelection(o),t&&jo.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.updateSelection=function(e){var t=e.length>0;if(t&&e.forEach((function(e){e.setSelected(!1,!1,!0)})),this.selectionService.updateGroupsFromChildrenSelections(),t){var n={type:Ve.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.executeAdd=function(t,n){var o=this,r=t.add,i=t.addIndex;if(!jo.missingOrEmpty(r)){var s,a,l=r.map((function(t){return o.createNode(t,o.rootNode,e.TOP_LEVEL)}));if("number"===typeof i&&i>=0){var u=this.rootNode.allLeafChildren,c=0===i?0:u.reduce((function(e,t,n){var o,r=t.rowIndex,s=null===(o=u[e])||void 0===o?void 0:o.rowIndex;return null!=r&&null!=s&&r<i&&r>s?n:e}),0)+1;s=u.slice(0,c),a=u.slice(c,u.length)}else s=this.rootNode.allLeafChildren,a=[];this.rootNode.allLeafChildren=vg(s,l,a),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),n.add=l}},e.prototype.executeRemove=function(e,t,n){var o=this,r=e.remove;if(!jo.missingOrEmpty(r)){var i={};r.forEach((function(e){var r=o.lookupRowNode(e);r&&(r.isSelected()&&n.push(r),r.clearRowTopAndRowIndex(),i[r.id]=!0,delete o.allNodesMap[r.id],t.remove.push(r))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!i[e.id]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},e.prototype.executeUpdate=function(t,n,o){var r=this,i=t.update;jo.missingOrEmpty(i)||i.forEach((function(t){var i=r.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&o.push(i),r.setMasterForRow(i,t,e.TOP_LEVEL,!1),n.update.push(i))}))},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowIdFunc();if(n){var o=n({data:e,level:0});if(!(t=this.allNodesMap[o]))return console.error("AG Grid: could not find row id="+o+", data item was not found for this id"),null}else if(!(t=this.rootNode.allLeafChildren.find((function(t){return t.data===e}))))return console.error("AG Grid: could not find data item as object was not found",e),console.error("Consider using getRowId to help the Grid find matching row data"),null;return t||null},e.prototype.createNode=function(e,t,n){var o=new qi(this.beans);return o.group=!1,this.setMasterForRow(o,e,n,!0),t&&!this.suppressParentsInRowNodes&&(o.parent=t),o.level=n,o.setDataAndId(e,this.nextId.toString()),this.allNodesMap[o.id]&&console.warn("AG Grid: duplicate node id '"+o.id+"' detected from getRowId callback, this could cause issues in your grid."),this.allNodesMap[o.id]=o,this.nextId++,o},e.prototype.setMasterForRow=function(e,t,n,o){if(this.doingTreeData)e.setMaster(!1),o&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),o){var r=this.columnModel.getRowGroupColumns(),i=n+(r?r.length:0);e.expanded=!!e.master&&this.isExpanded(i)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),Cg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(gg||(gg={}));var _g=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Cg(n,e),n.prototype.init=function(){var e=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING}),n=!this.gridOptionsWrapper.isSuppressAnimationFrame(),o=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:n});this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,Ve.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var r=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:n});this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_REMOVE_SINGLE_CHILDREN,r),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,r),this.rootNode=new qi(this.beans),this.nodeManager=new yg(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.gridApi,this.columnApi,this.selectionService,this.beans)},n.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},n.prototype.ensureRowHeightsValid=function(e,t,n,o){var r,i=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),u=Math.min(a,o),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(p);p.setRowHeight(d.height),r=!0,i=!0}}r&&this.setRowTopAndRowIndex()}while(r);return i},n.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),t=0,n=new Set,o=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,r=0;r<this.rowsToDisplay.length;r++){var i=this.rowsToDisplay[r];if(null!=i.id&&n.add(i.id),null==i.rowHeight){var s=this.gridOptionsWrapper.getRowHeightForNode(i,o,e);i.setRowHeight(s.height,s.estimated)}i.setRowTop(t),i.setRowIndex(r),t+=i.rowHeight}return n},n.prototype.clearRowTopAndRowIndex=function(e,t){var n=e.isActive(),o=function(e){e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()};!function e(t){if(o(t),o(t.detailNode),o(t.sibling),t.hasChildren()&&t.childrenAfterGroup){var r=-1==t.level;n&&!r&&!t.expanded||t.childrenAfterGroup.forEach(e)}}(this.rootNode)},n.prototype.ensureRowsAtPixel=function(e,n,o){var r=this;void 0===o&&(o=0);var i=this.getRowIndexAtPixel(n),s=this.getRow(i),a=!this.gridOptionsWrapper.isSuppressAnimationFrame();return s!==e[0]&&(e.forEach((function(e){jo.removeFromArray(r.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){jo.insertIntoArray(r.rootNode.allLeafChildren,e,Math.max(i+o,0)+t)})),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:a}),!0)},n.prototype.highlightRowAtPixel=function(e,t){var n=null!=t?this.getRowIndexAtPixel(t):null,o=null!=n?this.getRow(n):null;if(o&&e&&o!==e&&null!=t){var r=this.getHighlightPosition(t,o);this.lastHighlightedRow&&this.lastHighlightedRow!==o&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),o.setHighlighted(r),this.lastHighlightedRow=o}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},n.prototype.getHighlightPosition=function(e,n){if(!n){var o=this.getRowIndexAtPixel(e);if(!(n=this.getRow(o||0)))return t.RowHighlightPosition.Below}return e-n.rowTop<n.rowHeight/2?t.RowHighlightPosition.Above:t.RowHighlightPosition.Below},n.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},n.prototype.isLastRowIndexKnown=function(){return!0},n.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},n.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var e=this.rootNode.childrenAfterAggFilter;return e?e.length:0},n.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},n.prototype.getRowBounds=function(e){if(jo.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},n.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},n.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var n=this.gridOptionsWrapper.isAnimateRows(),o=0===e.columns.length||e.columns.some((function(e){return e.isPrimary()}))?t.ClientSideRowModelSteps.FILTER:t.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:o,keepRenderedRows:!0,animate:n})}},n.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},n.prototype.getType=function(){return oe.ROW_MODEL_TYPE_CLIENT_SIDE},n.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:t.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},n.prototype.createChangePath=function(e){var t=jo.missingOrEmpty(e),n=new Ep(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},n.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction())return!1;if(null==e.rowNodeTransactions)return!1;var t=e.rowNodeTransactions.filter((function(e){return null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0}));return null==t||0==t.length},n.prototype.refreshModel=function(e){if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var n=this.createChangePath(e.rowNodeTransactions);switch(e.step){case t.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,n,!!e.afterColumnsChanged);case t.ClientSideRowModelSteps.FILTER:this.doFilter(n);case t.ClientSideRowModelSteps.PIVOT:this.doPivot(n);case t.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(n);case t.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(n);case t.ClientSideRowModelSteps.SORT:this.doSort(e.rowNodeTransactions,n);case t.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var o=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,o);var r={type:Ve.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(r)}},n.prototype.isEmpty=function(){var e=jo.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return jo.missing(this.rootNode)||e||!this.columnModel.isReady()},n.prototype.isRowsToRender=function(){return jo.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},n.prototype.getNodesInRangeForSelection=function(e,t){var n,o=!t,r=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=o&&!r;if(o||a!==t&&a!==e||(o=!0),!(a.group&&s)){var u=o&&!r,c=a.isParentOfNode(n);(u||c)&&i.push(a)}l&&(a!==t&&a!==e||(r=!0,n=a===t?t:e))})),i},n.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},n.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},n.prototype.getRootNode=function(){return this.rootNode},n.prototype.getRow=function(e){return this.rowsToDisplay[e]},n.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},n.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(jo.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var o=Math.floor((t+n)/2),r=this.rowsToDisplay[o];if(this.isRowInPixel(r,e))return o;r.rowTop<e?t=o+1:r.rowTop>e&&(n=o-1)}},n.prototype.isRowInPixel=function(e,t){var n=e.rowTop,o=e.rowTop+e.rowHeight;return n<=t&&o>t},n.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,n){return e(t,n)}))},n.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,gg.Normal,0)},n.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter,e,gg.AfterFilter,0)},n.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,gg.AfterFilterAndSort,0)},n.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,gg.PivotNodes,0)},n.prototype.recursivelyWalkNodesAndCallback=function(e,t,n,o){if(!e)return o;for(var r=0;r<e.length;r++){var i=e[r];if(t(i,o++),i.hasChildren()){var s=null;switch(n){case gg.Normal:s=i.childrenAfterGroup;break;case gg.AfterFilter:s=i.childrenAfterAggFilter;break;case gg.AfterFilterAndSort:s=i.childrenAfterSort;break;case gg.PivotNodes:s=i.leafGroup?null:i.childrenAfterSort}s&&(o=this.recursivelyWalkNodesAndCallback(s,t,n,o))}}return o},n.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},n.prototype.expandOrCollapseAll=function(e){var n=this.gridOptionsWrapper.isTreeData(),o=this.columnModel.isPivotActive();this.rootNode&&function t(r){r&&r.forEach((function(r){var i=function(){r.expanded=e,t(r.childrenAfterGroup)};n?jo.exists(r.childrenAfterGroup)&&i():o?!r.leafGroup&&i():r.group&&i()}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:t.ClientSideRowModelSteps.MAP});var r=e?"expandAll":"collapseAll",i={api:this.gridApi,columnApi:this.columnApi,type:Ve.EVENT_EXPAND_COLLAPSE_ALL,source:r};this.eventService.dispatchEvent(i)},n.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},n.prototype.doRowGrouping=function(e,t,n,o,r){this.groupStage?(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:n,changedPath:o}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:o,afterColumnsChanged:r}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(o)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},n.prototype.restoreGroupState=function(e){e&&jo.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){"boolean"===typeof e[n]&&(t.expanded=e[n])}))},n.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return jo.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){return e[n]=t.expanded})),e},n.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},n.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf(qi.ID_PREFIX_ROW_GROUP)){var t=void 0;return this.forEachNode((function(n){n.id===e&&(t=n)})),t}return this.nodeManager.getRowNode(e)},n.prototype.setRowData=function(e){var n=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:Ve.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,groupState:n,newData:!0})},n.prototype.batchUpdateRowData=function(e,t){var n=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var o=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){n.executeBatchUpdateRowData()}),o)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},n.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},n.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[],o=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(r){var i=e.nodeManager.updateRowData(r.rowDataTransaction,void 0);n.push(i),r.callback&&t.push(r.callback.bind(null,i)),"number"===typeof r.rowDataTransaction.addIndex&&(o=!0)})),this.commonUpdateRowData(n,void 0,o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0),n.length>0){var r={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:Ve.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n};this.eventService.dispatchEvent(r)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},n.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t),o="number"===typeof e.addIndex;return this.commonUpdateRowData([n],t,o),n},n.prototype.createRowNodeOrder=function(){if(!this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var t=0;t<this.rootNode.allLeafChildren.length;t++){e[this.rootNode.allLeafChildren[t].id]=t}return e}},n.prototype.commonUpdateRowData=function(e,n,o){var r=!this.gridOptionsWrapper.isSuppressAnimationFrame();o&&(n=this.createRowNodeOrder()),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:n,keepRenderedRows:!0,keepEditingRows:!0,animate:r});var i={type:Ve.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},n.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},n.prototype.onRowHeightChanged=function(){this.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0})},n.prototype.resetRowHeights=function(){var e=!1;this.forEachNode((function(t){t.setRowHeight(t.rowHeight,!0);var n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),e=!0})),e&&this.onRowHeightChanged()},wg([Y("columnModel")],n.prototype,"columnModel",void 0),wg([Y("selectionService")],n.prototype,"selectionService",void 0),wg([Y("filterManager")],n.prototype,"filterManager",void 0),wg([Y("valueCache")],n.prototype,"valueCache",void 0),wg([Y("columnApi")],n.prototype,"columnApi",void 0),wg([Y("gridApi")],n.prototype,"gridApi",void 0),wg([Y("animationFrameService")],n.prototype,"animationFrameService",void 0),wg([Y("beans")],n.prototype,"beans",void 0),wg([Y("filterStage")],n.prototype,"filterStage",void 0),wg([Y("sortStage")],n.prototype,"sortStage",void 0),wg([Y("flattenStage")],n.prototype,"flattenStage",void 0),wg([Z("groupStage")],n.prototype,"groupStage",void 0),wg([Z("aggregationStage")],n.prototype,"aggregationStage",void 0),wg([Z("pivotStage")],n.prototype,"pivotStage",void 0),wg([Z("filterAggregatesStage")],n.prototype,"filterAggregatesStage",void 0),wg([U],n.prototype,"init",null),n=wg([q("rowModel")],n)}(Fe),bg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Eg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bg(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},Eg([Y("filterService")],t.prototype,"filterService",void 0),t=Eg([q("filterStage")],t)}(Fe),Rg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Og=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rg(t,e),t.prototype.execute=function(e){var t=this.sortController.getSortOptions(),n=jo.exists(t)&&t.length>0,o=n&&jo.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=t.some((function(e){return!!e.column.getColDef().showRowGroup}));this.sortService.sort(t,n,o,e.rowNodeTransactions,e.changedPath,r)},Og([Y("sortService")],t.prototype,"sortService",void 0),Og([Y("sortController")],t.prototype,"sortController",void 0),Og([Y("columnModel")],t.prototype,"columnModel",void 0),t=Og([q("sortStage")],t)}(Fe),Tg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ag=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Dg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tg(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=[],o={value:0},r=this.columnModel.isPivotMode(),i=r&&t.leafGroup,s=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,n,o,r,0),!i&&n.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,n,o,0)),n},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,o,r){if(!jo.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=0;l<e.length;l++){var u=e[l],c=u.hasChildren(),p=o&&!c,d=s&&c&&1===u.childrenAfterGroup.length,h=a&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,f=o&&u.leafGroup,g=i&&u.expanded&&!u.master&&!f;if(!p&&!g&&!d&&!h&&this.addRowNodeToRowsToDisplay(u,t,n,r),!o||!u.leafGroup)if(c){var m=d||h;if(u.expanded||m){var v=m?r:r+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,n,o,v),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,n,r))}}else if(u.master&&u.expanded){var y=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(y,t,n,r)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,n,o){var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(r?0:o)},t.prototype.ensureFooterNodeExists=function(e){if(!jo.exists(e.sibling)){var t=new qi(this.beans);Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,jo.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},t.prototype.createDetailNode=function(e){if(jo.exists(e.detailNode))return e.detailNode;var t=new qi(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,jo.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},Ag([Y("columnModel")],t.prototype,"columnModel",void 0),Ag([Y("beans")],t.prototype,"beans",void 0),t=Ag([q("flattenStage")],t)}(Fe),xg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ng=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xg(t,e),t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,t,n,o,r,i){var s=this,a=this.gridOptionsWrapper.isGroupMaintainOrder(),l=this.columnModel.getAllGridColumns().some((function(e){return e.isRowGroupActive()})),u={};n&&o&&(u=this.calculateDirtyNodes(o));var c=this.columnModel.isPivotMode();r&&r.forEachChangedNodeDepthFirst((function(o){s.pullDownGroupDataForHideOpenParents(o.childrenAfterAggFilter,!0);var p=c&&o.leafGroup,d=a&&l&&!o.leafGroup&&!i;if(!t||d||p){var h=o.childrenAfterAggFilter.slice(0);if(a&&o.childrenAfterSort){var f=o.childrenAfterSort.reduce((function(e,t,n){return e[t.id]=n,e}),{});h.sort((function(e,t){return(f[e.id]||0)-(f[t.id]||0)}))}o.childrenAfterSort=h}else o.childrenAfterSort=n?s.doDeltaSort(o,u,r,e):s.rowNodeSorter.doFullSort(o.childrenAfterAggFilter,e);if(o.sibling&&(o.sibling.childrenAfterSort=o.childrenAfterSort),s.updateChildIndexes(o),s.postSortFunc){var g={nodes:o.childrenAfterSort};s.postSortFunc(g)}})),this.updateGroupDataForHideOpenParents(r)},t.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e&&e.forEach((function(e){n(e.add),n(e.update),n(e.remove)})),t},t.prototype.doDeltaSort=function(e,t,n,o){var r=this,i=e.childrenAfterAggFilter,s=e.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(i,o);var a={},l=[];i.forEach((function(e){t[e.id]||!n.canSkip(e)?l.push(e):a[e.id]=!0}));var u=s.filter((function(e){return a[e.id]})),c=function(e,t){return{currentPos:t,rowNode:e}},p=l.map(c).sort((function(e,t){return r.rowNodeSorter.compareRowNodes(o,e,t)}));return this.mergeSortedArrays(o,p,u.map(c)).map((function(e){return e.rowNode}))},t.prototype.mergeSortedArrays=function(e,t,n){for(var o=[],r=0,i=0;r<t.length&&i<n.length;){this.rowNodeSorter.compareRowNodes(e,t[r],n[i])<0?o.push(t[r++]):o.push(n[i++])}for(;r<t.length;)o.push(t[r++]);for(;i<n.length;)o.push(n[i++]);return o},t.prototype.updateChildIndexes=function(e){if(!jo.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,n=0;n<t.length;n++){var o=t[n],r=0===n,i=n===e.childrenAfterSort.length-1;o.setFirstChild(r),o.setLastChild(i),o.setChildIndex(n)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData()){return jo.doOnce((function(){return console.warn("AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).")}),"sortService.hideOpenParentsWithTreeData"),!1}var n=function e(n){t.pullDownGroupDataForHideOpenParents(n.childrenAfterSort,!1),n.childrenAfterSort.forEach((function(t){t.hasChildren()&&e(t)}))};e&&e.executeFromRootNode((function(e){return n(e)}))}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;this.gridOptionsWrapper.isGroupHideOpenParents()&&!jo.missing(e)&&e.forEach((function(e){n.columnModel.getGroupDisplayColumns().forEach((function(o){var r=o.getColDef().showRowGroup;if("string"===typeof r){var i=r,s=n.columnModel.getPrimaryColumn(i);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(o.getId(),void 0);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(o.getId(),a.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},Ng([Y("columnModel")],t.prototype,"columnModel",void 0),Ng([Y("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Ng([U],t.prototype,"init",null),t=Ng([q("sortService")],t)}(Fe),Ig=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ig(t,e),t.prototype.filter=function(e){var t=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var n=this,o=function(t,o){t.hasChildren()?t.childrenAfterFilter=e&&!o?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,o=e.data&&n.filterManager.doesRowPassFilter({rowNode:e});return t||o})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var r=function e(t,r){if(t.childrenAfterGroup)for(var i=0;i<t.childrenAfterGroup.length;i++){var s=t.childrenAfterGroup[i],a=r||n.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?e(t.childrenAfterGroup[i],a):o(s,a)}o(t,r)};t.executeFromRootNode((function(e){return r(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return o(e,!1)}),!0)}},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Mg([Y("filterManager")],t.prototype,"filterManager",void 0),t=Mg([q("filterService")],t)}(Fe),kg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Hg=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Wg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kg(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){return this.gridOptionsWrapper.isImmutableData()},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var n=Hg(t,2),o=n[0],r=n[1],i=this.clientSideRowModel.updateRowData(o,r);i&&this.rowRenderer.refreshFullWidthRows(i.update);var s={type:Ve.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}},t.prototype.createTransactionForRowData=function(e){if(jo.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowIdFunc();if(null!=t){var n={remove:[],update:[],add:[]},o=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?void 0:{};return jo.exists(e)&&e.forEach((function(e,i){var s=t({data:e,level:0}),a=o[s];(r&&(r[s]=i),a)?(a.data!==e&&n.update.push(e),o[s]=void 0):n.add.push(e)})),jo.iterateObject(o,(function(e,t){t&&n.remove.push(t.data)})),[n,r]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},Gg([Y("rowModel")],t.prototype,"rowModel",void 0),Gg([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),Gg([Y("columnApi")],t.prototype,"columnApi",void 0),Gg([Y("gridApi")],t.prototype,"gridApi",void 0),Gg([U],t.prototype,"postConstruct",null),t=Gg([q("immutableService")],t)}(Fe),Vg={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[Sg,Pg,Dg,Lg,Fg,Wg],rowModels:{clientSide:_g}},jg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zg=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.parentCache=n,r.params=o,r.startRow=t*o.blockSize,r.endRow=r.startRow+o.blockSize,r}return jg(t,e),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,t,n){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),jo.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();jo.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){e.params.datasource.getRows(t)}),0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsWrapper.getContext()}},t.prototype.forEachNode=function(e,t,n){var o=this;this.rowNodes.forEach((function(r,i){o.startRow+i<n&&e(r,t.next())}))},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var n=e-this.startRow;return this.rowNodes[n]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,n=new qi(this.beans);n.setRowHeight(this.params.rowHeight),n.uiLevel=0,n.setRowIndex(t),n.setRowTop(this.params.rowHeight*t),this.rowNodes.push(n)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach((function(n,o){var r=e.rowData?e.rowData[o]:void 0;t.setDataAndId(n,r,t.startRow+o)}));var n=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,n)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(e){e.clearRowTopAndRowIndex()}))},Bg([Y("beans")],t.prototype,"beans",void 0),Bg([U],t.prototype,"postConstruct",null),Bg([K],t.prototype,"destroyRowNodes",null),t}(Rp),Ug=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qg=function(e,t){return function(n,o){t(n,o,e)}},Yg=function(e){function t(t){var n=e.call(this)||this;return n.lastRowIndexKnown=!1,n.blocks={},n.blockCount=0,n.rowCount=t.initialRowCount,n.params=t,n}return Ug(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.params.blockSize),o=this.blocks[n];if(!o){if(t)return;o=this.createBlock(n)}return o.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new zg(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(e){return e.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.destroyBlock(t)}))},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,o=this.getBlocksInOrder().filter((function(t){return t!=e}));o.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.params.maxBlocksInCache>0,i=r?this.params.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach((function(e,t){if(e.getState()===zg.STATE_WAITING_TO_LOAD&&t>=s||!!r&&t>=i){if(n.isBlockCurrentlyDisplayed(e))return;if(n.isBlockFocused(e))return;n.removeBlockFromCache(e)}}))},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var n=e.getStartRow(),o=e.getEndRow();return t.rowIndex>=n&&t.rowIndex<o},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),n=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,n)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if("number"===typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,jo.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var t=this,n=new Bo;this.getBlocksInOrder().forEach((function(o){return o.forEachNode(e,n,t.rowCount)}))},t.prototype.getBlocksInOrder=function(){return jo.getAllValuesInObject(this.blocks).sort((function(e,t){return e.getId()-t.getId()}))},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:Ve.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach((function(n){n.getId()*e.params.blockSize>=e.rowCount&&t.push(n)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.removeBlockFromCache(t)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var n=this,o=[],r=-1,i=!1,s=new Bo;jo.missing(e)&&(i=!0);var a=!1;return this.getBlocksInOrder().forEach((function(l){a||(i&&r+1!==l.getId()?a=!0:(r=l.getId(),l.forEachNode((function(n){var r=n===e||n===t;(i||r)&&o.push(n),r&&(i=!i)}),s,n.rowCount)))})),a||i?[]:o},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,Kg([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),Kg([Y("focusService")],t.prototype,"focusService",void 0),Kg([qg(0,X("loggerFactory"))],t.prototype,"setBeans",null),Kg([K],t.prototype,"destroyAllBlocks",null),t}(Fe),Zg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$g=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zg(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,o){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return e.destroyCache()})),this.verifyProps())},t.prototype.verifyProps=function(){if(null!=this.gridOptionsWrapper.getInitialGroupOrderComparator()){jo.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.")}),"IRM.InitialGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ve.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!jo.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return oe.ROW_MODEL_TYPE_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,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsWrapper.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:Ve.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!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.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new Bo},this.infiniteCache=this.createBean(new Yg(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,t){return e>0?e:t},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 t;return this.forEachNode((function(n){n.id===e&&(t=n)})),t},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(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},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()},t.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},$g([Y("filterManager")],t.prototype,"filterManager",void 0),$g([Y("sortController")],t.prototype,"sortController",void 0),$g([Y("selectionService")],t.prototype,"selectionService",void 0),$g([Y("gridApi")],t.prototype,"gridApi",void 0),$g([Y("columnApi")],t.prototype,"columnApi",void 0),$g([Y("rowRenderer")],t.prototype,"rowRenderer",void 0),$g([Y("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),$g([U],t.prototype,"init",null),$g([K],t.prototype,"destroyDatasource",null),t=$g([q("rowModel")],t)}(Fe),Qg={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:Xg}},Jg=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?e+"."+t:e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e}(),em=function(){function e(e){this.groupColumns=[];var t=e.columnModel,n=e.valueService,o=e.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnModel=t,this.valueService=n,this.gridOptionsWrapper=o,this.processCellCallback=r,this.processHeaderCallback=i,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return e.prototype.prepare=function(e){this.groupColumns=e.filter((function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,o,r){var i,s=this.gridOptionsWrapper.isGroupMultiAutoColumn()?r.rowGroupIndex:0;i=r&&r.group&&(t===s&&-1!==this.groupColumns.indexOf(e)||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode()))?this.createValueForGroupNode(r):this.valueService.getValue(e,r);var a=this.processCell(n,r,e,i,this.processCellCallback,o);return null!=a?a:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var t=[e.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,o,r,i){return r?r({accumulatedRowIndex:e,column:n,node:t,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:i}):null!=o?o:""},e}(),tm=function(){function e(){}return e.download=function(e,t){var n=document.defaultView||window;if(n){var o=document.createElement("a"),r=n.URL.createObjectURL(t);o.setAttribute("href",r),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(o),n.setTimeout((function(){n.URL.revokeObjectURL(r)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),nm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),om=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var o=t.suppressQuotes,r=t.columnSeparator;return n.suppressQuotes=o,n.columnSeparator=r,n}return nm(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"===typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(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,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,oe.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null===e||void 0===e?'""':("string"===typeof e?t=e:"function"===typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(em),rm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),im=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rm(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),n=this.getData(t),o=new Blob(["\ufeff",n],{type:"text/plain"});return tm.download(this.getFileName(t.fileName),o),n},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){var t=this.getMergedParams(e);return this.getData(t)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,n=t.columnModel,o=t.valueService,r=t.gridOptionsWrapper,i=e,s=i.processCellCallback,a=i.processHeaderCallback,l=i.processGroupHeaderCallback,u=i.processRowGroupCallback,c=i.suppressQuotes,p=i.columnSeparator;return new om({columnModel:n,valueService:o,gridOptionsWrapper:r,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:c||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},im([Y("columnModel")],t.prototype,"columnModel",void 0),im([Y("valueService")],t.prototype,"valueService",void 0),im([Y("gridSerializer")],t.prototype,"gridSerializer",void 0),im([Y("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),im([U],t.prototype,"postConstruct",null),t=im([q("csvCreator")],t)}(Jg),am=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lm=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(t.RowType||(t.RowType={}));var um=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return am(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var n=this.getColumnsToExport(t.allColumns,t.columnKeys);return jo.compose(this.prepareSession(n),this.prependContent(t),this.exportColumnGroups(t,n),this.exportHeaders(t,n),this.processPinnedTopRows(t,n),this.processRows(t,n),this.processPinnedBottomRows(t,n),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,n,o){var r=this,i=t.shouldRowBeSkipped||function(){return!1},s=this.gridOptionsWrapper,a=s.getContext(),l=s.getApi(),u=s.getColumnApi(),c=s.isGroupRemoveSingleChildren(),p=s.isGroupHideOpenParents(),d=s.isGroupRemoveLowestSingleChildren(),h=this.columnModel.isPivotMode()?o.leafGroup:!o.group,f=t.skipGroups||t.skipRowGroups,g=d&&o.leafGroup,m=1===o.allChildrenCount&&(c||g);f&&t.skipGroups&&jo.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups");var v={rowIndex:o.rowIndex,rowPinned:o.rowPinned};if(!(!h&&(t.skipRowGroups||m||p)||t.onlySelected&&!o.isSelected()||t.rowNodes&&!t.rowNodes.some((function(e){return r.rowPositionUtils.sameRow(e,v)}))||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned)&&((!(-1===o.level)||o.leafGroup)&&!i({node:o,api:l,columnApi:u,context:a}))){var y=e.onNewBodyRow();if(n.forEach((function(e,t){y.onColumn(e,t,o)})),t.getCustomContentBelowRow){var C=t.getCustomContentBelowRow({node:o,api:l,columnApi:u,context:a});C&&e.addCustomContent(C)}}},t.prototype.appendContent=function(e){return function(t){var n=e.customFooter||e.appendContent;return n&&(e.customFooter&&jo.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),t.addCustomContent(n)),t}},t.prototype.prependContent=function(e){return function(t){var n=e.customHeader||e.prependContent;return n&&(e.customHeader&&jo.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),t.addCustomContent(n)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var n=this;return function(o){if(e.skipColumnGroupHeaders)e.columnGroups&&jo.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var r=new je,i=n.displayedGroupCreator.createDisplayedGroups(t,n.columnModel.getGridBalancedTree(),r,null);n.recursivelyAddHeaderGroups(i,o,e.processGroupHeaderCallback)}return o}},t.prototype.exportHeaders=function(e,t){return function(n){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&jo.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var o=n.onNewHeaderRow();t.forEach((function(e,t){o.onColumn(e,t,void 0)}))}return n}},t.prototype.processPinnedTopRows=function(e,t){var n=this;return function(o){var r=n.processRow.bind(n,o,e,t);return n.pinnedRowModel.forEachPinnedTopRow(r),o}},t.prototype.processRows=function(e,t){var n=this;return function(o){var r=n.rowModel,i=r.getType(),s=i===oe.ROW_MODEL_TYPE_CLIENT_SIDE,a=i===oe.ROW_MODEL_TYPE_SERVER_SIDE,l=!s&&e.onlySelected,u=n.processRow.bind(n,o,e,t);n.columnModel.isPivotMode()?s?r.forEachPivotNode(u):r.forEachNode(u):e.onlySelectedAllPages||l?n.selectionService.getSelectedNodes().forEach(u):s||a?r.forEachNodeAfterFilterAndSort(u):r.forEachNode(u);return o}},t.prototype.processPinnedBottomRows=function(e,t){var n=this;return function(o){var r=n.processRow.bind(n,o,e,t);return n.pinnedRowModel.forEachPinnedBottomRow(r),o}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var n=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!n?(this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([oe.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,n){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof we&&this.doAddHeaderHeader(t,e,n),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,n)},t.prototype.doAddHeaderHeader=function(e,t,n){var o=this,r=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,s=e;t=n?n({columnGroup:s,api:o.gridOptionsWrapper.getApi(),columnApi:o.gridOptionsWrapper.getColumnApi(),context:o.gridOptionsWrapper.getContext()}):o.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(e,t,n,o){var r=jo.last(e);return"open"===t.getColumnGroupShow()?r&&null==r[1]||(r=[n],e.push(r)):r&&null==r[1]&&(r[1]=n-1),n===o.length-1&&r&&null==r[1]&&(r[1]=n),e}),[]);r.onColumn(t||"",i++,s.getLeafColumns().length-1,a)}))},lm([Y("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),lm([Y("columnModel")],t.prototype,"columnModel",void 0),lm([Y("rowModel")],t.prototype,"rowModel",void 0),lm([Y("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),lm([Y("selectionService")],t.prototype,"selectionService",void 0),lm([Y("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),t=lm([q("gridSerializer")],t)}(Fe),cm={moduleName:t.ModuleNames.CsvExportModule,beans:[sm,um]},pm="\r\n",dm=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.createXml=function(e,t){var n=this,o="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(r){o+=n.returnAttributeIfPopulated(e.prefix+r,e.map[r],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(r){o+=n.returnAttributeIfPopulated(r,e.properties.rawMap[r],t)})));var r="<"+e.name+o;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">"+pm:(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=n.createXml(e,t)})),r+"</"+e.name+">"+pm):r+"/>"+pm},e.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var o=t;return"boolean"===typeof t&&n&&(o=n(t))," "+e+'="'+o+'"'},e}(),hm=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},fm=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),gm=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,n){void 0===n&&(n=!1),this.files.push({path:e,created:new Date,content:t,isBase64:n})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,n;void 0===e&&(e="");var o=this.folders.concat(this.files),r=o.length,i="",s=0,a=0;try{for(var l=hm(o),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,s),d=p.fileHeader,h=p.folderHeader,f=p.content;s+=d.length+f.length,a+=h.length,e+=d+f,i+=h}}catch(g){t={error:g}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return e+i+this.buildFolderEnd(r,a,s)},e.getHeader=function(e,t){var n=e.content,o=e.path,r=e.created,i=e.isBase64,s=jo.utf8_encode,a=jo.decToHex,l=s(o),u=l!==o,c=this.convertTime(r),p=this.convertDate(r),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=n?this.getConvertedContent(n,i):{size:0,content:""},g=f.size,m=f.content,v="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(m):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK\x03\x04"+v+l+d,folderHeader:"PK\x01\x02\x14\0"+v+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\x10\0\0\0")+a(t,4)+l+d,content:m||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,n){var o=jo.decToHex;return"PK\x05\x06\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(n,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,n=new Uint8Array(t),o=0;o<t;o++)n[o]=e.charCodeAt(o);var r=-1,i=0;for(o=0;o<t;o++)i=n[o],r=r>>>8^fm[255&(r^i)];return-1^r},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}();re.register(Vg,!1),re.register(Qg,!1),re.register(cm,!1),t.AbstractHeaderCellCtrl=Vu,t.AgAbstractField=Sr,t.AgAngleSelect=Jp,t.AgCheckbox=ic,t.AgColorPicker=dd,t.AgDialog=cd,t.AgGroupComponent=gd,t.AgInputNumberField=Up,t.AgInputRange=qp,t.AgInputTextArea=Bp,t.AgInputTextField=Vp,t.AgMenuItemComponent=Nd,t.AgMenuList=Od,t.AgMenuPanel=Ad,t.AgPanel=sd,t.AgPromise=Uo,t.AgRadioButton=kp,t.AgSelect=Lr,t.AgSlider=$p,t.AgStackComponentsRegistry=_t,t.AgToggleButton=Hp,t.AlignedGridsService=th,t.AnimateShowChangeCellRenderer=Wi,t.AnimateSlideCellRenderer=Bi,t.AnimationFrameService=op,t.AutoScrollService=Sa,t.AutoWidthCalculator=up,t.Autowired=Y,t.BaseComponentWrapper=hg,t.BaseCreator=Jg,t.BaseGridSerializingSession=em,t.Bean=q,t.BeanStub=Fe,t.Beans=Za,t.BodyDropPivotTarget=Cu,t.BodyDropTarget=Su,t.CellComp=cu,t.CellCtrl=al,t.CellNavigationService=Xd,t.CellPositionUtils=Pf,t.ChangedPath=Ep,t.CheckboxSelectionComponent=$i,t.ColDefUtil=St,t.Color=Ot,t.Column=ae,t.ColumnApi=ah,t.ColumnFactory=We,t.ColumnGroup=we,t.ColumnKeyCreator=h,t.ColumnModel=it,t.ColumnUtils=lt,t.Component=tr,t.ComponentUtil=yt,t.Constants=oe,t.Context=B,t.CssClassApplier=Pu,t.CssClassManager=er,t.CsvCreator=sm,t.CsvExportModule=cm,t.CtrlsService=Kf,t.CustomTooltipFeature=$o,t.DateFilter=qr,t.DisplayedGroupCreator=pt,t.Downloader=tm,t.DragAndDropService=ts,t.DragService=$s,t.Environment=lf,t.EventService=ne,t.Events=Ve,t.ExpressionService=fh,t.FilterManager=ea,t.FloatingFilterMapper=zs,t.FocusService=kd,t.Grid=cg,t.GridApi=Uu,t.GridBodyComp=Zl,t.GridBodyCtrl=Ga,t.GridComp=Th,t.GridCoreCreator=pg,t.GridCtrl=Rh,t.GridHeaderComp=Vc,t.GridHeaderCtrl=Gc,t.GridOptionsWrapper=ma,t.GridSerializer=um,t.GroupCellRenderer=fs,t.GroupCellRendererCtrl=ps,t.GroupInstanceIdCreator=je,t.HeaderCellCtrl=pc,t.HeaderFilterCellComp=ia,t.HeaderFilterCellCtrl=ec,t.HeaderGroupCellCtrl=wc,t.HeaderNavigationService=Mc,t.HeaderPositionUtils=kf,t.HeaderRowComp=ku,t.HeaderRowContainerComp=Nc,t.HeaderRowContainerCtrl=Ac,t.HeaderRowCtrl=Sc,t.HorizontalResizeService=zc,t.KeyCode=dr,t.LargeTextCellEditor=Pi,t.Logger=bh,t.LoggerFactory=_h,t.ManagedFocusFeature=mr,t.ModuleRegistry=re,t.MouseEventService=tu,t.MoveColumnFeature=_u,t.NavigationService=iu,t.NumberFilter=ri,t.NumberSequence=Bo,t.Optional=Z,t.PaginationProxy=Np,t.PinnedRowModel=_p,t.PopupComponent=Si,t.PopupEditorWrapper=lu,t.PopupSelectCellEditor=Ni,t.PopupService=jd,t.PopupTextCellEditor=ki,t.PositionableFeature=sp,t.PostConstruct=U,t.PreConstruct=z,t.PreDestroy=K,t.PropertyKeys=ft,t.ProvidedColumnGroup=_e,t.ProvidedFilter=Cr,t.Qualifier=X,t.QuerySelector=function(e){return or.bind(this,e,void 0)},t.RefSelector=nr,t.ResizeObserverService=ep,t.RowContainerComp=vu,t.RowContainerCtrl=Ul,t.RowCtrl=fl,t.RowNode=qi,t.RowNodeBlock=Rp,t.RowNodeBlockLoader=Ap,t.RowNodeSorter=Bf,t.RowPositionUtils=Sf,t.RowRenderer=fp,t.ScalarFilter=jr,t.ScrollVisibleService=Ql,t.SelectCellEditor=Di,t.SelectableService=gf,t.SelectionService=ih,t.SetLeftFeature=Yu,t.SimpleFilter=Wr,t.SortController=xh,t.StandardMenuFactory=qc,t.StylingService=Mp,t.TabGuardComp=bd,t.TabGuardCtrl=yd,t.TabbedLayout=$c,t.TemplateService=vh,t.TextCellEditor=Mi,t.TextFilter=li,t.TextFloatingFilter=gi,t.Timer=Ko,t.TouchListener=mi,t.UserComponentFactory=qs,t.UserComponentRegistry=Os,t.ValueCache=Kh,t.ValueFormatterService=yp,t.ValueService=ch,t.VanillaFrameworkOverrides=Yd,t.VirtualList=Ud,t.XmlFactory=dm,t.ZipContainer=gm,t._=jo,t.defaultGroupComparator=function(e,t,n,o,i){void 0===i&&(i=!1),console.warn("AG Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=r(n)&&n.group,a=r(o)&&o.group,l=!s&&!a;return s&&a?c(n.key,o.key,i):l?c(e,t,i):s?1:-1},t.getRowContainerTypeForName=Vl,t.simpleHttpRequest=function(e){return new Uo((function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(JSON.parse(n.responseText))}}))},t.stringToArray=Pt},7945:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(2791)),a=n(4282),l=n(2553),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.setGridApi=function(e,n){t.api=e,t.columnApi=n},t}return o(t,e),t.prototype.render=function(){var e=this.props.suppressReactUi?a.AgGridReactLegacy:l.AgGridReactUi;return s.default.createElement(e,r({},this.props,{setGridApi:this.setGridApi}))},t}(s.Component);t.AgGridReact=u},4282:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1167),l=i(n(2007)),u=s(n(2791)),c=n(4619),p=n(6745),d=n(4584),h=n(8665),f=n(3365),g=n(9575),m=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.changeDetectionService=new d.ChangeDetectionService,n.api=null,n.destroyed=!1,n.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],n.portalManager=new f.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n}return o(t,e),t.prototype.render=function(){var e=this;return u.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(t){e.eGridDiv=t}},this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return r({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new y(this,this.portalManager)},modules:e,frameworkOverrides:new g.ReactFrameworkOverrides(!1)},n=this.props.gridOptions||{},o=this.props.children;p.AgGridColumn.hasChildColumns(o)&&(n.columnDefs=p.AgGridColumn.mapChildColumnDefs(o)),this.gridOptions=a.ComponentUtil.copyAttributesToGridOptions(n,this.props),new a.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return d.ChangeDetectionStrategyType.IdentityCheck}return d.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||null!=this.props.getRowId||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||null!=this.props.gridOptions.getRowId)},t.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,o="columnDefs",r=this.gridOptions.columnDefs;if(p.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(o)),s=p.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(r,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[o]={previousValue:r,currentValue:s})}else r&&r.length>0&&(t[o]={previousValue:r,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){a._.includes(a.ComponentUtil.ALL_PROPERTIES,i)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(i)).areEqual(e[i],t[i])||(r&&console.log("agGridReact: ["+i+"] property changed"),n[i]={previousValue:e[i],currentValue:t[i]}))})),a.ComponentUtil.getEventCallbacks().forEach((function(o){e[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] event callback changed"),n[o]={previousValue:e[o],currentValue:t[o]})}))},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},t.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},t.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},t.prototype.processSynchronousChanges=function(e){var t=r({},e);if(Object.keys(t).length>0){var n={};this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach((function(e){t[e]&&(n[e]=t[e],delete t[e])})),Object.keys(n).length>0&&this.api&&a.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)}return t},t.prototype.processAsynchronousChanges=function(e){var t=this;Object.keys(e).length>0&&window.setTimeout((function(){t.api&&a.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,t.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:t.MAX_COMPONENT_CREATION_TIME_IN_MS},t}(u.Component);function v(e,t){e.forEach((function(e){m[e]=t}))}t.AgGridReactLegacy=m,m.propTypes={gridOptions:l.default.object},v(a.ComponentUtil.getEventCallbacks(),l.default.func),v(a.ComponentUtil.BOOLEAN_PROPERTIES,l.default.bool),v(a.ComponentUtil.STRING_PROPERTIES,l.default.string),v(a.ComponentUtil.OBJECT_PROPERTIES,l.default.object),v(a.ComponentUtil.ARRAY_PROPERTIES,l.default.array),v(a.ComponentUtil.NUMBER_PROPERTIES,l.default.number),v(a.ComponentUtil.FUNCTION_PROPERTIES,l.default.func);var y=function(e){function t(t,n){var o=e.call(this)||this;return o.agGridReact=t,o.portalManager=n,o}return o(t,e),t.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new c.LegacyReactComponent(e,this.agGridReact,this.portalManager,t):new h.NewReactComponent(e,this.portalManager,t)},t}(a.BaseComponentWrapper)},4619:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2791),s=n(4164),a=n(1167),l=n(294),u=n(8340),c=r(n(3507)),p=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.staticMarkup=null,i.staticRenderTime=0,i.parentComponent=n,i}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new a.AgPromise((function(n){return t.createReactComponent(e,n)}))},t.prototype.createReactComponent=function(e,t){var n=this;this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var o=i.createElement(this.reactComponent,e),r=s.createPortal(o,this.eParentElement,c.default());this.portal=r,this.portalManager.mountReactPortal(r,this,(function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout((function(){n.removeStaticMarkup()})))}))},t.prototype.fallbackMethodAvailable=function(e){return!1},t.prototype.fallbackMethod=function(e,t){},t.prototype.isSlowRenderer=function(){return this.staticRenderTime>=t.SLOW_RENDERING_THRESHOLD},t.prototype.isNullValue=function(){return""===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,n=i.createElement(this.reactComponent,e);try{console.error=function(){};var o=Date.now(),r=u.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-o,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(s){}finally{console.error=t}}},t.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},t.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.SLOW_RENDERING_THRESHOLD=3,t}(l.ReactComponent);t.LegacyReactComponent=p},2553:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1167),l=i(n(2791)),u=n(6745),c=n(4584),p=n(8665),d=n(3365),h=s(n(3970)),f=n(9575);var g=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.destroyFuncs=[],n.changeDetectionService=new c.ChangeDetectionService,n.eGui=l.default.createRef(),n.whenReadyFuncs=[],n.ready=!1,n.renderedAfterMount=!1,n.mounted=!1,n.state={context:void 0},n.portalManager=new d.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n.destroyFuncs.push((function(){return n.portalManager.destroy()})),n}return o(t,e),t.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),l.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&l.default.createElement(h.default,{context:this.state.context}),this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return r({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this;if(!this.mounted){this.mounted=!0;var t=this.props.modules||[],n={providedBeanInstances:{frameworkComponentWrapper:new m(this.portalManager)},modules:t,frameworkOverrides:new f.ReactFrameworkOverrides(!0)};this.gridOptions=this.props.gridOptions||{};var o=this.props.children;u.AgGridColumn.hasChildColumns(o)&&(this.gridOptions.columnDefs=u.AgGridColumn.mapChildColumnDefs(o)),this.gridOptions=a.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props);(new a.GridCoreCreator).create(this.eGui.current,this.gridOptions,(function(t){e.setState({context:t}),t.getBean(a.CtrlsService.NAME).whenReady((function(){e.api=e.gridOptions.api,e.columnApi=e.gridOptions.columnApi,e.props.setGridApi(e.api,e.columnApi),e.destroyFuncs.push((function(){return e.api.destroy()}))}))}),(function(t){t.getBean(a.CtrlsService.NAME).whenReady((function(){e.whenReadyFuncs.forEach((function(e){return e()})),e.whenReadyFuncs.length=0,e.ready=!0}))}),n)}},t.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach((function(e){return e()})),this.destroyFuncs.length=0)},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,o="columnDefs",r=this.gridOptions.columnDefs;if(u.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(o)),s=u.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(r,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[o]={previousValue:r,currentValue:s})}else r&&r.length>0&&(t[o]={previousValue:r,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){a._.includes(a.ComponentUtil.ALL_PROPERTIES,i)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(i)).areEqual(e[i],t[i])||(r&&console.log("agGridReact: ["+i+"] property changed"),n[i]={previousValue:e[i],currentValue:t[i]}))})),a.ComponentUtil.getEventCallbacks().forEach((function(o){e[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] event callback changed"),n[o]={previousValue:e[o],currentValue:t[o]})}))},t.prototype.processChanges=function(e){var t=this;this.processWhenReady((function(){return a.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return c.ChangeDetectionStrategyType.IdentityCheck}return c.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||null!=this.props.getRowId||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||null!=this.props.gridOptions.getRowId)},t}(l.Component);t.AgGridReactUi=g;var m=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return o(t,e),t.prototype.createWrapper=function(e,t){return new p.NewReactComponent(e,this.parent,t)},t}(a.BaseComponentWrapper)},2724:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2791));t.BeansContext=r.default.createContext({})},7627:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(6817),a=n(2724),l=n(2553),u=n(1622);t.default=i.forwardRef((function(e,t){var n=i.useContext(a.BeansContext),r=n.ctrlsFactory,c=n.context,p=n.gridOptionsWrapper,d=n.resizeObserverService,h=n.clientSideRowModel,f=n.serverSideRowModel,g=i.useState(new s.CssClasses),m=g[0],v=g[1],y=i.useState(new s.CssClasses),C=y[0],w=y[1],_=i.useState(),b=_[0],E=_[1],S=i.useState(),R=S[0],O=S[1],P=i.useRef(),T=i.useRef(null),A=i.useMemo((function(){return m.toString()+" ag-details-row"}),[m]),D=i.useMemo((function(){return C.toString()+" ag-details-grid"}),[C]);t&&i.useImperativeHandle(t,(function(){return{refresh:function(){return P.current.refresh()}}})),u.useEffectOnce((function(){e.template&&"string"===typeof e.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")})),u.useEffectOnce((function(){var t={addOrRemoveCssClass:function(e,t){return v((function(n){return n.setClass(e,t)}))},addOrRemoveDetailGridCssClass:function(e,t){return w((function(n){return n.setClass(e,t)}))},setDetailGrid:function(e){return E(e)},setRowData:function(e){return O(e)},getGui:function(){return T.current}},n=r.getInstance("detailCellRenderer");if(n){var o;if(c.createBean(n),n.init(t,e),P.current=n,p.isDetailRowAutoHeight()){var i=function(){if(null!=T.current){var t=T.current.clientHeight;if(null!=t&&t>0){setTimeout((function(){e.node.setRowHeight(t),h?h.onRowHeightChanged():f&&f.onRowHeightChanged()}),0)}}};o=d.observeResize(T.current,i),i()}return function(){c.destroyBean(n),o&&o()}}}));var x=i.useCallback((function(e,t){P.current.registerDetailWithMaster(e,t)}),[]);return i.default.createElement("div",{className:A,ref:T},b&&i.default.createElement(l.AgGridReactUi,o({className:D},b,{rowData:R,setGridApi:x})))}))},5728:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=r(n(2791)),a=n(2724),l=n(8285),u=n(1622),c=n(6817),p=s.forwardRef((function(e,t){var n=s.useContext(a.BeansContext).context,r=s.useRef(null),d=s.useRef(null),h=s.useRef(null),f=s.useRef(null),g=s.useRef(null),m=s.useState(),v=m[0],y=m[1],C=s.useState(),w=C[0],_=C[1],b=s.useState(),E=b[0],S=b[1],R=s.useState(new c.CssClasses),O=R[0],P=R[1],T=s.useState(new c.CssClasses("ag-hidden")),A=T[0],D=T[1],x=s.useState(new c.CssClasses("ag-hidden")),N=x[0],L=x[1],I=s.useState(new c.CssClasses("ag-invisible")),M=I[0],F=I[1];s.useImperativeHandle(t,(function(){return{refresh:function(){return!1}}})),s.useEffect((function(){return l.showJsComp(v,n,d.current)}),[v]),u.useEffectOnce((function(){var t={setInnerRenderer:function(e,t){y(e),S(t)},setChildCount:function(e){return _(e)},addOrRemoveCssClass:function(e,t){return P((function(n){return n.setClass(e,t)}))},setContractedDisplayed:function(e){return L((function(t){return t.setClass("ag-hidden",!e)}))},setExpandedDisplayed:function(e){return D((function(t){return t.setClass("ag-hidden",!e)}))},setCheckboxVisible:function(e){return F((function(t){return t.setClass("ag-invisible",!e)}))}},o=n.createBean(new i.GroupCellRendererCtrl);return o.init(t,r.current,h.current,f.current,g.current,p,e),function(){n.destroyBean(o)}}));var k=s.useMemo((function(){return"ag-cell-wrapper "+O.toString()}),[O]),G=s.useMemo((function(){return"ag-group-expanded "+A.toString()}),[A]),H=s.useMemo((function(){return"ag-group-contracted "+N.toString()}),[N]),W=s.useMemo((function(){return"ag-group-checkbox "+M.toString()}),[M]),V=v&&v.componentFromFramework,j=V?v.componentClass:void 0,B=null==v&&null!=E;return s.default.createElement("span",o({className:k,ref:r},e.colDef?{}:{role:"gridcell"}),s.default.createElement("span",{className:G,ref:f}),s.default.createElement("span",{className:H,ref:g}),s.default.createElement("span",{className:W,ref:h}),s.default.createElement("span",{className:"ag-group-value",ref:d},B&&s.default.createElement(s.default.Fragment,null,E),V&&s.default.createElement(j,o({},v.params))),s.default.createElement("span",{className:"ag-group-child-count"},w))}));t.default=p},4148:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(6817),u=i(n(7664)),c=i(n(3930)),p=n(2724),d=n(8285),h=n(1622);!function(e){e[e.ShowValue=0]="ShowValue",e[e.EditValue=1]="EditValue"}(t.CellCompState||(t.CellCompState={}));t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=e.cellCtrl,r=e.printLayout,i=e.editingRow,f=a.useState(),g=f[0],m=f[1],v=a.useState(),y=v[0],C=v[1],w=a.useState(1),_=w[0],b=w[1],E=a.useState(new l.CssClasses),S=E[0],R=E[1],O=a.useState(),P=O[0],T=O[1],A=a.useState(),D=A[0],x=A[1],N=a.useState(),L=N[0],I=N[1],M=a.useState(),F=M[0],k=M[1],G=a.useState(),H=G[0],W=G[1],V=a.useState(),j=V[0],B=V[1],z=a.useState(!1),U=z[0],K=z[1],q=a.useState(!1),Y=q[0],Z=q[1],$=a.useState(!1),X=$[0],Q=$[1],J=a.useState(),ee=J[0],te=J[1],ne=a.useMemo((function(){return n.isForceWrapper()}),[]),oe=a.useRef(null),re=a.useRef(null),ie=a.useRef(),se=a.useRef(),ae=a.useRef(),le=a.useState(0),ue=le[0],ce=le[1],pe=a.useCallback((function(e){ae.current=e,ce((function(e){return e+1}))}),[]),de=a.useRef(),he=a.useState(0),fe=he[0],ge=he[1],me=a.useCallback((function(e){de.current=e,ge((function(e){return e+1}))}),[]),ve=null!=g&&(U||X||Y),ye=ne||ve,Ce=a.useCallback((function(e,t){(se.current=t,t)&&(!function(e,t,n){var o=n.getColumn();if(!e&&t.isPopup&&t.isPopup()){var r="AG Grid: Found an issue in column "+o.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.";s._.doOnce((function(){return console.warn(r)}),"jsEditorComp-isPopup-"+n.getColumn().getColId())}if(e&&t.getPopupPosition&&null!=t.getPopupPosition()){var i="AG Grid: Found an issue in column "+o.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.";s._.doOnce((function(){return console.warn(i)}),"jsEditorComp-getPopupPosition-"+n.getColumn().getColId())}}(e,t,n),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout((function(){return n.stopEditing()}),0))}),[]),we=a.useCallback((function(e){return Ce(!0,e)}),[]),_e=a.useCallback((function(e){return Ce(!1,e)}),[]);c.default(g,ye,de.current,fe,ie,oe);var be=a.useRef();a.useEffect((function(){var e=be.current,t=g;if(be.current=g,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails){var n=e.compDetails,o=t.compDetails;if(n.componentClass==o.componentClass)if(null!=re.current&&null!=re.current.refresh)1!=re.current.refresh(o.params)&&b((function(e){return e+1}))}}),[g]),a.useEffect((function(){if(y&&!y.compDetails.componentFromFramework){var e=y.compDetails,n=!0===y.popup,o=d.createSyncJsComp(e);if(o){var r=o.getGui();return Ce(n,o),n||(oe.current.appendChild(r),o.afterGuiAttached&&o.afterGuiAttached()),te(o),function(){t.destroyBean(o),Ce(n,void 0),te(void 0),r&&r.parentElement&&r.parentElement.removeChild(r)}}}}),[y]),a.useEffect((function(){if(n&&t&&(I(ae.current?"cell-"+n.getInstanceId():void 0),ae.current&&ye)){var e=[],o=function(n){if(n){var o=n.getGui();ae.current.insertAdjacentElement("afterbegin",o),e.push((function(){t.destroyBean(n),s._.removeFromParent(o)}))}return n};return U&&o(n.createSelectionCheckbox()),X&&o(n.createDndSource()),Y&&o(n.createRowDragComp()),function(){e.forEach((function(e){e()}))}}}),[ye,X,Y,U,ue]),h.useEffectOnce((function(){if(n){var e={addOrRemoveCssClass:function(e,t){return R((function(n){return n.setClass(e,t)}))},setUserStyles:function(e){return T(e)},getFocusableElement:function(){return oe.current},setTabIndex:function(e){return x(e)},setRole:function(e){return k(e)},setColId:function(e){return W(e)},setTitle:function(e){return B(e)},setIncludeSelection:function(e){return K(e)},setIncludeRowDrag:function(e){return Z(e)},setIncludeDndSource:function(e){return Q(e)},getCellEditor:function(){return se.current||null},getCellRenderer:function(){return re.current?re.current:ie.current},getParentOfValue:function(){return de.current?de.current:ae.current?ae.current:oe.current},setRenderDetails:function(e,t,n){m({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(C({compDetails:e,popup:t,popupPosition:n}),t||m(void 0)):C(void 0)}},t=ae.current||void 0;n.setComp(e,oe.current,t,r,i)}}));var Ee=a.useMemo((function(){return!!(g&&g.compDetails&&g.compDetails.componentFromFramework&&l.isComponentStateless(g.compDetails.componentClass))}),[g]),Se=a.useMemo((function(){var e=S.toString();return ye||(e+=" ag-cell-value"),e}),[S,ve]),Re=a.useMemo((function(){return n.getInstanceId()}),[]),Oe=function(){return a.default.createElement(a.default.Fragment,null,null!=g&&function(e,t,n,r,i,s,l){var u=e.compDetails,c=e.value,p=!u,d=u&&u.componentFromFramework,h=u&&u.componentClass,f=c&&c.toString?c.toString():c,g=function(){return a.default.createElement(a.default.Fragment,null,p&&a.default.createElement(a.default.Fragment,null,f),d&&!s&&a.default.createElement(h,o({},u.params,{key:t,ref:r})),d&&s&&a.default.createElement(h,o({},u.params,{key:t})))};return a.default.createElement(a.default.Fragment,null,i?a.default.createElement("span",{role:"presentation",id:"cell-"+n,className:"ag-cell-value",ref:l},g()):g())}(g,_,Re,re,ye,Ee,me),null!=y&&function(e,t,n,r,i,s){var l=e.compDetails,c=l.componentClass,p=l.componentFromFramework&&!e.popup,d=l.componentFromFramework&&e.popup,h=!l.componentFromFramework&&e.popup;return a.default.createElement(a.default.Fragment,null,p&&a.default.createElement(c,o({},e.compDetails.params,{ref:t})),d&&a.default.createElement(u.default,{editDetails:e,cellCtrl:i,eParentCell:r,wrappedContent:a.default.createElement(c,o({},e.compDetails.params,{ref:n}))}),h&&s&&a.default.createElement(u.default,{editDetails:e,cellCtrl:i,eParentCell:r,jsChildComp:s}))}(y,_e,we,oe.current,n,ee))};return a.default.createElement("div",{ref:oe,className:Se,style:P,tabIndex:D,role:F,"col-id":H,title:j,"aria-describedby":L},ye?a.default.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:pe},Oe()):Oe())}))},7664:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1167),i=o(n(2791)),s=n(4164),a=n(2724),l=n(1622);t.default=i.memo((function(e){var t=i.useState(),n=t[0],o=t[1],u=i.useContext(a.BeansContext),c=u.context,p=u.popupService,d=u.gridOptionsWrapper;return l.useEffectOnce((function(){var t=e.editDetails,n=e.cellCtrl,i=e.eParentCell,s=t.compDetails,a=d.isStopEditingWhenCellsLoseFocus(),l=c.createBean(new r.PopupEditorWrapper(s.params)),u=l.getGui();if(e.jsChildComp){var h=e.jsChildComp.getGui();h&&u.appendChild(h)}var f={column:n.getColumn(),rowNode:n.getRowNode(),type:"popupCellEditor",eventSource:i,ePopup:u,keepWithinBounds:!0},g="under"===t.popupPosition?p.positionPopupUnderComponent.bind(p,f):p.positionPopupOverComponent.bind(p,f),m=d.getLocaleTextFunc(),v=p.addPopup({modal:a,eChild:u,closeOnEsc:!0,closedCallback:function(){n.onPopupEditorClosed()},anchorToElement:i,positionCallback:g,ariaLabel:m("ariaLabelCellEditor","Cell Editor")}),y=v?v.hideFunc:void 0;return o(l),e.jsChildComp&&e.jsChildComp.afterGuiAttached&&e.jsChildComp.afterGuiAttached(),function(){null!=y&&y(),c.destroyBean(l)}})),i.default.createElement(i.default.Fragment,null,n&&e.wrappedContent&&s.createPortal(e.wrappedContent,n.getGui()))}))},3930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2791),r=n(2724),i=n(1622);t.default=function(e,t,n,s,a,l){var u=o.useContext(r.BeansContext),c=u.context,p=(u.userComponentFactory,o.useCallback((function(){var e=a.current;if(e){var t=e.getGui();t&&t.parentElement&&t.parentElement.removeChild(t),c.destroyBean(e),a.current=void 0}}),[]));o.useEffect((function(){var o=null!=e,r=e&&e.compDetails&&!e.compDetails.componentFromFramework;if(o&&r&&!(t&&null==n)){var i=e.compDetails;if(a.current){var s=a.current,u=!!(null!=s.refresh&&0==e.force)&&s.refresh(i.params);if(!0===u||void 0===u)return;p()}var c=i.newAgStackInstance();if(c){var d=c.resolveNow(null,(function(e){return e}));if(d){var h=d.getGui();if(h)(t?n:l.current).appendChild(h),a.current=d}}}else p()}),[e,t,s]),i.useEffectOnce((function(){return p}))}},6556:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=o(n(2791)),a=n(2724),l=r(n(332)),u=r(n(1008)),c=r(n(961)),p=n(1622),d=n(6817);t.default=s.memo((function(){var e=s.useContext(a.BeansContext),t=e.context,n=e.agStackComponentsRegistry,o=e.resizeObserverService,r=s.useState(""),h=r[0],f=r[1],g=s.useState(0),m=g[0],v=g[1],y=s.useState(0),C=y[0],w=y[1],_=s.useState(0),b=_[0],E=_[1],S=s.useState(0),R=S[0],O=S[1],P=s.useState(""),T=P[0],A=P[1],D=s.useState(""),x=D[0],N=D[1],L=s.useState(null),I=L[0],M=L[1],F=s.useState(null),k=F[0],G=F[1],H=s.useState(""),W=H[0],V=H[1],j=s.useState(null),B=j[0],z=j[1],U=s.useState("ag-layout-normal"),K=U[0],q=U[1],Y=s.useRef(null),Z=s.useRef(null),$=s.useRef(null),X=s.useRef(null);u.default(" AG Grid Body ",Y),u.default(" AG Pinned Top ",Z),u.default(" AG Middle ",$),u.default(" AG Pinned Bottom ",X),p.useEffectOnce((function(){var e=[],r=[];if(t){var s=function(o){var r=n.getComponentClass(o),i=t.createBean(new r);return e.push(i),i};Y.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),Y.current.appendChild(s("AG-FAKE-HORIZONTAL-SCROLL").getGui()),Y.current.appendChild(document.createComment(" AG Overlay Wrapper ")),Y.current.appendChild(s("AG-OVERLAY-WRAPPER").getGui());var a={setRowAnimationCssOnBodyViewport:f,setColumnCount:v,setRowCount:w,setTopHeight:E,setBottomHeight:O,setTopDisplay:A,setBottomDisplay:N,setColumnMovingCss:M,updateLayoutClasses:q,setAlwaysVerticalScrollClass:G,setPinnedTopBottomOverflowY:V,setCellSelectableCss:z,registerBodyViewportResizeListener:function(e){var t=o.observeResize($.current,e);r.push((function(){return t()}))}},l=t.createBean(new i.GridBodyCtrl);return e.push(l),l.setComp(a,Y.current,$.current,Z.current,X.current),function(){t.destroyBeans(e),r.forEach((function(e){return e()}))}}}));var Q=s.useMemo((function(){return d.classesList("ag-root","ag-unselectable",I,K)}),[I,K]),J=s.useMemo((function(){return d.classesList("ag-body-viewport",h,K,k,B)}),[h,K,k,B]),ee=s.useMemo((function(){return d.classesList("ag-floating-top",B)}),[B]),te=s.useMemo((function(){return d.classesList("ag-floating-bottom",B)}),[B]),ne=s.useMemo((function(){return{height:b,minHeight:b,display:T,overflowY:W}}),[b,T,W]),oe=s.useMemo((function(){return{height:R,minHeight:R,display:x,overflowY:W}}),[R,x,W]),re=function(e){return s.default.createElement(c.default,{name:e,key:e+"-container"})},ie=function(e){var t=e.section,n=e.children,o=e.className,r=e.style;return s.default.createElement("div",{ref:t,className:o,role:"presentation",style:r},n.map(re))};return s.default.createElement("div",{ref:Y,className:Q,role:"grid","aria-colcount":m,"aria-rowcount":C},s.default.createElement(l.default,null),ie({section:Z,className:ee,style:ne,children:[i.RowContainerName.TOP_LEFT,i.RowContainerName.TOP_CENTER,i.RowContainerName.TOP_RIGHT,i.RowContainerName.TOP_FULL_WIDTH]}),ie({section:$,className:J,children:[i.RowContainerName.LEFT,i.RowContainerName.CENTER,i.RowContainerName.RIGHT,i.RowContainerName.FULL_WIDTH]}),ie({section:X,className:te,style:oe,children:[i.RowContainerName.BOTTOM_LEFT,i.RowContainerName.BOTTOM_CENTER,i.RowContainerName.BOTTOM_RIGHT,i.RowContainerName.BOTTOM_FULL_WIDTH]}))}))},3970:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=o(n(2791)),a=n(2724),l=r(n(6556)),u=r(n(1008)),c=r(n(2051)),p=n(1622),d=n(6817);t.default=s.memo((function(e){var t=e.context,n=s.useState(""),o=n[0],r=n[1],h=s.useState(""),f=h[0],g=h[1],m=s.useState(""),v=m[0],y=m[1],C=s.useState(null),w=C[0],_=C[1],b=s.useState(null),E=b[0],S=b[1],R=s.useState(!1),O=R[0],P=R[1],T=s.useState(),A=T[0],D=T[1],x=s.useRef(null),N=s.useRef(null),L=s.useRef(),I=s.useRef(null),M=s.useRef((function(){})),F=s.useCallback((function(){}),[]),k=s.useMemo((function(){return t.getBean("beans")}),[]);u.default(" AG Grid ",N),p.useEffectOnce((function(){var e=x.current=t.createBean(new i.GridCtrl);return function(){t.destroyBean(e),x.current=null}})),p.useEffectOnce((function(){var e=x.current;M.current=e.focusInnerElement.bind(e);var t={destroyGridUi:function(){},setRtlClass:r,addOrRemoveKeyboardFocusClass:function(e){return g(e?i.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){L.current.forceFocusOutOfContainer()},updateLayoutClasses:y,getFocusableContainers:function(){var e=[],t=N.current.querySelector(".ag-root"),n=N.current.querySelector(".ag-side-bar");return t&&e.push(t),n&&e.push(n),e},setCursor:_,setUserSelect:S};e.setComp(t,N.current,N.current),P(!0)})),s.useEffect((function(){if(A){var e=x.current,n=[],o=k.agStackComponentsRegistry,r=o.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),i=o.getComponentClass("AG-SIDE-BAR"),s=o.getComponentClass("AG-STATUS-BAR"),a=o.getComponentClass("AG-WATERMARK"),l=o.getComponentClass("AG-PAGINATION"),u=[],c=N.current,p=I.current;if(e.showDropZones()&&r){var d=t.createBean(new r),h=d.getGui();c.insertAdjacentElement("afterbegin",h),u.push(h),n.push(d)}if(e.showSideBar()&&i){var f=t.createBean(new i),g=(h=f.getGui(),p.querySelector(".ag-tab-guard-bottom"));g&&(g.insertAdjacentElement("beforebegin",h),u.push(h)),n.push(f)}if(e.showStatusBar()&&s){var m=t.createBean(new s);h=m.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(m)}if(l){var v=t.createBean(new l);h=v.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(v)}if(e.showWatermark()&&a){var y=t.createBean(new a);h=y.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(y)}return function(){t.destroyBeans(n),u.forEach((function(e){e.parentElement&&e.parentElement.removeChild(e)}))}}}),[A]);var G=s.useMemo((function(){return d.classesList("ag-root-wrapper",o,f,v)}),[o,f,v]),H=s.useMemo((function(){return d.classesList("ag-root-wrapper-body","ag-focus-managed",v)}),[v]),W=s.useMemo((function(){return{userSelect:null!=E?E:"",WebkitUserSelect:null!=E?E:"",cursor:null!=w?w:""}}),[E,w]),V=I.current,j=s.useCallback((function(e){L.current=e,D(!0)}),[]);return s.default.createElement("div",{ref:N,className:G,style:W},s.default.createElement("div",{className:H,ref:I},O&&V&&s.default.createElement(a.BeansContext.Provider,{value:k},s.default.createElement(c.default,{ref:j,eFocusableElement:V,onTabKeyDown:F,gridCtrl:x.current},s.default.createElement(l.default,null)))))}))},332:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=r(n(1212)),c=n(1622);t.default=i.memo((function(){var e=i.useState(new l.CssClasses),t=e[0],n=e[1],o=i.useState(),r=o[0],p=o[1],d=i.useContext(s.BeansContext).context,h=i.useRef(null);c.useEffectOnce((function(){var e={addOrRemoveCssClass:function(e,t){return n((function(n){return n.setClass(e,t)}))},setHeightAndMinHeight:function(e){return p(e)}},t=d.createBean(new a.GridHeaderCtrl);return t.setComp(e,h.current,h.current),function(){d.destroyBean(t)}}));var f=i.useMemo((function(){return"ag-header "+t.toString()}),[t]),g=i.useMemo((function(){return{height:r,minHeight:r}}),[r]);return i.default.createElement("div",{ref:h,className:f,style:g,role:"presentation"},i.default.createElement(u.default,{pinned:a.Constants.PINNED_LEFT}),i.default.createElement(u.default,{pinned:null}),i.default.createElement(u.default,{pinned:a.Constants.PINNED_RIGHT}))}))},273:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=n(8285),c=n(1622);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(),r=n[0],p=n[1],d=i.useState(),h=d[0],f=d[1],g=i.useState(),m=g[0],v=g[1],y=i.useState(),C=y[0],w=y[1],_=i.useState(),b=_[0],E=_[1],S=i.useState(),R=S[0],O=S[1],P=i.useRef(null),T=i.useRef(null),A=i.useRef(),D=e.ctrl,x=i.useMemo((function(){return new a.CssClassManager((function(){return P.current}))}),[]);c.useEffectOnce((function(){var e={setWidth:function(e){return p(e)},addOrRemoveCssClass:function(e,t){return x.addOrRemoveCssClass(e,t)},setColId:function(e){return v(e)},setTitle:function(e){return f(e)},setAriaDescription:function(e){return E(e)},setAriaSort:function(e){return w(e)},setUserCompDetails:function(e){return O(e)},getUserCompInstance:function(){return A.current||void 0}};D.setComp(e,P.current,T.current);var t=D.getSelectAllGui();T.current.insertAdjacentElement("afterend",t)})),i.useEffect((function(){return u.showJsComp(R,t,P.current,A)}),[R]),i.useEffect((function(){var e=void 0;P.current.childNodes.forEach((function(t){null!=t&&t!==T.current&&(e=t)})),D.setDragSource(e)}),[R]);var N=i.useMemo((function(){return{width:r}}),[r]),L=i.useMemo((function(){var e;return!!((null===(e=R)||void 0===e?void 0:e.componentFromFramework)&&l.isComponentStateless(R.componentClass))}),[R]),I=R&&R.componentFromFramework,M=R&&R.componentClass;return i.default.createElement("div",{ref:P,className:"ag-header-cell",style:N,title:h,"col-id":m,"aria-sort":C,role:"columnheader",tabIndex:-1,"aria-description":b},i.default.createElement("div",{ref:T,className:"ag-header-cell-resize",role:"presentation"}),I&&L&&i.default.createElement(M,o({},R.params)),I&&!L&&i.default.createElement(M,o({},R.params,{ref:A})))}))},1478:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=n(8285),c=n(1622);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(new l.CssClasses),r=n[0],p=n[1],d=i.useState(new l.CssClasses),h=d[0],f=d[1],g=i.useState(new l.CssClasses),m=g[0],v=g[1],y=i.useState(),C=y[0],w=y[1],_=i.useState(),b=_[0],E=_[1],S=i.useRef(null),R=i.useRef(null),O=i.useRef(null),P=i.useRef(null),T=i.useRef(!1),A=i.useRef(),D=i.useRef();c.useEffectOnce((function(){D.current=new a.AgPromise((function(e){A.current=e}))}));var x=function(e){T.current||null!=e&&(A.current&&A.current(e),T.current=!0)},N=e.ctrl;c.useEffectOnce((function(){var e={addOrRemoveCssClass:function(e,t){return p((function(n){return n.setClass(e,t)}))},addOrRemoveBodyCssClass:function(e,t){return f((function(n){return n.setClass(e,t)}))},addOrRemoveButtonWrapperCssClass:function(e,t){return v((function(n){return n.setClass(e,t)}))},setWidth:function(e){return w(e)},setCompDetails:function(e){return E(e)},getFloatingFilterComp:function(){return D.current?D.current:null},setMenuIcon:function(e){return P.current.appendChild(e)}};N.setComp(e,S.current,P.current,R.current)})),i.useEffect((function(){return u.showJsComp(b,t,R.current,x)}),[b]);var L=i.useMemo((function(){return{width:C}}),[C]),I=i.useMemo((function(){return"ag-header-cell ag-floating-filter "+r.toString()}),[r]),M=i.useMemo((function(){return h.toString()}),[h]),F=i.useMemo((function(){return"ag-floating-filter-button "+m.toString()}),[h]),k=i.useMemo((function(){return!!(b&&b.componentFromFramework&&l.isComponentStateless(b.componentClass))}),[b]),G=b&&b.componentFromFramework,H=b&&b.componentClass;return i.default.createElement("div",{ref:S,className:I,style:L,role:"gridcell",tabIndex:-1},i.default.createElement("div",{ref:R,className:M,role:"presentation"},G&&k&&i.default.createElement(H,o({},b.params)),G&&!k&&i.default.createElement(H,o({},b.params,{ref:x}))),i.default.createElement("div",{ref:O,className:F,role:"presentation"},i.default.createElement("button",{ref:P,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}))},5267:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(8285),l=n(1622),u=n(6817);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(new u.CssClasses),r=n[0],c=n[1],p=i.useState(new u.CssClasses),d=p[0],h=p[1],f=i.useState(),g=f[0],m=f[1],v=i.useState(),y=v[0],C=v[1],w=i.useState(),_=w[0],b=w[1],E=i.useState(),S=E[0],R=E[1],O=i.useState(),P=O[0],T=O[1],A=i.useRef(null),D=i.useRef(null),x=e.ctrl;l.useEffectOnce((function(){var e={setWidth:function(e){return m(e)},addOrRemoveCssClass:function(e,t){return c((function(n){return n.setClass(e,t)}))},setColId:function(e){return b(e)},setTitle:function(e){return C(e)},setUserCompDetails:function(e){return T(e)},addOrRemoveResizableCssClass:function(e,t){return h((function(n){return n.setClass(e,t)}))},setAriaExpanded:function(e){return R(e)}};x.setComp(e,A.current,D.current)})),i.useEffect((function(){return a.showJsComp(P,t,A.current)}),[P]),i.useEffect((function(){var e=void 0;A.current.childNodes.forEach((function(t){null!=t&&t!==D.current&&(e=t)})),e&&x.setDragSource(e)}),[P]);var N=i.useMemo((function(){return{width:g}}),[g]),L=i.useMemo((function(){return"ag-header-group-cell "+r.toString()}),[r]),I=i.useMemo((function(){return"ag-header-cell-resize "+d.toString()}),[d]),M=P&&P.componentFromFramework,F=P&&P.componentClass;return i.default.createElement("div",{ref:A,className:L,style:N,title:y,"col-id":_,role:"columnheader",tabIndex:-1,"aria-expanded":S},M&&i.default.createElement(F,o({},P.params)),i.default.createElement("div",{ref:D,className:I}))}))},9979:function(e,t,n){"use strict";var o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(2724),u=i(n(273)),c=i(n(5267)),p=i(n(1478)),d=n(1622);t.default=a.memo((function(e){var t=a.useContext(l.BeansContext).gridOptionsWrapper,n=a.useState(),r=n[0],i=n[1],h=a.useState(),f=h[0],g=h[1],m=a.useState(),v=m[0],y=m[1],C=a.useState(),w=C[0],_=C[1],b=a.useState(),E=b[0],S=b[1],R=a.useState([]),O=R[0],P=R[1],T=a.useRef(null),A=e.ctrl,D=A.getType()===s.HeaderRowType.COLUMN,x=A.getType()===s.HeaderRowType.COLUMN_GROUP,N=A.getType()===s.HeaderRowType.FLOATING_FILTER,L=a.useCallback((function(e,n){if(t.isEnsureDomOrder())return n;var r=s._.mapById(e,(function(e){return e.getInstanceId()})),i=s._.mapById(n,(function(e){return e.getInstanceId()})),a=e.filter((function(e){return i.has(e.getInstanceId())})),l=n.filter((function(e){return!r.has(e.getInstanceId())}));return o(a,l)}),[]);d.useEffectOnce((function(){var e={setTransform:function(e){return i(e)},setHeight:function(e){return g(e)},setTop:function(e){return y(e)},setHeaderCtrls:function(e){return P((function(t){return L(t,e)}))},setWidth:function(e){return _(e)},setAriaRowIndex:function(e){return S(e)}};A.setComp(e)}));var I=a.useMemo((function(){return{transform:r,height:f,top:v,width:w}}),[r,f,v,w]),M=a.useMemo((function(){var e=["ag-header-row"];return D&&e.push("ag-header-row-column"),x&&e.push("ag-header-row-column-group"),N&&e.push("ag-header-row-column-filter"),e.join(" ")}),[]),F=a.useCallback((function(e){switch(A.getType()){case s.HeaderRowType.COLUMN_GROUP:return a.default.createElement(c.default,{ctrl:e,key:e.getInstanceId()});case s.HeaderRowType.FLOATING_FILTER:return a.default.createElement(p.default,{ctrl:e,key:e.getInstanceId()});default:return a.default.createElement(u.default,{ctrl:e,key:e.getInstanceId()})}}),[]);return a.default.createElement("div",{ref:T,className:M,role:"row",style:I,"aria-rowindex":E},O.map(F))}))},1212:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=r(n(9979)),c=n(1622);t.default=i.memo((function(e){var t=i.useState(new l.CssClasses),n=t[0],o=t[1],r=i.useState(),p=r[0],d=r[1],h=i.useState(),f=h[0],g=h[1],m=i.useState(),v=m[0],y=m[1],C=i.useState([]),w=C[0],_=C[1],b=i.useContext(s.BeansContext).context,E=i.useRef(null),S=e.pinned===a.Constants.PINNED_LEFT,R=e.pinned===a.Constants.PINNED_RIGHT,O=!S&&!R;c.useEffectOnce((function(){var t={addOrRemoveCssClass:function(e,t){return o((function(n){return n.setClass(e,t)}))},setCtrls:function(e){return _(e)},setCenterWidth:function(e){return d(e)},setContainerTransform:function(e){return g(e)},setPinnedContainerWidth:function(e){return y(e)}},n=b.createBean(new a.HeaderRowContainerCtrl(e.pinned));return n.setComp(t,E.current),function(){b.destroyBean(n)}}));var P=i.useMemo((function(){return n.toString()}),[n]),T=function(){return w.map((function(e){return i.default.createElement(u.default,{ctrl:e,key:e.getInstanceId()})}))},A=i.useMemo((function(){return{width:p,transform:f}}),[p,f]),D=i.useMemo((function(){return{width:v,minWidth:v,maxWidth:v}}),[v]);return i.default.createElement(i.default.Fragment,null,S&&i.default.createElement("div",{ref:E,className:"ag-pinned-left-header "+P,role:"presentation",style:D},T()),R&&i.default.createElement("div",{ref:E,className:"ag-pinned-right-header "+P,role:"presentation",style:D},T()),O&&i.default.createElement("div",{ref:E,className:"ag-header-viewport "+P,role:"presentation"},i.default.createElement("div",{className:"ag-header-container",role:"rowgroup",style:A},T())))}))},8285:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showJsComp=function(e,t,o,r){if(!(!e||e.componentFromFramework)){var i=e.newAgStackInstance();if(i){var s,a,l=!1;return i.then((function(e){l?t.destroyBean(e):(a=(s=e).getGui(),o.appendChild(a),n(r,s))})),function(){l=!0,s&&(a&&a.parentElement&&a.parentElement.removeChild(a),t.destroyBean(s),r&&n(r,void 0))}}}};var n=function(e,t){e&&(e instanceof Function?e(t):e.current=t)};t.createSyncJsComp=function(e){var t=e.newAgStackInstance();if(t)return t.resolveNow(null,(function(e){return e}))}},1008:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1622);t.default=function(e,t){o.useEffectOnce((function(){var n=t.current,o=n.parentElement;if(o){var r=document.createComment(e);return o.insertBefore(r,n),function(){o.removeChild(r)}}}))}},2939:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(2791)),l=n(1167),u=n(8285),c=n(6817),p=n(2724),d=s(n(4148)),h=n(1622);t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=e.rowCtrl,i=e.containerType,s=a.useState(),f=s[0],g=s[1],m=a.useState(),v=m[0],y=m[1],C=a.useState(),w=C[0],_=C[1],b=a.useState(),E=b[0],S=b[1],R=a.useState(),O=R[0],P=R[1],T=a.useState(),A=T[0],D=T[1],x=a.useState({list:[],instanceIdMap:new Map}),N=x[0],L=x[1],I=a.useState(),M=I[0],F=I[1],k=a.useState(!1),G=k[0],H=k[1],W=a.useState(n.getInitialRowTop()),V=W[0],j=W[1],B=a.useState(n.getInitialTransform()),z=B[0],U=B[1],K=a.useRef(null),q=a.useRef(),Y=a.useRef(!1),Z=a.useState(0),$=Z[0],X=Z[1];a.useEffect((function(){var e;if(!Y.current&&M&&!($>10)){var t=null===(e=K.current)||void 0===e?void 0:e.firstChild;t?(n.setupDetailRowAutoHeight(t),Y.current=!0):X((function(e){return e+1}))}}),[M,$]);var Q=a.useMemo((function(){return new l.CssClassManager((function(){return K.current}))}),[]);h.useEffectOnce((function(){if(n.isAlive()){var e={setTop:function(e){return j(e)},setTransform:function(e){return U(e)},addOrRemoveCssClass:function(e,t){return Q.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return H(e)},setRowIndex:function(e){return g(e)},setRowId:function(e){return y(e)},setRowBusinessKey:function(e){return S(e)},setTabIndex:function(e){return P(e)},setUserStyles:function(e){return D(e)},setRole:function(e){return _(e)},setCellCtrls:function(e){return L((function(t){return function(e,t,n){if(n){var o={list:t,instanceIdMap:new Map};return t.forEach((function(e){return o.instanceIdMap.set(e.getInstanceId(),e)})),o}var i=[],s=[],a=new Map,l=new Map;return t.forEach((function(e){return l.set(e.getInstanceId(),e)})),e.list.forEach((function(e){var t=e.getInstanceId();l.has(t)&&(i.push(e),a.set(t,e))})),t.forEach((function(t){var n=t.getInstanceId();e.instanceIdMap.has(n)||(s.push(t),a.set(n,t))})),{list:r(i,s),instanceIdMap:a}}(t,e,G)}))},showFullWidth:function(e){return F(e)},getFullWidthCellRenderer:function(){return q.current}};n.setComp(e,K.current,i)}})),a.useEffect((function(){return u.showJsComp(M,t,K.current,q)}),[M]);var J=a.useMemo((function(){var e={top:V,transform:z};return Object.assign(e,A),e}),[V,z,A]),ee=M&&M.componentFromFramework,te=null!=N,ne=a.useMemo((function(){var e;return!!((null===(e=M)||void 0===e?void 0:e.componentFromFramework)&&c.isComponentStateless(M.componentClass))}),[M]);return a.default.createElement("div",{ref:K,role:w,style:J,"row-index":f,"row-id":v,"row-business-key":E,tabIndex:O},te&&N.list.map((function(e){return a.default.createElement(d.default,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})})),ee&&function(){var e=M.componentClass;return a.default.createElement(a.default.Fragment,null,ne&&a.default.createElement(e,o({},M.params)),!ne&&a.default.createElement(e,o({},M.params,{ref:q})))}())}))},961:function(e,t,n){"use strict";var o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(6817),u=i(n(1008)),c=i(n(2939)),p=n(2724),d=n(1622);t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=a.useState(""),r=n[0],i=n[1],h=a.useState([]),f=h[0],g=h[1],m=a.useState([]),v=m[0],y=m[1],C=a.useState(!1),w=C[0],_=C[1],b=a.useState(""),E=b[0],S=b[1],R=e.name,O=a.useMemo((function(){return s.getRowContainerTypeForName(R)}),[R]),P=a.useRef(null),T=a.useRef(null),A=a.useRef(null),D=a.useMemo((function(){return s.RowContainerCtrl.getRowContainerCssClasses(R)}),[R]),x=a.useMemo((function(){return l.classesList(D.wrapper)}),[]),N=a.useMemo((function(){return l.classesList(D.viewport)}),[]),L=a.useMemo((function(){return l.classesList(D.container)}),[]),I=R===s.RowContainerName.CENTER,M=R===s.RowContainerName.TOP_CENTER||R===s.RowContainerName.BOTTOM_CENTER,F=!I&&!M,k=I?P:M?T:A;u.default(" AG Row Container "+R+" ",k),a.useEffect((function(){g((function(e){if(w)return v;var t=e.filter((function(e){return v.indexOf(e)>=0})),n=v.filter((function(e){return t.indexOf(e)<0}));return o(t,n)}))}),[w,v]),d.useEffectOnce((function(){var e=[],n={setViewportHeight:i,setRowCtrls:function(e){return y(e)},setDomOrder:function(e){return _(e)},setContainerWidth:function(e){return S(e)}},o=t.createBean(new s.RowContainerCtrl(R));return e.push(o),o.setComp(n,A.current,T.current,P.current),function(){t.destroyBeans(e)}}));var G=a.useMemo((function(){return{height:r}}),[r]),H=a.useMemo((function(){return{width:E}}),[E]),W=function(){return a.default.createElement("div",{className:L,ref:A,role:v.length?"rowgroup":"presentation",style:H},f.map((function(e){return a.default.createElement(c.default,{rowCtrl:e,containerType:O,key:e.getInstanceId()})})))};return a.default.createElement(a.default.Fragment,null,I&&a.default.createElement("div",{className:x,ref:P,role:"presentation"},a.default.createElement("div",{className:N,ref:T,role:"presentation",style:G},W())),M&&a.default.createElement("div",{className:N,ref:T,role:"presentation",style:G},W()),F&&W())}))},2051:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2791)),i=n(1167),s=n(2724),a=n(1622),l=r.forwardRef((function(e,t){var n=e.children,o=e.eFocusableElement,l=e.onTabKeyDown,u=e.gridCtrl,c=r.useContext(s.BeansContext).context,p=r.useRef(null),d=r.useRef(null),h=r.useRef(),f=r.useState(),g=f[0],m=f[1];r.useImperativeHandle(t,(function(){return{forceFocusOutOfContainer:function(){h.current.forceFocusOutOfContainer()}}})),a.useEffectOnce((function(){var e=p.current,t=d.current,n={setTabIndex:function(e){return m(null==e?void 0:parseInt(e,10))}},r=h.current=c.createBean(new i.TabGuardCtrl({comp:n,eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:l,focusInnerElement:function(e){return u.focusInnerElement(e)}}));return function(){c.destroyBean(r)}}));var v=function(e){return r.default.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:g,ref:"top"===e?p:d})};return r.default.createElement(r.default.Fragment,null,v("top"),n,v("bottom"))}));t.default=r.memo(l)},1622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2791);t.useEffectOnce=function(e){var t=o.useRef(),n=o.useRef(!1),r=o.useRef(!1),i=o.useState(0),s=(i[0],i[1]);n.current&&(r.current=!0),o.useEffect((function(){return n.current||(t.current=e(),n.current=!0),s((function(e){return e+1})),function(){r.current&&t.current&&t.current()}}),[])}},6817:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.classesList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return null!=e&&""!==e}));return n.join(" ")};var o=function(){function e(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.classesMap={},t.forEach((function(t){e.classesMap[t]=!0}))}return e.prototype.setClass=function(t,o){if(!!this.classesMap[t]==o)return this;var r=new e;return r.classesMap=n({},this.classesMap),r.classesMap[t]=o,r},e.prototype.toString=function(){var e=this;return Object.keys(this.classesMap).filter((function(t){return e.classesMap[t]})).join(" ")},e}();t.CssClasses=o,t.isComponentStateless=function(e){return"function"===typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"===typeof e&&e.$$typeof===("function"===typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}},6745:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(2791)),l=s(n(2007)),u=i(n(1167)),c=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n}return o(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return a.default.Children.map(e,(function(e){return e?t.toColDef(e.props):null}))},t.toColDef=function(e){var n=e.children,o=r(e,["children"]);return t.hasChildColumns(n)&&(o.children=t.mapChildColumnDefs(n)),o},t.hasChildColumns=function(e){return a.default.Children.count(e)>0},t}(a.Component);function p(e,t){e.forEach((function(e){c[e]=t}))}t.AgGridColumn=c,p(u.ColDefUtil.BOOLEAN_PROPERTIES,l.default.bool),p(u.ColDefUtil.STRING_PROPERTIES,l.default.string),p(u.ColDefUtil.OBJECT_PROPERTIES,l.default.object),p(u.ColDefUtil.ARRAY_PROPERTIES,l.default.array),p(u.ColDefUtil.NUMBER_PROPERTIES,l.default.number),p(u.ColDefUtil.FUNCTION_PROPERTIES,l.default.func)},4584:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(n=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var o=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),r=function(){function e(){}return e.prototype.areEqual=function(t,n){return e.areEquivalent(e.copy(t),e.copy(n))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!==typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{})},e.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"===typeof e&&isNaN(e)},e.areEquivalent=function(t,n){if(t=e.unwrapStringOrNumber(t),n=e.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!==typeof n)return!1;if(e.isNaN(t)&&e.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"===typeof t)return!1;if("object"!==typeof t||t.$$typeof&&"Symbol(react.element)"===t.$$typeof.toString())return t==n;if(Object.isFrozen(t)||Object.isFrozen(n))return t===n;var o=void 0===t.areEquivPropertyTracking,r=void 0===n.areEquivPropertyTracking;try{var i=void 0;if(o)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===n})))return!0;if(r)n.areEquivPropertyTracking=[];else if(n.areEquivPropertyTracking.some((function(e){return e===t})))return!0;t.areEquivPropertyTracking.push(n),n.areEquivPropertyTracking.push(t);var s={};for(i in t)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in n)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in s)if(!this.areEquivalent(t[i],n[i]))return!1;return!0}finally{o&&delete t.areEquivPropertyTracking,r&&delete n.areEquivPropertyTracking}},e}(),i=function(){function e(){var e;this.strategyMap=((e={})[n.DeepValueCheck]=new r,e[n.IdentityCheck]=new o((function(e,t){return e===t})),e[n.NoCheck]=new o((function(e,t){return!1})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=i},3507:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=0;t.default=function(){return"agPortalKey_"+ ++n}},8665:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2791),a=n(4164),l=n(1167),u=n(294),c=n(8340),p=i(n(3507)),d=function(e){function t(t,n,o){var r=e.call(this,t,n,o)||this;return r.oldPortal=null,r.key=p.default(),r.portalKey=p.default(),r}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new l.AgPromise((function(e){return t.createReactComponent(e)}))},t.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=s.createElement(this.reactComponent,r(r({},e),{key:this.key})),this.portal=a.createPortal(this.reactElement,this.eParentElement,this.portalKey)},t.prototype.createReactComponent=function(e){this.portalManager.mountReactPortal(this.portal,this,(function(t){e(t)}))},t.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},t.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var t=console.error;try{return console.error=function(){},""===c.renderToStaticMarkup(s.createElement(this.reactComponent,e))}catch(n){}finally{console.error=t}return!1},t.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},t.prototype.fallbackMethod=function(e,t){var n=this[e+"Component"];if(n)return n.bind(this)(t)},t.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]},t}(u.ReactComponent);t.NewReactComponent=d},3365:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(t,n,o){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=n||"div",this.parent=t,this.maxComponentCreationTimeMs=o||e.MAX_COMPONENT_CREATION_TIME_IN_MS}return e.prototype.getPortals=function(){return this.portals},e.prototype.destroy=function(){this.destroyed=!0},e.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},e.prototype.getComponentWrappingElement=function(){return this.wrappingElement},e.prototype.mountReactPortal=function(e,t,o){this.portals=n(this.portals,[e]),this.waitForInstance(t,o),this.batchUpdate()},e.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},e.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout((function(){e.destroyed||e.parent.forceUpdate((function(){e.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0)},e.prototype.waitForInstance=function(e,t,n){var o=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout((function(){o.waitForInstance(e,t,n)}))}},e.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,e}();t.PortalManager=o},294:function(e,t){"use strict";var n=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,n,o){var r=e.call(this)||this;return r.portal=null,r.reactComponent=t,r.portalManager=n,r.componentType=o,r.statelessComponent=r.isStateless(r.reactComponent),r}return n(t,e),t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},t.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach((function(t){return e.eParentElement.classList.add(t)})))},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},t.prototype.hasSymbol=function(){return"function"===typeof Symbol&&Symbol.for},t.prototype.isStateless=function(e){return"function"===typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"===typeof e&&e.$$typeof===this.getMemoType()},t.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},t.prototype.callMethod=function(e,t){var n=this,o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(o){var r=o[e];return r?r.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}setTimeout((function(){return n.callMethod(e,t)}))},t.prototype.addMethod=function(e,t){this[e]=t},t}((function(){}));t.ReactComponent=o},9575:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=r(n(5728)),a=r(n(7627)),l=function(e){function t(t){var n=e.call(this)||this;return n.frameworkComponents={agGroupCellRenderer:s.default,agGroupRowRenderer:s.default,agDetailCellRenderer:a.default},n.reactUi=t,n}return o(t,e),t.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},t.prototype.isFrameworkComponent=function(e){if(!e)return!1;var t=e.prototype;return!(t&&"getGui"in t)},t}(i.VanillaFrameworkOverrides);t.ReactFrameworkOverrides=l},2953:function(e,t,n){t.AgGridReact=n(7945).AgGridReact,n(6745).AgGridColumn,n(4584).ChangeDetectionStrategyType,n(2553).AgGridReactUi},4569:function(e,t,n){e.exports=n(8036)},3381:function(e,t,n){"use strict";var o=n(3589),r=n(7297),i=n(9301),s=n(9774),a=n(1804),l=n(9145),u=n(5411),c=n(6789),p=n(4531),d=n(6569),h=n(6261);e.exports=function(e){return new Promise((function(t,n){var f,g=e.data,m=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}o.isFormData(g)&&o.isStandardBrowserEnv()&&delete m["Content-Type"];var C=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+_)}var b=a(e.baseURL,e.url);function E(){if(C){var o="getAllResponseHeaders"in C?l(C.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:o,config:e,request:C};r((function(e){t(e),y()}),(function(e){n(e),y()}),i),C=null}}if(C.open(e.method.toUpperCase(),s(b,e.params,e.paramsSerializer),!0),C.timeout=e.timeout,"onloadend"in C?C.onloadend=E:C.onreadystatechange=function(){C&&4===C.readyState&&(0!==C.status||C.responseURL&&0===C.responseURL.indexOf("file:"))&&setTimeout(E)},C.onabort=function(){C&&(n(new p("Request aborted",p.ECONNABORTED,e,C)),C=null)},C.onerror=function(){n(new p("Network Error",p.ERR_NETWORK,e,C,C)),C=null},C.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",o=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new p(t,o.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,C)),C=null},o.isStandardBrowserEnv()){var S=(e.withCredentials||u(b))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in C&&o.forEach(m,(function(e,t){"undefined"===typeof g&&"content-type"===t.toLowerCase()?delete m[t]:C.setRequestHeader(t,e)})),o.isUndefined(e.withCredentials)||(C.withCredentials=!!e.withCredentials),v&&"json"!==v&&(C.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&C.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&C.upload&&C.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){C&&(n(!e||e&&e.type?new d:e),C.abort(),C=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||(g=null);var R=h(b);R&&-1===["http","https","file"].indexOf(R)?n(new p("Unsupported protocol "+R+":",p.ERR_BAD_REQUEST,e)):C.send(g)}))}},8036:function(e,t,n){"use strict";var o=n(3589),r=n(4049),i=n(3773),s=n(777);var a=function e(t){var n=new i(t),a=r(i.prototype.request,n);return o.extend(a,i.prototype,n),o.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(1709));a.Axios=i,a.CanceledError=n(6569),a.CancelToken=n(6857),a.isCancel=n(5517),a.VERSION=n(7600).version,a.toFormData=n(1397),a.AxiosError=n(4531),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(8089),a.isAxiosError=n(9580),e.exports=a,e.exports.default=a},6857:function(e,t,n){"use strict";var o=n(6569);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,o=n._listeners.length;for(t=0;t<o;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,o=new Promise((function(e){n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e){n.reason||(n.reason=new o(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},6569:function(e,t,n){"use strict";var o=n(4531);function r(e){o.call(this,null==e?"canceled":e,o.ERR_CANCELED),this.name="CanceledError"}n(3589).inherits(r,o,{__CANCEL__:!0}),e.exports=r},5517:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3773:function(e,t,n){"use strict";var o=n(3589),r=n(9774),i=n(7470),s=n(2733),a=n(777),l=n(1804),u=n(7835),c=u.validators;function p(e){this.defaults=e,this.interceptors={request:new i,response:new i}}p.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var o=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var p=[s,void 0];for(Array.prototype.unshift.apply(p,o),p=p.concat(l),i=Promise.resolve(t);p.length;)i=i.then(p.shift(),p.shift());return i}for(var d=t;o.length;){var h=o.shift(),f=o.shift();try{d=h(d)}catch(g){f(g);break}}try{i=s(d)}catch(g){return Promise.reject(g)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},p.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},o.forEach(["delete","get","head","options"],(function(e){p.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,r){return this.request(a(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}p.prototype[e]=t(),p.prototype[e+"Form"]=t(!0)})),e.exports=p},4531:function(e,t,n){"use strict";var o=n(3589);function r(e,t,n,o,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}o.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=r.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(r,s),Object.defineProperty(i,"isAxiosError",{value:!0}),r.from=function(e,t,n,s,a,l){var u=Object.create(i);return o.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,n,s,a),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},7470:function(e,t,n){"use strict";var o=n(3589);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},1804:function(e,t,n){"use strict";var o=n(4044),r=n(9549);e.exports=function(e,t){return e&&!o(t)?r(e,t):t}},2733:function(e,t,n){"use strict";var o=n(3589),r=n(2693),i=n(5517),s=n(1709),a=n(6569);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},777:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return o.isPlainObject(e)&&o.isPlainObject(t)?o.merge(e,t):o.isPlainObject(t)?o.merge({},t):o.isArray(t)?t.slice():t}function i(n){return o.isUndefined(t[n])?o.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function s(e){if(!o.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return o.isUndefined(t[n])?o.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return o.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,r=t(e);o.isUndefined(r)&&t!==l||(n[e]=r)})),n}},7297:function(e,t,n){"use strict";var o=n(4531);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new o("Request failed with status code "+n.status,[o.ERR_BAD_REQUEST,o.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},2693:function(e,t,n){"use strict";var o=n(3589),r=n(1709);e.exports=function(e,t,n){var i=this||r;return o.forEach(n,(function(n){e=n.call(i,e,t)})),e}},1709:function(e,t,n){"use strict";var o=n(3589),r=n(4341),i=n(4531),s=n(6789),a=n(1397),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c={transitional:s,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(3381)),e}(),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=o.isObject(e),s=t&&t["Content-Type"];if((n=o.isFileList(e))||i&&"multipart/form-data"===s){var l=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,l&&new l)}return i||"application/json"===s?(u(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw i.from(a,i.ERR_BAD_RESPONSE,this,null,this.response);throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(3035)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){c.headers[e]=o.merge(l)})),e.exports=c},6789:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7600:function(e){e.exports={version:"0.27.2"}},4049:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];return e.apply(t,n)}}},9774:function(e,t,n){"use strict";var o=n(3589);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},9549:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},9301:function(e,t,n){"use strict";var o=n(3589);e.exports=o.isStandardBrowserEnv()?{write:function(e,t,n,r,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),o.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),o.isString(r)&&a.push("path="+r),o.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4044:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},9580:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e){return o.isObject(e)&&!0===e.isAxiosError}},5411:function(e,t,n){"use strict";var o=n(3589);e.exports=o.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var o=e;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=o.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4341:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){o.forEach(e,(function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])}))}},3035:function(e){e.exports=null},9145:function(e,t,n){"use strict";var o=n(3589),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(o.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=o.trim(e.substr(0,i)).toLowerCase(),n=o.trim(e.substr(i+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},6261:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8089:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1397:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,s){if(o.isPlainObject(i)||o.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+s);n.push(i),o.forEach(i,(function(n,i){if(!o.isUndefined(n)){var a,l=s?s+"."+i:i;if(n&&!s&&"object"===typeof n)if(o.endsWith(i,"{}"))n=JSON.stringify(n);else if(o.endsWith(i,"[]")&&(a=o.toArray(n)))return void a.forEach((function(e){!o.isUndefined(e)&&t.append(l,r(e))}));e(n,l)}})),n.pop()}else t.append(s,r(i))}(e),t}},7835:function(e,t,n){"use strict";var o=n(7600).version,r=n(4531),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+o+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,a){if(!1===e)throw new r(i(o," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!s[o]&&(s[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var s=o[i],a=t[s];if(a){var l=e[s],u=void 0===l||a(l,s,e);if(!0!==u)throw new r("option "+s+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+s,r.ERR_BAD_OPTION)}},validators:i}},3589:function(e,t,n){"use strict";var o,r=n(4049),i=Object.prototype.toString,s=(o=Object.create(null),function(e){var t=i.call(e);return o[t]||(o[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function u(e){return"undefined"===typeof e}var c=a("ArrayBuffer");function p(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=a("Date"),f=a("File"),g=a("Blob"),m=a("FileList");function v(e){return"[object Function]"===i.call(e)}var y=a("URLSearchParams");function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),l(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var w,_=(w="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:p,isPlainObject:d,isUndefined:u,isDate:h,isFile:f,isBlob:g,isFunction:v,isStream:function(e){return p(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:C,merge:function e(){var t={};function n(n,o){d(t[o])&&d(n)?t[o]=e(t[o],n):d(n)?t[o]=e({},n):l(n)?t[o]=n.slice():t[o]=n}for(var o=0,r=arguments.length;o<r;o++)C(arguments[o],n);return t},extend:function(e,t,n){return C(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,o){e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var o,r,i,s={};t=t||{};do{for(r=(o=Object.getOwnPropertyNames(e)).length;r-- >0;)s[i=o[r]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var o=e.indexOf(t,n);return-1!==o&&o===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:_,isFileList:m}},2618:function(e,t,n){var o;!function(){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},2110:function(e,t,n){"use strict";var o=n(8309),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return o.isMemo(e)?s:a[e.$$typeof]||r}a[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[o.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,o){if("string"!==typeof n){if(f){var r=h(n);r&&r!==f&&e(t,r,o)}var s=c(n);p&&(s=s.concat(p(n)));for(var a=l(t),g=l(n),m=0;m<s.length;++m){var v=s[m];if(!i[v]&&(!o||!o[v])&&(!g||!g[v])&&(!a||!a[v])){var y=d(n,v);try{u(t,v,y)}catch(C){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,C=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case p:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case l:return e;default:return t}}case r:return t}}}function b(e){return _(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return b(e)||_(e)===c},t.isConcurrentMode=b,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===r},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===p||e===a||e===s||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===C||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},8309:function(e,t,n){"use strict";e.exports=n(746)},8559:function(e,t){!function(e){"use strict";var t="1.8.0";function n(e){var t,n,o,r;for(n=1,o=arguments.length;n<o;n++)for(t in r=arguments[n])e[t]=r[t];return e}var o=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function r(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var o=n.call(arguments,2);return function(){return e.apply(t,o.length?o.concat(n.call(arguments)):arguments)}}var i=0;function s(e){return"_leaflet_id"in e||(e._leaflet_id=++i),e._leaflet_id}function a(e,t,n){var o,r,i,s;return s=function(){o=!1,r&&(i.apply(n,r),r=!1)},i=function(){o?r=arguments:(e.apply(n,arguments),setTimeout(s,t),o=!0)},i}function l(e,t,n){var o=t[1],r=t[0],i=o-r;return e===o&&n?e:((e-r)%i+i)%i+r}function u(){return!1}function c(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function p(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d(e){return p(e).split(/\s+/)}function h(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?o(e.options):{}),t)e.options[n]=t[n];return e.options}function f(e,t,n){var o=[];for(var r in e)o.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(e[r]));return(t&&-1!==t.indexOf("?")?"&":"?")+o.join("&")}var g=/\{ *([\w_ -]+) *\}/g;function m(e,t){return e.replace(g,(function(e,n){var o=t[n];if(void 0===o)throw new Error("No value provided for variable "+e);return"function"===typeof o&&(o=o(t)),o}))}var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var C="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function w(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var _=0;function b(e){var t=+new Date,n=Math.max(0,16-(t-_));return _=t+n,window.setTimeout(e,n)}var E=window.requestAnimationFrame||w("RequestAnimationFrame")||b,S=window.cancelAnimationFrame||w("CancelAnimationFrame")||w("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function R(e,t,n){if(!n||E!==b)return E.call(window,r(e,t));e.call(t)}function O(e){e&&S.call(window,e)}var P={__proto__:null,extend:n,create:o,bind:r,get lastId(){return i},stamp:s,throttle:a,wrapNum:l,falseFn:u,formatNum:c,trim:p,splitWords:d,setOptions:h,getParamString:f,template:m,isArray:v,indexOf:y,emptyImageUrl:C,requestFn:E,cancelFn:S,requestAnimFrame:R,cancelAnimFrame:O};function T(){}function A(e){if("undefined"!==typeof L&&L&&L.Mixin){e=v(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}T.extend=function(e){var t=function(){h(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=t.__super__=this.prototype,i=o(r);for(var s in i.constructor=t,t.prototype=i,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(t[s]=this[s]);return e.statics&&n(t,e.statics),e.includes&&(A(e.includes),n.apply(null,[i].concat(e.includes))),n(i,e),delete i.statics,delete i.includes,i.options&&(i.options=r.options?o(r.options):{},n(i.options,e.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=i._initHooks.length;e<t;e++)i._initHooks[e].call(this)}},t},T.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},T.mergeOptions=function(e){return n(this.prototype.options,e),this},T.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"===typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var D={on:function(e,t,n){if("object"===typeof e)for(var o in e)this._on(o,e[o],t);else for(var r=0,i=(e=d(e)).length;r<i;r++)this._on(e[r],t,n);return this},off:function(e,t,n){if(arguments.length)if("object"===typeof e)for(var o in e)this._off(o,e[o],t);else{e=d(e);for(var r=1===arguments.length,i=0,s=e.length;i<s;i++)r?this._off(e[i]):this._off(e[i],t,n)}else delete this._events;return this},_on:function(e,t,n){if("function"===typeof t){this._events=this._events||{};var o=this._events[e];o||(o=[],this._events[e]=o),n===this&&(n=void 0);for(var r={fn:t,ctx:n},i=o,s=0,a=i.length;s<a;s++)if(i[s].fn===t&&i[s].ctx===n)return;i.push(r)}else console.warn("wrong listener type: "+typeof t)},_off:function(e,t,n){var o,r,i;if(this._events&&(o=this._events[e]))if(1!==arguments.length)if(n===this&&(n=void 0),"function"===typeof t){for(r=0,i=o.length;r<i;r++){var s=o[r];if(s.ctx===n&&s.fn===t)return this._firingCount&&(s.fn=u,this._events[e]=o=o.slice()),void o.splice(r,1)}console.warn("listener not found")}else console.warn("wrong listener type: "+typeof t);else{if(this._firingCount)for(r=0,i=o.length;r<i;r++)o[r].fn=u;delete this._events[e]}},fire:function(e,t,o){if(!this.listens(e,o))return this;var r=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var i=this._events[e];if(i){this._firingCount=this._firingCount+1||1;for(var s=0,a=i.length;s<a;s++){var l=i[s];l.fn.call(l.ctx||this,r)}this._firingCount--}}return o&&this._propagateEvent(r),this},listens:function(e,t){"string"!==typeof e&&console.warn('"string" type argument expected');var n=this._events&&this._events[e];if(n&&n.length)return!0;if(t)for(var o in this._eventParents)if(this._eventParents[o].listens(e,t))return!0;return!1},once:function(e,t,n){if("object"===typeof e){for(var o in e)this.once(o,e[o],t);return this}var i=r((function(){this.off(e,t,n).off(e,i,n)}),this);return this.on(e,t,n).on(e,i,n)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[s(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[s(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};D.addEventListener=D.on,D.removeEventListener=D.clearAllEventListeners=D.off,D.addOneTimeEventListener=D.once,D.fireEvent=D.fire,D.hasEventListeners=D.listens;var x=T.extend(D);function N(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var I=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function M(e,t,n){return e instanceof N?e:v(e)?new N(e[0],e[1]):void 0===e||null===e?e:"object"===typeof e&&"x"in e&&"y"in e?new N(e.x,e.y):new N(e,t,n)}function F(e,t){if(e)for(var n=t?[e,t]:e,o=0,r=n.length;o<r;o++)this.extend(n[o])}function k(e,t){return!e||e instanceof F?e:new F(e,t)}function G(e,t){if(e)for(var n=t?[e,t]:e,o=0,r=n.length;o<r;o++)this.extend(n[o])}function H(e,t){return e instanceof G?e:new G(e,t)}function W(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function V(e,t,n){return e instanceof W?e:v(e)&&"object"!==typeof e[0]?3===e.length?new W(e[0],e[1],e[2]):2===e.length?new W(e[0],e[1]):null:void 0===e||null===e?e:"object"===typeof e&&"lat"in e?new W(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new W(e,t,n)}N.prototype={clone:function(){return new N(this.x,this.y)},add:function(e){return this.clone()._add(M(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(M(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new N(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new N(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=I(this.x),this.y=I(this.y),this},distanceTo:function(e){var t=(e=M(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=M(e)).x===this.x&&e.y===this.y},contains:function(e){return e=M(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},F.prototype={extend:function(e){return e=M(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new N((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new N(this.min.x,this.max.y)},getTopRight:function(){return new N(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e="number"===typeof e[0]||e instanceof N?M(e):k(e))instanceof F?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=k(e);var t=this.min,n=this.max,o=e.min,r=e.max,i=r.x>=t.x&&o.x<=n.x,s=r.y>=t.y&&o.y<=n.y;return i&&s},overlaps:function(e){e=k(e);var t=this.min,n=this.max,o=e.min,r=e.max,i=r.x>t.x&&o.x<n.x,s=r.y>t.y&&o.y<n.y;return i&&s},isValid:function(){return!(!this.min||!this.max)}},G.prototype={extend:function(e){var t,n,o=this._southWest,r=this._northEast;if(e instanceof W)t=e,n=e;else{if(!(e instanceof G))return e?this.extend(V(e)||H(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return o||r?(o.lat=Math.min(t.lat,o.lat),o.lng=Math.min(t.lng,o.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new W(t.lat,t.lng),this._northEast=new W(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,o=Math.abs(t.lat-n.lat)*e,r=Math.abs(t.lng-n.lng)*e;return new G(new W(t.lat-o,t.lng-r),new W(n.lat+o,n.lng+r))},getCenter:function(){return new W((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new W(this.getNorth(),this.getWest())},getSouthEast:function(){return new W(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"===typeof e[0]||e instanceof W||"lat"in e?V(e):H(e);var t,n,o=this._southWest,r=this._northEast;return e instanceof G?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=o.lat&&n.lat<=r.lat&&t.lng>=o.lng&&n.lng<=r.lng},intersects:function(e){e=H(e);var t=this._southWest,n=this._northEast,o=e.getSouthWest(),r=e.getNorthEast(),i=r.lat>=t.lat&&o.lat<=n.lat,s=r.lng>=t.lng&&o.lng<=n.lng;return i&&s},overlaps:function(e){e=H(e);var t=this._southWest,n=this._northEast,o=e.getSouthWest(),r=e.getNorthEast(),i=r.lat>t.lat&&o.lat<n.lat,s=r.lng>t.lng&&o.lng<n.lng;return i&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=H(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},W.prototype={equals:function(e,t){return!!e&&(e=V(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+c(this.lat,e)+", "+c(this.lng,e)+")"},distanceTo:function(e){return B.distance(this,V(e))},wrap:function(){return B.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return H([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new W(this.lat,this.lng,this.alt)}};var j={latLngToPoint:function(e,t){var n=this.projection.project(e),o=this.scale(t);return this.transformation._transform(n,o)},pointToLatLng:function(e,t){var n=this.scale(t),o=this.transformation.untransform(e,n);return this.projection.unproject(o)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new F(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new W(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),o=t.lat-n.lat,r=t.lng-n.lng;if(0===o&&0===r)return e;var i=e.getSouthWest(),s=e.getNorthEast();return new G(new W(i.lat-o,i.lng-r),new W(s.lat-o,s.lng-r))}},B=n({},j,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,o=e.lat*n,r=t.lat*n,i=Math.sin((t.lat-e.lat)*n/2),s=Math.sin((t.lng-e.lng)*n/2),a=i*i+Math.cos(o)*Math.cos(r)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),z=6378137,U={R:z,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,o=Math.max(Math.min(n,e.lat),-n),r=Math.sin(o*t);return new N(this.R*e.lng*t,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(e){var t=180/Math.PI;return new W((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=z*Math.PI;return new F([-e,-e],[e,e])}()};function K(e,t,n,o){if(v(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=o}function q(e,t,n,o){return new K(e,t,n,o)}K.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new N((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var Y=n({},B,{code:"EPSG:3857",projection:U,transformation:function(){var e=.5/(Math.PI*U.R);return q(e,.5,-e,.5)}()}),Z=n({},Y,{code:"EPSG:900913"});function $(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function X(e,t){var n,o,r,i,s,a,l="";for(n=0,r=e.length;n<r;n++){for(o=0,i=(s=e[n]).length;o<i;o++)l+=(o?"L":"M")+(a=s[o]).x+" "+a.y;l+=t?Ie.svg?"z":"x":""}return l||"M0 0"}var Q=document.documentElement.style,J="ActiveXObject"in window,ee=J&&!document.addEventListener,te="msLaunchUri"in navigator&&!("documentMode"in document),ne=Le("webkit"),oe=Le("android"),re=Le("android 2")||Le("android 3"),ie=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),se=oe&&Le("Google")&&ie<537&&!("AudioNode"in window),ae=!!window.opera,le=!te&&Le("chrome"),ue=Le("gecko")&&!ne&&!ae&&!J,ce=!le&&Le("safari"),pe=Le("phantom"),de="OTransition"in Q,he=0===navigator.platform.indexOf("Win"),fe=J&&"transition"in Q,ge="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!re,me="MozPerspective"in Q,ve=!window.L_DISABLE_3D&&(fe||ge||me)&&!de&&!pe,ye="undefined"!==typeof orientation||Le("mobile"),Ce=ye&&ne,we=ye&&ge,_e=!window.PointerEvent&&window.MSPointerEvent,be=!(!window.PointerEvent&&!_e),Ee="ontouchstart"in window||!!window.TouchEvent,Se=!window.L_NO_TOUCH&&(Ee||be),Re=ye&&ae,Oe=ye&&ue,Pe=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Te=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",u,t),window.removeEventListener("testPassiveEventSupport",u,t)}catch(n){}return e}(),Ae=!!document.createElement("canvas").getContext,De=!(!document.createElementNS||!$("svg").createSVGRect),xe=!!De&&function(){var e=document.createElement("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(e.firstChild&&e.firstChild.namespaceURI)}(),Ne=!De&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===typeof t.adj}catch(n){return!1}}();function Le(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Ie={ie:J,ielt9:ee,edge:te,webkit:ne,android:oe,android23:re,androidStock:se,opera:ae,chrome:le,gecko:ue,safari:ce,phantom:pe,opera12:de,win:he,ie3d:fe,webkit3d:ge,gecko3d:me,any3d:ve,mobile:ye,mobileWebkit:Ce,mobileWebkit3d:we,msPointer:_e,pointer:be,touch:Se,touchNative:Ee,mobileOpera:Re,mobileGecko:Oe,retina:Pe,passiveEvents:Te,canvas:Ae,svg:De,vml:Ne,inlineSvg:xe},Me=Ie.msPointer?"MSPointerDown":"pointerdown",Fe=Ie.msPointer?"MSPointerMove":"pointermove",ke=Ie.msPointer?"MSPointerUp":"pointerup",Ge=Ie.msPointer?"MSPointerCancel":"pointercancel",He={touchstart:Me,touchmove:Fe,touchend:ke,touchcancel:Ge},We={touchstart:$e,touchmove:Ze,touchend:Ze,touchcancel:Ze},Ve={},je=!1;function Be(e,t,n){return"touchstart"===t&&Ye(),We[t]?(n=We[t].bind(this,n),e.addEventListener(He[t],n,!1),n):(console.warn("wrong event specified:",t),L.Util.falseFn)}function ze(e,t,n){He[t]?e.removeEventListener(He[t],n,!1):console.warn("wrong event specified:",t)}function Ue(e){Ve[e.pointerId]=e}function Ke(e){Ve[e.pointerId]&&(Ve[e.pointerId]=e)}function qe(e){delete Ve[e.pointerId]}function Ye(){je||(document.addEventListener(Me,Ue,!0),document.addEventListener(Fe,Ke,!0),document.addEventListener(ke,qe,!0),document.addEventListener(Ge,qe,!0),je=!0)}function Ze(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Ve)t.touches.push(Ve[n]);t.changedTouches=[t],e(t)}}function $e(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ut(t),Ze(e,t)}function Xe(e){var t,n,o={};for(n in e)t=e[n],o[n]=t&&t.bind?t.bind(e):t;return e=o,o.type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}var Qe=200;function Je(e,t){e.addEventListener("dblclick",t);var n,o=0;function r(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var r=Date.now();r-o<=Qe?2===++n&&t(Xe(e)):n=1,o=r}}else n=e.detail}return e.addEventListener("click",r),{dblclick:t,simDblclick:r}}function et(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}var tt,nt,ot,rt,it,st=Et(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),at=Et(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lt="webkitTransition"===at||"OTransition"===at?at+"End":"transitionend";function ut(e){return"string"===typeof e?document.getElementById(e):e}function ct(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var o=document.defaultView.getComputedStyle(e,null);n=o?o[t]:null}return"auto"===n?null:n}function pt(e,t,n){var o=document.createElement(e);return o.className=t||"",n&&n.appendChild(o),o}function dt(e){var t=e.parentNode;t&&t.removeChild(e)}function ht(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ft(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function gt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function mt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=wt(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function vt(e,t){if(void 0!==e.classList)for(var n=d(t),o=0,r=n.length;o<r;o++)e.classList.add(n[o]);else if(!mt(e,t)){var i=wt(e);Ct(e,(i?i+" ":"")+t)}}function yt(e,t){void 0!==e.classList?e.classList.remove(t):Ct(e,p((" "+wt(e)+" ").replace(" "+t+" "," ")))}function Ct(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function wt(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function _t(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&bt(e,t)}function bt(e,t){var n=!1,o="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(o)}catch(r){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+o+"(opacity="+t+")"}function Et(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function St(e,t,n){var o=t||new N(0,0);e.style[st]=(Ie.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(n?" scale("+n+")":"")}function Rt(e,t){e._leaflet_pos=t,Ie.any3d?St(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Ot(e){return e._leaflet_pos||new N(0,0)}if("onselectstart"in document)tt=function(){Mt(window,"selectstart",Ut)},nt=function(){kt(window,"selectstart",Ut)};else{var Pt=Et(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);tt=function(){if(Pt){var e=document.documentElement.style;ot=e[Pt],e[Pt]="none"}},nt=function(){Pt&&(document.documentElement.style[Pt]=ot,ot=void 0)}}function Tt(){Mt(window,"dragstart",Ut)}function At(){kt(window,"dragstart",Ut)}function Dt(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(xt(),rt=e,it=e.style.outline,e.style.outline="none",Mt(window,"keydown",xt))}function xt(){rt&&(rt.style.outline=it,rt=void 0,it=void 0,kt(window,"keydown",xt))}function Nt(e){do{e=e.parentNode}while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Lt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var It={__proto__:null,TRANSFORM:st,TRANSITION:at,TRANSITION_END:lt,get:ut,getStyle:ct,create:pt,remove:dt,empty:ht,toFront:ft,toBack:gt,hasClass:mt,addClass:vt,removeClass:yt,setClass:Ct,getClass:wt,setOpacity:_t,testProp:Et,setTransform:St,setPosition:Rt,getPosition:Ot,get disableTextSelection(){return tt},get enableTextSelection(){return nt},disableImageDrag:Tt,enableImageDrag:At,preventOutline:Dt,restoreOutline:xt,getSizedParentNode:Nt,getScale:Lt};function Mt(e,t,n,o){if(t&&"object"===typeof t)for(var r in t)Wt(e,r,t[r],n);else for(var i=0,s=(t=d(t)).length;i<s;i++)Wt(e,t[i],n,o);return this}var Ft="_leaflet_events";function kt(e,t,n,o){if(1===arguments.length)Gt(e),delete e[Ft];else if(t&&"object"===typeof t)for(var r in t)Vt(e,r,t[r],n);else if(t=d(t),2===arguments.length)Gt(e,(function(e){return-1!==y(t,e)}));else for(var i=0,s=t.length;i<s;i++)Vt(e,t[i],n,o);return this}function Gt(e,t){for(var n in e[Ft]){var o=n.split(/\d/)[0];t&&!t(o)||Vt(e,o,null,null,n)}}var Ht={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Wt(e,t,n,o){var r=t+s(n)+(o?"_"+s(o):"");if(e[Ft]&&e[Ft][r])return this;var i=function(t){return n.call(o||e,t||window.event)},a=i;!Ie.touchNative&&Ie.pointer&&0===t.indexOf("touch")?i=Be(e,t,i):Ie.touch&&"dblclick"===t?i=Je(e,i):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Ht[t]||t,i,!!Ie.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(i=function(t){t=t||window.event,$t(e,t)&&a(t)},e.addEventListener(Ht[t],i,!1)):e.addEventListener(t,a,!1):e.attachEvent("on"+t,i),e[Ft]=e[Ft]||{},e[Ft][r]=i}function Vt(e,t,n,o,r){r=r||t+s(n)+(o?"_"+s(o):"");var i=e[Ft]&&e[Ft][r];if(!i)return this;!Ie.touchNative&&Ie.pointer&&0===t.indexOf("touch")?ze(e,t,i):Ie.touch&&"dblclick"===t?et(e,i):"removeEventListener"in e?e.removeEventListener(Ht[t]||t,i,!1):e.detachEvent("on"+t,i),e[Ft][r]=null}function jt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Bt(e){return Wt(e,"wheel",jt),this}function zt(e){return Mt(e,"mousedown touchstart dblclick contextmenu",jt),e._leaflet_disable_click=!0,this}function Ut(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Kt(e){return Ut(e),jt(e),this}function qt(e,t){if(!t)return new N(e.clientX,e.clientY);var n=Lt(t),o=n.boundingClientRect;return new N((e.clientX-o.left)/n.x-t.clientLeft,(e.clientY-o.top)/n.y-t.clientTop)}var Yt=Ie.win&&Ie.chrome?2*window.devicePixelRatio:Ie.gecko?window.devicePixelRatio:1;function Zt(e){return Ie.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Yt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function $t(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(o){return!1}return n!==e}var Xt={__proto__:null,on:Mt,off:kt,stopPropagation:jt,disableScrollPropagation:Bt,disableClickPropagation:zt,preventDefault:Ut,stop:Kt,getMousePosition:qt,getWheelDelta:Zt,isExternalTarget:$t,addListener:Mt,removeListener:kt},Qt=x.extend({run:function(e,t,n,o){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=Ot(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=R(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),Rt(this._el,n),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),Jt=x.extend({options:{crs:Y,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=h(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(V(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=at&&Ie.any3d&&!Ie.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Mt(this._proxy,lt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,o){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(V(e),t,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&!0!==o&&(void 0!==o.animate&&(o.zoom=n({animate:o.animate},o.zoom),o.pan=n({animate:o.animate,duration:o.duration},o.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,o.zoom):this._tryAnimatedPan(e,o.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Ie.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Ie.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var o=this.getZoomScale(t),r=this.getSize().divideBy(2),i=(e instanceof N?e:this.latLngToContainerPoint(e)).subtract(r).multiplyBy(1-1/o),s=this.containerPointToLatLng(r.add(i));return this.setView(s,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():H(e);var n=M(t.paddingTopLeft||t.padding||[0,0]),o=M(t.paddingBottomRight||t.padding||[0,0]),r=this.getBoundsZoom(e,!1,n.add(o));if((r="number"===typeof t.maxZoom?Math.min(t.maxZoom,r):r)===1/0)return{center:e.getCenter(),zoom:r};var i=o.subtract(n).divideBy(2),s=this.project(e.getSouthWest(),r),a=this.project(e.getNorthEast(),r);return{center:this.unproject(s.add(a).divideBy(2).add(i),r),zoom:r}},fitBounds:function(e,t){if(!(e=H(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=M(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Qt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){vt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Ie.any3d)return this.setView(e,t,n);this._stop();var o=this.project(this.getCenter()),r=this.project(e),i=this.getSize(),s=this._zoom;e=V(e),t=void 0===t?s:t;var a=Math.max(i.x,i.y),l=a*this.getZoomScale(s,t),u=r.distanceTo(o)||1,c=1.42,p=c*c;function d(e){var t=(l*l-a*a+(e?-1:1)*p*p*u*u)/(2*(e?l:a)*p*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function h(e){return(Math.exp(e)-Math.exp(-e))/2}function f(e){return(Math.exp(e)+Math.exp(-e))/2}function g(e){return h(e)/f(e)}var m=d(0);function v(e){return a*(f(m)/f(m+c*e))}function y(e){return a*(f(m)*g(m+c*e)-h(m))/p}function C(e){return 1-Math.pow(1-e,1.5)}var w=Date.now(),_=(d(1)-m)/c,b=n.duration?1e3*n.duration:1e3*_*.8;function E(){var n=(Date.now()-w)/b,i=C(n)*_;n<=1?(this._flyToFrame=R(E,this),this._move(this.unproject(o.add(r.subtract(o).multiplyBy(y(i)/u)),s),this.getScaleZoom(a/v(i),s),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),E.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=H(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),o=this._limitCenter(n,this._zoom,H(e));return n.equals(o)||this.panTo(o,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=M((t=t||{}).paddingTopLeft||t.padding||[0,0]),o=M(t.paddingBottomRight||t.padding||[0,0]),r=this.project(this.getCenter()),i=this.project(e),s=this.getPixelBounds(),a=k([s.min.add(n),s.max.subtract(o)]),l=a.getSize();if(!a.contains(i)){this._enforcingBounds=!0;var u=i.subtract(a.getCenter()),c=a.extend(i).getSize().subtract(l);r.x+=u.x<0?-c.x:c.x,r.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(r),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),i=t.divideBy(2).round(),s=o.divideBy(2).round(),a=i.subtract(s);return a.x||a.y?(e.animate&&e.pan?this.panBy(a):(e.pan&&this._rawPanBy(a),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=r(this._handleGeolocationResponse,this),o=r(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,o,e):navigator.geolocation.getCurrentPosition(t,o,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new W(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),o=this._locateOptions;if(o.setView){var r=this.getBoundsZoom(n);this.setView(t,o.maxZoom?Math.min(r,o.maxZoom):r)}var i={latlng:t,bounds:n,timestamp:e.timestamp};for(var s in e.coords)"number"===typeof e.coords[s]&&(i[s]=e.coords[s]);this.fire("locationfound",i)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),dt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)dt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=pt("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new G(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=H(e),n=M(n||[0,0]);var o=this.getZoom()||0,r=this.getMinZoom(),i=this.getMaxZoom(),s=e.getNorthWest(),a=e.getSouthEast(),l=this.getSize().subtract(n),u=k(this.project(a,o),this.project(s,o)).getSize(),c=Ie.any3d?this.options.zoomSnap:1,p=l.x/u.x,d=l.y/u.y,h=t?Math.max(p,d):Math.min(p,d);return o=this.getScaleZoom(h,o),c&&(o=Math.round(o/(c/100))*(c/100),o=t?Math.ceil(o/c)*c:Math.floor(o/c)*c),Math.max(r,Math.min(i,o))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new F(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"===typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var o=n.zoom(e*n.scale(t));return isNaN(o)?1/0:o},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(V(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(M(e),t)},layerPointToLatLng:function(e){var t=M(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(V(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(V(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(H(e))},distance:function(e,t){return this.options.crs.distance(V(e),V(t))},containerPointToLayerPoint:function(e){return M(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return M(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(M(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(V(e)))},mouseEventToContainerPoint:function(e){return qt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=ut(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Mt(t,"scroll",this._onScroll,this),this._containerId=s(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ie.any3d,vt(e,"leaflet-container"+(Ie.touch?" leaflet-touch":"")+(Ie.retina?" leaflet-retina":"")+(Ie.ielt9?" leaflet-oldie":"")+(Ie.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=ct(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Rt(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(vt(e.markerPane,"leaflet-zoom-hide"),vt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){Rt(this._mapPane,new N(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var o=this._zoom!==t;this._moveStart(o,!1)._move(e,t)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,o){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),o?n&&n.pinch&&this.fire("zoom",n):((r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Rt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[s(this._container)]=this;var t=e?kt:Mt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Ie.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=R((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,o=[],r="mouseout"===t||"mouseover"===t,i=e.target||e.srcElement,a=!1;i;){if((n=this._targets[s(i)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(t,!0)){if(r&&!$t(i,e))break;if(o.push(n),r)break}if(i===this._container)break;i=i.parentNode}return o.length||a||r||!this.listens(t,!0)||(o=[this]),o},_isClickDisabled:function(e){for(;e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&Dt(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,o){if("click"===e.type){var r=n({},e);r.type="preclick",this._fireDOMEvent(r,r.type,o)}var i=this._findEventTargets(e,t);if(o){for(var s=[],a=0;a<o.length;a++)o[a].listens(t,!0)&&s.push(o[a]);i=s.concat(i)}if(i.length){"contextmenu"===t&&Ut(e);var l=i[0],u={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(a=0;a<i.length;a++)if(i[a].fire(t,u,!0),u.originalEvent._stopped||!1===i[a].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Ot(this._mapPane)||new N(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var o=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(o)},_latLngBoundsToNewLayerBounds:function(e,t,n){var o=this._getNewPixelOrigin(n,t);return k([this.project(e.getSouthWest(),t)._subtract(o),this.project(e.getNorthWest(),t)._subtract(o),this.project(e.getSouthEast(),t)._subtract(o),this.project(e.getNorthEast(),t)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var o=this.project(e,t),r=this.getSize().divideBy(2),i=new F(o.subtract(r),o.add(r)),s=this._getBoundsOffset(i,n,t);return s.round().equals([0,0])?e:this.unproject(o.add(s),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),o=new F(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(o,t))},_getBoundsOffset:function(e,t,n){var o=k(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),r=o.min.subtract(e.min),i=o.max.subtract(e.max);return new N(this._rebound(r.x,-i.x),this._rebound(r.y,-i.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),o=Ie.any3d?this.options.zoomSnap:1;return o&&(e=Math.round(e/o)*o),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=st,n=this._proxy.style[t];St(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){dt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();St(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(t),r=this._getCenterOffset(e)._divideBy(1-1/o);return!(!0!==n.animate&&!this.getSize().contains(r))&&(R((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),!0)},_animateZoom:function(e,t,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,vt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&yt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function en(e,t){return new Jt(e,t)}var tn=T.extend({options:{position:"topright"},initialize:function(e){h(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),o=e._controlCorners[n];return vt(t,"leaflet-control"),-1!==n.indexOf("bottom")?o.insertBefore(t,o.firstChild):o.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(dt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),nn=function(e){return new tn(e)};Jt.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=pt("div",t+"control-container",this._container);function o(o,r){var i=t+o+" "+t+r;e[o+r]=pt("div",i,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)dt(this._controlCorners[e]);dt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var on=tn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,o){return n<o?-1:o<n?1:0}},initialize:function(e,t,n){for(var o in h(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[o],o);for(o in t)this._addLayer(t[o],o,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return tn.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(s(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){vt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(vt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=pt("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),zt(t),Bt(t);var o=this._section=pt("section",e+"-list");n&&(this._map.on("click",this.collapse,this),Mt(t,{mouseenter:function(){Mt(o,"click",Ut),this.expand(),setTimeout((function(){kt(o,"click",Ut)}))},mouseleave:this.collapse},this));var r=this._layersLink=pt("a",e+"-toggle",t);r.href="#",r.title="Layers",r.setAttribute("role","button"),Mt(r,"click",Ut),Mt(r,"focus",this.expand,this),n||this.expand(),this._baseLayersList=pt("div",e+"-base",o),this._separator=pt("div",e+"-separator",o),this._overlaysList=pt("div",e+"-overlays",o),t.appendChild(o)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&s(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(r((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ht(this._baseLayersList),ht(this._overlaysList),this._layerControlInputs=[];var e,t,n,o,r=0;for(n=0;n<this._layers.length;n++)o=this._layers[n],this._addItem(o),t=t||o.overlay,e=e||!o.overlay,r+=o.overlay?0:1;return this.options.hideSingleBase&&(e=e&&r>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(s(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",o=document.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(e){var t,n=document.createElement("label"),o=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=o):t=this._createRadioElement("leaflet-base-layers_"+s(this),o),this._layerControlInputs.push(t),t.layerId=s(e.layer),Mt(t,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+e.name;var i=document.createElement("span");return n.appendChild(i),i.appendChild(t),i.appendChild(r),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,o=[],r=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.checked?o.push(t):e.checked||r.push(t);for(i=0;i<r.length;i++)this._map.hasLayer(r[i])&&this._map.removeLayer(r[i]);for(i=0;i<o.length;i++)this._map.hasLayer(o[i])||this._map.addLayer(o[i]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,o=this._map.getZoom(),r=n.length-1;r>=0;r--)e=n[r],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&o<t.options.minZoom||void 0!==t.options.maxZoom&&o>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}}),rn=function(e,t,n){return new on(e,t,n)},sn=tn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=pt("div",t+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,o,r){var i=pt("a",n,o);return i.innerHTML=e,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),zt(i),Mt(i,"click",Kt),Mt(i,"click",r,this),Mt(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";yt(this._zoomInButton,t),yt(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(vt(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(vt(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});Jt.mergeOptions({zoomControl:!0}),Jt.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new sn,this.addControl(this.zoomControl))}));var an=function(e){return new sn(e)},ln=tn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=pt("div",t),o=this.options;return this._addScales(o,t+"-line",n),e.on(o.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=pt("div",t,n)),e.imperial&&(this._iScale=pt("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,o,r=3.2808399*e;r>5280?(t=r/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(o=this._getRoundNum(r),this._updateScale(this._iScale,o+" ft",o/r))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),un=function(e){return new ln(e)},cn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',pn=tn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ie.inlineSvg?cn+" ":"")+"Leaflet</a>"},initialize:function(e){h(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=pt("div","leaflet-control-attribution"),zt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Jt.mergeOptions({attributionControl:!0}),Jt.addInitHook((function(){this.options.attributionControl&&(new pn).addTo(this)}));var dn=function(e){return new pn(e)};tn.Layers=on,tn.Zoom=sn,tn.Scale=ln,tn.Attribution=pn,nn.layers=rn,nn.zoom=an,nn.scale=un,nn.attribution=dn;var hn=T.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});hn.addTo=function(e,t){return e.addHandler(t,this),this};var fn,gn={Events:D},mn=Ie.touch?"touchstart mousedown":"mousedown",vn=x.extend({options:{clickTolerance:3},initialize:function(e,t,n,o){h(this,o),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(Mt(this._dragStartTarget,mn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(vn._dragging===this&&this.finishDrag(!0),kt(this._dragStartTarget,mn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!mt(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)vn._dragging===this&&this.finishDrag();else if(!(vn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches)&&(vn._dragging=this,this._preventOutline&&Dt(this._element),Tt(),tt(),!this._moving)){this.fire("down");var t=e.touches?e.touches[0]:e,n=Nt(this._element);this._startPoint=new N(t.clientX,t.clientY),this._startPos=Ot(this._element),this._parentScale=Lt(n);var o="mousedown"===e.type;Mt(document,o?"mousemove":"touchmove",this._onMove,this),Mt(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new N(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ut(e),this._moved||(this.fire("dragstart"),this._moved=!0,vt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),vt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),Rt(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){yt(document.body,"leaflet-dragging"),this._lastTarget&&(yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),kt(document,"mousemove touchmove",this._onMove,this),kt(document,"mouseup touchend touchcancel",this._onUp,this),At(),nt(),this._moved&&this._moving&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,vn._dragging=!1}});function yn(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=_n(e=En(e,n),n)}function Cn(e,t,n){return Math.sqrt(Tn(e,t,n,!0))}function wn(e,t,n){return Tn(e,t,n)}function _n(e,t){var n=e.length,o=new(typeof Uint8Array!==void 0+""?Uint8Array:Array)(n);o[0]=o[n-1]=1,bn(e,o,t,0,n-1);var r,i=[];for(r=0;r<n;r++)o[r]&&i.push(e[r]);return i}function bn(e,t,n,o,r){var i,s,a,l=0;for(s=o+1;s<=r-1;s++)(a=Tn(e[s],e[o],e[r],!0))>l&&(i=s,l=a);l>n&&(t[i]=1,bn(e,t,n,o,i),bn(e,t,n,i,r))}function En(e,t){for(var n=[e[0]],o=1,r=0,i=e.length;o<i;o++)Pn(e[o],e[r])>t&&(n.push(e[o]),r=o);return r<i-1&&n.push(e[i-1]),n}function Sn(e,t,n,o,r){var i,s,a,l=o?fn:On(e,n),u=On(t,n);for(fn=u;;){if(!(l|u))return[e,t];if(l&u)return!1;a=On(s=Rn(e,t,i=l||u,n,r),n),i===l?(e=s,l=a):(t=s,u=a)}}function Rn(e,t,n,o,r){var i,s,a=t.x-e.x,l=t.y-e.y,u=o.min,c=o.max;return 8&n?(i=e.x+a*(c.y-e.y)/l,s=c.y):4&n?(i=e.x+a*(u.y-e.y)/l,s=u.y):2&n?(i=c.x,s=e.y+l*(c.x-e.x)/a):1&n&&(i=u.x,s=e.y+l*(u.x-e.x)/a),new N(i,s,r)}function On(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function Pn(e,t){var n=t.x-e.x,o=t.y-e.y;return n*n+o*o}function Tn(e,t,n,o){var r,i=t.x,s=t.y,a=n.x-i,l=n.y-s,u=a*a+l*l;return u>0&&((r=((e.x-i)*a+(e.y-s)*l)/u)>1?(i=n.x,s=n.y):r>0&&(i+=a*r,s+=l*r)),a=e.x-i,l=e.y-s,o?a*a+l*l:new N(i,s)}function An(e){return!v(e[0])||"object"!==typeof e[0][0]&&"undefined"!==typeof e[0][0]}function Dn(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(e)}var xn={__proto__:null,simplify:yn,pointToSegmentDistance:Cn,closestPointOnSegment:wn,clipSegment:Sn,_getEdgeIntersection:Rn,_getBitCode:On,_sqClosestPointOnSegment:Tn,isFlat:An,_flat:Dn};function Nn(e,t,n){var o,r,i,s,a,l,u,c,p,d=[1,4,2,8];for(r=0,u=e.length;r<u;r++)e[r]._code=On(e[r],t);for(s=0;s<4;s++){for(c=d[s],o=[],r=0,i=(u=e.length)-1;r<u;i=r++)a=e[r],l=e[i],a._code&c?l._code&c||((p=Rn(l,a,c,t,n))._code=On(p,t),o.push(p)):(l._code&c&&((p=Rn(l,a,c,t,n))._code=On(p,t),o.push(p)),o.push(a));e=o}return e}var Ln={__proto__:null,clipPolygon:Nn},In={project:function(e){return new N(e.lng,e.lat)},unproject:function(e){return new W(e.y,e.x)},bounds:new F([-180,-90],[180,90])},Mn={R:6378137,R_MINOR:6356752.314245179,bounds:new F([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,o=e.lat*t,r=this.R_MINOR/n,i=Math.sqrt(1-r*r),s=i*Math.sin(o),a=Math.tan(Math.PI/4-o/2)/Math.pow((1-s)/(1+s),i/2);return o=-n*Math.log(Math.max(a,1e-10)),new N(e.lng*t*n,o)},unproject:function(e){for(var t,n=180/Math.PI,o=this.R,r=this.R_MINOR/o,i=Math.sqrt(1-r*r),s=Math.exp(-e.y/o),a=Math.PI/2-2*Math.atan(s),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)t=i*Math.sin(a),t=Math.pow((1-t)/(1+t),i/2),a+=u=Math.PI/2-2*Math.atan(s*t)-a;return new W(a*n,e.x*n/o)}},Fn={__proto__:null,LonLat:In,Mercator:Mn,SphericalMercator:U},kn=n({},B,{code:"EPSG:3395",projection:Mn,transformation:function(){var e=.5/(Math.PI*Mn.R);return q(e,.5,-e,.5)}()}),Gn=n({},B,{code:"EPSG:4326",projection:In,transformation:q(1/180,1,-1/180,.5)}),Hn=n({},j,{projection:In,transformation:q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,o=t.lat-e.lat;return Math.sqrt(n*n+o*o)},infinite:!0});j.Earth=B,j.EPSG3395=kn,j.EPSG3857=Y,j.EPSG900913=Z,j.EPSG4326=Gn,j.Simple=Hn;var Wn=x.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[s(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[s(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});Jt.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=s(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=s(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return s(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?v(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[s(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=s(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var o in this._zoomBoundLayers){var r=this._zoomBoundLayers[o].options;e=void 0===r.minZoom?e:Math.min(e,r.minZoom),t=void 0===r.maxZoom?t:Math.max(t,r.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Vn=Wn.extend({initialize:function(e,t){var n,o;if(h(this,t),this._layers={},e)for(n=0,o=e.length;n<o;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"===typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,o=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,o);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return s(e)}}),jn=function(e,t){return new Vn(e,t)},Bn=Vn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Vn.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Vn.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new G;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),zn=function(e,t){return new Bn(e,t)},Un=T.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){h(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(o,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(o.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),o},_setIconStyles:function(e,t){var n=this.options,o=n[t+"Size"];"number"===typeof o&&(o=[o,o]);var r=M(o),i=M("shadow"===t&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),i&&(e.style.marginLeft=-i.x+"px",e.style.marginTop=-i.y+"px"),r&&(e.style.width=r.x+"px",e.style.height=r.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Ie.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Kn(e){return new Un(e)}var qn=Un.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!==typeof qn.imagePath&&(qn.imagePath=this._detectIconPath()),(this.options.imagePath||qn.imagePath)+Un.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var o=t.exec(e);return o&&o[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=pt("div","leaflet-default-icon-path",document.body),t=ct(e,"background-image")||ct(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-"leaflet.css".length-1):""}}),Yn=hn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new vn(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),vt(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,o=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,i=Ot(t._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),l=k(s.min._subtract(a).add(r),s.max._subtract(a).subtract(r));if(!l.contains(i)){var u=M((Math.max(l.max.x,i.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,i.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,i.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,i.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(o);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),Rt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=R(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=R(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,o=Ot(t._icon),r=t._map.layerPointToLatLng(o);n&&Rt(n,o),t._latlng=r,e.latlng=r,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),Zn=Wn.extend({options:{icon:new qn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){h(this,t),this._latlng=V(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=V(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),vt(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Mt(n,"focus",this._panOnFocus,this);var r=e.icon.createShadow(this._shadow),i=!1;r!==this._shadow&&(this._removeShadow(),i=!0),r&&(vt(r,t),r.alt=""),this._shadow=r,e.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&i&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&kt(this._icon,"focus",this._panOnFocus,this),dt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&dt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&Rt(this._icon,e),this._shadow&&Rt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(vt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Yn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Yn(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&_t(this._icon,e),this._shadow&&_t(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?M(t.iconSize):M(0,0),o=t.iconAnchor?M(t.iconAnchor):M(0,0);e.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:n.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function $n(e,t){return new Zn(e,t)}var Xn=Wn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return h(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Qn=Xn.extend({options:{fill:!0,radius:10},initialize:function(e,t){h(this,t),this._latlng=V(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=V(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return Xn.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),o=[e+n,t+n];this._pxBounds=new F(this._point.subtract(o),this._point.add(o))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Jn(e,t){return new Qn(e,t)}var eo=Qn.extend({initialize:function(e,t,o){if("number"===typeof t&&(t=n({},o,{radius:t})),h(this,t),this._latlng=V(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new G(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:Xn.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,o=n.options.crs;if(o.distance===B.distance){var r=Math.PI/180,i=this._mRadius/B.R/r,s=n.project([t+i,e]),a=n.project([t-i,e]),l=s.add(a).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(i*r)-Math.sin(t*r)*Math.sin(u*r))/(Math.cos(t*r)*Math.cos(u*r)))/r;(isNaN(c)||0===c)&&(c=i/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-s.y}else{var p=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(p).x}this._updateBounds()}});function to(e,t,n){return new eo(e,t,n)}var no=Xn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){h(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,o=1/0,r=null,i=Tn,s=0,a=this._parts.length;s<a;s++)for(var l=this._parts[s],u=1,c=l.length;u<c;u++){var p=i(e,t=l[u-1],n=l[u],!0);p<o&&(o=p,r=i(e,t,n))}return r&&(r.distance=Math.sqrt(o)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,o,r,i,s,a=this._rings[0],l=a.length;if(!l)return null;for(e=0,t=0;e<l-1;e++)t+=a[e].distanceTo(a[e+1])/2;if(0===t)return this._map.layerPointToLatLng(a[0]);for(e=0,o=0;e<l-1;e++)if(r=a[e],i=a[e+1],(o+=n=r.distanceTo(i))>t)return s=(o-t)/n,this._map.layerPointToLatLng([i.x-s*(i.x-r.x),i.y-s*(i.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=V(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new G,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=An(e),o=0,r=e.length;o<r;o++)n?(t[o]=V(e[o]),this._bounds.extend(t[o])):t[o]=this._convertLatLngs(e[o]);return t},_project:function(){var e=new F;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new N(e,e);this._rawPxBounds&&(this._pxBounds=new F([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var o,r,i=e[0]instanceof W,s=e.length;if(i){for(r=[],o=0;o<s;o++)r[o]=this._map.latLngToLayerPoint(e[o]),n.extend(r[o]);t.push(r)}else for(o=0;o<s;o++)this._projectLatlngs(e[o],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,o,r,i,s,a,l=this._parts;for(t=0,o=0,r=this._rings.length;t<r;t++)for(n=0,i=(a=this._rings[t]).length;n<i-1;n++)(s=Sn(a[n],a[n+1],e,n,!0))&&(l[o]=l[o]||[],l[o].push(s[0]),s[1]===a[n+1]&&n!==i-2||(l[o].push(s[1]),o++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,o=e.length;n<o;n++)e[n]=yn(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,o,r,i,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,i=this._parts.length;n<i;n++)for(o=0,r=(s=(a=this._parts[n]).length)-1;o<s;r=o++)if((t||0!==o)&&Cn(e,a[r],a[o])<=l)return!0;return!1}});function oo(e,t){return new no(e,t)}no._flat=Dn;var ro=no.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,o,r,i,s,a,l,u=this._rings[0],c=u.length;if(!c)return null;for(i=s=a=0,e=0,t=c-1;e<c;t=e++)n=u[e],o=u[t],r=n.y*o.x-o.y*n.x,s+=(n.x+o.x)*r,a+=(n.y+o.y)*r,i+=3*r;return l=0===i?u[0]:[s/i,a/i],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=no.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof W&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){no.prototype._setLatLngs.call(this,e),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new N(t,t);if(e=new F(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var o,r=0,i=this._rings.length;r<i;r++)(o=Nn(this._rings[r],e,!0)).length&&this._parts.push(o)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,o,r,i,s,a,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(r=0,a=this._parts.length;r<a;r++)for(i=0,s=(l=(t=this._parts[r]).length)-1;i<l;s=i++)n=t[i],o=t[s],n.y>e.y!==o.y>e.y&&e.x<(o.x-n.x)*(e.y-n.y)/(o.y-n.y)+n.x&&(u=!u);return u||no.prototype._containsPoint.call(this,e,!0)}});function io(e,t){return new ro(e,t)}var so=Bn.extend({initialize:function(e,t){h(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,o,r=v(e)?e:e.features;if(r){for(t=0,n=r.length;t<n;t++)((o=r[t]).geometries||o.geometry||o.features||o.coordinates)&&this.addData(o);return this}var i=this.options;if(i.filter&&!i.filter(e))return this;var s=ao(e,i);return s?(s.feature=go(e),s.defaultOptions=s.options,this.resetStyle(s),i.onEachFeature&&i.onEachFeature(e,s),this.addLayer(s)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"===typeof t&&(t=t(e.feature)),e.setStyle(t))}});function ao(e,t){var n,o,r,i,s="Feature"===e.type?e.geometry:e,a=s?s.coordinates:null,l=[],u=t&&t.pointToLayer,c=t&&t.coordsToLatLng||uo;if(!a&&!s)return null;switch(s.type){case"Point":return lo(u,e,n=c(a),t);case"MultiPoint":for(r=0,i=a.length;r<i;r++)n=c(a[r]),l.push(lo(u,e,n,t));return new Bn(l);case"LineString":case"MultiLineString":return o=co(a,"LineString"===s.type?0:1,c),new no(o,t);case"Polygon":case"MultiPolygon":return o=co(a,"Polygon"===s.type?1:2,c),new ro(o,t);case"GeometryCollection":for(r=0,i=s.geometries.length;r<i;r++){var p=ao({geometry:s.geometries[r],type:"Feature",properties:e.properties},t);p&&l.push(p)}return new Bn(l);default:throw new Error("Invalid GeoJSON object.")}}function lo(e,t,n,o){return e?e(t,n):new Zn(n,o&&o.markersInheritOptions&&o)}function uo(e){return new W(e[1],e[0],e[2])}function co(e,t,n){for(var o,r=[],i=0,s=e.length;i<s;i++)o=t?co(e[i],t-1,n):(n||uo)(e[i]),r.push(o);return r}function po(e,t){return void 0!==(e=V(e)).alt?[c(e.lng,t),c(e.lat,t),c(e.alt,t)]:[c(e.lng,t),c(e.lat,t)]}function ho(e,t,n,o){for(var r=[],i=0,s=e.length;i<s;i++)r.push(t?ho(e[i],t-1,n,o):po(e[i],o));return!t&&n&&r.push(r[0]),r}function fo(e,t){return e.feature?n({},e.feature,{geometry:t}):go(t)}function go(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var mo={toGeoJSON:function(e){return fo(this,{type:"Point",coordinates:po(this.getLatLng(),e)})}};function vo(e,t){return new so(e,t)}Zn.include(mo),eo.include(mo),Qn.include(mo),no.include({toGeoJSON:function(e){var t=!An(this._latlngs);return fo(this,{type:(t?"Multi":"")+"LineString",coordinates:ho(this._latlngs,t?1:0,!1,e)})}}),ro.include({toGeoJSON:function(e){var t=!An(this._latlngs),n=t&&!An(this._latlngs[0]),o=ho(this._latlngs,n?2:t?1:0,!0,e);return t||(o=[o]),fo(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),Vn.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),fo(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,o=[];return this.eachLayer((function(t){if(t.toGeoJSON){var r=t.toGeoJSON(e);if(n)o.push(r.geometry);else{var i=go(r);"FeatureCollection"===i.type?o.push.apply(o,i.features):o.push(i)}}})),n?fo(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});var yo=vo,Co=Wn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=H(t),h(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(vt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){dt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&ft(this._image),this},bringToBack:function(){return this._map&>(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=H(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:pt("img");vt(t,"leaflet-image-layer"),this._zoomAnimated&&vt(t,"leaflet-zoom-animated"),this.options.className&&vt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onload=r(this.fire,this,"load"),t.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;St(this._image,n,t)},_reset:function(){var e=this._image,t=new F(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();Rt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){_t(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),wo=function(e,t,n){return new Co(e,t,n)},_o=Co.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:pt("video");if(vt(t,"leaflet-image-layer"),this._zoomAnimated&&vt(t,"leaflet-zoom-animated"),this.options.className&&vt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onloadeddata=r(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),o=[],i=0;i<n.length;i++)o.push(n[i].src);this._url=n.length>0?o:[t.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=pt("source");a.src=this._url[s],t.appendChild(a)}}}});function bo(e,t,n){return new _o(e,t,n)}var Eo=Co.extend({_initImage:function(){var e=this._image=this._url;vt(e,"leaflet-image-layer"),this._zoomAnimated&&vt(e,"leaflet-zoom-animated"),this.options.className&&vt(e,this.options.className),e.onselectstart=u,e.onmousemove=u}});function So(e,t,n){return new Eo(e,t,n)}var Ro=Wn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(e,t){h(this,e),this._source=t},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&_t(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&_t(this._container,1),this.bringToFront(),this.options.interactive&&(vt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(_t(this._container,0),this._removeTimeout=setTimeout(r(dt,void 0,this._container),200)):dt(this._container),this.options.interactive&&(yt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=V(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ft(this._container),this},bringToBack:function(){return this._map&>(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof Bn){t=null;var n=this._source._layers;for(var o in n)if(n[o]._map){t=n[o];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=M(this.options.offset),n=this._getAnchor();this._zoomAnimated?Rt(this._container,e.add(n)):t=t.add(e).add(n);var o=this._containerBottom=-t.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=o+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}});Jt.include({_initOverlay:function(e,t,n,o){var r=t;return r instanceof e||(r=new e(o).setContent(t)),n&&r.setLatLng(n),r}}),Wn.include({_initOverlay:function(e,t,n,o){var r=n;return r instanceof e?(h(r,o),r._source=this):(r=t&&!o?t:new e(o,this)).setContent(n),r}});var Oo=Ro.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Ro.prototype.openOn.call(this,e)},onAdd:function(e){Ro.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Xn||this._source.on("preclick",jt))},onRemove:function(e){Ro.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Xn||this._source.off("preclick",jt))},getEvents:function(){var e=Ro.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=pt("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=pt("div",e+"-content-wrapper",t);if(this._contentNode=pt("div",e+"-content",n),zt(t),Bt(this._contentNode),Mt(t,"contextmenu",jt),this._tipContainer=pt("div",e+"-tip-container",t),this._tip=pt("div",e+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=pt("a",e+"-close-button",t);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">×</span>',Mt(o,"click",this.close,this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var o=e.offsetHeight,r=this.options.maxHeight,i="leaflet-popup-scrolled";r&&o>r?(t.height=r+"px",vt(e,i)):yt(e,i),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();Rt(this._container,t.add(n))},_adjustPan:function(e){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,n=parseInt(ct(this._container,"marginBottom"),10)||0,o=this._container.offsetHeight+n,r=this._containerWidth,i=new N(this._containerLeft,-o-this._containerBottom);i._add(Ot(this._container));var s=t.layerPointToContainerPoint(i),a=M(this.options.autoPanPadding),l=M(this.options.autoPanPaddingTopLeft||a),u=M(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),p=0,d=0;s.x+r+u.x>c.x&&(p=s.x+r-c.x+u.x),s.x-p-l.x<0&&(p=s.x-l.x),s.y+o+u.y>c.y&&(d=s.y+o-c.y+u.y),s.y-d-l.y<0&&(d=s.y-l.y),(p||d)&&t.fire("autopanstart").panBy([p,d],{animate:e&&"moveend"===e.type})}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Po=function(e,t){return new Oo(e,t)};Jt.mergeOptions({closePopupOnClick:!0}),Jt.include({openPopup:function(e,t,n){return this._initOverlay(Oo,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),Wn.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Oo,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&this._popup._prepareOpen(e)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Kt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof Xn?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var To=Ro.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Ro.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Ro.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Ro.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=pt("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,o=this._map,r=this._container,i=o.latLngToContainerPoint(o.getCenter()),s=o.layerPointToContainerPoint(e),a=this.options.direction,l=r.offsetWidth,u=r.offsetHeight,c=M(this.options.offset),p=this._getAnchor();"top"===a?(t=l/2,n=u):"bottom"===a?(t=l/2,n=0):"center"===a?(t=l/2,n=u/2):"right"===a?(t=0,n=u/2):"left"===a?(t=l,n=u/2):s.x<i.x?(a="right",t=0,n=u/2):(a="left",t=l+2*(c.x+p.x),n=u/2),e=e.subtract(M(t,n,!0)).add(c).add(p),yt(r,"leaflet-tooltip-right"),yt(r,"leaflet-tooltip-left"),yt(r,"leaflet-tooltip-top"),yt(r,"leaflet-tooltip-bottom"),vt(r,"leaflet-tooltip-"+a),Rt(r,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&_t(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return M(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ao=function(e,t){return new To(e,t)};Jt.include({openTooltip:function(e,t,n){return this._initOverlay(To,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),Wn.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(To,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&this._tooltip._prepareOpen(e)&&this._tooltip.openOn(this._map),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0))},_moveTooltip:function(e){var t,n,o=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),o=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(o)}});var Do=Un.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ht(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var o=M(n.bgPos);t.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function xo(e){return new Do(e)}Un.Default=qn;var No=Wn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ie.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){h(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),dt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ft(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(gt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof N?e:new N(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,o=-e(-1/0,1/0),r=0,i=n.length;r<i;r++)t=n[r].style.zIndex,n[r]!==this._container&&t&&(o=e(o,+t));isFinite(o)&&(this.options.zIndex=o+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ie.ielt9){_t(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var o in this._tiles){var r=this._tiles[o];if(r.current&&r.loaded){var i=Math.min(1,(e-r.loaded)/200);_t(r.el,i),i<1?t=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(O(this._fadeFrame),this._fadeFrame=R(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=pt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(dt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var o=this._levels[e],r=this._map;return o||((o=this._levels[e]={}).el=pt("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=t,o.origin=r.project(r.unproject(r.getPixelOrigin()),e).round(),o.zoom=e,this._setZoomTransform(o,r.getCenter(),r.getZoom()),u(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var o=t.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)dt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,o){var r=Math.floor(e/2),i=Math.floor(t/2),s=n-1,a=new N(+r,+i);a.z=+s;var l=this._tileCoordsToKey(a),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),s>o&&this._retainParent(r,i,s,o))},_retainChildren:function(e,t,n,o){for(var r=2*e;r<2*e+2;r++)for(var i=2*t;i<2*t+2;i++){var s=new N(r,i);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<o&&this._retainChildren(r,i,n+1,o))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,o){var r=Math.round(t);r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r);var i=this.options.updateWhenZooming&&r!==this._tileZoom;o&&!i||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var o=this._map.getZoomScale(n,e.zoom),r=e.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(t,n)).round();Ie.any3d?St(e.el,r,o):Rt(e.el,r)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),o=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],o).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],o).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],o).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],o).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),o=t.getZoomScale(n,this._tileZoom),r=t.project(e,this._tileZoom).floor(),i=t.getSize().divideBy(2*o);return new F(r.subtract(i),r.add(i))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var o=this._getTiledPixelBounds(e),r=this._pxBoundsToTileRange(o),i=r.getCenter(),s=[],a=this.options.keepBuffer,l=new F(r.getBottomLeft().subtract([a,-a]),r.getTopRight().add([a,-a]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new N(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var p=r.min.y;p<=r.max.y;p++)for(var d=r.min.x;d<=r.max.x;d++){var h=new N(d,p);if(h.z=this._tileZoom,this._isValidTile(h)){var f=this._tiles[this._tileCoordsToKey(h)];f?f.current=!0:s.push(h)}}if(s.sort((function(e,t){return e.distanceTo(i)-t.distanceTo(i)})),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(d=0;d<s.length;d++)this._addTile(s[d],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(e);return H(this.options.bounds).overlaps(o)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),o=e.scaleBy(n),r=o.add(n);return[t.unproject(o,e.z),t.unproject(r,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new G(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new N(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(dt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){vt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=u,e.onmousemove=u,Ie.ielt9&&this.options.opacity<1&&_t(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),o=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),r(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&R(r(this._tileReady,this,e,null,i)),Rt(i,n),this._tiles[o]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var o=this._tileCoordsToKey(e);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(_t(n.el,0),O(this._fadeFrame),this._fadeFrame=R(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(vt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ie.ielt9||!this._map._fadeAnimated?R(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new N(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new F(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Lo(e){return new No(e)}var Io=No.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=h(this,t)).detectRetina&&Ie.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"===typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return Mt(n,"load",r(this._tileOnLoad,this,t,n)),Mt(n,"error",r(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"===typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(e),n},getTileUrl:function(e){var t={r:Ie.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=o),t["-y"]=o}return m(this._url,n(t,this.options))},_tileOnLoad:function(e,t){Ie.ielt9?setTimeout(r(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var o=this.options.errorTileUrl;o&&t.getAttribute("src")!==o&&(t.src=o),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=u,t.onerror=u,!t.complete)){t.src=C;var n=this._tiles[e].coords;dt(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",C),No.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==C))return No.prototype._tileReady.call(this,e,t,n)}});function Mo(e,t){return new Io(e,t)}var Fo=Io.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var o=n({},this.defaultWmsParams);for(var r in t)r in this.options||(o[r]=t[r]);var i=(t=h(this,t)).detectRetina&&Ie.retina?2:1,s=this.getTileSize();o.width=s.x*i,o.height=s.y*i,this.wmsParams=o},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Io.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,o=k(n.project(t[0]),n.project(t[1])),r=o.min,i=o.max,s=(this._wmsVersion>=1.3&&this._crs===Gn?[r.y,r.x,i.y,i.x]:[r.x,r.y,i.x,i.y]).join(","),a=Io.prototype.getTileUrl.call(this,e);return a+f(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function ko(e,t){return new Fo(e,t)}Io.WMS=Fo,Mo.wms=ko;var Go=Wn.extend({options:{padding:.1},initialize:function(e){h(this,e),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&vt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,t),i=o.multiplyBy(-n).add(r).subtract(this._map._getNewPixelOrigin(e,t));Ie.any3d?St(this._container,i,n):Rt(this._container,i)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new F(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ho=Go.extend({options:{tolerance:0},getEvents:function(){var e=Go.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Go.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Mt(e,"mousemove",this._onMouseMove,this),Mt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Mt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,dt(this._container),kt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Go.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),o=Ie.retina?2:1;Rt(t,e.min),t.width=o*n.x,t.height=o*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Ie.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Go.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[s(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,o=t.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete e._order,delete this._layers[s(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"===typeof e.options.dashArray){var t,n,o=e.options.dashArray.split(/[, ]+/),r=[];for(n=0;n<o.length;n++){if(t=Number(o[n]),isNaN(t))return;r.push(t)}e.options._dashArray=r}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||R(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new F,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var o=this._drawFirst;o;o=o.next)e=o.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,o,r,i,s=e._parts,a=s.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(o=0,r=s[n].length;o<r;o++)i=s[n][o],l[o?"lineTo":"moveTo"](i.x,i.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,o=Math.max(Math.round(e._radius),1),r=(Math.max(Math.round(e._radiusY),1)||o)/o;1!==r&&(n.save(),n.scale(1,r)),n.beginPath(),n.arc(t.x,t.y/r,o,0,2*Math.PI,!1),1!==r&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,o=this._map.mouseEventToLayerPoint(e),r=this._drawFirst;r;r=r.next)(t=r.layer).options.interactive&&t._containsPoint(o)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(yt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,o,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(t)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(e),o&&(vt(this._container,"leaflet-interactive"),this._fireEvent([o],e,"mouseover"),this._hoveredLayer=o)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(r((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,o=t.prev;n&&(n.prev=o,o?o.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,o=t.prev;o&&(o.next=n,n?n.prev=o:o&&(this._drawLast=o),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function Wo(e){return Ie.canvas?new Ho(e):null}var Vo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),jo={_initContainer:function(){this._container=pt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Go.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Vo("shape");vt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Vo("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;dt(t),e.removeInteractiveTarget(t),delete this._layers[s(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,o=e.options,r=e._container;r.stroked=!!o.stroke,r.filled=!!o.fill,o.stroke?(t||(t=e._stroke=Vo("stroke")),r.appendChild(t),t.weight=o.weight+"px",t.color=o.color,t.opacity=o.opacity,o.dashArray?t.dashStyle=v(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=o.lineCap.replace("butt","flat"),t.joinstyle=o.lineJoin):t&&(r.removeChild(t),e._stroke=null),o.fill?(n||(n=e._fill=Vo("fill")),r.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(r.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),o=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+o+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){ft(e._container)},_bringToBack:function(e){gt(e._container)}},Bo=Ie.vml?Vo:$,zo=Go.extend({_initContainer:function(){this._container=Bo("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Bo("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){dt(this._container),kt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Go.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),Rt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=Bo("path");e.options.className&&vt(t,e.options.className),e.options.interactive&&vt(t,"leaflet-interactive"),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){dt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[s(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,X(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),o="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",r=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+o+2*n+",0 "+o+2*-n+",0 ";this._setPath(e,r)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){ft(e._path)},_bringToBack:function(e){gt(e._path)}});function Uo(e){return Ie.svg||Ie.vml?new zo(e):null}Ie.vml&&zo.include(jo),Jt.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Wo(e)||Uo(e)}});var Ko=ro.extend({initialize:function(e,t){ro.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=H(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function qo(e,t){return new Ko(e,t)}zo.create=Bo,zo.pointsToPath=X,so.geometryToLayer=ao,so.coordsToLatLng=uo,so.coordsToLatLngs=co,so.latLngToCoords=po,so.latLngsToCoords=ho,so.getFeature=fo,so.asFeature=go,Jt.mergeOptions({boxZoom:!0});var Yo=hn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Mt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){kt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){dt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),tt(),Tt(),this._startPoint=this._map.mouseEventToContainerPoint(e),Mt(document,{contextmenu:Kt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=pt("div","leaflet-zoom-box",this._container),vt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new F(this._point,this._startPoint),n=t.getSize();Rt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(dt(this._box),yt(this._container,"leaflet-crosshair")),nt(),At(),kt(document,{contextmenu:Kt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var t=new G(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Jt.addInitHook("addHandler","boxZoom",Yo),Jt.mergeOptions({doubleClickZoom:!0});var Zo=hn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),o=t.options.zoomDelta,r=e.originalEvent.shiftKey?n-o:n+o;"center"===t.options.doubleClickZoom?t.setZoom(r):t.setZoomAround(e.containerPoint,r)}});Jt.addInitHook("addHandler","doubleClickZoom",Zo),Jt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var $o=hn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new vn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}vt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){yt(this._map._container,"leaflet-grab"),yt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=H(this._map.options.maxBounds);this._offsetLimit=k(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,r=(o-t+n)%e+t-n,i=(o+t+n)%e-t-n,s=Math.abs(r+n)<Math.abs(i+n)?r:i;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(e){var t=this._map,n=t.options,o=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),o)t.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),i=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=r.multiplyBy(s/i),l=a.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=a.multiplyBy(u/l),p=u/(n.inertiaDeceleration*s),d=c.multiplyBy(-p/2).round();d.x||d.y?(d=t._limitOffset(d,t.options.maxBounds),R((function(){t.panBy(d,{duration:p,easeLinearity:s,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});Jt.addInitHook("addHandler","dragging",$o),Jt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Xo=hn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),Mt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),kt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,o=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(o,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,o=this._panKeys={},r=this.keyCodes;for(t=0,n=r.left.length;t<n;t++)o[r.left[t]]=[-1*e,0];for(t=0,n=r.right.length;t<n;t++)o[r.right[t]]=[e,0];for(t=0,n=r.down.length;t<n;t++)o[r.down[t]]=[0,e];for(t=0,n=r.up.length;t<n;t++)o[r.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,o=this._zoomKeys={},r=this.keyCodes;for(t=0,n=r.zoomIn.length;t<n;t++)o[r.zoomIn[t]]=e;for(t=0,n=r.zoomOut.length;t<n;t++)o[r.zoomOut[t]]=-e},_addHooks:function(){Mt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){kt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,o=this._map;if(n in this._panKeys)o._panAnim&&o._panAnim._inProgress||(t=this._panKeys[n],e.shiftKey&&(t=M(t).multiplyBy(3)),o.panBy(t),o.options.maxBounds&&o.panInsideBounds(o.options.maxBounds));else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}Kt(e)}}});Jt.addInitHook("addHandler","keyboard",Xo),Jt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Qo=hn.extend({addHooks:function(){Mt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){kt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=Zt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),o),Kt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var o=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,i=n?Math.ceil(r/n)*n:r,s=e._limitZoom(t+(this._delta>0?i:-i))-t;this._delta=0,this._startTime=null,s&&("center"===e.options.scrollWheelZoom?e.setZoom(t+s):e.setZoomAround(this._lastMousePos,t+s))}});Jt.addInitHook("addHandler","scrollWheelZoom",Qo);var Jo=600;Jt.mergeOptions({tapHold:Ie.touchNative&&Ie.safari&&Ie.mobile,tapTolerance:15});var er=hn.extend({addHooks:function(){Mt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){kt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new N(t.clientX,t.clientY),this._holdTimeout=setTimeout(r((function(){this._cancel(),this._isTapValid()&&(Mt(document,"touchend",Ut),Mt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),Jo),Mt(document,"touchend touchcancel contextmenu",this._cancel,this),Mt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){kt(document,"touchend",Ut),kt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),kt(document,"touchend touchcancel contextmenu",this._cancel,this),kt(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new N(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});Jt.addInitHook("addHandler","tapHold",er),Jt.mergeOptions({touchZoom:Ie.touch,bounceAtZoomLimits:!0});var tr=hn.extend({addHooks:function(){vt(this._map._container,"leaflet-touch-zoom"),Mt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){yt(this._map._container,"leaflet-touch-zoom"),kt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Mt(document,"touchmove",this._onTouchMove,this),Mt(document,"touchend touchcancel",this._onTouchEnd,this),Ut(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(o)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var s=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===s.x&&0===s.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var a=r(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=R(a,this,!0),Ut(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,O(this._animRequest),kt(document,"touchmove",this._onTouchMove,this),kt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Jt.addInitHook("addHandler","touchZoom",tr),Jt.BoxZoom=Yo,Jt.DoubleClickZoom=Zo,Jt.Drag=$o,Jt.Keyboard=Xo,Jt.ScrollWheelZoom=Qo,Jt.TapHold=er,Jt.TouchZoom=tr,e.Bounds=F,e.Browser=Ie,e.CRS=j,e.Canvas=Ho,e.Circle=eo,e.CircleMarker=Qn,e.Class=T,e.Control=tn,e.DivIcon=Do,e.DivOverlay=Ro,e.DomEvent=Xt,e.DomUtil=It,e.Draggable=vn,e.Evented=x,e.FeatureGroup=Bn,e.GeoJSON=so,e.GridLayer=No,e.Handler=hn,e.Icon=Un,e.ImageOverlay=Co,e.LatLng=W,e.LatLngBounds=G,e.Layer=Wn,e.LayerGroup=Vn,e.LineUtil=xn,e.Map=Jt,e.Marker=Zn,e.Mixin=gn,e.Path=Xn,e.Point=N,e.PolyUtil=Ln,e.Polygon=ro,e.Polyline=no,e.Popup=Oo,e.PosAnimation=Qt,e.Projection=Fn,e.Rectangle=Ko,e.Renderer=Go,e.SVG=zo,e.SVGOverlay=Eo,e.TileLayer=Io,e.Tooltip=To,e.Transformation=K,e.Util=P,e.VideoOverlay=_o,e.bind=r,e.bounds=k,e.canvas=Wo,e.circle=to,e.circleMarker=Jn,e.control=nn,e.divIcon=xo,e.extend=n,e.featureGroup=zn,e.geoJSON=vo,e.geoJson=yo,e.gridLayer=Lo,e.icon=Kn,e.imageOverlay=wo,e.latLng=V,e.latLngBounds=H,e.layerGroup=jn,e.map=en,e.marker=$n,e.point=M,e.polygon=io,e.polyline=oo,e.popup=Po,e.rectangle=qo,e.setOptions=h,e.stamp=s,e.svg=Uo,e.svgOverlay=So,e.tileLayer=Mo,e.tooltip=Ao,e.transformation=q,e.version=t,e.videoOverlay=bo;var nr=window.L;e.noConflict=function(){return window.L=nr,this},window.L=e}(t)},888:function(e,t,n){"use strict";var o=n(9047);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7511:function(e,t,n){"use strict";t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=l(n(2007)),i=l(n(1511)),s=l(n(9198)),a=n(9051);function l(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(){return!0},_="suggestions-revealed",b="input-focused",E="input-changed",S="escape-pressed",R=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(c,e);var t,n,r,l,u=(t=c,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function c(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),C(g(t=u.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),C(g(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),C(g(t),"onSuggestionMouseEnter",(function(e,n){var o=n.sectionIndex,r=n.itemIndex;t.updateHighlightedSuggestion(o,r),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),C(g(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),C(g(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),C(g(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),C(g(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),C(g(t),"onSuggestionSelected",(function(e,n){var o=t.props,r=o.alwaysRenderSuggestions,i=o.onSuggestionSelected,s=o.onSuggestionsFetchRequested;i&&i(e,n);var a=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);r||a?s({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),C(g(t),"onSuggestionClick",(function(e){var n=t.props,o=n.alwaysRenderSuggestions,r=n.focusInputOnSuggestionClick,i=t.getSuggestionIndices(t.findSuggestionElement(e.target)),s=i.sectionIndex,a=i.suggestionIndex,l=t.getSuggestion(s,a),u=t.props.getSuggestionValue(l);t.maybeCallOnChange(e,u,"click"),t.onSuggestionSelected(e,{suggestion:l,suggestionValue:u,suggestionIndex:a,sectionIndex:s,method:"click"});var c=t.props.shouldKeepSuggestionsOnSelect(l);o||c||t.closeSuggestions(),!0===r?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),C(g(t),"onBlur",(function(){var e=t.props,n=e.inputProps,o=e.shouldRenderSuggestions,r=n.value,i=n.onBlur,s=t.getHighlightedSuggestion(),a=o(r,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!a}),i&&i(t.blurEvent,{highlightedSuggestion:s})})),C(g(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),C(g(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),C(g(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),C(g(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),C(g(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,o=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:o,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return n=c,r=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,i.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.suggestions,r=n.onSuggestionHighlighted,s=n.highlightFirstSuggestion;if(!(0,i.default)(o,e.suggestions)&&o.length>0&&s)this.highlightFirstSuggestion();else if(r){var a=this.getHighlightedSuggestion();a!=t.highlightedSuggestion&&r({suggestion:a})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var o=this;this.setState((function(r){var i=r.valueBeforeUpDown;return null===t?i=null:null===i&&"undefined"!==typeof n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:o.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,o=n.suggestions,r=n.multiSection,i=n.getSectionSuggestions;return r?i(o[e])[t]:o[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"===typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var o=this.props.inputProps,r=o.value,i=o.onChange;t!==r&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,o=e.inputProps,r=e.shouldRenderSuggestions,i=o.value;return n.length>0&&r(i,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,r=t.renderInputComponent,i=t.onSuggestionsFetchRequested,l=t.renderSuggestion,u=t.inputProps,c=t.multiSection,p=t.renderSectionTitle,h=t.id,f=t.getSectionSuggestions,g=t.theme,m=t.getSuggestionValue,v=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,C=t.containerProps,R=this.state,O=R.isFocused,P=R.isCollapsed,T=R.highlightedSectionIndex,A=R.highlightedSuggestionIndex,D=R.valueBeforeUpDown,x=v?w:this.props.shouldRenderSuggestions,N=u.value,L=u.onFocus,I=u.onKeyDown,M=this.willRenderSuggestions(this.props,"render"),F=v||O&&!P&&M,k=F?n:[],G=d({},u,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=x(N,b);e.setState({isFocused:!0,isCollapsed:!n}),L&&L(t),n&&i({value:N,reason:b})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,o=x(n,E);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(d({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!o})),o?i({value:n,reason:E}):e.onSuggestionsClearRequested()},onKeyDown:function(t,o){var r=t.keyCode;switch(r){case 40:case 38:if(P)x(N,_)&&(i({value:N,reason:_}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var s,a=o.newHighlightedSectionIndex,l=o.newHighlightedItemIndex;s=null===l?null===D?N:D:e.getSuggestionValueByIndex(a,l),e.updateHighlightedSuggestion(a,l,N),e.maybeCallOnChange(t,s,40===r?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(F&&!v&&e.closeSuggestions(),null!=u){t.preventDefault();var c=m(u);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:c,suggestionIndex:A,sectionIndex:T,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:F&&t.preventDefault();var p=F&&!v;null===D?p||(e.maybeCallOnChange(t,"","escape"),x("",S)?i({value:"",reason:S}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,D,"escape"),p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}I&&I(t)}}),H={query:this.getQuery()};return o.default.createElement(s.default,{multiSection:c,items:k,renderInputComponent:r,renderItemsContainer:this.renderSuggestionsContainer,renderItem:l,renderItemData:H,renderSectionTitle:p,getSectionItems:f,highlightedSectionIndex:T,highlightedItemIndex:A,containerProps:C,inputProps:G,itemProps:this.itemProps,theme:(0,a.mapToAutowhateverTheme)(g),id:h,ref:this.storeAutowhateverRef})}}],r&&h(n.prototype,r),l&&h(n,l),c}(o.Component);t.default=R,C(R,"propTypes",{suggestions:r.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!==typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!==typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:r.default.func,onSuggestionSelected:r.default.func,onSuggestionHighlighted:r.default.func,renderInputComponent:r.default.func,renderSuggestionsContainer:r.default.func,getSuggestionValue:r.default.func.isRequired,renderSuggestion:r.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:r.default.func,alwaysRenderSuggestions:r.default.bool,multiSection:r.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!==typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!==typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:r.default.bool,highlightFirstSuggestion:r.default.bool,theme:r.default.object,id:r.default.string,containerProps:r.default.object}),C(R,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:a.defaultTheme,id:"1",containerProps:{}})},9198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=u(n(2007)),i=u(n(5201)),s=u(n(1016)),a=u(n(326)),l=u(n(5875));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function g(e){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return!t||"object"!==g(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E={},S=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(p,e);var t,n,r,u,c=(t=p,function(){var e,n=w(t);if(C()){var o=w(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return v(this,e)});function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),b(y(t=c.call(this,e)),"storeInputReference",(function(e){null!==e&&(t.input=e);var n=t.props.inputProps.ref;n&&("function"===typeof n?n(e):"object"===g(n)&&Object.prototype.hasOwnProperty.call(n,"current")&&(n.current=e))})),b(y(t),"storeItemsContainerReference",(function(e){null!==e&&(t.itemsContainer=e)})),b(y(t),"onHighlightedItemChange",(function(e){t.highlightedItem=e})),b(y(t),"getItemId",(function(e,n){if(null===n)return null;var o=t.props.id,r=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(o,"-").concat(r,"-item-").concat(n)})),b(y(t),"onFocus",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)})),b(y(t),"onBlur",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)})),b(y(t),"onKeyDown",(function(e){var n=t.props,o=n.inputProps,r=n.highlightedSectionIndex,i=n.highlightedItemIndex,s=e.keyCode;switch(s){case 40:case 38:var a=40===s?"next":"prev",l=h(t.sectionIterator[a]([r,i]),2),u=l[0],c=l[1];o.onKeyDown(e,{newHighlightedSectionIndex:u,newHighlightedItemIndex:c});break;default:o.onKeyDown(e,{highlightedSectionIndex:r,highlightedItemIndex:i})}})),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return n=p,(r=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,i.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,s.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,i=n.items,s=n.renderItem,u=n.renderItemData,c=n.renderSectionTitle,p=n.highlightedSectionIndex,d=n.highlightedItemIndex,h=n.itemProps;return i.map((function(n,i){var f="react-autowhatever-".concat(r,"-"),g="".concat(f,"section-").concat(i,"-"),m=0===i;return o.default.createElement("div",t("".concat(g,"container"),"sectionContainer",m&&"sectionContainerFirst"),o.default.createElement(a.default,{section:n,renderSectionTitle:c,theme:t,sectionKeyPrefix:g}),o.default.createElement(l.default,{items:e.sectionsItems[i],itemProps:h,renderItem:s,renderItemData:u,sectionIndex:i,highlightedItemIndex:p===i?d:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:f,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,r=n.id,i=n.renderItem,s=n.renderItemData,a=n.highlightedSectionIndex,u=n.highlightedItemIndex,c=n.itemProps;return o.default.createElement(l.default,{items:e,itemProps:c,renderItem:i,renderItemData:s,highlightedItemIndex:null===a?u:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(r,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,o=t.scrollTop;n<o?o=n:n+e.offsetHeight>o+t.offsetHeight&&(o=n+e.offsetHeight-t.offsetHeight),o!==t.scrollTop&&(t.scrollTop=o)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,r=t.multiSection,i=t.renderInputComponent,s=t.renderItemsContainer,a=t.highlightedSectionIndex,l=t.highlightedItemIndex,u=this.state.isInputFocused,c=r?this.renderSections():this.renderItems(),p=null!==c,h=this.getItemId(a,l),f="react-autowhatever-".concat(n),g=d({role:"combobox","aria-haspopup":"listbox","aria-owns":f,"aria-expanded":p},e("react-autowhatever-".concat(n,"-container"),"container",p&&"containerOpen"),{},this.props.containerProps),m=i(d({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":f,"aria-activedescendant":h},e("react-autowhatever-".concat(n,"-input"),"input",p&&"inputOpen",u&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=s({containerProps:d({id:f,role:"listbox"},e("react-autowhatever-".concat(n,"-items-container"),"itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:c});return o.default.createElement("div",g,m,v)}}])&&m(n.prototype,r),u&&m(n,u),p}(o.Component);t.default=S,b(S,"propTypes",{id:r.default.string,multiSection:r.default.bool,renderInputComponent:r.default.func,renderItemsContainer:r.default.func,items:r.default.array.isRequired,renderItem:r.default.func,renderItemData:r.default.object,renderSectionTitle:r.default.func,getSectionItems:r.default.func,containerProps:r.default.object,inputProps:r.default.object,itemProps:r.default.oneOfType([r.default.object,r.default.func]),highlightedSectionIndex:r.default.number,highlightedItemIndex:r.default.number,theme:r.default.oneOfType([r.default.object,r.default.array])}),b(S,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return o.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:E,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:E,inputProps:E,itemProps:E,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},7391:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=s(n(2007)),i=s(n(8448));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(l,e);var t,n,r,s,a=(t=l,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function l(){var e;d(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return C(g(e=a.call.apply(a,[this].concat(n))),"storeItemReference",(function(t){null!==t&&(e.item=t)})),C(g(e),"onMouseEnter",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onMouseLeave",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onMouseDown",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onClick",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onClick(t,{sectionIndex:o,itemIndex:r})})),e}return n=l,r=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,r=e.renderItem,i=e.renderItemData,s=p(e,["isHighlighted","item","renderItem","renderItemData"]);return delete s.sectionIndex,delete s.itemIndex,"function"===typeof s.onMouseEnter&&(s.onMouseEnter=this.onMouseEnter),"function"===typeof s.onMouseLeave&&(s.onMouseLeave=this.onMouseLeave),"function"===typeof s.onMouseDown&&(s.onMouseDown=this.onMouseDown),"function"===typeof s.onClick&&(s.onClick=this.onClick),o.default.createElement("li",u({role:"option"},s,{ref:this.storeItemReference}),r(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isHighlighted:t},i)))}}],r&&h(n.prototype,r),s&&h(n,s),l}(o.Component);t.default=w,C(w,"propTypes",{sectionIndex:r.default.number,isHighlighted:r.default.bool.isRequired,itemIndex:r.default.number.isRequired,item:r.default.any.isRequired,renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,onMouseEnter:r.default.func,onMouseLeave:r.default.func,onMouseDown:r.default.func,onClick:r.default.func})},5875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=a(n(2007)),i=a(n(7391)),s=a(n(8448));function a(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(u,e);var t,n,r,a,l=(t=u,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function u(){var e;d(this,u);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return C(g(e=l.call.apply(l,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return n=u,r=[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=t.itemProps,s=t.renderItem,a=t.renderItemData,l=t.sectionIndex,u=t.highlightedItemIndex,d=t.getItemId,h=t.theme,f=t.keyPrefix,g=null===l?f:"".concat(f,"section-").concat(l,"-"),m="function"===typeof r;return o.default.createElement("ul",c({role:"listbox"},h("".concat(g,"items-list"),"itemsList")),n.map((function(t,n){var f=0===n,v=n===u,y="".concat(g,"item-").concat(n),w=m?r({sectionIndex:l,itemIndex:n}):r,_=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:d(l,n),"aria-selected":v},h(y,"item",f&&"itemFirst",v&&"itemHighlighted"),{},w);return v&&(_.ref=e.storeHighlightedItemReference),o.default.createElement(i.default,c({},_,{sectionIndex:l,isHighlighted:v,itemIndex:n,item:t,renderItem:s,renderItemData:a}))})))}}],r&&h(n.prototype,r),a&&h(n,a),u}(o.Component);t.default=w,C(w,"propTypes",{items:r.default.array.isRequired,itemProps:r.default.oneOfType([r.default.object,r.default.func]),renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,sectionIndex:r.default.number,highlightedItemIndex:r.default.number,onHighlightedItemChange:r.default.func.isRequired,getItemId:r.default.func.isRequired,theme:r.default.func.isRequired,keyPrefix:r.default.string.isRequired}),C(w,"defaultProps",{sectionIndex:null})},326:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=s(n(2007)),i=s(n(8448));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}var g,m,v,y=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(l,e);var t,n,r,s,a=(t=l,function(){var e,n=h(t);if(d()){var o=h(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return p(this,e)});function l(){return u(this,l),a.apply(this,arguments)}return n=l,(r=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,i=e.sectionKeyPrefix,s=n(t);return s?o.default.createElement("div",r("".concat(i,"title"),"sectionTitle"),s):null}}])&&c(n.prototype,r),s&&c(n,s),l}(o.Component);t.default=y,g=y,m="propTypes",v={section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired},m in g?Object.defineProperty(g,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):g[m]=v},8448:function(e,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!0;var s,a,l={};for(s=0,a=o.length;s<a;s++)l[o[s]]=!0;for(s=0,a=r.length;s<a;s++){var u=r[s],c=e[u],p=t[u];if(c!==p){if(!l[u]||null===c||null===p||"object"!==n(c)||"object"!==n(p))return!0;var d=Object.keys(c),h=Object.keys(p);if(d.length!==h.length)return!0;for(var f=0,g=d.length;f<g;f++){var m=d[f];if(c[m]!==p[m])return!0}}}return!1}},9986:function(e,t,n){"use strict";e.exports=n(7511).default},9051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0;t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},1071:function(e,t,n){"use strict";var o=n(2791);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Object.prototype.hasOwnProperty,s=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a={},l={};function u(e){return!!i.call(l,e)||!i.call(a,e)&&(s.test(e)?l[e]=!0:(a[e]=!0,!1))}function c(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new c(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new c(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new c(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new c(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new c(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new c(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)}));var d=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(d,h);p[t]=new c(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(d,h);p[t]=new c(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(d,h);p[t]=new c(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)}));var f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","ms","Moz","O"];Object.keys(f).forEach((function(e){g.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),f[t]=f[e]}))}));var m=/["'&<>]/;function v(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=m.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}var y=/([A-Z])/g,C=/^ms-/,w=Array.isArray;function _(e,t){return{insertionMode:e,selectedValue:t}}var b=new Map;function E(e,t,n){if("object"!==typeof n)throw Error(r(62));for(var o in t=!0,n)if(i.call(n,o)){var s=n[o];if(null!=s&&"boolean"!==typeof s&&""!==s){if(0===o.indexOf("--")){var a=v(o);s=v((""+s).trim())}else{a=o;var l=b.get(a);void 0!==l||(l=v(a.replace(y,"-$1").toLowerCase().replace(C,"-ms-")),b.set(a,l)),a=l,s="number"===typeof s?0===s||i.call(f,o)?""+s:s+"px":v((""+s).trim())}t?(t=!1,e.push(' style="',a,":",s)):e.push(";",a,":",s)}}t||e.push('"')}function S(e,t,n,o){switch(n){case"style":return void E(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=p.hasOwnProperty(n)?p[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:o&&e.push(" ",n,'=""');break;case 4:!0===o?e.push(" ",n,'=""'):!1!==o&&e.push(" ",n,'="',v(o),'"');break;case 5:isNaN(o)||e.push(" ",n,'="',v(o),'"');break;case 6:!isNaN(o)&&1<=o&&e.push(" ",n,'="',v(o),'"');break;default:t.sanitizeURL&&(o=""+o),e.push(" ",n,'="',v(o),'"')}}else if(u(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',v(o),'"')}}function R(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!==typeof t||!("__html"in t))throw Error(r(61));null!==(t=t.__html)&&void 0!==t&&e.push(""+t)}}function O(e,t,n,o){e.push(A(n));var r,s=n=null;for(r in t)if(i.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":n=a;break;case"dangerouslySetInnerHTML":s=a;break;default:S(e,o,r,a)}}return e.push(">"),R(e,s,n),"string"===typeof n?(e.push(v(n)),null):n}var P=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,T=new Map;function A(e){var t=T.get(e);if(void 0===t){if(!P.test(e))throw Error(r(65,e));t="<"+e,T.set(e,t)}return t}function D(e,t,n,s,a){switch(t){case"select":e.push(A("select"));var l=null,c=null;for(f in n)if(i.call(n,f)){var p=n[f];if(null!=p)switch(f){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;case"defaultValue":case"value":break;default:S(e,s,f,p)}}return e.push(">"),R(e,c,l),l;case"option":c=a.selectedValue,e.push(A("option"));var d=p=null,h=null,f=null;for(l in n)if(i.call(n,l)){var g=n[l];if(null!=g)switch(l){case"children":p=g;break;case"selected":h=g;break;case"dangerouslySetInnerHTML":f=g;break;case"value":d=g;default:S(e,s,l,g)}}if(null!=c)if(n=null!==d?""+d:function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(p),w(c)){for(s=0;s<c.length;s++)if(""+c[s]===n){e.push(' selected=""');break}}else""+c===n&&e.push(' selected=""');else h&&e.push(' selected=""');return e.push(">"),R(e,f,p),p;case"textarea":for(p in e.push(A("textarea")),f=c=l=null,n)if(i.call(n,p)&&null!=(d=n[p]))switch(p){case"children":f=d;break;case"value":l=d;break;case"defaultValue":c=d;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:S(e,s,p,d)}if(null===l&&null!==c&&(l=c),e.push(">"),null!=f){if(null!=l)throw Error(r(92));if(w(f)&&1<f.length)throw Error(r(93));l=""+f}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(v(""+l)),null;case"input":for(c in e.push(A("input")),d=f=p=l=null,n)if(i.call(n,c)&&null!=(h=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":d=h;break;case"defaultValue":p=h;break;case"checked":f=h;break;case"value":l=h;break;default:S(e,s,c,h)}return null!==f?S(e,s,"checked",f):null!==d&&S(e,s,"checked",d),null!==l?S(e,s,"value",l):null!==p&&S(e,s,"value",p),e.push("/>"),null;case"menuitem":for(var m in e.push(A("menuitem")),n)if(i.call(n,m)&&null!=(l=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:S(e,s,m,l)}return e.push(">"),null;case"title":for(g in e.push(A("title")),l=null,n)if(i.call(n,g)&&null!=(c=n[g]))switch(g){case"children":l=c;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:S(e,s,g,c)}return e.push(">"),l;case"listing":case"pre":for(d in e.push(A(t)),c=l=null,n)if(i.call(n,d)&&null!=(p=n[d]))switch(d){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;default:S(e,s,d,p)}if(e.push(">"),null!=c){if(null!=l)throw Error(r(60));if("object"!==typeof c||!("__html"in c))throw Error(r(61));null!==(n=c.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(A(t)),n)if(i.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,t));default:S(e,s,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return O(e,n,t,s);case"html":return 0===a.insertionMode&&e.push("<!DOCTYPE html>"),O(e,n,t,s);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return O(e,n,t,s);for(h in e.push(A(t)),c=l=null,n)if(i.call(n,h)&&null!=(p=n[h]))switch(h){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;case"style":E(e,s,p);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(h)&&"function"!==typeof p&&"symbol"!==typeof p&&e.push(" ",h,'="',v(p),'"')}return e.push(">"),R(e,c,l),l}}function x(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(r(395));return e.push(n),e.push('"></template>')}var N=/[<\u2028\u2029]/g;function L(e){return JSON.stringify(e).replace(N,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function I(e,t,n,o){return n.generateStaticMarkup?(e.push(v(t)),!1):(""===t?e=o:(o&&e.push("\x3c!-- --\x3e"),e.push(v(t)),e=!0),e)}var M=Object.assign,F=Symbol.for("react.element"),k=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),j=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Y=Symbol.for("react.scope"),Z=Symbol.for("react.debug_trace_mode"),$=Symbol.for("react.legacy_hidden"),X=Symbol.for("react.default_value"),Q=Symbol.iterator;function J(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case G:return"Fragment";case k:return"Portal";case W:return"Profiler";case H:return"StrictMode";case z:return"Suspense";case U:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case V:return(e._context.displayName||"Context")+".Provider";case B:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case K:return null!==(t=e.displayName||null)?t:J(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return J(e(t))}catch(n){}}return null}var ee={};function te(e,t){if(!(e=e.contextTypes))return ee;var n,o={};for(n in e)o[n]=t[n];return o}var ne=null;function oe(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));oe(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function ie(e){var t=e.parent;null!==t&&ie(t),e.context._currentValue2=e.value}function se(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?oe(e,t):se(e,t)}function ae(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?oe(e,n):ae(e,n),t.context._currentValue2=t.value}function le(e){var t=ne;t!==e&&(null===t?ie(e):null===e?re(t):t.depth===e.depth?oe(t,e):t.depth>e.depth?se(t,e):ae(t,e),ne=e)}var ue={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,o){var r=void 0!==e.state?e.state:null;e.updater=ue,e.props=n,e.state=r;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"===typeof s&&null!==s?s._currentValue2:o,"function"===typeof(s=t.getDerivedStateFromProps)&&(r=null===(s=s(n,r))||void 0===s?r:M({},r,s),e.state=r),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&ue.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,r=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"===typeof a?a.call(e,i,n,o):a)&&(r?(r=!1,i=M({},i,a)):M(i,a))}e.state=i}else i.queue=null}var pe={id:1,overflow:""};function de(e,t,n){var o=e.id;e=e.overflow;var r=32-he(o)-1;o&=~(1<<r),n+=1;var i=32-he(t)+r;if(30<i){var s=r-r%5;return i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,{id:1<<32-he(t)+r|n<<r|o,overflow:i+e}}return{id:1<<i|n<<r|o,overflow:e}}var he=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(fe(e)/ge|0)|0},fe=Math.log,ge=Math.LN2;var me="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ve=null,ye=null,Ce=null,we=null,_e=!1,be=!1,Ee=0,Se=null,Re=0;function Oe(){if(null===ve)throw Error(r(321));return ve}function Pe(){if(0<Re)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Te(){return null===we?null===Ce?(_e=!1,Ce=we=Pe()):(_e=!0,we=Ce):null===we.next?(_e=!1,we=we.next=Pe()):(_e=!0,we=we.next),we}function Ae(){ye=ve=null,be=!1,Ce=null,Re=0,we=Se=null}function De(e,t){return"function"===typeof t?t(e):t}function xe(e,t,n){if(ve=Oe(),we=Te(),_e){var o=we.queue;if(t=o.dispatch,null!==Se&&void 0!==(n=Se.get(o))){Se.delete(o),o=we.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return we.memoizedState=o,[o,t]}return[we.memoizedState,t]}return e=e===De?"function"===typeof t?t():t:void 0!==n?n(t):t,we.memoizedState=e,e=(e=we.queue={last:null,dispatch:null}).dispatch=Le.bind(null,ve,e),[we.memoizedState,e]}function Ne(e,t){if(ve=Oe(),t=void 0===t?null:t,null!==(we=Te())){var n=we.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!me(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),we.memoizedState=[e,t],e}function Le(e,t,n){if(25<=Re)throw Error(r(301));if(e===ve)if(be=!0,e={action:n,next:null},null===Se&&(Se=new Map),void 0===(n=Se.get(t)))Se.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ie(){throw Error(r(394))}function Me(){}var Fe={readContext:function(e){return e._currentValue2},useContext:function(e){return Oe(),e._currentValue2},useMemo:Ne,useReducer:xe,useRef:function(e){ve=Oe();var t=(we=Te()).memoizedState;return null===t?(e={current:e},we.memoizedState=e):t},useState:function(e){return xe(De,e)},useInsertionEffect:Me,useLayoutEffect:function(){},useCallback:function(e,t){return Ne((function(){return e}),t)},useImperativeHandle:Me,useEffect:Me,useDebugValue:Me,useDeferredValue:function(e){return Oe(),e},useTransition:function(){return Oe(),[!1,Ie]},useId:function(){var e=ye.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-he(e)-1)).toString(32)+t;var n=ke;if(null===n)throw Error(r(404));return t=Ee++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Oe(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},ke=null,Ge=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function He(e){return console.error(e),null}function We(){}function Ve(e,t,n,o,r,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&nt(e)},blockedBoundary:n,blockedSegment:o,abortSet:r,legacyContext:i,context:s,treeContext:a};return r.add(l),l}function je(e,t,n,o,r,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:r,textEmbedded:i}}function Be(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function ze(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ue(e,t,n,o,r){for(ve={},ye=t,Ee=0,e=n(o,r);be;)be=!1,Ee=0,Re+=1,we=null,e=n(o,r);return Ae(),e}function Ke(e,t,n,o){var i=n.render(),s=o.childContextTypes;if(null!==s&&void 0!==s){var a=t.legacyContext;if("function"!==typeof n.getChildContext)o=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(r(108,J(o)||"Unknown",l));o=M({},a,n)}t.legacyContext=o,Ze(e,t,i),t.legacyContext=a}else Ze(e,t,i)}function qe(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ye(e,t,n,o,i){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){i=te(n,t.legacyContext);var s=n.contextType;ce(s=new n(o,"object"===typeof s&&null!==s?s._currentValue2:i),n,o,i),Ke(e,t,s,n)}else{i=Ue(e,t,n,o,s=te(n,t.legacyContext));var a=0!==Ee;if("object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof)ce(i,n,o,s),Ke(e,t,i,n);else if(a){o=t.treeContext,t.treeContext=de(o,1,0);try{Ze(e,t,i)}finally{t.treeContext=o}}else Ze(e,t,i)}else{if("string"!==typeof n){switch(n){case $:case Z:case H:case W:case G:case U:return void Ze(e,t,o.children);case Y:throw Error(r(343));case z:e:{n=t.blockedBoundary,i=t.blockedSegment,s=o.fallback,o=o.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a=new Set,errorDigest:null},u=je(0,i.chunks.length,l,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var c=je(0,0,null,i.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=c;try{if(Xe(e,t,o),e.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push("\x3c!-- --\x3e"),c.status=1,et(l,c),0===l.pendingTasks)break e}catch(p){c.status=4,l.forceClientRender=!0,l.errorDigest=Be(e,p)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=Ve(e,s,n,u,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case B:if(o=Ue(e,t,n.render,o,i),0!==Ee){n=t.treeContext,t.treeContext=de(n,1,0);try{Ze(e,t,o)}finally{t.treeContext=n}}else Ze(e,t,o);return;case K:return void Ye(e,t,n=n.type,o=qe(n,o),i);case V:if(i=o.children,n=n._context,o=o.value,s=n._currentValue2,n._currentValue2=o,ne=o={parent:a=ne,depth:null===a?0:a.depth+1,context:n,parentValue:s,value:o},t.context=o,Ze(e,t,i),null===(e=ne))throw Error(r(403));return o=e.parentValue,e.context._currentValue2=o===X?e.context._defaultValue:o,e=ne=e.parent,void(t.context=e);case j:return void Ze(e,t,o=(o=o.children)(n._currentValue2));case q:return void Ye(e,t,n=(i=n._init)(n._payload),o=qe(n,o),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(s=D((i=t.blockedSegment).chunks,n,o,e.responseState,i.formatContext),i.lastPushedText=!1,a=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return _(1,null!=n.value?n.value:n.defaultValue);case"svg":return _(2,null);case"math":return _(3,null);case"foreignObject":return _(1,null);case"table":return _(4,null);case"thead":case"tbody":case"tfoot":return _(5,null);case"colgroup":return _(7,null);case"tr":return _(6,null)}return 4<=e.insertionMode||0===e.insertionMode?_(1,null):e}(a,n,o),Xe(e,t,s),i.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push("</",n,">")}i.lastPushedText=!1}}function Ze(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case F:return void Ye(e,t,n.type,n.props,n.ref);case k:throw Error(r(257));case q:var o=n._init;return void Ze(e,t,n=o(n._payload))}if(w(n))return void $e(e,t,n);if(null===n||"object"!==typeof n?o=null:o="function"===typeof(o=Q&&n[Q]||n["@@iterator"])?o:null,o&&(o=o.call(n))){if(!(n=o.next()).done){var i=[];do{i.push(n.value),n=o.next()}while(!n.done);$e(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(o=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"===typeof n&&((o=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function $e(e,t,n){for(var o=n.length,r=0;r<o;r++){var i=t.treeContext;t.treeContext=de(i,o,r);try{Xe(e,t,n[r])}finally{t.treeContext=i}}}function Xe(e,t,n){var o=t.blockedSegment.formatContext,r=t.legacyContext,i=t.context;try{return Ze(e,t,n)}catch(l){if(Ae(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,le(i),l;n=l;var s=t.blockedSegment,a=je(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=Ve(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,le(i)}}function Qe(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function Je(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(r(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach((function(e){return Je(e,t,n)})),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function et(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&et(e,n)}else e.completedSegments.push(t)}function tt(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=We,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&et(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Qe,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(et(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function nt(e){if(2!==e.status){var t=ne,n=Ge.current;Ge.current=Fe;var o=ke;ke=e.responseState;try{var r,i=e.pingedTasks;for(r=0;r<i.length;r++){var s=i[r],a=e,l=s.blockedSegment;if(0===l.status){le(s.context);try{Ze(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),s.abortSet.delete(s),l.status=1,tt(a,s.blockedBoundary,l)}catch(h){if(Ae(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var u=s.ping;h.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=h,d=Be(a,p);if(null===c?ze(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}i.splice(0,r),null!==e.destination&<(e,e.destination)}catch(h){Be(e,h),ze(e,h)}finally{ke=o,Ge.current=n,n===Fe&&le(t)}}}function ot(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=o.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var i=!0;o=n.chunks;var s=0;n=n.children;for(var a=0;a<n.length;a++){for(i=n[a];s<i.index;s++)t.push(o[s]);i=rt(e,t,i)}for(;s<o.length-1;s++)t.push(o[s]);return s<o.length&&(i=t.push(o[s])),i;default:throw Error(r(390))}}function rt(e,t,n){var o=n.boundary;if(null===o)return ot(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)return e.responseState.generateStaticMarkup||(o=o.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),o&&(t.push(' data-dgst="'),o=v(o),t.push(o),t.push('"')),t.push("></template>")),ot(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var i=e.responseState,s=i.nextSuspenseID++;return i=i.boundaryPrefix+s.toString(16),o=o.id=i,x(t,e.responseState,o),ot(e,t,n),t.push("\x3c!--/$--\x3e")}if(o.byteSize>e.progressiveChunkSize)return o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),x(t,e.responseState,o.id),ot(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=o.completedSegments).length)throw Error(r(391));return rt(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function it(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(r(397))}}(t,n.formatContext)}function st(e,t,n){for(var o=n.completedSegments,i=0;i<o.length;i++)at(e,t,n,o[i]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===o)throw Error(r(395));return n=n.toString(16),t.push(o),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function at(e,t,n,o){if(2===o.status)return!0;var i=o.id;if(-1===i){if(-1===(o.id=n.rootSegmentID))throw Error(r(392));return it(e,t,o)}return it(e,t,o),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),i=i.toString(16),t.push(i),t.push('","'),t.push(e.placeholderPrefix),t.push(i),t.push('")<\/script>')}function lt(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)t.push(o[n]);n<o.length&&t.push(o[n])}var i,s=e.clientRenderedBoundaries;for(i=0;i<s.length;i++){var a=s[i];o=t;var l=e.responseState,u=a.id,c=a.errorDigest,p=a.errorMessage,d=a.errorComponentStack;if(o.push(l.startInlineScript),l.sentClientRenderFunction?o.push('$RX("'):(l.sentClientRenderFunction=!0,o.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===u)throw Error(r(395));if(o.push(u),o.push('"'),c||p||d){o.push(",");var h=L(c||"");o.push(h)}if(p||d){o.push(",");var f=L(p||"");o.push(f)}if(d){o.push(",");var g=L(d);o.push(g)}if(!o.push(")<\/script>"))return e.destination=null,i++,void s.splice(0,i)}s.splice(0,i);var m=e.completedBoundaries;for(i=0;i<m.length;i++)if(!st(e,t,m[i]))return e.destination=null,i++,void m.splice(0,i);m.splice(0,i);var v=e.partialBoundaries;for(i=0;i<v.length;i++){var y=v[i];e:{s=e,a=t;var C=y.completedSegments;for(l=0;l<C.length;l++)if(!at(s,a,y,C[l])){l++,C.splice(0,l);var w=!1;break e}C.splice(0,l),w=!0}if(!w)return e.destination=null,i++,void v.splice(0,i)}v.splice(0,i);var _=e.completedBoundaries;for(i=0;i<_.length;i++)if(!st(e,t,_[i]))return e.destination=null,i++,void _.splice(0,i);_.splice(0,i)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function ut(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Je(n,e,t)})),n.clear(),null!==e.destination&<(e,e.destination)}catch(o){Be(e,o),ze(e,o)}}function ct(){}function pt(e,t,n,o){var i=!1,s=null,a="",l={push:function(e){return null!==e&&(a+=e),!0},destroy:function(e){i=!0,s=e}},u=!1;if(e=function(e,t,n,o,r,i,s,a,l){var u=[],c=new Set;return(n=je(t={destination:null,responseState:t,progressiveChunkSize:void 0===o?12800:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===r?He:r,onAllReady:void 0===i?We:i,onShellReady:void 0===s?We:s,onShellError:void 0===a?We:a,onFatalError:void 0===l?We:l},0,null,n,!1,!1)).parentFlushed=!0,e=Ve(t,e,null,n,c,ee,null,pe),u.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,void 0,(function(){u=!0}),void 0,void 0),nt(e),ut(e,o),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{lt(e,l)}catch(c){Be(e,c),ze(e,c)}}if(i)throw s;if(!u)throw Error(r(426));return a}t.renderToNodeStream=function(){throw Error(r(207))},t.renderToStaticMarkup=function(e,t){return pt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(r(208))},t.renderToString=function(e,t){return pt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},4424:function(e,t,n){"use strict";var o=n(2791);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=null,s=0;function a(e,t){if(0!==t.length)if(512<t.length)0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=new Uint8Array(512),s=0),e.enqueue(t);else{var n=i.length-s;n<t.length&&(0===n?e.enqueue(i):(i.set(t.subarray(0,n),s),e.enqueue(i),t=t.subarray(n)),i=new Uint8Array(512),s=0),i.set(t,s),s+=t.length}}function l(e,t){return a(e,t),!0}function u(e){i&&0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=null,s=0)}var c=new TextEncoder;function p(e){return c.encode(e)}function d(e){return c.encode(e)}function h(e,t){"function"===typeof e.error?e.error(t):e.close()}var f=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},v={};function y(e){return!!f.call(v,e)||!f.call(m,e)&&(g.test(e)?v[e]=!0:(m[e]=!0,!1))}function C(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){w[e]=new C(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];w[t]=new C(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){w[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){w[e]=new C(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){w[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){w[e]=new C(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){w[e]=new C(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){w[e]=new C(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){w[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)}));var _=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(_,b);w[t]=new C(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(_,b);w[t]=new C(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(_,b);w[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)})),w.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","ms","Moz","O"];Object.keys(E).forEach((function(e){S.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),E[t]=E[e]}))}));var R=/["'&<>]/;function O(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=R.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}var P=/([A-Z])/g,T=/^ms-/,A=Array.isArray,D=d("<script>"),x=d("<\/script>"),N=d('<script src="'),L=d('<script type="module" src="'),I=d('" async=""><\/script>'),M=/(<\/|<)(s)(cript)/gi;function F(e,t,n,o){return t+("s"===n?"\\u0073":"\\u0053")+o}function k(e,t){return{insertionMode:e,selectedValue:t}}var G=d("\x3c!-- --\x3e");function H(e,t,n,o){return""===t?o:(o&&e.push(G),e.push(p(O(t))),!0)}var W=new Map,V=d(' style="'),j=d(":"),B=d(";");function z(e,t,n){if("object"!==typeof n)throw Error(r(62));for(var o in t=!0,n)if(f.call(n,o)){var i=n[o];if(null!=i&&"boolean"!==typeof i&&""!==i){if(0===o.indexOf("--")){var s=p(O(o));i=p(O((""+i).trim()))}else{s=o;var a=W.get(s);void 0!==a||(a=d(O(s.replace(P,"-$1").toLowerCase().replace(T,"-ms-"))),W.set(s,a)),s=a,i="number"===typeof i?0===i||f.call(E,o)?p(""+i):p(i+"px"):p(O((""+i).trim()))}t?(t=!1,e.push(V,s,j,i)):e.push(B,s,j,i)}}t||e.push(q)}var U=d(" "),K=d('="'),q=d('"'),Y=d('=""');function Z(e,t,n,o){switch(n){case"style":return void z(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=w.hasOwnProperty(n)?w[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=p(t.attributeName),t.type){case 3:o&&e.push(U,n,Y);break;case 4:!0===o?e.push(U,n,Y):!1!==o&&e.push(U,n,K,p(O(o)),q);break;case 5:isNaN(o)||e.push(U,n,K,p(O(o)),q);break;case 6:!isNaN(o)&&1<=o&&e.push(U,n,K,p(O(o)),q);break;default:t.sanitizeURL&&(o=""+o),e.push(U,n,K,p(O(o)),q)}}else if(y(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(U,p(n),K,p(O(o)),q)}}var $=d(">"),X=d("/>");function Q(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!==typeof t||!("__html"in t))throw Error(r(61));null!==(t=t.__html)&&void 0!==t&&e.push(p(""+t))}}var J=d(' selected=""');function ee(e,t,n,o){e.push(re(n));var r,i=n=null;for(r in t)if(f.call(t,r)){var s=t[r];if(null!=s)switch(r){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:Z(e,o,r,s)}}return e.push($),Q(e,i,n),"string"===typeof n?(e.push(p(O(n))),null):n}var te=d("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oe=new Map;function re(e){var t=oe.get(e);if(void 0===t){if(!ne.test(e))throw Error(r(65,e));t=d("<"+e),oe.set(e,t)}return t}var ie=d("<!DOCTYPE html>");function se(e,t,n,i,s){switch(t){case"select":e.push(re("select"));var a=null,l=null;for(h in n)if(f.call(n,h)){var u=n[h];if(null!=u)switch(h){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;case"defaultValue":case"value":break;default:Z(e,i,h,u)}}return e.push($),Q(e,l,a),a;case"option":l=s.selectedValue,e.push(re("option"));var c=u=null,d=null,h=null;for(a in n)if(f.call(n,a)){var g=n[a];if(null!=g)switch(a){case"children":u=g;break;case"selected":d=g;break;case"dangerouslySetInnerHTML":h=g;break;case"value":c=g;default:Z(e,i,a,g)}}if(null!=l)if(n=null!==c?""+c:function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(u),A(l)){for(i=0;i<l.length;i++)if(""+l[i]===n){e.push(J);break}}else""+l===n&&e.push(J);else d&&e.push(J);return e.push($),Q(e,h,u),u;case"textarea":for(u in e.push(re("textarea")),h=l=a=null,n)if(f.call(n,u)&&null!=(c=n[u]))switch(u){case"children":h=c;break;case"value":a=c;break;case"defaultValue":l=c;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:Z(e,i,u,c)}if(null===a&&null!==l&&(a=l),e.push($),null!=h){if(null!=a)throw Error(r(92));if(A(h)&&1<h.length)throw Error(r(93));a=""+h}return"string"===typeof a&&"\n"===a[0]&&e.push(te),null!==a&&e.push(p(O(""+a))),null;case"input":for(l in e.push(re("input")),c=h=u=a=null,n)if(f.call(n,l)&&null!=(d=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":c=d;break;case"defaultValue":u=d;break;case"checked":h=d;break;case"value":a=d;break;default:Z(e,i,l,d)}return null!==h?Z(e,i,"checked",h):null!==c&&Z(e,i,"checked",c),null!==a?Z(e,i,"value",a):null!==u&&Z(e,i,"value",u),e.push(X),null;case"menuitem":for(var m in e.push(re("menuitem")),n)if(f.call(n,m)&&null!=(a=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:Z(e,i,m,a)}return e.push($),null;case"title":for(g in e.push(re("title")),a=null,n)if(f.call(n,g)&&null!=(l=n[g]))switch(g){case"children":a=l;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:Z(e,i,g,l)}return e.push($),a;case"listing":case"pre":for(c in e.push(re(t)),l=a=null,n)if(f.call(n,c)&&null!=(u=n[c]))switch(c){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;default:Z(e,i,c,u)}if(e.push($),null!=l){if(null!=a)throw Error(r(60));if("object"!==typeof l||!("__html"in l))throw Error(r(61));null!==(n=l.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push(te,p(n)):e.push(p(""+n)))}return"string"===typeof a&&"\n"===a[0]&&e.push(te),a;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(re(t)),n)if(f.call(n,v)&&null!=(a=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,t));default:Z(e,i,v,a)}return e.push(X),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,i);case"html":return 0===s.insertionMode&&e.push(ie),ee(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return ee(e,n,t,i);for(d in e.push(re(t)),l=a=null,n)if(f.call(n,d)&&null!=(u=n[d]))switch(d){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;case"style":z(e,i,u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(d)&&"function"!==typeof u&&"symbol"!==typeof u&&e.push(U,p(d),K,p(O(u)),q)}return e.push($),Q(e,l,a),a}}var ae=d("</"),le=d(">"),ue=d('<template id="'),ce=d('"></template>'),pe=d("\x3c!--$--\x3e"),de=d('\x3c!--$?--\x3e<template id="'),he=d('"></template>'),fe=d("\x3c!--$!--\x3e"),ge=d("\x3c!--/$--\x3e"),me=d("<template"),ve=d('"'),ye=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Ce=d("></template>");function we(e,t,n){if(a(e,de),null===n)throw Error(r(395));return a(e,n),l(e,he)}var _e=d('<div hidden id="'),be=d('">'),Ee=d("</div>"),Se=d('<svg aria-hidden="true" style="display:none" id="'),Re=d('">'),Oe=d("</svg>"),Pe=d('<math aria-hidden="true" style="display:none" id="'),Te=d('">'),Ae=d("</math>"),De=d('<table hidden id="'),xe=d('">'),Ne=d("</table>"),Le=d('<table hidden><tbody id="'),Ie=d('">'),Me=d("</tbody></table>"),Fe=d('<table hidden><tr id="'),ke=d('">'),Ge=d("</tr></table>"),He=d('<table hidden><colgroup id="'),We=d('">'),Ve=d("</colgroup></table>");var je=d('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Be=d('$RS("'),ze=d('","'),Ue=d('")<\/script>'),Ke=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),qe=d('$RC("'),Ye=d('","'),Ze=d('")<\/script>'),$e=d('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Xe=d('$RX("'),Qe=d('"'),Je=d(")<\/script>"),et=d(","),tt=/[<\u2028\u2029]/g;function nt(e){return JSON.stringify(e).replace(tt,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var ot=Object.assign,rt=Symbol.for("react.element"),it=Symbol.for("react.portal"),st=Symbol.for("react.fragment"),at=Symbol.for("react.strict_mode"),lt=Symbol.for("react.profiler"),ut=Symbol.for("react.provider"),ct=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),ht=Symbol.for("react.suspense_list"),ft=Symbol.for("react.memo"),gt=Symbol.for("react.lazy"),mt=Symbol.for("react.scope"),vt=Symbol.for("react.debug_trace_mode"),yt=Symbol.for("react.legacy_hidden"),Ct=Symbol.for("react.default_value"),wt=Symbol.iterator;function _t(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case st:return"Fragment";case it:return"Portal";case lt:return"Profiler";case at:return"StrictMode";case dt:return"Suspense";case ht:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case ut:return(e._context.displayName||"Context")+".Provider";case pt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ft:return null!==(t=e.displayName||null)?t:_t(e.type)||"Memo";case gt:t=e._payload,e=e._init;try{return _t(e(t))}catch(n){}}return null}var bt={};function Et(e,t){if(!(e=e.contextTypes))return bt;var n,o={};for(n in e)o[n]=t[n];return o}var St=null;function Rt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));Rt(e,n)}t.context._currentValue=t.value}}function Ot(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ot(e)}function Pt(e){var t=e.parent;null!==t&&Pt(t),e.context._currentValue=e.value}function Tt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?Rt(e,t):Tt(e,t)}function At(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?Rt(e,n):At(e,n),t.context._currentValue=t.value}function Dt(e){var t=St;t!==e&&(null===t?Pt(e):null===e?Ot(t):t.depth===e.depth?Rt(t,e):t.depth>e.depth?Tt(t,e):At(t,e),St=e)}var xt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Nt(e,t,n,o){var r=void 0!==e.state?e.state:null;e.updater=xt,e.props=n,e.state=r;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"===typeof s&&null!==s?s._currentValue:o,"function"===typeof(s=t.getDerivedStateFromProps)&&(r=null===(s=s(n,r))||void 0===s?r:ot({},r,s),e.state=r),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&xt.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,r=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"===typeof a?a.call(e,i,n,o):a)&&(r?(r=!1,i=ot({},i,a)):ot(i,a))}e.state=i}else i.queue=null}var Lt={id:1,overflow:""};function It(e,t,n){var o=e.id;e=e.overflow;var r=32-Mt(o)-1;o&=~(1<<r),n+=1;var i=32-Mt(t)+r;if(30<i){var s=r-r%5;return i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,{id:1<<32-Mt(t)+r|n<<r|o,overflow:i+e}}return{id:1<<i|n<<r|o,overflow:e}}var Mt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Ft(e)/kt|0)|0},Ft=Math.log,kt=Math.LN2;var Gt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Ht=null,Wt=null,Vt=null,jt=null,Bt=!1,zt=!1,Ut=0,Kt=null,qt=0;function Yt(){if(null===Ht)throw Error(r(321));return Ht}function Zt(){if(0<qt)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function $t(){return null===jt?null===Vt?(Bt=!1,Vt=jt=Zt()):(Bt=!0,jt=Vt):null===jt.next?(Bt=!1,jt=jt.next=Zt()):(Bt=!0,jt=jt.next),jt}function Xt(){Wt=Ht=null,zt=!1,Vt=null,qt=0,jt=Kt=null}function Qt(e,t){return"function"===typeof t?t(e):t}function Jt(e,t,n){if(Ht=Yt(),jt=$t(),Bt){var o=jt.queue;if(t=o.dispatch,null!==Kt&&void 0!==(n=Kt.get(o))){Kt.delete(o),o=jt.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return jt.memoizedState=o,[o,t]}return[jt.memoizedState,t]}return e=e===Qt?"function"===typeof t?t():t:void 0!==n?n(t):t,jt.memoizedState=e,e=(e=jt.queue={last:null,dispatch:null}).dispatch=tn.bind(null,Ht,e),[jt.memoizedState,e]}function en(e,t){if(Ht=Yt(),t=void 0===t?null:t,null!==(jt=$t())){var n=jt.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!Gt(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),jt.memoizedState=[e,t],e}function tn(e,t,n){if(25<=qt)throw Error(r(301));if(e===Ht)if(zt=!0,e={action:n,next:null},null===Kt&&(Kt=new Map),void 0===(n=Kt.get(t)))Kt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function nn(){throw Error(r(394))}function on(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Yt(),e._currentValue},useMemo:en,useReducer:Jt,useRef:function(e){Ht=Yt();var t=(jt=$t()).memoizedState;return null===t?(e={current:e},jt.memoizedState=e):t},useState:function(e){return Jt(Qt,e)},useInsertionEffect:on,useLayoutEffect:function(){},useCallback:function(e,t){return en((function(){return e}),t)},useImperativeHandle:on,useEffect:on,useDebugValue:on,useDeferredValue:function(e){return Yt(),e},useTransition:function(){return Yt(),[!1,nn]},useId:function(){var e=Wt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Mt(e)-1)).toString(32)+t;var n=sn;if(null===n)throw Error(r(404));return t=Ut++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Yt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},sn=null,an=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(e){return console.error(e),null}function un(){}function cn(e,t,n,o,r,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&Rn(e)},blockedBoundary:n,blockedSegment:o,abortSet:r,legacyContext:i,context:s,treeContext:a};return r.add(l),l}function pn(e,t,n,o,r,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:r,textEmbedded:i}}function dn(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function hn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,h(e.destination,t)):(e.status=1,e.fatalError=t)}function fn(e,t,n,o,r){for(Ht={},Wt=t,Ut=0,e=n(o,r);zt;)zt=!1,Ut=0,qt+=1,jt=null,e=n(o,r);return Xt(),e}function gn(e,t,n,o){var i=n.render(),s=o.childContextTypes;if(null!==s&&void 0!==s){var a=t.legacyContext;if("function"!==typeof n.getChildContext)o=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(r(108,_t(o)||"Unknown",l));o=ot({},a,n)}t.legacyContext=o,yn(e,t,i),t.legacyContext=a}else yn(e,t,i)}function mn(e,t){if(e&&e.defaultProps){for(var n in t=ot({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function vn(e,t,n,o,i){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){i=Et(n,t.legacyContext);var s=n.contextType;Nt(s=new n(o,"object"===typeof s&&null!==s?s._currentValue:i),n,o,i),gn(e,t,s,n)}else{i=fn(e,t,n,o,s=Et(n,t.legacyContext));var a=0!==Ut;if("object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof)Nt(i,n,o,s),gn(e,t,i,n);else if(a){o=t.treeContext,t.treeContext=It(o,1,0);try{yn(e,t,i)}finally{t.treeContext=o}}else yn(e,t,i)}else{if("string"!==typeof n){switch(n){case yt:case vt:case at:case lt:case st:case ht:return void yn(e,t,o.children);case mt:throw Error(r(343));case dt:e:{n=t.blockedBoundary,i=t.blockedSegment,s=o.fallback,o=o.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a=new Set,errorDigest:null},u=pn(0,i.chunks.length,l,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var c=pn(0,0,null,i.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=c;try{if(wn(e,t,o),c.lastPushedText&&c.textEmbedded&&c.chunks.push(G),c.status=1,En(l,c),0===l.pendingTasks)break e}catch(d){c.status=4,l.forceClientRender=!0,l.errorDigest=dn(e,d)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=cn(e,s,n,u,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case pt:if(o=fn(e,t,n.render,o,i),0!==Ut){n=t.treeContext,t.treeContext=It(n,1,0);try{yn(e,t,o)}finally{t.treeContext=n}}else yn(e,t,o);return;case ft:return void vn(e,t,n=n.type,o=mn(n,o),i);case ut:if(i=o.children,n=n._context,o=o.value,s=n._currentValue,n._currentValue=o,St=o={parent:a=St,depth:null===a?0:a.depth+1,context:n,parentValue:s,value:o},t.context=o,yn(e,t,i),null===(e=St))throw Error(r(403));return o=e.parentValue,e.context._currentValue=o===Ct?e.context._defaultValue:o,e=St=e.parent,void(t.context=e);case ct:return void yn(e,t,o=(o=o.children)(n._currentValue));case gt:return void vn(e,t,n=(i=n._init)(n._payload),o=mn(n,o),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(s=se((i=t.blockedSegment).chunks,n,o,e.responseState,i.formatContext),i.lastPushedText=!1,a=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return k(1,null!=n.value?n.value:n.defaultValue);case"svg":return k(2,null);case"math":return k(3,null);case"foreignObject":return k(1,null);case"table":return k(4,null);case"thead":case"tbody":case"tfoot":return k(5,null);case"colgroup":return k(7,null);case"tr":return k(6,null)}return 4<=e.insertionMode||0===e.insertionMode?k(1,null):e}(a,n,o),wn(e,t,s),i.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(ae,p(n),le)}i.lastPushedText=!1}}function yn(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case rt:return void vn(e,t,n.type,n.props,n.ref);case it:throw Error(r(257));case gt:var o=n._init;return void yn(e,t,n=o(n._payload))}if(A(n))return void Cn(e,t,n);if(null===n||"object"!==typeof n?o=null:o="function"===typeof(o=wt&&n[wt]||n["@@iterator"])?o:null,o&&(o=o.call(n))){if(!(n=o.next()).done){var i=[];do{i.push(n.value),n=o.next()}while(!n.done);Cn(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(o=t.blockedSegment).lastPushedText=H(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"===typeof n&&((o=t.blockedSegment).lastPushedText=H(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function Cn(e,t,n){for(var o=n.length,r=0;r<o;r++){var i=t.treeContext;t.treeContext=It(i,o,r);try{wn(e,t,n[r])}finally{t.treeContext=i}}}function wn(e,t,n){var o=t.blockedSegment.formatContext,r=t.legacyContext,i=t.context;try{return yn(e,t,n)}catch(l){if(Xt(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,Dt(i),l;n=l;var s=t.blockedSegment,a=pn(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,Dt(i)}}function _n(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Sn(this,t,e)}function bn(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(r(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach((function(e){return bn(e,t,n)})),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function En(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&En(e,n)}else e.completedSegments.push(t)}function Sn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=un,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&En(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(_n,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(En(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Rn(e){if(2!==e.status){var t=St,n=an.current;an.current=rn;var o=sn;sn=e.responseState;try{var r,i=e.pingedTasks;for(r=0;r<i.length;r++){var s=i[r],a=e,l=s.blockedSegment;if(0===l.status){Dt(s.context);try{yn(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(G),s.abortSet.delete(s),l.status=1,Sn(a,s.blockedBoundary,l)}catch(h){if(Xt(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var u=s.ping;h.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=h,d=dn(a,p);if(null===c?hn(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}i.splice(0,r),null!==e.destination&&xn(e,e.destination)}catch(h){dn(e,h),hn(e,h)}finally{sn=o,an.current=n,n===rn&&Dt(t)}}}function On(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,a(t,ue),a(t,e.placeholderPrefix),a(t,e=p(o.toString(16))),l(t,ce);case 1:n.status=2;var i=!0;o=n.chunks;var s=0;n=n.children;for(var u=0;u<n.length;u++){for(i=n[u];s<i.index;s++)a(t,o[s]);i=Pn(e,t,i)}for(;s<o.length-1;s++)a(t,o[s]);return s<o.length&&(i=l(t,o[s])),i;default:throw Error(r(390))}}function Pn(e,t,n){var o=n.boundary;if(null===o)return On(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)o=o.errorDigest,l(t,fe),a(t,me),o&&(a(t,ye),a(t,p(O(o))),a(t,ve)),l(t,Ce),On(e,t,n);else if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var i=e.responseState,s=i.nextSuspenseID++;i=d(i.boundaryPrefix+s.toString(16)),o=o.id=i,we(t,e.responseState,o),On(e,t,n)}else if(o.byteSize>e.progressiveChunkSize)o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),we(t,e.responseState,o.id),On(e,t,n);else{if(l(t,pe),1!==(n=o.completedSegments).length)throw Error(r(391));Pn(e,t,n[0])}return l(t,ge)}function Tn(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return a(e,_e),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,be);case 2:return a(e,Se),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Re);case 3:return a(e,Pe),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Te);case 4:return a(e,De),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,xe);case 5:return a(e,Le),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Ie);case 6:return a(e,Fe),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,ke);case 7:return a(e,He),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,We);default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),Pn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,Ee);case 2:return l(e,Oe);case 3:return l(e,Ae);case 4:return l(e,Ne);case 5:return l(e,Me);case 6:return l(e,Ge);case 7:return l(e,Ve);default:throw Error(r(397))}}(t,n.formatContext)}function An(e,t,n){for(var o=n.completedSegments,i=0;i<o.length;i++)Dn(e,t,n,o[i]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,a(t,e.startInlineScript),e.sentCompleteBoundaryFunction?a(t,qe):(e.sentCompleteBoundaryFunction=!0,a(t,Ke)),null===o)throw Error(r(395));return n=p(n.toString(16)),a(t,o),a(t,Ye),a(t,e.segmentPrefix),a(t,n),l(t,Ze)}function Dn(e,t,n,o){if(2===o.status)return!0;var i=o.id;if(-1===i){if(-1===(o.id=n.rootSegmentID))throw Error(r(392));return Tn(e,t,o)}return Tn(e,t,o),a(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?a(t,Be):(e.sentCompleteSegmentFunction=!0,a(t,je)),a(t,e.segmentPrefix),a(t,i=p(i.toString(16))),a(t,ze),a(t,e.placeholderPrefix),a(t,i),l(t,Ue)}function xn(e,t){i=new Uint8Array(512),s=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Pn(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)a(t,o[n]);n<o.length&&l(t,o[n])}var c,d=e.clientRenderedBoundaries;for(c=0;c<d.length;c++){var h=d[c];o=t;var f=e.responseState,g=h.id,m=h.errorDigest,v=h.errorMessage,y=h.errorComponentStack;if(a(o,f.startInlineScript),f.sentClientRenderFunction?a(o,Xe):(f.sentClientRenderFunction=!0,a(o,$e)),null===g)throw Error(r(395));if(a(o,g),a(o,Qe),(m||v||y)&&(a(o,et),a(o,p(nt(m||"")))),(v||y)&&(a(o,et),a(o,p(nt(v||"")))),y&&(a(o,et),a(o,p(nt(y)))),!l(o,Je))return e.destination=null,c++,void d.splice(0,c)}d.splice(0,c);var C=e.completedBoundaries;for(c=0;c<C.length;c++)if(!An(e,t,C[c]))return e.destination=null,c++,void C.splice(0,c);C.splice(0,c),u(t),i=new Uint8Array(512),s=0;var w=e.partialBoundaries;for(c=0;c<w.length;c++){var _=w[c];e:{d=e,h=t;var b=_.completedSegments;for(f=0;f<b.length;f++)if(!Dn(d,h,_,b[f])){f++,b.splice(0,f);var E=!1;break e}b.splice(0,f),E=!0}if(!E)return e.destination=null,c++,void w.splice(0,c)}w.splice(0,c);var S=e.completedBoundaries;for(c=0;c<S.length;c++)if(!An(e,t,S[c]))return e.destination=null,c++,void S.splice(0,c);S.splice(0,c)}finally{u(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Nn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return bn(n,e,t)})),n.clear(),null!==e.destination&&xn(e,e.destination)}catch(o){dn(e,o),hn(e,o)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,o){var r,i,s=new Promise((function(e,t){i=e,r=t})),a=function(e,t,n,o,r,i,s,a,l){var u=[],c=new Set;return(n=pn(t={destination:null,responseState:t,progressiveChunkSize:void 0===o?12800:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===r?ln:r,onAllReady:void 0===i?un:i,onShellReady:void 0===s?un:s,onShellError:void 0===a?un:a,onFatalError:void 0===l?un:l},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,c,bt,null,Lt),u.push(e),t}(e,function(e,t,n,o,r){e=void 0===e?"":e,t=void 0===t?D:d('<script nonce="'+O(t)+'">');var i=[];if(void 0!==n&&i.push(t,p((""+n).replace(M,F)),x),void 0!==o)for(n=0;n<o.length;n++)i.push(N,p(O(o[n])),I);if(void 0!==r)for(o=0;o<r.length;o++)i.push(L,p(O(r[o])),I);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:d(e+"P:"),segmentPrefix:d(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return k("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===a.status)a.status=2,h(e,a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=e;try{xn(a,e)}catch(t){dn(a,t),hn(a,t)}}},cancel:function(){Nn(a)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),o(e)}),r);if(t&&t.signal){var l=t.signal;l.addEventListener("abort",(function e(){Nn(a,l.reason),l.removeEventListener("abort",e)}))}Rn(a)}))},t.version="18.2.0"},4463:function(e,t,n){"use strict";var o=n(2791),r=n(5296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function g(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function C(e,t,n,o){var r=m.hasOwnProperty(t)?m[t]:null;(null!==r?0!==r.type:o||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,o){if(null===t||"undefined"===typeof t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,o)&&(n=null),o||null===r?function(e){return!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),b=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function M(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=I&&e[I]||e["@@iterator"])?e:null}var F,k=Object.assign;function G(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function W(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var o=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){o=u}e.call(t.prototype)}else{try{throw Error()}catch(u){o=u}e()}}catch(u){if(u&&o&&"string"===typeof u.stack){for(var r=u.stack.split("\n"),i=o.stack.split("\n"),s=r.length-1,a=i.length-1;1<=s&&0<=a&&r[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||r[s]!==i[a]){var l="\n"+r[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?G(e):""}function V(e){switch(e.tag){case 5:return G(e.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 1:return e=W(e.type,!0);default:return""}}function j(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case b:return"Portal";case R:return"Profiler";case S:return"StrictMode";case A:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case x:return null!==(t=e.displayName||null)?t:j(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return j(e(t))}catch(n){}}return null}function B(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=U(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return k({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=z(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&C(e,"checked",t,!1)}function Q(e,t){X(e,t);var n=z(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+z(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return k({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:z(n)}}function ie(e,t){var n=z(t.value),o=z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=ge(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=k({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function Ce(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,Ee=null,Se=null;function Re(e){if(e=wr(e)){if("function"!==typeof be)throw Error(i(280));var t=e.stateNode;t&&(t=br(t),be(e.stateNode,e.type,t))}}function Oe(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Pe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Te(e,t){return e(t)}function Ae(){}var De=!1;function xe(e,t,n){if(De)return e(t,n);De=!0;try{return Te(e,t,n)}finally{De=!1,(null!==Ee||null!==Se)&&(Ae(),Pe())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var o=br(n);if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Le=!1;if(c)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ce){Le=!1}function Me(e,t,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Fe=!1,ke=null,Ge=!1,He=null,We={onError:function(e){Fe=!0,ke=e}};function Ve(e,t,n,o,r,i,s,a,l){Fe=!1,ke=null,Me.apply(We,arguments)}function je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Be(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function ze(e){if(je(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var s=r.alternate;if(null===s){if(null!==(o=r.return)){n=o;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return ze(r),e;if(s===o)return ze(r),t;s=s.sibling}throw Error(i(188))}if(n.return!==o.return)n=r,o=s;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,o=s;break}if(l===o){a=!0,o=r,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,o=r;break}if(l===o){a=!0,o=s,n=r;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==o)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var qe=r.unstable_scheduleCallback,Ye=r.unstable_cancelCallback,Ze=r.unstable_shouldYield,$e=r.unstable_requestPaint,Xe=r.unstable_now,Qe=r.unstable_getCurrentPriorityLevel,Je=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,ot=r.unstable_IdlePriority,rt=null,it=null;var st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~r;0!==a?o=pt(a):0!==(i&=s)&&(o=pt(i))}else 0!==(s=n&~r)?o=pt(s):0!==i&&(o=pt(i));if(0===o)return 0;if(0!==t&&t!==o&&0===(t&r)&&((r=o&-o)>=(i=t&-t)||16===r&&0!==(4194240&i)))return t;if(0!==(4&o)&&(o|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)r=1<<(n=31-st(t)),o|=e[n],t&=~r;return o}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-st(n),r=1<<o;r&t|e[o]&t&&(e[o]|=t),n&=~r}}var Ct=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,bt,Et,St,Rt,Ot=!1,Pt=[],Tt=null,At=null,Dt=null,xt=new Map,Nt=new Map,Lt=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Ft(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:i,targetContainers:[r]},null!==t&&(null!==(t=wr(t))&&bt(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function kt(e){var t=Cr(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Be(n)))return e.blockedOn=t,void Rt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wr(n))&&bt(t),e.blockedOn=n,!1;var o=new(n=e.nativeEvent).constructor(n.type,n);we=o,n.target.dispatchEvent(o),we=null,t.shift()}return!0}function Ht(e,t,n){Gt(e)&&n.delete(t)}function Wt(){Ot=!1,null!==Tt&&Gt(Tt)&&(Tt=null),null!==At&&Gt(At)&&(At=null),null!==Dt&&Gt(Dt)&&(Dt=null),xt.forEach(Ht),Nt.forEach(Ht)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Wt)))}function jt(e){function t(t){return Vt(t,e)}if(0<Pt.length){Vt(Pt[0],e);for(var n=1;n<Pt.length;n++){var o=Pt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Tt&&Vt(Tt,e),null!==At&&Vt(At,e),null!==Dt&&Vt(Dt,e),xt.forEach(t),Nt.forEach(t),n=0;n<Lt.length;n++)(o=Lt[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)kt(n),null===n.blockedOn&&Lt.shift()}var Bt=w.ReactCurrentBatchConfig,zt=!0;function Ut(e,t,n,o){var r=Ct,i=Bt.transition;Bt.transition=null;try{Ct=1,qt(e,t,n,o)}finally{Ct=r,Bt.transition=i}}function Kt(e,t,n,o){var r=Ct,i=Bt.transition;Bt.transition=null;try{Ct=4,qt(e,t,n,o)}finally{Ct=r,Bt.transition=i}}function qt(e,t,n,o){if(zt){var r=Zt(e,t,n,o);if(null===r)Uo(e,t,o,Yt,n),Mt(e,o);else if(function(e,t,n,o,r){switch(t){case"focusin":return Tt=Ft(Tt,e,t,n,o,r),!0;case"dragenter":return At=Ft(At,e,t,n,o,r),!0;case"mouseover":return Dt=Ft(Dt,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return xt.set(i,Ft(xt.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Nt.set(i,Ft(Nt.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o))o.stopPropagation();else if(Mt(e,o),4&t&&-1<It.indexOf(e)){for(;null!==r;){var i=wr(r);if(null!==i&&_t(i),null===(i=Zt(e,t,n,o))&&Uo(e,t,o,Yt,n),i===r)break;r=i}null!==r&&o.stopPropagation()}else Uo(e,t,o,null,n)}}var Yt=null;function Zt(e,t,n,o){if(Yt=null,null!==(e=Cr(e=_e(o))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Be(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function $t(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case ot:return 536870912;default:return 16}default:return 16}}var Xt=null,Qt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Qt,o=n.length,r="value"in Xt?Xt.value:Xt.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var s=o-e;for(t=1;t<=s&&n[o-t]===r[i-t];t++);return Jt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function on(){return!1}function rn(e){function t(t,n,o,r,i){for(var s in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(r):r[s]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:on,this.isPropagationStopped=on,this}return k(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=rn(un),pn=k({},un,{view:0,detail:0}),dn=rn(pn),hn=k({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=rn(hn),gn=rn(k({},hn,{dataTransfer:0})),mn=rn(k({},pn,{relatedTarget:0})),vn=rn(k({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=k({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cn=rn(yn),wn=rn(k({},un,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Rn(){return Sn}var On=k({},pn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=rn(On),Tn=rn(k({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=rn(k({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Dn=rn(k({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),xn=k({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=rn(xn),Ln=[9,13,27,32],In=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var Fn=c&&"TextEvent"in window&&!Mn,kn=c&&(!In||Mn&&8<Mn&&11>=Mn),Gn=String.fromCharCode(32),Hn=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var jn=!1;var Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function Un(e,t,n,o){Oe(o),0<(t=qo(t,"onChange")).length&&(n=new cn("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Yn(e){Ho(e,0)}function Zn(e){if(q(_r(e)))return e}function $n(e,t){if("change"===e)return t}var Xn=!1;if(c){var Qn;if(c){var Jn="oninput"in document;if(!Jn){var eo=document.createElement("div");eo.setAttribute("oninput","return;"),Jn="function"===typeof eo.oninput}Qn=Jn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function to(){Kn&&(Kn.detachEvent("onpropertychange",no),qn=Kn=null)}function no(e){if("value"===e.propertyName&&Zn(qn)){var t=[];Un(t,qn,e,_e(e)),xe(Yn,t)}}function oo(e,t,n){"focusin"===e?(to(),qn=n,(Kn=t).attachEvent("onpropertychange",no)):"focusout"===e&&to()}function ro(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(qn)}function io(e,t){if("click"===e)return Zn(t)}function so(e,t){if("input"===e||"change"===e)return Zn(t)}var ao="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lo(e,t){if(ao(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var r=n[o];if(!p.call(t,r)||!ao(e[r],t[r]))return!1}return!0}function uo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function co(e,t){var n,o=uo(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=uo(o)}}function po(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?po(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ho(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(o){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function fo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function go(e){var t=ho(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&po(n.ownerDocument.documentElement,n)){if(null!==o&&fo(n))if(t=o.start,void 0===(e=o.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=void 0===o.end?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=co(n,i);var s=co(n,o);r&&s&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mo=c&&"documentMode"in document&&11>=document.documentMode,vo=null,yo=null,Co=null,wo=!1;function _o(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wo||null==vo||vo!==Y(o)||("selectionStart"in(o=vo)&&fo(o)?o={start:o.selectionStart,end:o.selectionEnd}:o={anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},Co&&lo(Co,o)||(Co=o,0<(o=qo(yo,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=vo)))}function bo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Eo={animationend:bo("Animation","AnimationEnd"),animationiteration:bo("Animation","AnimationIteration"),animationstart:bo("Animation","AnimationStart"),transitionend:bo("Transition","TransitionEnd")},So={},Ro={};function Oo(e){if(So[e])return So[e];if(!Eo[e])return e;var t,n=Eo[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ro)return So[e]=n[t];return e}c&&(Ro=document.createElement("div").style,"AnimationEvent"in window||(delete Eo.animationend.animation,delete Eo.animationiteration.animation,delete Eo.animationstart.animation),"TransitionEvent"in window||delete Eo.transitionend.transition);var Po=Oo("animationend"),To=Oo("animationiteration"),Ao=Oo("animationstart"),Do=Oo("transitionend"),xo=new Map,No="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lo(e,t){xo.set(e,t),l(t,[e])}for(var Io=0;Io<No.length;Io++){var Mo=No[Io];Lo(Mo.toLowerCase(),"on"+(Mo[0].toUpperCase()+Mo.slice(1)))}Lo(Po,"onAnimationEnd"),Lo(To,"onAnimationIteration"),Lo(Ao,"onAnimationStart"),Lo("dblclick","onDoubleClick"),Lo("focusin","onFocus"),Lo("focusout","onBlur"),Lo(Do,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ko=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fo));function Go(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,r,s,a,l,u){if(Ve.apply(this,arguments),Fe){if(!Fe)throw Error(i(198));var c=ke;Fe=!1,ke=null,Ge||(Ge=!0,He=c)}}(o,t,void 0,e),e.currentTarget=null}function Ho(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var o=e[n],r=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;Go(r,a,u),i=l}else for(s=0;s<o.length;s++){if(l=(a=o[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;Go(r,a,u),i=l}}}if(Ge)throw e=He,Ge=!1,He=null,e}function Wo(e,t){var n=t[mr];void 0===n&&(n=t[mr]=new Set);var o=e+"__bubble";n.has(o)||(zo(t,e,2,!1),n.add(o))}function Vo(e,t,n){var o=0;t&&(o|=4),zo(n,e,o,t)}var jo="_reactListening"+Math.random().toString(36).slice(2);function Bo(e){if(!e[jo]){e[jo]=!0,s.forEach((function(t){"selectionchange"!==t&&(ko.has(t)||Vo(t,!1,e),Vo(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jo]||(t[jo]=!0,Vo("selectionchange",!1,t))}}function zo(e,t,n,o){switch($t(t)){case 1:var r=Ut;break;case 4:r=Kt;break;default:r=qt}n=r.bind(null,t,n,e),r=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),o?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Uo(e,t,n,o,r){var i=o;if(0===(1&t)&&0===(2&t)&&null!==o)e:for(;;){if(null===o)return;var s=o.tag;if(3===s||4===s){var a=o.stateNode.containerInfo;if(a===r||8===a.nodeType&&a.parentNode===r)break;if(4===s)for(s=o.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;s=s.return}for(;null!==a;){if(null===(s=Cr(a)))return;if(5===(l=s.tag)||6===l){o=i=s;continue e}a=a.parentNode}}o=o.return}xe((function(){var o=i,r=_e(n),s=[];e:{var a=xo.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case Po:case To:case Ao:l=vn;break;case Do:l=Dn;break;case"scroll":l=dn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=Cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=0!==(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=o;null!==f;){var g=(h=f).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&(null!=(g=Ne(f,d))&&c.push(Ko(f,g,h)))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,r),s.push({event:a,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!Cr(u)&&!u[gr])&&(l||a)&&(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=o,null!==(u=(u=n.relatedTarget||n.toElement)?Cr(u):null)&&(u!==(p=je(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=o),l!==u)){if(c=fn,g="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,g="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:_r(l),h=null==u?a:_r(u),(a=new c(g,f+"leave",l,n,r)).target=p,a.relatedTarget=h,g=null,Cr(r)===o&&((c=new c(d,f+"enter",u,n,r)).target=h,c.relatedTarget=p,g=c),p=g,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Yo(h))f++;for(h=0,g=d;g;g=Yo(g))h++;for(;0<f-h;)c=Yo(c),f--;for(;0<h-f;)d=Yo(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Yo(c),d=Yo(d)}c=null}else c=null;null!==l&&Zo(s,a,l,c,!1),null!==u&&null!==p&&Zo(s,p,u,c,!0)}if("select"===(l=(a=o?_r(o):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=$n;else if(zn(a))if(Xn)m=so;else{m=ro;var v=oo}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=io);switch(m&&(m=m(e,o))?Un(s,m,n,r):(v&&v(e,a,o),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&ee(a,"number",a.value)),v=o?_r(o):window,e){case"focusin":(zn(v)||"true"===v.contentEditable)&&(vo=v,yo=o,Co=null);break;case"focusout":Co=yo=vo=null;break;case"mousedown":wo=!0;break;case"contextmenu":case"mouseup":case"dragend":wo=!1,_o(s,n,r);break;case"selectionchange":if(mo)break;case"keydown":case"keyup":_o(s,n,r)}var y;if(In)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else jn?Wn(e,n)&&(C="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(C="onCompositionStart");C&&(kn&&"ko"!==n.locale&&(jn||"onCompositionStart"!==C?"onCompositionEnd"===C&&jn&&(y=en()):(Qt="value"in(Xt=r)?Xt.value:Xt.textContent,jn=!0)),0<(v=qo(o,C)).length&&(C=new wn(C,e,null,n,r),s.push({event:C,listeners:v}),y?C.data=y:null!==(y=Vn(n))&&(C.data=y))),(y=Fn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Gn);case"textInput":return(e=t.data)===Gn&&Hn?null:e;default:return null}}(e,n):function(e,t){if(jn)return"compositionend"===e||!In&&Wn(e,t)?(e=en(),Jt=Qt=Xt=null,jn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(o=qo(o,"onBeforeInput")).length&&(r=new wn("onBeforeInput","beforeinput",null,n,r),s.push({event:r,listeners:o}),r.data=y))}Ho(s,t)}))}function Ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qo(e,t){for(var n=t+"Capture",o=[];null!==e;){var r=e,i=r.stateNode;5===r.tag&&null!==i&&(r=i,null!=(i=Ne(e,n))&&o.unshift(Ko(e,i,r)),null!=(i=Ne(e,t))&&o.push(Ko(e,i,r))),e=e.return}return o}function Yo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zo(e,t,n,o,r){for(var i=t._reactName,s=[];null!==n&&n!==o;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===o)break;5===a.tag&&null!==u&&(a=u,r?null!=(l=Ne(n,i))&&s.unshift(Ko(n,l,a)):r||null!=(l=Ne(n,i))&&s.push(Ko(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var $o=/\r\n?/g,Xo=/\u0000|\uFFFD/g;function Qo(e){return("string"===typeof e?e:""+e).replace($o,"\n").replace(Xo,"")}function Jo(e,t,n){if(t=Qo(t),Qo(e)!==t&&n)throw Error(i(425))}function er(){}var tr=null,nr=null;function or(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rr="function"===typeof setTimeout?setTimeout:void 0,ir="function"===typeof clearTimeout?clearTimeout:void 0,sr="function"===typeof Promise?Promise:void 0,ar="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof sr?function(e){return sr.resolve(null).then(e).catch(lr)}:rr;function lr(e){setTimeout((function(){throw e}))}function ur(e,t){var n=t,o=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===o)return e.removeChild(r),void jt(t);o--}else"$"!==n&&"$?"!==n&&"$!"!==n||o++;n=r}while(n);jt(t)}function cr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function pr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),hr="__reactFiber$"+dr,fr="__reactProps$"+dr,gr="__reactContainer$"+dr,mr="__reactEvents$"+dr,vr="__reactListeners$"+dr,yr="__reactHandles$"+dr;function Cr(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gr]||n[hr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=pr(e);null!==e;){if(n=e[hr])return n;e=pr(e)}return t}n=(e=n).parentNode}return null}function wr(e){return!(e=e[hr]||e[gr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _r(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function br(e){return e[fr]||null}var Er=[],Sr=-1;function Rr(e){return{current:e}}function Or(e){0>Sr||(e.current=Er[Sr],Er[Sr]=null,Sr--)}function Pr(e,t){Sr++,Er[Sr]=e.current,e.current=t}var Tr={},Ar=Rr(Tr),Dr=Rr(!1),xr=Tr;function Nr(e,t){var n=e.type.contextTypes;if(!n)return Tr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lr(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ir(){Or(Dr),Or(Ar)}function Mr(e,t,n){if(Ar.current!==Tr)throw Error(i(168));Pr(Ar,t),Pr(Dr,n)}function Fr(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,"function"!==typeof o.getChildContext)return n;for(var r in o=o.getChildContext())if(!(r in t))throw Error(i(108,B(e)||"Unknown",r));return k({},n,o)}function kr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tr,xr=Ar.current,Pr(Ar,e),Pr(Dr,Dr.current),!0}function Gr(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=Fr(e,t,xr),o.__reactInternalMemoizedMergedChildContext=e,Or(Dr),Or(Ar),Pr(Ar,e)):Or(Dr),Pr(Dr,n)}var Hr=null,Wr=!1,Vr=!1;function jr(e){null===Hr?Hr=[e]:Hr.push(e)}function Br(){if(!Vr&&null!==Hr){Vr=!0;var e=0,t=Ct;try{var n=Hr;for(Ct=1;e<n.length;e++){var o=n[e];do{o=o(!0)}while(null!==o)}Hr=null,Wr=!1}catch(r){throw null!==Hr&&(Hr=Hr.slice(e+1)),qe(Je,Br),r}finally{Ct=t,Vr=!1}}return null}var zr=[],Ur=0,Kr=null,qr=0,Yr=[],Zr=0,$r=null,Xr=1,Qr="";function Jr(e,t){zr[Ur++]=qr,zr[Ur++]=Kr,Kr=e,qr=t}function ei(e,t,n){Yr[Zr++]=Xr,Yr[Zr++]=Qr,Yr[Zr++]=$r,$r=e;var o=Xr;e=Qr;var r=32-st(o)-1;o&=~(1<<r),n+=1;var i=32-st(t)+r;if(30<i){var s=r-r%5;i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,Xr=1<<32-st(t)+r|n<<r|o,Qr=i+e}else Xr=1<<i|n<<r|o,Qr=e}function ti(e){null!==e.return&&(Jr(e,1),ei(e,1,0))}function ni(e){for(;e===Kr;)Kr=zr[--Ur],zr[Ur]=null,qr=zr[--Ur],zr[Ur]=null;for(;e===$r;)$r=Yr[--Zr],Yr[Zr]=null,Qr=Yr[--Zr],Yr[Zr]=null,Xr=Yr[--Zr],Yr[Zr]=null}var oi=null,ri=null,ii=!1,si=null;function ai(e,t){var n=xu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,oi=e,ri=cr(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==$r?{id:Xr,overflow:Qr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=xu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ri=null,!0);default:return!1}}function ui(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ci(e){if(ii){var t=ri;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=cr(n.nextSibling);var o=oi;t&&li(e,t)?ai(o,n):(e.flags=-4097&e.flags|2,ii=!1,oi=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,oi=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function di(e){if(e!==oi)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!or(e.type,e.memoizedProps)),t&&(t=ri)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=cr(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ri=cr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ri=null}}else ri=oi?cr(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=ri;e;)e=cr(e.nextSibling)}function fi(){ri=oi=null,ii=!1}function gi(e){null===si?si=[e]:si.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=k({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yi=Rr(null),Ci=null,wi=null,_i=null;function bi(){_i=wi=Ci=null}function Ei(e){var t=yi.current;Or(yi),e._currentValue=t}function Si(e,t,n){for(;null!==e;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==o&&(o.childLanes|=t)):null!==o&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ri(e,t){Ci=e,_i=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wa=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===Ci)throw Error(i(308));wi=e,Ci.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Pi=null;function Ti(e){null===Pi?Pi=[e]:Pi.push(e)}function Ai(e,t,n,o){var r=t.interleaved;return null===r?(n.next=n,Ti(t)):(n.next=r.next,r.next=n),t.interleaved=n,Di(e,o)}function Di(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var xi=!1;function Ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mi(e,t,n){var o=e.updateQueue;if(null===o)return null;if(o=o.shared,0!==(2&Tl)){var r=o.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Di(e,n)}return null===(r=o.interleaved)?(t.next=t,Ti(o)):(t.next=r.next,r.next=t),o.interleaved=t,Di(e,n)}function Fi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,yt(e,n)}}function ki(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var r=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?r=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?r=i=t:i=i.next=t}else r=i=t;return n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gi(e,t,n,o){var r=e.updateQueue;xi=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(null!==a){r.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&((a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(null!==i){var p=r.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((o&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,g=a;switch(d=t,h=n,g.tag){case 1:if("function"===typeof(f=g.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(d="function"===typeof(f=g.payload)?f.call(h,p,d):f)||void 0===d)break e;p=k({},p,d);break e;case 2:xi=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=r.effects)?r.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=r.shared.pending))break;a=(d=a).next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}if(null===c&&(l=p),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,null!==(t=r.shared.interleaved)){r=t;do{s|=r.lane,r=r.next}while(r!==t)}else null===i&&(r.shared.lanes=0);Fl|=s,e.lanes=s,e.memoizedState=p}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(null!==r){if(o.callback=null,o=n,"function"!==typeof r)throw Error(i(191,r));r.call(o)}}}var Wi=(new o.Component).refs;function Vi(e,t,n,o){n=null===(n=n(o,t=e.memoizedState))||void 0===n?t:k({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ji={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=eu(),r=tu(e),i=Ii(o,r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Mi(e,i,r))&&(nu(t,e,r,o),Fi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=eu(),r=tu(e),i=Ii(o,r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Mi(e,i,r))&&(nu(t,e,r,o),Fi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),o=tu(e),r=Ii(n,o);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Mi(e,r,o))&&(nu(t,e,o,n),Fi(t,e,o))}};function Bi(e,t,n,o,r,i,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!lo(n,o)||!lo(r,i))}function zi(e,t,n){var o=!1,r=Tr,i=t.contextType;return"object"===typeof i&&null!==i?i=Oi(i):(r=Lr(t)?xr:Ar.current,i=(o=null!==(o=t.contextTypes)&&void 0!==o)?Nr(e,r):Tr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ji,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ui(e,t,n,o){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&ji.enqueueReplaceState(t,t.state,null)}function Ki(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Wi,Ni(e);var i=t.contextType;"object"===typeof i&&null!==i?r.context=Oi(i):(i=Lr(t)?xr:Ar.current,r.context=Nr(e,i)),r.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Vi(e,t,i,n),r.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof r.getSnapshotBeforeUpdate||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||(t=r.state,"function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&ji.enqueueReplaceState(r,r.state,null),Gi(e,n,r,o),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.flags|=4194308)}function qi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var o=n.stateNode}if(!o)throw Error(i(147,e));var r=o,s=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=r.refs;t===Wi&&(t=r.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Zi(e){return(0,e._init)(e._payload)}function $i(e){function t(t,n){if(e){var o=t.deletions;null===o?(t.deletions=[n],t.flags|=16):o.push(n)}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Lu(e,t)).index=0,e.sibling=null,e}function s(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags|=2,n):o:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=ku(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){var i=n.type;return i===E?p(e,t,n.props.children,o,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===N&&Zi(i)===t.type)?((o=r(t,n.props)).ref=qi(e,t,n),o.return=e,o):((o=Iu(n.type,n.key,n.props,null,e.mode,o)).ref=qi(e,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gu(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function p(e,t,n,o,i){return null===t||7!==t.tag?((t=Mu(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=ku(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Iu(t.type,t.key,t.props,null,e.mode,n)).ref=qi(e,null,t),n.return=e,n;case b:return(t=Gu(t,e.mode,n)).return=e,t;case N:return d(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Mu(t,e.mode,n,null)).return=e,t;Yi(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:l(e,t,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===r?u(e,t,n,o):null;case b:return n.key===r?c(e,t,n,o):null;case N:return h(e,t,(r=n._init)(n._payload),o)}if(te(n)||M(n))return null!==r?null:p(e,t,n,o,null);Yi(e,n)}return null}function f(e,t,n,o,r){if("string"===typeof o&&""!==o||"number"===typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"===typeof o&&null!==o){switch(o.$$typeof){case _:return u(t,e=e.get(null===o.key?n:o.key)||null,o,r);case b:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r);case N:return f(e,t,n,(0,o._init)(o._payload),r)}if(te(o)||M(o))return p(t,e=e.get(n)||null,o,r,null);Yi(t,o)}return null}function g(r,i,a,l){for(var u=null,c=null,p=i,g=i=0,m=null;null!==p&&g<a.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var v=h(r,p,a[g],l);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&t(r,p),i=s(v,i,g),null===c?u=v:c.sibling=v,c=v,p=m}if(g===a.length)return n(r,p),ii&&Jr(r,g),u;if(null===p){for(;g<a.length;g++)null!==(p=d(r,a[g],l))&&(i=s(p,i,g),null===c?u=p:c.sibling=p,c=p);return ii&&Jr(r,g),u}for(p=o(r,p);g<a.length;g++)null!==(m=f(p,r,g,a[g],l))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),i=s(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&p.forEach((function(e){return t(r,e)})),ii&&Jr(r,g),u}function m(r,a,l,u){var c=M(l);if("function"!==typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,g=a,m=a=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var C=h(r,g,y.value,u);if(null===C){null===g&&(g=v);break}e&&g&&null===C.alternate&&t(r,g),a=s(C,a,m),null===p?c=C:p.sibling=C,p=C,g=v}if(y.done)return n(r,g),ii&&Jr(r,m),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=d(r,y.value,u))&&(a=s(y,a,m),null===p?c=y:p.sibling=y,p=y);return ii&&Jr(r,m),c}for(g=o(r,g);!y.done;m++,y=l.next())null!==(y=f(g,r,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),a=s(y,a,m),null===p?c=y:p.sibling=y,p=y);return e&&g.forEach((function(e){return t(r,e)})),ii&&Jr(r,m),c}return function e(o,i,s,l){if("object"===typeof s&&null!==s&&s.type===E&&null===s.key&&(s=s.props.children),"object"===typeof s&&null!==s){switch(s.$$typeof){case _:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===E){if(7===c.tag){n(o,c.sibling),(i=r(c,s.props.children)).return=o,o=i;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===N&&Zi(u)===c.type){n(o,c.sibling),(i=r(c,s.props)).ref=qi(o,c,s),i.return=o,o=i;break e}n(o,c);break}t(o,c),c=c.sibling}s.type===E?((i=Mu(s.props.children,o.mode,l,s.key)).return=o,o=i):((l=Iu(s.type,s.key,s.props,null,o.mode,l)).ref=qi(o,i,s),l.return=o,o=l)}return a(o);case b:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(o,i.sibling),(i=r(i,s.children||[])).return=o,o=i;break e}n(o,i);break}t(o,i),i=i.sibling}(i=Gu(s,o.mode,l)).return=o,o=i}return a(o);case N:return e(o,i,(c=s._init)(s._payload),l)}if(te(s))return g(o,i,s,l);if(M(s))return m(o,i,s,l);Yi(o,s)}return"string"===typeof s&&""!==s||"number"===typeof s?(s=""+s,null!==i&&6===i.tag?(n(o,i.sibling),(i=r(i,s)).return=o,o=i):(n(o,i),(i=ku(s,o.mode,l)).return=o,o=i),a(o)):n(o,i)}}var Xi=$i(!0),Qi=$i(!1),Ji={},es=Rr(Ji),ts=Rr(Ji),ns=Rr(Ji);function os(e){if(e===Ji)throw Error(i(174));return e}function rs(e,t){switch(Pr(ns,t),Pr(ts,e),Pr(es,Ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Or(es),Pr(es,t)}function is(){Or(es),Or(ts),Or(ns)}function ss(e){os(ns.current);var t=os(es.current),n=le(t,e.type);t!==n&&(Pr(ts,e),Pr(es,n))}function as(e){ts.current===e&&(Or(es),Or(ts))}var ls=Rr(0);function us(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cs=[];function ps(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ds=w.ReactCurrentDispatcher,hs=w.ReactCurrentBatchConfig,fs=0,gs=null,ms=null,vs=null,ys=!1,Cs=!1,ws=0,_s=0;function bs(){throw Error(i(321))}function Es(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ao(e[n],t[n]))return!1;return!0}function Ss(e,t,n,o,r,s){if(fs=s,gs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=null===e||null===e.memoizedState?aa:la,e=n(o,r),Cs){s=0;do{if(Cs=!1,ws=0,25<=s)throw Error(i(301));s+=1,vs=ms=null,t.updateQueue=null,ds.current=ua,e=n(o,r)}while(Cs)}if(ds.current=sa,t=null!==ms&&null!==ms.next,fs=0,vs=ms=gs=null,ys=!1,t)throw Error(i(300));return e}function Rs(){var e=0!==ws;return ws=0,e}function Os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vs?gs.memoizedState=vs=e:vs=vs.next=e,vs}function Ps(){if(null===ms){var e=gs.alternate;e=null!==e?e.memoizedState:null}else e=ms.next;var t=null===vs?gs.memoizedState:vs.next;if(null!==t)vs=t,ms=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ms=e).memoizedState,baseState:ms.baseState,baseQueue:ms.baseQueue,queue:ms.queue,next:null},null===vs?gs.memoizedState=vs=e:vs=vs.next=e}return vs}function Ts(e,t){return"function"===typeof t?t(e):t}function As(e){var t=Ps(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=ms,r=o.baseQueue,s=n.pending;if(null!==s){if(null!==r){var a=r.next;r.next=s.next,s.next=a}o.baseQueue=r=s,n.pending=null}if(null!==r){s=r.next,o=o.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((fs&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=o):u=u.next=d,gs.lanes|=p,Fl|=p}c=c.next}while(null!==c&&c!==s);null===u?a=o:u.next=l,ao(o,t.memoizedState)||(wa=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=u,n.lastRenderedState=o}if(null!==(e=n.interleaved)){r=e;do{s=r.lane,gs.lanes|=s,Fl|=s,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ds(e){var t=Ps(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,s=t.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{s=e(s,a.action),a=a.next}while(a!==r);ao(s,t.memoizedState)||(wa=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,o]}function xs(){}function Ns(e,t){var n=gs,o=Ps(),r=t(),s=!ao(o.memoizedState,r);if(s&&(o.memoizedState=r,wa=!0),o=o.queue,zs(Ms.bind(null,n,o,e),[e]),o.getSnapshot!==t||s||null!==vs&&1&vs.memoizedState.tag){if(n.flags|=2048,Hs(9,Is.bind(null,n,o,r,t),void 0,null),null===Al)throw Error(i(349));0!==(30&fs)||Ls(n,t,r)}return r}function Ls(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Is(e,t,n,o){t.value=n,t.getSnapshot=o,Fs(t)&&ks(e)}function Ms(e,t,n){return n((function(){Fs(t)&&ks(e)}))}function Fs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ao(e,n)}catch(o){return!0}}function ks(e){var t=Di(e,1);null!==t&&nu(t,e,1,-1)}function Gs(e){var t=Os();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ts,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,gs,e),[t.memoizedState,e]}function Hs(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function Ws(){return Ps().memoizedState}function Vs(e,t,n,o){var r=Os();gs.flags|=e,r.memoizedState=Hs(1|t,n,void 0,void 0===o?null:o)}function js(e,t,n,o){var r=Ps();o=void 0===o?null:o;var i=void 0;if(null!==ms){var s=ms.memoizedState;if(i=s.destroy,null!==o&&Es(o,s.deps))return void(r.memoizedState=Hs(t,n,i,o))}gs.flags|=e,r.memoizedState=Hs(1|t,n,i,o)}function Bs(e,t){return Vs(8390656,8,e,t)}function zs(e,t){return js(2048,8,e,t)}function Us(e,t){return js(4,2,e,t)}function Ks(e,t){return js(4,4,e,t)}function qs(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ys(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,js(4,4,qs.bind(null,t,e),n)}function Zs(){}function $s(e,t){var n=Ps();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Es(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Xs(e,t){var n=Ps();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Es(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Qs(e,t,n){return 0===(21&fs)?(e.baseState&&(e.baseState=!1,wa=!0),e.memoizedState=n):(ao(n,t)||(n=gt(),gs.lanes|=n,Fl|=n,e.baseState=!0),t)}function Js(e,t){var n=Ct;Ct=0!==n&&4>n?n:4,e(!0);var o=hs.transition;hs.transition={};try{e(!1),t()}finally{Ct=n,hs.transition=o}}function ea(){return Ps().memoizedState}function ta(e,t,n){var o=tu(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},oa(e))ra(t,n);else if(null!==(n=Ai(e,t,n,o))){nu(n,e,o,eu()),ia(n,t,o)}}function na(e,t,n){var o=tu(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(oa(e))ra(t,r);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(r.hasEagerState=!0,r.eagerState=a,ao(a,s)){var l=t.interleaved;return null===l?(r.next=r,Ti(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(u){}null!==(n=Ai(e,t,r,o))&&(nu(n,e,o,r=eu()),ia(n,t,o))}}function oa(e){var t=e.alternate;return e===gs||null!==t&&t===gs}function ra(e,t){Cs=ys=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ia(e,t,n){if(0!==(4194240&n)){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,yt(e,n)}}var sa={readContext:Oi,useCallback:bs,useContext:bs,useEffect:bs,useImperativeHandle:bs,useInsertionEffect:bs,useLayoutEffect:bs,useMemo:bs,useReducer:bs,useRef:bs,useState:bs,useDebugValue:bs,useDeferredValue:bs,useTransition:bs,useMutableSource:bs,useSyncExternalStore:bs,useId:bs,unstable_isNewReconciler:!1},aa={readContext:Oi,useCallback:function(e,t){return Os().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Bs,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Vs(4194308,4,qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vs(4,2,e,t)},useMemo:function(e,t){var n=Os();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Os();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=ta.bind(null,gs,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},Os().memoizedState=e},useState:Gs,useDebugValue:Zs,useDeferredValue:function(e){return Os().memoizedState=e},useTransition:function(){var e=Gs(!1),t=e[0];return e=Js.bind(null,e[1]),Os().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=gs,r=Os();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Al)throw Error(i(349));0!==(30&fs)||Ls(o,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,Bs(Ms.bind(null,o,s,e),[e]),o.flags|=2048,Hs(9,Is.bind(null,o,s,n,t),void 0,null),n},useId:function(){var e=Os(),t=Al.identifierPrefix;if(ii){var n=Qr;t=":"+t+"R"+(n=(Xr&~(1<<32-st(Xr)-1)).toString(32)+n),0<(n=ws++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_s++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Oi,useCallback:$s,useContext:Oi,useEffect:zs,useImperativeHandle:Ys,useInsertionEffect:Us,useLayoutEffect:Ks,useMemo:Xs,useReducer:As,useRef:Ws,useState:function(){return As(Ts)},useDebugValue:Zs,useDeferredValue:function(e){return Qs(Ps(),ms.memoizedState,e)},useTransition:function(){return[As(Ts)[0],Ps().memoizedState]},useMutableSource:xs,useSyncExternalStore:Ns,useId:ea,unstable_isNewReconciler:!1},ua={readContext:Oi,useCallback:$s,useContext:Oi,useEffect:zs,useImperativeHandle:Ys,useInsertionEffect:Us,useLayoutEffect:Ks,useMemo:Xs,useReducer:Ds,useRef:Ws,useState:function(){return Ds(Ts)},useDebugValue:Zs,useDeferredValue:function(e){var t=Ps();return null===ms?t.memoizedState=e:Qs(t,ms.memoizedState,e)},useTransition:function(){return[Ds(Ts)[0],Ps().memoizedState]},useMutableSource:xs,useSyncExternalStore:Ns,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var n="",o=t;do{n+=V(o),o=o.return}while(o);var r=n}catch(i){r="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:r,digest:null}}function pa(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ha="function"===typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=Ii(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){zl||(zl=!0,Ul=o),da(0,t)},n}function ga(e,t,n){(n=Ii(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"===typeof o){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){da(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){da(0,t),"function"!==typeof o&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var o=e.pingCache;if(null===o){o=e.pingCache=new ha;var r=new Set;o.set(t,r)}else void 0===(r=o.get(t))&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=Ru.bind(null,e,t,n),t.then(e,e))}function va(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,n,o,r){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ii(-1,1)).tag=2,Mi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var Ca=w.ReactCurrentOwner,wa=!1;function _a(e,t,n,o){t.child=null===e?Qi(t,null,n,o):Xi(t,e.child,n,o)}function ba(e,t,n,o,r){n=n.render;var i=t.ref;return Ri(t,r),o=Ss(e,t,n,o,i,r),n=Rs(),null===e||wa?(ii&&n&&ti(t),t.flags|=1,_a(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,za(e,t,r))}function Ea(e,t,n,o,r){if(null===e){var i=n.type;return"function"!==typeof i||Nu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Iu(n.type,null,o,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sa(e,t,i,o,r))}if(i=e.child,0===(e.lanes&r)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lo)(s,o)&&e.ref===t.ref)return za(e,t,r)}return t.flags|=1,(e=Lu(i,o)).ref=t.ref,e.return=t,t.child=e}function Sa(e,t,n,o,r){if(null!==e){var i=e.memoizedProps;if(lo(i,o)&&e.ref===t.ref){if(wa=!1,t.pendingProps=o=i,0===(e.lanes&r))return t.lanes=e.lanes,za(e,t,r);0!==(131072&e.flags)&&(wa=!0)}}return Pa(e,t,n,o,r)}function Ra(e,t,n){var o=t.pendingProps,r=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pr(Ll,Nl),Nl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pr(Ll,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==i?i.baseLanes:n,Pr(Ll,Nl),Nl|=o}else null!==i?(o=i.baseLanes|n,t.memoizedState=null):o=n,Pr(Ll,Nl),Nl|=o;return _a(e,t,r,n),t.child}function Oa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pa(e,t,n,o,r){var i=Lr(n)?xr:Ar.current;return i=Nr(t,i),Ri(t,r),n=Ss(e,t,n,o,i,r),o=Rs(),null===e||wa?(ii&&o&&ti(t),t.flags|=1,_a(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,za(e,t,r))}function Ta(e,t,n,o,r){if(Lr(n)){var i=!0;kr(t)}else i=!1;if(Ri(t,r),null===t.stateNode)Ba(e,t),zi(t,n,o),Ki(t,n,o,r),o=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;"object"===typeof u&&null!==u?u=Oi(u):u=Nr(t,u=Lr(n)?xr:Ar.current);var c=n.getDerivedStateFromProps,p="function"===typeof c||"function"===typeof s.getSnapshotBeforeUpdate;p||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==o||l!==u)&&Ui(t,s,o,u),xi=!1;var d=t.memoizedState;s.state=d,Gi(t,o,s,r),l=t.memoizedState,a!==o||d!==l||Dr.current||xi?("function"===typeof c&&(Vi(t,n,c,o),l=t.memoizedState),(a=xi||Bi(t,n,a,o,d,l,u))?(p||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),s.props=o,s.state=l,s.context=u,o=a):("function"===typeof s.componentDidMount&&(t.flags|=4194308),o=!1)}else{s=t.stateNode,Li(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:vi(t.type,a),s.props=u,p=t.pendingProps,d=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=Oi(l):l=Nr(t,l=Lr(n)?xr:Ar.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==p||d!==l)&&Ui(t,s,o,l),xi=!1,d=t.memoizedState,s.state=d,Gi(t,o,s,r);var f=t.memoizedState;a!==p||d!==f||Dr.current||xi?("function"===typeof h&&(Vi(t,n,h,o),f=t.memoizedState),(u=xi||Bi(t,n,u,o,d,f,l)||!1)?(c||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(o,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,f,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),s.props=o,s.state=f,s.context=l,o=u):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),o=!1)}return Aa(e,t,n,o,i,r)}function Aa(e,t,n,o,r,i){Oa(e,t);var s=0!==(128&t.flags);if(!o&&!s)return r&&Gr(t,n,!1),za(e,t,i);o=t.stateNode,Ca.current=t;var a=s&&"function"!==typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&s?(t.child=Xi(t,e.child,null,i),t.child=Xi(t,null,a,i)):_a(e,t,a,i),t.memoizedState=o.state,r&&Gr(t,n,!0),t.child}function Da(e){var t=e.stateNode;t.pendingContext?Mr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mr(0,t.context,!1),rs(e,t.containerInfo)}function xa(e,t,n,o,r){return fi(),gi(r),t.flags|=256,_a(e,t,n,o),t.child}var Na,La,Ia,Ma={dehydrated:null,treeContext:null,retryLane:0};function Fa(e){return{baseLanes:e,cachePool:null,transitions:null}}function ka(e,t,n){var o,r=t.pendingProps,s=ls.current,a=!1,l=0!==(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&0!==(2&s)),o?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Pr(ls,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,a?(r=t.mode,a=t.child,l={mode:"hidden",children:l},0===(1&r)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Fu(l,r,0,null),e=Mu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Fa(n),t.memoizedState=Ma,e):Ga(t,l));if(null!==(s=e.memoizedState)&&null!==(o=s.dehydrated))return function(e,t,n,o,r,s,a){if(n)return 256&t.flags?(t.flags&=-257,Ha(e,t,a,o=pa(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=o.fallback,r=t.mode,o=Fu({mode:"visible",children:o.children},r,0,null),(s=Mu(s,r,a,null)).flags|=2,o.return=t,s.return=t,o.sibling=s,t.child=o,0!==(1&t.mode)&&Xi(t,e.child,null,a),t.child.memoizedState=Fa(a),t.memoizedState=Ma,s);if(0===(1&t.mode))return Ha(e,t,a,null);if("$!"===r.data){if(o=r.nextSibling&&r.nextSibling.dataset)var l=o.dgst;return o=l,Ha(e,t,a,o=pa(s=Error(i(419)),o,void 0))}if(l=0!==(a&e.childLanes),wa||l){if(null!==(o=Al)){switch(a&-a){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(o.suspendedLanes|a))?0:r)&&r!==s.retryLane&&(s.retryLane=r,Di(e,r),nu(o,e,r,-1))}return gu(),Ha(e,t,a,o=pa(Error(i(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Pu.bind(null,e),r._reactRetry=t,null):(e=s.treeContext,ri=cr(r.nextSibling),oi=t,ii=!0,si=null,null!==e&&(Yr[Zr++]=Xr,Yr[Zr++]=Qr,Yr[Zr++]=$r,Xr=e.id,Qr=e.overflow,$r=t),(t=Ga(t,o.children)).flags|=4096,t)}(e,t,l,r,o,s,n);if(a){a=r.fallback,l=t.mode,o=(s=e.child).sibling;var u={mode:"hidden",children:r.children};return 0===(1&l)&&t.child!==s?((r=t.child).childLanes=0,r.pendingProps=u,t.deletions=null):(r=Lu(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==o?a=Lu(o,a):(a=Mu(a,l,n,null)).flags|=2,a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,l=null===(l=e.child.memoizedState)?Fa(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ma,r}return e=(a=e.child).sibling,r=Lu(a,{mode:"visible",children:r.children}),0===(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ga(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ha(e,t,n,o){return null!==o&&gi(o),Xi(t,e.child,null,n),(e=Ga(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Wa(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),Si(e.return,t,n)}function Va(e,t,n,o,r){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=r)}function ja(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(_a(e,t,o.children,n),0!==(2&(o=ls.current)))o=1&o|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Wa(e,n,t);else if(19===e.tag)Wa(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Pr(ls,o),0===(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===us(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Va(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===us(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Va(t,!0,n,null,i);break;case"together":Va(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ba(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function za(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Lu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ua(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ka(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=14680064&r.subtreeFlags,o|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function qa(e,t,n){var o=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ka(t),null;case 1:case 17:return Lr(t.type)&&Ir(),Ka(t),null;case 3:return o=t.stateNode,is(),Or(Dr),Or(Ar),ps(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==si&&(su(si),si=null))),Ka(t),null;case 5:as(t);var r=os(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)La(e,t,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(i(166));return Ka(t),null}if(e=os(es.current),di(t)){o=t.stateNode,n=t.type;var s=t.memoizedProps;switch(o[hr]=t,o[fr]=s,e=0!==(1&t.mode),n){case"dialog":Wo("cancel",o),Wo("close",o);break;case"iframe":case"object":case"embed":Wo("load",o);break;case"video":case"audio":for(r=0;r<Fo.length;r++)Wo(Fo[r],o);break;case"source":Wo("error",o);break;case"img":case"image":case"link":Wo("error",o),Wo("load",o);break;case"details":Wo("toggle",o);break;case"input":$(o,s),Wo("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Wo("invalid",o);break;case"textarea":re(o,s),Wo("invalid",o)}for(var l in ye(n,s),r=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"===typeof u?o.textContent!==u&&(!0!==s.suppressHydrationWarning&&Jo(o.textContent,u,e),r=["children",u]):"number"===typeof u&&o.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Jo(o.textContent,u,e),r=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Wo("scroll",o)}switch(n){case"input":K(o),J(o,s,!0);break;case"textarea":K(o),se(o);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(o.onclick=er)}o=r,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof o.is?e=l.createElement(n,{is:o.is}):(e=l.createElement(n),"select"===n&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,n),e[hr]=t,e[fr]=o,Na(e,t),t.stateNode=e;e:{switch(l=Ce(n,o),n){case"dialog":Wo("cancel",e),Wo("close",e),r=o;break;case"iframe":case"object":case"embed":Wo("load",e),r=o;break;case"video":case"audio":for(r=0;r<Fo.length;r++)Wo(Fo[r],e);r=o;break;case"source":Wo("error",e),r=o;break;case"img":case"image":case"link":Wo("error",e),Wo("load",e),r=o;break;case"details":Wo("toggle",e),r=o;break;case"input":$(e,o),r=Z(e,o),Wo("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=k({},o,{value:void 0}),Wo("invalid",e);break;case"textarea":re(e,o),r=oe(e,o),Wo("invalid",e)}for(s in ye(n,r),u=r)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"===typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Wo("scroll",e):null!=c&&C(e,s,c,l))}switch(n){case"input":K(e),J(e,o,!1);break;case"textarea":K(e),se(e);break;case"option":null!=o.value&&e.setAttribute("value",""+z(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?ne(e,!!o.multiple,s,!1):null!=o.defaultValue&&ne(e,!!o.multiple,o.defaultValue,!0);break;default:"function"===typeof r.onClick&&(e.onclick=er)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ka(t),null;case 6:if(e&&null!=t.stateNode)Ia(0,t,e.memoizedProps,o);else{if("string"!==typeof o&&null===t.stateNode)throw Error(i(166));if(n=os(ns.current),os(es.current),di(t)){if(o=t.stateNode,n=t.memoizedProps,o[hr]=t,(s=o.nodeValue!==n)&&null!==(e=oi))switch(e.tag){case 3:Jo(o.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jo(o.nodeValue,n,0!==(1&e.mode))}s&&(t.flags|=4)}else(o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[hr]=t,t.stateNode=o}return Ka(t),null;case 13:if(Or(ls),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==ri&&0!==(1&t.mode)&&0===(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[hr]=t}else fi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ka(t),s=!1}else null!==si&&(su(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ls.current)?0===Il&&(Il=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ka(t),null);case 4:return is(),null===e&&Bo(t.stateNode.containerInfo),Ka(t),null;case 10:return Ei(t.type._context),Ka(t),null;case 19:if(Or(ls),null===(s=t.memoizedState))return Ka(t),null;if(o=0!==(128&t.flags),null===(l=s.rendering))if(o)Ua(s,!1);else{if(0!==Il||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=us(e))){for(t.flags|=128,Ua(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pr(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Xe()>jl&&(t.flags|=128,o=!0,Ua(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=us(l))){if(t.flags|=128,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ua(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Ka(t),null}else 2*Xe()-s.renderingStartTime>jl&&1073741824!==n&&(t.flags|=128,o=!0,Ua(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Xe(),t.sibling=null,n=ls.current,Pr(ls,o?1&n|2:1&n),t):(Ka(t),null);case 22:case 23:return pu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&0!==(1&t.mode)?0!==(1073741824&Nl)&&(Ka(t),6&t.subtreeFlags&&(t.flags|=8192)):Ka(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ya(e,t){switch(ni(t),t.tag){case 1:return Lr(t.type)&&Ir(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return is(),Or(Dr),Or(Ar),ps(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(Or(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Or(ls),null;case 4:return is(),null;case 10:return Ei(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}Na=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},La=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,os(es.current);var i,s=null;switch(n){case"input":r=Z(e,r),o=Z(e,o),s=[];break;case"select":r=k({},r,{value:void 0}),o=k({},o,{value:void 0}),s=[];break;case"textarea":r=oe(e,r),o=oe(e,o),s=[];break;default:"function"!==typeof r.onClick&&"function"===typeof o.onClick&&(e.onclick=er)}for(c in ye(n,o),n=null,r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&null!=r[c])if("style"===c){var l=r[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in o){var u=o[c];if(l=null!=r?r[c]:void 0,o.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Wo("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ia=function(e,t,n,o){n!==o&&(t.flags|=4)};var Za=!1,$a=!1,Xa="function"===typeof WeakSet?WeakSet:Set,Qa=null;function Ja(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(o){Su(e,t,o)}else n.current=null}function el(e,t,n){try{n()}catch(o){Su(e,t,o)}}var tl=!1;function nl(e,t,n){var o=t.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var r=o=o.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,void 0!==i&&el(t,n,i)}r=r.next}while(r!==o)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hr],delete t[fr],delete t[mr],delete t[vr],delete t[yr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=er));else if(4!==o&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,pl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(rt,n)}catch(a){}switch(n.tag){case 5:$a||Ja(n,t);case 6:var o=cl,r=pl;cl=null,dl(e,t,n),pl=r,null!==(cl=o)&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?ur(e.parentNode,n):1===e.nodeType&&ur(e,n),jt(e)):ur(cl,n.stateNode));break;case 4:o=cl,r=pl,cl=n.stateNode.containerInfo,pl=!0,dl(e,t,n),cl=o,pl=r;break;case 0:case 11:case 14:case 15:if(!$a&&(null!==(o=n.updateQueue)&&null!==(o=o.lastEffect))){r=o=o.next;do{var i=r,s=i.destroy;i=i.tag,void 0!==s&&(0!==(2&i)||0!==(4&i))&&el(n,t,s),r=r.next}while(r!==o)}dl(e,t,n);break;case 1:if(!$a&&(Ja(n,t),"function"===typeof(o=n.stateNode).componentWillUnmount))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(a){Su(n,t,a)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?($a=(o=$a)||null!==n.memoizedState,dl(e,t,n),$a=o):dl(e,t,n);break;default:dl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xa),t.forEach((function(t){var o=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var r=n[o];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,pl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));hl(s,a,r),cl=null,pl=!1;var u=r.alternate;null!==u&&(u.return=null),r.return=null}catch(c){Su(r,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&o){try{nl(3,e,e.return),ol(3,e)}catch(m){Su(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Su(e,e.return,m)}}break;case 1:gl(t,e),vl(e),512&o&&null!==n&&Ja(n,n.return);break;case 5:if(gl(t,e),vl(e),512&o&&null!==n&&Ja(n,n.return),32&e.flags){var r=e.stateNode;try{de(r,"")}catch(m){Su(e,e.return,m)}}if(4&o&&null!=(r=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&X(r,s),Ce(l,a);var c=Ce(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?me(r,d):"dangerouslySetInnerHTML"===p?pe(r,d):"children"===p?de(r,d):C(r,p,d,c)}switch(l){case"input":Q(r,s);break;case"textarea":ie(r,s);break;case"select":var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(r,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?ne(r,!!s.multiple,s.defaultValue,!0):ne(r,!!s.multiple,s.multiple?[]:"",!1))}r[fr]=s}catch(m){Su(e,e.return,m)}}break;case 6:if(gl(t,e),vl(e),4&o){if(null===e.stateNode)throw Error(i(162));r=e.stateNode,s=e.memoizedProps;try{r.nodeValue=s}catch(m){Su(e,e.return,m)}}break;case 3:if(gl(t,e),vl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{jt(t.containerInfo)}catch(m){Su(e,e.return,m)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(r=e.child).flags&&(s=null!==r.memoizedState,r.stateNode.isHidden=s,!s||null!==r.alternate&&null!==r.alternate.memoizedState||(Vl=Xe())),4&o&&fl(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?($a=(c=$a)||p,gl(t,e),$a=c):gl(t,e),vl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&0!==(1&e.mode))for(Qa=e,p=e.child;null!==p;){for(d=Qa=p;null!==Qa;){switch(f=(h=Qa).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Ja(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){o=h,n=h.return;try{t=o,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Su(o,n,m)}}break;case 5:Ja(h,h.return);break;case 22:if(null!==h.memoizedState){_l(d);continue}}null!==f?(f.return=h,Qa=f):_l(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{r=d.stateNode,c?"function"===typeof(s=r.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=void 0!==(u=d.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=ge("display",a))}catch(m){Su(e,e.return,m)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Su(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),vl(e),4&o&&fl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var o=n;break e}n=n.return}throw Error(i(160))}switch(o.tag){case 5:var r=o.stateNode;32&o.flags&&(de(r,""),o.flags&=-33),ul(e,al(e),r);break;case 3:case 4:var s=o.stateNode.containerInfo;ll(e,al(e),s);break;default:throw Error(i(161))}}catch(a){Su(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Qa=e,Cl(e,t,n)}function Cl(e,t,n){for(var o=0!==(1&e.mode);null!==Qa;){var r=Qa,i=r.child;if(22===r.tag&&o){var s=null!==r.memoizedState||Za;if(!s){var a=r.alternate,l=null!==a&&null!==a.memoizedState||$a;a=Za;var u=$a;if(Za=s,($a=l)&&!u)for(Qa=r;null!==Qa;)l=(s=Qa).child,22===s.tag&&null!==s.memoizedState?bl(r):null!==l?(l.return=s,Qa=l):bl(r);for(;null!==i;)Qa=i,Cl(i,t,n),i=i.sibling;Qa=r,Za=a,$a=u}wl(e)}else 0!==(8772&r.subtreeFlags)&&null!==i?(i.return=r,Qa=i):wl(e)}}function wl(e){for(;null!==Qa;){var t=Qa;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:$a||ol(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!$a)if(null===n)o.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);o.componentDidUpdate(r,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Hi(t,s,o);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&jt(d)}}}break;default:throw Error(i(163))}$a||512&t.flags&&rl(t)}catch(h){Su(t,t.return,h)}}if(t===e){Qa=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qa=n;break}Qa=t.return}}function _l(e){for(;null!==Qa;){var t=Qa;if(t===e){Qa=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qa=n;break}Qa=t.return}}function bl(e){for(;null!==Qa;){var t=Qa;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(l){Su(t,n,l)}break;case 1:var o=t.stateNode;if("function"===typeof o.componentDidMount){var r=t.return;try{o.componentDidMount()}catch(l){Su(t,r,l)}}var i=t.return;try{rl(t)}catch(l){Su(t,i,l)}break;case 5:var s=t.return;try{rl(t)}catch(l){Su(t,s,l)}}}catch(l){Su(t,t.return,l)}if(t===e){Qa=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Qa=a;break}Qa=t.return}}var El,Sl=Math.ceil,Rl=w.ReactCurrentDispatcher,Ol=w.ReactCurrentOwner,Pl=w.ReactCurrentBatchConfig,Tl=0,Al=null,Dl=null,xl=0,Nl=0,Ll=Rr(0),Il=0,Ml=null,Fl=0,kl=0,Gl=0,Hl=null,Wl=null,Vl=0,jl=1/0,Bl=null,zl=!1,Ul=null,Kl=null,ql=!1,Yl=null,Zl=0,$l=0,Xl=null,Ql=-1,Jl=0;function eu(){return 0!==(6&Tl)?Xe():-1!==Ql?Ql:Ql=Xe()}function tu(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==xl?xl&-xl:null!==mi.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=Ct)?e:e=void 0===(e=window.event)?16:$t(e.type)}function nu(e,t,n,o){if(50<$l)throw $l=0,Xl=null,Error(i(185));vt(e,n,o),0!==(2&Tl)&&e===Al||(e===Al&&(0===(2&Tl)&&(kl|=n),4===Il&&au(e,xl)),ou(e,o),1===n&&0===Tl&&0===(1&t.mode)&&(jl=Xe()+500,Wr&&Br()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=r[s];-1===l?0!==(a&n)&&0===(a&o)||(r[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var o=dt(e,e===Al?xl:0);if(0===o)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Wr=!0,jr(e)}(lu.bind(null,e)):jr(lu.bind(null,e)),ar((function(){0===(6&Tl)&&Br()})),n=null;else{switch(wt(o)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=ot}n=Au(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Ql=-1,Jl=0,0!==(6&Tl))throw Error(i(327));var n=e.callbackNode;if(bu()&&e.callbackNode!==n)return null;var o=dt(e,e===Al?xl:0);if(0===o)return null;if(0!==(30&o)||0!==(o&e.expiredLanes)||t)t=mu(e,o);else{t=o;var r=Tl;Tl|=2;var s=fu();for(Al===e&&xl===t||(Bl=null,jl=Xe()+500,du(e,t));;)try{yu();break}catch(l){hu(e,l)}bi(),Rl.current=s,Tl=r,null!==Dl?t=0:(Al=null,xl=0,t=Il)}if(0!==t){if(2===t&&(0!==(r=ft(e))&&(o=r,t=iu(e,r))),1===t)throw n=Ml,du(e,0),au(e,o),ou(e,Xe()),n;if(6===t)au(e,o);else{if(r=e.current.alternate,0===(30&o)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var o=0;o<n.length;o++){var r=n[o],i=r.getSnapshot;r=r.value;try{if(!ao(i(),r))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=mu(e,o))&&(0!==(s=ft(e))&&(o=s,t=iu(e,s))),1===t))throw n=Ml,du(e,0),au(e,o),ou(e,Xe()),n;switch(e.finishedWork=r,e.finishedLanes=o,t){case 0:case 1:throw Error(i(345));case 2:case 5:_u(e,Wl,Bl);break;case 3:if(au(e,o),(130023424&o)===o&&10<(t=Vl+500-Xe())){if(0!==dt(e,0))break;if(((r=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=rr(_u.bind(null,e,Wl,Bl),t);break}_u(e,Wl,Bl);break;case 4:if(au(e,o),(4194240&o)===o)break;for(t=e.eventTimes,r=-1;0<o;){var a=31-st(o);s=1<<a,(a=t[a])>r&&(r=a),o&=~s}if(o=r,10<(o=(120>(o=Xe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Sl(o/1960))-o)){e.timeoutHandle=rr(_u.bind(null,e,Wl,Bl),o);break}_u(e,Wl,Bl);break;default:throw Error(i(329))}}}return ou(e,Xe()),e.callbackNode===n?ru.bind(null,e):null}function iu(e,t){var n=Hl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Wl,Wl=n,null!==t&&su(t)),e}function su(e){null===Wl?Wl=e:Wl.push.apply(Wl,e)}function au(e,t){for(t&=~Gl,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),o=1<<n;e[n]=-1,t&=~o}}function lu(e){if(0!==(6&Tl))throw Error(i(327));bu();var t=dt(e,0);if(0===(1&t))return ou(e,Xe()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var o=ft(e);0!==o&&(t=o,n=iu(e,o))}if(1===n)throw n=Ml,du(e,0),au(e,t),ou(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Wl,Bl),ou(e,Xe()),null}function uu(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(jl=Xe()+500,Wr&&Br())}}function cu(e){null!==Yl&&0===Yl.tag&&0===(6&Tl)&&bu();var t=Tl;Tl|=1;var n=Pl.transition,o=Ct;try{if(Pl.transition=null,Ct=1,e)return e()}finally{Ct=o,Pl.transition=n,0===(6&(Tl=t))&&Br()}}function pu(){Nl=Ll.current,Or(Ll)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ir(n)),null!==Dl)for(n=Dl.return;null!==n;){var o=n;switch(ni(o),o.tag){case 1:null!==(o=o.type.childContextTypes)&&void 0!==o&&Ir();break;case 3:is(),Or(Dr),Or(Ar),ps();break;case 5:as(o);break;case 4:is();break;case 13:case 19:Or(ls);break;case 10:Ei(o.type._context);break;case 22:case 23:pu()}n=n.return}if(Al=e,Dl=e=Lu(e.current,null),xl=Nl=t,Il=0,Ml=null,Gl=kl=Fl=0,Wl=Hl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(o=(n=Pi[t]).interleaved)){n.interleaved=null;var r=o.next,i=n.pending;if(null!==i){var s=i.next;i.next=r,o.next=s}n.pending=o}Pi=null}return e}function hu(e,t){for(;;){var n=Dl;try{if(bi(),ds.current=sa,ys){for(var o=gs.memoizedState;null!==o;){var r=o.queue;null!==r&&(r.pending=null),o=o.next}ys=!1}if(fs=0,vs=ms=gs=null,Cs=!1,ws=0,Ol.current=null,null===n||null===n.return){Il=1,Ml=t,Dl=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=xl,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,p=l,d=p.tag;if(0===(1&p.mode)&&(0===d||11===d||15===d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=va(a);if(null!==f){f.flags&=-257,ya(f,a,l,0,t),1&f.mode&&ma(s,c,t),u=c;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0===(1&t)){ma(s,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var v=va(a);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),ya(v,a,l,0,t),gi(ca(u,l));break e}}s=u=ca(u,l),4!==Il&&(Il=2),null===Hl?Hl=[s]:Hl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,ki(s,fa(0,u,t));break e;case 1:l=u;var y=s.type,C=s.stateNode;if(0===(128&s.flags)&&("function"===typeof y.getDerivedStateFromError||null!==C&&"function"===typeof C.componentDidCatch&&(null===Kl||!Kl.has(C)))){s.flags|=65536,t&=-t,s.lanes|=t,ki(s,ga(s,l,t));break e}}s=s.return}while(null!==s)}wu(n)}catch(w){t=w,Dl===n&&null!==n&&(Dl=n=n.return);continue}break}}function fu(){var e=Rl.current;return Rl.current=sa,null===e?sa:e}function gu(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Al||0===(268435455&Fl)&&0===(268435455&kl)||au(Al,xl)}function mu(e,t){var n=Tl;Tl|=2;var o=fu();for(Al===e&&xl===t||(Bl=null,du(e,t));;)try{vu();break}catch(r){hu(e,r)}if(bi(),Tl=n,Rl.current=o,null!==Dl)throw Error(i(261));return Al=null,xl=0,Il}function vu(){for(;null!==Dl;)Cu(Dl)}function yu(){for(;null!==Dl&&!Ze();)Cu(Dl)}function Cu(e){var t=El(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?wu(e):Dl=t,Ol.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=qa(n,t,Nl)))return void(Dl=n)}else{if(null!==(n=Ya(n,t)))return n.flags&=32767,void(Dl=n);if(null===e)return Il=6,void(Dl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Dl=t);Dl=t=e}while(null!==t);0===Il&&(Il=5)}function _u(e,t,n){var o=Ct,r=Pl.transition;try{Pl.transition=null,Ct=1,function(e,t,n,o){do{bu()}while(null!==Yl);if(0!==(6&Tl))throw Error(i(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-st(n),i=1<<r;t[r]=0,o[r]=-1,e[r]=-1,n&=~i}}(e,s),e===Al&&(Dl=Al=null,xl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||ql||(ql=!0,Au(tt,(function(){return bu(),null}))),s=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||s){s=Pl.transition,Pl.transition=null;var a=Ct;Ct=1;var l=Tl;Tl|=4,Ol.current=null,function(e,t){if(tr=zt,fo(e=ho())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var r=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{n.nodeType,s.nodeType}catch(_){n=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==n||0!==r&&3!==d.nodeType||(l=a+r),d!==s||0!==o&&3!==d.nodeType||(u=a+o),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===r&&(l=a),h===s&&++p===o&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(nr={focusedElem:e,selectionRange:n},zt=!1,Qa=t;null!==Qa;)if(e=(t=Qa).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Qa=e;else for(;null!==Qa;){t=Qa;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,C=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:vi(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(_){Su(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,Qa=e;break}Qa=t.return}g=tl,tl=!1}(e,n),ml(n,e),go(nr),zt=!!tr,nr=tr=null,e.current=n,yl(n,e,r),$e(),Tl=l,Ct=a,Pl.transition=s}else e.current=n;if(ql&&(ql=!1,Yl=e,Zl=r),0===(s=e.pendingLanes)&&(Kl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ou(e,Xe()),null!==t)for(o=e.onRecoverableError,n=0;n<t.length;n++)o((r=t[n]).value,{componentStack:r.stack,digest:r.digest});if(zl)throw zl=!1,e=Ul,Ul=null,e;0!==(1&Zl)&&0!==e.tag&&bu(),0!==(1&(s=e.pendingLanes))?e===Xl?$l++:($l=0,Xl=e):$l=0,Br()}(e,t,n,o)}finally{Pl.transition=r,Ct=o}return null}function bu(){if(null!==Yl){var e=wt(Zl),t=Pl.transition,n=Ct;try{if(Pl.transition=null,Ct=16>e?16:e,null===Yl)var o=!1;else{if(e=Yl,Yl=null,Zl=0,0!==(6&Tl))throw Error(i(331));var r=Tl;for(Tl|=4,Qa=e.current;null!==Qa;){var s=Qa,a=s.child;if(0!==(16&Qa.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Qa=c;null!==Qa;){var p=Qa;switch(p.tag){case 0:case 11:case 15:nl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Qa=d;else for(;null!==Qa;){var h=(p=Qa).sibling,f=p.return;if(il(p),p===c){Qa=null;break}if(null!==h){h.return=f,Qa=h;break}Qa=f}}}var g=s.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Qa=s}}if(0!==(2064&s.subtreeFlags)&&null!==a)a.return=s,Qa=a;else e:for(;null!==Qa;){if(0!==(2048&(s=Qa).flags))switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,Qa=y;break e}Qa=s.return}}var C=e.current;for(Qa=C;null!==Qa;){var w=(a=Qa).child;if(0!==(2064&a.subtreeFlags)&&null!==w)w.return=a,Qa=w;else e:for(a=C;null!==Qa;){if(0!==(2048&(l=Qa).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(b){Su(l,l.return,b)}if(l===a){Qa=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Qa=_;break e}Qa=l.return}}if(Tl=r,Br(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(rt,e)}catch(b){}o=!0}return o}finally{Ct=n,Pl.transition=t}}return!1}function Eu(e,t,n){e=Mi(e,t=fa(0,t=ca(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ou(e,t))}function Su(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof o.componentDidCatch&&(null===Kl||!Kl.has(o))){t=Mi(t,e=ga(t,e=ca(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function Ru(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(xl&n)===n&&(4===Il||3===Il&&(130023424&xl)===xl&&500>Xe()-Vl?du(e,0):Gl|=n),ou(e,t)}function Ou(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Di(e,t))&&(vt(e,t,n),ou(e,n))}function Pu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Tu(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(i(314))}null!==o&&o.delete(t),Ou(e,n)}function Au(e,t){return qe(e,t)}function Du(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xu(e,t,n,o){return new Du(e,t,n,o)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lu(e,t){var n=e.alternate;return null===n?((n=xu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Iu(e,t,n,o,r,s){var a=2;if(o=e,"function"===typeof e)Nu(e)&&(a=1);else if("string"===typeof e)a=5;else e:switch(e){case E:return Mu(n.children,r,s,t);case S:a=8,r|=8;break;case R:return(e=xu(12,n,t,2|r)).elementType=R,e.lanes=s,e;case A:return(e=xu(13,n,t,r)).elementType=A,e.lanes=s,e;case D:return(e=xu(19,n,t,r)).elementType=D,e.lanes=s,e;case L:return Fu(n,r,s,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case O:a=10;break e;case P:a=9;break e;case T:a=11;break e;case x:a=14;break e;case N:a=16,o=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=xu(a,n,t,r)).elementType=e,t.type=o,t.lanes=s,t}function Mu(e,t,n,o){return(e=xu(7,e,o,t)).lanes=n,e}function Fu(e,t,n,o){return(e=xu(22,e,o,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function ku(e,t,n){return(e=xu(6,e,null,t)).lanes=n,e}function Gu(e,t,n){return(t=xu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hu(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Wu(e,t,n,o,r,i,s,a,l){return e=new Hu(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=xu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ni(i),e}function Vu(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}function ju(e){if(!e)return Tr;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Lr(n))return Fr(e,n,t)}return t}function Bu(e,t,n,o,r,i,s,a,l){return(e=Wu(n,o,!0,e,0,i,0,a,l)).context=ju(null),n=e.current,(i=Ii(o=eu(),r=tu(n))).callback=void 0!==t&&null!==t?t:null,Mi(n,i,r),e.current.lanes=r,vt(e,r,o),ou(e,o),e}function zu(e,t,n,o){var r=t.current,i=eu(),s=tu(r);return n=ju(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ii(i,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Mi(r,t,s))&&(nu(e,r,s,i),Fi(e,r,s)),s}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Dr.current)wa=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return wa=!1,function(e,t,n){switch(t.tag){case 3:Da(t),fi();break;case 5:ss(t);break;case 1:Lr(t.type)&&kr(t);break;case 4:rs(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,r=t.memoizedProps.value;Pr(yi,o._currentValue),o._currentValue=r;break;case 13:if(null!==(o=t.memoizedState))return null!==o.dehydrated?(Pr(ls,1&ls.current),t.flags|=128,null):0!==(n&t.child.childLanes)?ka(e,t,n):(Pr(ls,1&ls.current),null!==(e=za(e,t,n))?e.sibling:null);Pr(ls,1&ls.current);break;case 19:if(o=0!==(n&t.childLanes),0!==(128&e.flags)){if(o)return ja(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Pr(ls,ls.current),o)break;return null;case 22:case 23:return t.lanes=0,Ra(e,t,n)}return za(e,t,n)}(e,t,n);wa=0!==(131072&e.flags)}else wa=!1,ii&&0!==(1048576&t.flags)&&ei(t,qr,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ba(e,t),e=t.pendingProps;var r=Nr(t,Ar.current);Ri(t,n),r=Ss(null,t,o,e,r,n);var s=Rs();return t.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lr(o)?(s=!0,kr(t)):s=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Ni(t),r.updater=ji,t.stateNode=r,r._reactInternals=t,Ki(t,o,e,n),t=Aa(null,t,o,!0,s,n)):(t.tag=0,ii&&s&&ti(t),_a(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Ba(e,t),e=t.pendingProps,o=(r=o._init)(o._payload),t.type=o,r=t.tag=function(e){if("function"===typeof e)return Nu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===x)return 14}return 2}(o),e=vi(o,e),r){case 0:t=Pa(null,t,o,e,n);break e;case 1:t=Ta(null,t,o,e,n);break e;case 11:t=ba(null,t,o,e,n);break e;case 14:t=Ea(null,t,o,vi(o.type,e),n);break e}throw Error(i(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,Pa(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 1:return o=t.type,r=t.pendingProps,Ta(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 3:e:{if(Da(t),null===e)throw Error(i(387));o=t.pendingProps,r=(s=t.memoizedState).element,Li(e,t),Gi(t,o,null,n);var a=t.memoizedState;if(o=a.element,s.isDehydrated){if(s={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=xa(e,t,o,n,r=ca(Error(i(423)),t));break e}if(o!==r){t=xa(e,t,o,n,r=ca(Error(i(424)),t));break e}for(ri=cr(t.stateNode.containerInfo.firstChild),oi=t,ii=!0,si=null,n=Qi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),o===r){t=za(e,t,n);break e}_a(e,t,o,n)}t=t.child}return t;case 5:return ss(t),null===e&&ci(t),o=t.type,r=t.pendingProps,s=null!==e?e.memoizedProps:null,a=r.children,or(o,r)?a=null:null!==s&&or(o,s)&&(t.flags|=32),Oa(e,t),_a(e,t,a,n),t.child;case 6:return null===e&&ci(t),null;case 13:return ka(e,t,n);case 4:return rs(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Xi(t,null,o,n):_a(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,ba(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 7:return _a(e,t,t.pendingProps,n),t.child;case 8:case 12:return _a(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,s=t.memoizedProps,a=r.value,Pr(yi,o._currentValue),o._currentValue=a,null!==s)if(ao(s.value,a)){if(s.children===r.children&&!Dr.current){t=za(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===s.tag){(u=Ii(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Si(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Si(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}_a(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Ri(t,n),o=o(r=Oi(r)),t.flags|=1,_a(e,t,o,n),t.child;case 14:return r=vi(o=t.type,t.pendingProps),Ea(e,t,o,r=vi(o.type,r),n);case 15:return Sa(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:vi(o,r),Ba(e,t),t.tag=1,Lr(o)?(e=!0,kr(t)):e=!1,Ri(t,n),zi(t,o,r),Ki(t,o,r,n),Aa(null,t,o,!0,e,n);case 19:return ja(e,t,n);case 22:return Ra(e,t,n)}throw Error(i(156,t.tag))};var Yu="function"===typeof reportError?reportError:function(e){console.error(e)};function Zu(e){this._internalRoot=e}function $u(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,o,r){var i=n._reactRootContainer;if(i){var s=i;if("function"===typeof r){var a=r;r=function(){var e=Uu(s);a.call(e)}}zu(t,s,e,r)}else s=function(e,t,n,o,r){if(r){if("function"===typeof o){var i=o;o=function(){var e=Uu(s);i.call(e)}}var s=Bu(t,o,e,0,null,!1,0,"",Ju);return e._reactRootContainer=s,e[gr]=s.current,Bo(8===e.nodeType?e.parentNode:e),cu(),s}for(;r=e.lastChild;)e.removeChild(r);if("function"===typeof o){var a=o;o=function(){var e=Uu(l);a.call(e)}}var l=Wu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[gr]=l.current,Bo(8===e.nodeType?e.parentNode:e),cu((function(){zu(t,l,n,o)})),l}(n,t,e,r,o);return Uu(s)}$u.prototype.render=Zu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));zu(e,t,null,null)},$u.prototype.unmount=Zu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){zu(null,e,null,null)})),t[gr]=null}},$u.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&kt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(yt(t,1|n),ou(t,Xe()),0===(6&Tl)&&(jl=Xe()+500,Br()))}break;case 13:cu((function(){var t=Di(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),qu(e,1)}},bt=function(e){if(13===e.tag){var t=Di(e,134217728);if(null!==t)nu(t,e,134217728,eu());qu(e,134217728)}},Et=function(e){if(13===e.tag){var t=tu(e),n=Di(e,t);if(null!==n)nu(n,e,t,eu());qu(e,t)}},St=function(){return Ct},Rt=function(e,t){var n=Ct;try{return Ct=e,t()}finally{Ct=n}},be=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=br(o);if(!r)throw Error(i(90));q(o),Q(o,r)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=uu,Ae=cu;var tc={usingClientEntryPoint:!1,Events:[wr,_r,br,Oe,Pe,uu]},nc={findFiberByHostInstance:Cr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},oc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{rt=rc.inject(oc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(i(200));return Vu(e,t,null,n)},t.createRoot=function(e,t){if(!Xu(e))throw Error(i(299));var n=!1,o="",r=Yu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Wu(e,1,!1,null,0,n,0,o,r),e[gr]=t.current,Bo(8===e.nodeType?e.parentNode:e),new Zu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Qu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xu(e))throw Error(i(405));var o=null!=n&&n.hydratedSources||null,r=!1,s="",a=Yu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Bu(t,null,e,1,null!=n?n:null,r,0,s,a),e[gr]=t.current,Bo(e),o)for(e=0;e<o.length;e++)r=(r=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new $u(t)},t.render=function(e,t,n){if(!Qu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[gr]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Qu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,o)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var o=n(4164);t.createRoot=o.createRoot,t.hydrateRoot=o.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},8340:function(e,t,n){"use strict";var o,r;o=n(1071),r=n(4424),t.version=o.version,t.renderToString=o.renderToString,t.renderToStaticMarkup=o.renderToStaticMarkup,t.renderToNodeStream=o.renderToNodeStream,t.renderToStaticNodeStream=o.renderToStaticNodeStream,t.renderToReadableStream=r.renderToReadableStream},1372:function(e,t){"use strict";var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case a:case s:case d:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case g:case f:case l:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===a||e===s||e===d||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},7441:function(e,t,n){"use strict";e.exports=n(1372)},3688:function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?a="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,u="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:function(){return s}}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},2240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(2791),s=f(i),a=f(n(4164)),l=f(n(2007)),u=f(n(4334)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5858)),p=n(3663),d=f(p),h=n(3688);function f(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var v=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",C=p.canUseDOM&&void 0!==a.default.createPortal,w=function(e){return document.createElement(e)},_=function(){return C?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function b(e){return e()}var E=function(e){function t(){var e,n,r;g(this,t);for(var i=arguments.length,l=Array(i),c=0;c<i;c++)l[c]=arguments[c];return n=r=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.removePortal=function(){!C&&a.default.unmountComponentAtNode(r.node);var e=b(r.props.parentSelector);e&&e.contains(r.node)?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=_()(r,s.default.createElement(u.default,o({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},m(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){p.canUseDOM&&(C||(this.node=w("div")),this.node.className=this.props.portalClassName,b(this.props.parentSelector).appendChild(this.node),!C&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:b(e.parentSelector),nextParent:b(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(p.canUseDOM){var o=this.props,r=o.isOpen,i=o.portalClassName;e.portalClassName!==i&&(this.node.className=i);var s=n.prevParent,a=n.nextParent;a!==s&&(s.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||r)&&!C&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(p.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return p.canUseDOM&&C?(!this.node&&C&&(this.node=w("div")),_()(s.default.createElement(u.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(i.Component);E.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(d.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(d.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},E.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},E.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(E),t.default=E},4334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(2791),a=m(n(2007)),l=g(n(8844)),u=m(n(870)),c=g(n(5858)),p=g(n(4942)),d=n(3663),h=m(d),f=m(n(8484));function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}n(5670);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,C=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&p.remove(document.body,i),r&&p.remove(document.getElementsByTagName("html")[0],r),o&&y>0&&0===(y-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===("undefined"===typeof t?"undefined":r(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"===typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName;r&&p.add(document.body,r),o&&p.add(document.getElementsByTagName("html")[0],o),n&&(y+=1,c.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=o({id:t,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),p=this.props.contentElement(c,s);return this.props.overlayElement(u,p)}}]),t}(s.Component);C.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},C.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(h.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(h.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=C,e.exports=t.default},5858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")})));a=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"===typeof t&&s.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=u(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){r.value.setAttribute("aria-hidden","true")}}catch(s){n=!0,o=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=u(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){r.value.removeAttribute("aria-hidden")}}catch(s){n=!0,o=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=n(2391),i=(o=r)&&o.__esModule?o:{default:o},s=n(3663);var a=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},5670:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[s,a],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}s=a=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[s,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,r=n(8484),i=(o=r)&&o.__esModule?o:{default:o};var s=void 0,a=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe((function(e,t){s||a||((s=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),s.style.position="absolute",s.style.opacity="0",s.setAttribute("tabindex","0"),s.addEventListener("focus",u),(a=s.cloneNode()).addEventListener("focus",u)),(l=t).length>0?(document.body.firstChild!==s&&document.body.insertBefore(s,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(s.parentElement&&s.parentElement.removeChild(s),a.parentElement&&a.parentElement.removeChild(a))}))},4942:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var s in o)r(i,o[s]);n={},o={}},t.log=function(){0};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},8844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s=[]},t.log=function(){0},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){s.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==s.length&&(t=s.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){s.length>0&&s.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var o,r=n(9750),i=(o=r)&&o.__esModule?o:{default:o};var s=[],a=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()}),0)}}},8484:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},3663:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=n(2618);var i=((o=r)&&o.__esModule?o:{default:o}).default,s=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=s},870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var o=void 0,r=t.shiftKey,a=n[0],l=n[n.length-1],u=s();if(e===u){if(!r)return;o=l}l!==u||r||(o=a);a===u&&r&&(o=l);if(o)return t.preventDefault(),void o.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var p=n.indexOf(u);p>-1&&(p+=r?-1:1);if("undefined"===typeof(o=n[p]))return t.preventDefault(),void(o=r?l:a).focus();t.preventDefault(),o.focus()};var o,r=n(9750),i=(o=r)&&o.__esModule?o:{default:o};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?s(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},9750:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(i)};var n=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(o){return console.warn("Failed to inspect element style"),!1}}function r(e,t){var r=e.nodeName.toLowerCase();return(n.test(r)&&!e.disabled||"a"===r&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),o(t))return!1;t=t.parentNode}return!0}(e)}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&r(e,!n)}e.exports=t.default},7948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(2240),i=(o=r)&&o.__esModule?o:{default:o};t.default=i.default,e.exports=t.default},1016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,s=n(6722),a=(i=s)&&i.__esModule?i:{default:i},l=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=o(t,2),i=n[0],s=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var u=n.map((function(e){return i[e]})).filter(l);return"string"===typeof u[0]||"function"===typeof s?{key:e,className:s?s.apply(void 0,r(u)):u.join(" ")}:{key:e,style:a.default.apply(void 0,[{}].concat(r(u)))}}},e.exports=t.default},6722:function(e){"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var r,i,s=n(e),a=1;a<arguments.length;a++){r=arguments[a],i=o(Object(r));for(var l=0;l<i.length;l++)s[i[l]]=r[i[l]]}return s}},6374:function(e,t,n){"use strict";var o=n(2791),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var o,i={},u=null,c=null;for(o in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:u,ref:c,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function y(){}function C(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=C.prototype=new y;w.constructor=C,g(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,b=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,o){var r,i={},s=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)b.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=o;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:E.current}}function O(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,r,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case o:l=!0}}if(l)return s=s(l=e),e=""===i?"."+T(l,0):i,_(s)?(r="",null!=e&&(r=e.replace(P,"$&/")+"/"),A(s,t,r,"",(function(e){return e}))):null!=s&&(O(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,r+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(P,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",_(e))for(var u=0;u<e.length;u++){var c=i+T(a=e[u],u);l+=A(a,t,r,c,s)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=A(a=a.value,t,r,c=i+T(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var o=[],r=0;return A(e,o,"","",(function(e){return t.call(n,e,r++)})),o}function x(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},L={transition:null},I={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:L,ReactCurrentOwner:E};t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=s,t.PureComponent=C,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,o){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)b.call(t,u)&&!S.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=o;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:r,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var o=n-1>>>1,r=e[o];if(!(0<i(r,t)))break e;e[o]=t,e[n]=r,n=o}}function o(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length,s=r>>>1;o<s;){var a=2*(o+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<r&&0>i(c,l)?(e[o]=c,e[u]=n,o=u):(e[o]=l,e[a]=n,o=a);else{if(!(u<r&&0>i(c,n)))break e;e[o]=c,e[u]=n,o=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,C="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=o(c);null!==t;){if(null===t.callback)r(c);else{if(!(t.startTime<=e))break;r(c),t.sortIndex=t.expirationTime,n(u,t)}t=o(c)}}function _(e){if(m=!1,w(e),!g)if(null!==o(u))g=!0,L(b);else{var t=o(c);null!==t&&I(_,t.startTime-e)}}function b(e,n){g=!1,m&&(m=!1,y(O),O=-1),f=!0;var i=h;try{for(w(n),d=o(u);null!==d&&(!(d.expirationTime>n)||e&&!A());){var s=d.callback;if("function"===typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof a?d.callback=a:d===o(u)&&r(u),w(n)}else r(u);d=o(u)}if(null!==d)var l=!0;else{var p=o(c);null!==p&&I(_,p.startTime-n),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,R=null,O=-1,P=5,T=-1;function A(){return!(t.unstable_now()-T<P)}function D(){if(null!==R){var e=t.unstable_now();T=e;var n=!0;try{n=R(!0,e)}finally{n?E():(S=!1,R=null)}}else S=!1}if("function"===typeof C)E=function(){C(D)};else if("undefined"!==typeof MessageChannel){var x=new MessageChannel,N=x.port2;x.port1.onmessage=D,E=function(){N.postMessage(null)}}else E=function(){v(D,0)};function L(e){R=e,S||(S=!0,E())}function I(e,n){O=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||f||(g=!0,L(b))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return o(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,r,i){var s=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:r,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===o(u)&&e===o(c)&&(m?(y(O),O=-1):m=!0,I(_,i-s))):(e.sortIndex=a,n(u,e),g||f||(g=!0,L(b))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},5201:function(e){"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,o=e.multiSection;function r(e){var r=t(e,2),i=r[0],s=r[1];return o?null===s||s===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,s+1]:0===n||s===n-1?[null,null]:null===s?[null,0]:[null,s+1]}return{next:r,prev:function(e){var r=t(e,2),i=r[0],s=r[1];return o?null===s||0===s?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,s-1]:0===n||0===s?[null,null]:null===s?[null,n-1]:[null,s-1]},isLast:function(e){return null===r(e)[1]}}}},1511:function(e){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}},9613:function(e){e.exports=function(e,t,n,o){var r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!a(u))return!1;var c=e[u],p=t[u];if(!1===(r=n?n.call(o,c,p,u):void 0)||void 0===r&&c!==p)return!1}return!0}},2391:function(e){"use strict";var t=function(){};e.exports=t}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,o){return n.f[o](e,t),t}),[]))},n.u=function(e){return"files/static/js/"+e+".9d42efaa.chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="server-admin:";n.l=function(o,r,i,s){if(e[o])e[o].push(r);else{var a,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var p=u[c];if(p.getAttribute("src")==o||p.getAttribute("data-webpack")==t+i){a=p;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=o),e[o]=[r];var d=function(t,n){a.onerror=a.onload=null,clearTimeout(h);var r=e[o];if(delete e[o],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){var e={179:0};n.f.j=function(t,o){var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var i=new Promise((function(n,o){r=e[t]=[n,o]}));o.push(r[2]=i);var s=n.p+n.u(t),a=new Error;n.l(s,(function(o){if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,o){var r,i,s=o[0],a=o[1],l=o[2],u=0;if(s.some((function(t){return 0!==e[t]}))){for(r in a)n.o(a,r)&&(n.m[r]=a[r]);if(l)l(n)}for(t&&t(o);u<s.length;u++)i=s[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkserver_admin=self.webpackChunkserver_admin||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}(),function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function t(t,n){if(t){if("string"===typeof t)return e(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}}function o(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);s=!0);}catch(l){a=!0,r=l}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||t(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var r,i=n(2791);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var a=function(e){return e};var l="beforeunload",u="popstate";function c(e){e.preventDefault(),e.returnValue=""}function p(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function d(){return Math.random().toString(36).substr(2,8)}function h(e){var t=e.pathname,n=void 0===t?"/":t,o=e.search,r=void 0===o?"":o,i=e.hash,s=void 0===i?"":i;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function f(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}var g=(0,i.createContext)(null);var m=(0,i.createContext)(null);var v=(0,i.createContext)({outlet:null,matches:[]});function y(e,t){if(!e)throw new Error(t)}function C(e,t,n){void 0===n&&(n="/");var o=P(("string"===typeof t?f(t):t).pathname||"/",n);if(null==o)return null;var r=w(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(r);for(var i=null,s=0;null==i&&s<r.length;++s)i=S(r[s],o);return i}function w(e,t,n,o){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===o&&(o=""),e.forEach((function(e,r){var i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(o)||y(!1),i.relativePath=i.relativePath.slice(o.length));var s=T([o,i.relativePath]),a=n.concat(i);e.children&&e.children.length>0&&(!0===e.index&&y(!1),w(e.children,t,a,s)),(null!=e.path||e.index)&&t.push({path:s,score:E(s,e.index),routesMeta:a})})),t}var _=/^:\w+$/,b=function(e){return"*"===e};function E(e,t){var n=e.split("/"),o=n.length;return n.some(b)&&(o+=-2),t&&(o+=2),n.filter((function(e){return!b(e)})).reduce((function(e,t){return e+(_.test(t)?3:""===t?1:10)}),o)}function S(e,t){for(var n=e.routesMeta,o={},r="/",i=[],s=0;s<n.length;++s){var a=n[s],l=s===n.length-1,u="/"===r?t:t.slice(r.length)||"/",c=R({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u);if(!c)return null;Object.assign(o,c.params);var p=a.route;i.push({params:o,pathname:T([r,c.pathname]),pathnameBase:A(T([r,c.pathnameBase])),route:p}),"/"!==c.pathnameBase&&(r=T([r,c.pathnameBase]))}return i}function R(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);var o=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return o.push(t),"([^\\/]+)"}));e.endsWith("*")?(o.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(r,t?void 0:"i"),o]}(e.path,e.caseSensitive,e.end),r=o(n,2),i=r[0],s=r[1],a=t.match(i);if(!a)return null;var l=a[0],u=l.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:s.reduce((function(e,t,n){if("*"===t){var o=c[n]||"";u=l.slice(0,l.length-o.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return e}}(c[n]||""),e}),{}),pathname:l,pathnameBase:u,pattern:e}}function O(e,t,n){var o,r="string"===typeof e?f(e):e,i=""===e||""===r.pathname?"/":r.pathname;if(null==i)o=n;else{var s=t.length-1;if(i.startsWith("..")){for(var a=i.split("/");".."===a[0];)a.shift(),s-=1;r.pathname=a.join("/")}o=s>=0?t[s]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?f(e):e,o=n.pathname,r=n.search,i=void 0===r?"":r,s=n.hash,a=void 0===s?"":s,l=o?o.startsWith("/")?o:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(o,t):t;return{pathname:l,search:D(i),hash:x(a)}}(r,o);return i&&"/"!==i&&i.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var T=function(e){return e.join("/").replace(/\/\/+/g,"/")},A=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},D=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},x=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function N(e){L()||y(!1);var t=(0,i.useContext)(g),n=t.basename,o=t.navigator,r=F(e),s=r.hash,a=r.pathname,l=r.search,u=a;if("/"!==n){var c=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?f(e).pathname:e.pathname}(e),p=null!=c&&c.endsWith("/");u="/"===a?n+(p?"/":""):T([n,a])}return o.createHref({pathname:u,search:l,hash:s})}function L(){return null!=(0,i.useContext)(m)}function I(){return L()||y(!1),(0,i.useContext)(m).location}function M(){L()||y(!1);var e=(0,i.useContext)(g),t=e.basename,n=e.navigator,o=(0,i.useContext)(v).matches,r=I().pathname,s=JSON.stringify(o.map((function(e){return e.pathnameBase}))),a=(0,i.useRef)(!1);(0,i.useEffect)((function(){a.current=!0}));var l=(0,i.useCallback)((function(e,o){if(void 0===o&&(o={}),a.current)if("number"!==typeof e){var i=O(e,JSON.parse(s),r);"/"!==t&&(i.pathname=T([t,i.pathname])),(o.replace?n.replace:n.push)(i,o.state)}else n.go(e)}),[t,n,s,r]);return l}function F(e){var t=(0,i.useContext)(v).matches,n=I().pathname,o=JSON.stringify(t.map((function(e){return e.pathnameBase})));return(0,i.useMemo)((function(){return O(e,JSON.parse(o),n)}),[e,o,n])}function k(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((function(n,o,r){return(0,i.createElement)(v.Provider,{children:void 0!==o.route.element?o.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,r+1))}})}),null)}function G(e){y(!1)}function H(e){var t=e.basename,n=void 0===t?"/":t,o=e.children,s=void 0===o?null:o,a=e.location,l=e.navigationType,u=void 0===l?r.Pop:l,c=e.navigator,p=e.static,d=void 0!==p&&p;L()&&y(!1);var h=A(n),v=(0,i.useMemo)((function(){return{basename:h,navigator:c,static:d}}),[h,c,d]);"string"===typeof a&&(a=f(a));var C=a,w=C.pathname,_=void 0===w?"/":w,b=C.search,E=void 0===b?"":b,S=C.hash,R=void 0===S?"":S,O=C.state,T=void 0===O?null:O,D=C.key,x=void 0===D?"default":D,N=(0,i.useMemo)((function(){var e=P(_,h);return null==e?null:{pathname:e,search:E,hash:R,state:T,key:x}}),[h,_,E,R,T,x]);return null==N?null:(0,i.createElement)(g.Provider,{value:v},(0,i.createElement)(m.Provider,{children:s,value:{location:N,navigationType:u}}))}function W(e){var t=e.children,n=e.location;return function(e,t){L()||y(!1);var n,o=(0,i.useContext)(v).matches,r=o[o.length-1],s=r?r.params:{},a=(r&&r.pathname,r?r.pathnameBase:"/"),l=(r&&r.route,I());if(t){var u,c="string"===typeof t?f(t):t;"/"===a||(null==(u=c.pathname)?void 0:u.startsWith(a))||y(!1),n=c}else n=l;var p=n.pathname||"/",d=C(e,{pathname:"/"===a?p:p.slice(a.length)||"/"});return k(d&&d.map((function(e){return Object.assign({},e,{params:Object.assign({},s,e.params),pathname:T([a,e.pathname]),pathnameBase:"/"===e.pathnameBase?a:T([a,e.pathnameBase])})})),o)}(V(t),n)}function V(e){var t=[];return i.Children.forEach(e,(function(e){if((0,i.isValidElement)(e))if(e.type!==i.Fragment){e.type!==G&&y(!1);var n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=V(e.props.children)),t.push(n)}else t.push.apply(t,V(e.props.children))})),t}function j(){return j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},j.apply(this,arguments)}function B(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var z=["onClick","reloadDocument","replace","state","target","to"];function U(e){var t=e.basename,n=e.children,g=e.window,m=(0,i.useRef)();null==m.current&&(m.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,o=n.history;function i(){var e=n.location,t=e.pathname,r=e.search,i=e.hash,s=o.state||{};return[s.idx,a({pathname:t,search:r,hash:i,state:s.usr||null,key:s.key||"default"})]}var g=null;n.addEventListener(u,(function(){if(g)_.call(g),g=null;else{var e=r.Pop,t=i(),n=t[0],o=t[1];if(_.length){if(null!=n){var s=y-n;s&&(g={action:e,location:o,retry:function(){P(-1*s)}},P(s))}}else O(e)}}));var m=r.Pop,v=i(),y=v[0],C=v[1],w=p(),_=p();function b(e){return"string"===typeof e?e:h(e)}function E(e,t){return void 0===t&&(t=null),a(s({pathname:C.pathname,hash:"",search:""},"string"===typeof e?f(e):e,{state:t,key:d()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},b(e)]}function R(e,t,n){return!_.length||(_.call({action:e,location:t,retry:n}),!1)}function O(e){m=e;var t=i();y=t[0],C=t[1],w.call({action:m,location:C})}function P(e){o.go(e)}null==y&&(y=0,o.replaceState(s({},o.state,{idx:y}),""));var T={get action(){return m},get location(){return C},createHref:b,push:function e(t,i){var s=r.Push,a=E(t,i);if(R(s,a,(function(){e(t,i)}))){var l=S(a,y+1),u=l[0],c=l[1];try{o.pushState(u,"",c)}catch(p){n.location.assign(c)}O(s)}},replace:function e(t,n){var i=r.Replace,s=E(t,n);if(R(i,s,(function(){e(t,n)}))){var a=S(s,y),l=a[0],u=a[1];o.replaceState(l,"",u),O(i)}},go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(e){return w.push(e)},block:function(e){var t=_.push(e);return 1===_.length&&n.addEventListener(l,c),function(){t(),_.length||n.removeEventListener(l,c)}}};return T}({window:g}));var v=m.current,y=o((0,i.useState)({action:v.action,location:v.location}),2),C=y[0],w=y[1];return(0,i.useLayoutEffect)((function(){return v.listen(w)}),[v]),(0,i.createElement)(H,{basename:t,children:n,location:C.location,navigationType:C.action,navigator:v})}var K=(0,i.forwardRef)((function(e,t){var n=e.onClick,o=e.reloadDocument,r=e.replace,s=void 0!==r&&r,a=e.state,l=e.target,u=e.to,c=B(e,z),p=N(u),d=function(e,t){var n=void 0===t?{}:t,o=n.target,r=n.replace,s=n.state,a=M(),l=I(),u=F(e);return(0,i.useCallback)((function(t){if(0===t.button&&(!o||"_self"===o)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!r||h(l)===h(u);a(e,{replace:n,state:s})}}),[l,a,u,r,s,o,e])}(u,{replace:s,state:a,target:l});return(0,i.createElement)("a",j({},c,{href:p,onClick:function(e){n&&n(e),e.defaultPrevented||o||d(e)},ref:t,target:l}))}));var q=n(1250),Y=n(7441),Z=n(9613),$=n.n(Z);var X=function(e){function t(e,o,l,u,d){for(var h,f,g,m,w,b=0,E=0,S=0,R=0,O=0,N=0,I=g=h=0,F=0,k=0,G=0,H=0,W=l.length,V=W-1,j="",B="",z="",U="";F<W;){if(f=l.charCodeAt(F),F===V&&0!==E+R+S+b&&(0!==E&&(f=47===E?10:47),R=S=b=0,W++,V++),0===E+R+S+b){if(F===V&&(0<k&&(j=j.replace(p,"")),0<j.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:j+=l.charAt(F)}f=59}switch(f){case 123:for(h=(j=j.trim()).charCodeAt(0),g=1,H=++F;F<W;){switch(f=l.charCodeAt(F)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(F+1)){case 42:case 47:e:{for(I=F+1;I<V;++I)switch(l.charCodeAt(I)){case 47:if(42===f&&42===l.charCodeAt(I-1)&&F+2!==I){F=I+1;break e}break;case 10:if(47===f){F=I+1;break e}}F=I}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<V&&l.charCodeAt(F)!==f;);}if(0===g)break;F++}if(g=l.substring(H,F),0===h&&(h=(j=j.replace(c,"").trim()).charCodeAt(0)),64===h){switch(0<k&&(j=j.replace(p,"")),f=j.charCodeAt(1)){case 100:case 109:case 115:case 45:k=o;break;default:k=x}if(H=(g=t(o,k,g,f,d+1)).length,0<L&&(w=a(3,g,k=n(x,j,G),o,T,P,H,f,d,u),j=k.join(""),void 0!==w&&0===(H=(g=w.trim()).length)&&(f=0,g="")),0<H)switch(f){case 115:j=j.replace(_,s);case 100:case 109:case 45:g=j+"{"+g+"}";break;case 107:g=(j=j.replace(v,"$1 $2"))+"{"+g+"}",g=1===D||2===D&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=j+g,112===u&&(B+=g,g="")}else g=""}else g=t(o,n(o,j,G),g,u,d+1);z+=g,g=G=k=I=h=0,j="",f=l.charCodeAt(++F);break;case 125:case 59:if(1<(H=(j=(0<k?j.replace(p,""):j).trim()).length))switch(0===I&&(h=j.charCodeAt(0),45===h||96<h&&123>h)&&(H=(j=j.replace(" ",":")).length),0<L&&void 0!==(w=a(1,j,o,e,T,P,B.length,u,d,u))&&0===(H=(j=w.trim()).length)&&(j="\0\0"),h=j.charCodeAt(0),f=j.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){U+=j+l.charAt(F);break}default:58!==j.charCodeAt(H-1)&&(B+=r(j,h,f,j.charCodeAt(2)))}G=k=I=h=0,j="",f=l.charCodeAt(++F)}}switch(f){case 13:case 10:47===E?E=0:0===1+h&&107!==u&&0<j.length&&(k=1,j+="\0"),0<L*M&&a(0,j,o,e,T,P,B.length,u,d,u),P=1,T++;break;case 59:case 125:if(0===E+R+S+b){P++;break}default:switch(P++,m=l.charAt(F),f){case 9:case 32:if(0===R+b+E)switch(O){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===R+E+b&&(k=G=1,m="\f"+m);break;case 108:if(0===R+E+b+A&&0<I)switch(F-I){case 2:112===O&&58===l.charCodeAt(F-3)&&(A=O);case 8:111===N&&(A=N)}break;case 58:0===R+E+b&&(I=F);break;case 44:0===E+S+R+b&&(k=1,m+="\r");break;case 34:case 39:0===E&&(R=R===f?0:0===R?f:R);break;case 91:0===R+E+S&&b++;break;case 93:0===R+E+S&&b--;break;case 41:0===R+E+b&&S--;break;case 40:if(0===R+E+b){if(0===h)if(2*O+3*N===533);else h=1;S++}break;case 64:0===E+S+R+b+I+g&&(g=1);break;case 42:case 47:if(!(0<R+b+S))switch(E){case 0:switch(2*f+3*l.charCodeAt(F+1)){case 235:E=47;break;case 220:H=F,E=42}break;case 42:47===f&&42===O&&H+2!==F&&(33===l.charCodeAt(H+2)&&(B+=l.substring(H,F+1)),m="",E=0)}}0===E&&(j+=m)}N=O,O=f,F++}if(0<(H=B.length)){if(k=o,0<L&&(void 0!==(w=a(2,B,k,e,T,P,H,u,d,u))&&0===(B=w).length))return U+B+z;if(B=k.join(",")+"{"+B+"}",0!==D*A){switch(2!==D||i(B,2)||(A=0),A){case 111:B=B.replace(C,":-moz-$1")+B;break;case 112:B=B.replace(y,"::-webkit-input-$1")+B.replace(y,"::-moz-$1")+B.replace(y,":-ms-input-$1")+B}A=0}}return U+B+z}function n(e,t,n){var r=t.trim().split(g);t=r;var i=r.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<i;++a)t[a]=o(e,t[a],n).trim();break;default:var l=a=0;for(t=[];a<i;++a)for(var u=0;u<s;++u)t[l++]=o(e[u]+" ",r[a],n).trim()}return t}function o(e,t,n){var o=t.charCodeAt(0);switch(33>o&&(o=(t=t.trim()).charCodeAt(0)),o){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var s=e+";",a=2*t+3*n+4*o;if(944===a){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===D||2===D&&i(l,1)?"-webkit-"+l+l:l}if(0===D||2===D&&!i(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(O,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return h.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,a=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(E,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(E,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===R.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+o&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+s}return s}function i(e,t){var n=e.indexOf(1===t?":":"{"),o=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?o:o.replace(S,"$1"),n,t)}function s(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(b," or ($1)").substring(4):"("+t+")"}function a(e,t,n,o,r,i,s,a,l,c){for(var p,d=0,h=t;d<L;++d)switch(p=N[d].call(u,e,h,n,o,r,i,s,a,l,c)){case void 0:case!1:case!0:case null:break;default:h=p}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!==typeof e?D=1:(D=2,I=e):D=0),l}function u(e,n){var o=e;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<L){var r=a(-1,n,o,o,T,P,0,0,0,0);void 0!==r&&"string"===typeof r&&(n=r)}var i=t(x,o,n,0,0);return 0<L&&(void 0!==(r=a(-2,i,o,o,T,P,i.length,0,0,0))&&(i=r)),"",A=0,P=T=1,i}var c=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,C=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,b=/([\s\S]*?);/g,E=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,R=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,P=1,T=1,A=0,D=1,x=[],N=[],L=0,I=null,M=0;return u.use=function e(t){switch(t){case void 0:case null:L=N.length=0;break;default:if("function"===typeof t)N[L++]=t;else if("object"===typeof t)for(var n=0,o=t.length;n<o;++n)e(t[n]);else M=0|!!t}return e},u.set=l,void 0!==e&&l(e),u},Q={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var J=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ee=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return J.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),te=n(2110),ne=n.n(te);function oe(){return(oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var re=function(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n},ie=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Y.typeOf)(e)},se=Object.freeze([]),ae=Object.freeze({});function le(e){return"function"==typeof e}function ue(e){return e.displayName||e.name||"Component"}function ce(e){return e&&"string"==typeof e.styledComponentId}var pe="undefined"!=typeof process&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",de="undefined"!=typeof window&&"HTMLElement"in window,he=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY));function fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var ge=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)(r<<=1)<0&&fe(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var i=o;i<r;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=0,l=t.length;a<l;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,i=o;i<r;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),me=new Map,ve=new Map,ye=1,Ce=function(e){if(me.has(e))return me.get(e);for(;ve.has(ye);)ye++;var t=ye++;return me.set(e,t),ve.set(t,e),t},we=function(e){return ve.get(e)},_e=function(e,t){t>=ye&&(ye=t+1),me.set(e,t),ve.set(t,e)},be="style["+pe+'][data-styled-version="5.3.5"]',Ee=new RegExp("^"+pe+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Se=function(e,t,n){for(var o,r=n.split(","),i=0,s=r.length;i<s;i++)(o=r[i])&&e.registerName(t,o)},Re=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),o=[],r=0,i=n.length;r<i;r++){var s=n[r].trim();if(s){var a=s.match(Ee);if(a){var l=0|parseInt(a[1],10),u=a[2];0!==l&&(_e(u,l),Se(e,u,a[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(s)}}},Oe=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Pe=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(pe))return o}}(n),i=void 0!==r?r.nextSibling:null;o.setAttribute(pe,"active"),o.setAttribute("data-styled-version","5.3.5");var s=Oe();return s&&o.setAttribute("nonce",s),n.insertBefore(o,i),o},Te=function(){function e(e){var t=this.element=Pe(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}fe(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Ae=function(){function e(e){var t=this.element=Pe(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),o=this.nodes[e];return this.element.insertBefore(n,o||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),xe=de,Ne={isServer:!de,useCSSOMInjection:!he},Le=function(){function e(e,t,n){void 0===e&&(e=ae),void 0===t&&(t={}),this.options=oe({},Ne,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&de&&xe&&(xe=!1,function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(pe)&&(Re(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return Ce(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(oe({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,o=t.useCSSOMInjection,r=t.target,e=n?new De(r):o?new Te(r):new Ae(r),new ge(e)));var e,t,n,o,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Ce(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ce(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Ce(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=0;r<n;r++){var i=we(r);if(void 0!==i){var s=e.names.get(i),a=t.getGroup(r);if(s&&a&&s.size){var l=pe+".g"+r+'[id="'+i+'"]',u="";void 0!==s&&s.forEach((function(e){e.length>0&&(u+=e+",")})),o+=""+a+l+'{content:"'+u+'"}/*!sc*/\n'}}}return o}(this)},e}(),Ie=/(a)(d)/gi,Me=function(e){return String.fromCharCode(e+(e>25?39:97))};function Fe(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Me(t%52)+n;return(Me(t%52)+n).replace(Ie,"$1-$2")}var ke=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ge=function(e){return ke(5381,e)};function He(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(le(n)&&!ce(n))return!1}return!0}var We=Ge("5.3.5"),Ve=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&He(e),this.componentId=t,this.baseHash=ke(We,t),this.baseStyle=n,Le.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(o,this.staticRulesId))r.push(this.staticRulesId);else{var i=it(this.rules,e,t,n).join(""),s=Fe(ke(this.baseHash,i)>>>0);if(!t.hasNameForId(o,s)){var a=n(i,"."+s,void 0,o);t.insertRules(o,s,a)}r.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,u=ke(this.baseHash,n.hash),c="",p=0;p<l;p++){var d=this.rules[p];if("string"==typeof d)c+=d;else if(d){var h=it(d,e,t,n),f=Array.isArray(h)?h.join(""):h;u=ke(u,f+p),c+=f}}if(c){var g=Fe(u>>>0);if(!t.hasNameForId(o,g)){var m=n(c,"."+g,void 0,o);t.insertRules(o,g,m)}r.push(g)}}return r.join(" ")},e}(),je=/^\s*\/\/.*$/gm,Be=[":","[",".","#"];function ze(e){var t,n,o,r,i=void 0===e?ae:e,s=i.options,a=void 0===s?ae:s,l=i.plugins,u=void 0===l?se:l,c=new X(a),p=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,o,r,i,s,a,l,u,c,p){switch(n){case 1:if(0===c&&64===o.charCodeAt(0))return e(o+";"),"";break;case 2:if(0===u)return o+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(r[0]+o),"";default:return o+(0===p?"/*|*/":"")}case-2:o.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),h=function(e,o,i){return 0===o&&-1!==Be.indexOf(i[n.length])||i.match(r)?e:"."+t};function f(e,i,s,a){void 0===a&&(a="&");var l=e.replace(je,""),u=i&&s?s+" "+i+" { "+l+" }":l;return t=a,n=i,o=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),c(s||!i?"":i,u)}return c.use([].concat(u,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(n)>0&&(r[0]=r[0].replace(o,h))},d,function(e){if(-2===e){var t=p;return p=[],t}}])),f.hash=u.length?u.reduce((function(e,t){return t.name||fe(15),ke(e,t.name)}),5381).toString():"",f}var Ue=i.createContext(),Ke=(Ue.Consumer,i.createContext()),qe=(Ke.Consumer,new Le),Ye=ze();function Ze(){return(0,i.useContext)(Ue)||qe}function $e(){return(0,i.useContext)(Ke)||Ye}function Xe(e){var t=(0,i.useState)(e.stylisPlugins),n=t[0],o=t[1],r=Ze(),s=(0,i.useMemo)((function(){var t=r;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,i.useMemo)((function(){return ze({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,i.useEffect)((function(){$()(n,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),i.createElement(Ue.Provider,{value:s},i.createElement(Ke.Provider,{value:a},e.children))}var Qe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ye);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.toString=function(){return fe(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ye),this.name+e.hash},e}(),Je=/([A-Z])/,et=/([A-Z])/g,tt=/^ms-/,nt=function(e){return"-"+e.toLowerCase()};function ot(e){return Je.test(e)?e.replace(et,nt).replace(tt,"-ms-"):e}var rt=function(e){return null==e||!1===e||""===e};function it(e,t,n,o){if(Array.isArray(e)){for(var r,i=[],s=0,a=e.length;s<a;s+=1)""!==(r=it(e[s],t,n,o))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return rt(e)?"":ce(e)?"."+e.styledComponentId:le(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:it(e(t),t,n,o):e instanceof Qe?n?(e.inject(n,o),e.getName(o)):e:ie(e)?function e(t,n){var o,r,i=[];for(var s in t)t.hasOwnProperty(s)&&!rt(t[s])&&(Array.isArray(t[s])&&t[s].isCss||le(t[s])?i.push(ot(s)+":",t[s],";"):ie(t[s])?i.push.apply(i,e(t[s],s)):i.push(ot(s)+": "+(o=s,(null==(r=t[s])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||o in Q?String(r).trim():r+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var st=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function at(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return le(e)||ie(e)?st(it(re(se,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:st(it(re(e,n)))}new Set;var lt=function(e,t,n){return void 0===n&&(n=ae),e.theme!==n.theme&&e.theme||t||n.theme},ut=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ct=/(^-|-$)/g;function pt(e){return e.replace(ut,"-").replace(ct,"")}var dt=function(e){return Fe(Ge(e)>>>0)};function ht(e){return"string"==typeof e&&!0}var ft=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},gt=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function mt(e,t,n){var o=e[n];ft(t)&&ft(o)?vt(o,t):e[n]=t}function vt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var r=0,i=n;r<i.length;r++){var s=i[r];if(ft(s))for(var a in s)gt(a)&&mt(e,s[a],a)}return e}var yt=i.createContext();yt.Consumer;function Ct(e){var t=(0,i.useContext)(yt),n=(0,i.useMemo)((function(){return function(e,t){return e?le(e)?e(t):Array.isArray(e)||"object"!=typeof e?fe(8):t?oe({},t,{},e):e:fe(14)}(e.theme,t)}),[e.theme,t]);return e.children?i.createElement(yt.Provider,{value:n},e.children):null}var wt={};function _t(e,t,n){var o=ce(e),r=!ht(e),s=t.attrs,a=void 0===s?se:s,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":pt(e);wt[n]=(wt[n]||0)+1;var o=n+"-"+dt("5.3.5"+n+wt[n]);return t?t+"-"+o:o}(t.displayName,t.parentComponentId):l,c=t.displayName,p=void 0===c?function(e){return ht(e)?"styled."+e:"Styled("+ue(e)+")"}(e):c,d=t.displayName&&t.componentId?pt(t.displayName)+"-"+t.componentId:t.componentId||u,h=o&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,f=t.shouldForwardProp;o&&e.shouldForwardProp&&(f=t.shouldForwardProp?function(n,o,r){return e.shouldForwardProp(n,o,r)&&t.shouldForwardProp(n,o,r)}:e.shouldForwardProp);var g,m=new Ve(n,d,o?e.componentStyle:void 0),v=m.isStatic&&0===a.length,y=function(e,t){return function(e,t,n,o){var r=e.attrs,s=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,p=e.target,d=function(e,t,n){void 0===e&&(e=ae);var o=oe({},t,{theme:e}),r={};return n.forEach((function(e){var t,n,i,s=e;for(t in le(s)&&(s=s(o)),s)o[t]=r[t]="className"===t?(n=r[t],i=s[t],n&&i?n+" "+i:n||i):s[t]})),[o,r]}(lt(t,(0,i.useContext)(yt),a)||ae,t,r),h=d[0],f=d[1],g=function(e,t,n,o){var r=Ze(),i=$e();return t?e.generateAndInjectStyles(ae,r,i):e.generateAndInjectStyles(n,r,i)}(s,o,h),m=n,v=f.$as||t.$as||f.as||t.as||p,y=ht(v),C=f!==t?oe({},t,{},f):t,w={};for(var _ in C)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?w.as=C[_]:(u?u(_,ee,v):!y||ee(_))&&(w[_]=C[_]));return t.style&&f.style!==t.style&&(w.style=oe({},t.style,{},f.style)),w.className=Array.prototype.concat(l,c,g!==c?g:null,t.className,f.className).filter(Boolean).join(" "),w.ref=m,(0,i.createElement)(v,w)}(g,e,t,v)};return y.displayName=p,(g=i.forwardRef(y)).attrs=h,g.componentStyle=m,g.displayName=p,g.shouldForwardProp=f,g.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):se,g.styledComponentId=d,g.target=o?e.target:e,g.withComponent=function(e){var o=t.componentId,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,["componentId"]),i=o&&o+"-"+(ht(e)?e:pt(ue(e)));return _t(e,oe({},r,{attrs:h,componentId:i}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?vt({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},r&&ne()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var bt=function(e){return function e(t,n,o){if(void 0===o&&(o=ae),!(0,Y.isValidElementType)(n))return fe(1,String(n));var r=function(){return t(n,o,at.apply(void 0,arguments))};return r.withConfig=function(r){return e(t,n,oe({},o,{},r))},r.attrs=function(r){return e(t,n,oe({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},r}(_t,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){bt[e]=bt(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=He(e),Le.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,o){var r=o(it(this.rules,t,n,o).join(""),""),i=this.componentId+e;n.insertRules(i,i,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,o){e>2&&Le.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Oe();return"<style "+[n&&'nonce="'+n+'"',pe+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?fe(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return fe(2);var n=((t={})[pe]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=Oe();return o&&(n.nonce=o),[i.createElement("style",oe({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Le({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?fe(2):i.createElement(Xe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return fe(3)}}();var Et=function(){return(0,i.useContext)(yt)},St=bt;function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){Rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tt(e){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}function At(){At=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(O){a=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var r=t&&t.prototype instanceof p?t:p,i=Object.create(r.prototype),s=new E(o||[]);return i._invoke=function(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return R()}for(n.method=r,n.arg=i;;){var s=n.delegate;if(s){var a=w(s,n);if(a){if(a===c)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=u(e,t,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}(e,n,s),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}e.wrap=l;var c={};function p(){}function d(){}function h(){}var f={};a(f,r,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(S([])));m&&m!==t&&n.call(m,r)&&(f=m);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function o(r,i,s,a){var l=u(e[r],e,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==Tt(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,s,a)}),(function(e){o("throw",e,s,a)})):t.resolve(p).then((function(e){c.value=e,s(c)}),(function(e){return o("throw",e,s,a)}))}a(l.arg)}var r;this._invoke=function(e,n){function i(){return new t((function(t,r){o(e,n,t,r)}))}return r=r?r.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,c;var r=o.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function b(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:R}}function R(){return{value:void 0,done:!0}}return d.prototype=h,a(v,"constructor",h),a(h,"constructor",d),d.displayName=a(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,a(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(C.prototype),a(C.prototype,i,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var s=new C(l(t,n,o,r),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},y(v),a(v,s,"Generator"),a(v,r,(function(){return this})),a(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=S,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return s.type="throw",s.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(a&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;b(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function Dt(e,t,n,o,r,i,s){try{var a=e[i](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(o,r)}function xt(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function s(e){Dt(i,o,r,s,a,"next",e)}function a(e){Dt(i,o,r,s,a,"throw",e)}s(void 0)}))}}function Nt(e,t){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nt(e,t)}function Lt(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nt(e,t)}function It(){It=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=new RegExp(e,o);return t.set(i,r||t.get(e)),Nt(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){return t[n]=e[o[n]],t}),Object.create(null))}return Lt(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=o(n,this)),n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var i=t.get(this);return e[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+i[t]})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=Tt(e[e.length-1])&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},It.apply(this,arguments)}function Mt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var Ft=n(4569),kt=n.n(Ft);function Gt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ht(n){return function(t){if(Array.isArray(t))return e(t)}(n)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||t(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Wt={data:""},Vt=function(e){return"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Wt},jt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Bt=/\/\*[^]*?\*\/| +/g,zt=/\n+/g,Ut=function e(t,n){var o="",r="",i="",s=function(s){var l=t[s];"@"==s[0]?"i"==s[1]?o=s+" "+l+";":r+="f"==s[1]?e(l,s):s+"{"+e(l,"k"==s[1]?"":n)+"}":"object"==typeof l?r+=e(l,n?n.replace(/([^,])+/g,(function(e){return s.replace(/(^:.*)|([^,])+/g,(function(t){return/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t}))})):s):null!=l&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=e.p?e.p(s,l):s+":"+l+";"),a=s};for(var a in t)s(a);return o+(n&&i?n+"{"+i+"}":i)+r},Kt={},qt=function e(t){if("object"==typeof t){var n="";for(var o in t)n+=o+e(t[o]);return n}return t},Yt=function(e,t,n,o,r){var i=qt(e),s=Kt[i]||(Kt[i]=function(e){for(var t=0,n=11;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n}(i));if(!Kt[s]){var a=i!==e?e:function(e){for(var t,n,o=[{}];t=jt.exec(e.replace(Bt,""));)t[4]?o.shift():t[3]?(n=t[3].replace(zt," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(zt," ").trim();return o[0]}(e);Kt[s]=Ut(r?Rt({},"@keyframes "+s,a):a,n?"":"."+s)}return function(e,t,n){-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)}(Kt[s],t,o),s},Zt=function(e,t,n){return e.reduce((function(e,o,r){var i=t[r];if(i&&i.call){var s=i(n),a=s&&s.props&&s.props.className||/^go/.test(s)&&s;i=a?"."+a:s&&"object"==typeof s?s.props?"":Ut(s,""):!1===s?"":s}return e+o+(null==i?"":i)}),"")};function $t(e){var t=this||{},n=e.call?e(t.p):e;return Yt(n.unshift?n.raw?Zt(n,[].slice.call(arguments,1),t.p):n.reduce((function(e,n){return Object.assign(e,n&&n.call?n(t.p):n)}),{}):n,Vt(t.target),t.g,t.o,t.k)}$t.bind({g:1});var Xt,Qt,Jt,en,tn,nn,on,rn,sn,an,ln,un,cn,pn,dn,hn,fn,gn,mn,vn=$t.bind({k:1});function yn(e,t){var n=this||{};return function(){var o=arguments;function r(i,s){var a=Object.assign({},i),l=a.className||r.className;n.p=Object.assign({theme:Qt&&Qt()},a),n.o=/ *go\d+/.test(l),a.className=$t.apply(n,o)+(l?" "+l:""),t&&(a.ref=s);var u=e;return e[0]&&(u=a.as||e,delete a.as),Jt&&u[0]&&Jt(a),Xt(u,a)}return t?t(r):r}}var Cn=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},wn=function(){var e=0;return function(){return(++e).toString()}}(),_n=function(){var e;return function(){if(void 0===e&&typeof window<"u"){var t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}}(),bn=new Map,En=function(e){if(!bn.has(e)){var t=setTimeout((function(){bn.delete(e),Pn({type:4,toastId:e})}),1e3);bn.set(e,t)}},Sn=function e(t,n){switch(n.type){case 0:return Pt(Pt({},t),{},{toasts:[n.toast].concat(Ht(t.toasts)).slice(0,20)});case 1:return n.toast.id&&function(e){var t=bn.get(e);t&&clearTimeout(t)}(n.toast.id),Pt(Pt({},t),{},{toasts:t.toasts.map((function(e){return e.id===n.toast.id?Pt(Pt({},e),n.toast):e}))});case 2:var o=n.toast;return t.toasts.find((function(e){return e.id===o.id}))?e(t,{type:1,toast:o}):e(t,{type:0,toast:o});case 3:var r=n.toastId;return r?En(r):t.toasts.forEach((function(e){En(e.id)})),Pt(Pt({},t),{},{toasts:t.toasts.map((function(e){return e.id===r||void 0===r?Pt(Pt({},e),{},{visible:!1}):e}))});case 4:return void 0===n.toastId?Pt(Pt({},t),{},{toasts:[]}):Pt(Pt({},t),{},{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case 5:return Pt(Pt({},t),{},{pausedAt:n.time});case 6:var i=n.time-(t.pausedAt||0);return Pt(Pt({},t),{},{pausedAt:void 0,toasts:t.toasts.map((function(e){return Pt(Pt({},e),{},{pauseDuration:e.pauseDuration+i})}))})}},Rn=[],On={toasts:[],pausedAt:void 0},Pn=function(e){On=Sn(On,e),Rn.forEach((function(e){e(On)}))},Tn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},An=function(e){return function(t,n){var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return Pt(Pt({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n),{},{id:(null==n?void 0:n.id)||wn()})}(t,e,n);return Pn({type:2,toast:o}),o.id}},Dn=function(e,t){return An("blank")(e,t)};Dn.error=An("error"),Dn.success=An("success"),Dn.loading=An("loading"),Dn.custom=An("custom"),Dn.dismiss=function(e){Pn({type:3,toastId:e})},Dn.remove=function(e){return Pn({type:4,toastId:e})},Dn.promise=function(e,t,n){var o=Dn.loading(t.loading,Pt(Pt({},n),null==n?void 0:n.loading));return e.then((function(e){return Dn.success(Cn(t.success,e),Pt(Pt({id:o},n),null==n?void 0:n.success)),e})).catch((function(e){Dn.error(Cn(t.error,e),Pt(Pt({id:o},n),null==n?void 0:n.error))})),e};var xn=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o((0,i.useState)(On),2),n=t[0],r=t[1];(0,i.useEffect)((function(){return Rn.push(r),function(){var e=Rn.indexOf(r);e>-1&&Rn.splice(e,1)}}),[n]);var s=n.toasts.map((function(t){var n,o;return Pt(Pt(Pt(Pt({},e),e[t.type]),t),{},{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Tn[t.type],style:Pt(Pt(Pt({},e.style),null==(o=e[t.type])?void 0:o.style),t.style)})}));return Pt(Pt({},n),{},{toasts:s})}(e),n=t.toasts,r=t.pausedAt;(0,i.useEffect)((function(){if(!r){var e=Date.now(),t=n.map((function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((function(){return Dn.dismiss(t.id)}),n);t.visible&&Dn.dismiss(t.id)}}));return function(){t.forEach((function(e){return e&&clearTimeout(e)}))}}}),[n,r]);var s=(0,i.useMemo)((function(){return{startPause:function(){Pn({type:5,time:Date.now()})},endPause:function(){r&&Pn({type:6,time:Date.now()})},updateHeight:function(e,t){return Pn({type:1,toast:{id:e,height:t}})},calculateOffset:function(e,t){var o,r=t||{},i=r.reverseOrder,s=void 0!==i&&i,a=r.gutter,l=void 0===a?8:a,u=r.defaultPosition,c=n.filter((function(t){return(t.position||u)===(e.position||u)&&t.height})),p=c.findIndex((function(t){return t.id===e.id})),d=c.filter((function(e,t){return t<p&&e.visible})).length;return(o=c.filter((function(e){return e.visible}))).slice.apply(o,Ht(s?[d+1]:[0,d])).reduce((function(e,t){return e+(t.height||0)+l}),0)}}}),[n,r]);return{toasts:n,handlers:s}},Nn=vn(en||(en=Gt(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]))),Ln=vn(tn||(tn=Gt(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),In=vn(nn||(nn=Gt(["\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]))),Mn=yn("div")(on||(on=Gt(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"])),(function(e){return e.primary||"#ff4b4b"}),Nn,Ln,(function(e){return e.secondary||"#fff"}),In),Fn=vn(rn||(rn=Gt(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),kn=yn("div")(sn||(sn=Gt(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"])),(function(e){return e.secondary||"#e0e0e0"}),(function(e){return e.primary||"#616161"}),Fn),Gn=vn(an||(an=Gt(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]))),Hn=vn(ln||(ln=Gt(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]))),Wn=yn("div")(un||(un=Gt(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"])),(function(e){return e.primary||"#61d345"}),Gn,Hn,(function(e){return e.secondary||"#fff"})),Vn=yn("div")(cn||(cn=Gt(["\n position: absolute;\n"]))),jn=yn("div")(pn||(pn=Gt(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]))),Bn=vn(dn||(dn=Gt(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),zn=yn("div")(hn||(hn=Gt(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"])),Bn),Un=function(e){var t=e.toast,n=t.icon,o=t.type,r=t.iconTheme;return void 0!==n?"string"==typeof n?i.createElement(zn,null,n):n:"blank"===o?null:i.createElement(jn,null,i.createElement(kn,Pt({},r)),"loading"!==o&&i.createElement(Vn,null,"error"===o?i.createElement(Mn,Pt({},r)):i.createElement(Wn,Pt({},r))))},Kn=function(e){return"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n")},qn=function(e){return"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n")},Yn=yn("div",i.forwardRef)(fn||(fn=Gt(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]))),Zn=yn("div")(gn||(gn=Gt(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]))),$n=i.memo((function(e){var t=e.toast,n=e.position,r=e.style,s=e.children,a=null!=t&&t.height?function(e,t){var n=e.includes("top")?1:-1,r=o(_n()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Kn(n),qn(n)],2),i=r[0],s=r[1];return{animation:t?"".concat(vn(i)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(vn(s)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}}(t.position||n||"top-center",t.visible):{opacity:0},l=i.createElement(Un,{toast:t}),u=i.createElement(Zn,Pt({},t.ariaProps),Cn(t.message,t));return i.createElement(Yn,{className:t.className,style:Pt(Pt(Pt({},a),r),t.style)},"function"==typeof s?s({icon:l,message:u}):i.createElement(i.Fragment,null,l,u))}));!function(e,t,n,o){Ut.p=t,Xt=e,Qt=n,Jt=o}(i.createElement);var Xn=$t(mn||(mn=Gt(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]))),Qn=function(e){var t=e.reverseOrder,n=e.position,o=void 0===n?"top-center":n,r=e.toastOptions,s=e.gutter,a=e.children,l=e.containerStyle,u=e.containerClassName,c=xn(r),p=c.toasts,d=c.handlers;return i.createElement("div",{style:Pt({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},l),className:u,onMouseEnter:d.startPause,onMouseLeave:d.endPause},p.map((function(e){var n=e.position||o,r=function(e,t){var n=e.includes("top"),o=n?{top:0}:{bottom:0},r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return Pt(Pt({left:0,right:0,display:"flex",position:"absolute",transition:_n()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)")},o),r)}(n,d.calculateOffset(e,{reverseOrder:t,gutter:s,defaultPosition:o})),l=e.height?void 0:function(e){return function(t){t&&setTimeout((function(){var n=t.getBoundingClientRect();e(n)}))}}((function(t){d.updateHeight(e.id,t.height)}));return i.createElement("div",{ref:l,className:e.visible?Xn:"",key:e.id,style:r},"custom"===e.type?Cn(e.message,e):a?a(e):i.createElement($n,{toast:e,position:n}))})))},Jn=Dn;function eo(e){Jn.success(e)}function to(e){Jn.error(e)}var no=kt().create({withCredentials:!0,headers:{"Content-Type":"application/json"}});no.interceptors.response.use((function(e){return e}),(function(e){return console.error(e),403===e.response.status?to("Authentication error"):e.response.data&&e.response.data.meta&&e.response.data.meta.errorCode?to(e.response.data.meta.errorCode):to("Unknown HTTP error"),Promise.reject(e)}));var oo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,n=null,o=[{key:"get",value:function(){var e=xt(At().mark((function e(t){var n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.get(t);case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"post",value:function(){var e=xt(At().mark((function e(t,n){var o;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.post(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=xt(At().mark((function e(t,n){var o;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.delete(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"put",value:function(){var e=xt(At().mark((function e(t,n){var o;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.put(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"executeCommand",value:function(){var e=xt(At().mark((function e(t){var n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.post("/api/command",{command:t});case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"getMods",value:function(){var e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:return e.next=5,no.get("/api/mods");case 5:return t=e.sent,e.abrupt("return",t.data.data);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getAnimals",value:function(){var e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.get("/api/animal");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getHostiles",value:function(){var e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.get("/api/hostile");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getAdminList",value:function(){var e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("admin list");case 2:return t=e.sent,e.abrupt("return",t.result.split("\n").slice(2,-3).map((function(e){var t=e.trim(),n=It(/(\d+): (\w+) \(.*stored name: ((\w+)|)\)/g,{level:1,ID:2,name:3}).exec(t).groups;return{level:n.level,ID:n.ID,name:n.name}})));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getCommandPermissions",value:function(){var e=xt(At().mark((function e(){var t,n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("commandpermission list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=It(/(\d+): (.+)/g,{level:1,command:2}).exec(e).groups;return{level:t.level,command:t.command}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getWebPermissions",value:function(){var e=xt(At().mark((function e(){var t,n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("webpermission list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=It(/(\d+): (.+)/g,{level:1,permission:2}).exec(e).groups;return{level:t.level,permission:t.permission}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getWebTokens",value:function(){var e=xt(At().mark((function e(){var t,n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("webtokens list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=It(/(\d+): (.+) \/ (.+)/g,{level:1,name:2,token:3}).exec(e).groups,n=t.level,o=t.name;return{level:n,token:t.token,name:o}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getBans",value:function(){var e=xt(At().mark((function e(){var t,n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("ban list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=It(/(.+) \x2D (.+) (.+) \x2D(.*)/g,{date:1,ID:2,name:3,reason:4}).exec(e).groups,n=t.date,o=t.ID,r=t.name,i=t.reason;return{date:new Date(n),ID:o,name:r,reason:i}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getLatestLogLines",value:function(){var e=xt(At().mark((function e(t){var n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.get("/api/log?count=".concat(t));case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"login",value:function(){var e=xt(At().mark((function e(t,n){var o;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.post("/session/login",{username:t,password:n});case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"registerUser",value:function(){var e=xt(At().mark((function e(t,n,o){return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,no.post("/api/registeruser",{username:t,password:n,token:o});case 3:e.next=11;break;case 5:if(e.prev=5,e.t0=e.catch(0),!(e.t0 instanceof Ft.AxiosError)){e.next=10;break}if(!(e.t0.response.status>400&&e.t0.response.status<500)){e.next=10;break}throw new Error(e.t0.response.data.meta.errorCode);case 10:throw new Error("Internal server error");case 11:return e.abrupt("return");case 12:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n,o){return e.apply(this,arguments)}}()},{key:"getPlayers",value:function(){var e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.get("/api/player");case 2:return t=e.sent,e.abrupt("return",t.data.data.players);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getMapConfig",value:function(){var e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.get("/api/map/config");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getItems",value:function(){var e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,no.get("/api/item");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}],n&&Mt(t.prototype,n),o&&Mt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ro=n(2953),io=n(184),so={filter:"agDateColumnFilter",cellRenderer:function(e){return e.value?new Date(e.value).toLocaleString():""}},ao=St.span.withConfig({displayName:"types__RedText",componentId:"sc-18lssv1-0"})(["color:",";"],(function(e){return e.theme.colors.tfpRed})),lo={date:so,command:{filter:"agTextColumnFilter",cellRenderer:function(e){return e.value?e.data.allowed?e.value:(0,io.jsx)(ao,{children:e.value}):""}}},uo={flex:1,wrapText:!0,autoHeight:!0,resizable:!0,sortable:!0,cellStyle:{textAlign:"left"},comparator:function(e,t){return e&&t?String(e).toLowerCase().localeCompare(String(t).toLowerCase()):0}};function co(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={theme:"ag-theme-balham-dark",enableCellTextSelection:!0,suppressCellFocus:!0,enableRangeSelection:!1},n=Pt(Pt({},t),e),r=(0,i.useState)(null),s=o(r,2),a=s[1],l=(0,i.useState)(null),u=o(l,2),c=u[1],p=function(t){a(t.api),c(t.columnApi),e.onGridReady&&e.onGridReady(t)};return(0,io.jsx)("div",{className:n.theme,style:{height:"100%",width:"100%"},children:(0,io.jsx)(ro.AgGridReact,Pt({rowData:n.rowData,columnDefs:n.columnDef,defaultColDef:uo,columnTypes:lo,alwaysShowHorizontalScroll:!0,onGridReady:p},n))})}function po(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={theme:"ag-theme-balham-dark"},n=Pt(Pt({},t),e),o=function(e){if(!e.editing){var t=8===e.event.keyCode,o=46===e.event.keyCode;if(t||o){var r=e.api.getSelectedRows();return n.deleteRowFn?r.forEach((function(e){n.deleteRowFn(e)})):console.warn("No deleteRowFn provided in table options, rows will not actually get deleted"),n.reloadFn(),!0}return!1}};return(0,io.jsx)(co,Pt({rowData:n.rowData,columnDef:n.columnDef,defaultColDef:Pt(Pt({},uo),{},{suppressKeyboardEvent:o}),onCellValueChanged:n.editRowFn,editType:"fullRow",rowSelection:"multiple"},n))}function ho(e,n){var o="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=t(e))||n&&e&&"number"===typeof e.length){o&&(e=o);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==o.return||o.return()}finally{if(l)throw s}}}}var fo=(0,i.createContext)({});function go(e){var t=e.children,n=o((0,i.useState)(null),2),r=n[0],s=n[1];(0,i.useEffect)((function(){function e(){return(e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.getMods();case 2:t=e.sent,s(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var a=function(e){var t=o((0,i.useState)(!0),2),n=t[0],r=t[1],s=o((0,i.useState)(0),2),a=s[0],l=s[1],u=o((0,i.useState)([]),2),c=u[0],p=u[1],d=function(e){"load"===e.type&&l((function(e){return e+1})),"error"===e.type&&(console.error("Failed to load ".concat(e.target.href||e.target.src)),l((function(e){return e+1})))};return(0,i.useEffect)((function(){if(e){var t,n=e.filter((function(e){return e.web})),o=ho(n.map((function(e){return e.web.bundle})));try{for(o.s();!(t=o.n()).done;){var r=t.value;if(r&&!document.querySelector('script[src="'.concat(r,'"]'))){var i=document.createElement("script");i.type="text/javascript",i.src=r,i.async=!0,document.body.appendChild(i),i.addEventListener("load",d),i.addEventListener("error",d)}}}catch(c){o.e(c)}finally{o.f()}var s,a=ho(n.map((function(e){return e.web.css})));try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l&&!document.querySelector('link[href="'.concat(l,'"]'))){var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.href=l,document.head.appendChild(u),u.addEventListener("load",d),u.addEventListener("error",d)}}}catch(c){a.e(c)}finally{a.f()}}}),[e]),(0,i.useEffect)((function(){if(e){var t=e.filter((function(e){return e.web})),n=t.reduce((function(e,t){return t.web.bundle&&(e+=1),t.web.css&&(e+=1),e}),0);if(a===n){var o=t.filter((function(e){return window[e.name]})).map((function(e){return Pt(Pt({},e),{},{external:window[e.name]})}));p(o),r(!1)}}}),[e,a]),n?{loading:n,loadedResources:a}:{loading:n,webMods:c}}(r),l=a.webMods,u=a.loading;l&&!u&&l.length!==r.filter((function(e){return e.web})).length&&console.error("Mods length mismatch, are all IDs mapped correctly between js mods and backend response?",l,r);var c=[];return l&&l.forEach((function(e){for(var t in e.external.routes)if(Object.hasOwnProperty.call(e.external.routes,t)){var n=e.external.routes[t],o=e.name.toLowerCase().split(" ").join("");c.push({path:"mods/".concat(o,"/").concat(t),name:t,element:vo(n,{React:i})})}})),l||(l=[]),(0,io.jsx)(fo.Provider,{value:{mods:r,webMods:l,modRoutes:c},children:t})}function mo(){return(0,i.useContext)(fo)}function vo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(e,Pt({React:i,styled:St,HTTP:oo,Table:co,EditableTable:po},t))}var yo=n.p+"files/static/media/7d2d-logo.fb3c6004228951242783.png",Co=n.p+"files/static/media/7d2d-square.8d1f92bcf774cf9ed887.webp",wo="webevent.log",_o="webapi.Animal",bo="webapi.Command",Eo="webapi.Hostile",So="webapi.Log",Ro="webapi.Player",Oo="webapi.ServerStats",Po="webapi.Mods",To="web.map";function Ao(){return Do.apply(this,arguments)}function Do(){return(Do=xt(At().mark((function e(){return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",oo.get("/userstatus"));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var xo=(0,i.createContext)({status:{loggedin:!1}});function No(e){var t=e.children,n=o((0,i.useState)({}),2),r=n[0],s=n[1],a=o((0,i.useState)(!0),2),l=a[0],u=a[1],c=o((0,i.useState)([]),2),p=c[0],d=c[1];function h(){return f.apply(this,arguments)}function f(){return f=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ao();case 2:t=e.sent,s(t),d(t.permissions),u(!1);case 6:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}return(0,i.useEffect)((function(){h()}),[]),l?null:(0,io.jsx)(xo.Provider,{value:{status:r,loading:l,permissions:p,checkPermission:function(e){for(var t=Array.isArray(e)?e:[e],n=function(e){var n=r.permissions.find((function(n){return n.module.toLowerCase()===t[e].module.toLowerCase()}));if(!n||!n.allowed[t[e].method])return{v:!1}},o=0;o<t.length;o++){var i=n(o);if("object"===typeof i)return i.v}return!0},refreshStatus:h},children:t})}function Lo(){return(0,i.useContext)(xo)}var Io=n(7948),Mo=n.n(Io),Fo=St.div.withConfig({displayName:"button__ButtonContainer",componentId:"sc-13s7063-0"})(["background-color:",";color:",";border-radius:5px;padding:0.5rem;width:fit-content;cursor:pointer;margin:0.25rem;"],(function(e){return e.theme.colors.tfpDarkGrey}),(function(e){return e.theme.colors.tfpWhite}));function ko(e){return(0,io.jsx)(Fo,{onClick:e.onClick,children:e.text})}var Go=St.form.withConfig({displayName:"loginForm__FormContainer",componentId:"sc-gwxwcm-0"})(["margin:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;"]),Ho=St.input.withConfig({displayName:"loginForm__StyledInput",componentId:"sc-gwxwcm-1"})(["margin-top:1rem;margin-bottom:1rem;border-radius:5px;outline:none;"]);function Wo(e){var t=e.onSubmit,n=o((0,i.useState)(""),2),r=n[0],s=n[1],a=o((0,i.useState)(""),2),l=a[0],u=a[1];return(0,io.jsxs)(Go,{onSubmit:function(e){return t(e,r,l)},children:[(0,io.jsx)("label",{htmlFor:"username",children:"Username"}),(0,io.jsx)(Ho,{id:"username",type:"text",value:r,onChange:function(e){s(e.target.value)}}),(0,io.jsx)("label",{htmlFor:"password",children:"Password"}),(0,io.jsx)(Ho,{id:"password",type:"password",value:l,onChange:function(e){u(e.target.value)}}),(0,io.jsx)(ko,{text:"Submit",onClick:function(e){return t(e,r,l)}}),(0,io.jsx)("input",{type:"submit",hidden:!0})]})}Mo().setAppElement("#root");var Vo=St.div.withConfig({displayName:"loginModal__Container",componentId:"sc-1yk7ggv-0"})(["margin:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;"]),jo=St.p.withConfig({displayName:"loginModal__ErrorMessage",componentId:"sc-1yk7ggv-1"})(["color:",";font-size:14px;margin-top:10px;"],(function(e){return e.theme.colors.tfpRed}));function Bo(e){var t=e.OpenComponent,n=e.modalIsOpen,r=e.setIsModalOpen,s=Et(),a=o((0,i.useState)(null),2),l=a[0],u=a[1],c={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",backgroundColor:s.colors.tfpDarkGrey80,color:s.colors.tfpWhite},overlay:{zIndex:1e3,backgroundColor:s.colors.tfpDarkGrey60}};return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)("div",{onClick:function(){r(!0)},children:t}),(0,io.jsxs)(Mo(),{isOpen:n,onRequestClose:function(){r(!1)},style:c,contentLabel:"Example Modal",children:[(0,io.jsx)(Vo,{children:(0,io.jsx)("p",{children:'If you do not have an account yet, you can create one by executing the "createwebuser" command ingame'})}),(0,io.jsx)("hr",{}),(0,io.jsx)(Wo,{onSubmit:function(e,t,n){e.preventDefault(),oo.login(t,n).then((function(e){location.reload()})).catch((function(e){console.error(e),u(e.response.data)}))}}),l&&(0,io.jsx)(jo,{children:l})]})]})}var zo={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Uo=i.createContext&&i.createContext(zo),Ko=function(){return Ko=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ko.apply(this,arguments)},qo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Yo(e){return e&&e.map((function(e,t){return i.createElement(e.tag,Ko({key:t},e.attr),Yo(e.child))}))}function Zo(e){return function(t){return i.createElement($o,Ko({attr:Ko({},e.attr)},t),Yo(e.child))}}function $o(e){var t=function(t){var n,o=e.attr,r=e.size,s=e.title,a=qo(e,["attr","size","title"]),l=r||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),i.createElement("svg",Ko({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,a,{className:n,style:Ko(Ko({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&i.createElement("title",null,s),e.children)};return void 0!==Uo?i.createElement(Uo.Consumer,null,(function(e){return t(e)})):t(zo)}function Xo(e){return Zo({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}},{tag:"polyline",attr:{points:"10 17 15 12 10 7"}},{tag:"line",attr:{x1:"15",y1:"12",x2:"3",y2:"12"}}]})(e)}function Qo(e){return Zo({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}},{tag:"polyline",attr:{points:"16 17 21 12 16 7"}},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"}}]})(e)}function Jo(e){var t=e.collapsed,n=Lo().status,r=o((0,i.useState)(!1),2),s=r[0],a=r[1],l=(0,io.jsx)(La,{collapsed:t,icon:(0,io.jsx)(Xo,{}),title:"Log in",to:"#"});return n.loggedIn?(0,io.jsx)(La,{collapsed:t,icon:(0,io.jsx)(Qo,{}),title:"Log out",to:"../session/logout",external:!0}):(0,io.jsx)(Bo,{modalIsOpen:s,setIsModalOpen:a,OpenComponent:l})}var er=St(K).withConfig({displayName:"NavLink",componentId:"sc-pj17un-0"})(["color:",";text-decoration:none;"],(function(e){return e.theme.colors.tfpWhite})),tr=n(2007),nr=n.n(tr),or=function(e){var t=e.requiredPermission,n=e.children,o=Lo().checkPermission;if(!t)throw new Error("requiredPermission is required");return o(t)?n:null};function rr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"}}]})(e)}function ir(e){return Zo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function sr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function ar(e){return Zo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"}}]})(e)}function lr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"}}]})(e)}function ur(e){return Zo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"}}]})(e)}function cr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function pr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function dr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"}}]})(e)}function hr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"}}]})(e)}function fr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"}}]})(e)}function gr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"}}]})(e)}function mr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}}]})(e)}function vr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}}]})(e)}function yr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"}}]})(e)}function Cr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"}}]})(e)}function wr(e){return Zo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"}}]})(e)}or.propTypes={requiredPermission:nr().shape({module:nr().string.isRequired,method:nr().string.isRequired}).isRequired,children:nr().node.isRequired};var _r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),br=new Uint8Array(16);function Er(){if(!_r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _r(br)}for(var Sr=[],Rr=0;Rr<256;++Rr)Sr[Rr]=(Rr+256).toString(16).substr(1);var Or=function(e,t){var n=t||0,o=Sr;return[o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]]].join("")};var Pr=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||Er)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var i=0;i<16;++i)t[o+i]=r[i];return t||Or(r)};function Tr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ar(e,t,n){return t&&Tr(e.prototype,t),n&&Tr(e,n),e}function Dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(){return xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xr.apply(this,arguments)}function Nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(n),!0).forEach((function(t){Dr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ir(e){return Ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ir(e)}function Mr(e,t){return Mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mr(e,t)}function Fr(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var kr={HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"},Gr=function(e,t){var n;"function"===typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(n)};var Hr=function(e,t){var n=this.state.show,o=this.props.id,r=this.isCapture(t.currentTarget),i=t.currentTarget.getAttribute("currentItem");r||t.stopPropagation(),n&&"true"===i?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),Wr(t.currentTarget,this.getTargetArray(o)),this.showTooltip(t))},Wr=function(e,t){for(var n=0;n<t.length;n++)e!==t[n]?t[n].setAttribute("currentItem","false"):t[n].setAttribute("currentItem","true")},Vr={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,n){this.id in e?e[this.id][t]=n:Object.defineProperty(e,this.id,{configurable:!0,value:Dr({},t,n)})},get:function(e,t){var n=e[this.id];if(void 0!==n)return n[t]}};var jr=function(e,t,n){var o=t.respectEffect,r=void 0!==o&&o,i=t.customEvent,s=void 0!==i&&i,a=this.props.id,l=n.target.getAttribute("data-tip")||null,u=n.target.getAttribute("data-for")||null,c=n.target;if(!this.isCustomEvent(c)||s){var p=null==a&&null==u||u===a;if(null!=l&&(!r||"float"===this.getEffect(c))&&p){var d=function(e){var t={};for(var n in e)"function"===typeof e[n]?t[n]=e[n].bind(e):t[n]=e[n];return t}(n);d.currentTarget=c,e(d)}}},Br=function(e,t){var n={};return e.forEach((function(e){var o=e.getAttribute(t);o&&o.split(" ").forEach((function(e){return n[e]=!0}))})),n},zr=function(){return document.getElementsByTagName("body")[0]};function Ur(e,t,n,o,r,i,s){for(var a=Kr(n),l=a.width,u=a.height,c=Kr(t),p=c.width,d=c.height,h=qr(e,t,i),f=h.mouseX,g=h.mouseY,m=Yr(i,p,d,l,u),v=Zr(s),y=v.extraOffsetX,C=v.extraOffsetY,w=window.innerWidth,_=window.innerHeight,b=$r(n),E=b.parentTop,S=b.parentLeft,R=function(e){var t=m[e].l;return f+t+y},O=function(e){var t=m[e].t;return g+t+C},P=function(e){return function(e){var t=m[e].r;return f+t+y}(e)>w},T=function(e){return function(e){var t=m[e].b;return g+t+C}(e)>_},A=function(e){return function(e){return R(e)<0}(e)||P(e)||function(e){return O(e)<0}(e)||T(e)},D=function(e){return!A(e)},x=["top","bottom","left","right"],N=[],L=0;L<4;L++){var I=x[L];D(I)&&N.push(I)}var M,F=!1,k=r!==o;return D(r)&&k?(F=!0,M=r):N.length>0&&A(r)&&A(o)&&(F=!0,M=N[0]),F?{isNewState:!0,newState:{place:M}}:{isNewState:!1,position:{left:parseInt(R(o)-S,10),top:parseInt(O(o)-E,10)}}}var Kr=function(e){var t=e.getBoundingClientRect(),n=t.height,o=t.width;return{height:parseInt(n,10),width:parseInt(o,10)}},qr=function(e,t,n){var o=t.getBoundingClientRect(),r=o.top,i=o.left,s=Kr(t),a=s.width,l=s.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+a/2,mouseY:r+l/2}},Yr=function(e,t,n,o,r){var i,s,a,l;return"float"===e?(i={l:-o/2,r:o/2,t:-(r+3+2),b:-3},a={l:-o/2,r:o/2,t:15,b:r+3+2+12},l={l:-(o+3+2),r:-3,t:-r/2,b:r/2},s={l:3,r:o+3+2,t:-r/2,b:r/2}):"solid"===e&&(i={l:-o/2,r:o/2,t:-(n/2+r+2),b:-n/2},a={l:-o/2,r:o/2,t:n/2,b:n/2+r+2},l={l:-(o+t/2+2),r:-t/2,t:-r/2,b:r/2},s={l:t/2,r:o+t/2+2,t:-r/2,b:r/2}),{top:i,bottom:a,left:l,right:s}},Zr=function(e){var t=0,n=0;for(var o in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===o?n-=parseInt(e[o],10):"bottom"===o?n+=parseInt(e[o],10):"left"===o?t-=parseInt(e[o],10):"right"===o&&(t+=parseInt(e[o],10));return{extraOffsetX:t,extraOffsetY:n}},$r=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function Xr(e,t,n,o){if(t)return t;if(void 0!==n&&null!==n)return n;if(null===n)return null;var r=/<br\s*\/?>/;return o&&"false"!==o&&r.test(e)?e.split(r).map((function(e,t){return i.createElement("span",{key:t,className:"multi-line"},e)})):e}function Qr(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function Jr(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var ei={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function ti(e,t,n,o){return function(e,t){var n=t.text,o=t.background,r=t.border,i=t.arrow;return"\n \t.".concat(e," {\n\t color: ").concat(n,";\n\t background: ").concat(o,";\n\t border: 1px solid ").concat(r,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,".place-top::before {\n border-top: 8px solid ").concat(r,";\n }\n .").concat(e,".place-top::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n border-top-color: ").concat(i,";\n border-top-style: solid;\n border-top-width: 6px;\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,".place-bottom::before {\n border-bottom: 8px solid ").concat(r,";\n }\n .").concat(e,".place-bottom::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n border-bottom-color: ").concat(i,";\n border-bottom-style: solid;\n border-bottom-width: 6px;\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,".place-left::before {\n border-left: 8px solid ").concat(r,";\n }\n .").concat(e,".place-left::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n border-left-color: ").concat(i,";\n border-left-style: solid;\n border-left-width: 6px;\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,".place-right::before {\n border-right: 8px solid ").concat(r,";\n }\n .").concat(e,".place-right::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n border-right-color: ").concat(i,";\n border-right-style: solid;\n border-right-width: 6px;\n }\n ")}(e,function(e,t,n){var o=e.text,r=e.background,i=e.border,s=e.arrow?e.arrow:e.background,a=function(e){return ei[e]?Lr({},ei[e]):void 0}(t);o&&(a.text=o);r&&(a.background=r);n&&(a.border=i||("light"===t?"black":"white"));s&&(a.arrow=s);return a}(t,n,o))}var ni="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function oi(e,t){return e(t={exports:{}},t.exports),t.exports}var ri=function(e){return e&&e.Math==Math&&e},ii=ri("object"==typeof globalThis&&globalThis)||ri("object"==typeof window&&window)||ri("object"==typeof self&&self)||ri("object"==typeof ni&&ni)||function(){return this}()||Function("return this")(),si=function(e){try{return!!e()}catch(t){return!0}},ai=!si((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),li={}.propertyIsEnumerable,ui=Object.getOwnPropertyDescriptor,ci=ui&&!li.call({1:2},1)?function(e){var t=ui(this,e);return!!t&&t.enumerable}:li,pi={f:ci},di=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hi={}.toString,fi=function(e){return hi.call(e).slice(8,-1)},gi="".split,mi=si((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==fi(e)?gi.call(e,""):Object(e)}:Object,vi=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},yi=function(e){return mi(vi(e))},Ci=function(e){return"object"===typeof e?null!==e:"function"===typeof e},wi=function(e,t){if(!Ci(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!Ci(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!Ci(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!Ci(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")},_i=function(e){return Object(vi(e))},bi={}.hasOwnProperty,Ei=function(e,t){return bi.call(_i(e),t)},Si=ii.document,Ri=Ci(Si)&&Ci(Si.createElement),Oi=function(e){return Ri?Si.createElement(e):{}},Pi=!ai&&!si((function(){return 7!=Object.defineProperty(Oi("div"),"a",{get:function(){return 7}}).a})),Ti=Object.getOwnPropertyDescriptor,Ai=ai?Ti:function(e,t){if(e=yi(e),t=wi(t,!0),Pi)try{return Ti(e,t)}catch(n){}if(Ei(e,t))return di(!pi.f.call(e,t),e[t])},Di={f:Ai},xi=function(e){if(!Ci(e))throw TypeError(String(e)+" is not an object");return e},Ni=Object.defineProperty,Li=ai?Ni:function(e,t,n){if(xi(e),t=wi(t,!0),xi(n),Pi)try{return Ni(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ii={f:Li},Mi=ai?function(e,t,n){return Ii.f(e,t,di(1,n))}:function(e,t,n){return e[t]=n,e},Fi=function(e,t){try{Mi(ii,e,t)}catch(n){ii[e]=t}return t},ki="__core-js_shared__",Gi=ii[ki]||Fi(ki,{}),Hi=Function.toString;"function"!=typeof Gi.inspectSource&&(Gi.inspectSource=function(e){return Hi.call(e)});var Wi,Vi,ji,Bi=Gi.inspectSource,zi=ii.WeakMap,Ui="function"===typeof zi&&/native code/.test(Bi(zi)),Ki=oi((function(e){(e.exports=function(e,t){return Gi[e]||(Gi[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),qi=0,Yi=Math.random(),Zi=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++qi+Yi).toString(36)},$i=Ki("keys"),Xi=function(e){return $i[e]||($i[e]=Zi(e))},Qi={},Ji="Object already initialized",es=ii.WeakMap;if(Ui||Gi.state){var ts=Gi.state||(Gi.state=new es),ns=ts.get,os=ts.has,rs=ts.set;Wi=function(e,t){if(os.call(ts,e))throw new TypeError(Ji);return t.facade=e,rs.call(ts,e,t),t},Vi=function(e){return ns.call(ts,e)||{}},ji=function(e){return os.call(ts,e)}}else{var is=Xi("state");Qi[is]=!0,Wi=function(e,t){if(Ei(e,is))throw new TypeError(Ji);return t.facade=e,Mi(e,is,t),t},Vi=function(e){return Ei(e,is)?e[is]:{}},ji=function(e){return Ei(e,is)}}var ss,as,ls={set:Wi,get:Vi,has:ji,enforce:function(e){return ji(e)?Vi(e):Wi(e,{})},getterFor:function(e){return function(t){var n;if(!Ci(t)||(n=Vi(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},us=oi((function(e){var t=ls.get,n=ls.enforce,o=String(String).split("String");(e.exports=function(e,t,r,i){var s,a=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof r&&("string"!=typeof t||Ei(r,"name")||Mi(r,"name",t),(s=n(r)).source||(s.source=o.join("string"==typeof t?t:""))),e!==ii?(a?!u&&e[t]&&(l=!0):delete e[t],l?e[t]=r:Mi(e,t,r)):l?e[t]=r:Fi(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Bi(this)}))})),cs=ii,ps=function(e){return"function"==typeof e?e:void 0},ds=function(e,t){return arguments.length<2?ps(cs[e])||ps(ii[e]):cs[e]&&cs[e][t]||ii[e]&&ii[e][t]},hs=Math.ceil,fs=Math.floor,gs=function(e){return isNaN(e=+e)?0:(e>0?fs:hs)(e)},ms=Math.min,vs=function(e){return e>0?ms(gs(e),9007199254740991):0},ys=Math.max,Cs=Math.min,ws=function(e){return function(t,n,o){var r,i=yi(t),s=vs(i.length),a=function(e,t){var n=gs(e);return n<0?ys(n+t,0):Cs(n,t)}(o,s);if(e&&n!=n){for(;s>a;)if((r=i[a++])!=r)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},_s={includes:ws(!0),indexOf:ws(!1)}.indexOf,bs=function(e,t){var n,o=yi(e),r=0,i=[];for(n in o)!Ei(Qi,n)&&Ei(o,n)&&i.push(n);for(;t.length>r;)Ei(o,n=t[r++])&&(~_s(i,n)||i.push(n));return i},Es=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ss=Es.concat("length","prototype"),Rs=Object.getOwnPropertyNames||function(e){return bs(e,Ss)},Os={f:Rs},Ps={f:Object.getOwnPropertySymbols},Ts=ds("Reflect","ownKeys")||function(e){var t=Os.f(xi(e)),n=Ps.f;return n?t.concat(n(e)):t},As=function(e,t){for(var n=Ts(t),o=Ii.f,r=Di.f,i=0;i<n.length;i++){var s=n[i];Ei(e,s)||o(e,s,r(t,s))}},Ds=/#|\.prototype\./,xs=function(e,t){var n=Ls[Ns(e)];return n==Ms||n!=Is&&("function"==typeof t?si(t):!!t)},Ns=xs.normalize=function(e){return String(e).replace(Ds,".").toLowerCase()},Ls=xs.data={},Is=xs.NATIVE="N",Ms=xs.POLYFILL="P",Fs=xs,ks=Di.f,Gs=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}},Hs=Array.isArray||function(e){return"Array"==fi(e)},Ws=ds("navigator","userAgent")||"",Vs=ii.process,js=Vs&&Vs.versions,Bs=js&&js.v8;Bs?as=(ss=Bs.split("."))[0]<4?1:ss[0]+ss[1]:Ws&&(!(ss=Ws.match(/Edge\/(\d+)/))||ss[1]>=74)&&(ss=Ws.match(/Chrome\/(\d+)/))&&(as=ss[1]);var zs,Us=as&&+as,Ks=!!Object.getOwnPropertySymbols&&!si((function(){return!String(Symbol())||!Symbol.sham&&Us&&Us<41})),qs=Ks&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ys=Ki("wks"),Zs=ii.Symbol,$s=qs?Zs:Zs&&Zs.withoutSetter||Zi,Xs=function(e){return Ei(Ys,e)&&(Ks||"string"==typeof Ys[e])||(Ks&&Ei(Zs,e)?Ys[e]=Zs[e]:Ys[e]=$s("Symbol."+e)),Ys[e]},Qs=Xs("species"),Js=function(e,t){var n;return Hs(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Hs(n.prototype)?Ci(n)&&null===(n=n[Qs])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},ea=[].push,ta=function(e){var t=1==e,n=2==e,o=3==e,r=4==e,i=6==e,s=7==e,a=5==e||i;return function(l,u,c,p){for(var d,h,f=_i(l),g=mi(f),m=Gs(u,c,3),v=vs(g.length),y=0,C=p||Js,w=t?C(l,v):n||s?C(l,0):void 0;v>y;y++)if((a||y in g)&&(h=m(d=g[y],y,f),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:ea.call(w,d)}else switch(e){case 4:return!1;case 7:ea.call(w,d)}return i?-1:o||r?r:w}},na={forEach:ta(0),map:ta(1),filter:ta(2),some:ta(3),every:ta(4),find:ta(5),findIndex:ta(6),filterOut:ta(7)},oa=Object.keys||function(e){return bs(e,Es)},ra=ai?Object.defineProperties:function(e,t){xi(e);for(var n,o=oa(t),r=o.length,i=0;r>i;)Ii.f(e,n=o[i++],t[n]);return e},ia=ds("document","documentElement"),sa=Xi("IE_PROTO"),aa=function(){},la=function(e){return"<script>"+e+"</"+"script>"},ua=function(){try{zs=document.domain&&new ActiveXObject("htmlfile")}catch(t){}ua=zs?function(e){e.write(la("")),e.close();var t=e.parentWindow.Object;return e=null,t}(zs):function(){var e,t=Oi("iframe");return t.style.display="none",ia.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(la("document.F=Object")),e.close(),e.F}();for(var e=Es.length;e--;)delete ua.prototype[Es[e]];return ua()};Qi[sa]=!0;var ca=Object.create||function(e,t){var n;return null!==e?(aa.prototype=xi(e),n=new aa,aa.prototype=null,n[sa]=e):n=ua(),void 0===t?n:ra(n,t)},pa=Xs("unscopables"),da=Array.prototype;void 0==da[pa]&&Ii.f(da,pa,{configurable:!0,value:ca(null)});var ha,fa,ga,ma,va=na.find,ya="find",Ca=!0;ya in[]&&Array(1).find((function(){Ca=!1})),function(e,t){var n,o,r,i,s,a=e.target,l=e.global,u=e.stat;if(n=l?ii:u?ii[a]||Fi(a,{}):(ii[a]||{}).prototype)for(o in t){if(i=t[o],r=e.noTargetGet?(s=ks(n,o))&&s.value:n[o],!Fs(l?o:a+(u?".":"#")+o,e.forced)&&void 0!==r){if(typeof i===typeof r)continue;As(i,r)}(e.sham||r&&r.sham)&&Mi(i,"sham",!0),us(n,o,i,e)}}({target:"Array",proto:!0,forced:Ca},{find:function(e){return va(this,e,arguments.length>1?arguments[1]:void 0)}}),ha=ya,da[pa][ha]=!0;var wa,_a=function(e){e.hide=function(e){Gr(kr.HIDE,{target:e})},e.rebuild=function(){Gr(kr.REBUILD)},e.show=function(e){Gr(kr.SHOW,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(fa=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(kr.HIDE,this.globalHide),window.addEventListener(kr.HIDE,this.globalHide,!1),window.removeEventListener(kr.REBUILD,this.globalRebuild),window.addEventListener(kr.REBUILD,this.globalRebuild,!1),window.removeEventListener(kr.SHOW,this.globalShow),window.addEventListener(kr.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(kr.HIDE,this.globalHide),window.removeEventListener(kr.REBUILD,this.globalRebuild),window.removeEventListener(kr.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(fa=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,n=this.state,o=n.event,r=n.eventOff,i=e.getAttribute("data-event")||o,s=e.getAttribute("data-event-off")||r;i.split(" ").forEach((function(n){e.removeEventListener(n,Vr.get(e,n));var o=Hr.bind(t,s);Vr.set(e,n,o),e.addEventListener(n,o,!1)})),s&&s.split(" ").forEach((function(n){e.removeEventListener(n,t.hideTooltip),e.addEventListener(n,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,n=t.event,o=t.eventOff,r=n||e.getAttribute("data-event"),i=o||e.getAttribute("data-event-off");e.removeEventListener(r,Vr.get(e,n)),i&&e.removeEventListener(i,this.hideTooltip)}}(fa=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(fa=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(fa=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,o=n.event,r=n.eventOff,i=n.possibleCustomEvents,s=n.possibleCustomEventsOff,a=zr(),l=Br(e,"data-event"),u=Br(e,"data-event-off");null!=o&&(l[o]=!0),null!=r&&(u[r]=!0),i.split(" ").forEach((function(e){return l[e]=!0})),s.split(" ").forEach((function(e){return u[e]=!0})),this.unbindBodyListener(a);var c=this.bodyModeListeners={};for(var p in null==o&&(c.mouseover=jr.bind(this,this.showTooltip,{}),c.mousemove=jr.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=jr.bind(this,this.hideTooltip,{})),l)c[p]=jr.bind(this,(function(e){var n=e.currentTarget.getAttribute("data-event-off")||r;Hr.call(t,n,e)}),{customEvent:!0});for(var d in u)c[d]=jr.bind(this,this.hideTooltip,{customEvent:!0});for(var h in c)a.addEventListener(h,c[h])},e.prototype.unbindBodyListener=function(e){e=e||zr();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((ma=ga=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Fr(this,Ir(t).call(this,e))).state={uuid:e.uuid||"t"+Pr(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:Qr(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},n.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),n.mount=!0,n.delayShowLoop=null,n.delayHideLoop=null,n.delayReshow=null,n.intervalUpdateContent=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mr(e,t)}(t,e),Ar(t,null,[{key:"propTypes",get:function(){return{uuid:nr().string,children:nr().any,place:nr().string,type:nr().string,effect:nr().string,offset:nr().object,multiline:nr().bool,border:nr().bool,textColor:nr().string,backgroundColor:nr().string,borderColor:nr().string,arrowColor:nr().string,insecure:nr().bool,class:nr().string,className:nr().string,id:nr().string,html:nr().bool,delayHide:nr().number,delayUpdate:nr().number,delayShow:nr().number,event:nr().string,eventOff:nr().string,isCapture:nr().bool,globalEventOff:nr().string,getContent:nr().any,afterShow:nr().func,afterHide:nr().func,overridePosition:nr().func,disable:nr().bool,scrollHide:nr().bool,resizeHide:nr().bool,wrapper:nr().string,bodyMode:nr().bool,possibleCustomEvents:nr().string,possibleCustomEventsOff:nr().string,clickable:nr().bool}}}]),Ar(t,[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props,t=(e.insecure,e.resizeHide);this.bindListener(),this.bindWindowEvents(t),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.tooltipRef;if(e){for(var t,n=e.parentNode;n.parentNode;)n=n.parentNode;switch(n.constructor.name){case"Document":case"HTMLDocument":case void 0:t=n.head;break;default:t=n}if(!t.querySelector("style[data-react-tooltip]")){var o=document.createElement("style");o.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',o.setAttribute("data-react-tooltip","true"),t.appendChild(o)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,n=[];if(e){var o=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(o,'"]')}else t="[data-tip]:not([data-for])";return Jr(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat(Jr(e.shadowRoot.querySelectorAll(t)))})),n.concat(Jr(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,o=t.globalEventOff,r=t.isCapture,i=this.getTargetArray(n);i.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(i):i.forEach((function(t){var n=e.isCapture(t),o=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),t.addEventListener("focus",e.showTooltip,n),"float"===o&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n),t.addEventListener("blur",e.hideTooltip,n))})),o&&(window.removeEventListener(o,this.hideTooltip),window.addEventListener(o,this.hideTooltip,r)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,o=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),o&&window.removeEventListener(o,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,n=t.getContent,o=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),Xr(this.state.originTooltip,o,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"===typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var n=this.props,o=n.multiline,r=n.getContent,i=e.currentTarget.getAttribute("data-tip"),s=e.currentTarget.getAttribute("data-multiline")||o||!1,a=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.state.uuid);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=a?"solid":this.getEffect(e.currentTarget),p=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=Ur(e,e.currentTarget,this.tooltipRef,u,u,c,p);d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,e,e.currentTarget,this.tooltipRef,u,u,c,p));var h=d.isNewState?d.newState.place:u;this.clearTimer();var f=e.currentTarget,g=this.state.show?f.getAttribute("data-delay-update")||this.props.delayUpdate:0,m=this,v=function(){m.setState({originTooltip:i,isMultiline:s,desiredPlace:u,place:h,type:f.getAttribute("data-type")||m.props.type||"dark",customColors:{text:f.getAttribute("data-text-color")||m.props.textColor||null,background:f.getAttribute("data-background-color")||m.props.backgroundColor||null,border:f.getAttribute("data-border-color")||m.props.borderColor||null,arrow:f.getAttribute("data-arrow-color")||m.props.arrowColor||null},effect:c,offset:p,html:(f.getAttribute("data-html")?"true"===f.getAttribute("data-html"):m.props.html)||!1,delayShow:f.getAttribute("data-delay-show")||m.props.delayShow||0,delayHide:f.getAttribute("data-delay-hide")||m.props.delayHide||0,delayUpdate:f.getAttribute("data-delay-update")||m.props.delayUpdate||0,border:(f.getAttribute("data-border")?"true"===f.getAttribute("data-border"):m.props.border)||!1,extraClass:f.getAttribute("data-class")||m.props.class||m.props.className||"",disable:(f.getAttribute("data-tip-disable")?"true"===f.getAttribute("data-tip-disable"):m.props.disable)||!1,currentTarget:f},(function(){l&&m.addScrollListener(m.state.currentTarget),m.updateTooltip(e),r&&Array.isArray(r)&&(m.intervalUpdateContent=setInterval((function(){if(m.mount){var e=m.props.getContent,t=Xr(i,"",e[0](),s),n=m.isEmptyTip(t);m.setState({isEmptyTip:n}),m.updatePosition()}}),r[1]))}))};g?this.delayReshow=setTimeout(v,g):v()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,o=n.delayShow,r=n.disable,i=this.props.afterShow,s=this.getTooltipContent(),a=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(s)&&!r){var l=this.state.show?0:parseInt(o,10),u=function(){if(Array.isArray(s)&&s.length>0||s){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:a,show:!0},(function(){t.updatePosition(),n&&i&&i(e)}))}};clearTimeout(this.delayShowLoop),l?this.delayShowLoop=setTimeout(u,l):u()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},r=this.state.disable,i=o.isScroll,s=i?0:this.state.delayHide,a=this.props.afterHide,l=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(l)&&!r){if(t){var u=this.getTargetArray(this.props.id),c=u.some((function(t){return t===e.currentTarget}));if(!c||!this.state.show)return}e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var p=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(n.state.currentTarget),t&&a&&a(e)})))};this.clearTimer(),s?this.delayHideLoop=setTimeout(p,parseInt(s,10)):p()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,o=t.currentTarget,r=t.place,i=t.desiredPlace,s=t.effect,a=t.offset,l=this.tooltipRef,u=Ur(n,o,l,r,i,s,a);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,n,o,l,r,i,s,a)),u.isNewState)return this.setState(u.newState,(function(){e.updatePosition()}));l.style.left=u.position.left+"px",l.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,n=this.state,o=n.extraClass,r=n.html,s=n.ariaProps,a=n.disable,l=n.uuid,u=this.getTooltipContent(),c=this.isEmptyTip(u),p=ti(this.state.uuid,this.state.customColors,this.state.type,this.state.border),d="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||a||c?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),h=this.props.wrapper;t.supportedWrappers.indexOf(h)<0&&(h=t.defaultProps.wrapper);var f=[d,o].filter(Boolean).join(" ");if(r){var g="".concat(u,'\n<style aria-hidden="true">').concat(p,"</style>");return i.createElement(h,xr({className:"".concat(f),id:this.props.id||l,ref:function(t){return e.tooltipRef=t}},s,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:g}}))}return i.createElement(h,xr({className:"".concat(f),id:this.props.id||l},s,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),i.createElement("style",{dangerouslySetInnerHTML:{__html:p},"aria-hidden":"true"}),u)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,o=Qr(e);return Object.keys(o).some((function(e){return o[e]!==n[e]}))?Lr({},t,{ariaProps:o}):null}}]),t}(i.Component),Dr(ga,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),Dr(ga,"supportedWrappers",["div","span"]),Dr(ga,"displayName","ReactTooltip"),(wa=fa=ma).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var n=new t((function(t){for(var n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.removedNodes.length;r++)if(o.removedNodes[r]===e.state.currentTarget)return void e.hideTooltip()}));n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},fa=void(wa.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||fa))||fa)||fa)||fa)||fa)||fa)||fa,ba=_a,Ea=St.div.withConfig({displayName:"sidebar__Container",componentId:"sc-152a2hf-0"})(["height:100vh;width:",";min-width:",";position:relative;font-size:2rem;text-align:center;display:flex;flex-direction:column;justify-content:space-between;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"],(function(e){return e.collapsed?"100px":"250px"}),(function(e){return e.collapsed?"100px":"250px"})),Sa=St.ul.withConfig({displayName:"sidebar__StyledUl",componentId:"sc-152a2hf-1"})(["list-style-type:none;padding-left:1rem;position:relative;"]),Ra=St.li.withConfig({displayName:"sidebar__StyledLi",componentId:"sc-152a2hf-2"})(["height:42px;display:flex;align-items:center;justify-content:flex-start;"]),Oa=St(er).withConfig({displayName:"sidebar__StyledNavLink",componentId:"sc-152a2hf-3"})(["text-decoration:none;color:",";display:flex;align-items:center;justify-content:flex-start;> *{margin:0 0.5rem;}"],(function(e){return e.isActive?"red":"white"})),Pa=St.div.withConfig({displayName:"sidebar__ImageContainer",componentId:"sc-152a2hf-4"})(["width:",";height:200px;top:0;"],(function(e){return e.collapsed?"100px":"250px"})),Ta=St.img.withConfig({displayName:"sidebar__SdtdLogoContainer",componentId:"sc-152a2hf-5"})(["width:100%;height:",";"],(function(e){return e.collapsed?"50%":"100%"})),Aa=St.div.withConfig({displayName:"sidebar__StyledCollapse",componentId:"sc-152a2hf-6"})(["width:100%;height:50px;cursor:pointer;"]),Da=St.a.withConfig({displayName:"sidebar__ExternalLink",componentId:"sc-152a2hf-7"})(["text-decoration:none;color:",";display:flex;align-items:center;justify-content:flex-start;> *{margin:0 0.5rem;}"],(function(e){return e.isActive?"red":"white"}));function xa(e){return(0,io.jsx)(Pa,{collapsed:e.collapsed,children:(0,io.jsx)(Ta,{collapsed:e.collapsed,src:e.collapsed?Co:yo,alt:"Image"})})}function Na(e){var t=e.children;return(0,io.jsx)(Ra,{children:(0,io.jsx)("nav",{children:t})})}function La(e){var t=e.icon,n=e.title,o=e.component,r=e.to,i=e.collapsed,s=e.external,a=void 0!==s&&s,l=I(),u=l.pathname===r||l.pathname.startsWith("/mods/")&&l.pathname.endsWith(r),c=n||o;return a?(0,io.jsxs)(io.Fragment,{children:[(0,io.jsxs)(Da,{isActive:u,href:r,"data-tip":"React-tooltip","data-for":"tooltip-".concat(n),children:[t,i?"":c]}),(0,io.jsx)(ba,{id:"tooltip-".concat(n),children:(0,io.jsx)("span",{children:n})},"console-type-tooltip-".concat(n))]}):(0,io.jsxs)(io.Fragment,{children:[(0,io.jsxs)(Oa,{to:r,isActive:u,"data-tip":"React-tooltip","data-for":"tooltip-".concat(n),children:[t,i?"":c]}),(0,io.jsx)(ba,{id:"tooltip-".concat(n),children:(0,io.jsx)("span",{children:n})},"console-type-tooltip-".concat(n))]})}function Ia(e){var t=e.collapsed,n=e.setCollapsed;var o=Lo().status,r=mo().modRoutes;return(0,io.jsxs)(Ea,{collapsed:t,children:[(0,io.jsx)(xa,{collapsed:t}),(0,io.jsxs)(Sa,{children:[(0,io.jsx)(or,{requiredPermission:{module:To,method:"GET"},children:(0,io.jsx)(Na,{children:(0,io.jsx)(La,{collapsed:t,icon:(0,io.jsx)(gr,{}),title:"Map",to:"/map"})})}),(0,io.jsx)(or,{requiredPermission:{module:bo,method:"GET"},children:(0,io.jsx)(Na,{children:(0,io.jsx)(La,{collapsed:t,icon:(0,io.jsx)(Cr,{}),title:"Console",to:"/console"})})}),(0,io.jsx)(or,{requiredPermission:{module:bo,method:"GET"},children:(0,io.jsx)(Na,{children:(0,io.jsx)(La,{collapsed:t,icon:(0,io.jsx)(lr,{}),title:"Settings",to:"/settings"})})}),(0,io.jsx)(or,{requiredPermission:{module:Po,method:"GET"},children:(0,io.jsx)(Na,{children:(0,io.jsx)(La,{collapsed:t,icon:(0,io.jsx)(dr,{}),title:"Mods",to:"/mods"})})}),r.map((function(e){return(0,io.jsx)(Na,{children:(0,io.jsx)(La,{collapsed:t,icon:(0,io.jsx)(dr,{}),title:e.name,to:e.path})},e.path)}))]}),(0,io.jsxs)(Sa,{children:[o.loggedIn&&(0,io.jsx)(Na,{children:(0,io.jsx)(La,{collapsed:t,icon:(0,io.jsx)(wr,{}),title:"".concat(o.username),to:"/profile"})}),(0,io.jsx)(Na,{children:(0,io.jsx)(Jo,{collapsed:t})})]}),(0,io.jsx)(Aa,{onClick:function(){n(!t)},children:t?(0,io.jsx)(sr,{}):(0,io.jsx)(ir,{})})]})}var Ma=n.p+"files/static/media/bg-forest.a0037883583931c1c7e3.jpg",Fa=St.div.withConfig({displayName:"sc-404__CenterContainer",componentId:"sc-13rbdbz-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;"]);function ka(){return(0,io.jsxs)(Fa,{children:[(0,io.jsx)("h1",{children:"404"}),(0,io.jsx)("p",{children:"You have gotten lost in the wilderness, there's nothing here!"}),(0,io.jsx)("br",{}),(0,io.jsxs)(er,{to:"/",children:[" ",(0,io.jsx)(hr,{})," Go home"]})]})}var Ga=St.div.withConfig({displayName:"accordion__AccordionTitle",componentId:"sc-8ip8u1-0"})(["font-size:1,5rem;width:100%;height:2.5rem;margin-bottom:1rem;background-color:",";color:",";border-radius:5px;padding:0% 5%;cursor:pointer;display:flex;justify-content:space-between;align-items:center;"],(function(e){return e.theme.colors.tfpDarkGrey40}),(function(e){return e.open?e.theme.colors.tfpRed:e.theme.colors.tfpWhite})),Ha=St.div.withConfig({displayName:"accordion__AccordionItemContainer",componentId:"sc-8ip8u1-1"})(["width:100%;height:",";margin-top:1rem;"],(function(e){return e.open?"80%":"5%"})),Wa=St.div.withConfig({displayName:"accordion__AccordionChildrenContainer",componentId:"sc-8ip8u1-2"})(["display:flex;flex-grow:1;flex-direction:column;margin-right:3rem;"]),Va=St.div.withConfig({displayName:"accordion__AccordionItemComponentContainer",componentId:"sc-8ip8u1-3"})(["width:100%;height:90%;"]);function ja(e){var t=e.items,n=o((0,i.useState)(),2),r=n[0],s=n[1],a=function(e){s(r!==e?e:null)};return(0,io.jsx)(Wa,{children:t.map((function(e){var t=e.title,n=e.component;return(0,io.jsx)(Ba,{title:t,component:n,toggle:a,open:r===t},t)}))})}function Ba(e){var t=e.component,n=e.title,o=e.open,r=e.toggle;return(0,io.jsxs)(Ha,{open:o,children:[(0,io.jsx)(Ga,{open:o,onClick:function(){return r(n)},children:(0,io.jsx)("h3",{children:n})}),o&&(0,io.jsx)(Va,{children:t})]})}function za(){var e=o((0,i.useState)([]),2),t=e[0],n=e[1];function r(){return s.apply(this,arguments)}function s(){return(s=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.getAdminList();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,i.useEffect)((function(){r()}),[]),(0,io.jsx)(io.Fragment,{children:(0,io.jsx)(po,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"ID",filter:"agTextColumnFilter"},{field:"name",filter:"agTextColumnFilter"}],deleteRowFn:function(e){oo.executeCommand("admin remove ".concat(e.ID))},reloadFn:r,rowData:t,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"name",sort:"asc"}]})}})})}function Ua(){var e=o((0,i.useState)([]),2),t=e[0],n=e[1];function r(){return s.apply(this,arguments)}function s(){return s=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.getCommandPermissions();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}return(0,i.useEffect)((function(){r()}),[]),(0,io.jsx)(io.Fragment,{children:(0,io.jsx)(po,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"command",filter:"agTextColumnFilter"}],deleteRowFn:function(e){oo.executeCommand("commandpermission remove ".concat(e.command))},reloadFn:r,rowData:t,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"command",sort:"asc"}]})}})})}function Ka(){var e=o((0,i.useState)([]),2),t=e[0],n=e[1];function r(){return s.apply(this,arguments)}function s(){return s=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.getWebPermissions();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}return(0,i.useEffect)((function(){r()}),[]),(0,io.jsx)(io.Fragment,{children:(0,io.jsx)(po,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"permission",filter:"agTextColumnFilter"}],deleteRowFn:function(e){oo.executeCommand("webpermission remove ".concat(e.permission))},reloadFn:r,rowData:t,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"permission",sort:"asc"}]})}})})}function qa(){var e=o((0,i.useState)([]),2),t=e[0],n=e[1];function r(){return s.apply(this,arguments)}function s(){return s=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.getWebTokens();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}return(0,i.useEffect)((function(){r()}),[]),(0,io.jsx)(po,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"name",filter:"agTextColumnFilter"},{field:"token",filter:"agTextColumnFilter"}],deleteRowFn:function(e){oo.executeCommand("webtokens remove ".concat(e.name))},reloadFn:r,rowData:t,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"level",sort:"desc"}]})}})}function Ya(){var e=o((0,i.useState)([]),2),t=e[0],n=e[1];function r(){return s.apply(this,arguments)}function s(){return s=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.getBans();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}return(0,i.useEffect)((function(){r()}),[]),(0,io.jsx)(io.Fragment,{children:(0,io.jsx)(po,{columnDef:[{field:"date",type:["date"],checkboxSelection:!0},{field:"ID",filter:"agTextColumnFilter"},{field:"name",filter:"agTextColumnFilter"},{field:"reason",filter:"agTextColumnFilter"}],deleteRowFn:function(e){oo.executeCommand("ban remove ".concat(e.ID))},reloadFn:r,rowData:t,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"date",sort:"asc"}]})}})})}var Za=St.div.withConfig({displayName:"Settings__SettingsContainer",componentId:"sc-mzo7ay-0"})(["height:100vh;width:100%;display:flex;flex-direction:column;text-align:left;overflow-y:scroll;"]);function $a(){var e=mo().webMods,t=Lo().checkPermission,n=[];e&&e.forEach((function(e){for(var o in e.external.settings)if(Object.hasOwnProperty.call(e.external.settings,o)){var r=e.external.settings[o];n.push({title:o,component:vo(r,{checkPermission:t})})}}));var o=[];return t({module:bo,method:"POST"})&&(o.push({title:"User permissions",component:(0,io.jsx)(za,{})}),o.push({title:"Command permissions",component:(0,io.jsx)(Ua,{})}),o.push({title:"Web permissions",component:(0,io.jsx)(Ka,{})}),o.push({title:"Web tokens",component:(0,io.jsx)(qa,{})}),o.push({title:"Bans",component:(0,io.jsx)(Ya,{})})),o.push.apply(o,n),(0,io.jsxs)(Za,{children:[(0,io.jsx)("h1",{children:"Settings "}),(0,io.jsx)(ja,{items:o})]})}var Xa=St.div.withConfig({displayName:"Error__CenterContainer",componentId:"sc-mbd7nn-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;"]);function Qa(){var e=function(){var e=(0,i.useContext)(v).matches,t=e[e.length-1];return t?t.params:{}}().code;return(0,io.jsxs)(Xa,{children:[(0,io.jsx)("h1",{children:"Error!"}),(0,io.jsxs)("p",{children:[e," happened \ud83d\ude22"]}),(0,io.jsx)("br",{}),(0,io.jsxs)(er,{to:"/",children:[" ",(0,io.jsx)(hr,{})," Go home"]})]})}function Ja(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];clearTimeout(t),t=setTimeout((function(){return e.apply(void 0,r)}),n)}}var el=St.div.withConfig({displayName:"Register__Container",componentId:"sc-1vk5lyq-0"})(["display:flex;justify-content:center;align-items:center;height:100%;width:100%;"]),tl=St.form.withConfig({displayName:"Register__Form",componentId:"sc-1vk5lyq-1"})(["display:flex;flex-direction:column;align-items:center;padding:20px;width:75%;"]),nl=St.h1.withConfig({displayName:"Register__Heading",componentId:"sc-1vk5lyq-2"})(["font-size:24px;margin-bottom:20px;"]),ol=St.label.withConfig({displayName:"Register__Label",componentId:"sc-1vk5lyq-3"})(["display:flex;flex-direction:column;margin-bottom:10px;text-align:center;width:100%;"]),rl=St.input.withConfig({displayName:"Register__Input",componentId:"sc-1vk5lyq-4"})(["border:1px solid #ccc;border-radius:5px;font-size:16px;padding:5px;width:100%;"]),il=St.p.withConfig({displayName:"Register__ExtraText",componentId:"sc-1vk5lyq-5"})(["font-size:14px;margin-top:20px;text-align:center;a{color:'#4CAF50';text-decoration:none;}a:hover{text-decoration:underline;}"]),sl=St.p.withConfig({displayName:"Register__ErrorMessage",componentId:"sc-1vk5lyq-6"})(["color:",";font-size:14px;margin-top:10px;min-height:20px;max-width:75%;"],(function(e){return e.theme.colors.tfpRed}));function al(){var e=o((0,i.useState)(""),2),t=e[0],n=e[1],r=o((0,i.useState)(""),2),s=r[0],a=r[1],l=o((0,i.useState)(null),2),u=l[0],c=l[1],p=M(),d=Lo().refreshStatus,h=function(e){return c(null),/^\w{4,16}$/.test(e.username)?!!/^\w{4,16}$/.test(e.password)||(c("Your password must be between 4 and 16 characters long and may only contain letters, numbers, and underscores."),!1):(c("Your username must be between 4 and 16 characters long and may only contain letters, numbers, and underscores."),!1)},f=Ja(h,500),g=function(e){if(e.preventDefault(),h({username:t,password:s})){var n=new URLSearchParams(window.location.search).get("token");oo.registerUser(t,s,n).then((function(){return d()})).then((function(e){p("/")})).catch((function(e){var t;console.error(e),c(null!==(t=e.message)&&void 0!==t?t:"Something went wrong")}))}};return(0,io.jsx)(el,{children:(0,io.jsxs)(tl,{onSubmit:g,children:[(0,io.jsx)(nl,{children:"Register"}),(0,io.jsxs)(ol,{children:["Username",(0,io.jsx)(rl,{type:"text",value:t,onChange:function(e){n(e.target.value),f({username:e.target.value,password:s})}})]}),(0,io.jsxs)(ol,{children:["Password",(0,io.jsx)(rl,{type:"password",value:s,onChange:function(e){a(e.target.value),f({username:t,password:e.target.value})}})]}),(0,io.jsx)(ko,{type:"submit",text:"Submit",onClick:g}),(0,io.jsx)("input",{type:"submit",hidden:!0}),(0,io.jsx)(sl,{children:null!==u&&void 0!==u?u:""}),(0,io.jsx)(il,{children:"Creating an account will inherit your 7 Days To Die game permissions. If you do not have any permissions, please contact an admin."})]})})}var ll=St.div.withConfig({displayName:"collapseIndicator__CollapseIconContainer",componentId:"sc-jxuh5c-0"})(["float:left;margin-left:auto;margin-right:1rem;line-height:",";"],(function(e){return e.collapsed?"1.1rem":"0.5rem"}));function ul(e){var t=e.collapsed,n=e.canCollapse,o=Et();return n?(0,io.jsx)(ll,{children:t?(0,io.jsx)(rr,{"data-tip":"React-tooltip","data-for":"tooltip-collapse"}):(0,io.jsx)(sr,{color:o.colors.tfpRed,"data-tip":"React-tooltip","data-for":"tooltip-collapse"})}):null}var cl=St.div.withConfig({displayName:"consoleLine__StyledConsoleLineContainer",componentId:"sc-5hqen8-0"})(["cursor:",";"],(function(e){return e.canCollapse?"pointer":"default"})),pl=St.div.withConfig({displayName:"consoleLine__StyledTimestamp",componentId:"sc-5hqen8-1"})(["margin-left:1rem;margin-right:1rem;white-space:pre;"]),dl=St.div.withConfig({displayName:"consoleLine__StyledConsoleLine",componentId:"sc-5hqen8-2"})(["max-width:100%;vertical-align:top;display:flex;white-space:",";text-align:left;margin:0;text-overflow:",";overflow:hidden;"],(function(e){return e.collapsed?"pre":"pre-wrap"}),(function(e){return e.collapsed?"ellipsis":""})),hl=St.div.withConfig({displayName:"consoleLine__StyledConsoleLineBody",componentId:"sc-5hqen8-3"})(["text-overflow:inherit;overflow:inherit;"]),fl=St.div.withConfig({displayName:"consoleLine__StyledConsoleLineHeader",componentId:"sc-5hqen8-4"})(["text-overflow:inherit;overflow:inherit;"]),gl=St.strong.withConfig({displayName:"consoleLine__StyledConsoleLineCommandInput",componentId:"sc-5hqen8-5"})(["text-overflow:inherit;overflow:inherit;color:",";"],(function(e){return e.theme.colors.tfpBlue}));function ml(e){var t=yl(e.message).header;return(0,io.jsx)(fl,{children:t})}function vl(e){var t=yl(e.message),n=t.header,o=t.body;return(0,io.jsxs)(hl,{children:[(0,io.jsx)(fl,{children:n}),(0,io.jsx)("p",{children:o})]})}function yl(e){return"executedCommand"===e.type?{header:(0,io.jsx)(gl,{children:e.input}),body:e.output}:e.trace?{header:e.msg,body:e.trace}:{header:e.msg.split("\n")[0],body:(e.msg+"\n"+e.trace).split("\n").slice(1).join("\n")}}function Cl(e,t,n){switch(e){case"Log":return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(ur,{style:{maxWidth:"14px",minWidth:"14px"},"data-tip":"React-tooltip","data-for":"tooltip-log"},"console-type-icon-".concat(t)),(0,io.jsx)(ba,{id:"tooltip-log",children:"Log"},"console-type-tooltip-".concat(t))]});case"Warning":return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(pr,{style:{maxWidth:"14px",minWidth:"14px"},color:"yellow","data-tip":"React-tooltip","data-for":"tooltip-warning"},"console-type-icon-".concat(t)),(0,io.jsx)(ba,{id:"tooltip-warning",children:"Warning"},"console-type-tooltip-".concat(t))]});case"Exception":return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(ar,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-exception"},"console-type-icon-".concat(t)),(0,io.jsx)(ba,{id:"tooltip-exception",children:"Exception"},"console-type-tooltip-".concat(t))]});case"Error":return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(cr,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-error"},"console-type-icon-".concat(t)),(0,io.jsx)(ba,{id:"tooltip-error",children:"Error"},"console-type-tooltip-".concat(t))]});case"Assert":return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(cr,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-assert"},"console-type-icon-".concat(t)),(0,io.jsx)(ba,{id:"tooltip-assert",children:"Assert"},"console-type-tooltip-".concat(t))]});case"executedCommand":return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Cr,{style:{maxWidth:"14px",minWidth:"14px"},color:n.colors.tfpBlue,"data-tip":"React-tooltip","data-for":"tooltip-input"},"console-type-icon-".concat(t)),(0,io.jsx)(ba,{id:"tooltip-input",children:"Executed command"},"console-type-tooltip-".concat(t))]});default:return(0,io.jsx)(ur,{})}}function wl(e){var t,n,r=e.message,s=(0,i.useRef)(null),a=!!(n=r)&&("executedCommand"===n.type||!!n.trace||n.msg.length>125),l=o((0,i.useState)(null===(t=r.startCollapsed)||void 0===t||t),2),u=l[0],c=l[1],p=Et();return(0,i.useEffect)((function(){var e;null===(e=s.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}),[u]),(0,io.jsx)(cl,{onClick:function(e){a&&"Range"!==window.getSelection().type&&c(!u)},canCollapse:a,children:(0,io.jsxs)(dl,{ref:s,collapsed:u,children:[Cl(r.type,"".concat(r.timestamp,"-").concat(r.msg),p),(0,io.jsx)(pl,{children:new Date(r.timestamp).toLocaleString()}),u?(0,io.jsx)(ml,{message:r}):(0,io.jsx)(vl,{message:r}),(0,io.jsx)(ul,{canCollapse:a,collapsed:u})]})})}var _l=St.div.withConfig({displayName:"consoleWindow__StyledConsoleWindow",componentId:"sc-3ztljt-0"})(["background-color:",";height:100%;min-width:100%;border-radius:5px;text-align:left;padding-left:1rem;overflow-y:scroll;flex-grow:1;font-family:monospace;"],(function(e){return e.theme.colors.tfpDarkGrey40}));function bl(e){var t=e.messages,n=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.scrollIntoView()}),[t]),(0,io.jsxs)(_l,{children:[t.map((function(e,t){return(0,io.jsx)(wl,{message:e},"console-line-".concat(t))})),(0,io.jsx)("div",{ref:n})]})}var El=new Map;var Sl=new Set;function Rl(e){for(var t=0,n=Ht(Sl);t<n.length;t++){(0,n[t])(e)}}function Ol(e){return"undefined"===e?void 0:JSON.parse(e)}function Pl(e){try{return e()}catch(t){return}}var Tl=function(e,t){if(void 0===i.useSyncExternalStore)throw new TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');var n=o((0,i.useState)(null===t||void 0===t?void 0:t.defaultValue),1)[0];if("undefined"===typeof window)return[n,function(){},{isPersistent:!0,removeItem:function(){}}];var r=null===t||void 0===t?void 0:t.serializer;return function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ol,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:JSON.stringify;El.has(e)||void 0===t||null!==Pl((function(){return localStorage.getItem(e)}))||Pl((function(){return localStorage.setItem(e,r(t))}));var s=(0,i.useRef)({item:null,parsed:t}),a=(0,i.useSyncExternalStore)((0,i.useCallback)((function(t){var n=function(n){e===n&&t()};return Sl.add(n),function(){Sl.delete(n)}}),[e]),(function(){var n,r=null!==(n=Pl((function(){return localStorage.getItem(e)})))&&void 0!==n?n:null;if(El.has(e))s.current={item:r,parsed:El.get(e)};else if(r!==s.current.item){var i;try{i=null===r?t:o(r)}catch(a){i=t}s.current={item:r,parsed:i}}return s.current.parsed}),(function(){return t})),l=(0,i.useCallback)((function(t){var n=t instanceof Function?t(s.current.parsed):t;try{localStorage.setItem(e,r(n)),El.delete(e)}catch(o){El.set(e,n)}Rl(e)}),[e,r]);return(0,i.useEffect)((function(){if(n){var t=function(t){t.storageArea===Pl((function(){return localStorage}))&&t.key===e&&Rl(e)};return window.addEventListener("storage",t),function(){return window.removeEventListener("storage",t)}}}),[e,n]),(0,i.useMemo)((function(){return[a,l,{isPersistent:a===t||!El.has(e),removeItem:function(){Pl((function(){return localStorage.removeItem(e)})),El.delete(e),Rl(e)}}]}),[e,l,a,t])}(e,n,null===t||void 0===t?void 0:t.storageSync,null===r||void 0===r?void 0:r.parse,null===r||void 0===r?void 0:r.stringify)},Al=St.div.withConfig({displayName:"ConsoleHelpTableCell__StyledTableCellContainer",componentId:"sc-1jajcna-0"})(["cursor:",";"],(function(e){return e.canCollapse?"pointer":"default"})),Dl=St.div.withConfig({displayName:"ConsoleHelpTableCell__StyledTableCellLine",componentId:"sc-1jajcna-1"})(["line-height:1.1rem;white-space:pre;"]);function xl(e){var t=e.text,n=function(e){return!!e&&e.length>150}(t),r=o((0,i.useState)(n),2),s=r[0],a=r[1],l=o(Tl("command",{defaultValue:""}),2),u=l[0],c=l[1];if(!t)return"";var p=t.toString().split("\n");function d(e){switch(e.detail){case 1:"Range"!==window.getSelection().type&&a(!s);break;case 2:n||(" "===u[u.length-1]?c("".concat(u).concat(e.target.textContent)):u.length?c("".concat(u," ").concat(e.target.textContent)):c(e.target.textContent))}}return s?(0,io.jsxs)(Al,{onClick:d,canCollapse:n,children:[(0,io.jsx)(ul,{canCollapse:n,collapsed:s}),(0,io.jsx)(Dl,{children:p.join(" ").slice(0,150)})]}):(0,io.jsxs)(Al,{onClick:d,canCollapse:n,children:[(0,io.jsx)(ul,{canCollapse:n,collapsed:s}),p.map((function(e,t){return(0,io.jsx)(Dl,{children:e},t)}))]})}var Nl=St.div.withConfig({displayName:"helpWindow__HelpWindow",componentId:"sc-19frvue-0"})(["color:",";border-radius:5px;flex-grow:1;margin-bottom:3%;"],(function(e){return e.theme.colors.tfpBlack})),Ll=St.div.withConfig({displayName:"helpWindow__FlexRow",componentId:"sc-19frvue-1"})(["background-color:",";height:3rem;border-radius:5px 5px 0 0;display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;margin-right:5%;> *{margin-left:2rem;margin-right:2rem;}"],(function(e){return e.theme.colors.tfpDarkGrey})),Il=St.div.withConfig({displayName:"helpWindow__HelpHeader",componentId:"sc-19frvue-2"})(["color:",";font-size:150%;font-weight:bold;cursor:pointer;"],(function(e){return e.highlighted?e.theme.colors.tfpRed:e.theme.colors.tfpWhite}));function Ml(e){return e.map((function(e){return e.cellRenderer||(e.cellRenderer=function(e){return(0,io.jsx)(xl,{text:e.value})}),e}))}var Fl=Ml([{field:"allowed",flex:.2,sort:"desc",cellRenderer:function(e){return e.value?"\ud83d\udfe2":"\ud83d\udd34"},comparator:function(e,t){return e-t},cellStyle:{textAlign:"center"}},{field:"command",filter:"agTextColumnFilter"},{field:"description",filter:"agTextColumnFilter"},{field:"help",filter:"agTextColumnFilter",flex:2}]),kl=Ml([{field:"name",filter:"agTextColumnFilter"},{field:"platformId.combinedString",filter:"agTextColumnFilter",headerName:"Platform ID"},{field:"crossplatformId.combinedString",filter:"agTextColumnFilter",headerName:"Crossplatform ID"},{field:"ip",filter:"agTextColumnFilter"},{field:"entityId",filter:"agTextColumnFilter"},{field:"ping"},{field:"lastOnline",type:["date"]},{field:"totalPlayTimeSeconds",filter:"agNumberColumnFilter",headerName:"Total play time"},{field:"position.x",filter:"agNumberColumnFilter",headerName:"X"},{field:"position.y",filter:"agNumberColumnFilter",headerName:"Y"},{field:"position.z",filter:"agNumberColumnFilter",headerName:"Z"}]),Gl=Ml([{field:"id",filter:"agNumberColumnFilter"},{field:"name",filter:"agTextColumnFilter",flex:4}]),Hl=Ml([{field:"name",filter:"agTextColumnFilter",headerName:"ID"},{field:"isBlock",filter:"agTextColumnFilter",headerName:"Block",flex:.2,cellRenderer:function(e){return e.value?"\u2705":"\u274e"},comparator:function(e,t){return e-t}},{field:"localizedName",filter:"agTextColumnFilter",headerName:"Name"}]),Wl=Ml([{field:"timestamp",type:["date"]},{field:"input",filter:"agTextColumnFilter"},{field:"output",filter:"agTextColumnFilter"}]);function Vl(e){var t=e.executedCommands,n=o((0,i.useState)([]),2),r=n[0],s=n[1],a=o((0,i.useState)(Fl),2),l=a[0],u=a[1],c=o(Tl("consoleHelpActiveField",{defaultValue:"Commands"}),2),p=c[0],d=c[1];function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc";e.applyColumnState({state:[{colId:t,sort:n}]})}(0,i.useEffect)((function(){function e(){return(e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oo.get("/api/command");case 3:t=e.sent,u(Fl),s(t.commands),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),u(Fl),s([]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function n(){return n=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oo.getPlayers();case 3:t=e.sent,u(kl),s(t.map((function(e){return Pt(Pt({},e),{},{lastonline:new Date(e.lastonline)})}))),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),u(kl),s([]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),n.apply(this,arguments)}function o(){return o=xt(At().mark((function e(){var t,n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oo.executeCommand("spawnentity");case 3:t=e.sent,n=t.result.split("\n").slice(3,-1).map((function(e){var t=e.split("-").map((function(e){return e.trim()}));return{id:t[0],name:t[1]}})),u(Gl),s(n),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),u(Gl),s([]);case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),o.apply(this,arguments)}function r(){return(r=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oo.getItems();case 3:t=e.sent,u(Hl),s(t),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),u(Hl),s([]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}switch(p){case"Commands":!function(){e.apply(this,arguments)}();break;case"Command history":s(t),u(Wl);break;case"Players":!function(){n.apply(this,arguments)}();break;case"Entities":!function(){o.apply(this,arguments)}();break;case"Items":!function(){r.apply(this,arguments)}()}}),[p,t]);var f=function(e){d(e.target.innerText)};return(0,io.jsxs)(Nl,{children:[(0,io.jsxs)(Ll,{children:[(0,io.jsx)(Il,{onClick:f,highlighted:"Commands"===p,children:"Commands"}),(0,io.jsx)(Il,{onClick:f,highlighted:"Command history"===p,children:"Command history"}),(0,io.jsx)(Il,{onClick:f,highlighted:"Players"===p,children:"Players"}),(0,io.jsx)(Il,{onClick:f,highlighted:"Items"===p,children:"Items"}),(0,io.jsx)(Il,{onClick:f,highlighted:"Entities"===p,children:"Entities"})]}),(0,io.jsx)(co,{rowData:r,columnDef:l,alwaysShowHorizontalScroll:!0,onComponentStateChanged:Ja((function(e){var t=e.columnApi;switch(p){case"Commands":h(t,"command","asc");break;case"Command history":h(t,"timestamp","desc");break;case"Players":case"Entities":case"Items":h(t,"name")}}),100)})]})}var jl=n(9986),Bl=n.n(jl),zl=St.div.withConfig({displayName:"autosuggest__SuggestionTitle",componentId:"sc-1bxvksr-0"})(["color:",";border-radius:5px;min-width:40%;cursor:pointer;"],(function(e){return e.selected?e.theme.colors.tfpRed:e.theme.colors.tfpBlack})),Ul=St.div.withConfig({displayName:"autosuggest__SuggestionContainer",componentId:"sc-1bxvksr-1"})(["display:flex;max-height:60%;"]),Kl=St.div.withConfig({displayName:"autosuggest__SuggestionHelp",componentId:"sc-1bxvksr-2"})(["color:",";white-space:pre-wrap;padding-top:1rem;padding-bottom:1rem;text-align:left;"],(function(e){return e.theme.colors.tfpBlack}));function ql(e){var t=e.command,n=e.setCommand,r=e.sendCommand,s=e.shouldRenderSuggestions,a=o((0,i.useState)([]),2),l=a[0],u=a[1],c=o((0,i.useState)([]),2),p=c[0],d=c[1],h=o((0,i.useState)(0),2),f=h[0],g=h[1],m=Et();(0,i.useEffect)((function(){g(0)}),[t]);var v={suggestionsContainerOpen:{backgroundColor:m.colors.tfpLightGrey,position:"absolute",bottom:"10%",width:"80%",height:"auto",borderRadius:"5px",overflowY:"scroll",overflowX:"wrap"},input:{width:"100%",padding:"1rem",borderRadius:"5px",backgroundColor:m.colors.tfpLightGrey,color:m.colors.tfpBlack,border:"none",lineHeight:"1rem",outline:"none"},suggestionsList:{listStyle:"none",textAlign:"left"}};function y(e){n(e.command),g(0),C({value:e.command})}function C(e){var t=e.value;d(function(e){if(!l)return[];if(!e)return[];e.includes(" ")&&(e=e.split(" ")[0]);var t=l.filter((function(t){return t.command.includes(e)||t.overloads.join(" ").includes(e)})),n=t.slice(0,20);return t.length>20?(n.push({command:"...",help:"More suggestions are available, narrow your search to see them",overloads:[]}),n):n}(t))}return(0,i.useEffect)((function(){function e(){return(e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oo.get("/api/command");case 3:t=e.sent,u(t.commands),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),to("Error loading command suggestions");case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),(0,io.jsx)(Bl(),{suggestions:p,onSuggestionsFetchRequested:function(e){return C(e)},onSuggestionsClearRequested:function(){d([])},getSuggestionValue:function(e){return e.command},renderSuggestion:function(e){if(!e)return null;var t=p.indexOf(e),n=e.overloads.filter((function(t){return t!==e.command})).join(" ");return t===f?(0,io.jsx)(io.Fragment,{children:(0,io.jsxs)(zl,{selected:!0,onClick:function(){y(e)},onMouseEnter:function(){g(t)},children:[e.command," ",n.length?n:""]})}):(0,io.jsxs)(zl,{onClick:function(){y(e)},onMouseEnter:function(){g(t)},children:[e.command," ",n.length?n:""]})},theme:v,shouldRenderSuggestions:s,inputProps:{onChange:function(e){(e.target.value||""===e.target.value)&&n(e.target.value)},onKeyDown:function(e){if("Enter"===e.key&&(r(),e.preventDefault()),"ArrowDown"===e.key){var t=f+1;t<p.length?g(t):g(0),e.preventDefault()}if("ArrowUp"===e.key){var n=f-1;g(n>=0?n:p.length-1),e.preventDefault()}if("Tab"===e.key){if(e.preventDefault(),"..."===p[f].command)return;y(p[f])}},value:t},containerProps:{style:{width:"80%",flexGrow:1}},renderSuggestionsContainer:function(e){var t,n=e.containerProps,o=e.children;return e.query,o?(0,io.jsxs)(Ul,Pt(Pt({},n),{},{children:[(0,io.jsx)(zl,{children:o}),(0,io.jsx)(Kl,{children:null===(t=p[f])||void 0===t?void 0:t.help})]})):null}})}St.div.withConfig({displayName:"input__ConsoleInputField",componentId:"sc-sci9ws-0"})(["flex-grow:1;padding:1rem;border-radius:5px;background-color:",";color:",";border:none;line-height:1rem;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpBlack}));var Yl=St.div.withConfig({displayName:"input__SendButton",componentId:"sc-sci9ws-1"})(["background-color:",";color:",";width:10%;height:3rem;display:flex;justify-content:center;align-items:center;border-radius:5px;font-size:150%;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpBlack})),Zl=St.div.withConfig({displayName:"input__RoundButtonContainer",componentId:"sc-sci9ws-2"})(["border-radius:100%;background-color:",";color:",";min-width:4rem;min-height:4rem;font-size:1.75rem;display:flex;justify-content:center;align-items:center;cursor:pointer;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpRed})),$l=St.div.withConfig({displayName:"input__FlexRow",componentId:"sc-sci9ws-3"})(["display:flex;min-width:100%;flex-direction:row;justify-content:flex-end;align-items:center;margin-top:2%;margin-right:5%;> *{margin-left:1rem;margin-right:1rem;}"]);function Xl(e){var t=e.addMessage,n=e.sseActive,r=e.setSseActive,i=o(Tl("command",{defaultValue:""}),2),s=i[0],a=i[1],l=o(Tl("helpActiveState",{defaultValue:!1}),2),u=l[0],c=l[1];function p(){return d.apply(this,arguments)}function d(){return(d=xt(At().mark((function e(){var n,o,r;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={type:"executedCommand",timestamp:new Date,input:s,output:""},e.prev=1,e.next=4,oo.executeCommand(s);case 4:o=e.sent,n.output=o.result,eo("Command executed"),e.next=15;break;case 9:e.prev=9,e.t0=e.catch(1),console.error(e.t0),r="Unknown error",e.t0&&e.t0.response&&e.t0.response.data&&(r=e.t0.response.data.meta&&"NO_PERMISSION"===e.t0.response.data.meta.errorCode?"You do not have permission to execute this command":e.t0.response.data.meta&&"UNKNOWN_COMMAND"===e.t0.response.data.meta.errorCode?'Unknown command, use "help" to see available commands':JSON.stringify(e.t0.response.data,null,2)),n.output=r;case 15:return e.prev=15,t(n,!1),a(""),c(!1),e.finish(15);case 20:case"end":return e.stop()}}),e,null,[[1,9,15,20]])})))).apply(this,arguments)}function h(){return h=xt(At().mark((function e(t){return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),p();case 2:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}return(0,io.jsxs)($l,{children:[(0,io.jsxs)(or,{requiredPermission:{module:bo,method:"POST"},children:[(0,io.jsx)(ql,{command:s,setCommand:a,sendCommand:p,shouldRenderSuggestions:function(){return!u}}),(0,io.jsx)(Yl,{onClick:function(e){return h.apply(this,arguments)},children:"Send"})]}),(0,io.jsx)(Zl,{"data-tip":"React-tooltip","data-for":n?"tooltip-pause":"tooltip-start",onClick:function(e){e.preventDefault(),r(!n)},children:n?(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(mr,{}),(0,io.jsx)(ba,{id:"tooltip-pause",children:"Pause log stream"})]}):(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(vr,{}),(0,io.jsx)(ba,{id:"tooltip-start",children:"Start log stream"})]})}),(0,io.jsxs)(Zl,{"data-for":"tooltip-help","data-tip":"React-tooltip",onClick:function(e){e.preventDefault(),c(!u)},children:[(0,io.jsx)(yr,{}),(0,io.jsx)(ba,{id:"tooltip-help",children:"Help"})]})]})}function Ql(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e.length>t?e.slice(e.length-t):e}var Jl=St.div.withConfig({displayName:"Console__ConsoleContainer",componentId:"sc-1w2ewjb-0"})(["width:100%;height:100%;display:flex;flex-direction:column;"]);function eu(){var e=o(Tl("consoleExecutedCommands",{defaultValue:[]}),2),t=e[0],n=e[1],r=o(Tl("consoleMessages",{defaultValue:[]}),2),s=r[0],a=r[1],l=o(Tl("sseActive",{defaultValue:!0}),2),u=l[0],c=l[1],p=o(Tl("helpActiveState",{defaultValue:!1}),2),d=p[0],h=p[1],f=Lo().checkPermission;function g(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=e.type,r=e.msg;e.timestamp=e.isotime?new Date(e.isotime):new Date,(""!==r||r.input)&&("executedCommand"===o&&n((function(t){return Ql([].concat(Ht(t),[e]),100)})),a((function(n){return Ql([].concat(Ht(n),[Pt(Pt({},e),{},{startCollapsed:t})]),500)})))}return(0,i.useEffect)((function(){f({module:So,method:"GET"})||(a([]),h(!0))}),[]),(0,i.useEffect)((function(){function e(){return e=xt(At().mark((function e(){var n,o;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f({module:So,method:"GET"})){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,oo.getLatestLogLines(-100);case 4:n=e.sent,o=n.entries.map((function(e){return Pt({timestamp:new Date(e.isotime)},e)})),a((function(e){return[].concat(Ht(t.map((function(e){return Pt(Pt({},e),{},{timestamp:new Date(e.timestamp)})}))),Ht(o)).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)}))}));case 7:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}u&&function(){e.apply(this,arguments)}()}),[u]),(0,i.useEffect)((function(){if(u&&f({module:wo,method:"GET"})){var e=new EventSource("/sse/log",{withCredentials:!0});return e.addEventListener("logLine",(function(e){g(JSON.parse(e.data))})),e.addEventListener("error",(function(e){e.readyState===EventSource.CLOSED&&console.log("Connection was closed")})),e.addEventListener("open",(function(e){console.log("Console: SSE opened")})),function(){e.close()}}}),[u]),(0,io.jsxs)(Jl,{children:[d?(0,io.jsx)(Vl,{executedCommands:t}):(0,io.jsx)(bl,{messages:s}),(0,io.jsx)(Xl,{linkToHelp:!0,addMessage:g,sseActive:u,setSseActive:c})]})}var tu=JSON.parse('{"i8":"v0.8.4","i2":"2023-08-21T17:11:22Z","th":"7b1f20f05f9380387cba15029c2b47167c4a981b"}'),nu=St.span.withConfig({displayName:"versionIndicator__StyledVersionBanner",componentId:"sc-14vm1z5-0"})(["color:",";font-size:0.8rem;"],(function(e){return e.theme.colors.tfpLightGrey}));function ou(){return(0,io.jsx)(nu,{children:(0,io.jsxs)("ul",{children:[(0,io.jsxs)("li",{children:["version: ",tu.i8]}),(0,io.jsxs)("li",{children:["commit: ",tu.th]}),(0,io.jsxs)("li",{children:["created: ",tu.i2]})]})})}var ru=St.div.withConfig({displayName:"Mods__ModsContainer",componentId:"sc-x6jqah-0"})(["flex:1;flex-direction:column;text-align:left;overflow-y:scroll;height:100%;"]),iu=St.a.withConfig({displayName:"Mods__StyledLinkIcon",componentId:"sc-x6jqah-1"})(["cursor:pointer;margin:0 1rem;color:",";&:hover{color:",";}"],(function(e){return e.theme.colors.tfpWhite}),(function(e){return e.theme.colors.tfpRed}));function su(e){var t=e.url;return t?(0,io.jsx)(iu,{href:t,target:"_blank",rel:"noopener noreferrer",children:(0,io.jsx)(fr,{})}):null}function au(){var e=mo().mods;if(!e)return(0,io.jsx)("p",{children:"Mods still loading..."});var t=e.filter((function(e){return e.displayName})).map((function(e){return(0,io.jsxs)("div",{children:[(0,io.jsxs)("h2",{children:[e.displayName,(0,io.jsx)(su,{url:e.website})]}),(0,io.jsxs)("small",{children:["Author: ",e.author,", version: ",e.version]}),(0,io.jsx)("p",{children:e.description})]},e.name)}));return(0,io.jsxs)(ru,{children:[(0,io.jsx)("h1",{children:"Mods"}),(0,io.jsx)("h2",{children:"Dashboard version"}),(0,io.jsx)(ou,{}),t]})}function lu(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uu(e,t){return Object.freeze(Pt(Pt({},e),t))}var cu=(0,i.createContext)(null),pu=cu.Provider;function du(){var e=(0,i.useContext)(cu);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var hu=n(8559),fu=n.n(hu),gu=["bounds","boundsOptions","center","children","className","id","placeholder","style","whenReady","zoom"];function mu(){return mu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mu.apply(this,arguments)}function vu(e,t){var n=e.bounds,r=e.boundsOptions,s=e.center,a=e.children,l=e.className,u=e.id,c=e.placeholder,p=e.style,d=e.whenReady,h=e.zoom,f=lu(e,gu),g=o((0,i.useState)({className:l,id:u,style:p}),1)[0],m=o((0,i.useState)(null),2),v=m[0],y=m[1];(0,i.useImperativeHandle)(t,(function(){var e;return null!==(e=null===v||void 0===v?void 0:v.map)&&void 0!==e?e:null}),[v]);var C=(0,i.useCallback)((function(e){if(null!==e&&null===v){var t=new hu.Map(e,f);null!=s&&null!=h?t.setView(s,h):null!=n&&t.fitBounds(n,r),null!=d&&t.whenReady(d),y(function(e){return Object.freeze({__version:1,map:e})}(t))}}),[]);(0,i.useEffect)((function(){return function(){null===v||void 0===v||v.map.remove()}}),[v]);var w=v?i.createElement(pu,{value:v},a):null!==c&&void 0!==c?c:null;return i.createElement("div",mu({},g,{ref:C}),w)}var yu=(0,i.forwardRef)(vu);function Cu(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function wu(e,t){return null==t?function(t,n){return(0,i.useRef)(e(t,n))}:function(n,o){var r=(0,i.useRef)(e(n,o)),s=(0,i.useRef)(n),a=r.current.instance;return(0,i.useEffect)((function(){s.current!==n&&(t(a,n,s.current),s.current=n)}),[a,n,o]),r}}var _u=n(4164);function bu(e){function t(t,n){var o=e(t).current,r=o.instance,s=o.context;return(0,i.useImperativeHandle)(n,(function(){return r})),null==t.children?null:i.createElement(pu,{value:s},t.children)}return(0,i.forwardRef)(t)}var Eu,Su=["children"],Ru=wu((function(e,t){e.children;var n=lu(e,Su),o=new hu.Control.Layers(void 0,void 0,n);return Cu(o,uu(t,{layersControl:o}))}),(function(e,t,n){t.collapsed!==n.collapsed&&(!0===t.collapsed?e.collapse():e.expand())})),Ou=bu((Eu=Ru,function(e){var t=du(),n=Eu(e,t),o=n.current.instance,r=(0,i.useRef)(e.position),s=e.position;return(0,i.useEffect)((function(){return o.addTo(t.map),function(){o.remove()}}),[t.map,o]),(0,i.useEffect)((function(){null!=s&&s!==r.current&&(o.setPosition(s),r.current=s)}),[o,s]),n}));function Pu(e){return function(t){var n=du(),r=(0,i.useRef)(t),s=o((0,i.useState)(null),2),a=s[0],l=s[1],u=n.layersControl,c=n.map,p=(0,i.useCallback)((function(t){null!=u&&(r.current.checked&&c.addLayer(t),e(u,t,r.current.name),l(t))}),[u,c]),d=(0,i.useCallback)((function(e){null===u||void 0===u||u.removeLayer(e),l(null)}),[u]),h=(0,i.useMemo)((function(){return uu(n,{layerContainer:{addLayer:p,removeLayer:d}})}),[n,p,d]);return(0,i.useEffect)((function(){null!==a&&r.current!==t&&(!0!==t.checked||null!=r.current.checked&&!1!==r.current.checked?!0!==r.current.checked||null!=t.checked&&!1!==t.checked||c.removeLayer(a):c.addLayer(a),r.current=t)})),t.children?i.createElement(pu,{value:h},t.children):null}}function Tu(){return du().map}function Au(e,t){var n=(0,i.useRef)(t);(0,i.useEffect)((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}function Du(e,t){var n=(0,i.useRef)();(0,i.useEffect)((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}function xu(e,t){var n,o=null!==(n=e.pane)&&void 0!==n?n:t.pane;return o?Pt(Pt({},e),{},{pane:o}):e}function Nu(e,t){(0,i.useEffect)((function(){var n;return(null!==(n=t.layerContainer)&&void 0!==n?n:t.map).addLayer(e.instance),function(){var n;null===(n=t.layerContainer)||void 0===n||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}function Lu(e){return function(t){var n=du(),o=e(xu(t,n),n);return Du(o.current,t.eventHandlers),Nu(o.current,n),function(e,t){var n=(0,i.useRef)();(0,i.useEffect)((function(){if(t.pathOptions!==n.current){var o,r=null!==(o=t.pathOptions)&&void 0!==o?o:{};e.instance.setStyle(r),n.current=r}}),[e,t])}(o.current,t),o}}function Iu(e,t){var n=function(e){return function(t){var n=du(),o=e(xu(t,n),n);return Au(n.map,t.attribution),Du(o.current,t.eventHandlers),Nu(o.current,n),o}}(wu(e,t));return bu(n)}function Mu(e,t){var n=function(e,t){return function(n,o){var r=du(),i=e(xu(n,r),r);return Au(r.map,n.attribution),Du(i.current,n.eventHandlers),t(i.current,r,n,o),i}}(wu(e),t);return function(e){function t(t,n){var r=o((0,i.useState)(!1),2),s=r[0],a=r[1],l=e(t,a).current.instance;(0,i.useImperativeHandle)(n,(function(){return l})),(0,i.useEffect)((function(){s&&l.update()}),[l,s,t.children]);var u=l._contentNode;return u?(0,_u.createPortal)(t.children,u):null}return(0,i.forwardRef)(t)}(n)}Ou.BaseLayer=Pu((function(e,t,n){e.addBaseLayer(t,n)})),Ou.Overlay=Pu((function(e,t,n){e.addOverlay(t,n)}));var Fu=["children"],ku=Iu((function(e,t){e.children;var n=lu(e,Fu),o=new hu.LayerGroup([],n);return Cu(o,uu(t,{layerContainer:o}))})),Gu=["position"],Hu=Iu((function(e,t){var n=e.position,o=lu(e,Gu),r=new hu.Marker(n,o);return Cu(r,uu(t,{overlayContainer:r}))}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())}));function Wu(){var e=mo().webMods,t=o((0,i.useState)([]),2),n=t[0],r=t[1],s=Lo().checkPermission;return(0,i.useEffect)((function(){if(e){var t=e.filter((function(e){return e.external.mapComponents&&e.external.mapComponents.length})).map((function(e){return(0,io.jsx)(Vu,{modComponent:e.external.mapComponents[0],checkPermission:s},e.name)}));r(t)}}),[JSON.stringify(e)]),n}function Vu(e){var t=e.modComponent,n=e.checkPermission;return vo(t,{map:Tu(),checkPermission:n,LayerGroup:ku,LayersControl:Ou,Marker:Hu,HideBasedOnAuth:or,L:fu()})}function ju(e){var t=e.mapInfo,n=Tu(),o=fu().tileLayer("../../map/{z}/{x}/{y}.png?t={time}",{maxZoom:t.maxZoom+1,minZoom:Math.max(0,t.maxZoom-5),maxNativeZoom:t.maxZoom,minNativeZoom:0,tileSize:t.tileSize,time:(new Date).getTime()});return o.getTileUrl=function(e){return e.y=-e.y-1,fu().TileLayer.prototype.getTileUrl.bind(o)(e)},o.addTo(n),null}function Bu(){var e=Tu(),t=fu().Control.extend({options:{position:"bottomleft"},onAdd:function(e){var t=fu().DomUtil.create("div","control-coordinates webmap-control");return t.innerHTML="Mouse pos: - E / - N<br/>Last click: - E / - N",fu().DomEvent.on(t,"mousemove",fu().DomEvent.stopPropagation),this._map=e,this._div=t,e.on("mousemove",this._onMouseMove,this),e.on("mouseout",this._onMouseOut,this),e.on("click",this._onClick,this),t},onRemove:function(e){},_onMouseMove:function(e){this.lastPos=e.latlng,this._updateText()},_onMouseOut:function(e){this.lastPos=!1,this._updateText()},_onClick:function(e){this.lastClick=e.latlng,this._updateText()},_updateText:function(e){this._div.innerHTML="Mouse pos: ".concat(this._formatCoord(this.lastPos),"<br/>Last click: ").concat(this._formatCoord(this.lastClick))},_formatCoord:function(e){return e?Math.abs(e.lat).toFixed(0)+(e.lat>=0?" E":" W")+" / "+Math.abs(e.lng).toFixed(0)+(e.lng>=0?" N":" S"):"- E / - N"},lastPos:!1,lastClick:!1}),n=new t({});return(0,i.useEffect)((function(){return n.addTo(e),function(){e.removeLayer(n)}}),[]),null}function zu(){var e=Tu();function t(e){return n.apply(this,arguments)}function n(){return n=xt(At().mark((function e(t){var n,o;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.get("/api/serverstats");case 2:n=e.sent,o="Day "+n.gameTime.days+", ",n.gameTime.hours<10&&(o+="0"),o+=n.gameTime.hours,o+=":",n.gameTime.minutes<10&&(o+="0"),o+=n.gameTime.minutes,t.innerHTML=o;case 10:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}var o=fu().Control.extend({options:{position:"bottomright"},onAdd:function(e){var n=this,o=fu().DomUtil.create("div","control-gametime webmap-control");return o.innerHTML="",fu().DomEvent.on(o,"mousemove",fu().DomEvent.stopPropagation),this._map=e,this._div=o,this.interval=setInterval((function(){return t(n._div)}),1e4),t(this._div),o},onRemove:function(e){clearInterval(this.interval)}}),r=new o({});return(0,i.useEffect)((function(){return r.addTo(e),function(){e.removeLayer(r)}}),[]),null}Vu.propTypes={modComponent:nr().func.isRequired},ju.propTypes={mapInfo:nr().object.isRequired};var Uu=Mu((function(e,t){return Cu(new hu.Popup(e,t.overlayContainer),t)}),(function(e,t,n,o){var r=n.position;(0,i.useEffect)((function(){var n=e.instance;function i(e){e.popup===n&&(n.update(),o(!0))}function s(e){e.popup===n&&o(!1)}return t.map.on({popupopen:i,popupclose:s}),null==t.overlayContainer?(null!=r&&n.setLatLng(r),n.openOn(t.map)):t.overlayContainer.bindPopup(n),function(){var e;t.map.off({popupopen:i,popupclose:s}),null===(e=t.overlayContainer)||void 0===e||e.unbindPopup(),t.map.removeLayer(n)}}),[e,t,o,r])})),Ku=n.p+"files/static/media/ui_game_symbol_animal_tracker.210ce6882c9a8cca199c.png",qu=Pt({},{animalRabbit:n.p+"files/static/media/ui_game_symbol_tracking_rabbit.a0d8304b6832aa8747ce.png",animalBear:n.p+"files/static/media/ui_game_symbol_tracking_bear.f093e312239e9b55cf62.png",animalChicken:n.p+"files/static/media/ui_game_symbol_tracking_chicken.f8502366d557395fcf52.png",animalDeer:n.p+"files/static/media/ui_game_symbol_tracking_deer.b0383a07e77bfb5b21dd.png",animalMountainLion:n.p+"files/static/media/ui_game_symbol_tracking_mountain_lion.2175438fc5295629a9e4.png",animalPig:n.p+"files/static/media/ui_game_symbol_tracking_pig.b7563c410d208abd634c.png",animalSnake:n.p+"files/static/media/ui_game_symbol_tracking_snake.5d39ffcdaa456ce6ce0f.png",animalWolf:n.p+"files/static/media/ui_game_symbol_tracking_wolf.d1dddf4ab14bc8848bee.png",animal:Ku});function Yu(e){var t=e.lat,n=e.lng,o=e.name,r=function(e){var t=qu[e]||qu.animal;return fu().icon({iconUrl:t,iconSize:[32,32]})}(o);return(0,io.jsx)(Hu,{position:[t,n],icon:r,children:(0,io.jsx)(Uu,{children:o})})}function Zu(){var e=o((0,i.useState)([]),2),t=e[0],n=e[1],r=mo().webMods;function s(){return a.apply(this,arguments)}function a(){return a=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.getAnimals();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}(0,i.useEffect)((function(){r.forEach((function(e){if(console.log("checking mod",e),e.external.iconOverrides){console.log("found icon overrides",e.external.iconOverrides);for(var t=0,n=Object.entries(e.external.iconOverrides);t<n.length;t++){var r=o(n[t],2),i=r[0],s=r[1];console.log("setting icon override",i,s),qu[i]=s}}})),s()}),[r]),(0,i.useEffect)((function(){var e=setInterval(xt(At().mark((function e(){return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s();case 1:case"end":return e.stop()}}),e)}))),1e4);return s(),function(){return clearInterval(e)}}),[]);var l=t.map((function(e){return(0,io.jsx)(Yu,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,io.jsx)(ku,{name:"animals",children:l})}var $u=n.p+"files/static/media/ui_game_symbol_zombie.a0270fc24da3324c8de7.png";function Xu(e){var t=e.lat,n=e.lng,o=e.name,r=mo().webMods.find((function(e){return e.external.iconOverrides&&e.external.iconOverrides.hostile})),i=fu().icon({iconUrl:r?r.external.iconOverrides.hostile:$u,iconSize:[32,32]});return(0,io.jsx)(Hu,{position:[t,n],icon:i,children:(0,io.jsx)(Uu,{children:o})})}function Qu(){var e=o((0,i.useState)([]),2),t=e[0],n=e[1];function r(){return s.apply(this,arguments)}function s(){return s=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.getHostiles();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}(0,i.useEffect)((function(){var e=setInterval(xt(At().mark((function e(){return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r();case 1:case"end":return e.stop()}}),e)}))),1e4);return r(),function(){return clearInterval(e)}}),[]);var a=t.map((function(e){return(0,io.jsx)(Xu,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,io.jsx)(ku,{name:"hostiles",children:a})}var Ju=n.p+"files/static/media/ui_game_symbol_player.94e20a11a9cd11f88a5f.png";function ec(e){var t=e.lat,n=e.lng,o=e.name,r=mo().webMods.find((function(e){return e.external.iconOverrides&&e.external.iconOverrides.player})),i=fu().icon({iconUrl:r?r.external.iconOverrides.player:Ju,iconSize:[32,32]});return(0,io.jsx)(Hu,{position:[t,n],icon:i,children:(0,io.jsx)(Uu,{children:o})})}function tc(){var e=o((0,i.useState)([]),2),t=e[0],n=e[1];function r(){return s.apply(this,arguments)}function s(){return s=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.getPlayers();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}(0,i.useEffect)((function(){var e=setInterval(xt(At().mark((function e(){return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r();case 1:case"end":return e.stop()}}),e)}))),1e4);return r(),function(){return clearInterval(e)}}),[]);var a=t.map((function(e){return(0,io.jsx)(ec,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,io.jsx)(ku,{name:"players",children:a})}var nc=["bounds"],oc=function(e,t){return bu(Lu(wu(e,t)))}((function(e,t){var n=e.bounds,o=lu(e,nc),r=new hu.Rectangle(n,o);return Cu(r,uu(t,{overlayContainer:r}))}),(function(e,t,n){t.bounds!==n.bounds&&e.setBounds(t.bounds)})),rc=Mu((function(e,t){return Cu(new hu.Tooltip(e,t.overlayContainer),t)}),(function(e,t,n,o){var r=n.position;(0,i.useEffect)((function(){var n=t.overlayContainer;if(null!=n){var i=e.instance,s=function(e){e.tooltip===i&&(null!=r&&i.setLatLng(r),i.update(),o(!0))},a=function(e){e.tooltip===i&&o(!1)};return n.on({tooltipopen:s,tooltipclose:a}),n.bindTooltip(i),function(){n.off({tooltipopen:s,tooltipclose:a}),null!=n._map&&n.unbindTooltip()}}}),[e,t,o,r])}));function ic(e,t){var n=Math.floor(e.lat/t.regionSize),o=Math.floor(e.lng/t.regionSize);return fu().latLng(n,o)}function sc(e){var t=e.mapInfo,n=e.mapSize,r=Tu(),s=o((0,i.useState)([]),2),a=s[0],l=s[1];return(0,i.useEffect)((function(){!function(){for(var e,o=r.getBounds().pad(1),i=fu().latLngBounds(r.unproject([-n.x/2,-n.z/2],t.maxZoom),r.unproject([n.x/2,n.z/2],t.maxZoom)),s=(o=o.overlaps(i)?o:i).getSouthWest(),a=o.getNorthEast(),u=t.regionSize,c=Math.floor(s.lng/u),p=Math.floor(s.lat/u),d=Math.ceil(a.lng/u),h=Math.ceil(a.lat/u),f=[],g=c;g<=d;g++)for(var m=p;m<=h;m++){var v=fu().point(g*u,m*u),y=fu().point((g+1)*u,(m+1)*u),C=r.unproject(v,t.maxZoom),w=r.unproject(y,t.maxZoom);i.contains(C)&&i.contains(w)&&f.push((0,io.jsx)(oc,{bounds:[C,w],color:"gray",stroke:!0,fill:!0,weight:1,children:(0,io.jsx)(rc,{children:(e=ic(C,t),"r.".concat(e.lat,".").concat(e.lng,".7rg"))})},"".concat(g,"-").concat(m)))}l(f)}()}),[]),(0,io.jsx)(ku,{name:"regions",children:a})}var ac={regionSize:512,chunkSize:16,tileSize:128,maxZoom:4},lc={zoom:1,center:{lat:0,lng:0},layers:{animals:!0,hostiles:!0,players:!0,regions:!1}},uc=function(){var e=o(Tl("mapState",{defaultValue:lc}),2)[1];return function(e,t){var n=Tu();(0,i.useEffect)((function(){return n.on(e,t),function(){n.off(e,t)}}),[n,e,t])}("move",Ja((function(t){e((function(e){return Pt(Pt({},e),{},{center:t.target.getCenter(),zoom:t.target.getZoom()})}))}))),null},cc=St.div.withConfig({displayName:"Map__Container",componentId:"sc-ytilka-0"})(["height:100%;width:100%;text-align:left;"]);function pc(){var e=o((0,i.useState)({enabled:!1,mapSize:{x:6144,y:255,z:6144}}),2),t=e[0],n=e[1],r=o(Tl("mapState",{defaultValue:lc}),2),s=r[0],a=r[1];(0,i.useEffect)((function(){var e=function(){var e=xt(At().mark((function e(){var t;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oo.getMapConfig();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var l={project:function(e){return new hu.Point(e.lat/Math.pow(2,ac.maxZoom),e.lng/Math.pow(2,ac.maxZoom))},unproject:function(e){return new hu.LatLng(e.x*Math.pow(2,ac.maxZoom),e.y*Math.pow(2,ac.maxZoom))}},u=fu().extend({},fu().CRS.Simple,{projection:l,transformation:new hu.Transformation(1,0,-1,0),scale:function(e){return Math.pow(2,e)}});return t.enabled?(0,io.jsx)(cc,{children:(0,io.jsx)(or,{requiredPermission:{module:To,method:"GET"},children:(0,io.jsxs)(yu,{style:{width:"100%",height:"100%"},center:s.center,zoom:s.zoom,scrollWheelZoom:!0,attributionControl:!1,crs:u,maxBounds:[[-t.mapSize.x/2,-t.mapSize.z/2],[t.mapSize.x/2,t.mapSize.z/2]],maxBoundsViscosity:1,whenReady:function(e){var t=e.target;t.on("overlayadd",(function(e){e.name&&a((function(t){return Pt(Pt({},t),{},{layers:Pt(Pt({},t.layers),{},Rt({},e.name.toLowerCase(),!0))})}))})),t.on("overlayremove",(function(e){e.name&&a((function(t){return Pt(Pt({},t),{},{layers:Pt(Pt({},t.layers),{},Rt({},e.name.toLowerCase(),!1))})}))}))},children:[(0,io.jsx)(uc,{}),(0,io.jsx)(ju,{mapInfo:ac}),(0,io.jsx)(Bu,{}),(0,io.jsx)(or,{requiredPermission:{module:Oo,method:"GET"},children:(0,io.jsx)(zu,{})}),(0,io.jsxs)(Ou,{collapsed:!1,position:"topright",children:[(0,io.jsx)(or,{requiredPermission:{module:_o,method:"GET"},children:(0,io.jsx)(Ou.Overlay,{name:"Animals",checked:s.layers.animals,children:(0,io.jsx)(Zu,{})})}),(0,io.jsx)(or,{requiredPermission:{module:Ro,method:"GET"},children:(0,io.jsx)(Ou.Overlay,{name:"Players",checked:s.layers.players,children:(0,io.jsx)(tc,{})})}),(0,io.jsx)(or,{requiredPermission:{module:Eo,method:"GET"},children:(0,io.jsx)(Ou.Overlay,{name:"Hostiles",checked:s.layers.hostiles,children:(0,io.jsx)(Qu,{})})}),(0,io.jsx)(Ou.Overlay,{name:"Regions",checked:s.layers.regions,children:(0,io.jsx)(sc,{mapInfo:ac,mapSize:t.mapSize})}),(0,io.jsx)(Wu,{})]})]})})}):(0,io.jsx)("p",{children:"Map is not enabled, you can enable it via the server settings config file."})}var dc=St.div.withConfig({displayName:"Profile__Container",componentId:"sc-jtaopp-0"})(["flex:1;flex-direction:column;text-align:left;"]),hc=St.div.withConfig({displayName:"Profile__CardsContainer",componentId:"sc-jtaopp-1"})(["display:flex;flex-wrap:wrap;"]),fc=St.div.withConfig({displayName:"Profile__PermissionCard",componentId:"sc-jtaopp-2"})(["padding:1rem;"]),gc=St.ul.withConfig({displayName:"Profile__PermissionUl",componentId:"sc-jtaopp-3"})(["list-style-type:none;padding-left:1rem;"]);function mc(e){var t=e.modulePermission,n=Object.keys(t.allowed);return(0,io.jsxs)(fc,{children:[(0,io.jsx)("h3",{children:t.module}),(0,io.jsx)(gc,{children:n.map((function(e){return(0,io.jsxs)("li",{children:[t.allowed[e]?"\ud83d\udfe2":"\ud83d\udd34"," ",e]},e)}))})]})}function vc(){var e=Lo().status,t=e.permissions.map((function(e){return(0,io.jsx)(mc,{modulePermission:e},e.module)}));return(0,io.jsxs)(dc,{children:[(0,io.jsx)("h1",{children:"Profile"}),(0,io.jsx)("h2",{children:e.username}),(0,io.jsxs)("small",{children:["Permission level: ",e.permissionLevel]}),(0,io.jsx)("h2",{children:"Permissions"}),(0,io.jsx)(hc,{children:t})]})}var yc=St.div.withConfig({displayName:"Empty__Container",componentId:"sc-w42chz-0"})(["height:100%;width:100%;text-align:left;"]);function Cc(){return(0,io.jsx)(yc,{})}var wc=St.div.withConfig({displayName:"Router__ContentContainer",componentId:"sc-1psfph8-0"})(["min-width:",";padding:1%;"],(function(e){return e.collapsed?"calc(100% - 100px)":"calc(100% - 250px)"}));function _c(e){var t=e.sidebarCollapsed,n=mo().modRoutes;return(0,io.jsxs)(W,{children:[(0,io.jsx)(G,{path:"/",element:(0,io.jsx)(wc,{collapsed:t,children:(0,io.jsx)(Cc,{})})}),(0,io.jsx)(G,{path:"/map",element:(0,io.jsx)(wc,{collapsed:t,children:(0,io.jsx)(pc,{})})}),(0,io.jsx)(G,{path:"mods",element:(0,io.jsx)(wc,{collapsed:t,children:(0,io.jsx)(au,{})})}),(0,io.jsx)(G,{path:"console",element:(0,io.jsx)(wc,{collapsed:t,children:(0,io.jsx)(eu,{})})}),(0,io.jsx)(G,{path:"settings",element:(0,io.jsx)(wc,{collapsed:t,children:(0,io.jsx)($a,{})})}),(0,io.jsx)(G,{path:"profile",element:(0,io.jsx)(wc,{collapsed:t,children:(0,io.jsx)(vc,{})})}),(0,io.jsx)(G,{path:"createuser",element:(0,io.jsx)(al,{})}),n.map((function(e){return(0,io.jsx)(G,{path:e.path,element:(0,io.jsx)(wc,{collapsed:t,children:e.element})},e.path)})),(0,io.jsx)(G,{path:"error/:code",element:(0,io.jsx)(Qa,{})}),(0,io.jsx)(G,{path:"*",element:(0,io.jsx)(wc,{collapsed:t,children:(0,io.jsx)(ka,{})})})]})}var bc={colors:{transparent:"transparent",tfpRed:"#ff0000",tfpBlue:"#00A3E0",tfpLightGrey:"#CCCCCC",tfpDarkGrey:"#828383",tfpDarkGrey20:"rgba(0,0,0, 0.2)",tfpDarkGrey40:"rgba(0,0,0, 0.4)",tfpDarkGrey60:"rgba(0,0,0, 0.6)",tfpDarkGrey80:"rgba(0,0,0, 0.8)",tfpMediumGrey:"#C4C4C4",tfpBlack:"#090C0C",tfpWhite:"#FFFFFF"}},Ec=St.div.withConfig({displayName:"App__PageContainer",componentId:"sc-1jyt4iy-0"})(["display:flex;flex-direction:row;height:100vh;width:100vw;background-color:",";background-image:url(",");background-size:cover;color:",";"],(function(e){return e.theme.colors.tfpBlack}),Ma,(function(e){return e.theme.colors.tfpWhite}));var Sc=function(){var e=o(Tl("sideBarCollapsed",{defaultValue:!1}),2),t=e[0],n=e[1];return(0,io.jsx)("div",{className:"App",children:(0,io.jsx)(No,{children:(0,io.jsx)(go,{children:(0,io.jsxs)(Ct,{theme:bc,children:[(0,io.jsx)(Qn,{position:"bottom-left",reverseOrder:!0}),(0,io.jsxs)(Ec,{children:[(0,io.jsx)(Ia,{collapsed:t,setCollapsed:n}),(0,io.jsx)(_c,{sidebarCollapsed:t})]})]})})})})},Rc=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,o=t.getFID,r=t.getFCP,i=t.getLCP,s=t.getTTFB;n(e),o(e),r(e),i(e),s(e)}))};q.createRoot(document.getElementById("root")).render((0,io.jsx)(U,{basename:"/app",children:(0,io.jsx)(Sc,{})})),Rc()}()}();3 //# sourceMappingURL=main. 31badb24.js.map1 /*! For license information please see main.e01f51c2.js.LICENSE.txt */ 2 !function(){var e={1167:function(e,t,n){"use strict";function o(e){return null==e||""===e?null:e}function r(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function i(e){return!r(e)}function s(e){return null==e||0===e.length}function a(e){return null!=e&&"function"===typeof e.toString?e.toString():null}function l(e){if(void 0!==e){if(null===e||""===e)return null;if("number"===typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function u(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"===typeof e?e:/true/i.test(e))}function c(e,t,n){void 0===n&&(n=!1);var o=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&r)return 0;if(o)return-1;if(r)return 1;function i(e,t){return e>t?1:e<t?-1:0}if("string"!==typeof e)return i(e,t);if(!n)return i(e,t);try{return e.localeCompare(t)}catch(s){return i(e,t)}}function p(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.values(e)}Object.defineProperty(t,"__esModule",{value:!0});var d=Object.freeze({makeNull:o,exists:r,missing:i,missingOrEmpty:s,toStringOrNull:a,attrToNumber:l,attrToBoolean:u,attrToString:function(e){if(null!=e&&""!==e)return e},referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:c,values:p}),h=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=a(e);for(var n=0;;){var o=void 0;if(e?(o=e,0!==n&&(o+="_"+n)):t?(o=t,0!==n&&(o+="_"+n)):o=""+n,!this.existingKeys[o])return this.existingKeys[o]=!0,o;n++}},e}();function f(e,t){null!=e&&(Array.isArray(e)?e.forEach((function(e,n){return t(""+n,e)})):Object.keys(e).forEach((function(n){return t(n,e[n])})))}function g(e){for(var t={},n=Object.keys(e),o=0;o<n.length;o++){var r=n[o],i=e[r];t[r]=i}return t}function m(e,t){if(e){var n=e,o={};return Object.keys(n).forEach((function(e){if(!(t&&t.indexOf(e)>=0)){var r=n[e],i=R(r)&&r.constructor===Object;o[e]=i?m(r):r}})),o}}function v(e,t){return e[t]}function y(e,t,n){e[t]=n}function C(e,t,n,o){var r=v(e,n);void 0!==r&&y(t,n,o?o(r):r)}function w(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)}function b(e){if(!e)return[];var t=Object;if("function"===typeof t.values)return t.values(e);var n=[];for(var o in e)e.hasOwnProperty(o)&&e.propertyIsEnumerable(o)&&n.push(e[o]);return n}function _(e,t,n,o){void 0===n&&(n=!0),void 0===o&&(o=!1),r(t)&&f(t,(function(t,r){var i=e[t];if(i!==r){if(o)if(null==i&&null!=r)"object"===typeof r&&r.constructor===Object&&(i={},e[t]=i);R(r)&&R(i)&&!Array.isArray(i)?_(i,r,n,o):(n||void 0!==r)&&(e[t]=r)}}))}function E(e,t,n){if(t&&e){if(!n)return e[t];for(var o=t.split("."),r=e,i=0;i<o.length;i++){if(null==r)return;r=r[o[i]]}return r}}function S(e,t){Object.keys(e).forEach((function(t){"object"===typeof e[t]&&(e[t]=void 0)}));var n=Object.getPrototypeOf(e),o={};Object.keys(n).forEach((function(e){if("function"===typeof n[e]){o[e]={value:function(){console.warn("AG Grid: "+t+" function "+e+"() cannot be called as the grid has been destroyed.\n Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n be keeping the API reference, your application has a memory leak! Remove the API reference\n when the grid is destroyed.")},writable:!0}}})),Object.defineProperties(e,o)}function R(e){return"object"===typeof e&&null!==e}var O=Object.freeze({iterateObject:f,cloneObject:g,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneDefinition:m,getProperty:v,setProperty:y,copyPropertiesIfPresent:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];n.forEach((function(n){return C(e,t,n)}))},copyPropertyIfPresent:C,getAllKeysInObjects:w,getAllValuesInObject:b,mergeDeep:_,missingOrEmptyObject:function(e){return i(e)||0===Object.keys(e).length},get:function(e,t,n){if(null==e)return n;for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return n;var i=r[o[0]];return null!=i?i:n},set:function(e,t,n){if(null!=e){for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return;r[o[0]]=n}},deepFreeze:function e(t){return Object.freeze(t),p(t).forEach((function(t){(R(t)||"function"===typeof t)&&e(t)})),t},getValueUsingField:E,removeAllReferences:S,isNonNullObject:R}),P=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,T=/([^\s,]+)/g,x={};function A(e,t){x[t]||(e(),x[t]=!0)}function D(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function N(e){return!!(e&&e.constructor&&e.call&&e.apply)}function L(e){k(e,400)}var I=[],M=!1;function F(e){I.push(e),M||(M=!0,window.setTimeout((function(){var e=I.slice();I.length=0,M=!1,e.forEach((function(e){return e()}))}),0))}function k(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function G(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,a=n&&!o;window.clearTimeout(o),o=window.setTimeout((function(){o=null,n||e.apply(s,r)}),t),a&&e.apply(s,r)}}function H(e,t){var n=0;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=this,s=(new Date).getTime();s-n<t||(n=s,e.apply(i,o))}}function V(e,t,n,o){void 0===n&&(n=100);var r=(new Date).getTime(),i=null,s=!1,a=function(){var a=(new Date).getTime()-r>n;(e()||a)&&(t(),s=!0,null!=i&&(window.clearInterval(i),i=null),a&&o&&console.warn(o))};a(),s||(i=window.setInterval(a,10))}function j(e){e&&e()}var W=Object.freeze({doOnce:A,getFunctionName:D,getFunctionParameters:function(e){var t=e.toString().replace(P,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(T)||[]},isFunction:N,executeInAWhile:L,executeNextVMTurn:F,executeAfter:k,debounce:G,throttle:H,waitUntil:V,compose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},callIfPresent:j}),B=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return p(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),r(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),f(this.beanWrappers,(function(t,n){var o;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(o=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var r=e.getBeansForParameters(o,n.bean.name),i=function(e,t){var n=[null].concat(t);return new(e.bind.apply(e,n))}(n.bean,r);n.beanInstance=i}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var n=void 0;return n=e.prototype.constructor?D(e.prototype.constructor):""+e,void console.error("Context item "+n+" is not a bean")}var o={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=o},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){var r=n.agClassAttributes;r&&r.forEach((function(n){var r=t.lookupBeanInstance(o,n.beanName,n.optional);e[n.attributeName]=r}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){f(n.autowireMethods,(function(n,r){if("agConstructor"!==n){var i=t.getBeansForParameters(r,o);e[n].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var o=n.constructor;if(o.hasOwnProperty("__agBeanMetaData"))t(o.__agBeanMetaData,this.getBeanName(o));n=Object.getPrototypeOf(n)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var n=this,o=[];return e&&f(e,(function(e,r){var i=n.lookupBeanInstance(t,r);o[Number(e)]=i})),o},e.prototype.lookupBeanInstance=function(e,t,n){if(void 0===n&&(n=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var o=this.beanWrappers[t];return o?o.beanInstance:(n||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var n=this;e.forEach((function(e){return n.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,n){var o={};this.forEachMetaDataInHierarchy(e,(function(e){var r=e[t];r&&r.forEach((function(e){e!=n&&(o[e]=!0)}))})),Object.keys(o).forEach((function(t){return e[t]()}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var n=e;"function"===typeof n.destroy&&n.destroy()})),[]):[]},e}();function U(e,t,n){var o=X(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function z(e,t,n){var o=X(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function K(e,t,n){var o=X(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function q(e){return function(t){X(t).beanName=e}}function Z(e){return function(t,n,o){Q(t,e,!1,t,n,null)}}function Y(e){return function(t,n,o){Q(t,e,!0,t,n,null)}}function Q(e,t,n,o,r,i){if(null!==t)if("number"!==typeof i){var s=X(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:t,optional:n})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function $(e){return function(t,n,o){var r,i="function"==typeof t?t:t.constructor;if("number"===typeof o){var s=void 0;n?(r=X(i),s=n):(r=X(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][o]=e}}}function X(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var J,ee=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},te=function(e,t){return function(n,o){t(n,o,e)}},ne=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,n,o){if(void 0===o&&(o=null),this.frameworkOverrides=n,o){var r=t.useAsyncEvents();this.addGlobalListener(o,r)}},e.prototype.getListeners=function(e,t,n){var o=t?this.allAsyncListeners:this.allSyncListeners,r=o.get(e);return!r&&n&&(r=new Set,o.set(e,r)),r},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n,!0).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1);var o=this.getListeners(e,n,!1);o&&(o.delete(t),0===o.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,t){var n=this,o=e.type,r=this.getListeners(o,t,!1);r&&function(o){o.forEach((function(o){t?n.dispatchAsync((function(){return o(e)})):o(e)}))}(r),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(r){t?n.dispatchAsync((function(){return n.frameworkOverrides.dispatchEvent(o,(function(){return r(o,e)}),!0)})):n.frameworkOverrides.dispatchEvent(o,(function(){return r(o,e)}),!0)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},ee([te(0,$("loggerFactory")),te(1,$("gridOptionsWrapper")),te(2,$("frameworkOverrides")),te(3,$("globalEventListener"))],e.prototype,"setBeans",null),e=ee([q("eventService")],e)}(),oe=function(){function e(){}return e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e.INPUT_SELECTOR="input, select, button, textarea",e.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",e.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",e}();(J=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",J.CommunityAllModules="@ag-grid-community/all",J.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",J.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",J.CsvExportModule="@ag-grid-community/csv-export",J.EnterpriseCoreModule="@ag-grid-enterprise/core",J.EnterpriseAllModules="@ag-grid-enterprise/all",J.RowGroupingModule="@ag-grid-enterprise/row-grouping",J.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",J.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",J.MenuModule="@ag-grid-enterprise/menu",J.SetFilterModule="@ag-grid-enterprise/set-filter",J.MultiFilterModule="@ag-grid-enterprise/multi-filter",J.StatusBarModule="@ag-grid-enterprise/status-bar",J.SideBarModule="@ag-grid-enterprise/side-bar",J.RangeSelectionModule="@ag-grid-enterprise/range-selection",J.MasterDetailModule="@ag-grid-enterprise/master-detail",J.RichSelectModule="@ag-grid-enterprise/rich-select",J.GridChartsModule="@ag-grid-enterprise/charts",J.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",J.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",J.ExcelExportModule="@ag-grid-enterprise/excel-export",J.ClipboardModule="@ag-grid-enterprise/clipboard",J.SparklinesModule="@ag-grid-enterprise/sparklines",J.AngularModule="@ag-grid-community/angular",J.ReactModule="@ag-grid-community/react",J.VueModule="@ag-grid-community/vue",J.PolymerModule="@ag-grid-community/polymer";var re=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=n:e.moduleBased!==n&&A((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,n){void 0===n&&(n=!0),t&&t.forEach((function(t){return e.register(t,n)}))},e.assertRegistered=function(t,n){if(this.isRegistered(t))return!0;var o,r=n+t;return o=e.moduleBased?"AG Grid: unable to use "+n+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+n+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",A((function(){console.warn(o)}),r),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return p(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),ie=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},se=0,ae=function(){function e(e,t,n,o){this.instanceId=se++,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ne,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=o,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?e.sort!==oe.SORT_ASC&&e.sort!==oe.SORT_DESC||(this.sort=e.sort):e.initialSort!==oe.SORT_ASC&&e.initialSort!==oe.SORT_DESC||(this.sort=e.initialSort);var t=l(e.sortIndex),n=l(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);var o=u(e.hide),r=u(e.initialHide);this.visible=void 0!==o?!o:!r,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var i=l(e.flex),s=l(e.initialFlex);void 0!==i?this.flex=i:void 0!==s&&(this.flex=s)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation()},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=r(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=r(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(i(this.colDef)||i(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function n(e,t,n){A((function(){n?console.warn(e,n):A((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsWrapper.isRowModelDefault()&&!re.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){r(e[o])&&(re.isPackageBased()?n("AG Grid: "+o+" is only valid in ag-grid-enterprise, your column definition should not have "+o,"ColumnRowGroupingMissing"+o):n("AG Grid: "+o+" is only valid with AG Grid Enterprise Module "+t.ModuleNames.RowGroupingModule+" - your column definition should not have "+o,"ColumnRowGroupingMissing"+o))}))}if(re.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"===this.colDef.cellEditor&&(re.isPackageBased()?n("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){r(e[t])&&n("AG Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}r(this.colDef.width)&&"number"!==typeof this.colDef.width&&n("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),e.pinnedRowCellRenderer&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererParams&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererFramework&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowValueGetter&&n("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"===typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"===typeof this.colDef.suppressNavigable){var t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!u(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!u(this.colDef.autoHeight)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!!u(this.colDef.resizable)},e.prototype.isColumnFunc=function(e,t){return"boolean"===typeof t?t:"function"===typeof t&&t(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===oe.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===oe.SORT_DESC},e.prototype.isSortNone=function(){return i(this.sort)},e.prototype.isSorting=function(){return r(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,o){void 0===n&&(n="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,n)));var r=this.createColumnEvent(e.EVENT_FILTER_CHANGED,n);o&&_(r,o),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){!0===e||e===oe.PINNED_LEFT?this.pinned=oe.PINNED_LEFT:e===oe.PINNED_RIGHT?this.pinned=oe.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===oe.PINNED_LEFT||this.pinned===oe.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===oe.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===oe.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,n)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(i(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},e.prototype.getRowSpan=function(e){if(i(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(e,t,n){void 0===t&&(t="api"),void 0===n&&(n=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,t))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),r(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",ie([Z("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ie([Z("columnUtils")],e.prototype,"columnUtils",void 0),ie([Z("columnApi")],e.prototype,"columnApi",void 0),ie([Z("gridApi")],e.prototype,"gridApi",void 0),ie([Z("context")],e.prototype,"context",void 0),ie([z],e.prototype,"initialise",null),e}();function le(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++){var o=e[n];if(r(o))return o}return null}function ue(e){if(e&&e.length)return e[e.length-1]}function ce(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,o){return n?n(e,t[o]):t[o]===e}))}function pe(e){return e.sort((function(e,t){return e-t}))}function de(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function he(e,t){t.forEach((function(t){return de(e,t)}))}function fe(e,t,n){e.splice(n,0,t)}function ge(e,t,n){he(e,t),t.slice().reverse().forEach((function(t){return fe(e,t,n)}))}function me(e,t){return e.indexOf(t)>-1}function ve(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}var ye=Object.freeze({firstExistingValue:le,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:ue,areEqual:ce,compareArrays:function(e,t){return ce(e,t)},shallowCompare:function(e,t){return ce(e,t)},sortNumerically:pe,removeRepeatsFromArray:function(e,t){if(e)for(var n=e.length-2;n>=0;n--){var o=e[n]===t,r=e[n+1]===t;o&&r&&e.splice(n+1,1)}},removeFromArray:de,removeAllFromArray:he,insertIntoArray:fe,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){fe(e,t[o],n)}},moveInArray:ge,includes:me,flatten:function(e){return[].concat.apply([],e)},pushAll:ve,toStrings:function(e){return e.map(a)},forEachReverse:function(e,t){if(null!=e)for(var n=e.length-1;n>=0;n--)t(e[n],n)}}),Ce=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},we=function(){function e(e,t,n,o){this.displayedChildren=[],this.localEventService=new ne,this.groupId=t,this.instanceId=n,this.providedColumnGroup=e,this.pinned=o}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=ue(this.displayedChildren).getLeft();this.setLeft(t)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var n=!1;return this.children.forEach((function(o){t===o&&(n=!0),o instanceof e&&o.isChildInThisGroupDeepSearch(t)&&(n=!0)})),n},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()||0})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(n){n instanceof ae?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof ae?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!(!!n&&n.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(o){if(!(o instanceof e&&(!o.displayedChildren||!o.displayedChildren.length)))switch(o.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.providedColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case e.HEADER_GROUP_SHOW_CLOSED:n.providedColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",Ce([Z("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),be=function(){function e(e,t,n,o){this.localEventService=new ne,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=n,this.level=o}return e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var n={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(n)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(n){n instanceof ae?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(ae.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,o=!1,r=this.findChildrenRemovingPadding(),i=0,s=r.length;i<s;i++){var a=r[i];if(a.isVisible()){var l=a.getColumnGroupShow();l===we.HEADER_GROUP_SHOW_OPEN?(t=!0,o=!0):l===we.HEADER_GROUP_SHOW_CLOSED?(n=!0,o=!0):(t=!0,n=!0)}}var u=t&&n&&o;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildrenRemovingPadding=function(){var t=[];return function n(o){o.forEach((function(o){o instanceof e&&o.isPadding()?n(o.children):t.push(o)}))}(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),_e={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Ee="__ag_Grid_Stop_Propagation",Se=["touchstart","touchend","touchmove","touchcancel"],Re={};function Oe(e){e[Ee]=!0}function Pe(e){return!0===e[Ee]}var Te=function(){var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(t){if("boolean"===typeof Re[t])return Re[t];var n=document.createElement(e[t]||"div");return Re[t="on"+t]=t in n}}();function xe(e,t,n){for(var o=t.target;o;){var r=e.getDomData(o,n);if(r)return r;o=o.parentElement}return null}function Ae(e,t){return!(!t||!e)&&Ne(t).indexOf(e)>=0}function De(e){for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return t}function Ne(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:De(e)}function Le(e,t,n,o){var r=me(Se,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,o,r)}var Ie=Object.freeze({stopPropagationForAgGrid:Oe,isStopPropagationForAgGrid:Pe,isEventSupported:Te,getCtrlForEvent:xe,addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t)},isElementInEventPath:Ae,createEventPath:De,addAgGridEventPath:function(e){e.__agGridEventPath=Ne(e)},getEventPath:Ne,addSafePassiveEventListener:Le}),Me=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fe=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new ne),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,t,n){var o=this;if(!this.destroyed){e instanceof HTMLElement?Le(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var r=function r(){return e.removeEventListener(t,n),o.destroyFunctions=o.destroyFunctions.filter((function(e){return e!==r})),null};return this.destroyFunctions.push(r),r}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n},e.prototype.createBean=function(e,t,n){return(t||this.getContext()).createBean(e,n)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var n=this;return e&&e.forEach((function(e){return n.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",Me([Z("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Me([Z("context")],e.prototype,"context",void 0),Me([Z("eventService")],e.prototype,"eventService",void 0),Me([Z("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Me([K],e.prototype,"destroy",null),e}(),ke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ge=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},He=function(e,t){return function(n,o){t(n,o,e)}},Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ke(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,n){var o=new h,r=this.extractExistingTreeData(n),i=r.existingCols,s=r.existingGroups,a=r.existingColKeys;o.addExistingKeys(a);var l=this.recursivelyCreateColumns(e,0,t,i,o,s),u=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+u);var c=this.balanceColumnTree(l,0,u,o);return this.columnUtils.depthFirstOriginalTreeSearch(null,c,(function(e,t){e instanceof be&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:c,treeDept:u}},t.prototype.extractExistingTreeData=function(e){var t=[],n=[],o=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof be){var r=e;n.push(r)}else{var i=e;o.push(i.getId()),t.push(i)}})),{existingCols:t,existingGroups:n,existingColKeys:o}},t.prototype.createForAutoGroups=function(e,t){var n=this;return e.map((function(e){return n.createAutoGroupTreeItem(t,e)}))},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,o=this.findDepth(e)-1;o>=0;o--){var r=new be(null,"FAKE_PATH_"+t.getId()+"}_"+o,!0,o);this.context.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},t.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof be;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,o){for(var r=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof be){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,o);a.setChildren(l),r.push(a)}else{for(var u=void 0,c=void 0,p=n-1;p>=t;p--){var d=o.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new be(h,d,!0,t);this.context.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(r.push(u),e.some((function(e){return e instanceof be}))){c.setChildren([s]);continue}c.setChildren(e);break}r.push(s)}}return r},t.prototype.findMaxDept=function(e,t){for(var n=t,o=0;o<e.length;o++){var r=e[o];if(r instanceof be){var i=r,s=this.findMaxDept(i.getChildren(),t+1);n<s&&(n=s)}}return n},t.prototype.recursivelyCreateColumns=function(e,t,n,o,r,i){var s=this;return(e||[]).map((function(e){return s.isColumnGroup(e)?s.createColumnGroup(n,e,t,o,r,i):s.createColumn(n,e,o,r)}))},t.prototype.createColumnGroup=function(e,t,n,o,r,i){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId||null,null),l=new be(s,a,!1,n);this.context.createBean(l);var u=this.findExistingGroup(t,i);u&&de(i,u),u&&u.isExpanded()&&l.setExpanded(!0);var c=this.recursivelyCreateColumns(s.children,n+1,e,o,r,i);return l.setChildren(c),l},t.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(t,e),this.checkForDeprecatedItems(t),t},t.prototype.createColumn=function(e,t,n,o){var r=this.mergeColDefs(t);this.checkForDeprecatedItems(r);var i=this.findExistingColumn(t,n);if(n&&i&&de(n,i),i)i.setColDef(r,t),this.applyColumnState(i,r);else{var s=o.getUniqueKey(r.colId,r.field);i=new ae(r,t,s,e),this.context.createBean(i)}return i},t.prototype.applyColumnState=function(e,t){var n=l(t.flex);if(void 0!==n&&e.setFlex(n),e.getFlex()<=0){var o=l(t.width);if(null!=o)e.setActualWidth(o);else{var r=e.getActualWidth();e.setActualWidth(r)}}void 0!==t.sort&&(t.sort==oe.SORT_ASC||t.sort==oe.SORT_DESC?e.setSort(t.sort):e.setSort(void 0));var i=l(t.sortIndex);void 0!==i&&e.setSortIndex(i);var s=u(t.hide);void 0!==s&&e.setVisible(!s),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){return(t||[]).find((function(t){var n=t.getUserProvidedColDef();if(!n)return!1;var o=null!=e.colId,r=null!=e.field;return o?t.getId()===e.colId:r?n.field===e.field:n===e}))},t.prototype.findExistingGroup=function(e,t){return t.find((function(t){return!!t.getColGroupDef()&&(!(null==e.groupId)&&t.getId()===e.groupId)}))},t.prototype.mergeColDefs=function(e){var t={},n=this.gridOptionsWrapper.getDefaultColDef();_(t,n,!1,!0);var o=e.type;return o||(o=n&&n.type),o&&this.assignColumnTypes(o,t),_(t,e,!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var n=[];if(e instanceof Array){e.some((function(e){return"string"!==typeof e}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=e}else{if("string"!==typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");n=e.split(",")}var o=Object.assign({},_e);f(this.gridOptionsWrapper.getColumnTypes()||{},(function(e,t){e in o?console.warn("AG Grid: the column type '"+e+"' is a default column type and cannot be overridden."):o[e]=t})),n.forEach((function(e){var n=o[e.trim()];n?_(t,n,!1,!0):console.warn("AG Grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},t.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("AG Grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},t.prototype.isColumnGroup=function(e){return void 0!==e.children},Ge([Z("columnUtils")],t.prototype,"columnUtils",void 0),Ge([He(0,$("loggerFactory"))],t.prototype,"setBeans",null),t=Ge([q("columnFactory")],t)}(Fe),je=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_CELL_EDIT_REQUEST="cellEditRequest",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_BODY_SCROLL_END="bodyScrollEnd",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e.EVENT_STORE_UPDATED="storeUpdated",e}(),We=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,n=this.existingIds[e];return t="number"!==typeof n?0:n+1,this.existingIds[e]=t,t},e}(),Be=/[&<>"']/g,Ue={"&":"&","<":"<",">":">",'"':""","'":"'"};function ze(e){return null===e||void 0===e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function Ke(e){return null===e||void 0===e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function qe(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function Ze(e){return null==e?null:e.toString().toString().replace(Be,(function(e){return Ue[e]}))}function Ye(e){if(!e||null==e)return null;return e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" ")}var Qe=Object.freeze({utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function o(e){if(e>=0&&e<=31&&10!==e)return"_x"+e.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&e))return t(e);var o="";return 0==(4294965248&e)?o=t(e>>6&31|192):0==(4294901760&e)?(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),o=t(e>>12&15|224),o+=n(e,6)):0==(4292870144&e)&&(o=t(e>>18&7|240),o+=n(e,12),o+=n(e,6)),o+=t(63&e|128)}for(var r=function(e){var t=[];if(!e)return[];for(var n,o,r=e.length,i=0;i<r;)(n=e.charCodeAt(i++))>=55296&&n<=56319&&i<r?56320==(64512&(o=e.charCodeAt(i++)))?t.push(((1023&n)<<10)+(1023&o)+65536):(t.push(n),i--):t.push(n);return t}(e),i=r.length,s=-1,a="";++s<i;)a+=o(r[s]);return a},camelCaseToHyphen:ze,hyphenToCamelCase:Ke,capitalise:qe,escapeString:Ze,camelCaseToHumanText:Ye});function $e(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}var Xe=Object.freeze({convertToMap:$e,mapById:function(e,t){var n=new Map;return e.forEach((function(e){return n.set(t(e),e)})),n},keys:function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}}),Je=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),et=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tt=function(e,t){return function(n,o){t(n,o,e)}},nt=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ot=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},rt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ot(arguments[t]));return e},it=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.gridHeaderRowCount=0,t.displayedColumnsLeft=[],t.displayedColumnsRight=[],t.displayedColumnsCenter=[],t.displayedColumns=[],t.displayedColumnsAndGroupsMap={},t.viewportColumns=[],t.viewportColumnsCenter=[],t.autoHeightActiveAtLeastOnce=!1,t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t.colDefVersion=0,t.flexColsCalculatedAtLestOnce=!1,t}return Je(t,e),t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var t=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,"defaultColDef",(function(){return e.onDefaultColDefChanged()}))},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.onDefaultColDefChanged=function(){this.colDefVersion++,this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},t.prototype.getColDefVersion=function(){return this.colDefVersion},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var n=!!this.columnDefs;this.colDefVersion++,this.columnDefs=e,this.createColumnsFromColumnDefs(n,t)},t.prototype.createColumnsFromColumnDefs=function(e,t){var n=this;void 0===t&&(t="api");var o=e?this.compareColumnStatesAndRaiseEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns,i=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,i);this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(e){return n.primaryColumnsMap[e.getId()]=e})),this.extractRowGroupColumns(t,r),this.extractPivotColumns(t,r),this.extractValueColumns(t,r),this.ready=!0;var a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a)&&(this.updateGridColumns(),e&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),o&&o(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){var e={type:je.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:je.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;t&&this.gridColumns.sort((function(n,o){var r=t.indexOf(n),i=t.indexOf(o),s=r>=0,a=i>=0;return s&&a?r-i:s?1:a?-1:e.gridColumns.indexOf(n)-e.gridColumns.indexOf(o)}))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},t.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter){var e=this.viewportColumns.map((function(e){return e.getId()})).join("#");if(this.extractViewport(),e!==this.viewportColumns.map((function(e){return e.getId()})).join("#")){var t={type:je.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},t.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},t.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var n={type:je.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(i(this.secondaryColumns))return null;var n=this.getPrimaryColumn(t),o=null;return this.secondaryColumns.forEach((function(t){var r=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;ce(r,e)&&i===n&&(o=t)})),o},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?ue(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?ue(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(o){o.setLastLeftPinned(o===t,e),o.setFirstRightPinned(o===n,e)}))},t.prototype.autoSizeColumns=function(e){var t=this,n=e.columns,o=e.skipHeader,r=e.skipHeaderGroups,i=e.stopAtGroup,s=e.source,a=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var l=[],u=-1,c=null!=o?o:this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),p=null!=r?r:c;0!==u;)u=0,this.actionOnGridColumns(n,(function(e){if(l.indexOf(e)>=0)return!1;var n=t.autoWidthCalculator.getPreferredWidthForColumn(e,c);if(n>0){var o=t.normaliseColumnWidth(e,n);e.setActualWidth(o,a),l.push(e),u++}return!0}),a);p||this.autoSizeColumnGroupsByColumns(n,i),this.fireColumnResizedEvent(l,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,t,n,o){if(void 0===o&&(o=null),e&&e.length){var r={type:je.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:o,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)}},t.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:n})},t.prototype.autoSizeColumnGroupsByColumns=function(e,t){var n,o,r,i,s,a=new Set;this.getGridColumns(e).forEach((function(e){for(var n=e.getParent();n&&n!=t;)n.isPadding()||a.add(n),n=n.getParent()}));try{for(var l=nt(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(r=void 0,nt(this.ctrlsService.getHeaderRowContainerCtrls())),d=p.next();!d.done;d=p.next()){if(s=d.value.getHeaderCtrlForColumn(c))break}}catch(h){r={error:h}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}s&&s.resizeLeafColumnsToFit()}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}return[]},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:e,source:t})},t.prototype.getColumnsFromTree=function(e){var t=[];return function e(n){for(var o=0;o<n.length;o++){var r=n[o];r instanceof ae?t.push(r):r instanceof be&&e(r.getChildren())}}(e),t},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.getDisplayedColumnsForRow=function(e,t,n,o){for(var r,i=[],s=null,a=function(a){var l,u=t[a],c=t.length-a,p=Math.min(u.getColSpan(e),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}if(n?(l=!1,d.forEach((function(e){n(e)&&(l=!0)}))):l=!0,l){if(0===i.length&&s)!!o&&o(u)&&i.push(s);i.push(u)}s=u,r=a},l=0;l<t.length;l++)a(l),l=r;return i},t.prototype.getViewportCenterColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var n=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,n,(function(e){var n=e.getLeft();return r(n)&&n>t.viewportLeft}))},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,n=t+e.getActualWidth(),o=this.viewportLeft-200,r=this.viewportRight+200;return!(t<o&&n<o)&&!(t>r&&n>r)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,n,o,r,i){var a=this;if(void 0===i&&(i="api"),e&&!s(e)){var l=!1;if(e.forEach((function(e){var r=a.getPrimaryColumn(e);if(r){if(n){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;de(t,r)}o(r),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var u={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(u)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,je.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),je.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),je.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),je.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,je.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){n.setPivotActive(e,t)}),t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),je.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,n,o,i){var s=this;t.length=0,r(e)&&e.forEach((function(e){var n=s.getPrimaryColumn(e);n&&t.push(n)})),(this.primaryColumns||[]).forEach((function(e){var n=t.indexOf(e)>=0;o(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i),this.fireColumnEvent(n,t,i)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,je.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var o=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(o)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),je.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),je.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var n=e.getMinWidth();r(n)&&t<n&&(t=n);var o=e.getMaxWidth();return r(o)&&e.isGreaterThanMax(t)&&(t=o),t},t.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,t,n,o){var r=this;void 0===o&&(o="api");var i=[];e.forEach((function(e){var n=r.getPrimaryOrGridColumn(e.key);if(n&&(i.push({width:e.newWidth,ratios:[1],columns:[n]}),"shift"===r.gridOptionsWrapper.getColResizeDefault()&&(t=!t),t)){var o=r.getDisplayedColAfter(n);if(!o)return;var s=n.getActualWidth()-e.newWidth,a=o.getActualWidth()+s;i.push({width:a,ratios:[1],columns:[o]})}})),0!==i.length&&this.resizeColumnSets({resizeSets:i,finished:n,source:o})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,n=e.width,o=0,i=0,s=!0;return t.forEach((function(e){var t=e.getMinWidth();o+=t||0;var n=e.getMaxWidth();r(n)&&n>0?i+=n:s=!1})),n>=o&&(!s||n<=i)},t.prototype.resizeColumnSets=function(e){var t=this,n=e.resizeSets,o=e.finished,i=e.source;if(!n||n.every((function(e){return t.checkMinAndMaxWidthsForSet(e)}))){var s=[],a=[];n.forEach((function(e){var t=e.width,n=e.columns,o=e.ratios,l={},u={};n.forEach((function(e){return a.push(e)}));for(var c=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],i=0,s=t;n.forEach((function(t,n){if(u[t.getId()])s-=l[t.getId()];else{e.push(t);var r=o[n];i+=r}}));var a=1/i;e.forEach((function(n,i){var p;i===e.length-1?p=s:(p=Math.round(o[i]*t*a),s-=p);var d=n.getMinWidth(),h=n.getMaxWidth();r(d)&&p<d?(p=d,u[n.getId()]=!0,c=!0):r(h)&&h>0&&p>h&&(p=h,u[n.getId()]=!0,c=!0),l[n.getId()]=p}))};c;){if("break"===d())break}n.forEach((function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,i),s.push(e))}))}));var l=s.length>0,u=[];l&&(u=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(i),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(u);(l||o)&&this.fireColumnResizedEvent(c,o,i,u)}else if(o){var p=n&&n.length>0?n[0].columns:null;this.fireColumnResizedEvent(p,o,i)}},t.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){var o=this.getPrimaryColumn(e);o&&(o.setAggFunc(t),this.fireColumnEvent(je.EVENT_COLUMN_VALUE_CHANGED,[o],n))}},t.prototype.fireColumnEvent=function(e,t,n){var o={type:e,columns:t,column:t&&1==t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)},t.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n="api");var o=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,o);var r={type:je.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)},t.prototype.moveColumns=function(e,t,n){if(void 0===n&&(n="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var o=this.getGridColumns(e);if(!!this.doesMovePassRules(o,t)){ge(this.gridColumns,o,t),this.updateDisplayedColumns(n);var r={type:je.EVENT_COLUMN_MOVED,columns:o,column:1===o.length?o[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r),this.columnAnimationService.finish()}},t.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return ge(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||(e.filter((function(e){return t.gridColumns.indexOf(e)<0})).length>0||e.sort((function(e,n){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(n)})))},t.prototype.doesMovePassLockedPositions=function(e){var t=0,n=!0;return e.forEach((function(e){var o,r=(o=e.getColDef().lockPosition)?!0===o||"left"===o?0:2:1;r<t&&(n=!1),t=r})),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof be){var o=n,r=o.getColGroupDef();if(r&&r.marryChildren){var i=[];o.getLeafColumns().forEach((function(t){var n=e.indexOf(t);i.push(n)})),Math.max.apply(Math,i)-Math.min.apply(Math,i)>o.getLeafColumns().length-1&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},t.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var o=this.gridColumns[e];this.moveColumn(o,t,n)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,n){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)})):this.lastPrimaryOrder&&t.sort((function(t,n){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(n)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case oe.PINNED_LEFT:return this.leftWidth;case oe.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var o={type:je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},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 oe.PINNED_LEFT:return this.getDisplayedLeftColumns();case oe.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return s(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return s(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},t.prototype.setColumnsVisible=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,n),!0)}),n,(function(){return{type:je.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi,source:n}})),this.columnAnimationService.finish()},t.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},t.prototype.setColumnsPinned=function(e,t,n){var o,r=this;(void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),o=!0===t||t===oe.PINNED_LEFT?oe.PINNED_LEFT:t===oe.PINNED_RIGHT?oe.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==o&&(e.setPinned(o),!0)}),n,(function(){return{type:je.EVENT_COLUMN_PINNED,pinned:o,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},t.prototype.actionOnGridColumns=function(e,t,n,o){var i=this;if(!s(e)){var a=[];if(e.forEach((function(e){var n=i.getGridColumn(e);n&&(!1!==t(n)&&a.push(n))})),a.length&&(this.updateDisplayedColumns(n),r(o)&&o)){var l=o();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,t){for(var n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),o=e.getDisplayedLeafColumns(),r="After"===t?ue(o):o[0],i="getDisplayedCol"+t;;){var s=this[i](r);if(!s)return null;var a=this.getColumnGroupAtLevel(s,n);if(a!==e)return a}},t.prototype.getColumnGroupAtLevel=function(e,t){for(var n=e.getParent();;){if(n.getProvidedColumnGroup().getLevel()+n.getPaddingLevel()<=t)break;n=n.getParent()}return n},t.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},t.prototype.getPrimaryAndAutoGroupCols=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.groupAutoColumns||[]]))},t.prototype.getPrimaryAndSecondaryColumns=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.secondaryColumns||[]]))},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null,r=null!=e.getSort()?e.getSort():null,i=null!=e.getSortIndex()?e.getSortIndex():null,s=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:r,sortIndex:i,aggFunc:o,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:s}},t.prototype.getColumnState=function(){if(i(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},t.prototype.orderColumnStateList=function(e){var t=$e(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,n){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)}))},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),n=[],o=1e3,r=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),t&&(s=s.concat(t)),s.forEach((function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},s=e.getColDef(),a=t(s.sort,s.initialSort),l=t(s.sortIndex,s.initialSortIndex),u=t(s.hide,s.initialHide),c=t(s.pinned,s.initialPinned),p=t(s.width,s.initialWidth),d=t(s.flex,s.initialFlex),h=t(s.rowGroupIndex,s.initialRowGroupIndex),f=t(s.rowGroup,s.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=t(s.pivotIndex,s.initialPivotIndex),m=t(s.pivot,s.initialPivot);null!=g||null!=m&&0!=m||(g=null,m=null);var v=t(s.aggFunc,s.initialAggFunc),y={colId:e.getColId(),sort:a,sortIndex:l,hide:u,pinned:c,width:p,flex:d,rowGroup:f,rowGroupIndex:h,pivot:m,pivotIndex:g,aggFunc:v};i(h)&&f&&(y.rowGroupIndex=o++),i(g)&&m&&(y.pivotIndex=r++),n.push(y)})),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var n=this;if(void 0===t&&(t="api"),s(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 o=function(o,r,i){var s=n.compareColumnStatesAndRaiseEvents(t);n.autoGroupsNeedBuilding=!0;var a=r.slice(),l={},u={},c=[],p=[],d=0,h=n.rowGroupColumns.slice(),f=n.pivotColumns.slice();o.forEach((function(o){var r=o.colId||"";if(r.startsWith(oe.GROUP_AUTO_COLUMN_ID))return c.push(o),void p.push(o);var s=i(r);s?(n.syncColumnWithStateItem(s,o,e.defaultState,l,u,!1,t),de(a,s)):(p.push(o),d+=1)}));var g=function(o){return n.syncColumnWithStateItem(o,null,e.defaultState,l,u,!1,t)};a.forEach(g);var m=function(e,t,n,o){var r=e[n.getId()],i=e[o.getId()],s=null!=r,a=null!=i;if(s&&a)return r-i;if(s)return-1;if(a)return 1;var l=t.indexOf(n),u=t.indexOf(o),c=l>=0;return c&&u>=0?l-u:c?-1:1};n.rowGroupColumns.sort(m.bind(n,l,h)),n.pivotColumns.sort(m.bind(n,u,f)),n.updateGridColumns();var v=n.groupAutoColumns?n.groupAutoColumns.slice():[];return c.forEach((function(o){var r=n.getAutoColumn(o.colId);de(v,r),n.syncColumnWithStateItem(r,o,e.defaultState,null,null,!0,t)})),v.forEach(g),n.applyOrderAfterApplyState(e),n.updateDisplayedColumns(t),n.dispatchEverythingChanged(t),s(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var i=o(e.state||[],this.primaryColumns||[],(function(e){return n.getPrimaryColumn(e)})),a=i.unmatchedAndAutoStates,l=i.unmatchedCount;return(a.length>0||r(e.defaultState))&&(l=o(a,this.secondaryColumns||[],(function(e){return n.getSecondaryColumn(e)})).unmatchedCount),this.columnAnimationService.finish(),0===l},t.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var n=[],o={};e.state.forEach((function(e){if(e.colId&&!o[e.colId]){var r=t.gridColumnsMap[e.colId];r&&(n.push(r),o[e.colId]=!0)}}));var r=0;this.gridColumns.forEach((function(e){var t=e.getColId();null!=o[t]||(t.startsWith(oe.GROUP_AUTO_COLUMN_ID)?fe(n,e,r++):n.push(e))})),n=this.placeLockedColumns(n),this.doesMovePassMarryChildren(n)?this.gridColumns=n:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var t=this,n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},o=this.getColumnState(),r={};return o.forEach((function(e){r[e.colId]=e})),function(){if(!t.gridOptionsWrapper.isSuppressColumnStateEvents()){var i=t.getPrimaryAndSecondaryAndAutoColumns(),s=function(n,o,r,i){if(!ce(o.map(i),r.map(i))){var s={type:n,columns:r,column:1===r.length?r[0]:null,api:t.gridApi,columnApi:t.columnApi,source:e};t.eventService.dispatchEvent(s)}},a=function(e){var t=[];return i.forEach((function(n){var o=r[n.getColId()];o&&e(o,n)&&t.push(n)})),t},l=function(e){return e.getColId()};s(je.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,t.rowGroupColumns,l),s(je.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,t.pivotColumns,l);a((function(e,t){var n=null!=e.aggFunc,o=n!=t.isValueActive(),r=n&&e.aggFunc!=t.getAggFunc();return o||r})).length>0&&t.fireColumnEvent(je.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.fireColumnResizedEvent(a((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.raiseColumnPinnedEvent(a((function(e,t){return e.pinned!=t.getPinned()})),e);t.raiseColumnVisibleEvent(a((function(e,t){return e.hide==t.isVisible()})),e);a((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(e),t.raiseColumnMovedEvent(o,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.getPinned()})),r={type:je.EVENT_COLUMN_PINNED,pinned:null!=o?o:null,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var n=t(e[0]),o=1;o<e.length;o++)if(n!==t(e[o]))return;return n}},t.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.isVisible()})),r={type:je.EVENT_COLUMN_VISIBLE,visible:o,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r)}},t.prototype.raiseColumnMovedEvent=function(e,t){var n=this,o=this.getColumnState(),r={};o.forEach((function(e){return r[e.colId]=e}));var i={};e.forEach((function(e){r[e.colId]&&(i[e.colId]=!0)}));var s=e.filter((function(e){return i[e.colId]})),a=o.filter((function(e){return i[e.colId]})),l=[];if(a.forEach((function(e,t){var o=s&&s[t];if(o&&o.colId!==e.colId){var r=n.getGridColumn(o.colId);r&&l.push(r)}})),l.length){var u={type:je.EVENT_COLUMN_MOVED,columns:l,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(u)}},t.prototype.syncColumnWithStateItem=function(e,t,n,o,i,s,a){if(e){var l=function(e,o){var i={value1:void 0,value2:void 0},s=!1;return t&&(void 0!==t[e]&&(i.value1=t[e],s=!0),r(o)&&void 0!==t[o]&&(i.value2=t[o],s=!0)),!s&&n&&(void 0!==n[e]&&(i.value1=n[e]),r(o)&&void 0!==n[o]&&(i.value2=n[o])),i},u=l("hide").value1;void 0!==u&&e.setVisible(!u,a);var c=l("pinned").value1;void 0!==c&&e.setPinned(c);var p=this.columnUtils.calculateColMinWidth(e.getColDef()),d=l("flex").value1;if(void 0!==d&&e.setFlex(d),e.getFlex()<=0){var h=l("width").value1;null!=h&&null!=p&&h>=p&&e.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&(f===oe.SORT_DESC||f===oe.SORT_ASC?e.setSort(f,a):e.setSort(void 0,a));var g=l("sortIndex").value1;if(void 0!==g&&e.setSortIndex(g),!s&&e.isPrimary()){var m=l("aggFunc").value1;void 0!==m&&("string"===typeof m?(e.setAggFunc(m),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(r(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,a),de(this.valueColumns,e))));var v=l("rowGroup","rowGroupIndex"),y=v.value1,C=v.value2;void 0===y&&void 0===C||("number"===typeof C||y?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),o&&"number"===typeof C&&(o[e.getId()]=C)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),de(this.rowGroupColumns,e)));var w=l("pivot","pivotIndex"),b=w.value1,_=w.value2;void 0===b&&void 0===_||("number"===typeof _||b?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),i&&"number"===typeof _&&(i[e.getId()]=_)):e.isPivotActive()&&(e.setPivotActive(!1,a),de(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var o=t(e);o&&n.push(o)})),n},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,t,n){if(!e)return null;if("string"==typeof e&&n[e])return n[e];for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},t.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&r(this.groupAutoColumns)&&!i(this.groupAutoColumns)&&this.groupAutoColumns.find((function(n){return t.columnsMatch(n,e)}))||null},t.prototype.columnsMatch=function(e,t){var n=e===t,o=e.getColDef()===t,r=e.getColId()==t;return n||o||r},t.prototype.getDisplayNameForColumn=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;var o=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,o):o},t.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,n){var o=t?t.getColGroupDef():null;return o?this.getHeaderName(o,null,e,t,n):null},t.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},t.prototype.getHeaderName=function(e,t,n,o,r){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:n,providedColumnGroup:o,location:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return"function"===typeof i?i(s):"string"===typeof i?this.expressionService.evaluate(i,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?Ye(e.field):""},t.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var n,o=e.getColDef().pivotValueColumn,i=null;if(r(o)){var s=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,a=void 0!==e.getColDef().pivotTotalColumnIds;if(s&&!a)return t;i=o?o.getAggFunc():null,n=!0}else{var l=e.isValueActive(),u=this.pivotMode||!this.isRowGroupEmpty();l&&u?(i=e.getAggFunc(),n=!0):n=!1}if(n){var c="string"===typeof i?i:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(c,c)+"("+t+")"}return t},t.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof we)return e;var n=this.getAllDisplayedTrees(),o="number"===typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof we){var i=n;(o?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(r=i)}})),r},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,n){return t.setValueActive(n,e)}),(function(){}),(function(){}),(function(e){var t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0}),(function(e){return null!=e.initialAggFunc&&""!=e.initialAggFunc})),this.valueColumns.forEach((function(e){var t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)}))},t.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,n){return t.setRowGroupActive(n,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.initialRowGroupIndex}),(function(e){return e.rowGroup}),(function(e){return e.initialRowGroup}))},t.prototype.extractColumns=function(e,t,n,o,r,i,s){void 0===e&&(e=[]),void 0===t&&(t=[]);var a=[],c=[];(this.primaryColumns||[]).forEach((function(n){var p=e.indexOf(n)<0,d=n.getColDef(),h=u(i(d)),f=u(s(d)),g=l(o(d)),m=l(r(d));(void 0!==h?h:void 0!==g?null!==g&&g>=0:p?void 0!==f?f:!!(void 0!==m)&&(null!=m&&m>=0):t.indexOf(n)>=0)&&((p?null!=g||null!=m:null!=g)?a.push(n):c.push(n))}));var p=function(e){var t=o(e.getColDef()),n=r(e.getColDef());return null!=t?t:n};a.sort((function(e,t){var n=p(e),o=p(t);return n===o?0:n<o?-1:1}));var d=[].concat(a);return t.forEach((function(e){c.indexOf(e)>=0&&d.push(e)})),c.forEach((function(e){d.indexOf(e)<0&&d.push(e)})),t.forEach((function(e){d.indexOf(e)<0&&n(e,!1)})),d.forEach((function(e){t.indexOf(e)<0&&n(e,!0)})),d},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,n){return t.setPivotActive(n,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof be){var n=e.getColGroupDef(),o={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(o)}})),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){t instanceof be&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e},t.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var o=[];e.forEach((function(e){var t=e.groupId,r=e.open,i=n.getProvidedColumnGroup(t);i&&i.isExpanded()!==r&&(n.logger.log("columnGroupOpened("+i.getGroupId()+","+r+")"),i.setExpanded(r),o.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),o.forEach((function(e){var t={type:je.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,n){var o;void 0===n&&(n="api"),o=e instanceof be?e.getId():e||"",this.setColumnGroupState([{groupId:o,open:t}],n)},t.prototype.getProvidedColumnGroup=function(e){"string"!==typeof e&&console.error("AG Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){n instanceof be&&n.getId()===e&&(t=n)})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&i(this.secondaryColumns)?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&me(e.groupAutoColumns,t),o=e.valueColumns&&me(e.valueColumns,t);return n||o})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&me(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){r(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&r(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return r(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,t){var n=this;void 0===t&&(t="api");var o=e&&e.length>0;if(o||!i(this.secondaryColumns)){if(o){this.processSecondaryColumnDefinitions(e);var r=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=r.columnTree,this.secondaryHeaderRowCount=r.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(e){return n.secondaryColumnsMap[e.getId()]=e})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){e&&function e(o){o.forEach((function(o){if(r(o.children)){var i=o;n&&n(i),e(i.children)}else t&&t(o)}))}(e)}},t.prototype.updateGridColumns=function(){var e=this;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var t=this.secondaryColumns.every((function(t){return void 0!==e.gridColumnsMap[t.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,t&&this.orderGridColsLike(this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLike(this.lastPrimaryOrder));this.addAutoGroupToGridColumns(),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t})),this.setAutoHeightActive();var n={type:je.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(e){return e.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();if(!(e===oe.ROW_MODEL_TYPE_CLIENT_SIDE||e===oe.ROW_MODEL_TYPE_SERVER_SIDE)){A((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}}},t.prototype.orderGridColsLike=function(e){if(!i(e)){var t=$e(e.map((function(e,t){return[e,t]}))),n=!0;if(this.gridColumns.forEach((function(e){t.has(e)&&(n=!1)})),!n){var o=$e(this.gridColumns.map((function(e){return[e,!0]}))),r=e.filter((function(e){return o.has(e)})),s=$e(r.map((function(e){return[e,!0]}))),a=this.gridColumns.filter((function(e){return!s.has(e)})),l=r.slice();a.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;){t.getLeafColumns().forEach((function(e){var t=l.indexOf(e)>=0,o=n.indexOf(e)<0;t&&o&&n.push(e)})),t=t.getOriginalParent()}if(n.length){var o=n.map((function(e){return l.indexOf(e)})),r=Math.max.apply(Math,rt(o));fe(l,e,r+1)}else l.push(e)}else l.push(e)})),this.gridColumns=l}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},t.prototype.placeLockedColumns=function(e){var t=[],n=[],o=[];return e.forEach((function(e){var r=e.getColDef().lockPosition;"right"===r?o.push(e):"left"===r||!0===r?t.push(e):n.push(e)})),rt(t,n,o)},t.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!i(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},t.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[]},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:je.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((function(e){return e.isAutoHeight()}))},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),o=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(r){if(o){var i=t.getWidthOfColsInList(r);r.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var s=0;r.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}he(n,r)})),n.forEach((function(t){t.setLeft(null,e)}))}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof we&&e.checkLeft()}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof ae&&t.push(e)}))},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?this.viewportColumnsCenter=this.displayedColumnsCenter:this.viewportColumnsCenter=this.filterOutColumnsWithinViewport(),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case oe.PINNED_LEFT:n=this.viewportRowLeft[t];break;case oe.PINNED_RIGHT:n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return i(n)&&(n=[]),n},t.prototype.extractViewportRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.viewportColumns.forEach((function(t){return e[t.getId()]=!0}));var t=function t(n,o,r){for(var i=!1,s=0;s<n.length;s++){var a=n[s],l=!1;if(a instanceof ae)l=!0===e[a.getId()];else{var u=a.getDisplayedChildren();u&&(l=t(u,o,r+1))}l&&(i=!0,o[r]||(o[r]=[]),o[r].push(a))}return i};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){this.extractViewportColumns(),this.extractViewportRows()},t.prototype.filterOutColumnsWithinViewport=function(){return this.displayedColumnsCenter.filter(this.isColumnInViewport.bind(this))},t.prototype.refreshFlexedColumns=function(e){var t=this;void 0===e&&(e={});var n=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var o=-1;e.resizingCols&&e.resizingCols.forEach((function(e){var n=t.displayedColumnsCenter.indexOf(e);o<n&&(o=n)}));var i=function(e){var n=t.displayedColumnsCenter.indexOf(e)>o;return e.getFlex()&&n},s=this.displayedColumnsCenter.filter((function(e){return!i(e)})),a=this.displayedColumnsCenter.filter((function(e){return i(e)})),l=[];if(!a.length)return[];var u,c=[];e:for(;;){var p=a.reduce((function(e,t){return e+t.getFlex()}),0);u=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var d=0;d<a.length;d++){var h=a[d],f=u*h.getFlex()/p,g=0,m=h.getMinWidth(),v=h.getMaxWidth();if(r(m)&&f<m?g=m:r(v)&&f>v&&(g=v),g){h.setActualWidth(g,n),de(a,h),l.push(h),s.push(h);continue e}c[d]=Math.round(f)}break}var y=u;return a.forEach((function(e,t){e.setActualWidth(Math.min(c[t],y),n),l.push(e),y-=c[t]})),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(l,!0,n,a),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),a},t.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var o=this.getAllDisplayedColumns();if(!(e<=0)&&o.length){var i=[],s=[];o.forEach((function(e){!0===e.getColDef().suppressSizeToFit?s.push(e):i.push(e)}));var a=i.slice(0),l=!1,u=function(e){de(i,e),s.push(e)};for(i.forEach((function(e){return e.resetActualWidth(t)}));!l;){l=!0;var c=e-this.getWidthOfColsInList(s);if(c<=0)i.forEach((function(e){e.setMinimum(t)}));else for(var p=c/this.getWidthOfColsInList(i),d=c,h=i.length-1;h>=0;h--){var f=i[h],g=f.getMinWidth(),m=f.getMaxWidth(),v=Math.round(f.getActualWidth()*p);r(g)&&v<g?(v=g,u(f),l=!1):r(m)&&f.isGreaterThanMax(v)?(v=m,u(f),l=!1):0===h&&(v=d),f.setActualWidth(v,t,!0),d-=v}}a.forEach((function(e){e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),n||this.fireColumnResizedEvent(a,!0,t)}},t.prototype.buildDisplayedTrees=function(e){var t=[],n=[],o=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":n.push(e);break;default:o.push(e)}}));var r=new We;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,oe.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,oe.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof we&&e.calculateDisplayedColumns()}))},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e){var n=this.groupAutoColumns||[],o=this.autoGroupColService.createAutoGroupColumns(n,this.rowGroupColumns);(!this.autoColsEqual(o,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=o)}else this.groupAutoColumns=null}},t.prototype.autoColsEqual=function(e,t){return ce(e,t,(function(e,t){return e.getColId()===t.getColId()}))},t.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(e){return e.getColDef().floatingFilter}))},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var n=0;n<t.length;n++){var o=this[t[n]]();if(o.length)return e?ue(o):o[0]}return null},et([Z("expressionService")],t.prototype,"expressionService",void 0),et([Z("columnFactory")],t.prototype,"columnFactory",void 0),et([Z("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),et([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),et([Z("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),et([Z("columnUtils")],t.prototype,"columnUtils",void 0),et([Z("columnAnimationService")],t.prototype,"columnAnimationService",void 0),et([Z("autoGroupColService")],t.prototype,"autoGroupColService",void 0),et([Y("aggFuncService")],t.prototype,"aggFuncService",void 0),et([Y("valueCache")],t.prototype,"valueCache",void 0),et([Y("animationFrameService")],t.prototype,"animationFrameService",void 0),et([Z("rowModel")],t.prototype,"rowModel",void 0),et([Z("columnApi")],t.prototype,"columnApi",void 0),et([Z("gridApi")],t.prototype,"gridApi",void 0),et([Z("sortController")],t.prototype,"sortController",void 0),et([Z("columnDefFactory")],t.prototype,"columnDefFactory",void 0),et([z],t.prototype,"init",null),et([tt(0,$("loggerFactory"))],t.prototype,"setBeans",null),t=et([q("columnModel")],t)}(Fe),st=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),at=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return st(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.gridOptionsWrapper.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,n=this.calculateColMinWidth(e),o=this.calculateColMaxWidth(e),r=l(e.width),i=l(e.initialWidth);return t=null!=r?r:null!=i?i:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(t,o),n)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1;return function t(r,i){for(var s=0;s<r.length;s++){if(o)return;var a=r[s];if(a instanceof be)t(a.getChildren(),i+1),n[i]=a;else a===e&&(o=!0)}}(t,0),o?n:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var o=this;t&&t.forEach((function(t){t instanceof be&&o.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof we&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof we&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},t=at([q("columnUtils")],t)}(Fe),ut=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ct=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ut(t,e),t.prototype.createDisplayedGroups=function(e,t,n,o,r){var i,s,a=this,l=[],u=this.mapOldGroupsById(r);return e.forEach((function(e){for(var r=a.getOriginalPathForColumn(t,e),c=[],p=!s,d=0;d<r.length;d++)if(p||r[d]!==s[d]){var h=a.createColumnGroup(r[d],n,u,o);c[d]=h,0==d?l.push(h):c[d-1].addChild(h)}else c[d]=i[d];0===c.length?l.push(e):ue(c).addChild(e);i=c,s=r})),this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,t,n,o){var i=e.getGroupId(),s=t.getInstanceIdForKey(i),a=n[we.createUniqueId(i,s)];return a&&a.getProvidedColumnGroup()!==e&&(a=null),r(a)?a.reset():(a=new we(e,i,s,o),this.context.createBean(a)),a},t.prototype.mapOldGroupsById=function(e){var t={};return e&&function e(n){n.forEach((function(n){if(n instanceof we){var o=n;t[n.getUniqueId()]=o,e(o.getChildren())}}))}(e),t},t.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach((function(e){if(e.setParent(t),e instanceof we){var o=e;n.setupParentsIntoColumns(o.getChildren(),o)}}))},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1;return function e(r,i){for(var s=0;s<r.length;s++){if(o)return;var a=r[s];a instanceof be?(e(a.getChildren(),i+1),n[i]=a):a===t&&(o=!0)}}(e,0),o?n:(console.warn("AG Grid: could not get path"),null)},t=ct([q("displayedGroupCreator")],t)}(Fe),dt=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},ht=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dt(arguments[t]));return e},ft=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","statusBar","sideBar","chartThemeOverrides","customChartThemes"],e.ARRAY_PROPERTIES=["alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],e.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges"],e.FUNCTION_PROPERTIES=["localeTextFunc","getLocaleText","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","groupRowAggNodes","getGroupRowAgg","getRowNodeId","isFullWidthCell","isFullWidthRow","fullWidthCellRenderer","fullWidthCellRendererFramework","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","isRowMaster","isRowSelectable","postSort","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","defaultGroupSortComparator","defaultGroupOrderComparator","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],e.ALL_PROPERTIES=ht(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),gt=function(){return gt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},gt.apply(this,arguments)},mt=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},vt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mt(arguments[t]));return e},yt=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=e.EVENTS.map((function(t){return e.getCallbackForEvent(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,n,o){"object"!==typeof t&&(t={});var r=t,i=function(e){return"undefined"!==typeof n[e]};return i("groupAggFiltering")&&"function"!==typeof n.groupAggFiltering&&(r.groupAggFiltering=e.toBoolean(n.groupAggFiltering),delete n.groupAggFiltering),vt(e.ARRAY_PROPERTIES,e.STRING_PROPERTIES,e.OBJECT_PROPERTIES,e.FUNCTION_PROPERTIES,e.getEventCallbacks()).filter(i).forEach((function(e){return r[e]=n[e]})),e.BOOLEAN_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toBoolean(n[t])})),e.NUMBER_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toNumber(n[t])})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,n,o,r){if(t){var i=gt({},t),s=n,a=function(e){return i[e]};a("groupAggFiltering")&&("function"===typeof i.groupAggFiltering?s.groupAggFiltering=i.groupAggFiltering:s.groupAggFiltering=e.toBoolean(i.groupAggFiltering),delete i.groupAggFiltering),i.rowClass&&(o.setRowClass(i.rowClass.currentValue),delete i.rowClass),vt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(a).forEach((function(e){return s[e]=i[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toBoolean(i[t].currentValue)})),e.NUMBER_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toNumber(i[t].currentValue)})),i.enableCellTextSelection&&(o.setEnableCellTextSelection(e.toBoolean(i.enableCellTextSelection.currentValue)),delete i.enableCellTextSelection),i.quickFilterText&&(o.setQuickFilter(i.quickFilterText.currentValue),delete i.quickFilterText),i.autoGroupColumnDef&&(o.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.columnDefs&&(o.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs),i.defaultColDef&&(o.setDefaultColDef(i.defaultColDef.currentValue,"gridOptionsChanged"),delete i.defaultColDef),i.paginationPageSize&&(o.paginationSetPageSize(e.toNumber(i.paginationPageSize.currentValue)),delete i.paginationPageSize),i.pivotMode&&(r.setPivotMode(e.toBoolean(i.pivotMode.currentValue)),delete i.pivotMode),i.groupRemoveSingleChildren&&(o.setGroupRemoveSingleChildren(e.toBoolean(i.groupRemoveSingleChildren.currentValue)),delete i.groupRemoveSingleChildren),i.suppressRowDrag&&(o.setSuppressRowDrag(e.toBoolean(i.suppressRowDrag.currentValue)),delete i.suppressRowDrag),i.suppressMoveWhenRowDragging&&(o.setSuppressMoveWhenRowDragging(e.toBoolean(i.suppressMoveWhenRowDragging.currentValue)),delete i.suppressMoveWhenRowDragging),i.suppressRowClickSelection&&(o.setSuppressRowClickSelection(e.toBoolean(i.suppressRowClickSelection.currentValue)),delete i.suppressRowClickSelection),i.suppressClipboardPaste&&(o.setSuppressClipboardPaste(e.toBoolean(i.suppressClipboardPaste.currentValue)),delete i.suppressClipboardPaste),i.headerHeight&&(o.setHeaderHeight(e.toNumber(i.headerHeight.currentValue)),delete i.headerHeight);var l=o;Object.keys(i).forEach((function(e){var n="set"+e.charAt(0).toUpperCase()+e.substring(1);l[n]&&l[n](t[e].currentValue)}));var u={type:je.EVENT_COMPONENT_STATE_CHANGED,api:n.api,columnApi:n.columnApi};f(t,(function(e,t){u[e]=t})),o.dispatchEvent(u)}},e.toBoolean=function(e){return"boolean"===typeof e?e:"string"===typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"===typeof e?e:"string"===typeof e?Number(e):void 0},e.EVENTS=[],e.PUBLIC_EVENTS=[],e.EXCLUDED_INTERNAL_EVENTS=[],e.STRING_PROPERTIES=ft.STRING_PROPERTIES,e.OBJECT_PROPERTIES=ft.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=ft.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=ft.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=ft.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=ft.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=ft.ALL_PROPERTIES,e}();yt.EVENTS=p(je),yt.EXCLUDED_INTERNAL_EVENTS=[je.EVENT_SCROLLBAR_WIDTH_CHANGED,je.EVENT_CHECKBOX_CHANGED,je.EVENT_HEIGHT_SCALE_CHANGED,je.EVENT_BODY_HEIGHT_CHANGED,je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,je.EVENT_SCROLL_VISIBILITY_CHANGED,je.EVENT_COLUMN_HOVER_CHANGED,je.EVENT_FLASH_CELLS,je.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,je.EVENT_DISPLAYED_ROWS_CHANGED,je.EVENT_LEFT_PINNED_WIDTH_CHANGED,je.EVENT_RIGHT_PINNED_WIDTH_CHANGED,je.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,je.EVENT_POPUP_TO_FRONT,je.EVENT_KEYBOARD_FOCUS,je.EVENT_MOUSE_FOCUS,je.EVENT_STORE_UPDATED,je.EVENT_COLUMN_PANEL_ITEM_DRAG_START,je.EVENT_COLUMN_PANEL_ITEM_DRAG_END,je.EVENT_FILL_START,je.EVENT_FILL_END,je.EVENT_FULL_WIDTH_ROW_FOCUSED],yt.PUBLIC_EVENTS=yt.EVENTS.filter((function(e){return!me(yt.EXCLUDED_INTERNAL_EVENTS,e)}));var Ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Ct(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach((function(e){return t.addComponent(e)}))},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=wt([q("agStackComponentsRegistry")],t)}(Fe),_t=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Et=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_t(arguments[t]));return e},St=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","filter","initialAggFunc","defaultAggFunc","aggFunc","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","floatingFilterFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=Et(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Rt=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Ot=function(){function e(e,t,n,o){void 0===o&&(o=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,o||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var n=e.nameToHex[t];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.parseHex=function(e){var t;switch((e=e.replace(/ /g,"").slice(1)).length){case 6:case 8:t=[];for(var n=0;n<e.length;n+=2)t.push(parseInt(""+e[n]+e[n+1],16));break;case 3:case 4:t=e.split("").map((function(e){return parseInt(e,16)})).map((function(e){return e+16*e}))}if(t.length>=3&&t.every((function(e){return e>=0})))return 3===t.length&&t.push(255),t},e.fromHexString=function(t){var n=e.parseHex(t);if(n){var o=Rt(n,4);return new e(o[0]/255,o[1]/255,o[2]/255,o[3]/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.stringToRgba=function(e){for(var t=Rt([NaN,NaN],2),n=t[0],o=t[1],r=0;r<e.length;r++){var i=e[r];if(n||"("!==i){if(")"===i){o=r;break}}else n=r}var s=n&&o&&e.substring(n+1,o);if(s){var a=s.split(","),l=[];for(r=0;r<a.length;r++){var u=a[r],c=parseFloat(u);if(isNaN(c))return;u.indexOf("%")>=0?(c=Math.max(0,Math.min(100,c)),c/=100):3===r?c=Math.max(0,Math.min(1,c)):(c=Math.max(0,Math.min(255,c)),c/=255),l.push(c)}return l}},e.fromRgbaString=function(t){var n=e.stringToRgba(t);if(n){if(3===n.length)return new e(n[0],n[1],n[2]);if(4===n.length)return new e(n[0],n[1],n[2],n[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,o,r){void 0===r&&(r=1);var i=e.HSBtoRGB(t,n,o);return new e(i[0],i[1],i[2],r)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,n){var o=Math.min(e,t,n),r=Math.max(e,t,n),i=NaN;if(o!==r){var s=r-o,a=(r-e)/s,l=(r-t)/s,u=(r-n)/s;i=e===r?u-l:t===r?2+a-u:4+l-a,(i/=6)<0&&(i+=1)}return[360*i,0!==r?(r-o)/r:0,r]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var o=0,r=0,i=0;if(0===t)o=r=i=n;else{var s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=n*(1-t),u=n*(1-t*a),c=n*(1-t*(1-a));switch(s>>0){case 0:o=n,r=c,i=l;break;case 1:o=u,r=n,i=l;break;case 2:o=l,r=n,i=c;break;case 3:o=l,r=u,i=n;break;case 4:o=c,r=l,i=n;break;case 5:o=n,r=l,i=u}}return[o,r,i]},e.prototype.derive=function(t,n,o,r){var i=e.RGBtoHSB(this.r,this.g,this.b),s=i[2];0==s&&o>1&&(s=.05);var a=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*n,1),0);s=Math.max(Math.min(s*o,1),0);var u=Math.max(Math.min(this.a*r,1),0),c=e.HSBtoRGB(a,l,s);return c.push(u),e.fromArray(c)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();function Pt(e,t){void 0===t&&(t=",");var n=[],o=function(e){return"\r"===e||"\n"===e},r=!1;if(""===e)return[[""]];for(var i,s,a,l=function(l,u,c){var p=e[c-1],d=e[c],h=e[c+1],f=function(){n[l]||(n[l]=[]),n[l][u]||(n[l][u]="")};if(f(),'"'===d){if(r)return'"'===h?(n[l][u]+='"',c++):r=!1,i=l,s=u,a=c,"continue";if(void 0===p||p===t||o(p))return r=!0,i=l,s=u,a=c,"continue"}if(!r){if(d===t)return u++,f(),i=l,s=u,a=c,"continue";if(o(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&c++,i=l,s=u,a=c,"continue"}n[l][u]+=d,i=l,s=u,a=c},u=0,c=0,p=0;p<e.length;p++)l(u,c,p),u=i,c=s,p=a;return n}var Tt,xt,At,Dt,Nt,Lt,It,Mt,Ft=Object.freeze({stringToArray:Pt}),kt=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Gt(){return void 0===At&&(void 0===xt&&(xt=!!document.documentMode),At=!xt&&!!window.StyleMedia),At}function Ht(){return void 0===Tt&&(Tt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Tt}function Vt(){if(void 0===Dt){var e=window;Dt=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Dt}function jt(){if(void 0===Nt){var e=window;Nt="undefined"!==typeof e.InstallTrigger}return Nt}function Wt(){return void 0===Lt&&(Lt=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),Lt}function Bt(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute("tabIndex");return-1!==t||null!==n&&(""!==n||jt())?t.toString():null}function Ut(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var o=2*e;if(n.style.height=o+"px",o>t||n.clientHeight!==o)break;e=o}return document.body.removeChild(n),e}function zt(){return null==Mt&&Kt(),Mt}function Kt(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var n=t.offsetWidth-t.clientWidth;0===n&&0===t.clientWidth&&(n=null),t.parentNode&&t.parentNode.removeChild(t),null!=n&&(Mt=n,It=0===n)}function qt(){return null==It&&Kt(),It}function Zt(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function Yt(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var Qt,$t=Object.freeze({isBrowserEdge:Gt,isBrowserSafari:Ht,isBrowserChrome:Vt,isBrowserFirefox:jt,isIOSUserAgent:Wt,getTabIndex:Bt,getMaxDivHeight:Ut,getScrollbarWidth:zt,isInvisibleScrollbar:qt,hasOverflowScrolling:function(){var e,t,n=["webkit","moz","o","ms"],o=document.createElement("div"),r=!1;document.getElementsByTagName("body")[0].appendChild(o),o.setAttribute("style",n.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var i=window.getComputedStyle(o);if("touch"===i.overflowScrolling&&(r=!0),!r)try{for(var s=kt(n),a=s.next();!a.done;a=s.next())if("touch"===i[a.value+"OverflowScrolling"]){r=!0;break}}catch(l){e={error:l}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return o.parentNode&&o.parentNode.removeChild(o),r},getBodyWidth:Zt,getBodyHeight:Yt});function Xt(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,oe.INPUT_SELECTOR),o=t.call(e,oe.FOCUSABLE_EXCLUDE),r=fn(e);return n&&!o&&r}function Jt(e,t){e.classList.toggle("ag-hidden",!t)}function en(e,t){e.classList.toggle("ag-invisible",!t)}function tn(e,t){var n="disabled",o=t?function(e){return e.setAttribute(n,"")}:function(e){return e.removeAttribute(n)};o(e),In(e.querySelectorAll("input"),(function(e){return o(e)}))}function nn(e,t,n){for(var o=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,n&&++o>n)break}return!1}function on(e){var t=window.getComputedStyle(e),n=t.height,o=t.width,r=t.paddingTop,i=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,l=t.marginTop,u=t.marginRight,c=t.marginBottom,p=t.marginLeft,d=t.boxSizing;return{height:parseFloat(n),width:parseFloat(o),paddingTop:parseFloat(r),paddingRight:parseFloat(i),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(u),marginBottom:parseFloat(c),marginLeft:parseFloat(p),boxSizing:d}}function rn(e){var t=on(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function sn(e){var t=on(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function an(e){var t=on(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function ln(e){var t=on(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function un(){if("boolean"===typeof Qt)return Qt;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='<div style="width: 2px">\n <span style="display: inline-block; width: 1px"></span>\n <span style="display: inline-block; width: 1px"></span>\n </div>',document.body.appendChild(e),e.scrollLeft=1,Qt=0===Math.floor(e.scrollLeft),document.body.removeChild(e),Qt}function cn(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),Vt()&&!un()&&(n=e.scrollWidth-e.clientWidth-n)),n}function pn(e,t,n){n&&(un()?t*=-1:(Ht()||Vt())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function dn(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function hn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function fn(e){return null!==e.offsetParent}function gn(e){if(null!==DOMParser)return(new DOMParser).parseFromString(e,"text/html").body.firstChild;var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function mn(e){return e&&e.clientHeight?e.clientHeight:0}function vn(e){return e&&e.clientWidth?e.clientWidth:0}function yn(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function Cn(e,t){for(var n=0;n<t.length;n++){var o=t[n],r=e.children[n];r!==o&&e.insertBefore(o,r)}}function wn(e,t,n){n?n.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function bn(e,t){t&&Object.keys(t).forEach((function(n){var o=Ke(n);o&&(e.style[o]=t[n])}))}function _n(e){return e.clientWidth<e.scrollWidth}function En(e){return e.clientHeight<e.scrollHeight}function Sn(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Rn(e,t)}function Rn(e,t){t=Pn(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function On(e,t){t=Pn(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Pn(e){return"number"===typeof e?e+"px":e}function Tn(e){return"function"===typeof Node?e instanceof Node:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName}function xn(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&R(e)&&1===e.nodeType&&"string"===typeof e.nodeName}function An(e){return Tn(e)||xn(e)}function Dn(e){if(null==e)return[];var t=[];return In(e,(function(e){return t.push(e)})),t}function Nn(e,t){if(e)for(var n=0;n<e.length;n++){var o=e[n];t(o.name,o.value)}}function Ln(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n.toString())}function In(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n])}var Mn=Object.freeze({radioCssClass:function(e,t,n){for(var o=e.parentElement,r=o&&o.firstChild;r;)t&&r.classList.toggle(t,r===e),n&&r.classList.toggle(n,r!==e),r=r.nextSibling},isFocusableFormField:Xt,setDisplayed:Jt,setVisible:en,setDisabled:tn,isElementChildOfClass:nn,getElementSize:on,getInnerHeight:rn,getInnerWidth:sn,getAbsoluteHeight:an,getAbsoluteWidth:ln,isRtlNegativeScroll:un,getScrollLeft:cn,setScrollLeft:pn,clearElement:dn,removeElement:function(e,t){hn(e.querySelector(t))},removeFromParent:hn,isVisible:fn,loadTemplate:gn,appendHtml:function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},getElementAttribute:function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},offsetHeight:mn,offsetWidth:vn,ensureDomOrder:yn,setDomChildOrder:Cn,insertWithDomOrder:wn,prependDC:function(e,t){r(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:bn,isHorizontalScrollShowing:_n,isVerticalScrollShowing:En,setElementWidth:Sn,setFixedWidth:Rn,setElementHeight:function(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):On(e,t)},setFixedHeight:On,formatSize:Pn,isNode:Tn,isElement:xn,isNodeOrElement:An,copyNodeList:Dn,iterateNamedNodeMap:Nn,setCheckboxState:function(e,t){"boolean"===typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},addOrRemoveAttribute:Ln,nodeListForEach:In});var Fn=Object.freeze({getNameOfClass:function(e){var t=e.toString(),n=/function (.{1,})\(/.exec(t);return n&&n.length>1?n[1]:""},findLineByLeastSquares:function(e){var t=e.length,n=0;if(t<=1)return e;for(var o=0;o<e.length;o++){var r=e[o],i=r.toString().split("e-");i.length>1?n=Math.max(n,parseInt(i[1],10)):Math.floor(r)!==r&&(n=Math.max(n,r.toString().split(".")[1].length))}for(var s=0,a=0,l=0,u=0,c=0,p=0;p<t;p++)s+=p,a+=c=e[p],u+=p*p,l+=p*c;var d=(t*l-s*a)/(t*u-s*s),h=a/t-d*s/t,f=[];for(p=0;p<=t;p++)f.push(parseFloat((p*d+h).toFixed(n)));return f},cssStyleObjectToMarkup:function(e){if(!e)return"";var t=[];return f(e,(function(e,n){var o=ze(e);t.push(o+": "+n+";")})),t.join(" ")},message:function(e){var t=document.createElement("div"),n=document.querySelector("#__ag__message");if(t.innerHTML=e,!n){n=gn('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(n)}n.insertBefore(t,n.children[0])},bindCellRendererToHtmlElement:function(e,t){e.then((function(e){var n=e.getGui();null!=n&&("object"===typeof n?t.appendChild(n):t.innerHTML=n)}))}});function kn(e,t,n){e.setAttribute(Hn(t),n.toString())}function Gn(e,t){e.removeAttribute(Hn(t))}function Hn(e){return"aria-"+e}function Vn(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function jn(e){return e.isSortAscending()?"ascending":e.isSortDescending()?"descending":"none"}function Wn(e){return parseInt(e.getAttribute("aria-level"),10)}function Bn(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Un(e,t){var n="label";t?kn(e,n,t):Gn(e,n)}function zn(e,t){var n="labelledby";t?kn(e,n,t):Gn(e,n)}function Kn(e,t){var n="description";t?kn(e,n,t):Gn(e,n)}function qn(e,t){var n="describedby";t?kn(e,n,t):Gn(e,n)}function Zn(e,t){kn(e,"level",t)}function Yn(e,t){kn(e,"disabled",t)}function Qn(e,t){kn(e,"expanded",t)}function $n(e){Gn(e,"expanded")}function Xn(e,t){kn(e,"setsize",t)}function Jn(e,t){kn(e,"posinset",t)}function eo(e,t){kn(e,"multiselectable",t)}function to(e,t){kn(e,"rowcount",t)}function no(e,t){kn(e,"rowindex",t)}function oo(e,t){kn(e,"colcount",t)}function ro(e,t){kn(e,"colindex",t)}function io(e,t){kn(e,"colspan",t)}function so(e,t){kn(e,"sort",t)}function ao(e){Gn(e,"sort")}function lo(e,t){var n="selected";t?kn(e,n,t):Gn(e,n)}function uo(e,t){kn(e,"checked",void 0===t?"mixed":t)}var co=Object.freeze({setAriaRole:Vn,getAriaSortState:jn,getAriaLevel:Wn,getAriaPosInSet:Bn,getAriaDescribedBy:function(e){return e.getAttribute("aria-describedby")||""},setAriaLabel:Un,setAriaLabelledBy:zn,setAriaDescription:Kn,setAriaDescribedBy:qn,setAriaLevel:Zn,setAriaDisabled:Yn,setAriaExpanded:Qn,removeAriaExpanded:$n,setAriaSetSize:Xn,setAriaPosInSet:Jn,setAriaMultiSelectable:eo,setAriaRowCount:to,setAriaRowIndex:no,setAriaColCount:oo,setAriaColIndex:ro,setAriaColSpan:io,setAriaSort:so,removeAriaSort:ao,setAriaSelected:lo,setAriaChecked:uo});function po(e,t){return e.toString().padStart(t,"0")}function ho(e,t){for(var n=[],o=e;o<=t;o++)n.push(o);return n}function fo(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function go(e,t,n){return"number"!==typeof e?"":e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}var mo=Object.freeze({padStartWidthZeros:po,createArrayOfNumbers:ho,isNumeric:fo,cleanNumber:function(e){return"string"===typeof e&&(e=parseInt(e,10)),"number"===typeof e?Math.floor(e):null},decToHex:function(e,t){for(var n="",o=0;o<t;o++)n+=String.fromCharCode(255&e),e>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e,t,n){return"number"!==typeof e?"":go(Math.round(100*e)/100,t,n)},formatNumberCommas:go,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}}),vo=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s};function yo(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n="-"),!e)return null;var o=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return po(e,2)})).join(n);return t&&(o+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return po(e,2)})).join(":")),o}function Co(e){if(!e)return null;var t=vo(e.split(" "),2),n=t[0],o=t[1];if(!n)return null;var r=n.split("-").map((function(e){return parseInt(e,10)}));if(3!==r.filter((function(e){return!isNaN(e)})).length)return null;var i=vo(r,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(!o||"00:00:00"===o)return u;var c=vo(o.split(":").map((function(e){return parseInt(e,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 wo=Object.freeze({serialiseDate:yo,parseDateTimeFromString:Co});function bo(e,t,n){var o={},r=e.filter((function(e){return!t.some((function(t){return t===e}))}));return r.length>0&&r.forEach((function(e){return o[e]=_o(e,n)})),o}function _o(e,t,n,o){var r=o?Ro:So,i=t.map((function(t){return{value:t,relevance:r(e.toLowerCase(),t.toLocaleLowerCase())}}));return i.sort((function(e,t){return t.relevance-e.relevance})),n&&(i=i.filter((function(e){return 0!==e.relevance}))),i.map((function(e){return e.value}))}function Eo(e){var t,n,o,r=e.toLowerCase(),i=new Array(r.length-1);for(t=n=0,o=i.length;n<=o;t=n+=1)i[t]=r.slice(t,t+2);return i}function So(e,t){if(0===e.length&&0===t.length)return 0;var n,o,r=Eo(e),i=Eo(t),s=r.length+i.length,a=0;for(n=0,o=r.length;n<o;n++){var l,u=r[n],c=void 0;for(c=0,l=i.length;c<l;c++){u===i[c]&&a++}}return a>0?2*a/s:0}function Ro(e,t){for(var n=e.replace(/\s/g,""),o=t.replace(/\s/g,""),r=0,i=0,s=0;s<n.length;s++){var a=o.indexOf(n[s],i);-1!==a&&(r+=100-100*(i=a)/1e4*100)}return r}var Oo=Object.freeze({fuzzyCheckStrings:bo,fuzzySuggestions:_o,get_bigrams:Eo,string_distances:So,string_weighted_distances:Ro}),Po={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};function To(e,t,n){var o=xo(e,t,n);if(o&&o.className.indexOf("ag-icon")>-1)return o;var r=document.createElement("span");return r.appendChild(o),r}function xo(e,t,n,o){var r=null,i=n&&n.getColDef().icons;if(i&&(r=i[e]),t&&!r){var s=t.getIcons();s&&(r=s[e])}if(!r){var a=document.createElement("span"),l=Po[e];return l||(o?l=e:(console.warn("AG Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),Vn(a,"presentation"),a}var u=void 0;if("function"===typeof r)u=r();else{if("string"!==typeof r)throw new Error("icon from grid options needs to be a string or a function");u=r}return"string"===typeof u?gn(u):An(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Ao=Object.freeze({iconNameClassMap:Po,createIcon:To,createIconNoSpan:xo});function Do(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;var t=1===e.key.length,n=function(e){return Gt()&&"Del"===e.key&&46===e.charCode}(e);return t||n}function No(e,t,n,o,r){var i=e.getSuppressKeyboardEventFunc(),s=o?o.getColDef().suppressKeyboardEvent:void 0;if(!i&&!s)return!1;var a={event:t,editing:r,column:o,api:e.getApi(),node:n,data:n.data,colDef:o.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};if(s&&s(a))return!0;return!!i&&i(a)}function Lo(e,t,n,o){var i=o.getDefinition(),s=i&&i.suppressHeaderKeyboardEvent;return!!r(s)&&!!s({api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext(),colDef:i,column:o,headerRowIndex:n,event:t})}var Io=Object.freeze({isEventFromPrintableCharacter:Do,isUserSuppressingKeyboardEvent:No,isUserSuppressingHeaderKeyboardEvent:Lo});function Mo(e,t,n){if(0===n)return!1;var o=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY);return Math.max(o,r)<=n}var Fo=Object.freeze({areEventsNear:Mo});var ko=Object.freeze({sortRowNodesByOrder:function(e,t){if(e){for(var n=function(e,n){var o=t[e.id],r=t[n.id],i=void 0!==o,s=void 0!==r;return i&&s?o-r:!i&&!s?e.__objectId-n.__objectId:i?1:-1},o=!1,r=0;r<e.length-1;r++)if(n(e[r],e[r+1])>0){o=!0;break}o&&e.sort(n)}},traverseNodesWithKey:function(e,t){var n=[];!function e(o){if(!o)return;o.forEach((function(o){if(o.group||o.hasChildren()){n.push(o.key);var r=n.join("|");t(o,r),e(o.childrenAfterGroup),n.pop()}}))}(e)}});function Go(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var Ho,Vo=Object.freeze({convertToSet:Go}),jo=function(){return jo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},jo.apply(this,arguments)},Wo=jo(jo(jo(jo(jo(jo(jo(jo(jo(jo(jo(jo(jo(jo(jo(jo(jo(jo(jo(jo({},Fn),co),ye),$t),Ft),wo),Mn),Ie),W),Oo),d),Ao),Io),Xe),Fo),mo),O),ko),Vo),Qe),Bo=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();(Ho=t.AgPromiseStatus||(t.AgPromiseStatus={}))[Ho.IN_PROGRESS=0]="IN_PROGRESS",Ho[Ho.RESOLVED=1]="RESOLVED";var Uo,zo=function(){function e(e){var n=this;this.status=t.AgPromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],e((function(e){return n.onDone(e)}),(function(e){return n.onReject(e)}))}return e.all=function(t){return new e((function(e){var n=t.length,o=new Array(n);t.forEach((function(t,r){t.then((function(t){o[r]=t,0===--n&&e(o)}))}))}))},e.resolve=function(t){return void 0===t&&(t=null),new e((function(e){return e(t)}))},e.prototype.then=function(n){var o=this;return new e((function(e){o.status===t.AgPromiseStatus.RESOLVED?e(n(o.resolution)):o.waiters.push((function(t){return e(n(t))}))}))},e.prototype.resolveNow=function(e,n){return this.status===t.AgPromiseStatus.RESOLVED?n(this.resolution):e},e.prototype.onDone=function(e){this.status=t.AgPromiseStatus.RESOLVED,this.resolution=e,this.waiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),Ko=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}(),qo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zo=function(){return Zo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Zo.apply(this,arguments)},Yo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(Uo||(Uo={}));var Qo=function(e){function t(t){var n=e.call(this)||this;return n.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,n.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=Uo.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n}return qo(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!Wt()&&this.state==Uo.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=Uo.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===Uo.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Uo.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===Uo.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=Uo.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(n)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=Zo({},this.parentComp.getTooltipParams());if(r(e.value)){this.state=Uo.SHOWING,this.tooltipInstanceCount++;var t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(t)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==Uo.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var n=t.getGui();this.tooltipComp=t,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom");var o=this.gridOptionsWrapper.getLocaleTextFunc(),r=this.popupService.addPopup({eChild:n,ariaLabel:o("ariaLabelTooltip","Tooltip")});r&&(this.tooltipPopupDestroyFunc=r.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Yo([Z("popupService")],t.prototype,"popupService",void 0),Yo([Z("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Yo([Z("columnApi")],t.prototype,"columnApi",void 0),Yo([Z("gridApi")],t.prototype,"gridApi",void 0),Yo([z],t.prototype,"postConstruct",null),t}(Fe),$o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Jo=new Bo,er=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,n=(e||"").split(" ");n.length>1?n.forEach((function(e){return t.addCssClass(e)})):!0!==this.cssClassStates[e]&&e.length&&(this.getGui().classList.add(e),this.cssClassStates[e]=!0)},e.prototype.removeCssClass=function(e){var t=this,n=(e||"").split(" ");n.length>1?n.forEach((function(e){return t.removeCssClass(e)})):!1!==this.cssClassStates[e]&&e.length&&(this.getGui().classList.remove(e),this.cssClassStates[e]=!1)},e.prototype.containsCssClass=function(e){return this.getGui().classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,t){var n=this,o=(e||"").split(" ");o.length>1?o.forEach((function(e){return n.addOrRemoveCssClass(e,t)})):this.cssClassStates[e]!==t&&e.length&&(this.getGui().classList.toggle(e,t),this.cssClassStates[e]=t)},e}(),tr=function(e){function t(t){var n=e.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=Jo.next(),n.cssClassManager=new er((function(){return n.eGui})),t&&n.setTemplate(t),n}return $o(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new Qo(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var n=this;Dn(e.childNodes).forEach((function(o){if(o instanceof HTMLElement){var r=n.createComponentFromElement(o,(function(e){e.getGui()&&n.copyAttributesFromNode(o,e.getGui())}),t);if(r){if(r.addItems&&o.children.length){n.createChildComponentsFromTags(o,t);var i=Array.prototype.slice.call(o.children);r.addItems(i)}n.swapComponentForNode(r,e,o)}else o.childNodes&&n.createChildComponentsFromTags(o,t)}}))},t.prototype.createComponentFromElement=function(e,n,o){var r=e.nodeName,i=o?o[e.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(r);if(s){t.elementGettingCreated=e;var a=new s(i);return a.setParentComponent(this),this.createBean(a,null,n),a}return null},t.prototype.copyAttributesFromNode=function(e,t){Nn(e.attributes,(function(e,n){return t.setAttribute(e,n)}))},t.prototype.swapComponentForNode=function(e,t,n){var o=e.getGui();t.replaceChild(o,n),t.insertBefore(document.createComment(n.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var n=this;this.iterateOverQuerySelectors((function(o){n[o.attributeName]===t&&(n[o.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var n=t.__agComponentMetaData,o=D(t.constructor);n&&n[o]&&n[o].querySelectors&&n[o].querySelectors.forEach((function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=gn(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(n){var o=function(e){return t[n.attributeName]=e};if(n.refSelector&&e.eGui.getAttribute("ref")===n.refSelector)o(e.eGui);else{var r=e.eGui.querySelector(n.querySelector);r&&o(r.__agComponent||r)}}))}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(t||(t=this.eGui),null!=e)if(An(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,n))}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,en(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,Jt(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var n=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return n.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){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,t){this.cssClassManager.addOrRemoveCssClass(e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Xo([Z("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Xo([U],t.prototype,"preConstructOnComponent",null),Xo([U],t.prototype,"createChildComponentsPreConstruct",null),t}(Fe);function nr(e){return or.bind(this,"[ref="+e+"]",e)}function or(e,t,n,o,r){null!==e?"number"!==typeof r?function(e,t,n){var o=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,D(e.constructor));o[t]||(o[t]=[]);o[t].push(n)}(n,"querySelectors",{attributeName:o,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var rr,ir=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ar=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return ir(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+n("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var o=n.getModelAsString(e);t.eFloatingFilterText.setValue(o)}})):this.eFloatingFilterText.setValue("")},sr([nr("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),sr([Z("columnModel")],t.prototype,"columnModel",void 0),t}(tr),lr=function(){function e(e,t,n,o){var r=this;this.alive=!0,this.context=e,this.eParent=o,t.getDateCompDetails(n).newAgStackInstance().then((function(t){r.alive?(r.dateComp=t,t&&(o.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),r.tempValue&&t.setDate(r.tempValue),null!=r.disabled&&r.setDateCompDisabled(r.disabled))):e.destroyBean(t)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){Jt(this.eParent,e)},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"===typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),ur=function(){return ur=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ur.apply(this,arguments)},cr=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e),this.checkForDeprecatedParams()},e.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){if("string"!==typeof t){if([["displayKey"],["displayName"],["predicate","test"]].every((function(e){return!!e.some((function(e){return null!=t[e]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+e+"'"),!1)}))){var n=t.test,o=ur({},t);null!=n&&null==t.predicate&&(o.predicate=function(e,t){return n(e[0],t)},delete o.test),o.hideFilterInput&&null==o.numberOfInputs&&(o.numberOfInputs=0,delete o.hideFilterInput),e.customFilterOptions[t.displayKey]=o}else e.filterOptions=e.filterOptions.filter((function(e){return e===t}))||[]}}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"===typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),pr={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},dr=function(){function e(){}return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.V="KeyV",e.D="KeyD",e.Z="KeyZ",e.Y="KeyY",e}(),hr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fr=function(){return fr=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},fr.apply(this,arguments)},gr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},mr=function(e){function t(t,n){void 0===n&&(n={});var o=e.call(this)||this;return o.eFocusableElement=t,o.callbacks=n,o.callbacks=fr({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},n),o}return hr(t,e),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 t=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||Pe(e)||(t.callbacks.shouldStopEventPropagation(e)?Oe(e):e.key===dr.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",gr([Z("focusService")],t.prototype,"focusService",void 0),gr([z],t.prototype,"postConstruct",null),t}(Fe),vr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cr=function(e){function t(t){var n=e.call(this)||this;return n.filterNameKey=t,n.applyActive=!1,n.hidePopup=null,n.appliedModel=null,n}return vr(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new mr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},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 t='\n <div class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n '+this.createBodyTemplate()+"\n </div>\n </div>";this.setTemplate(t,e)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var n=document.createElement("div");n.classList.add("ag-filter-apply-panel");Go(t).forEach((function(t){return function(t){var o,r;switch(t){case"apply":o=e.translate("applyFilter"),r=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":o=e.translate("clearFilter"),r=function(){return e.onBtClear()};break;case"reset":o=e.translate("resetFilter"),r=function(){return e.onBtReset()};break;case"cancel":o=e.translate("cancelFilter"),r=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var i=gn('<button\n type="button"\n ref="'+t+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+o+"\n </button>");n.appendChild(i),e.addManagedListener(i,"click",r)}(t)})),this.getGui().appendChild(n)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=G(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var t=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){t.updateUiVisibility(),t.applyModel()}))},t.prototype.onBtCancel=function(e){var t=this,n=this.getModel(),o=function(){t.onUiChanged(!1,"prevent"),t.providedFilterParams.closeOnApply&&t.close(e)};null!=n?this.setModelIntoUi(n).then(o):this.resetUiToDefaults().then(o)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var t=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(t,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onBtApply=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(n)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,n=e,o=n&&n.key;"Enter"!==o&&"Space"!==o||(t={keyboardEvent:n}),this.hidePopup(t),this.hidePopup=null}},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var n=this.isModelValid(this.getModelFromUi());tn(this.getRefElement("applyFilterButton"),!n)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,pr[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,n=t.api,o=t.colDef,r=t.column,i=t.columnApi,s=t.context;return this.providedFilterParams.valueGetter({api:n,colDef:o,column:r,columnApi:i,context:s,data:e.data,getValue:function(t){return e.data[t]},node:e})},yr([Z("rowModel")],t.prototype,"rowModel",void 0),yr([Z("valueService")],t.prototype,"valueService",void 0),yr([z],t.prototype,"postConstruct",null),t}(tr),wr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),br=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_r=function(e){function t(t,n){var o=e.call(this,n)||this;return o.labelSeparator="",o.labelAlignment="left",o.label="",o.config=t||{},o}return wr(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,n=e.label,o=e.labelWidth,r=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=o&&this.setLabelWidth(o),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){dn(this.eLabel),"string"===typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),Vn(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),Vn(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Sn(this.eLabel,e),this},br([z],t.prototype,"postConstruct",null),t}(tr),Er=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sr=function(e){function t(t,n,o){var r=e.call(this,t,n)||this;return r.className=o,r.disabled=!1,r}return Er(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Rn(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e||(this.previousValue=this.value,this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return tn(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(_r),Rr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Or=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pr=function(e){function t(t,n,o,r){var i=e.call(this,t,'<div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper"\n class="ag-wrapper ag-picker-field-wrapper"\n tabIndex="-1"\n aria-expanded="false"\n '+(r?'role="'+r+'"':"")+'\n >\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>',n)||this;return i.pickerIcon=o,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return Rr(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),qn(this.eWrapper,n);var o=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},r=this.getGui();if(this.addManagedListener(r,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&fn(t.pickerComponent.getGui())&&r.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(r,"keydown",(function(e){switch(e.key){case dr.UP:case dr.DOWN:case dr.ENTER:case dr.SPACE:o();case dr.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",o),this.addManagedListener(this.eLabel,"click",o),this.pickerIcon){var i=xo(this.pickerIcon,this.gridOptionsWrapper);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){r(this.getLabel())?zn(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return Un(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return Sn(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Or([nr("eLabel")],t.prototype,"eLabel",void 0),Or([nr("eWrapper")],t.prototype,"eWrapper",void 0),Or([nr("eDisplayField")],t.prototype,"eDisplayField",void 0),Or([nr("eIcon")],t.prototype,"eIcon",void 0),t}(Sr),Tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ar=function(e){function t(t){void 0===t&&(t="default");var n=e.call(this,'<div class="ag-list ag-'+t+'-list" role="listbox"></div>')||this;return n.cssIdentifier=t,n.options=[],n.itemEls=[],n}return Tr(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.key;switch(t){case dr.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case dr.DOWN:case dr.UP:var o=t===dr.DOWN,r=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(o?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),r=this.itemEls[i]}else r=this.itemEls[o?0:this.itemEls.length-1];this.highlightItem(r)}},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){var t=e.value,n=Ze(e.text||t);return this.options.push({value:t,text:n}),this.renderOption(t,n),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(t,n){Jn(t,n+1),Xn(t,e.length)}))},t.prototype.renderOption=function(e,t){var n=this,o=document.createElement("div");Vn(o,"option"),o.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),o.innerHTML="<span>"+t+"</span>",o.tabIndex=-1,this.itemEls.push(o),this.addManagedListener(o,"mouseover",(function(){return n.highlightItem(o)})),this.addManagedListener(o,"mouseleave",(function(){return n.clearHighlighted()})),this.addManagedListener(o,"click",(function(){return n.setValue(e)})),this.getGui().appendChild(o)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=this.options.findIndex((function(t){return t.value===e}));if(-1!==n){var o=this.options[n];this.value=o.value,this.displayValue=null!=o.text?o.text:o.value,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=this.options.findIndex((function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),lo(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),lo(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Sr.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",xr([z],t.prototype,"init",null),t}(tr),Dr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lr=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return Dr(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new Ar("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Ar.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,Sr.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),n=this.gridOptionsWrapper.getDocument(),o=this.addManagedListener(n.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),r=this.addManagedListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()})),i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,r(),o(),e.isAlive()&&(Qn(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:i("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,Sn(t,ln(this.eWrapper)),Qn(this.eWrapper,!0),t.style.maxHeight=rn(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,n,o){return this.value===t?this:(o||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},Nr([Z("popupService")],t.prototype,"popupService",void 0),Nr([z],t.prototype,"init",null),t}(Pr),Ir=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fr=function(e){function t(t,n,o,r){void 0===o&&(o="text"),void 0===r&&(r="input");var i=e.call(this,t,'\n <div role="presentation">\n <div ref="eLabel" class="ag-input-field-label"></div>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <'+r+' ref="eInput" class="ag-input-field-input"></'+r+">\n </div>\n </div>",n)||this;return i.inputType=o,i.displayFieldTag=r,i}return Ir(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,n=t.width,o=t.value;null!=n&&this.setWidth(n),null!=o&&this.setValue(o),this.addInputListeners()},t.prototype.refreshLabel=function(){r(this.getLabel())?zn(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){return e.setValue(t.target.value)}))},t.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Sn(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Ln(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Un(this.eInput,e),this},t.prototype.setDisabled=function(t){return tn(this.eInput,t),e.prototype.setDisabled.call(this,t)},Mr([nr("eLabel")],t.prototype,"eLabel",void 0),Mr([nr("eWrapper")],t.prototype,"eWrapper",void 0),Mr([nr("eInput")],t.prototype,"eInput",void 0),t}(Sr),kr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(rr||(rr={}));var Hr,Vr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kr(t,e),t.prototype.getNumberOfInputs=function(e){var n=this.optionsFactory.getCustomOption(e);if(n){var o=n.numberOfInputs;return null!=o?o:1}var r=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&r.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(rr.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(rr.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(rr.One),condition2:this.createCondition(rr.Two)}:this.createCondition(rr.One):null},t.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n,o=!e.operator,r=!t.operator;if(!o&&r||o&&!r)return!1;if(o){var i=e,s=t;n=this.areSimpleModelsEqual(i,s)}else{var a=e,l=t;n=a.operator===l.operator&&this.areSimpleModelsEqual(a.condition1,l.condition1)&&this.areSimpleModelsEqual(a.condition2,l.condition2)}return n},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,n="OR"===t.operator;this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(t.condition1.type),this.eType2.setValue(t.condition2.type),this.setConditionIntoUi(t.condition1,rr.One),this.setConditionIntoUi(t.condition2,rr.Two)}else{var o=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(o.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(o,rr.One),this.setConditionIntoUi(null,rr.Two)}return zo.resolve()},t.prototype.doesFilterPass=function(e){var t=this,n=this.getModel();if(null==n)return!0;var o=n.operator,r=[];if(o){var i=n;r.push(i.condition1,i.condition2)}else r.push(n);return r[o&&"OR"===o?"some":"every"]((function(n){return t.individualConditionPasses(e,n)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new cr,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.alwaysShowBothConditions=!!t.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return me(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions(),n=[this.eType1,this.eType2];t.forEach((function(t){var o="string"===typeof t?e.createBoilerplateListOption(t):e.createCustomListOption(t);n.forEach((function(e){return e.addOption(o)}))})),n.forEach((function(e){return e.setDisabled(t.length<=1)}))},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.gridOptionsWrapper.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(rr.One)+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n </div>\n <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n '+this.createValueTemplate(rr.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,t=[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]],n=[this.eCondition1Body,this.eCondition2Body];t.forEach((function(t,n){var o=e.isConditionVisible(n),r=e.isConditionDisabled(n);t.forEach((function(e){e instanceof Fr||e instanceof Lr?(e.setDisabled(r),e.setDisplayed(o)):(tn(e,r),Jt(e,o))}))})),n.forEach((function(t,n){Jt(t,e.isConditionBodyVisible(n))})),this.forEachInput((function(t,n,o,r){e.setElementDisplayed(t,n<r),e.setElementDisabled(t,e.isConditionDisabled(o))})),this.resetPlaceholder()},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!t||!t.suppressFocus&&!this.isReadOnly()){var n=this.getInputs()[0][0];if(!n)return;n instanceof Fr&&n.getInputElement().focus()}},t.prototype.resetPlaceholder=function(){var e=this,t=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput((function(n,o,r,i){if(n instanceof Fr){var s=0===o&&i>1?"inRangeStart":0===o?"filterOoo":"inRangeEnd",a=0===o&&i>1?t("ariaFilterFromValue","Filter from value"):0===o?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(e.translate(s)),n.setInputAriaLabel(a)}}))},t.prototype.setElementValue=function(e,t,n){e instanceof Fr&&e.setValue(null!=t?String(t):null,n)},t.prototype.setElementDisplayed=function(e,t){e instanceof tr&&Jt(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof tr&&tn(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof Fr&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this,n=this.getInputs();this.getConditionTypes().forEach((function(o,r){for(var i=t.getNumberOfInputs(o),s=0;s<n[r].length;s++){var a=n[r][s];null!=a&&e(a,s,r,i)}}))},t.prototype.isConditionVisible=function(e){return 0===e||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(e):!!this.alwaysShowBothConditions||this.isConditionUiComplete(e-1))},t.prototype.isConditionDisabled=function(e){return!!this.isReadOnly()||(!this.isConditionVisible(e)||0!==e&&!this.isConditionUiComplete(e-1))},t.prototype.isConditionBodyVisible=function(e){if(!this.isConditionVisible(e))return!1;var t=this.getConditionTypes()[e];return this.getNumberOfInputs(t)>0},t.prototype.isConditionUiComplete=function(e){return this.getConditionTypes()[e]!==t.EMPTY&&!this.getValues(e).some((function(e){return null==e}))},t.prototype.resetUiToDefaults=function(e){var t=this,n=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),o="ag-simple-filter-and-or-"+this.getCompId(),r=this.optionsFactory.getDefaultOption();return this.eType1.setValue(r,e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(o).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(o).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(n){t.setElementValue(n,null,e),t.setElementDisabled(n,t.isReadOnly())})),this.resetPlaceholder(),zo.resolve()},t.prototype.setConditionIntoUi=function(e,t){var n=this,o=this.mapValuesFromModel(e);this.forEachInput((function(e,r,i,s){i===t&&n.setElementValue(e,null!=o[r]?o[r]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(n,o,r,i){t.setElementValue(n,0===o&&0===r?e:null)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t),this.forEachInput((function(n){e.attachElementOnChange(n,t)}))}},t.prototype.individualConditionPasses=function(e,t){var n=this.getCellValue(e.node),o=this.mapValuesFromModel(t),r=this.optionsFactory.getCustomOption(t.type),i=this.evaluateCustomFilter(r,o,n);return null!=i?i:null==n?this.evaluateNullValue(t.type):this.evaluateNonNullValue(o,n,t,e)},t.prototype.evaluateCustomFilter=function(e,t,n){if(null!=e){var o=e.predicate;return null==o||t.some((function(e){return null==e}))?void 0:o(t,n)}},t.prototype.isBlank=function(e){return null==e||"string"===typeof e&&0===e.trim().length},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",Gr([nr("eOptions1")],t.prototype,"eType1",void 0),Gr([nr("eOptions2")],t.prototype,"eType2",void 0),Gr([nr("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),Gr([nr("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),Gr([nr("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),Gr([nr("eCondition1Body")],t.prototype,"eCondition1Body",void 0),Gr([nr("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(Cr),jr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jr(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t},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,n,o){var r=this.comparator(),i=null!=e[0]?r(e[0],n):0;switch(o.type){case t.EQUALS:return 0===i;case t.NOT_EQUAL:return 0!==i;case t.GREATER_THAN:return i>0;case t.GREATER_THAN_OR_EQUAL:return i>=0;case t.LESS_THAN:return i<0;case t.LESS_THAN_OR_EQUAL:return i<=0;case t.IN_RANGE:var s=r(e[1],n);return this.scalarFilterParams.inRangeInclusive?i>=0&&s<=0:i>0&&s<0;case t.BLANK:return this.isBlank(n);case t.NOT_BLANK:return!this.isBlank(n);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}(Vr),Br=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ur=function(){return Ur=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ur.apply(this,arguments)},zr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kr=1/0,qr=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.minValidYear=1e3,t.maxValidYear=Kr,t}return Br(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateCondition1FromComp.afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.dateFrom,o=t.dateTo,r=t.type;return[n&&Co(n)||null,o&&Co(o)||null].slice(0,this.getNumberOfInputs(r))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t;var n=function(e,n){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?n:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return n};this.minValidYear=n("minValidYear",1e3),this.maxValidYear=n("maxValidYear",Kr),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t=function(t){return new lr(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},t)};this.dateCondition1FromComp=t(this.eCondition1PanelFrom),this.dateCondition1ToComp=t(this.eCondition1PanelTo),this.dateCondition2FromComp=t(this.eCondition2PanelFrom),this.dateCondition2ToComp=t(this.eCondition2PanelTo),this.addDestroyFunc((function(){e.forEachInput((function(e){return e.destroy()}))}))},t.prototype.setElementValue=function(e,t,n){e.setDate(t)},t.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},t.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+t+'PanelFrom"></div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+t+'PanelTo"></div>\n </div>'},t.prototype.isConditionUiComplete=function(t){var n=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var o=!0;return this.forEachInput((function(e,r,i,s){var a;i!==t||!o||r>=s||(o=o&&(null!=(a=e.getDate())&&a.getUTCFullYear()>=n.minValidYear&&a.getUTCFullYear()<=n.maxValidYear))})),o},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={},o=this.getValues(e);return o.length>0&&(n.dateFrom=yo(o[0])),o.length>1&&(n.dateTo=yo(o[1])),Ur({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},n)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(n)}))},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var t=[];return this.forEachInput((function(n,o,r,i){e===r&&o<i&&t.push(n.getDate())})),t},t.DEFAULT_FILTER_OPTIONS=[Wr.EQUALS,Wr.GREATER_THAN,Wr.LESS_THAN,Wr.NOT_EQUAL,Wr.IN_RANGE,Wr.BLANK,Wr.NOT_BLANK],zr([nr("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),zr([nr("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),zr([nr("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),zr([nr("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),zr([Z("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Wr),Zr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zr(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.getTextFromModel=function(e){if(!e)return null;if(null!=e.operator){var t=e,n=t||{},o=n.condition1,r=n.condition2,i=this.optionsFactory.getCustomOption(o.type),s=this.optionsFactory.getCustomOption(r.type);return[this.conditionToString(o,i),t.operator,this.conditionToString(r,s)].join(" ")}var a=e,l=this.optionsFactory.getCustomOption(a.type),u=l||{},c=u.displayKey,p=u.displayName,d=u.numberOfInputs;return c&&p&&0===d?(this.gridOptionsWrapper.getLocaleTextFunc()(c,p),p):this.conditionToString(a,l)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new cr,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveSingleInput=function(e){var t=(this.optionsFactory.getCustomOption(e)||{}).numberOfInputs;return null==t||1==t},t.prototype.isTypeEditable=function(e){var t=[Vr.IN_RANGE,Vr.EMPTY,Vr.BLANK,Vr.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},t}(tr),Qr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$r=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xr=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex;"></div>\n </div>')||this}return Qr(t,e),t.prototype.getDefaultFilterOptions=function(){return qr.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e,t){var n=e.type,o=(t||{}).numberOfInputs,r=n==Vr.IN_RANGE||2===o,i=Co(e.dateFrom),s=Co(e.dateTo);return r?yo(i,!1)+"-"+yo(s,!1):null!=i?""+yo(i,!1):""+n},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent();var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){Jt(this.eDateWrapper,e),Jt(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var o=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(o),o){if(t){var r=t;this.dateComp.setDate(Co(r.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=yo(this.dateComp.getDate());this.params.parentFilterInstance((function(n){if(n){var o=Co(t);n.onFloatingFilterChanged(e.getLastType()||null,o)}}))},t.prototype.createDateComponent=function(){var e=this,t=Cr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:G(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new lr(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},$r([Z("userComponentFactory")],t.prototype,"userComponentFactory",void 0),$r([nr("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),$r([nr("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Yr),Jr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ei=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ti=function(e){function t(){return e.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return Jr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,n=this.gridOptionsWrapper.getDocument(),o=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(o.type="date"),this.addManagedListener(o,"mousedown",(function(){t.eDateInput.isDisabled()||o.focus()})),this.addManagedListener(o,"input",(function(o){o.target===n.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())}));var r=e.filterParams||{},i=r.minValidYear,s=r.maxValidYear;i&&(o.min=i+"-01-01"),s&&(o.max=s+"-12-31")},t.prototype.getDate=function(){return Co(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(yo(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Vt()||jt()},ei([nr("eDateInput")],t.prototype,"eDateInput",void 0),t}(tr),ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),oi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ri=function(e){function t(){return e.call(this,"numberFilter")||this}return ni(t,e),t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,o=t.filterTo,r=t.type;return[null==n?null:n,null==o?null:o].slice(0,this.getNumberOfInputs(r))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},t.prototype.setParams=function(t){this.numberFilterParams=t;var n=this.getAllowedCharPattern();if(n){var o={allowedCharPattern:n};this.resetTemplate({"eValue-index0-1":o,"eValue-index1-1":o,"eValue-index0-2":o,"eValue-index1-2":o})}e.prototype.setParams.call(this,t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2",n=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <'+n+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></'+n+">\n <"+n+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></'+n+">\n </div>"},t.prototype.getValues=function(e){var t=this,n=[];return this.forEachInput((function(o,r,i,s){e===i&&r<s&&n.push(t.stringToFloat(o.getValue()))})),n},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return"number"},t.prototype.stringToFloat=function(e){if("number"===typeof e)return e;var t=o(e);return null!=t&&""===t.trim()&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):null==t||"-"===t.trim()?null:parseFloat(t)},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},o=this.getValues(e);return o.length>0&&(n.filter=o[0]),o.length>1&&(n.filterTo=o[1]),n},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(Vt()||Gt()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[Wr.EQUALS,Wr.NOT_EQUAL,Wr.LESS_THAN,Wr.LESS_THAN_OR_EQUAL,Wr.GREATER_THAN,Wr.GREATER_THAN_OR_EQUAL,Wr.IN_RANGE,Wr.BLANK,Wr.NOT_BLANK],oi([nr("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),oi([nr("eValue-index1-1")],t.prototype,"eValueTo1",void 0),oi([nr("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),oi([nr("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Wr),ii=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),si=function(){return si=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},si.apply(this,arguments)},ai=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},li=function(e){function t(){return e.call(this,"textFilter")||this}return ii(t,e),t.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Wo.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(t){var n=t.filterOption,o=t.value,r=t.filterText;return e(n,o,r)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},o=this.getValues(e);return o.length>0&&(n.filter=o[0]),o.length>1&&(n.filterTo=o[1]),n},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var n=this,r=[];return this.forEachInput((function(i,s,a,l){if(e===a&&s<l){var u=o(i.getValue()),c=(n.textFilterParams.trimInput?t.trimInput(u):u)||null;r.push(c),i.setValue(c,!0)}})),r},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></ag-input-text-field>\n <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></ag-input-text-field>\n </div>'},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,o=t.filterTo,r=t.type;return[n||null,o||null].slice(0,this.getNumberOfInputs(r))},t.prototype.evaluateNullValue=function(e){var t=[Vr.NOT_EQUAL,Vr.NOT_CONTAINS,Vr.BLANK];return!!e&&t.indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,t,n,o){var r=this,i=e.map((function(e){return r.formatter(e)}))||[],s=this.formatter(t),a=this.textFilterParams,l=a.api,u=a.colDef,c=a.column,p=a.columnApi,d=a.context,h=a.textFormatter;if(n.type===Vr.BLANK)return this.isBlank(t);if(n.type===Vr.NOT_BLANK)return!this.isBlank(t);var f={api:l,colDef:u,column:c,columnApi:p,context:d,node:o.node,data:o.data,filterOption:n.type,value:s,textFormatter:h};return i.some((function(e){return r.matcher(si(si({},f),{filterText:e}))}))},t.DEFAULT_FILTER_OPTIONS=[Vr.CONTAINS,Vr.NOT_CONTAINS,Vr.EQUALS,Vr.NOT_EQUAL,Vr.STARTS_WITH,Vr.ENDS_WITH,Vr.BLANK,Vr.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var n=e.filterOption,o=e.value,r=e.filterText;if(null==r)return!1;switch(n){case t.CONTAINS:return o.indexOf(r)>=0;case t.NOT_CONTAINS:return o.indexOf(r)<0;case t.EQUALS:return o===r;case t.NOT_EQUAL:return o!=r;case t.STARTS_WITH:return 0===o.indexOf(r);case t.ENDS_WITH:var i=o.lastIndexOf(r);return i>=0&&i===o.length-r.length;default:return!1}},ai([nr("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),ai([nr("eValue-index1-1")],t.prototype,"eValueTo1",void 0),ai([nr("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),ai([nr("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Vr),ui=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ci=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.postConstruct=function(){this.resetTemplate()},t.prototype.resetTemplate=function(e){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>\n ',e)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=Cr.isUseApplyButton(this.params.filterParams);var n=this.params.filterParams.allowedCharPattern;if(null!=n&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:n}}),!this.isReadOnly()){var o=Cr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=G(this.syncUpWithParentFilter.bind(this),o),i=this.eFloatingFilterInput.getGui();this.addManagedListener(i,"input",r),this.addManagedListener(i,"keypress",r),this.addManagedListener(i,"keydown",r)}var s=t.column.getDefinition();(this.isReadOnly()||s.filterParams&&s.filterParams.filterOptions&&1===s.filterParams.filterOptions.length&&"inRange"===s.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var a=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),l=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(a+" "+l("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=e.key===dr.ENTER;if(!this.applyActive||n){var o=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(o=li.trimInput(o),this.eFloatingFilterInput.setValue(o,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,o||null)}))}},t.prototype.conditionToString=function(e,t){var n=(t||{}).numberOfInputs;return e.type==Vr.IN_RANGE||2===n?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},ci([Z("columnModel")],t.prototype,"columnModel",void 0),ci([nr("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),ci([z],t.prototype,"postConstruct",null),t}(Yr),di=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return di(t,e),t.prototype.getDefaultFilterOptions=function(){return ri.DEFAULT_FILTER_OPTIONS},t}(pi),fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.getDefaultFilterOptions=function(){return li.DEFAULT_FILTER_OPTIONS},t}(pi),mi=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ne,this.eElement=e,this.preventMouseClick=t;var o=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",o,{passive:!0}),n.eElement.removeEventListener("touchmove",r,{passive:!0}),n.eElement.removeEventListener("touchend",i,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var n=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var o=this.touchStart;window.setTimeout((function(){var r=n.touchStart===o;if(n.touching&&r&&!n.moved){n.moved=!0;var i={type:e.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:t};n.eventService.dispatchEvent(i)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t)!Mo(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var n={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var n={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}(),vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return vi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)))},t.prototype.workOutTemplate=function(){var e=le(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=Ze(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var o=xo(e,this.gridOptionsWrapper,n);o&&t.appendChild(o)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new mi(this.getGui(),!0),o=t.isSuppressMenuHide(),i=o&&r(this.eMenu),s=i?new mi(this.eMenu,!0):n;if(this.params.enableMenu){var a=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,mi[a],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(n,mi.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),i&&this.addDestroyFunc((function(){return s.destroy()}))}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),t=Wt()&&e;return this.params.enableMenu&&!t},t.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",t)}else hn(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.removeSortIcons=function(){hn(this.eSortAsc),hn(this.eSortDesc),hn(this.eSortNone),hn(this.eSortOrder)},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.currentSort){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,ae.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(n){var o=e.params.column.isMoving(),r=(new Date).getTime()-e.lastMovingChanged<50;if(!(o||r)){var i=t?n.ctrlKey||n.metaKey:n.shiftKey;e.params.progressSort(i)}})),this.addManagedListener(this.params.column,ae.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,je.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(this.addOrRemoveCssClass("ag-header-cell-sorted-asc",this.params.column.isSortAscending()),this.addOrRemoveCssClass("ag-header-cell-sorted-desc",this.params.column.isSortDescending()),this.addOrRemoveCssClass("ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),n=t.indexOf(e),o=t.length>1,r=e.isSorting()&&o;Jt(this.eSortOrder,r),n>=0?this.eSortOrder.innerHTML=(n+1).toString():dn(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ae.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n <span ref="eText" class="ag-header-cell-text"></span>\n <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span>\n <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span>\n <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span>\n <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span>\n </div>\n </div>',yi([Z("sortController")],t.prototype,"sortController",void 0),yi([Z("menuFactory")],t.prototype,"menuFactory",void 0),yi([nr("eFilter")],t.prototype,"eFilter",void 0),yi([nr("eSortAsc")],t.prototype,"eSortAsc",void 0),yi([nr("eSortDesc")],t.prototype,"eSortDesc",void 0),yi([nr("eSortNone")],t.prototype,"eSortNone",void 0),yi([nr("eSortOrder")],t.prototype,"eSortOrder",void 0),yi([nr("eMenu")],t.prototype,"eMenu",void 0),yi([nr("eLabel")],t.prototype,"eLabel",void 0),yi([nr("eText")],t.prototype,"eText",void 0),t}(tr),wi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_i=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return wi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){if(this.params.template){A((function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Pe(t)){var n=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){Oe(e)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var o=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(o,be.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(o,be.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new mi(e,!0);this.addManagedListener(n,mi.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();Jt(this.eOpenIcon,e),Jt(this.eCloseIcon,!e)}else Jt(this.eOpenIcon,!1),Jt(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=xo(e,this.gridOptionsWrapper,null);n&&this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Jt(this.eOpenIcon,!1),void Jt(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(r(e)){var t=Ze(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n </div>',bi([Z("columnModel")],t.prototype,"columnModel",void 0),bi([nr("agOpened")],t.prototype,"eOpenIcon",void 0),bi([nr("agClosed")],t.prototype,"eCloseIcon",void 0),t}(tr),Ei=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ei(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){t.addCssClass("ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&t.getGui().classList.remove("ag-has-popup"),e.prototype.destroy.call(this)},t}(tr),Ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ri(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),r(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.key;(t===dr.LEFT||t===dr.UP||t===dr.RIGHT||t===dr.DOWN||e.shiftKey&&t===dr.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',Oi([nr("eTextArea")],t.prototype,"eTextArea",void 0),t}(Si),Ti=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ai=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return t.startedByEnter=!1,t}return Ti(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,i(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===dr.ENTER;var n=!1;e.values.forEach((function(o){var r={value:o},i=t.valueFormatterService.formatValue(e.column,null,null,o),s=null!==i&&void 0!==i;r.text=s?i:o,t.eSelect.addOption(r),n=n||e.value===o})),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},xi([Z("valueFormatterService")],t.prototype,"valueFormatterService",void 0),xi([nr("eSelect")],t.prototype,"eSelect",void 0),t}(Si),Di=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ni=function(e){function t(){var t=e.call(this)||this;return A((function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')}),"PopupSelectCellEditor.deprecated"),t}return Di(t,e),t.prototype.isPopup=function(){return!0},t}(Ai),Li=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ii=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Mi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Li(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===dr.BACKSPACE||e.eventKey===dr.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==dr.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&n.setValue(t,!0),this.addManagedListener(n.getGui(),"keydown",(function(e){var t=e.key;t!==dr.PAGE_UP&&t!==dr.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){Ht()||t.getFocusableElement().focus();var n=t.getInputElement();if(this.highlightAllOnFocus)n.select();else{var o=t.getValue(),i=r(o)&&o.length||0;i&&n.setSelectionRange(i,i)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-cell-edit-wrapper"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',Ii([nr("eInput")],t.prototype,"eInput",void 0),t}(Si),Fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ki=function(e){function t(){var t=e.call(this)||this;return A((function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')}),"PopupTextCellEditor.deprecated"),t}return Fi(t,e),t.prototype.isPopup=function(){return!0},t}(Mi),Gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return Gi(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var n=Math.abs(t),o=e.formatValue(n),i=r(o)?o:n,s=t>=0;this.eDelta.innerHTML=s?"\u2191"+i:"\u2193"+i,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),dn(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(r(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:r(e.value)?this.eValue.innerHTML=t:dn(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"===typeof t&&"number"===typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',Hi([Z("filterManager")],t.prototype,"filterManager",void 0),t}(tr),ji=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(".ag-value-slide-current"),n}return ji(t,e),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=gn('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;return i(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,r(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:r(e.value)?this.eCurrent.innerHTML=t:dn(this.eCurrent),!0))},t.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',Wi([Z("filterManager")],t.prototype,"filterManager",void 0),t}(tr);(Hr=t.RowHighlightPosition||(t.RowHighlightPosition={}))[Hr.Above=0]="Above",Hr[Hr.Below=1]="Below";var Ui,zi,Ki,qi=function(){function e(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.onRowHeightChangedDebounced=G(this.onRowHeightChanged.bind(this),100),this.beans=t}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var n=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(o)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,o){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:o}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return this.rowPinned===oe.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===oe.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var n=r(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.beans.selectionService.syncInRowNode(this,n),this.checkRowSelectable();var i=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(t){var n=this.beans.gridOptionsWrapper.getRowIdFunc();if(n)if(this.data){var o=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:o.length>0?o:void 0,level:this.level}),null!==this.id&&"string"===typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!==typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],n=this;for(e&&(n=n.parent);n&&n.level>=0;)t.push(n.key),n=n.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!r(this.rowTop)||!r(this.rowHeight))&&(e>=this.rowTop&&e<this.rowTop+this.rowHeight)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},e.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},e.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setGroup=function(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_GROUP_CHANGED)))},e.prototype.setRowHeight=function(t,n){void 0===n&&(n=!1),this.rowHeight=t,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowAutoHeight=function(e,t){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=G(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},e.prototype.checkAutoHeights=function(){var e=!1,t=!0,n=0,o=this.__autoHeights;null!=o&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(r){var i=o[r.getId()];null!=i?(t=!1,i>n&&(n=i)):e=!0})),e||((t||n<10)&&(n=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),n!=this.rowHeight&&(this.setRowHeight(n),this.onRowHeightChangedDebounced())))},e.prototype.onRowHeightChanged=function(){var e=this.beans.rowModel;e.onRowHeightChanged&&e.onRowHeightChanged()},e.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t,n){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=Object.assign({},this.createGlobalRowEvent(je.EVENT_ROW_GROUP_OPENED),{expanded:t,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(o),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,n){var o=this.beans.columnModel.getPrimaryColumn(e),r=this.beans.valueService.getValue(o,this),i=this.beans.valueService.setValue(this,o,t,n);return this.dispatchCellChangedEvent(o,t,r),i},e.prototype.setGroupValue=function(e,t){var n=this.beans.columnModel.getGridColumn(e);i(this.groupData)&&(this.groupData={});var o=n.getColId(),r=this.groupData[o];r!==t&&(this.groupData[o]=t,this.dispatchCellChangedEvent(n,t,r))},e.prototype.setAggData=function(e){var t=this,n=w([this.aggData,e]),o=this.aggData;this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.beans.columnModel.getGridColumn(e),r=t.aggData?t.aggData[e]:void 0,i=o?o[e]:void 0;t.dispatchCellChangedEvent(n,r,i)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&s(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n,o){var r={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:o};this.dispatchLocalEvent(r)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t,n=!1,o=!1,r=!1;if(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length){for(var i=0;i<this.childrenAfterGroup.length;i++){var s=this.childrenAfterGroup[i];if(s.selectable)switch(s.isSelected()){case!0:n=!0;break;case!1:o=!0;break;default:r=!0}}t=r?void 0:!(!n||o)||!(!n&&o)&&void 0,this.selectThisNode(t)}},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===oe.PINNED_TOP||this.rowPinned===oe.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t,n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,r=!0===e.clearSelection,i=!0===e.suppressFinishActions,s=!0===e.rangeSelect,a=n&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(s&&this.beans.selectionService.getLastSelectedNode()){var l=this.beans.selectionService.getLastSelectedNode()!==this,u=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(l&&u){var c=this.doRowRangeSelection(e.newValue);return this.beans.selectionService.setLastSelectedNode(this),c}}var p=0;a&&this.group||this.selectThisNode(o)&&p++;if(n&&(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length)&&(p+=this.selectChildNodes(o,a)),!i){if(o&&(r||!this.beans.gridOptionsWrapper.isRowSelectionMulti())&&(p+=this.beans.selectionService.clearOtherNodes(this)),p>0){this.beans.selectionService.updateGroupsFromChildrenSelections();var d={type:je.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};this.beans.eventService.dispatchEvent(d)}o&&this.beans.selectionService.setLastSelectedNode(this)}return p},e.prototype.doRowRangeSelection=function(e){var t=this;void 0===e&&(e=!0);var n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=this.beans.selectionService.getLastSelectedNode(),r=this.beans.rowModel.getNodesInRangeForSelection(this,o),i=0;r.forEach((function(o){o.group&&n||!1===e&&t===o||o.selectThisNode(e)&&i++})),this.beans.selectionService.updateGroupsFromChildrenSelections();var s={type:je.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};return this.beans.eventService.dispatchEvent(s),i},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){var n=!this.selectable&&t,o=this.selected===t;if(n||o)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var r=this.createGlobalRowEvent(je.EVENT_ROW_SELECTED);return this.beans.eventService.dispatchEvent(r),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterAggFilter:this.childrenAfterGroup;if(i(n))return 0;for(var o=0,r=0;r<n.length;r++)o+=n[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return o},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new ne),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService&&(this.eventService.removeEventListener(e,t),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t=this,n=!0,o=!1,i=null;n&&!o;){var s=t.parent;r(s)&&t.firstChild?s.rowGroupColumn===e&&(o=!0,i=s):n=!1,t=s}return o?i:null},e.prototype.isFullWidthCell=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e({rowNode:this})},e.prototype.getRoute=function(){if(null!=this.key){for(var e=[],t=this;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}},e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MASTER_CHANGED="masterChanged",e.EVENT_GROUP_CHANGED="groupChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_DISPLAYED_CHANGED="displayedChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",e}(),Zi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qi=function(e){function t(){return e.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return Zi(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),o=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(o+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return Oe(e)})),this.addGuiEventListener("dblclick",(function(e){return Oe(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){var n=t.eCheckbox.getValue();void 0===t.eCheckbox.getPreviousValue()||void 0===n?0===t.onUncheckedClicked(e||{})&&t.onCheckedClicked(e):n?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,qi.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||this.checkboxCallbackExists()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,qi.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return!!e&&"function"===typeof e.checkboxSelection},Yi([nr("eCheckbox")],t.prototype,"eCheckbox",void 0),Yi([z],t.prototype,"postConstruct",null),t}(tr),$i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ji=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};(Ui=t.DragSourceType||(t.DragSourceType={}))[Ui.ToolPanel=0]="ToolPanel",Ui[Ui.HeaderCell=1]="HeaderCell",Ui[Ui.RowDrag=2]="RowDrag",Ui[Ui.ChartPanel=3]="ChartPanel",(zi=t.VerticalDirection||(t.VerticalDirection={}))[zi.Up=0]="Up",zi[zi.Down=1]="Down",(Ki=t.HorizontalDirection||(t.HorizontalDirection={}))[Ki.Left=0]="Left",Ki[Ki.Right=1]="Right";var es,ts=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var o;return $i(n,e),o=n,n.prototype.init=function(){this.ePinnedIcon=To("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=To("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=To("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=To("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=To("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=To("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=To("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=To("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=To("dropNotAllowed",this.gridOptionsWrapper,null)},n.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n,t)},n.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find((function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),de(this.dragSourceAndParamsList,t))},n.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},n.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},n.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},n.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},n.prototype.onDragging=function(e,t){var n=this,o=this.getHorizontalDirection(e),r=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var i=this.dropTargets.filter((function(t){return n.isMouseOnDropTarget(e,t)})),s=i.length,a=null;if(s>0&&(a=1===s?i[0]:i.reduce((function(e,t){if(!e)return t;var n=e.getContainer(),o=t.getContainer();return n.contains(o)?t:e}))),a!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,r,t),this.enterDragTargetIfExists(a,e,o,r,t),this.lastDropTarget=a;else if(a&&a.onDragging){var l=this.createDropTargetEvent(a,e,o,r,t);a.onDragging(l)}},n.prototype.enterDragTargetIfExists=function(e,t,n,o,r){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,n,o,r);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},n.prototype.leaveLastTargetIfExists=function(e,t,n,o){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,n,o);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},n.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n},n.prototype.allContainersIntersect=function(e,t){var n,o;try{for(var r=Ji(t),i=r.next();!i.done;i=r.next()){var s=i.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var a=e.clientX>=s.left&&e.clientX<s.right,l=e.clientY>=s.top&&e.clientY<s.bottom;if(!a||!l)return!1}}catch(u){n={error:u}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return!0},n.prototype.isMouseOnDropTarget=function(e,t){var n,o,r=this.getAllContainersFromDropTarget(t),i=!1;try{for(var s=Ji(r),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(e,l)){i=!0;break}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&(i&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},n.prototype.addDropTarget=function(e){this.dropTargets.push(e)},n.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},n.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},n.prototype.findExternalZone=function(e){return this.dropTargets.filter((function(e){return e.external})).find((function(t){return t.getContainer()===e.getContainer()}))||null},n.prototype.getHorizontalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientX,o=e.clientX;return n===o?null:n>o?t.HorizontalDirection.Left:t.HorizontalDirection.Right},n.prototype.getVerticalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientY,o=e.clientY;return n===o?null:n>o?t.VerticalDirection.Up:t.VerticalDirection.Down},n.prototype.createDropTargetEvent=function(e,t,n,o,r){var i=e.getContainer(),s=i.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,c=a.dragItem,p=a.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:o,hDirection:n,dragSource:p,fromNudge:r,dragItem:c,api:l,columnApi:u,dropZoneTarget:i}},n.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var n=t.getBoundingClientRect().height,o=Zt()-2,r=Yt()-2,i=e.pageY-n/2,s=e.pageX-10,a=this.gridOptionsWrapper.getDocument(),l=a.defaultView||window,u=l.pageYOffset||a.documentElement.scrollTop,c=l.pageXOffset||a.documentElement.scrollLeft;o>0&&s+t.clientWidth>o+c&&(s=o+c-t.clientWidth),s<0&&(s=0),r>0&&i+t.clientHeight>r+u&&(i=r+u-t.clientHeight),i<0&&(i=0),t.style.left=s+"px",t.style.top=i+"px"}},n.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},n.prototype.createGhost=function(){this.eGhost=gn(o.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;N(n)&&(n=n()),t.innerHTML=Ze(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsWrapper.getDocument(),i=null;try{i=r.fullscreenElement}catch(s){}finally{i||(i=r.querySelector("body"))}this.eGhostParent=i,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},n.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),dn(this.eGhostIcon);var n=null;switch(e||(e=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),e){case o.ICON_PINNED:n=this.ePinnedIcon;break;case o.ICON_MOVE:n=this.eMoveIcon;break;case o.ICON_LEFT:n=this.eLeftIcon;break;case o.ICON_RIGHT:n=this.eRightIcon;break;case o.ICON_GROUP:n=this.eGroupIcon;break;case o.ICON_AGGREGATE:n=this.eAggregateIcon;break;case o.ICON_PIVOT:n=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:n=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||n&&this.eGhostIcon.appendChild(n)},n.ICON_PINNED="pinned",n.ICON_MOVE="move",n.ICON_LEFT="left",n.ICON_RIGHT="right",n.ICON_GROUP="group",n.ICON_AGGREGATE="aggregate",n.ICON_PIVOT="pivot",n.ICON_NOT_ALLOWED="notAllowed",n.ICON_HIDE="hide",n.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',Xi([Z("dragService")],n.prototype,"dragService",void 0),Xi([Z("environment")],n.prototype,"environment",void 0),Xi([Z("columnApi")],n.prototype,"columnApi",void 0),Xi([Z("gridApi")],n.prototype,"gridApi",void 0),Xi([z],n.prototype,"init",null),Xi([K],n.prototype,"clearDragSourceParamsList",null),n=o=Xi([q("dragAndDropService")],n)}(Fe),ns=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),os=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rs=function(e){function n(t,n,o,r,i,s){var a=e.call(this)||this;return a.cellValueFn=t,a.rowNode=n,a.column=o,a.customGui=r,a.dragStartPixels=i,a.suppressVisibilityChange=s,a.dragSource=null,a}return ns(n,e),n.prototype.isCustomGui=function(){return null!=this.customGui},n.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(xo("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new as(this,this.beans,this.rowNode,this.column):new ss(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},n.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},n.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return 1;var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e.length:1},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&A((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(e){var n=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var o={rowNode:this.rowNode,columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()},r=this.column&&this.column.getColDef().rowDragText,i=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e=n.getSelectedCount();return r?r(o,e):1===e?n.cellValueFn():e+" "+i("rowDragRows","rows")},getDragItem:function(){return o},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},n.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},os([Z("beans")],n.prototype,"beans",void 0),os([z],n.prototype,"postConstruct",null),os([K],n.prototype,"removeDragSource",null),n}(tr),is=function(e){function t(t,n,o){var r=e.call(this)||this;return r.parent=t,r.rowNode=n,r.column=o,r}return ns(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=!0,n=!1;this.column&&(t=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=N(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):(this.parent.setDisplayed(t),this.parent.setVisible(!0))}},t}(Fe),ss=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return ns(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,je.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},os([z],t.prototype,"postConstruct",null),t}(is),as=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return ns(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,je.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,je.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,je.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,je.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!o||n;this.setDisplayedOrVisible(r)},os([z],t.prototype,"postConstruct",null),t}(is),ls=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),us=function(){return us=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},us.apply(this,arguments)},cs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ps=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),t.prototype.init=function(e,t,n,o,r,i,s){this.params=s,this.eGui=t,this.eCheckbox=n,this.eExpanded=o,this.eContracted=r,this.comp=e,this.compClass=i;var a=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),u=null==s.value,c=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var p=s.node;if(p.footer)c=(s.colDef&&s.colDef.showRowGroup)!==(p.rowGroupColumn&&p.rowGroupColumn.getColId())}this.cellIsBlank=!a&&(l||u||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,n=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var o=function(){Qn(n,!!t.expanded)};this.expandListener=this.addManagedListener(t,qi.EVENT_EXPANDED_CHANGED,o)||null,o()}else $n(n)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===oe.PINNED_LEFT,t=this.params.pinned===oe.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!t:!n:this.columnModel.isPinningLeft()?!e:!n},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var n=t.parent;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}i(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var n=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var o=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=o}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),n=e.valueFormatted,o=e.value,r=null!=n?n:o;this.comp.setInnerRenderer(t,r)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var n=this.params,o=this.params,r=o.value,i=o.node,s=this.valueFormatterService.formatValue(e,i,r);return us(us({},n),{valueFormatted:s})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var n=g(this.params);n.value=this.params.value,"function"===typeof e?t=e(n):"string"===typeof e?t=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+(null!=this.params.value?this.params.value:"");var o=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(o,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),o=function(e){return e&&e.componentClass==t.compClass};if(n&&!o(n))return n;var r=this.displayedGroupNode.rowGroupColumn,i=r?r.getColDef():void 0;if(i){var s=this.userComponentFactory.getCellRendererDetails(i,e);if(s&&!o(s))return s;if(o(s)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,qi.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"("+e+")":"";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,t=xo("groupExpanded",this.gridOptionsWrapper,null),n=xo("groupContracted",this.gridOptionsWrapper,null);t&&this.eExpanded.appendChild(t),n&&this.eContracted.appendChild(n);var o=e.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(o,"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(o,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,qi.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,qi.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,qi.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,qi.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,qi.EVENT_HAS_CHILDREN_CHANGED,r)},t.prototype.onExpandClicked=function(e){Pe(e)||(Oe(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,n=!t.expanded;t.setExpanded(n,e)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;var n=this.params.column;return null==n||"string"!==typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,n=e.displayedGroupNode,o=e.columnModel,r=t.node,i=this.isExpandable();if(i){var s=!!this.showingValueForOpenedParent||r.expanded;this.comp.setExpandedDisplayed(s),this.comp.setContractedDisplayed(!s)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var a=o.isPivotMode(),l=a&&n.leafGroup,u=i&&!l,c=r.footer&&-1===r.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",u),this.comp.addOrRemoveCssClass("ag-row-group",u),a?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!u)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,qi.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node,n=!!e.colDef,o=this.gridOptionsWrapper.isTreeData(),r=!n||o||!0===e.colDef.showRowGroup?t.uiLevel:0;e.padding>=0&&A((function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+r,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new rs((function(){return e.params.value}),this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement("afterbegin",t.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"===typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroupNode,n=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(n){var o=new Qi;this.getContext().createBean(o),o.init({rowNode:t,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(o)}))}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){e.key!==dr.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e))},t.prototype.onCellDblClicked=function(e){Pe(e)||(Ae(this.eExpanded,e)||Ae(this.eContracted,e)||this.onExpandOrContract(e))},cs([Z("expressionService")],t.prototype,"expressionService",void 0),cs([Z("valueFormatterService")],t.prototype,"valueFormatterService",void 0),cs([Z("columnModel")],t.prototype,"columnModel",void 0),cs([Z("userComponentFactory")],t.prototype,"userComponentFactory",void 0),cs([Z("gridOptions")],t.prototype,"gridOptions",void 0),t}(Fe),ds=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},fs=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ds(t,e),t.prototype.init=function(e){var t=this,n={setInnerRenderer:function(e,n){return t.setRenderDetails(e,n)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,n){return t.addOrRemoveCssClass(e,n)},setContractedDisplayed:function(e){return Jt(t.eContracted,e)},setExpandedDisplayed:function(e){return Jt(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},o=this.createManagedBean(new ps),r=!e.colDef,i=this.getGui();o.init(n,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),r&&Vn(i,"gridcell")},t.prototype.setRenderDetails=function(e,t){var n=this;if(e){var o=e.newAgStackInstance();if(!o)return;o.then((function(e){if(e){var t=function(){return n.context.destroyBean(e)};n.isAlive()?(n.eValue.appendChild(e.getGui()),n.addDestroyFunc(t)):t()}}))}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper">\n <span class="ag-group-expanded" ref="eExpanded"></span>\n <span class="ag-group-contracted" ref="eContracted"></span>\n <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n <span class="ag-group-value" ref="eValue"></span>\n <span class="ag-group-child-count" ref="eChildCount"></span>\n </span>',hs([nr("eExpanded")],t.prototype,"eExpanded",void 0),hs([nr("eContracted")],t.prototype,"eContracted",void 0),hs([nr("eCheckbox")],t.prototype,"eCheckbox",void 0),hs([nr("eValue")],t.prototype,"eValue",void 0),hs([nr("eChildCount")],t.prototype,"eChildCount",void 0),t}(tr),gs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ms=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vs=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return gs(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){this.eLoadingText.innerText="ERR"},t.prototype.setupLoading=function(){var e=xo("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',ms([nr("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),ms([nr("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(tr),ys=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cs=function(e){function t(){return e.call(this)||this}return ys(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[LOADING...]",o("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(tr),ws=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bs=function(e){function t(){return e.call(this)||this}return ws(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[NO_ROWS_TO_SHOW]",o("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}(tr),_s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Es=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return _s(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=Ze(t)},t}(Si),Ss=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:ti,agColumnHeader:Ci,agColumnGroupHeader:_i,agTextColumnFloatingFilter:gi,agNumberColumnFloatingFilter:hi,agDateColumnFloatingFilter:Xr,agReadOnlyFloatingFilter:ar,agAnimateShowChangeCellRenderer:Vi,agAnimateSlideCellRenderer:Bi,agGroupCellRenderer:fs,agGroupRowRenderer:fs,agLoadingCellRenderer:vs,agCellEditor:Mi,agTextCellEditor:Mi,agSelectCellEditor:Ai,agPopupTextCellEditor:ki,agPopupSelectCellEditor:Ni,agLargeTextCellEditor:Pi,agTextColumnFilter:li,agNumberColumnFilter:ri,agDateColumnFilter:qr,agLoadingOverlay:Cs,agNoRowsOverlay:bs,agTooltipComponent:Es},t.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},t.jsComps={},t.fwComps={},t}return Ss(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&f(this.gridOptions.components,(function(t,n){return e.registerJsComponent(t,n)})),null!=this.gridOptions.frameworkComponents&&f(this.gridOptions.frameworkComponents,(function(t,n){return e.registerFwComponent(t,n)}))},t.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},t.prototype.registerJsComponent=function(e,t){var n=this.translateIfDeprecated(e);this.fwComps[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComps[n]=t},t.prototype.registerFwComponent=function(e,t){A((function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")}),"UserComponentRegistry.frameworkComponentsDeprecated");var n=this.translateIfDeprecated(e);this.fwComps[n]=t},t.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e),n=function(e,t){return{componentFromFramework:t,component:e}},o=this.getFrameworkOverrides().frameworkComponent(t);if(null!=o)return n(o,!0);var r=this.fwComps[t];if(r)return n(r,!0);var i=this.jsComps[t];if(i)return n(i,this.getFrameworkOverrides().isFrameworkComponent(i));var s=this.agGridDefaults[t];return s?n(s,!1):(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("AG Grid: Looking for component ["+t+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(A((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},Rs([Z("gridOptions")],t.prototype,"gridOptions",void 0),Rs([Z("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Rs([z],t.prototype,"init",null),t=Rs([q("userComponentRegistry")],t)}(Fe),Ps={propertyName:"dateComponent",cellRenderer:!1},Ts={propertyName:"headerComponent",cellRenderer:!1},xs={propertyName:"headerGroupComponent",cellRenderer:!1},As={propertyName:"cellRenderer",cellRenderer:!0},Ds={propertyName:"cellEditor",cellRenderer:!1},Ns={propertyName:"innerRenderer",cellRenderer:!0},Ls={propertyName:"loadingOverlayComponent",cellRenderer:!1},Is={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ms={propertyName:"tooltipComponent",cellRenderer:!1},Fs={propertyName:"filter",cellRenderer:!1},ks={propertyName:"floatingFilterComponent",cellRenderer:!1},Gs={propertyName:"toolPanel",cellRenderer:!1},Hs={propertyName:"statusPanel",cellRenderer:!1},Vs={propertyName:"fullWidthCellRenderer",cellRenderer:!0},js={propertyName:"loadingCellRenderer",cellRenderer:!0},Ws={propertyName:"groupRowRenderer",cellRenderer:!0},Bs={propertyName:"detailCellRenderer",cellRenderer:!0},Us=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),zs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ks=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qs=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return zs(n,e),n.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,Ts,"agColumnHeader",t)},n.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,xs,"agColumnGroupHeader",e)},n.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Vs,null,e,!0)},n.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,js,"agLoadingCellRenderer",e,!0)},n.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ws,"agGroupRowRenderer",e,!0)},n.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Bs,"agDetailCellRenderer",e,!0)},n.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,Ns,null,t)},n.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,Ns,null,t)},n.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,As,null,t)},n.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,Ds,"agCellEditor",t,!0)},n.prototype.getFilterDetails=function(e,t,n){return this.getCompDetails(e,Fs,n,t,!0)},n.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ps,"agDateInput",e,!0)},n.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ls,"agLoadingOverlay",e,!0)},n.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Is,"agNoRowsOverlay",e,!0)},n.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Ms,"agTooltipComponent",e,!0)},n.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,As,null,t)},n.prototype.getFloatingFilterCompDetails=function(e,t,n){return this.getCompDetails(e,ks,n,t)},n.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,Gs,null,t,!0)},n.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,Hs,null,t,!0)},n.prototype.getCompDetails=function(e,t,n,o,r){var i=this;void 0===r&&(r=!1);var s=t.propertyName,a=t.cellRenderer,l=this.getCompKeys(e,t,o),u=l.compName,c=l.jsComp,p=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(e){var t=i.userComponentRegistry.retrieve(e);t&&(c=t.componentFromFramework?void 0:t.component,p=t.componentFromFramework?t.component:void 0)};if(null!=u&&g(u),null==c&&null==p&&null!=n&&g(n),c&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,c)),c||p){var m=this.mergeParamsWithApplicationProvidedParams(e,t,o,d),v=null==c,y=c||p;return{componentFromFramework:v,componentClass:y,params:m,type:t,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return i.newAgStackInstance(y,v,m,t)}}}r&&console.error("Could not find component "+u+", did you forget to configure this component?")},n.prototype.getCompKeys=function(e,t,n){var o,r,i,s,a,l,u=this,c=t.propertyName;if(e){var p=e,d=p[c+"Selector"],h=d?d(n):null,f=function(e,t){var n=function(){var e="AG Grid: As of v27, the property "+c+"Framework is deprecated. The property "+c+" can now be used for JavaScript AND Framework Components.";A((function(){return console.warn(e)}),"UserComponentFactory."+c+"FrameworkDeprecated")};if("string"===typeof e)o=e;else if("string"===typeof t)n(),o=t;else if(null!=e&&!0!==e){u.getFrameworkOverrides().isFrameworkComponent(e)?i=e:r=e}else null!=t&&(n(),i=t)};if(h){if(null!=h.frameworkComponent){var g="AG Grid: As of v27, the return for "+c+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";A((function(){return console.warn(g)}),"UserComponentFactory."+c+"FrameworkSelectorDeprecated"),f(h.frameworkComponent,void 0)}else f(h.component,void 0);s=h.params,a=h.popup,l=h.popupPosition}else f(p[c],p[c+"Framework"])}return{compName:o,jsComp:r,fwComp:i,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},n.prototype.newAgStackInstance=function(e,t,n,o){var r,i=o.propertyName;if(!t)r=new e;else{var s=this.componentMetadataProvider.retrieve(i);r=this.frameworkComponentWrapper.wrap(e,s.mandatoryMethodList,s.optionalMethodList,o)}var a=this.initComponent(r,n);return null==a?zo.resolve(r):a.then((function(){return r}))},n.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,n,o){void 0===o&&(o=null);var r={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};_(r,n);var i=e&&e[t.propertyName+"Params"];"function"===typeof i?_(r,i(n)):"object"===typeof i&&_(r,i);return _(r,o),r},n.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},n.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var n=null,o=this.getCompKeys(e,Fs),r=o.compName,i=o.jsComp,s=o.fwComp;r?n=Us.getFloatingFilterType(r):null==i&&null==s&&!0===e.filter&&(n=re.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");return n},Ks([Z("gridOptions")],n.prototype,"gridOptions",void 0),Ks([Z("agComponentUtils")],n.prototype,"agComponentUtils",void 0),Ks([Z("componentMetadataProvider")],n.prototype,"componentMetadataProvider",void 0),Ks([Z("userComponentRegistry")],n.prototype,"userComponentRegistry",void 0),Ks([Y("frameworkComponentWrapper")],n.prototype,"frameworkComponentWrapper",void 0),n=Ks([q("userComponentFactory")],n)}(Fe);(es=t.ExcelFactoryMode||(t.ExcelFactoryMode={}))[es.SINGLE_SHEET=0]="SINGLE_SHEET",es[es.MULTI_SHEET=1]="MULTI_SHEET";var Zs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ys=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return Zs(t,e),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=this.dragSources.find((function(t){return t.dragSource===e}));t&&(this.removeListener(t),de(this.dragSources,t))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){var n=this;void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var r=null,i=this.gridOptionsWrapper.isSuppressTouch();t&&!i&&(r=function(t){t.cancelable&&t.preventDefault(),n.onTouchStart(e,t)},e.eElement.addEventListener("touchstart",r,{passive:!0})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:r,touchEnabled:t})},t.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var o=t.touches[0];this.touchLastTime=o,this.touchStart=o;var r=function(t){return n.onTouchUp(t,e.eElement)},i=e.eElement,s=[{target:document,type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:function(t){return n.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:r,options:{passive:!0}},{target:i,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onCommonMove(o,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,t){var n=this,o=t;if((!e.skipMouseEvent||!e.skipMouseEvent(t))&&!o._alreadyProcessedByDragService&&(o._alreadyProcessedByDragService=!0,0===t.button)){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var r=this.gridOptionsWrapper.getDocument(),i=[{target:r,type:"mousemove",listener:function(t){return n.onMouseMove(t,e.eElement)}},{target:r,type:"mouseup",listener:function(t){return n.onMouseUp(t,e.eElement)}},{target:r,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.addEventListener(n,o,r)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.removeEventListener(n,o,r)}))}))},t.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels;return Mo(e,t,r(n)?n:4)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},t.prototype.onCommonMove=function(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:je.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:n};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},t.prototype.onMouseMove=function(e,t){Ht()&&"mousemove"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)},t.prototype.isOverFormFieldElement=function(e){var t,n;return!!(null===(n=null===(t=e.target)||void 0===t?void 0:t.tagName.toLocaleLowerCase())||void 0===n?void 0:n.match("^a$|textarea|input|select|button"))},t.prototype.onTouchUp=function(e,t){var n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)},t.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},t.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var n={type:je.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:t};this.eventService.dispatchEvent(n)}this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},Ys([Z("loggerFactory")],t.prototype,"loggerFactory",void 0),Ys([Z("columnApi")],t.prototype,"columnApi",void 0),Ys([Z("gridApi")],t.prototype,"gridApi",void 0),Ys([Z("mouseEventService")],t.prototype,"mouseEventService",void 0),Ys([z],t.prototype,"init",null),Ys([K],t.prototype,"removeAllListeners",null),t=Ys([q("dragService")],t)}(Fe),$s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xs=function(){return Xs=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Xs.apply(this,arguments)},Js=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ea=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.allColumnFilters=new Map,t.activeAggregateFilters=[],t.activeColumnFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var o;return $s(n,e),o=n,n.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,je.EVENT_GRID_COLUMNS_CHANGED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,je.EVENT_COLUMN_VALUE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,je.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,je.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter()},n.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},n.prototype.setFilterModel=function(e){var t=this,n=[],o=this.getFilterModel();if(e){var r=Go(Object.keys(e));this.allColumnFilters.forEach((function(o,i){var s=e[i];n.push(t.setModelOnFilterWrapper(o.filterPromise,s)),r.delete(i)})),r.forEach((function(o){var r=t.columnModel.getPrimaryColumn(o)||t.columnModel.getGridColumn(o);if(r)if(r.isFilterAllowed()){var i=t.getOrCreateFilterWrapper(r,"NO_UI");i?n.push(t.setModelOnFilterWrapper(i.filterPromise,e[o])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+o)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+o);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+o)}))}else this.allColumnFilters.forEach((function(e){n.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));zo.all(n).then((function(){var e=t.getFilterModel(),n=[];t.allColumnFilters.forEach((function(t,r){var i=o?o[r]:null,s=e?e[r]:null;Wo.jsonEquals(i,s)||n.push(t.column)})),n.length>0&&t.onFilterChanged({columns:n})}))},n.prototype.setModelOnFilterWrapper=function(e,t){return new zo((function(n){e.then((function(e){"function"!==typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),n()),(e.setModel(t)||zo.resolve()).then((function(){return n()}))}))}))},n.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach((function(t,n){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"===typeof o.getModel){var i=o.getModel();r(i)&&(e[n]=i)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),e},n.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},n.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},n.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},n.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var t=function(e){return!!e&&(e.isFilterActive?e.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},n=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach((function(o){if(o.filterPromise.resolveNow(!1,t)){var r=o.filterPromise.resolveNow(null,(function(e){return e}));!function(t){if(!t.isPrimary())return!0;var o=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!o)&&(!!e.columnModel.isPivotMode()||n)}(o.column)?e.activeColumnFilters.push(r):e.activeAggregateFilters.push(r)}}))},n.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach((function(n){var o=n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));n.column.setFilterActive(o,e,t)}))},n.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent()},n.prototype.doColumnFiltersPass=function(e,t,n){for(var o=e.data,r=e.aggData,i=n?this.activeAggregateFilters:this.activeColumnFilters,s=n?r:o,a=0;a<i.length;a++){var l=i[a];if(null!=l&&l!==t){if("function"!==typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:s}))return!1}}return!0},n.prototype.parseQuickFilter=function(e){return r(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},n.prototype.setQuickFilter=function(e){if(null==e||"string"===typeof e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof e)},n.prototype.refreshFiltersForAggregations=function(){this.gridOptionsWrapper.getGroupAggFiltering()&&this.onFilterChanged()},n.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var t=this;void 0===e&&(e={});var n=function(){return t.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(n,0):n()},n.prototype.onFilterChanged=function(e){void 0===e&&(e={});var t=e.filterInstance,n=e.additionalEventAttributes,o=e.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.allColumnFilters.forEach((function(e){e.filterPromise&&e.filterPromise.then((function(e){e&&e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var r={type:je.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi,columns:o||[]};n&&_(r,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(r),this.processingFilterChange=!1},n.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},n.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},n.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},n.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(o){var i=n.getQuickFilterTextForColumn(o,e);return r(i)&&i.indexOf(t)>=0}))},n.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},n.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every((function(o){return n?t.doesRowPassQuickFilterCache(e,o):t.doesRowPassQuickFilterNoCache(e,o)}))},n.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},n.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.gridOptionsWrapper.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(e.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)))},n.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var i={value:n,node:t,data:t.data,column:e,colDef:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};n=o.getQuickFilterText(i)}return r(n)?n.toString().toUpperCase():null},n.prototype.aggregateRowForQuickFilter=function(e){var t=this,n=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(o){var i=t.getQuickFilterTextForColumn(o,e);r(i)&&n.push(i)})),e.quickFilterAggregateText=n.join(o.QUICK_FILTER_SEPARATOR)},n.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.updateActiveFilters()},n.prototype.createValueGetter=function(e){var t=this;return function(n){var o=n.node;return t.valueService.getValue(e,o,!0)}},n.prototype.getFilterComponent=function(e,t,n){var o;if(void 0===n&&(n=!0),n)return(null===(o=this.getOrCreateFilterWrapper(e,t))||void 0===o?void 0:o.filterPromise)||null;var r=this.cachedFilter(e);return r?r.filterPromise:null},n.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},n.prototype.getOrCreateFilterWrapper=function(e,t){if(!e.isFilterAllowed())return null;var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allColumnFilters.set(e.getColId(),n)),n},n.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},n.prototype.createFilterInstance=function(e){var n,o=this,r=re.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",i=e.getColDef(),s=Xs(Xs({},this.createFilterParams(e,i)),{filterModifiedCallback:function(){var t={type:je.EVENT_FILTER_MODIFIED,api:o.gridApi,columnApi:o.columnApi,column:e,filterInstance:n};o.eventService.dispatchEvent(t)},filterChangedCallback:function(t){var r={filterInstance:n,additionalEventAttributes:t,columns:[e]};o.callOnFilterChangedOutsideRenderCycle(r)},doesRowPassOtherFilter:function(e){return o.doesRowPassOtherFilters(n,e)}}),a=this.userComponentFactory.getFilterDetails(i,s,r);if(!a)return null;var l=a.newAgStackInstance();return l&&l.then((function(e){return n=e})),l},n.prototype.createFilterParams=function(e,t){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:e,colDef:g(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},n.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,compiledElement:null,guiPromise:zo.resolve(null)};return n.filterPromise=this.createFilterInstance(e),n.filterPromise&&this.putIntoGui(n,t),n},n.prototype.putIntoGui=function(e,t){var n=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new zo((function(i){e.filterPromise.then((function(s){var a=s.getGui();r(a)||console.warn("AG Grid: getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"===typeof a&&(a=gn(a)),o.appendChild(a),i(o),n.eventService.dispatchEvent({type:je.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o,api:n.gridApi,columnApi:n.columnApi})}))}))},n.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach((function(n,o){(n.column.isPrimary()?e.columnModel.getPrimaryColumn(o):e.columnModel.getGridColumn(o))||(t.push(n.column),e.disposeFilterWrapper(n,"filterDestroyed"))})),t.length>0&&this.onFilterChanged({columns:t})},n.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allColumnFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged({columns:[e]}))},n.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(o){(o.setModel(null)||zo.resolve()).then((function(){n.getContext().destroyBean(o),e.column.setFilterActive(!1,t),n.allColumnFilters.delete(e.column.getColId())}))}))},n.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach((function(e){return t.disposeFilterWrapper(e,"filterDestroyed")}))},n.QUICK_FILTER_SEPARATOR="\n",Js([Z("valueService")],n.prototype,"valueService",void 0),Js([Z("columnModel")],n.prototype,"columnModel",void 0),Js([Z("rowModel")],n.prototype,"rowModel",void 0),Js([Z("columnApi")],n.prototype,"columnApi",void 0),Js([Z("gridApi")],n.prototype,"gridApi",void 0),Js([Z("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Js([Z("rowRenderer")],n.prototype,"rowRenderer",void 0),Js([z],n.prototype,"init",null),Js([K],n.prototype,"destroy",null),n=o=Js([q("filterManager")],n)}(Fe),ta=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),na=function(e){function t(t,n){var o=e.call(this,t)||this;return o.ctrl=n,o}return ta(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(tr),oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ra=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ia=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return oa(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveBodyCssClass:function(t,n){return e.eFloatingFilterBody.classList.toggle(t,n)},addOrRemoveButtonWrapperCssClass:function(t,n){return e.eButtonWrapper.classList.toggle(t,n)},setCompDetails:function(t){return e.setCompDetails(t)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return t.style.width=e},setMenuIcon:function(t){return e.eButtonShowMainFilter.appendChild(t)}};this.ctrl.setComp(n,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return t.afterCompCreated(e)}))},t.prototype.afterCompCreated=function(e){var t=this;e&&(this.addDestroyFunc((function(){return t.context.destroyBean(e)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n <div ref="eFloatingFilterBody" role="presentation"></div>\n <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',ra([nr("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),ra([nr("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),ra([nr("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),ra([z],t.prototype,"postConstruct",null),t}(na),sa=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"===typeof t)return e.parse([t]);if(Array.isArray(t)){var n=[];return t.forEach((function(t){var o=e.DEFAULT_BY_KEY[t];o?n.push(o):console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===n.length?null:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}},e.parseComponents=function(t){var n=[];return t?(t.forEach((function(t){var o=null;if("string"===typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));o=r}else o=t;n.push(o)})),n):n},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}(),aa=function(){return aa=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},aa.apply(this,arguments)},la=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ua=function(e,t){return function(n,o){t(n,o,e)}},ca=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},pa=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ca(arguments[t]));return e};function da(e){return!0===e||"true"===e}function ha(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function fa(e,t){var n=parseInt(e,10);return fo(n)&&n>0?n:t}var ga,ma=function(){function e(){this.propertyEventService=new ne,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var n;return n=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=sa.parse(this.gridOptions.sideBar));var n=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),n),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.isRowModelServerSide()){var o=function(e){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model"};r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupDefaultExpanded")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeFooter")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&re.assertRegistered(t.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("AG Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var i=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};i("radioButtonOff"),i("radioButtonOn"),i("checkboxChecked"),i("checkboxUnchecked"),i("checkboxIndeterminate"),this.getScrollbarWidth()},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var n=Object.getOwnPropertyNames(t),o=pa(St.ALL_PROPERTIES,St.FRAMEWORK_PROPERTIES);e.checkProperties(n,o,o,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=pa(ft.ALL_PROPERTIES,ft.FRAMEWORK_PROPERTIES,p(je).map((function(e){return yt.getCallbackForEvent(e)}))),n=pa(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},e.prototype.checkProperties=function(e,t,n,o,r){var i=bo(e,t,n);f(i,(function(e,t){console.warn("ag-grid: invalid "+o+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(i).length>0&&console.warn("ag-grid: to see all the valid "+o+" properties please check: "+r)},e.prototype.mergeGridCommonParams=function(e){var t=this;if(e){return function(n){var o=aa(aa({},n),{api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()});return e(o)}}return e},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var n=e[this.getDomDataKey()];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var o=this.getDomDataKey(),r=e[o];i(r)&&(r={},e[o]=r),r[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isSuppressRowDeselection=function(){return da(this.gridOptions.suppressRowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return da(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return da(this.gridOptions.pivotMode)},e.prototype.isSuppressExpandablePivotGroups=function(){return da(this.gridOptions.suppressExpandablePivotGroups)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return i(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return da(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return da(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return da(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return da(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return da(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return da(this.gridOptions.suppressTouch)},e.prototype.isMaintainColumnOrder=function(){return da(this.gridOptions.maintainColumnOrder)},e.prototype.isSuppressRowTransform=function(){return da(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressColumnStateEvents=function(){return da(this.gridOptions.suppressColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return da(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!da(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return da(this.gridOptions.enableCellChangeFlash)},e.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},e.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},e.prototype.isGroupSelectsChildren=function(){return da(this.gridOptions.groupSelectsChildren)},e.prototype.isSuppressRowHoverHighlight=function(){return da(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isColumnHoverHighlight=function(){return da(this.gridOptions.columnHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return da(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return da(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMaintainOrder=function(){return da(this.gridOptions.groupMaintainOrder)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):da(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType))},e.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},e.prototype.isGroupRemoveSingleChildren=function(){return da(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return da(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return da(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return da(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return da(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return da(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellFocus=function(){return da(this.gridOptions.suppressCellFocus)},e.prototype.isSuppressMultiSort=function(){return da(this.gridOptions.suppressMultiSort)},e.prototype.isAlwaysMultiSort=function(){return da(this.gridOptions.alwaysMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isPivotSuppressAutoColumn=function(){return da(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return da(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return da(this.gridOptions.suppressScrollOnNewData)},e.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return da(this.gridOptions.suppressScrollWhenPopupsAreOpen)},e.prototype.isRowDragEntireRow=function(){return da(this.gridOptions.rowDragEntireRow)},e.prototype.isSuppressRowDrag=function(){return da(this.gridOptions.suppressRowDrag)},e.prototype.isRowDragManaged=function(){return da(this.gridOptions.rowDragManaged)},e.prototype.isSuppressMoveWhenRowDragging=function(){return da(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isRowDragMultiRow=function(){return da(this.gridOptions.rowDragMultiRow)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||oe.DOM_LAYOUT_NORMAL;return-1===[oe.DOM_LAYOUT_PRINT,oe.DOM_LAYOUT_AUTO_HEIGHT,oe.DOM_LAYOUT_NORMAL].indexOf(e)?(A((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+oe.DOM_LAYOUT_NORMAL+", "+oe.DOM_LAYOUT_AUTO_HEIGHT+" and "+oe.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),oe.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return da(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return da(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return da(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowHorizontalScroll=function(){return da(this.gridOptions.alwaysShowHorizontalScroll)},e.prototype.isAlwaysShowVerticalScroll=function(){return da(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isDebounceVerticalScrollbar=function(){return da(this.gridOptions.debounceVerticalScrollbar)},e.prototype.isSuppressLoadingOverlay=function(){return da(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return da(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return da(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return da(this.gridOptions.functionsPassive)},e.prototype.isSuppressChangeDetection=function(){return da(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return da(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return da(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return da(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return da(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return da(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return da(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return da(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return ha(this.gridOptions.undoRedoCellEditingLimit)},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},e.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getServerSideStoreType=function(){return this.gridOptions.serverSideStoreType},e.prototype.getServerSideStoreParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideStoreParams)},e.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},e.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},e.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptions,t=e.initialGroupOrderComparator,n=e.defaultGroupOrderComparator;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodeA,e.nodeB)}:void 0},e.prototype.getIsFullWidthCellFunc=function(){var e=this.gridOptions,t=e.isFullWidthRow,n=e.isFullWidthCell;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.rowNode)}:void 0},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return da(this.gridOptions.embedFullWidthRows)||da(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.isDetailRowAutoHeight=function(){return da(this.gridOptions.detailRowAutoHeight)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isReadOnlyEdit=function(){return da(this.gridOptions.readOnlyEdit)},e.prototype.isImmutableData=function(){var e=null!=this.gridOptions.getRowId,t=da(this.gridOptions.immutableData);return!da(this.gridOptions.resetRowDataOnUpdate)&&(e||t)},e.prototype.isEnsureDomOrder=function(){return da(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!da(this.gridOptions.enableCharts)&&re.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return da(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return da(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenCellsLoseFocus=function(){return da(this.gridOptions.stopEditingWhenCellsLoseFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){var e=ha(this.gridOptions.maxConcurrentDatasourceRequests);return null==e?2:e<=0?void 0:e},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return ha(this.gridOptions.paginationPageSize)},e.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||da(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return fa(this.gridOptions.cacheBlockSize)},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return da(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return da(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isEnableRtl=function(){return da(this.gridOptions.enableRtl)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return da(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return da(this.gridOptions.angularCompileFilters)},e.prototype.isDebug=function(){return da(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return da(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return da(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return da(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return da(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return da(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return da(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return da(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return da(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressRowVirtualisation=function(){return da(this.gridOptions.suppressRowVirtualisation)},e.prototype.isSuppressContextMenu=function(){return da(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return da(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return da(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isSuppressCopySingleCellRanges=function(){return da(this.gridOptions.suppressCopySingleCellRanges)},e.prototype.isCopyHeadersToClipboard=function(){return da(this.gridOptions.copyHeadersToClipboard)},e.prototype.isCopyGroupHeadersToClipboard=function(){return da(this.gridOptions.copyGroupHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return da(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return da(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return da(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return da(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},e.prototype.getAsyncTransactionWaitMillis=function(){return r(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:oe.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return da(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&da(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return da(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return da(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return da(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||da(this.gridOptions.suppressAggFilteredOnly)},e.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return da(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},e.prototype.isShowOpenedGroup=function(){return da(this.gridOptions.showOpenedGroup)},e.prototype.isReactUi=function(){return da(this.gridOptions.reactUi)},e.prototype.isSuppressReactUi=function(){return da(this.gridOptions.suppressReactUi)},e.prototype.isEnableRangeSelection=function(){return re.isRegistered(t.ModuleNames.RangeSelectionModule)&&da(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return da(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return da(this.gridOptions.enableFillHandle)},e.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(A((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):e:"xy"},e.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},e.prototype.isSuppressMultiRangeSelection=function(){return da(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return da(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return da(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"===typeof e?this.mergeGridCommonParams(e):da(e)?function(){return!0}:void 0},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){return!!da(this.gridOptions.masterDetail)&&re.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return da(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return r(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return da(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return da(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return da(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isSuppressClipboardApi=function(){return da(this.gridOptions.suppressClipboardApi)},e.prototype.isFunctionsReadOnly=function(){return da(this.gridOptions.functionsReadOnly)},e.prototype.isEnableCellTextSelect=function(){return da(this.gridOptions.enableCellTextSelection)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+qe(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},e.prototype.isSuppressCsvExport=function(){return da(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return da(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return da(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return da(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},e.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggFunc=function(){var e=this.gridOptions,t=e.getGroupRowAgg,n=e.groupRowAggNodes;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodes)}:void 0},e.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},e.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},e.prototype.getRowIdFunc=function(){var e=this.gridOptions,t=e.getRowId,n=e.getRowNodeId;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.data)}:void 0},e.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},e.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},e.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},e.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},e.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},e.prototype.isTreeData=function(){return!!da(this.gridOptions.treeData)&&re.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return da(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return da(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return da(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return da(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},e.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},e.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},e.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},e.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},e.prototype.getViewportRowModelPageSize=function(){return fa(this.gridOptions.viewportRowModelPageSize,5)},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return da(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.isServerSideFilteringAlwaysResets=function(){return da(this.gridOptions.serverSideFilteringAlwaysResets)},e.prototype.getPostSortFunc=function(){var e=this.gridOptions,t=e.postSortRows,n=e.postSort;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodes)}:void 0},e.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},e.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},e.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},e.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},e.prototype.getClipboardDelimiter=function(){return r(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},e.prototype.setProperty=function(e,t,n){void 0===n&&(n=!1);var o=this.gridOptions,r=o[e];if(n||r!==t){o[e]=t;var i={type:e,currentValue:t,previousValue:r};this.propertyEventService.dispatchEvent(i)}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},e.prototype.getHeaderHeight=function(){return"number"===typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"===typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"===typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},e.prototype.doesExternalFilterPass=function(e){return"function"===typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getTooltipDelay=function(e){var t=this.gridOptions,n=t.tooltipShowDelay,o=t.tooltipHideDelay,i="show"===e?n:o,s=qe(e);return r(i)?(i<0&&A((function(){return console.warn("ag-grid: tooltip"+s+"Delay should not be lower than 0")}),"tooltip"+s+"DelayWarn"),Math.max(200,i)):null},e.prototype.isTooltipMouseTrack=function(){return da(this.gridOptions.tooltipMouseTrack)},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return da(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&r(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&r(e)?e:document},e.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(r(e)&&e>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var t=this.getFromTheme(null,"headerCellMinWidth");return r(t)?Math.max(t,n.MIN_COL_WIDTH):n.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!==typeof this.gridOptions.colWidth||this.gridOptions.colWidth<n.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"===typeof e?e<0&&(A((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=oe.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e="number"===typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:zt();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:je.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var t=function(t,n,o){null!=e[t]&&(console.warn("AG Grid: since version "+o+", '"+t+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==e[n]&&(e[n]=e[t]))};if(t("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),t("deltaRowDataMode","immutableData","23.1.x"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),t("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var n=e.groupRowRendererParams;e.groupRowInnerRenderer&&(n.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(n.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(n.innerRendererFramework=e.groupRowInnerRendererFramework)}if(e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn){var o=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+o+" = 'custom'`"),e.groupDisplayType="custom"}e.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),e.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),e.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),e.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),e.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),e.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),e.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),e.suppressCellFocus=e.suppressCellSelection),e.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),e.immutableData&&(e.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),e.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),e.clipboardDelimiter=e.clipboardDeliminator)},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&i(this.getDataPathFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(i(this.getIsServerSideGroupFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),i(this.getServerSideGroupKeyFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){var e=this,t=this.gridOptions,n=t.localeText,o=t.getLocaleText,r=t.localeTextFunc;return o?function(t,n,r){var i={key:t,defaultValue:n,variableValues:r,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()};return o(i)}:r||function(e,t,o){var r=n&&n[e];if(r&&o&&o.length)for(var i=0;!(i>=o.length);){if(-1===r.indexOf("${variable}"))break;r=r.replace("${variable}",o[i++])}return null!==r&&void 0!==r?r:t}},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var n=yt.getCallbackForEvent(e);"function"===typeof this.gridOptions[n]&&this.gridOptions[n](t)}},e.prototype.setRowHeightVariable=function(e){var t=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=t&&this.eGridDiv.style.setProperty("--ag-line-height",t)},e.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||i(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.isGetRowHeightFunction=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getRowHeightForNode=function(e,t,n){if(void 0===t&&(t=!1),null==n&&(n=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:n,estimated:!0};var o={node:e,data:e.data},r=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(o);if(this.isNumeric(r))return 0===r&&A((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,r),estimated:!1}}return e.detail&&this.isMasterDetail()?this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"===typeof e&&isFinite(e)},e.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.prototype.matchesGroupDisplayType=function(e,t){var n=["groupRows","multipleColumns","custom","singleColumn"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},e.prototype.matchesTreeDataDisplayType=function(e,t){var n=["auto","custom"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",e.PROP_TAB_TO_NEXT_CELL="tabToNextCell",e.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",e.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",e.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",e.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_GET_ROW_CLASS="getRowClass",e.PROP_GET_ROW_STYLE="getRowStyle",e.PROP_GET_ROW_HEIGHT="getRowHeight",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",e.PROP_ROW_CLASS="rowClass",e.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",e.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",e.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",e.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",e.PROP_GET_CHILD_COUNT="getChildCount",e.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",e.PROP_GET_ROW_NODE_ID="getRowNodeId",e.PROP_GET_ROW_ID="getRowId",e.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",e.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",e.PROP_IS_ROW_SELECTABLE="isRowSelectable",e.PROP_IS_ROW_MASTER="isRowMaster",e.PROP_POST_SORT="postSort",e.PROP_POST_SORT_ROWS="postSortRows",e.PROP_GET_DOCUMENT="getDocument",e.PROP_POST_PROCESS_POPUP="postProcessPopup",e.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",e.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",e.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",e.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",e.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",e.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",e.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",e.PROP_SEND_TO_CLIPBOARD="sendToClipboard",e.PROP_PROCESS_TO_SECONDARY_COLDEF="processSecondaryColDef",e.PROP_PROCESS_SECONDARY_COL_GROUP_DEF="processSecondaryColGroupDef",e.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",e.PROP_GET_SERVER_SIDE_STORE_PARAMS="getServerSideStoreParams",e.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",e.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",e.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",e.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",la([Z("gridOptions")],e.prototype,"gridOptions",void 0),la([Z("eventService")],e.prototype,"eventService",void 0),la([Z("environment")],e.prototype,"environment",void 0),la([Z("eGridDiv")],e.prototype,"eGridDiv",void 0),la([ua(0,$("gridApi")),ua(1,$("columnApi"))],e.prototype,"agWire",null),la([K],e.prototype,"destroy",null),la([z],e.prototype,"init",null),e=n=la([q("gridOptionsWrapper")],e)}(),va=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ya=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(ga=t.LayoutCssClasses||(t.LayoutCssClasses={})).AUTO_HEIGHT="ag-layout-auto-height",ga.NORMAL="ag-layout-normal",ga.PRINT="ag-layout-print";var Ca,wa=function(e){function n(t){var n=e.call(this)||this;return n.view=t,n}return va(n,e),n.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},n.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),n={autoHeight:e===oe.DOM_LAYOUT_AUTO_HEIGHT,normal:e===oe.DOM_LAYOUT_NORMAL,print:e===oe.DOM_LAYOUT_PRINT},o=n.autoHeight?t.LayoutCssClasses.AUTO_HEIGHT:n.print?t.LayoutCssClasses.PRINT:t.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(o,n)},ya([Z("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ya([z],n.prototype,"postConstruct",null),n}(Fe),ba=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_a=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ea=function(e){function t(t){var n=e.call(this)||this;return n.scrollLeft=-1,n.nextScrollTop=-1,n.scrollTop=-1,n.eBodyViewport=t,n.resetLastHorizontalScrollElementDebounced=G(n.resetLastHorizontalScrollElement.bind(n),500),n}return ba(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()}))},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?G(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(!(null==this.centerRowContainerCtrl)){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.ctrlsService.getTopCenterRowContainerCtrl(),o=this.ctrlsService.getBottomCenterRowContainerCtrl(),r=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(t),o.setContainerTranslateX(t),n.setContainerTranslateX(t),pn(this.lastHorizontalScrollElement===this.centerRowContainerCtrl.getViewportElement()?r.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(cn(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){var t=cn(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,n={type:je.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=Object.assign({},n,{type:je.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)}),100)},t.prototype.shouldBlockScrollUpdate=function(e,t,n){if(void 0===n&&(n=!1),n&&!Wt())return!1;if("vertical"===e){var o=rn(this.eBodyViewport),r=this.eBodyViewport.scrollHeight;if(t<0||t+o>r)return!0}if("horizontal"===e){var i=this.centerRowContainerCtrl.getCenterWidth(),s=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&un()){if(t>0)return!0}else if(t<0)return!0;if(Math.abs(t)+i>s)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&un()?e>0?0:t:Math.min(Math.max(e,0),t)),pn(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var n=this.rowModel.getRowCount(),o="function"===typeof e,r=-1,i=0;i<n;i++){var s=this.rowModel.getRow(i);if(o){if(e(s)){r=i;break}}else if(e===s||e===s.data){r=i;break}}r>=0&&this.ensureIndexVisible(r,t)},t.prototype.ensureIndexVisible=function(e,t){if(this.gridOptionsWrapper.getDomLayout()!==oe.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!==typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var o,r=this.paginationProxy.getRow(e);do{var i=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,u=l+r.rowHeight,c=this.getVScrollPosition(),p=this.heightScaler.getDivStretchOffset(),d=c.top+p,h=c.bottom+p,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),m=this.heightScaler.getScrollPositionForPixel(u-f),v=Math.min((g+m)/2,l),y=null;"top"===t?y=g:"bottom"===t?y=m:"middle"===t?y=v:d>l?y=g:h<u&&(y=m),null!==y&&(this.eBodyViewport.scrollTop=y,this.rowRenderer.redrawAfterScroll()),o=i!==r.rowTop||s!==r.rowHeight}while(o);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto");var n=this.columnModel.getGridColumn(e);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var o=this.getPositionedHorizontalScroll(n,t);null!==o&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(o),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,t){var n=this.isColumnOutsideViewport(e),o=n.columnBeforeStart,r=n.columnAfterEnd,i=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?o:r)||i,u=a?r:o;"auto"!==t&&(l="start"===t,u="end"===t);var c="middle"===t;if(l||u||c){var p=this.getColumnBounds(e),d=p.colLeft,h=p.colMiddle,f=p.colRight;return c?h-s/2:l?a?f:d:a?d-s:f-s}return null},t.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),n=t.start,o=t.end,r=this.getColumnBounds(e),i=r.colLeft,s=r.colRight,a=this.enableRtl;return{columnBeforeStart:a?n>s:o<s,columnAfterEnd:a?o<i:n>i}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),o=e.getActualWidth(),r=e.getLeft(),i=t?-1:1,s=t?n-r:r;return{colLeft:s,colMiddle:s+o/2*i,colRight:s+o*i}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},_a([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),_a([Z("animationFrameService")],t.prototype,"animationFrameService",void 0),_a([Z("columnApi")],t.prototype,"columnApi",void 0),_a([Z("gridApi")],t.prototype,"gridApi",void 0),_a([Z("paginationProxy")],t.prototype,"paginationProxy",void 0),_a([Z("rowModel")],t.prototype,"rowModel",void 0),_a([Z("rowContainerHeightService")],t.prototype,"heightScaler",void 0),_a([Z("rowRenderer")],t.prototype,"rowRenderer",void 0),_a([Z("columnModel")],t.prototype,"columnModel",void 0),_a([z],t.prototype,"postConstruct",null),t}(Fe),Sa=function(){function e(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||function(){return!1}}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var n=t||this.shouldSkipVerticalScroll();if(!n||!this.shouldSkipHorizontalScroll()){var o=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=e.clientX<o.left+r,this.tickRight=e.clientX>o.right-r,this.tickUp=e.clientY<o.top+r&&!n,this.tickDown=e.clientY>o.bottom-r&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){var n=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(n-e),this.tickRight&&this.setHorizontalPosition(n+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),Ra=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oa=function(){return Oa=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Oa.apply(this,arguments)},Pa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ta=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},xa=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ta(arguments[t]));return e},Aa=function(e){function n(t){var n=e.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=t,n}return Ra(n,e),n.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var t=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,je.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_MODEL_UPDATED,(function(){t()})),t(),this.ctrlsService.whenReady((function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Sa({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})}))},n.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},n.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},n.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!s(e)},n.prototype.getContainer=function(){return this.eContainer},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.RowDrag},n.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?ts.ICON_NOT_ALLOWED:ts.ICON_MOVE},n.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},n.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var n=this.gridOptionsWrapper.isRowDragMultiRow(),o=xa(this.selectionService.getSelectedNodes()).sort((function(e,n){return t.getRowIndexNumber(e)-t.getRowIndexNumber(n)})),r=e.dragItem.rowNode;return n&&-1!==o.indexOf(r)?(this.isMultiRowDrag=!0,o):(this.isMultiRowDrag=!1,[r])},n.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(je.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},n.prototype.onDragging=function(e){this.onEnterOrDragging(e)},n.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsWrapper.getDomDataKey()},n.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl().getGui(),n=e.dropZoneTarget;return!t.contains(n)},n.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(je.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},n.prototype.doManagedDrag=function(e,t){var n=this.isFromThisGrid(e),o=this.gridOptionsWrapper.isRowDragManaged(),r=e.dragItem.rowNodes;o&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!n?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(r[0],t):this.moveRows(r,t))},n.prototype.getRowIndexNumber=function(e){return parseInt(ue(e.getRowIndexString().split("-")),10)},n.prototype.moveRowAndClearHighlight=function(e){var n=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),r=o&&o.highlighted===t.RowHighlightPosition.Below,i=this.mouseEventService.getNormalisedPosition(e).y,s=e.dragItem.rowNodes,a=r?1:0;if(this.isFromThisGrid(e))s.forEach((function(e){e.rowTop<i&&(a-=1)})),this.moveRows(s,i,a);else{var l=this.gridOptionsWrapper.getRowIdFunc(),u=this.clientSideRowModel.getRowIndexAtPixel(i)+1;this.clientSideRowModel.getHighlightPosition(i)===t.RowHighlightPosition.Above&&u--,this.clientSideRowModel.updateRowData({add:s.map((function(e){return e.data})).filter((function(e){return!n.clientSideRowModel.getRowNode(l?l({data:e,level:0}):e.id)})),addIndex:u})}this.clearRowHighlight()},n.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},n.prototype.moveRows=function(e,t,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},n.prototype.addRowDropZone=function(e){var n=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(t){e.onDragEnter(n.draggingToRowDragEvent(je.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(o.onDragLeave=function(t){e.onDragLeave(n.draggingToRowDragEvent(je.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(o.onDragging=function(t){e.onDragging(n.draggingToRowDragEvent(je.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(o.onDragStop=function(t){e.onDragStop(n.draggingToRowDragEvent(je.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(Oa({isInterestedIn:function(e){return e===t.DragSourceType.RowDrag},getIconName:function(){return ts.ICON_MOVE},external:!0},o))}else A((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},n.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),o=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),s=this.onDragStop.bind(this);return e?{getContainer:n,onDragEnter:e.onDragEnter?function(n){o(n),e.onDragEnter(t.draggingToRowDragEvent(je.EVENT_ROW_DRAG_ENTER,n))}:o,onDragLeave:e.onDragLeave?function(n){r(n),e.onDragLeave(t.draggingToRowDragEvent(je.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(je.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){s(n),e.onDragStop(t.draggingToRowDragEvent(je.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:o,onDragLeave:r,onDragging:i,onDragStop:s,fromGrid:!0}},n.prototype.draggingToRowDragEvent=function(e,n){var o,r,i=this.mouseEventService.getNormalisedPosition(n).y,s=-1;switch(i>this.paginationProxy.getCurrentPageHeight()||(s=this.rowModel.getRowIndexAtPixel(i),o=this.rowModel.getRow(s)),n.vDirection){case t.VerticalDirection.Down:r="down";break;case t.VerticalDirection.Up:r="up";break;default:r=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,nodes:n.dragItem.rowNodes,overIndex:s,overNode:o,y:i,vDirection:r}},n.prototype.dispatchGridEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},n.prototype.onDragLeave=function(e){this.dispatchGridEvent(je.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},n.prototype.onDragStop=function(e){this.dispatchGridEvent(je.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},n.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Pa([Z("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Pa([Z("rowModel")],n.prototype,"rowModel",void 0),Pa([Z("paginationProxy")],n.prototype,"paginationProxy",void 0),Pa([Z("columnModel")],n.prototype,"columnModel",void 0),Pa([Z("focusService")],n.prototype,"focusService",void 0),Pa([Z("sortController")],n.prototype,"sortController",void 0),Pa([Z("filterManager")],n.prototype,"filterManager",void 0),Pa([Z("selectionService")],n.prototype,"selectionService",void 0),Pa([Z("mouseEventService")],n.prototype,"mouseEventService",void 0),Pa([Z("ctrlsService")],n.prototype,"ctrlsService",void 0),Pa([Y("rangeService")],n.prototype,"rangeService",void 0),Pa([Z("columnApi")],n.prototype,"columnApi",void 0),Pa([Z("gridApi")],n.prototype,"gridApi",void 0),Pa([z],n.prototype,"postConstruct",null),n}(Fe),Da=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Na=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(Ca=t.RowAnimationCssClasses||(t.RowAnimationCssClasses={})).ANIMATION_ON="ag-row-animation",Ca.ANIMATION_OFF="ag-row-no-animation";var La,Ia,Ma="ag-selectable",Fa="ag-force-vertical-scroll",ka="ag-column-moving",Ga=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Da(n,e),n.prototype.getScrollFeature=function(){return this.bodyScrollFeature},n.prototype.getBodyViewportElement=function(){return this.eBodyViewport},n.prototype.setComp=function(e,t,n,o,r){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=o,this.eBottom=r,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new wa(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Ea(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([o,n,r]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},n.prototype.getComp=function(){return this.comp},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,je.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_PINNED_ROW_DATA_CHANGED,this.setFloatingHeights.bind(this))},n.prototype.addFocusListeners=function(e){var t=this;e.forEach((function(e){t.addManagedListener(e,"focusin",(function(){e.classList.add("ag-has-focus")})),t.addManagedListener(e,"focusout",(function(t){e.contains(t.relatedTarget)||e.classList.remove("ag-has-focus")}))}))},n.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?ka:null,e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?Ma:null;this.comp.setCellSelectableCss(t,e)},n.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e)},n.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},n.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var t=function(t){var o=t.relatedTarget;if(null!==Bt(o)){var r=n.some((function(e){return e.contains(o)}))&&e.mouseEventService.isElementInThisGrid(o);if(!r){var i=e.popupService;r=i.getActivePopups().some((function(e){return e.contains(o)}))||i.isElementWithinCustomPopup(o)}r||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop];n.forEach((function(n){return e.addManagedListener(n,"focusout",t)}))}},n.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.paginationProxy.getType(),n=-1;t===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(n=0,this.paginationProxy.forEachNode((function(e){e.group||n++})));var o=-1===n?-1:e+n;this.comp.setRowCount(o)},n.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},n.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)},n.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),t=e?Fa:null;return this.comp.setAlwaysVerticalScrollClass(t,e),e||En(this.eBodyViewport)},n.prototype.setupRowAnimationCssClass=function(){var e=this,n=function(){var n=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),o=n?t.RowAnimationCssClasses.ANIMATION_ON:t.RowAnimationCssClasses.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(o,n)};n(),this.addManagedListener(this.eventService,je.EVENT_HEIGHT_SCALE_CHANGED,n)},n.prototype.getGridBodyElement=function(){return this.eGridBody},n.prototype.addBodyViewportListener=function(){var e=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(t){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&t.preventDefault();var n=t.target;n!==e.eBodyViewport&&n!==e.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||e.contextMenuFactory&&e.contextMenuFactory.onContextMenu(t,null,null,null,null,e.eGridBody)})),this.addManagedListener(this.eBodyViewport,"wheel",this.onWheel.bind(this))},n.prototype.onWheel=function(e){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},n.prototype.getGui=function(){return this.eGridBody},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Aa(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},n.prototype.getRowDragFeature=function(){return this.rowDragFeature},n.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight();t&&(t+=1);var n=e.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(n),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none")},n.prototype.sizeColumnsToFit=function(e){var t=this,n=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,o=sn(this.eBodyViewport)-n;o>0?this.columnModel.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Na([Z("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),Na([Z("ctrlsService")],n.prototype,"ctrlsService",void 0),Na([Z("columnModel")],n.prototype,"columnModel",void 0),Na([Z("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Na([Y("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Na([Z("headerNavigationService")],n.prototype,"headerNavigationService",void 0),Na([Z("paginationProxy")],n.prototype,"paginationProxy",void 0),Na([Z("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Na([Z("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Na([Z("rowRenderer")],n.prototype,"rowRenderer",void 0),Na([Z("popupService")],n.prototype,"popupService",void 0),Na([Z("mouseEventService")],n.prototype,"mouseEventService",void 0),n}(Fe);(La=t.SelectionHandleType||(t.SelectionHandleType={}))[La.FILL=0]="FILL",La[La.RANGE=1]="RANGE",(Ia=t.CellRangeType||(t.CellRangeType={}))[Ia.VALUE=0]="VALUE",Ia[Ia.DIMENSION=1]="DIMENSION";var Ha,Va="ag-cell-range-selected",ja=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Va,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),lo(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,o=!t&&e.right,r=!t&&e.bottom,i=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",i)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return me([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,n=this,o=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,i=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,p=u.columnModel;o?(e=p.getDisplayedColAfter(l),t=p.getDisplayedColBefore(l)):(e=p.getDisplayedColBefore(l),t=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter((function(e){return c.isCellInSpecificRange(n.cellCtrl.getCellPosition(),e)}));e||(a=!0),t||(i=!0);for(var h=0;h<d.length&&!(r&&i&&s&&a);h++){var f=d[h],g=c.getRangeStartRow(f),m=c.getRangeEndRow(f);!r&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(m,this.cellCtrl.getCellPosition())&&(s=!0),!a&&e&&f.columns.indexOf(e)<0&&(a=!0),!i&&t&&f.columns.indexOf(t)<0&&(i=!0)}return{top:r,right:i,bottom:s,left:a}},e.prototype.refreshHandle=function(){if(this.beans.rangeService){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},e.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=e.rangeService,r=o.getCellRanges(),i=r.length;if(this.rangeCount<1||i<1)return!1;var s=ue(r),a=this.cellCtrl.getCellPosition(),l=n.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),u=n.isEnableRangeHandle(),c=1===i&&!this.cellCtrl.isEditing()&&(l||u);if(this.hasChartRange){var p=r[0].type===t.CellRangeType.DIMENSION&&o.isCellInSpecificRange(a,r[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",p),c=s.type===t.CellRangeType.VALUE}return c&&null!=s.endRow&&o.isContiguousRange(s)&&o.isBottomRightCell(s,a)},e.prototype.addSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=ue(e.rangeService.getCellRanges()).type,r=n.isEnableFillHandle()&&i(o)?t.SelectionHandleType.FILL:t.SelectionHandleType.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(r)),this.selectionHandle.refresh(this.cellCtrl)},e.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},e}(),Wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ba=function(e){function t(t,n){var o=e.call(this)||this;return o.cellCtrl=t,o.beans=n,o.column=t.getColumn(),o.rowNode=t.getRowNode(),o.setupColSpan(),o.setupRowSpan(),o}return Wa(t,e),t.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},t.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();ce(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width=e+"px"}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,o=this.column.getPinned(),r=0;n&&r<e&&(t.push(n),(n=this.beans.columnModel.getDisplayedColAfter(n))&&!i(n))&&o===n.getPinned();r++);return t},t.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?ue(this.colsSpanning):this.column).getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===oe.PINNED_LEFT)return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();return this.column.getPinned()===oe.PINNED_RIGHT?t+this.beans.columnModel.getBodyContainerWidth()+(e||0):t+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=e+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Ua=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),za=function(e){function t(t,n){var o=e.call(this)||this;return o.staticClasses=[],o.cellCtrl=t,o.beans=n,o.column=t.getColumn(),o.rowNode=t.getRowNode(),o}return Ua(t,e),t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(t.cellClassRules,n,(function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}),(function(t){return e.cellComp.addOrRemoveCssClass(t,!1)}))},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var t;if("function"===typeof e.cellStyle){var n={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};t=(0,e.cellStyle)(n)}else t=e.cellStyle;this.cellComp.setUserStyles(t)}},t.prototype.applyClassesFromColDef=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,n),this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Ka=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qa=function(e){function t(t,n){var o=e.call(this)||this;return o.ctrl=t,o.beans=n,o}return Ka(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(null==this.genericTooltipFeature){var t={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new Qo(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,n=e.getColDef?e.getColDef():void 0,o=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:n,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:o,data:o?o.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Za=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ya=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Za([Z("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Za([Z("paginationProxy")],e.prototype,"paginationProxy",void 0),Za([Z("context")],e.prototype,"context",void 0),Za([Z("columnApi")],e.prototype,"columnApi",void 0),Za([Z("gridApi")],e.prototype,"gridApi",void 0),Za([Z("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Za([Z("expressionService")],e.prototype,"expressionService",void 0),Za([Z("rowRenderer")],e.prototype,"rowRenderer",void 0),Za([Z("templateService")],e.prototype,"templateService",void 0),Za([Z("valueService")],e.prototype,"valueService",void 0),Za([Z("eventService")],e.prototype,"eventService",void 0),Za([Z("columnModel")],e.prototype,"columnModel",void 0),Za([Z("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Za([Z("navigationService")],e.prototype,"navigationService",void 0),Za([Z("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Za([Y("rangeService")],e.prototype,"rangeService",void 0),Za([Z("focusService")],e.prototype,"focusService",void 0),Za([Y("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Za([Z("popupService")],e.prototype,"popupService",void 0),Za([Z("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Za([Z("stylingService")],e.prototype,"stylingService",void 0),Za([Z("columnHoverService")],e.prototype,"columnHoverService",void 0),Za([Z("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Za([Z("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),Za([Z("animationFrameService")],e.prototype,"animationFrameService",void 0),Za([Z("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Za([Z("sortController")],e.prototype,"sortController",void 0),Za([Z("filterManager")],e.prototype,"filterManager",void 0),Za([Z("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Za([Z("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Za([Z("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Za([Z("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Za([Z("selectionService")],e.prototype,"selectionService",void 0),Za([Y("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),Za([Z("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Za([Z("rowModel")],e.prototype,"rowModel",void 0),Za([Z("ctrlsService")],e.prototype,"ctrlsService",void 0),Za([Z("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),Za([Z("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),Za([Z("valueCache")],e.prototype,"valueCache",void 0),Za([Z("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),Za([z],e.prototype,"postConstruct",null),e=Za([q("beans")],e)}(),Qa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$a=function(e){function t(t,n,o){var r=e.call(this)||this;return r.cellCtrl=t,r.beans=n,r.column=o,r}return Qa(t,e),t.prototype.onMouseEvent=function(e,t){if(!Pe(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,o=t.gridOptionsWrapper,r=this.cellCtrl.createEvent(e,je.EVENT_CELL_CLICKED);n.dispatchEvent(r);var i=this.column.getColDef();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(r)}),0),(o.isSingleClickEdit()||i.singleClickEdit)&&!o.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Wt()||Te("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),n=this.cellCtrl.createEvent(e,je.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"===typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,o=e.shiftKey,r=e.target,i=this.beans,s=i.eventService,a=i.rangeService;if(!this.isRightClickInExistingRange(e)){var l=a&&0!=a.getCellRanges().length;if(!o||!l){var u=Gt()&&!this.cellCtrl.isEditing()&&!Xt(r);this.cellCtrl.focusCell(u)}if(o&&l&&e.preventDefault(),!this.containsWidget(r)){if(a){var c=this.cellCtrl.getCellPosition();if(o)a.extendLatestRangeToCell(c);else{var p=t||n;a.setRangeToCell(c,p)}}s.dispatchEvent(this.cellCtrl.createEvent(e,je.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t&&(t.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===e.button))return!0;return!1},t.prototype.containsWidget=function(e){return nn(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,je.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,je.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),n=t.contains(e.target),o=t.contains(e.relatedTarget);return n&&o},t.prototype.destroy=function(){},t}(Ya),Xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ja=function(e){function t(t,n,o,r,i){var s=e.call(this)||this;return s.cellCtrl=t,s.beans=n,s.rowNode=r,s.rowCtrl=i,s}return Xa(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case dr.ENTER:this.onEnterKeyDown(e);break;case dr.F2:this.onF2KeyDown(e);break;case dr.ESCAPE:this.onEscapeKeyDown(e);break;case dr.TAB:this.onTabKeyDown(e);break;case dr.BACKSPACE:case dr.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case dr.DOWN:case dr.UP:case dr.RIGHT:case dr.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(e,void 0,t)},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,dr.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(dr.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(dr.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):Do(e)&&(this.cellCtrl.startRowOrCellEdit(null,t,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var n=this.rowNode.isSelected(),o=!n;if(o||!t.isSuppressRowDeselection()){var r=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),i=this.rowNode.setSelectedParams({newValue:o,rangeSelect:e.shiftKey,groupSelectsFiltered:r});void 0===n&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:r})}}e.preventDefault()},t.prototype.destroy=function(){},t}(Fe),el=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},nl=function(e){function t(t,n,o,r){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=t,i.column=n,i.beans=o,i.eCell=r,i}return el(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(xo("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation()})),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var n=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n)}catch(o){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},tl([z],t.prototype,"postConstruct",null),t}(tr),ol=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rl=function(){return rl=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},rl.apply(this,arguments)},il="ag-cell-not-inline-editing",sl=0,al=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.suppressRefreshCell=!1,i.column=t,i.rowNode=n,i.beans=o,i.rowCtrl=r,i.instanceId=t.getId()+"-"+sl++,i.createCellPosition(),i.addFeatures(),i}return ol(t,e),t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new Ba(this,this.beans),this.addDestroyFunc((function(){return e.cellPositionFeature.destroy()})),this.cellCustomStyleFeature=new za(this,this.beans),this.addDestroyFunc((function(){return e.cellCustomStyleFeature.destroy()})),this.cellMouseListenerFeature=new $a(this,this.beans,this.column),this.addDestroyFunc((function(){return e.cellMouseListenerFeature.destroy()})),this.cellKeyboardListenerFeature=new Ja(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){return e.cellKeyboardListenerFeature.destroy()})),this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection()&&(this.cellRangeFeature=new ja(this.beans,this),this.addDestroyFunc((function(){return e.cellRangeFeature.destroy()}))),this.addTooltipFeature()},t.prototype.addTooltipFeature=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var t=e.column.getColDef(),n=e.rowNode.data;if(t.tooltipField&&r(n))return E(n,t.tooltipField,e.column.isTooltipFieldContainsDots());var o=t.tooltipValueGetter;return o?o({location:"cell",api:e.beans.gridOptionsWrapper.getApi(),columnApi:e.beans.gridOptionsWrapper.getColumnApi(),context:e.beans.gridOptionsWrapper.getContext(),colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new qa(t,this.beans),this.addDestroyFunc((function(){return e.tooltipFeature.destroy()}))},t.prototype.setComp=function(e,t,n,o,r){this.cellComp=e,this.gow=this.beans.gridOptionsWrapper,this.eGui=t,this.eCellWrapper=n,this.printLayout=o,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(),this.setAriaColIndex(),this.gow.isSuppressCellFocus()||this.cellComp.setTabIndex(-1);var i=Ze(this.column.getId());this.cellComp.setColId(i),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(t),this.cellCustomStyleFeature.setComp(e),this.tooltipFeature.setComp(e),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),r&&this.isCellEditable()?this.startEditing():this.showValue()},t.prototype.setupAutoHeight=function(){var e=this;if(this.column.isAutoHeight()){var t=this.eCellWrapper,n=t.parentElement,o=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,r=function r(i){if(!e.editing&&e.isAlive()){var s=on(n),a=s.paddingTop,l=s.paddingBottom,u=t.offsetHeight+a+l;if(i<5){var c=e.beans.gridOptionsWrapper.getDocument();if(!c||!c.contains(t)||0==u)return void e.beans.frameworkOverrides.setTimeout((function(){return r(i+1)}),0)}var p=Math.max(u,o);e.rowNode.setRowAutoHeight(p,e.column)}},i=function(){return r(0)};i();var s=this.beans.resizeObserverService.observeResize(t,i);this.addDestroyFunc((function(){s(),e.rowNode.setRowAutoHeight(void 0,e.column)}))}},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.showValue=function(e){void 0===e&&(e=!1);var t=null!=this.valueFormatted?this.valueFormatted:this.value,n=this.createCellRendererParams(),o=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n);this.cellComp.setRenderDetails(o,t,e),this.refreshHandle()},t.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},t.prototype.isForceWrapper=function(){return this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.isAutoHeight()},t.prototype.isIncludeControl=function(e){return!(null!=this.rowNode.rowPinned)&&("function"===typeof e||!0===e)},t.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),o=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||n||o},t.prototype.startEditing=function(e,t,n,o){var r,i;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),void 0===o&&(o=null),this.isCellEditable()&&!this.editing){var s=this.createCellEditorParams(e,t,n),a=this.column.getColDef(),l=this.beans.userComponentFactory.getCellEditorDetails(a,s),u=null!=(null===(r=l)||void 0===r?void 0:r.popupFromSelector)?l.popupFromSelector:!!a.cellEditorPopup,c=null!=(null===(i=l)||void 0===i?void 0:i.popupPositionFromSelector)?l.popupPositionFromSelector:a.cellEditorPopupPosition;this.setEditing(!0,u),this.cellComp.setEditDetails(l,u,c);var p=this.createEvent(o,je.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(p)}},t.prototype.setEditing=function(e,t){void 0===t&&(t=!1),this.editing!==e&&(this.editing=e,this.editingInPopup=t,this.setInlineEditingClass())},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},t.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},t.prototype.takeValueFromCellEditor=function(e){var t={newValueExists:!1};if(e)return t;var n=this.cellComp.getCellEditor();return n?n.isCancelAfterEnd&&n.isCancelAfterEnd()?t:{newValue:n.getValue(),newValueExists:!0}:t},t.prototype.saveNewValue=function(e,t){if(t===e)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(e,t),!1;this.suppressRefreshCell=!0;var n=this.rowNode.setDataValue(this.column,t);return this.suppressRefreshCell=!1,n},t.prototype.dispatchEventForSaveValueReadOnly=function(e,t){var n=this.rowNode,o={type:je.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),data:n.data,node:n,oldValue:e,newValue:t,value:t,source:void 0};this.beans.eventService.dispatchEvent(o)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),n=t.newValue,o=t.newValueExists,r=this.getValueFromValueService(),i=!1;return o&&(i=this.saveNewValue(r,n)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(r,n),i},t.prototype.dispatchEditingStoppedEvent=function(e,t){var n=rl(rl({},this.createEvent(null,je.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t});this.beans.eventService.dispatchEvent(n)},t.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editing&&!this.editingInPopup,t=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass("ag-cell-inline-editing",e),this.cellComp.addOrRemoveCssClass(il,!e),this.cellComp.addOrRemoveCssClass("ag-cell-popup-editing",t),this.rowCtrl.setInlineEditingCss(this.editing)}},t.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},t.prototype.createCellEditorParams=function(e,t,n){return{value:this.getValueFromValueService(),key:e,eventKey:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},t.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(t,n,o,r){return e.registerRowDragger(t,n,r)},addRowCompListener:function(t,n){console.warn("AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided."),e.rowCtrl.addEventListener(t,n)}}},t.prototype.parseValue=function(e){var t=this.column.getColDef(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},o=t.valueParser;return r(o)?this.beans.expressionService.evaluate(o,n):e},t.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},t.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},t.prototype.onCellChanged=function(e){this.cellComp&&(e.column===this.column&&this.refreshCell({}))},t.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var t=this.column.getColDef(),n=null!=e&&!!e.newData,o=null!=e&&!!e.suppressFlash||!!t.suppressCellFlash,r=null==t.field&&null==t.valueGetter&&null==t.showRowGroup,i=e&&e.forceRefresh||r||n,s=this.updateAndFormatValue();if(i||s){this.showValue(n);var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!o&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.navigationService.navigateToNextCell(null,dr.DOWN,this.getCellPosition(),!1)},t.prototype.flashCell=function(e){var t=e&&e.flashDelay,n=e&&e.fadeDelay;this.animateCell("data-changed",t,n)},t.prototype.animateCell=function(e,t,n){var o=this,i="ag-cell-"+e,s="ag-cell-"+e+"-animation",a=this.beans.gridOptionsWrapper;t||(t=a.getCellFlashDelay()),r(n)||(n=a.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(i,!0),this.cellComp.addOrRemoveCssClass(s,!1),window.setTimeout((function(){o.cellComp.addOrRemoveCssClass(i,!1),o.cellComp.addOrRemoveCssClass(s,!0),o.eGui.style.transition="background-color "+n+"ms",window.setTimeout((function(){o.cellComp.addOrRemoveCssClass(s,!1),o.eGui.style.transition=""}),n)}),t)},t.prototype.onFlashCells=function(e){if(this.cellComp){var t=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[t]&&this.animateCell("highlight")}},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},t.prototype.formatValue=function(e){var t=this.callValueFormatter(e);return null!=t?t:e},t.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},t.prototype.updateAndFormatValue=function(e){void 0===e&&(e=!1);var t=this.value,n=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n)},t.prototype.valuesAreEqual=function(e,t){var n=this.column.getColDef();return n.equals?n.equals(e,t):e===t},t.prototype.getComp=function(){return this.cellComp},t.prototype.getValueFromValueService=function(){var e=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),o=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r=t&&n&&!o;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},t.prototype.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,n=this.getGui();this.beans.gridOptionsWrapper.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,null)}))},t.prototype.createEvent=function(e,t){return{type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyPress=function(e){this.cellKeyboardListenerFeature.onKeyPress(e)},t.prototype.onKeyDown=function(e){this.cellKeyboardListenerFeature.onKeyDown(e)},t.prototype.onMouseEvent=function(e,t){this.cellMouseListenerFeature.onMouseEvent(e,t)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},t.prototype.onLeftChanged=function(){this.cellComp&&this.cellPositionFeature.onLeftChanged()},t.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},t.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);ro(this.getGui(),e)},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},t.prototype.getColumn=function(){return this.column},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getBeans=function(){return this.beans},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.appendChild=function(e){this.eGui.appendChild(e)},t.prototype.refreshHandle=function(){this.editing||this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.isEditing=function(){return this.editing},t.prototype.startRowOrCellEdit=function(e,t,n){void 0===n&&(n=null),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(e,t,this):this.startEditing(e,t,!0,n)},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},t.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusService.setFocusedCell(this.getCellPosition().rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",e)}},t.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",e)}},t.prototype.onCellFocused=function(e){if(this.cellComp&&!this.gow.isSuppressCellFocus()){var t=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp.addOrRemoveCssClass("ag-cell-focus",t),t&&e&&e.forceBrowserFocus)this.cellComp.getFocusableElement().focus();var n=this.beans.gridOptionsWrapper.isFullRowEdit();t||n||!this.editing||this.stopRowOrCellEdit()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:o(this.rowNode.rowPinned),column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass(il,!0);var e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",e),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!e)},t.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",e)}},t.prototype.onNewColumnsLoaded=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},t.prototype.setWrapText=function(){var e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",e)},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.column.getColDef(),n=this.createEvent(e,je.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(n)}),0)},t.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},t.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.createSelectionCheckbox=function(){var e=new Qi;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new nl(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},t.prototype.registerRowDragger=function(e,t,n){var o=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,t);else{var r=this.createRowDragComp(e,t,n);r&&(this.customRowDragComp=r,this.addDestroyFunc((function(){return o.beans.context.destroyBean(r)})))}},t.prototype.createRowDragComp=function(e,t,n){var o=this,r=this.beans.gridOptionsWrapper.isPagination(),i=this.beans.gridOptionsWrapper.isRowDragManaged(),s=this.beans.gridOptionsWrapper.isRowModelDefault();if(i){if(!s)return void A((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(r)return void A((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var a=new rs((function(){return o.value}),this.rowNode,this.column,e,t,n);return this.beans.context.createBean(a),a},t.DOM_DATA_KEY_CELL_CTRL="cellCtrl",t}(Fe),ll=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ul=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},cl=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ul(arguments[t]));return e};!function(e){e.Normal="Normal",e.FullWidth="FullWidth",e.FullWidthLoading="FullWidthLoading",e.FullWidthGroup="FullWidthGroup",e.FullWidthDetail="FullWidthDetail"}(Ha||(Ha={}));var pl,dl,hl=0,fl=function(e){function n(t,n,o,r,i){var s=e.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.beans=n,s.rowNode=t,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=r,s.printLayout=i,s.instanceId=t.id+"-"+hl++,s.setAnimateFlags(o),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s.setInitialRowTop(),s}return ll(n,e),n.prototype.getBeans=function(){return this.beans},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e,n,o){var r={rowComp:e,element:n,containerType:o};this.allRowGuis.push(r),o===t.RowContainerType.LEFT?this.leftGui=r:o===t.RowContainerType.RIGHT?this.rightGui=r:o===t.RowContainerType.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r;var i=null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui,s=null!=this.fullWidthGui;(i||s)&&this.initialiseRowComps()},n.prototype.isCacheable=function(){return this.rowType===Ha.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},n.prototype.setCached=function(e){var t=e?"none":"";this.allRowGuis.forEach((function(e){return e.element.style.display=t}))},n.prototype.initialiseRowComps=function(){var e=this,t=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),t.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&F(this.onTopChanged.bind(this)),this.fadeRowIn&&F((function(){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}))}));var o=this.getRowBusinessKey(),r=Ze(this.rowNode.id),i=Ze(o);this.allRowGuis.forEach((function(o){var s=o.rowComp;s.setRole("row"),e.getInitialRowClasses(o.containerType).forEach((function(e){return s.addOrRemoveCssClass(e,!0)})),e.rowNode.group&&Qn(o.element,1==e.rowNode.expanded),null!=r&&s.setRowId(r),null!=i&&s.setRowBusinessKey(i),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&s.setTabIndex(-1),t.setDomData(o.element,n.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc((function(){return t.setDomData(o.element,n.DOM_DATA_KEY_ROW_CTRL,null)})),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,o.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(o.element),e.isFullWidth()&&e.setupFullWidth(o),t.isRowDragEntireRow()&&e.addRowDraggerToRow(o),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask((function(){e.isAlive()&&o.rowComp.addOrRemoveCssClass("ag-after-created",!0)}))})),this.executeProcessRowPostCreateFunc()},n.prototype.addRowDraggerToRow=function(e){if(this.beans.gridOptionsWrapper.isEnableRangeSelection())A((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var t=new rs((function(){return"1 row"}),this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(t,this.beans.context)}},n.prototype.setupFullWidth=function(e){var n=this.getPinnedForContainer(e.containerType),o=this.createFullWidthParams(e.element,n),r=re.isRegistered(t.ModuleNames.MasterDetailModule);if(this.rowType!=Ha.FullWidthDetail||r){var i;switch(this.rowType){case Ha.FullWidthDetail:i=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case Ha.FullWidthGroup:i=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case Ha.FullWidthLoading:i=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:i=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o)}e.rowComp.showFullWidth(i)}else re.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+t.ModuleNames.MasterDetailModule)},n.prototype.isPrintLayout=function(){return this.printLayout},n.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},n.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},n.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,o=this.beans.columnModel.isPivotMode(),r=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(o);this.rowType=e?Ha.FullWidthLoading:n?Ha.FullWidthDetail:t?Ha.FullWidth:r?Ha.FullWidthGroup:Ha.Normal},n.prototype.updateColumnLists=function(e){var t=this;(void 0===e&&(e=!1),this.isFullWidth())||(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){t.active&&t.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},n.prototype.createCellCtrls=function(e,t,n){var o=this;void 0===n&&(n=null);var r={list:[],map:{}},i=function(e,t){r.list.push(t),r.map[e]=t};return t.forEach((function(t){var n=t.getInstanceId(),r=e.map[n];r||(r=new al(t,o.rowNode,o.beans,o)),i(n,r)})),e.list.forEach((function(e){null!=r.map[e.getColumn().getInstanceId()]||(!o.isCellEligibleToBeRemoved(e,n)?i(e.getColumn().getInstanceId(),e):e.destroy())})),r},n.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var n=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var o=n.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);var r=n.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,oe.PINNED_LEFT);var i=n.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,oe.PINNED_RIGHT)}this.allRowGuis.forEach((function(n){var o=n.containerType===t.RowContainerType.LEFT?e.leftCellCtrls:n.containerType===t.RowContainerType.RIGHT?e.rightCellCtrls:e.centerCellCtrls;n.rowComp.setCellCtrls(o.list)}))},n.prototype.isCellEligibleToBeRemoved=function(e,t){var n=!0;if(e.getColumn().getPinned()!=t)return n;var o=e.isEditing(),r=this.beans.focusService.isCellFocused(e.getCellPosition());if(o||r){var i=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(i)>=0)&&n}return n},n.prototype.setAnimateFlags=function(e){if(e){var t=r(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.rowType!==Ha.Normal},n.prototype.getRowType=function(){return this.rowType},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n){if(!t)return!0;var o=t.rowComp.getFullWidthCellRenderer();if(!o)return!1;if(!o.refresh)return!1;var r=e.createFullWidthParams(t.element,n);return o.refresh(r)},n=t(this.fullWidthGui,null),o=t(this.centerGui,null),r=t(this.leftGui,oe.PINNED_LEFT),i=t(this.rightGui,oe.PINNED_RIGHT);return n&&o&&r&&i},n.prototype.addListeners=function(){this.addManagedListener(this.rowNode,qi.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,qi.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,je.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,je.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,je.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,je.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,je.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,je.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,je.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.onColumnMoved=function(){this.updateColumnLists()},n.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,qi.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,qi.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},n.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(n){var o=e===t.RowHighlightPosition.Above,r=e===t.RowHighlightPosition.Below;n.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),n.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)}))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},n.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",e),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),Qn(n.element,e&&t)}))},n.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},n.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},n.prototype.getRowPosition=function(){return{rowPinned:o(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},n.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)}));if((t?t.element:null)===e.target){var n=this.rowNode,o=this.beans.focusService.getFocusedCell(),r={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:o&&o.column};this.beans.navigationService.navigateToNextCell(e,e.key,r,!0),e.preventDefault()}},n.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Pe(e)){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)})),n=t?t.element:null,o=n===e.target,r=null;o||(r=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&o||!r)&&this.beans.navigationService.onTabKeyDown(this,e)}},n.prototype.onFullWidthRowFocused=function(e){var t,n=this.rowNode,o=this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,r=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;r&&(r.classList.toggle("ag-full-width-focus",o),o&&r.focus({preventScroll:!0}))},n.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},n.prototype.removeCellCtrl=function(e,t){var n={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(n.list.push(e),n.map[e.getInstanceId()]=e)})),n},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}},n.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!Pe(e)){var t=this.createRowEventWithSource(je.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=nn(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,n=this.beans.columnModel;this.beans.focusService.setFocusedCell(t.rowIndex,n.getAllDisplayedColumns()[0],t.rowPinned,!0)}},n.prototype.onRowClick=function(e){if(!(Pe(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(je.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,o=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!o,rangeSelect:o});else{var s=!r&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:o})}}}},n.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===Ha.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var n=e.clientHeight;if(null!=n&&n>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(n),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},o=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(o),n()}},n.prototype.createFullWidthParams=function(e,t){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,o,r){return n.addFullWidthRowDragging(e,t,o,r)}}},n.prototype.addFullWidthRowDragging=function(e,t,n,o){if(void 0===n&&(n=""),this.isFullWidth()){var r=new rs((function(){return n}),this.rowNode,void 0,e,t,o);this.createManagedBean(r,this.beans.context)}},n.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=e},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},n.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-last",t)})))},n.prototype.stopEditing=function(e){void 0===e&&(e=!1);var t=this.getAllCellCtrls().map((function(t){return t.stopEditing(e)}));if(this.editingRow){if(!e&&t.some((function(e){return e}))){var n=this.createRowEvent(je.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(n)}this.setEditingRow(!1)}},n.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)}))},n.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-editing",e)}));var t=e?this.createRowEvent(je.EVENT_ROW_EDITING_STARTED):this.createRowEvent(je.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),this.editingRow||(this.getAllCellCtrls().forEach((function(r){var i=r===n;i?r.startEditing(e,t,i,o):r.startEditing(null,null,i,o)})),this.setEditingRow(!0))},n.prototype.getAllCellCtrls=function(){return cl(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);t&&t.length&&t.forEach((function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}),(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!1)}))}))},n.prototype.setStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(t){return t.rowComp.setUserStyles(e)}))},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"===typeof e)return e(this.rowNode)},n.prototype.getPinnedForContainer=function(e){return e===t.RowContainerType.LEFT?oe.PINNED_LEFT:e===t.RowContainerType.RIGHT?oe.PINNED_RIGHT:null},n.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!==typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return Object.assign({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.onRowSelected=function(){var e=this,t=!!this.rowNode.isSelected();this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-selected",t),lo(n.element,!!t||void 0);var o=e.createAriaLabel();Un(n.element,null==o?"":o)}))},n.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsWrapper.isSuppressRowDeselection())return this.beans.gridOptionsWrapper.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},n.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,qi.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||e.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,qi.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,o=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),o)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.onRowHeightChanged=function(){if(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,t=this.beans.gridOptionsWrapper.getDefaultRowHeight(),n=this.beans.gridOptionsWrapper.isGetRowHeightFunction()?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,o=n?Math.min(t,n)-2+"px":void 0;this.allRowGuis.forEach((function(t){t.element.style.height=e+"px",o&&t.element.style.setProperty("--ag-line-height",o)}))}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=je.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+je.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=je.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+je.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(je.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},n.prototype.setupRemoveAnimation=function(){if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},n.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(e){return e.list.forEach((function(e){return e.destroy()})),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},n.prototype.setFocusedClasses=function(){var e=this;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&r(e)){var t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.setRowTopStyle(n)}},n.prototype.getInitialRowTop=function(){return this.initialTop},n.prototype.getInitialTransform=function(){return this.initialTransform},n.prototype.setInitialRowTop=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.initialTop=n:this.initialTransform="translateY("+n+")"},n.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(n){return t?n.rowComp.setTop(e):n.rowComp.setTransform("translateY("+e+")")}))},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(n){n.getColumn()==e&&(t=n)})),null!=t||this.getAllCellCtrls().forEach((function(n){n.getColSpanningList().indexOf(e)>=0&&(t=n)})),t},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},n.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2===0,o=t+this.rowNode.rowIndex+1;this.allRowGuis.forEach((function(t){t.rowComp.setRowIndex(e),t.rowComp.addOrRemoveCssClass("ag-row-even",n),t.rowComp.addOrRemoveCssClass("ag-row-odd",!n),no(t.element,o)}))},n.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},n.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},n.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},n.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},n.DOM_DATA_KEY_ROW_CTRL="renderedRow",n}(Fe),gl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ml=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vl=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},yl=function(e){function n(t){var n=e.call(this)||this;return n.element=t,n}return gl(n,e),n.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var n=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",Te("touchstart")?"touchstart":"mousedown"].forEach((function(t){var n=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Pe(t)){var n=this.getRowForEvent(t),o=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,n,o):(o&&o.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},n.prototype.mockContextMenuForIPad=function(){var e=this;if(Wt()){var t=new mi(this.element);this.addManagedListener(t,mi.EVENT_LONG_TAP,(function(t){var n=e.getRowForEvent(t.touchEvent),o=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,o)})),this.addDestroyFunc((function(){return t.destroy()}))}},n.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var n=this.gridOptionsWrapper.getDomData(t,fl.DOM_DATA_KEY_ROW_CTRL);if(n)return n;t=t.parentElement}return null},n.prototype.handleContextMenuMouseEvent=function(e,t,n,o){var r=n?n.getRowNode():null,i=o?o.getColumn():null,s=null;if(i){var a=e||t;o.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,r)}var l=this.ctrlsService.getGridBodyCtrl(),u=o?o.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,r,i,s,u)},n.prototype.processKeyboardEvent=function(e,t){var n=xe(this.gridOptionsWrapper,t,al.DOM_DATA_KEY_CELL_CTRL),o=xe(this.gridOptionsWrapper,t,fl.DOM_DATA_KEY_ROW_CTRL);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):o&&o.isFullWidth()&&this.processFullWidthRowKeyboardEvent(o,e,t))},n.prototype.processCellKeyboardEvent=function(e,t,n){var o=e.getRowNode(),r=e.getColumn(),i=e.isEditing();if(!No(this.gridOptionsWrapper,n,o,r,i))switch(t){case"keydown":!i&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing());break;case"keypress":e.onKeyPress(n)}if("keydown"===t){var s=e.createEvent(n,je.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===t){var a=e.createEvent(n,je.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(a)}},n.prototype.processFullWidthRowKeyboardEvent=function(e,t,n){var o=e.getRowNode(),r=this.focusService.getFocusedCell(),i=r&&r.column;if(!No(this.gridOptionsWrapper,n,o,i,!1)){var s=n.key;if("keydown"===t)switch(s){case dr.UP:case dr.DOWN:e.onKeyboardNavigate(n);break;case dr.TAB:e.onTabKeyDown(n)}}if("keydown"===t){var a=e.createRowEvent(je.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(a)}if("keypress"===t){var l=e.createRowEvent(je.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(l)}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e))switch(e.code){case dr.A:return this.onCtrlAndA(e);case dr.C:return this.onCtrlAndC(e);case dr.V:return this.onCtrlAndV();case dr.D:return this.onCtrlAndD(e);case dr.Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case dr.Y:return this.undoRedoService.redo()}},n.prototype.onCtrlAndA=function(e){var t=this,n=t.pinnedRowModel,o=t.paginationProxy,r=t.rangeService,i=oe.PINNED_BOTTOM,a=oe.PINNED_TOP;if(r&&o.isRowsToRender()){var l=vl([n.isEmpty(a),n.isEmpty(i)],2),u=l[0]?null:a,c=void 0,p=void 0;l[1]?(c=null,p=this.paginationProxy.getRowCount()-1):(c=i,p=n.getPinnedBottomRowData().length-1);var d=this.columnModel.getAllDisplayedColumns();if(s(d))return;r.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:p,rowEndPinned:c,columnStart:d[0],columnEnd:ue(d)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){re.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){re.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},ml([Z("mouseEventService")],n.prototype,"mouseEventService",void 0),ml([Z("valueService")],n.prototype,"valueService",void 0),ml([Y("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),ml([Z("ctrlsService")],n.prototype,"ctrlsService",void 0),ml([Z("navigationService")],n.prototype,"navigationService",void 0),ml([Z("focusService")],n.prototype,"focusService",void 0),ml([Z("undoRedoService")],n.prototype,"undoRedoService",void 0),ml([Z("columnModel")],n.prototype,"columnModel",void 0),ml([Z("paginationProxy")],n.prototype,"paginationProxy",void 0),ml([Z("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),ml([Y("rangeService")],n.prototype,"rangeService",void 0),ml([Y("clipboardService")],n.prototype,"clipboardService",void 0),ml([z],n.prototype,"postConstruct",null),n}(Fe),Cl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bl=function(e){function t(t){var n=e.call(this)||this;return n.centerContainerCtrl=t,n}return Cl(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()})),this.addManagedListener(this.eventService,je.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},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=rn(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:je.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},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),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},wl([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),wl([Z("columnModel")],t.prototype,"columnModel",void 0),wl([Z("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),wl([Z("columnApi")],t.prototype,"columnApi",void 0),wl([Z("gridApi")],t.prototype,"gridApi",void 0),wl([z],t.prototype,"postConstruct",null),t}(Fe),_l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),El=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return _l(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,je.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;Jt(this.element,t),t&&Rn(this.element,e)},El([Z("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),El([z],t.prototype,"postConstruct",null),t}(Fe),Rl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ol=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return Rl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,je.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;Jt(this.element,t),t&&Rn(this.element,e)},Ol([Z("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Ol([z],t.prototype,"postConstruct",null),t}(Fe),Tl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Al=function(e){function t(t,n){var o=e.call(this)||this;return o.eContainer=t,o.eWrapper=n,o}return Tl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,je.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+"px":"";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},xl([Z("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),xl([z],t.prototype,"postConstruct",null),t}(Fe),Dl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ll=function(e){function t(t){var n=e.call(this)||this;return n.eContainer=t,n}return Dl(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!i(this.rangeService)){var t={dragStartPixels:0,eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(t),this.addDestroyFunc((function(){return e.dragService.removeDragSource(t)}))}},Nl([Y("rangeService")],t.prototype,"rangeService",void 0),Nl([Z("dragService")],t.prototype,"dragService",void 0),Nl([z],t.prototype,"postConstruct",null),t}(Fe),Il=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ml=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fl=function(e){function t(t){var n=e.call(this)||this;return n.callback=t,n}return Il(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),o=e.getDisplayedColumnsLeftWidth(),r=e.getDisplayedColumnsRightWidth(),i=t?n+o+r:n;this.callback(i)},Ml([Z("columnModel")],t.prototype,"columnModel",void 0),Ml([z],t.prototype,"postConstruct",null),t}(Fe),kl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Hl=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Vl=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Hl(arguments[t]));return e};function jl(e){switch(e){case t.RowContainerName.CENTER:case t.RowContainerName.TOP_CENTER:case t.RowContainerName.BOTTOM_CENTER:return t.RowContainerType.CENTER;case t.RowContainerName.LEFT:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.BOTTOM_LEFT:return t.RowContainerType.LEFT;case t.RowContainerName.RIGHT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.BOTTOM_RIGHT:return t.RowContainerType.RIGHT;case t.RowContainerName.FULL_WIDTH:case t.RowContainerName.TOP_FULL_WIDTH:case t.RowContainerName.BOTTOM_FULL_WIDTH:return t.RowContainerType.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(pl=t.RowContainerName||(t.RowContainerName={})).LEFT="left",pl.RIGHT="right",pl.CENTER="center",pl.FULL_WIDTH="fullWidth",pl.TOP_LEFT="topLeft",pl.TOP_RIGHT="topRight",pl.TOP_CENTER="topCenter",pl.TOP_FULL_WIDTH="topFullWidth",pl.BOTTOM_LEFT="bottomLeft",pl.BOTTOM_RIGHT="bottomRight",pl.BOTTOM_CENTER="bottomCenter",pl.BOTTOM_FULL_WIDTH="bottomFullWidth",(dl=t.RowContainerType||(t.RowContainerType={})).LEFT="left",dl.RIGHT="right",dl.CENTER="center",dl.FULL_WIDTH="fullWidth";var Wl=$e([[t.RowContainerName.CENTER,"ag-center-cols-container"],[t.RowContainerName.LEFT,"ag-pinned-left-cols-container"],[t.RowContainerName.RIGHT,"ag-pinned-right-cols-container"],[t.RowContainerName.FULL_WIDTH,"ag-full-width-container"],[t.RowContainerName.TOP_CENTER,"ag-floating-top-container"],[t.RowContainerName.TOP_LEFT,"ag-pinned-left-floating-top"],[t.RowContainerName.TOP_RIGHT,"ag-pinned-right-floating-top"],[t.RowContainerName.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[t.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-container"],[t.RowContainerName.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[t.RowContainerName.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[t.RowContainerName.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Bl=$e([[t.RowContainerName.CENTER,"ag-center-cols-viewport"],[t.RowContainerName.TOP_CENTER,"ag-floating-top-viewport"],[t.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Ul=$e([[t.RowContainerName.CENTER,"ag-center-cols-clipper"]]),zl=function(e){function n(t){var n=e.call(this)||this;return n.name=t,n}return kl(n,e),n.getRowContainerCssClasses=function(e){return{container:Wl.get(e),viewport:Bl.get(e),wrapper:Ul.get(e)}},n.getPinned=function(e){switch(e){case t.RowContainerName.BOTTOM_LEFT:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.LEFT:return oe.PINNED_LEFT;case t.RowContainerName.BOTTOM_RIGHT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.RIGHT:return oe.PINNED_RIGHT;default:return null}},n.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([t.RowContainerName.CENTER],(function(){return e.viewportSizeFeature=e.createManagedBean(new bl(e))}))},n.prototype.registerWithCtrlsService=function(){switch(this.name){case t.RowContainerName.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case t.RowContainerName.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case t.RowContainerName.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case t.RowContainerName.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case t.RowContainerName.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case t.RowContainerName.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},n.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},n.prototype.getContainerElement=function(){return this.eContainer},n.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},n.prototype.setComp=function(e,n,o,r){var i=this;this.comp=e,this.eContainer=n,this.eViewport=o,this.eWrapper=r,this.createManagedBean(new yl(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var s=[t.RowContainerName.TOP_CENTER,t.RowContainerName.TOP_LEFT,t.RowContainerName.TOP_RIGHT],a=[t.RowContainerName.BOTTOM_CENTER,t.RowContainerName.BOTTOM_LEFT,t.RowContainerName.BOTTOM_RIGHT],l=[t.RowContainerName.CENTER,t.RowContainerName.LEFT,t.RowContainerName.RIGHT],u=Vl(s,a,l),c=[t.RowContainerName.CENTER,t.RowContainerName.LEFT,t.RowContainerName.RIGHT,t.RowContainerName.FULL_WIDTH],p=[t.RowContainerName.CENTER,t.RowContainerName.TOP_CENTER,t.RowContainerName.BOTTOM_CENTER],d=[t.RowContainerName.LEFT,t.RowContainerName.BOTTOM_LEFT,t.RowContainerName.TOP_LEFT],h=[t.RowContainerName.RIGHT,t.RowContainerName.BOTTOM_RIGHT,t.RowContainerName.TOP_RIGHT];this.forContainers(d,(function(){return i.createManagedBean(new Sl(i.eContainer))})),this.forContainers(h,(function(){return i.createManagedBean(new Pl(i.eContainer))})),this.forContainers(c,(function(){return i.createManagedBean(new Al(i.eContainer,i.eWrapper))})),this.forContainers(u,(function(){return i.createManagedBean(new Ll(i.eContainer))})),this.forContainers(p,(function(){return i.createManagedBean(new Fl((function(e){return i.comp.setContainerWidth(e+"px")})))})),this.addListeners(),this.registerWithCtrlsService()},n.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,je.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return e.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return e.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},n.prototype.listenOnDomOrder=function(){var e=this,t=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,t),t()},n.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([t.RowContainerName.TOP_CENTER,t.RowContainerName.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},n.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([t.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},n.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([t.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},n.prototype.onScrollVisibilityChanged=function(){if(this.name===t.RowContainerName.CENTER){var e=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=0==e?"100%":"calc(100% + "+e+"px)";this.comp.setViewportHeight(n)}},n.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc((function(){return e.eContainer.removeEventListener("touchmove",t)}))},n.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},n.prototype.getCenterWidth=function(){return sn(this.eViewport)},n.prototype.getCenterViewportScrollLeft=function(){return cn(this.eViewport,this.enableRtl)},n.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((function(){return t()}))},n.prototype.isViewportVisible=function(){return fn(this.eViewport)},n.prototype.isViewportHScrollShowing=function(){return _n(this.eViewport)},n.prototype.getViewportScrollLeft=function(){return cn(this.eViewport,this.enableRtl)},n.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||_n(this.eViewport)},n.prototype.getViewportElement=function(){return this.eViewport},n.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},n.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},n.prototype.setCenterViewportScrollLeft=function(e){pn(this.eViewport,e,this.enableRtl)},n.prototype.onDisplayedRowsChanged=function(){var e=this,n=this.name===t.RowContainerName.TOP_FULL_WIDTH||this.name===t.RowContainerName.BOTTOM_FULL_WIDTH||this.name===t.RowContainerName.FULL_WIDTH,o=this.getRowCtrls().filter((function(t){var o=t.isFullWidth(),r=e.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,i=e.embedFullWidthRows||r;return n?!i&&o:i||!o}));this.comp.setRowCtrls(o)},n.prototype.getRowCtrls=function(){switch(this.name){case t.RowContainerName.TOP_CENTER:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case t.RowContainerName.BOTTOM_CENTER:case t.RowContainerName.BOTTOM_LEFT:case t.RowContainerName.BOTTOM_RIGHT:case t.RowContainerName.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},Gl([Z("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Gl([Z("dragService")],n.prototype,"dragService",void 0),Gl([Z("ctrlsService")],n.prototype,"ctrlsService",void 0),Gl([Z("columnModel")],n.prototype,"columnModel",void 0),Gl([Z("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Gl([Z("rowRenderer")],n.prototype,"rowRenderer",void 0),Gl([z],n.prototype,"postConstruct",null),n}(Fe),Kl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ql=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zl='<div class="ag-root ag-unselectable" role="grid">\n <ag-header-root ref="gridHeader"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation">\n <ag-row-container ref="topLeftContainer" name="'+t.RowContainerName.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+t.RowContainerName.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+t.RowContainerName.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+t.RowContainerName.TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+t.RowContainerName.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+t.RowContainerName.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+t.RowContainerName.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+t.RowContainerName.FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n <ag-row-container ref="bottomLeftContainer" name="'+t.RowContainerName.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+t.RowContainerName.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+t.RowContainerName.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+t.RowContainerName.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n </div>\n <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n <ag-overlay-wrapper></ag-overlay-wrapper>\n </div>',Yl=function(e){function n(){return e.call(this,Zl)||this}return Kl(n,e),n.prototype.init=function(){var e=this,n=function(e,t){var n=e+"px";t.style.minHeight=n,t.style.height=n},o={setRowAnimationCssOnBodyViewport:function(t,n){return e.setRowAnimationCssOnBodyViewport(t,n)},setColumnCount:function(t){return oo(e.getGui(),t)},setRowCount:function(t){return to(e.getGui(),t)},setTopHeight:function(t){return n(t,e.eTop)},setBottomHeight:function(t){return n(t,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setColumnMovingCss:function(t,n){return e.addOrRemoveCssClass(ka,n)},updateLayoutClasses:function(n,o){var r=e.eBodyViewport.classList;r.toggle(t.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),r.toggle(t.LayoutCssClasses.NORMAL,o.normal),r.toggle(t.LayoutCssClasses.PRINT,o.print),e.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),e.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,o.normal),e.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,o.print)},setAlwaysVerticalScrollClass:function(t,n){return e.eBodyViewport.classList.toggle(Fa,n)},registerBodyViewportResizeListener:function(t){var n=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc((function(){return n()}))},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,n){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return e.classList.toggle(Ma,n)}))}};this.ctrl=this.createManagedBean(new Ga),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&eo(this.getGui(),!0)},n.prototype.setRowAnimationCssOnBodyViewport=function(e,n){var o=this.eBodyViewport.classList;o.toggle(t.RowAnimationCssClasses.ANIMATION_ON,n),o.toggle(t.RowAnimationCssClasses.ANIMATION_OFF,!n)},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},ql([Z("resizeObserverService")],n.prototype,"resizeObserverService",void 0),ql([Y("rangeService")],n.prototype,"rangeService",void 0),ql([nr("eBodyViewport")],n.prototype,"eBodyViewport",void 0),ql([nr("eTop")],n.prototype,"eTop",void 0),ql([nr("eBottom")],n.prototype,"eBottom",void 0),ql([nr("gridHeader")],n.prototype,"headerRootComp",void 0),ql([z],n.prototype,"init",null),n}(tr),Ql=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$l=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ql(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,je.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(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}},t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:je.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},$l([Z("columnApi")],t.prototype,"columnApi",void 0),$l([Z("gridApi")],t.prototype,"gridApi",void 0),$l([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),$l([z],t.prototype,"postConstruct",null),t=$l([q("scrollVisibleService")],t)}(Fe),Jl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),eu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=n.gridInstanceSequence.next(),t}var n;return Jl(t,e),n=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[n.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return xe(this.gridOptionsWrapper,e,al.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},t.prototype.isElementInThisGrid=function(e){for(var t=e;t;){var o=t[n.GRID_DOM_KEY];if(r(o))return o===this.gridInstanceId;t=t.parentElement}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t,n,o=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,r=e;if(null!=r.clientX||null!=r.clientY?(t=r.clientX,n=r.clientY):(t=r.x,n=r.y),o){var i=this.ctrlsService.getGridBodyCtrl(),s=i.getScrollFeature().getVScrollPosition();t+=i.getScrollFeature().getHScrollPosition().left,n+=s.top}return{x:t,y:n}},t.gridInstanceSequence=new Bo,t.GRID_DOM_KEY="__ag_grid_instance",eu([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),t=n=eu([q("mouseEventService")],t)}(Fe),nu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ou=function(){return ou=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ou.apply(this,arguments)},ru=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},iu=function(e){function t(){var t=e.call(this)||this;return t.onPageDown=H(t.onPageDown,100),t.onPageUp=H(t.onPageUp,100),t}return nu(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},t.prototype.handlePageScrollingKey=function(e){var t=e.key,n=e.altKey,o=e.ctrlKey||e.metaKey,r=!!this.rangeService&&e.shiftKey,i=this.mouseEventService.getCellPositionForEvent(e);if(!i)return!1;var s=!1;switch(t){case dr.PAGE_HOME:case dr.PAGE_END:o||n||(this.onHomeOrEndKey(t),s=!0);break;case dr.LEFT:case dr.RIGHT:case dr.UP:case dr.DOWN:!o||n||r||(this.onCtrlUpDownLeftRight(t,i),s=!0);break;case dr.PAGE_DOWN:o||n||(this.onPageDown(i),s=!0);break;case dr.PAGE_UP:o||n||(this.onPageUp(i),s=!0)}return s&&e.preventDefault(),s},t.prototype.navigateTo=function(e){var t=e.scrollIndex,n=e.scrollType,o=e.scrollColumn,i=e.focusIndex,s=e.focusColumn;if(r(o)&&!o.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(o),r(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,n),this.animationFrameService.flushAllFrames(),this.focusService.setFocusedCell(i,s,null,!0),this.rangeService){var a={rowIndex:i,rowPinned:null,column:s};this.rangeService.setRangeToCell(a)}},t.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),o=this.paginationProxy.getPixelOffset(),r=t.top+n,i=this.paginationProxy.getRowIndexAtPixel(r+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i):this.navigateToNextPage(e,i)},t.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),o=t.top,r=this.paginationProxy.getRowIndexAtPixel(o+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,r,!0):this.navigateToNextPage(e,r,!0)},t.prototype.navigateToNextPage=function(e,t,n){var o,r;void 0===n&&(n=!1);var i,s=this.getViewportHeight(),a=this.paginationProxy.getPageFirstRow(),l=this.paginationProxy.getPageLastRow(),u=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getRow(e.rowIndex),p=n?(null===(o=c)||void 0===o?void 0:o.rowHeight)-s-u:s-u,d=(null===(r=c)||void 0===r?void 0:r.rowTop)+p,h=this.paginationProxy.getRowIndexAtPixel(d+u);if(h===e.rowIndex){var f=n?-1:1;t=h=e.rowIndex+f}n?(i="bottom",h<a&&(h=a),t<a&&(t=a)):(i="top",h>l&&(h=l),t>l&&(t=l)),this.isRowTallerThanView(h)&&(t=h,i="top"),this.navigateTo({scrollIndex:t,scrollType:i,scrollColumn:null,focusIndex:h,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,t,n){var o=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((function(){var r=o.getNextFocusIndexForAutoHeight(e,n);o.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column})}),50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,t){var n;void 0===t&&(t=!1);for(var o=t?-1:1,r=this.getViewportHeight(),i=this.paginationProxy.getPageLastRow(),s=0,a=e.rowIndex;a>=0&&a<=i;){var l=this.paginationProxy.getRow(a);if(l){var u=null!==(n=l.rowHeight)&&void 0!==n?n:0;if(s+u>r)break;s+=u}a+=o}return Math.max(0,Math.min(a,i))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=t),n},t.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var n=t.rowHeight;return"number"===typeof n&&n>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,t){var n=this.cellNavigationService.getNextCellToFocus(e,t,!0),o=n.rowIndex,r=n.column;this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:r,focusIndex:o,focusColumn:r})},t.prototype.onHomeOrEndKey=function(e){var t=e===dr.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),o=t?n[0]:ue(n),r=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:o,focusIndex:r,focusColumn:o})},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;if(this.tabToNextCellCommon(e,n,t))t.preventDefault();else if(n){var o=e.getRowPosition(),r=o.rowIndex;(o.rowPinned?0===r:r===this.paginationProxy.getPageFirstRow())&&(t.preventDefault(),this.focusService.focusLastHeader(t))}else e instanceof al&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&t.preventDefault()},t.prototype.tabToNextCell=function(e,t){var n=this.focusService.getFocusedCell();if(!n)return!1;var o=this.getCellByPosition(n);return!!(o||(o=this.rowRenderer.getRowByPosition(n))&&o.isFullWidth())&&this.tabToNextCellCommon(o,e,t)},t.prototype.tabToNextCellCommon=function(e,t,n){var o=e.isEditing();if(!o&&e instanceof al){var r=e.getRowCtrl();r&&(o=r.isEditing())}return(o?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t,n):this.moveToNextEditingCell(e,t,n):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t,n){void 0===n&&(n=null);var o=e.getCellPosition();e.stopEditing();var r=this.findNextCellToFocusOn(o,t,!0);return null!=r&&(r.startEditing(null,null,!0,n),r.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,t,n){void 0===n&&(n=null);var o=e.getCellPosition(),r=this.findNextCellToFocusOn(o,t,!0);if(null==r)return!1;var i=r.getCellPosition(),s=this.isCellEditable(o),a=this.isCellEditable(i),l=i&&o.rowIndex===i.rowIndex&&o.rowPinned===i.rowPinned;(s&&e.setFocusOutOnEditor(),l)||(e.getRowCtrl().stopEditing(),r.getRowCtrl().startRowEditing(void 0,void 0,void 0,n));return a?(r.setFocusInOnEditor(),r.focusCell()):r.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var n,o=this.columnModel.getAllDisplayedColumns();n=e instanceof fl?ou(ou({},e.getRowPosition()),{column:t?o[0]:ue(o)}):e.getCellPosition();var i=this.findNextCellToFocusOn(n,t,!1);if(i instanceof al)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),t);return r(i)},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var o=e;;){e!==o&&(e=o),t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);var i=this.gridOptionsWrapper.getTabToNextCellFunc();if(r(i)){var s=i({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});r(s)?(s.floating&&(A((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),s.rowPinned=s.floating),o={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):o=null}if(!o)return null;if(o.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+o.rowIndex,column:o.column}}),null}var l=this.gridOptionsWrapper.isFullRowEdit();if(n&&!l)if(!this.isCellEditable(o))continue;this.ensureCellVisible(o);var u=this.getCellByPosition(o);if(u){if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(o),u}else{var c=this.rowRenderer.getRowByPosition(o);if(c&&c.isFullWidth())return c}}},t.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},t.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===oe.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===oe.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,t,n,o){for(var s=n,a=!1;s&&(s===n||!this.isValidNavigateCell(s));)this.gridOptionsWrapper.isEnableRtl()?t===dr.LEFT&&(s=this.getLastCellOfColSpan(s)):t===dr.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=i(s=this.cellNavigationService.getNextCellToFocus(t,s));if(a&&e&&e.key===dr.UP&&(s={rowIndex:-1,rowPinned:null,column:n.column}),o){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(r(l)){var u=l({key:t,previousCellPosition:n,nextCellPosition:s||null,event:e});r(u)?(u.floating&&(A((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:n.column},event:e||void 0})}else{var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var n=this.columnModel.getAllDisplayedColumns(),o=this.rowRenderer.getRowByPosition(e);if(!o||!o.isFullWidth())return!1;var r=this.focusService.getFocusedCell(),i={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?ue(n):n[0])};this.focusPosition(i);var s=null!=r&&this.rowPositionUtils.before(i,r),a={type:je.EVENT_FULL_WIDTH_ROW_FOCUSED,api:this.gridApi,columnApi:this.columnApi,rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column,isFullWidthCell:!0,floating:i.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:ue(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){i(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},ru([Z("columnApi")],t.prototype,"columnApi",void 0),ru([Z("gridApi")],t.prototype,"gridApi",void 0),ru([Z("mouseEventService")],t.prototype,"mouseEventService",void 0),ru([Z("paginationProxy")],t.prototype,"paginationProxy",void 0),ru([Z("focusService")],t.prototype,"focusService",void 0),ru([Z("animationFrameService")],t.prototype,"animationFrameService",void 0),ru([Y("rangeService")],t.prototype,"rangeService",void 0),ru([Z("columnModel")],t.prototype,"columnModel",void 0),ru([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),ru([Z("rowRenderer")],t.prototype,"rowRenderer",void 0),ru([Z("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ru([Z("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ru([Z("cellNavigationService")],t.prototype,"cellNavigationService",void 0),ru([Z("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ru([z],t.prototype,"postConstruct",null),t=ru([q("navigationService")],t)}(Fe),su=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),au=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},lu=function(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.params=t,n}return su(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),n=this.params;this.addManagedListener(t,"keydown",(function(t){No(e.gridOptionsWrapper,t,n.node,n.column,!0)||n.onKeyDown(t)}))},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",au([z],t.prototype,"postConstruct",null),t}(Si),uu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cu=function(e){function t(t,n,o,r,i){var s=e.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=t,s.column=n.getColumn(),s.rowNode=n.getRowNode(),s.rowCtrl=n.getRowCtrl(),s.eRow=r,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var a=s.getGui();s.forceWrapper=n.isForceWrapper(),s.refreshWrapper(!1);var l=function(e,t,n){var o=n||a;null!=t&&""!=t?o.setAttribute(e,t):o.removeAttribute(e)},u={addOrRemoveCssClass:function(e,t){return s.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return bn(a,e)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(e){return l("tabindex",e.toString())},setRole:function(e){return Vn(a,e)},setColId:function(e){return l("col-id",e)},setTitle:function(e){return l("title",e)},setIncludeSelection:function(e){return s.includeSelection=e},setIncludeRowDrag:function(e){return s.includeRowDrag=e},setIncludeDndSource:function(e){return s.includeDndSource=e},setRenderDetails:function(e,t,n){return s.setRenderDetails(e,t,n)},setEditDetails:function(e,t,n){return s.setEditDetails(e,t,n)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=n,n.setComp(u,s.getGui(),s.eCellWrapper,o,i),s}return uu(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,n){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var o=this.refreshWrapper(!1);if(e)!(n||o)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},t.prototype.setEditDetails=function(e,t,n){e?this.createCellEditorInstance(e,t,n):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 t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,o=n&&null==this.eCellWrapper;o&&(this.eCellWrapper=gn('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var r=!n&&null!=this.eCellWrapper;r&&(hn(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var i=!e&&n,s=i&&null==this.eCellValue;s&&(this.eCellValue=gn('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var a=!i&&null!=this.eCellValue;a&&(hn(this.eCellValue),this.eCellValue=void 0);var l=o||r||s||a;return l&&this.removeControls(),!e&&t&&this.addControls(),l},t.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),t=[];this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue)),t.push(this.checkboxSelectionComp.getCheckboxId())),t.push(e),qn(this.getGui(),t.join(" "))},t.prototype.createCellEditorInstance=function(e,t,n){var o=this,r=this.editorVersion,s=e.newAgStackInstance();if(s){var a=e.params;s.then((function(e){return o.afterCellEditorCreated(r,e,a,t,n)})),i(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();dn(t);var n=null!=e?Ze(e):null;null!=n&&(t.innerHTML=n)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),hn(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),hn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;var t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t},t.prototype.createCellRendererInstance=function(e){var t=this,n=this.beans.gridOptionsWrapper.isAngularCompileRows(),o=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),r=!n&&!o,i=this.rendererVersion,s=e.componentClass,a=function(){if(!(t.rendererVersion!==i||!t.isAlive())){var n=e.newAgStackInstance(),o=t.afterCellRendererCreated.bind(t,i,s);n&&n.then(o)}};r&&this.firstRender?this.beans.animationFrameService.createTask(a,this.rowNode.rowIndex,"createTasksP2"):a()},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,t,n){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(n);else if(this.cellRenderer=n,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var o=this.getParentOfValue();dn(o),o.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,t,n,o,r){if(e!==this.editorVersion)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing();if(!t.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui(),o||void 0!==t.isPopup&&t.isPopup()?(o||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(n,r)):this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsWrapper.getDocument();(e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,t){var n=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var o=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new lu(e));var r=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&r.appendChild(this.cellEditorGui);var i=this.beans.popupService,s=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),a=null!=t?t:o.getPopupPosition?o.getPopupPosition():"over",l={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:r,keepWithinBounds:!0},u="under"===a?i.positionPopupUnderComponent.bind(i,l):i.positionPopupOverComponent.bind(i,l),c=this.beans.gridOptionsWrapper.getLocaleTextFunc(),p=i.addPopup({modal:s,eChild:r,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:u,ariaLabel:c("ariaLabelCellEditor","Cell Editor")});p&&(this.hideEditorPopup=p.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),e.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),t=this.beans.gridOptionsWrapper.getDocument();e.contains(t.activeElement)&&e.focus({preventScroll:!0}),dn(this.getParentOfValue())},t}(tr),pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),du=function(e){function t(t,n,o){var r=e.call(this)||this;r.cellComps={},r.beans=n,r.rowCtrl=t,r.setTemplate('<div comp-id="'+r.getCompId()+'" style="'+r.getInitialStyle()+'"/>');var i=r.getGui(),s=i.style,a={setDomOrder:function(e){return r.domOrder=e},setCellCtrls:function(e){return r.setCellCtrls(e)},showFullWidth:function(e){return r.showFullWidth(e)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,t){return r.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return bn(i,e)},setTop:function(e){return s.top=e},setTransform:function(e){return s.transform=e},setRowIndex:function(e){return i.setAttribute("row-index",e)},setRole:function(e){return Vn(i,e)},setRowId:function(e){return i.setAttribute("row-id",e)},setRowBusinessKey:function(e){return i.setAttribute("row-business-key",e)},setTabIndex:function(e){return i.setAttribute("tabindex",e.toString())}};return t.setComp(a,r.getGui(),o),r}return pu(t,e),t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),t=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+t},t.prototype.showFullWidth=function(e){var t=this,n=e.newAgStackInstance();n&&n.then((function(e){if(t.isAlive()){var n=e.getGui();t.getGui().appendChild(n),t.rowCtrl.setupDetailRowAutoHeight(n),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)}))},t.prototype.setCellCtrls=function(e){var t=this,n=Object.assign({},this.cellComps);e.forEach((function(e){var o=e.getInstanceId();null==t.cellComps[o]?t.newCellComp(e):n[o]=null}));var o=b(n).filter((function(e){return null!=e}));this.destroyCells(o),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var n=[];e.forEach((function(e){var o=t.cellComps[e.getInstanceId()];o&&n.push(o.getGui())})),Cn(this.getGui(),n)}},t.prototype.newCellComp=function(e){var t=new cu(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=b(this.cellComps).filter((function(e){return null!=e}));this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc((function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)}))},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var t=this;e.forEach((function(e){if(e){var n=e.getCtrl().getInstanceId();t.cellComps[n]===e&&(e.detach(),e.destroy(),t.cellComps[n]=null)}}))},t}(tr),hu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fu=function(){return fu=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},fu.apply(this,arguments)},gu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};var mu,vu=function(e){function n(){var n=e.call(this,function(){var e=tr.elementGettingCreated.getAttribute("name"),n=zl.getRowContainerCssClasses(e),o=e===t.RowContainerName.CENTER,r=e===t.RowContainerName.TOP_CENTER||e===t.RowContainerName.BOTTOM_CENTER;return o?'<div class="'+n.wrapper+'" ref="eWrapper" role="presentation">\n <div class="'+n.viewport+'" ref="eViewport" role="presentation">\n <div class="'+n.container+'" ref="eContainer"></div>\n </div>\n </div>':r?'<div class="'+n.viewport+'" ref="eViewport" role="presentation">\n <div class="'+n.container+'" ref="eContainer"></div>\n </div>':'<div class="'+n.container+'" ref="eContainer"></div>'}())||this;return n.rowComps={},n.name=tr.elementGettingCreated.getAttribute("name"),n.type=jl(n.name),n}return hu(n,e),n.prototype.postConstruct=function(){var e=this,t={setViewportHeight:function(t){return e.eViewport.style.height=t},setRowCtrls:function(t){return e.setRowCtrls(t)},setDomOrder:function(t){e.domOrder=t},setContainerWidth:function(t){return e.eContainer.style.width=t}};this.createManagedBean(new zl(this.name)).setComp(t,this.eContainer,this.eViewport,this.eWrapper)},n.prototype.preDestroy=function(){this.setRowCtrls([])},n.prototype.setRowCtrls=function(e){var t=this,n=fu({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;e.forEach((function(e){var o=e.getInstanceId(),r=n[o];if(r)t.rowComps[o]=r,delete n[o],t.ensureDomOrder(r.getGui());else{var i=t.newRowComp(e);t.rowComps[o]=i,t.appendRow(i.getGui())}})),b(n).forEach((function(e){t.eContainer.removeChild(e.getGui()),e.destroy()})),Vn(this.eContainer,e.length?"rowgroup":"presentation")},n.prototype.appendRow=function(e){this.domOrder?wn(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},n.prototype.ensureDomOrder=function(e){this.domOrder&&(yn(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},n.prototype.newRowComp=function(e){zl.getPinned(this.name);return new du(e,this.beans,this.type)},gu([Z("beans")],n.prototype,"beans",void 0),gu([nr("eViewport")],n.prototype,"eViewport",void 0),gu([nr("eContainer")],n.prototype,"eContainer",void 0),gu([nr("eWrapper")],n.prototype,"eWrapper",void 0),gu([z],n.prototype,"postConstruct",null),gu([K],n.prototype,"preDestroy",null),n}(tr),yu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cu=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var n=e.dragItem.columns;n&&n.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))}))}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?ts.ICON_PINNED:ts.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},yu([Z("columnModel")],e.prototype,"columnModel",void 0),yu([Z("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),wu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bu=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!r(e)}return e.prototype.init=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.getIconName=function(){return this.pinned?ts.ICON_PINNED:ts.ICON_MOVE},e.prototype.onDragEnter=function(e){var n=e.dragItem.columns;if(e.dragSource.type===t.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,r=(n||[]).filter((function(e){return o[e.getId()]}));this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnModel.setColumnsVisible(o,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnModel.setColumnsPinned(o,t,n)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>n-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!i(e.hDirection)){var o=this.normaliseX(e.x);t||this.checkCenterForScrolling(o);var r=this.normaliseDirection(e.hDirection),s=e.dragSource.type,a=e.dragSource.getDragItem().columns;a=a.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(s,a,r,o,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case t.HorizontalDirection.Left:return t.HorizontalDirection.Right;case t.HorizontalDirection.Right:return t.HorizontalDirection.Left;default:console.error("AG Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnModel.getAllGridColumns(),n=pe(e.map((function(e){return t.indexOf(e)}))),o=n[0];return ue(n)-o!==n.length-1?null:o},e.prototype.attemptMoveColumns=function(e,n,o,r,i){var s=o===t.HorizontalDirection.Left,a=o===t.HorizontalDirection.Right,l=n.slice();this.columnModel.sortColumnsLikeGridColumns(l);var u=this.calculateValidMoves(l,a,r),c=this.calculateOldIndex(l);if(0!==u.length){var p=u[0],d=null!==c&&!i;if(e==t.DragSourceType.HeaderCell&&(d=null!==c),d){if(s&&p>=c)return;if(a&&p<=c)return}for(var h=0;h<u.length;h++){var f=u[h];if(this.columnModel.doesMovePassRules(l,f))return void this.columnModel.moveColumns(l,f,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,n){var o=this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable}));if(o)return[];var r,i=this.columnModel.getDisplayedColumns(this.pinned),s=this.columnModel.getAllGridColumns(),a=i.filter((function(t){return me(e,t)})),l=i.filter((function(t){return!me(e,t)})),u=s.filter((function(t){return!me(e,t)})),c=0,p=n;if(t){var d=0;a.forEach((function(e){return d+=e.getActualWidth()})),p-=d}if(p>0){for(var h=0;h<l.length;h++){if((p-=l[h].getActualWidth())<0)break;c++}t&&c++}if(c>0){var f=l[c-1];r=u.indexOf(f)+1}else-1===(r=u.indexOf(l[0]))&&(r=0);var g=[r],m=function(e,t){return e-t};if(t){for(var v=r+1,y=s.length-1;v<=y;)g.push(v),v++;g.sort(m)}else{v=r,y=s.length-1;for(var C=s[v];v<=y&&this.isColumnHidden(i,C);)v++,g.push(v),C=s[v];v=r-1;for(;v>=0;)g.push(v),v--;g.sort(m).reverse()}return g},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(ts.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(ts.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(ts.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(ts.ICON_PINNED),this.failedMoveAttempts>7)){var r=this.needToMoveLeft?oe.PINNED_LEFT:oe.PINNED_RIGHT;this.setColumnsPinned(o,r,"uiColumnDragged"),this.dragAndDropService.nudge()}}},wu([Z("columnModel")],e.prototype,"columnModel",void 0),wu([Z("dragAndDropService")],e.prototype,"dragAndDropService",void 0),wu([Z("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),wu([Z("ctrlsService")],e.prototype,"ctrlsService",void 0),wu([z],e.prototype,"init",null),e}(),_u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Eu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Su=function(e){function n(t,n){var o=e.call(this)||this;return o.pinned=t,o.eContainer=n,o}return _u(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){switch(e.pinned){case oe.PINNED_LEFT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case oe.PINNED_RIGHT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]]}}))},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},n.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},n.prototype.getContainer=function(){return this.eContainer},n.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new bu(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Cu(this.pinned)),this.dragAndDropService.addDropTarget(this)},n.prototype.getIconName=function(){return this.currentDropListener.getIconName()},n.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel},n.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},n.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},n.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},n.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},Eu([Z("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Eu([Z("columnModel")],n.prototype,"columnModel",void 0),Eu([Z("ctrlsService")],n.prototype,"ctrlsService",void 0),Eu([z],n.prototype,"postConstruct",null),Eu([z],n.prototype,"init",null),n}(Fe),Ru=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Ou=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ru(arguments[t]));return e},Pu=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,n,o){return i(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,n,o)},e.getToolPanelClassesFromColDef=function(e,t,n,o){return i(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,n,o)},e.getClassParams=function(e,t,n,o){return{colDef:e,column:n,columnGroup:o,api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()}},e.getColumnClassesFromCollDef=function(e,t,n,o,r){if(i(e))return[];var s;"function"===typeof e?s=e(this.getClassParams(t,n,o,r)):s=e;return"string"===typeof s?[s]:Array.isArray(s)?Ou(s):[]},e}(),Tu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Au=function(e){function t(n){var o=e.call(this,t.TEMPLATE,n)||this;return o.headerCompVersion=0,o.column=n.getColumnGroupChild(),o.pinned=n.getPinned(),o}return Tu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n,o){var r=o||t;null!=n&&""!=n?r.setAttribute(e,n):r.removeAttribute(e)},o={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setColId:function(e){return n("col-id",e)},setTitle:function(e){return n("title",e)},setAriaDescription:function(e){return Kn(t,e)},setAriaSort:function(e){return e?so(t,e):ao(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(o,this.getGui(),this.eResize);var r=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",r)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var n=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(n,e)}))},t.prototype.afterCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.getGui().appendChild(this.headerCompGui),this.ctrl.setDragSource(this.headerCompGui)):this.destroyBean(t)},t.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',xu([nr("eResize")],t.prototype,"eResize",void 0),xu([z],t.prototype,"postConstruct",null),xu([K],t.prototype,"destroyHeaderComp",null),t}(na),Du=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lu=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return Du(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n){return void 0!=n?t.setAttribute(e,n):t.removeAttribute(e)},o={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveResizableCssClass:function(t,n){return e.eResize.classList.toggle(t,n)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return n("aria-expanded",e)},setTitle:function(e){return n("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(o,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then((function(e){return t.afterHeaderCompCreated(e)}))},t.prototype.afterHeaderCompCreated=function(e){var t=this,n=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',Nu([Z("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Nu([nr("eResize")],t.prototype,"eResize",void 0),Nu([z],t.prototype,"postConstruct",null),t}(na),Iu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(mu=t.HeaderRowType||(t.HeaderRowType={})).COLUMN_GROUP="group",mu.COLUMN="column",mu.FLOATING_FILTER="filter";var Fu,ku=function(e){function n(n){var o=e.call(this)||this;o.headerComps={};var r=n.getType()==t.HeaderRowType.COLUMN_GROUP?"ag-header-row-column-group":n.getType()==t.HeaderRowType.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return o.setTemplate('<div class="ag-header-row '+r+'" role="row"></div>'),o.ctrl=n,o}return Iu(n,e),n.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return no(e.getGui(),t)}};this.ctrl.setComp(t)},n.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},n.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},e.forEach((function(e){var o=e.getInstanceId(),r=n[o];delete n[o],null==r&&(r=t.createHeaderComp(e),t.getGui().appendChild(r.getGui())),t.headerComps[o]=r})),f(n,(function(e,n){t.getGui().removeChild(n.getGui()),t.destroyBean(n)})),this.gridOptionsWrapper.isEnsureDomOrder()){var o=b(this.headerComps);o.sort((function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()}));var r=o.map((function(e){return e.getGui()}));Cn(this.getGui(),r)}}},n.prototype.createHeaderComp=function(e){var n;switch(this.ctrl.getType()){case t.HeaderRowType.COLUMN_GROUP:n=new Lu(e);break;case t.HeaderRowType.FLOATING_FILTER:n=new ia(e);break;default:n=new Au(e)}return this.createBean(n),n.setParentComponent(this),n},Mu([z],n.prototype,"init",null),Mu([K],n.prototype,"destroyHeaderCtrls",null),n}(tr),Gu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vu=0,ju=function(e){function t(t,n){var o=e.call(this)||this;return o.lastFocusEvent=null,o.columnGroupChild=t,o.parentRowCtrl=n,o.instanceId=t.getUniqueId()+"-"+Vu++,o}return Gu(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),n=t.headerRowIndex,o=t.column;return Lo(this.gridOptionsWrapper,e,n,o)},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.addDomData=function(){var e=this,n=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,n,this),this.addDestroyFunc((function(){return e.gridOptionsWrapper.setDomData(e.eGui,n,null)}))},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Hu([Z("focusService")],t.prototype,"focusService",void 0),t}(Fe);(Fu=t.ClientSideRowModelSteps||(t.ClientSideRowModelSteps={})).EVERYTHING="group",Fu.FILTER="filter",Fu.SORT="sort",Fu.MAP="map",Fu.AGGREGATE="aggregate",Fu.FILTER_AGGREGATES="filter_aggregates",Fu.PIVOT="pivot",Fu.NOTHING="nothing";var Wu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function Bu(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var Uu,zu=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case oe.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case oe.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case oe.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.__getContext=function(){return this.context},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;f(this.detailGridInfoMap,(function(n,o){r(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(re.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){re.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},t,e).exportMode},e.prototype.getDataAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel")){var n=this.getExcelExportMode(e);if(this.excelCreator.getFactoryMode(n)!==t.ExcelFactoryMode.MULTI_SHEET)return this.excelCreator.getDataAsExcel(e);console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.exportDataAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")){var n=this.getExcelExportMode(e);this.excelCreator.getFactoryMode(n)!==t.ExcelFactoryMode.MULTI_SHEET?this.excelCreator.exportDataAsExcel(e):console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.getSheetDataForExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel")){var n=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(t.ExcelFactoryMode.MULTI_SHEET,n),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var n=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-"+e;null===t?n.removeAttribute(o):n.setAttribute(o,t)}},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(e))},e.prototype.setFloatingTopRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnModel.setColumnDefs(e,t)},e.prototype.setAutoGroupColumnDef=function(e,t){this.gridOptionsWrapper.setProperty("autoGroupColumnDef",e,!0)},e.prototype.setDefaultColDef=function(e,t){this.gridOptionsWrapper.setProperty("defaultColDef",e,!0)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(e){return e.refresh()}))},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){i(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),r(e)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){i(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var n=t.ClientSideRowModelSteps.EVERYTHING,o={group:t.ClientSideRowModelSteps.EVERYTHING,filter:t.ClientSideRowModelSteps.FILTER,map:t.ClientSideRowModelSteps.MAP,aggregate:t.ClientSideRowModelSteps.AGGREGATE,sort:t.ClientSideRowModelSteps.SORT,pivot:t.ClientSideRowModelSteps.PIVOT};if(r(e)&&(n=o[e]),i(n))console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var s={step:n,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsWrapper.isSuppressAnimationFrame()};this.clientSideRowModel.refreshModel(s)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return Bu(this.sideBarComp.getToolPanelInstance(e));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.addVirtualRowListener=function(e,t,n){"string"!==typeof e&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},e.prototype.addRenderedRowListener=function(e,t,n){"virtualRowSelected"===e&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,n)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,n){console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(e)},e.prototype.selectNode=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){i(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridBodyCtrl.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterInstance=function(e,t){var n=this.getFilterInstanceImpl(e,(function(e){if(t){var n=Bu(e);t(n)}}));return Bu(n)},e.prototype.getFilterInstanceImpl=function(e,t){var n=this.columnModel.getPrimaryColumn(e);if(n){var o=this.filterManager.getFilterComponent(n,"NO_UI"),r=o&&o.resolveNow(null,(function(e){return e}));return r?setTimeout(t,0,r):o&&o.then((function(e){t(e)})),r}},e.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return Bu(this.statusBarService.getStatusPanel(e))},e.prototype.getColumnDef=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusService.setFocusedCell(e,t,n,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_HEADER_HEIGHT,e)},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_FILL_HANDLE_DIRECTION,e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_HEADER_HEIGHT,e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_FLOATING_FILTERS_HEIGHT,e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PIVOT_HEADER_HEIGHT,e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_EXTERNAL_FILTER_PRESENT,e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DOES_EXTERNAL_FILTER_PASS,e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_NAVIGATE_TO_NEXT_CELL,e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_TAB_TO_NEXT_CELL,e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_TAB_TO_NEXT_HEADER,e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_NAVIGATE_TO_NEXT_HEADER,e)},e.prototype.setGroupRowAggNodes=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_ROW_AGG_NODES,e)},e.prototype.setGetGroupRowAgg=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_GROUP_ROW_AGG,e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_BUSINESS_KEY_FOR_NODE,e)},e.prototype.setGetChildCount=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CHILD_COUNT,e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_ROW_POST_CREATE,e)},e.prototype.setGetRowNodeId=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_NODE_ID,e)},e.prototype.setGetRowId=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_ID,e)},e.prototype.setGetRowClass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_CLASS,e)},e.prototype.setIsFullWidthCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_FULL_WIDTH_CELL,e)},e.prototype.setIsFullWidthRow=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_FULL_WIDTH_ROW,e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_ROW_SELECTABLE,e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_ROW_MASTER,e)},e.prototype.setPostSort=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_SORT,e)},e.prototype.setPostSortRows=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_SORT_ROWS,e)},e.prototype.setGetDocument=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_DOCUMENT,e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CONTEXT_MENU_ITEMS,e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_MAIN_MENU_ITEMS,e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_CELL_FOR_CLIPBOARD,e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SEND_TO_CLIPBOARD,e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_CELL_FROM_CLIPBOARD,e)},e.prototype.setProcessSecondaryColDef=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_TO_SECONDARY_COLDEF,e)},e.prototype.setProcessSecondaryColGroupDef=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_SECONDARY_COL_GROUP_DEF,e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_PROCESS_POPUP,e)},e.prototype.setDefaultGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,e)},e.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_INITIAL_GROUP_ORDER_COMPARATOR,e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CHART_TOOLBAR_ITEMS,e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PAGINATION_NUMBER_FORMATTER,e)},e.prototype.setGetServerSideStoreParams=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_SERVER_SIDE_STORE_PARAMS,e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_SERVER_SIDE_GROUP,e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_SERVER_SIDE_GROUP_KEY,e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_STYLE,e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_HEIGHT,e)},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("AG Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("AG Grid: sideBar is not loaded")},e.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},e.prototype.setSideBar=function(e){this.gridOptionsWrapper.setProperty("sideBar",sa.parse(e))},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.doLayout=function(){A((function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")}),"doLayoutDeprecated")},e.prototype.resetRowHeights=function(){if(r(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnModel.getPrimaryColumn(e);return i(n)&&(n=this.columnModel.getGridColumn(e)),i(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(S.bind(window,this,"Grid API"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+e+" was called on a grid that was destroyed."),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return Ye(e)},e.prototype.addRangeSelection=function(e){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartRef")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartImageDataURL")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(e)},e.prototype.createRangeChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createCrossFilterChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,n){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.restoreChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,n)},e.prototype.createPivotChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copySelectedRowsToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t,"columnMenu")},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnModel.getGridColumn(e);n||(n=this.columnModel.getPrimaryColumn(e)),n?this.menuFactory.showMenuAfterMouseEvent(n,t):console.error("AG Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(e){return this.navigationService.tabToNextCell(!1,e)},e.prototype.tabToPreviousCell=function(e){return this.navigationService.tabToNextCell(!0,e)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e).map(Bu)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e).map(Bu)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnModel.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e.rowIndex);var o=this.navigationService.getCellByPosition(n);o&&o.startRowOrCellEdit(e.key,e.charPress)}else console.warn("AG Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.rowRenderer.refreshFullWidthRows(t.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},e.prototype.setDeltaSort=function(e){this.gridOptionsWrapper.setProperty("deltaSort",e)},e.prototype.updateRowData=function(e){return A((function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(e)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){A((function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},e.prototype.insertItemsAtIndex=function(e,t,n){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var n=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:n})},e.prototype.addItems=function(e,t){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){void 0===e&&(e=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSideStore({purge: true}) instead."),this.refreshServerSideStore({route:e,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},e.prototype.refreshServerSideStore=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):console.warn("AG Grid: api.refreshServerSideStore is only available when rowModelType='serverSide'.")},e.prototype.getServerSideStoreState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideStoreState is only available when rowModelType='serverSide'."),[])},e.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(e,t)},e.prototype.setRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},e.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.checkGridSize=function(){console.warn("in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.")},e.prototype.getFirstRenderedRow=function(){return console.warn("in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},e.prototype.setRowClass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_ROW_CLASS,e)},Wu([Y("immutableService")],e.prototype,"immutableService",void 0),Wu([Y("csvCreator")],e.prototype,"csvCreator",void 0),Wu([Y("excelCreator")],e.prototype,"excelCreator",void 0),Wu([Z("rowRenderer")],e.prototype,"rowRenderer",void 0),Wu([Z("navigationService")],e.prototype,"navigationService",void 0),Wu([Z("filterManager")],e.prototype,"filterManager",void 0),Wu([Z("columnModel")],e.prototype,"columnModel",void 0),Wu([Z("selectionService")],e.prototype,"selectionService",void 0),Wu([Z("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Wu([Z("valueService")],e.prototype,"valueService",void 0),Wu([Z("alignedGridsService")],e.prototype,"alignedGridsService",void 0),Wu([Z("eventService")],e.prototype,"eventService",void 0),Wu([Z("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Wu([Z("context")],e.prototype,"context",void 0),Wu([Z("rowModel")],e.prototype,"rowModel",void 0),Wu([Z("sortController")],e.prototype,"sortController",void 0),Wu([Z("paginationProxy")],e.prototype,"paginationProxy",void 0),Wu([Z("focusService")],e.prototype,"focusService",void 0),Wu([Z("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Wu([Y("rangeService")],e.prototype,"rangeService",void 0),Wu([Y("clipboardService")],e.prototype,"clipboardService",void 0),Wu([Y("aggFuncService")],e.prototype,"aggFuncService",void 0),Wu([Z("menuFactory")],e.prototype,"menuFactory",void 0),Wu([Y("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Wu([Z("valueCache")],e.prototype,"valueCache",void 0),Wu([Z("animationFrameService")],e.prototype,"animationFrameService",void 0),Wu([Y("statusBarService")],e.prototype,"statusBarService",void 0),Wu([Y("chartService")],e.prototype,"chartService",void 0),Wu([Y("undoRedoService")],e.prototype,"undoRedoService",void 0),Wu([Y("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Wu([Y("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),Wu([Z("ctrlsService")],e.prototype,"ctrlsService",void 0),Wu([Y("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),Wu([z],e.prototype,"init",null),Wu([K],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=Wu([q("gridApi")],e)}(),Ku=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zu=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=n,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=r,i.beans=o,i}return Ku(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?ue(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ae.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=r(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),n=t.getLeft(),o=t.getOldLeft(),r=this.modifyLeftForPrintLayout(t,o),i=this.modifyLeftForPrintLayout(t,n);this.setLeft(r),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===i&&e.setLeft(i)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){if(!(this.beans.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT))return t;if(e.getPinned()===oe.PINNED_LEFT)return t;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===oe.PINNED_RIGHT?n+this.beans.columnModel.getBodyContainerWidth()+t:n+t},t.prototype.setLeft=function(e){var t;if(r(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof ae)t=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&io(this.ariaEl,n.length),t=n[0]}var o=this.beans.columnModel.getAriaColumnIndex(t);ro(this.ariaEl,o)},qu([z],t.prototype,"postConstruct",null),t}(Fe),Yu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},$u=function(e){function t(t,n){var o=e.call(this)||this;return o.columns=t,o.element=n,o}return Yu(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Qu([Z("columnHoverService")],t.prototype,"columnHoverService",void 0),Qu([z],t.prototype,"postConstruct",null),t}(Fe),Xu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ju=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ec=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.column=t,o}return Xu(t,e),t.prototype.setComp=function(t,n,o,r){e.prototype.setGui.call(this,n),this.comp=t,this.eButtonShowMainFilter=o,this.eFloatingFilterBody=r;var i=this.column.getColDef(),s=!!i.filter||!!i.filterFramework,a=!!i.floatingFilter;this.active=s&&a,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=xo("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new mr(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(!(this.gridOptionsWrapper.getDocument().activeElement===this.eGui)){var t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();var n=this.findNextColumnWithFloatingFilter(e.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,n=this.column;do{if(!(n=e?t.getDisplayedColBefore(n):t.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument().activeElement===this.eGui;switch(e.key){case dr.UP:case dr.DOWN:t||e.preventDefault();case dr.LEFT:case dr.RIGHT:if(t)return;e.stopPropagation();case dr.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case dr.ESCAPE:t||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),n=!!e.relatedTarget&&nn(e.relatedTarget,"ag-floating-filter");if(t&&n&&e.target===this.eGui){var o=this.lastFocusEvent,r=!(!o||o.key!==dr.TAB);if(o&&r){var i=o.shiftKey;this.focusService.focusInto(this.eGui,i)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new $u([this.column],this.eGui));var t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,je.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new Zu(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,t),o=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(t,Fs,n),r=this.userComponentFactory.getDefaultFloatingFilterType(t);null==r&&(r="agReadOnlyFloatingFilter");var i={column:this.column,filterParams:o,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(t){return e.parentFilterInstance(t)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(t,i,r);s&&this.comp.setCompDetails(s)}},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,(function(e){return e&&e.getModel()})):null},t.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},t.prototype.parentFilterInstance=function(e){var t=this.getFilterComponent();null!=t&&t.then((function(t){e(Bu(t))}))},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var n=e.comp.getFloatingFilterComp();if(n){var o=e.currentParentModel();n.then((function(e){e&&e.onParentModelChanged(o,t)}))}};this.addManagedListener(this.column,ae.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth()+"px";e.comp.setWidth(t)};this.addManagedListener(this.column,ae.EVENT_WIDTH_CHANGED,t),t()},Ju([Z("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ju([Z("filterManager")],t.prototype,"filterManager",void 0),Ju([Z("columnHoverService")],t.prototype,"columnHoverService",void 0),Ju([Z("gridApi")],t.prototype,"gridApi",void 0),Ju([Z("menuFactory")],t.prototype,"menuFactory",void 0),Ju([Z("beans")],t.prototype,"beans",void 0),t}(ju),tc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),nc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},oc=function(e){function t(t,n,o,r,i){var s=e.call(this)||this;return s.pinned=t,s.column=n,s.eResize=o,s.comp=r,s.ctrl=i,s}return tc(t,e),t.prototype.postConstruct=function(){var e,t,n=this,o=this.column.getColDef(),r=[],i=function(){r.forEach((function(e){return e()})),r.length=0},s=function(){var s=n.column.isResizable(),a=!n.gridOptionsWrapper.isSuppressAutoSize()&&!o.suppressAutoSize;(s!==e||a!==t)&&(e=s,t=a,i(),function(){if(Jt(n.eResize,e),e){var o=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(r.push(o),t){var i=n.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){n.columnModel.autoSizeColumn(n.column,i,"uiColumnResized")};n.eResize.addEventListener("dblclick",s);var a=new mi(n.eResize);a.addEventListener(mi.EVENT_DOUBLE_TAP,s),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",s),a.removeEventListener(mi.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(i),this.ctrl.addRefreshFunction(s)},t.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),o=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnModel.setColumnWidths(o,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var t=e,n=this.pinned!==oe.PINNED_LEFT,o=this.pinned===oe.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(t*=-1):o&&(t*=-1),t},nc([Z("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),nc([Z("columnModel")],t.prototype,"columnModel",void 0),nc([z],t.prototype,"postConstruct",null),t}(Fe),rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ic=function(e){function t(t,n,o){void 0===n&&(n="ag-checkbox"),void 0===o&&(o="checkbox");var r=e.call(this,t,n,o)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return rc(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return this.eWrapper.classList.toggle("ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"===typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,n,o){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:n,event:o});var r=this.getInputElement(),i={type:je.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:n};this.eventService.dispatchEvent(i)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(Fr),sc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ac=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},lc=function(e){function t(t){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=t;var o=t.getColDef();return n.filteredOnly=!!o&&!!o.headerCheckboxSelectionFilteredOnly,n}return sc(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll,n=this.gridOptionsWrapper.getDocument();t.isDisplayed()&&!t.getGui().contains(n.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new ic),this.cbSelectAll.addCssClass("ag-header-select-all"),Vn(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,je.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,je.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,ic.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",n+" ("+t+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,o=function(o){e.gridOptionsWrapper.isGroupSelectsChildren()&&o.group||(o.isSelected()?t++:o.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(o):this.gridApi.forEachNode(o),{notSelected:n,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===oe.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"===typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),!1))},ac([Z("gridApi")],t.prototype,"gridApi",void 0),ac([Z("columnApi")],t.prototype,"columnApi",void 0),ac([Z("rowModel")],t.prototype,"rowModel",void 0),ac([Z("selectionService")],t.prototype,"selectionService",void 0),t}(Fe),uc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pc=function(e){function n(t,n){var o=e.call(this,t,n)||this;return o.refreshFunctions=[],o.userHeaderClasses=new Set,o.ariaDescriptionProperties=new Map,o.column=t,o}return uc(n,e),n.prototype.setComp=function(t,n,o){var r=this;e.prototype.setGui.call(this,n),this.comp=t,this.colDefVersion=this.columnModel.getColDefVersion(),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new oc(this.getPinned(),this.column,o,t,this)),this.createManagedBean(new $u([this.column],n)),this.createManagedBean(new Zu(this.column,n,this.beans)),this.createManagedBean(new mr(n,{shouldStopEventPropagation:function(e){return r.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,je.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},n.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},n.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},n.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},n.prototype.createParams=function(){var e=this,t=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,"uiColumnSorted")},setSort:function(t,n){e.sortController.setSortForColumn(e.column,t,!!n,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},n.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new lc(this.column)),this.selectAllFeature.setComp(this)},n.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},n.prototype.handleKeyDown=function(e){e.key===dr.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===dr.ENTER&&this.onEnterKeyPressed(e)},n.prototype.onEnterKeyPressed=function(e){var t=this.comp.getUserCompInstance();if(t)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var n=e.shiftKey;this.sortController.progressSort(this.column,n,"uiColumnSorted")}},n.prototype.isMenuEnabled=function(){return this.menuEnabled},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},n.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},n.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},n=this.createManagedBean(new qa(t,this.beans));n.setComp(this.comp),this.refreshFunctions.push((function(){return n.refreshToolTip()}))},n.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),n=e.gridOptionsWrapper,o=Pu.getHeaderClassesFromColDef(t,n,e.column,null),r=e.userHeaderClasses;e.userHeaderClasses=new Set(o),o.forEach((function(t){r.has(t)?r.delete(t):e.comp.addOrRemoveCssClass(t,!0)})),r.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!1)}))};this.refreshFunctions.push(t),t()},n.prototype.setDragSource=function(e){var n=this;this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable&&(this.moveDragSource={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ts.ICON_HIDE,getDragItem:function(){return n.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return n.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return n.column.setMoving(!1,"uiColumnMoved")}},this.dragAndDropService.addDragSource(this.moveDragSource,!0))},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},n.prototype.onNewColumnsLoaded=function(){var e=this.columnModel.getColDefVersion();e!=this.colDefVersion&&(this.colDefVersion=e,this.refresh())},n.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},n.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},n.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(e){return e()}))},n.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},n.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();return!!t&&(!!t.refresh&&t.refresh(e))},n.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},n.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},n.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsWrapper.isSuppressMovableColumns()&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},n.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},n.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},n.prototype.onColumnValueChanged=function(){this.checkDisplayName()},n.prototype.setupWidth=function(){var e=this,t=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,ae.EVENT_WIDTH_CHANGED,t),t()},n.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,ae.EVENT_MOVING_CHANGED,t),t()},n.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,ae.EVENT_MENU_VISIBLE_CHANGED,t),t()},n.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.column,ae.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},n.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(jn(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},n.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},n.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},n.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},n.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},n.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,je.EVENT_COLUMN_HOVER_CHANGED,t),t()},n.prototype.setupFilterCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,ae.EVENT_FILTER_ACTIVE_CHANGED,t),t()},n.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},n.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader("mouseenter"===t.type)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t)},n.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},cc([Z("columnModel")],n.prototype,"columnModel",void 0),cc([Z("columnHoverService")],n.prototype,"columnHoverService",void 0),cc([Z("beans")],n.prototype,"beans",void 0),cc([Z("sortController")],n.prototype,"sortController",void 0),cc([Z("menuFactory")],n.prototype,"menuFactory",void 0),cc([Z("dragAndDropService")],n.prototype,"dragAndDropService",void 0),cc([Z("gridApi")],n.prototype,"gridApi",void 0),cc([Z("columnApi")],n.prototype,"columnApi",void 0),cc([Z("userComponentFactory")],n.prototype,"userComponentFactory",void 0),cc([K],n.prototype,"removeDragSource",null),n}(ju),dc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},fc=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.eResize=n,i.comp=t,i.pinned=o,i.columnGroup=r,i}return dc(t,e),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",(function(){var t=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||t.push(e.getColId())})),t.length>0&&e.columnModel.autoSizeColumns({columns:t,skipHeader:n,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()}))}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var t=this;this.calculateInitialValues();var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var o=n.getDisplayedLeafColumns();this.resizeTakeFromCols=o.filter((function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,t){var n=this.normaliseDragChange(t),o=this.resizeStartWidth+n;this.resizeColumns(o,e)},t.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},t.prototype.resizeColumns=function(e,t){void 0===t&&(t=!0);var n=[];if(n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var o=e-this.resizeStartWidth;n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-o})}this.columnModel.resizeColumnSets({resizeSets:n,finished:t,source:"uiColumnDragged"}),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,t=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=t.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(t){return e.resizeStartWidth+=t.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(t){return e.resizeRatios.push(t.getActualWidth()/e.resizeStartWidth)}))},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==oe.PINNED_LEFT&&(t*=-1):this.pinned===oe.PINNED_RIGHT&&(t*=-1),t},hc([Z("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),hc([Z("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),hc([Z("columnModel")],t.prototype,"columnModel",void 0),hc([z],t.prototype,"postConstruct",null),t}(Fe),gc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vc=function(e){function t(t,n){var o=e.call(this)||this;return o.removeChildListenersFuncs=[],o.columnGroup=n,o.comp=t,o}return gc(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,we.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(ae.EVENT_WIDTH_CHANGED,t),n.addEventListener(ae.EVENT_VISIBLE_CHANGED,t),e.removeChildListenersFuncs.push((function(){n.removeEventListener(ae.EVENT_WIDTH_CHANGED,t),n.removeEventListener(ae.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},mc([z],t.prototype,"postConstruct",null),t}(Fe),yc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wc=function(e){function n(t,n){var o=e.call(this,t,n)||this;return o.columnGroup=t,o}return yc(n,e),n.prototype.setComp=function(t,n,o){e.prototype.setGui.call(this,n),this.comp=t,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var r=this.getParentRowCtrl().getPinned(),i=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new $u(i,n)),this.createManagedBean(new Zu(this.columnGroup,n,this.beans)),this.createManagedBean(new vc(t,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new fc(t,o,r,this.columnGroup)),this.createManagedBean(new mr(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},n.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},n.prototype.setupUserComp=function(){var e=this,t=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),t,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!t){for(var o=this.columnGroup,r=o.getLeafColumns();o.getParent()&&o.getParent().getLeafColumns().length===r.length;)o=o.getParent();var i=o.getColGroupDef();i&&(t=i.headerName),t||(t=r?this.columnModel.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(s)},n.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef(),n={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(n.getColDef=function(){return t}),this.createManagedBean(new qa(n,this.beans)).setComp(this.comp)},n.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,be.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,be.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},n.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},n.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},n.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),n=Pu.getHeaderClassesFromColDef(t,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!0)}))},n.prototype.setupMovingCss=function(){var e=this,t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};t.forEach((function(t){e.addManagedListener(t,ae.EVENT_MOVING_CHANGED,n)})),n()},n.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},n.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument().activeElement===this.eGui;if(this.expandable&&t&&e.key===dr.ENTER){var n=this.columnGroup,o=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),o,"uiColumnExpanded")}},n.prototype.setDragSource=function(e){var n=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ts.ICON_HIDE,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return n.dragAndDropService.removeDragSource(r)}))}},n.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];return this.columnModel.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),de(e,t))})),e.forEach((function(e){return n.push(e)})),{columns:n,visibleState:t}},n.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},Cc([Z("beans")],n.prototype,"beans",void 0),Cc([Z("columnModel")],n.prototype,"columnModel",void 0),Cc([Z("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Cc([Z("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Cc([Z("gridApi")],n.prototype,"gridApi",void 0),Cc([Z("columnApi")],n.prototype,"columnApi",void 0),n}(ju),bc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_c=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ec=0,Sc=function(e){function n(t,n,o){var r=e.call(this)||this;return r.instanceId=Ec++,r.headerCellCtrls={},r.rowIndex=t,r.pinned=n,r.type=o,r}return bc(n,e),n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),Ht()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,je.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},n.prototype.getHeaderCellCtrl=function(e){return p(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()===e}))},n.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},n.prototype.getType=function(){return this.type},n.prototype.onColumnResized=function(){this.setWidth()},n.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},n.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(oe.PINNED_RIGHT)+this.columnModel.getContainerWidth(oe.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},n.prototype.onRowHeightChanged=function(){var e,t,n=this.columnModel.getHeaderRowCount(),o=[],r=0;this.columnModel.hasFloatingFilters()&&(n++,r=1),this.columnModel.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+r),s=0;s<i;s++)o.push(e);o.push(t);for(s=0;s<r;s++)o.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.rowIndex;s++)a+=o[s];this.comp.setTop(a+"px"),this.comp.setHeight(o[this.rowIndex]+"px")},n.prototype.getPinned=function(){return this.pinned},n.prototype.getRowIndex=function(){return this.rowIndex},n.prototype.onVirtualColumnsChanged=function(){var e=this,n=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(o){if(!o.isEmptyGroup()){var r=o.getUniqueId(),i=n[r];if(delete n[r],i&&i.getColumnGroupChild()!=o&&(e.destroyBean(i),i=void 0),null==i)switch(e.type){case t.HeaderRowType.FLOATING_FILTER:i=e.createBean(new ec(o,e));break;case t.HeaderRowType.COLUMN_GROUP:i=e.createBean(new wc(o,e));break;default:i=e.createBean(new pc(o,e))}e.headerCellCtrls[r]=i}}));f(n,(function(t,n){var o;(o=n,!!e.focusService.isHeaderWrapperFocused(o)&&e.columnModel.isDisplayed(o.getColumnGroupChild()))?e.headerCellCtrls[t]=n:e.destroyBean(n)}));var o=b(this.headerCellCtrls);this.comp.setHeaderCtrls(o)},n.prototype.destroyCtrls=function(){var e=this;f(this.headerCellCtrls,(function(t,n){e.destroyBean(n)})),this.headerCellCtrls={}},n.prototype.getColumnsInViewport=function(){return this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},n.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],n=this.getActualDepth();return[oe.PINNED_LEFT,null,oe.PINNED_RIGHT].forEach((function(o){var r=e.columnModel.getVirtualHeaderGroupRow(o,n);t=t.concat(r)})),t},n.prototype.getActualDepth=function(){return this.type==t.HeaderRowType.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},n.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},n.prototype.focusHeader=function(e,t){var n=b(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()==e}));return!!n&&(n.focus(t),!0)},_c([Z("columnModel")],n.prototype,"columnModel",void 0),_c([Z("focusService")],n.prototype,"focusService",void 0),_c([K],n.prototype,"destroyCtrls",null),n}(Fe),Rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pc=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Tc=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Pc(arguments[t]));return e},xc=function(e){function n(t){var n=e.call(this)||this;return n.groupsRowCtrls=[],n.pinned=t,n}return Rc(n,e),n.prototype.setComp=function(e,t){this.comp=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(t),this.addManagedListener(this.eventService,je.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},n.prototype.setupDragAndDrop=function(e){var t=new Su(this.pinned,e);this.createManagedBean(t)},n.prototype.refresh=function(e){var n=this;void 0===e&&(e=!1);var o=new Bo,r=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var e=n.columnModel.getHeaderRowCount()-1;n.groupsRowCtrls=n.destroyBeans(n.groupsRowCtrls);for(var r=0;r<e;r++){var i=n.createBean(new Sc(o.next(),n.pinned,t.HeaderRowType.COLUMN_GROUP));n.groupsRowCtrls.push(i)}}(),function(){var r=o.next();(null==n.columnsRowCtrl||!e||n.columnsRowCtrl.getRowIndex()!==r)&&(n.destroyBean(n.columnsRowCtrl),n.columnsRowCtrl=n.createBean(new Sc(r,n.pinned,t.HeaderRowType.COLUMN)))}(),function(){var r=function(){n.filtersRowCtrl=n.destroyBean(n.filtersRowCtrl)};if(n.columnModel.hasFloatingFilters()){var i=o.next();if(n.filtersRowCtrl){var s=n.filtersRowCtrl.getRowIndex()!==i;e&&!s||r()}n.filtersRowCtrl||(n.filtersRowCtrl=n.createBean(new Sc(i,n.pinned,t.HeaderRowType.FLOATING_FILTER)))}else r()}();var i=this.getAllCtrls();this.comp.setCtrls(i),this.restoreFocusOnHeader(r)},n.prototype.restoreFocusOnHeader=function(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})},n.prototype.getAllCtrls=function(){var e=Tc(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},n.prototype.onGridColumnsChanged=function(){this.refresh(!0)},n.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new Fl((function(t){return e.comp.setCenterWidth(t+"px")})))},n.prototype.setHorizontalScroll=function(e){this.comp.setContainerTransform("translateX("+e+"px)")},n.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var t=this.pinned===oe.PINNED_LEFT,n=this.pinned===oe.PINNED_RIGHT,o=function(){var o=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=o){var r=0==o,i=e.gridOptionsWrapper.isEnableRtl(),s=e.gridOptionsWrapper.getScrollbarWidth(),a=e.scrollVisibleService.isVerticalScrollShowing()&&(i&&t||!i&&n)?o+s:o;e.comp.setPinnedContainerWidth(a+"px"),e.comp.addOrRemoveCssClass("ag-hidden",r)}};this.addManagedListener(this.eventService,je.EVENT_LEFT_PINNED_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,je.EVENT_RIGHT_PINNED_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,je.EVENT_SCROLL_VISIBILITY_CHANGED,o),this.addManagedListener(this.eventService,je.EVENT_SCROLLBAR_WIDTH_CHANGED,o)}},n.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof ae){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(var t=0;t<this.groupsRowCtrls.length;t++){var n=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(n)return n}},n.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},n.prototype.getRowType=function(e){var t=this.getAllCtrls()[e];return t?t.getType():void 0},n.prototype.focusHeader=function(e,t,n){var o=this.getAllCtrls()[e];return!!o&&o.focusHeader(t,n)},n.prototype.getRowCount=function(){return this.getAllCtrls().length},Oc([Z("ctrlsService")],n.prototype,"ctrlsService",void 0),Oc([Z("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Oc([Z("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),Oc([Z("columnModel")],n.prototype,"columnModel",void 0),Oc([Z("focusService")],n.prototype,"focusService",void 0),n}(Fe),Ac=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Nc=function(e){function t(t){var n=e.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=t,n}return Ac(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setContainerTransform:function(t){return e.eCenterContainer.style.transform=t},setPinnedContainerWidth:function(t){var n=e.getGui();n.style.width=t,n.style.maxWidth=t,n.style.minWidth=t}};this.createManagedBean(new xc(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned==oe.PINNED_LEFT,n=this.pinned==oe.PINNED_RIGHT,o=e?t.PINNED_LEFT_TEMPLATE:n?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 t,n=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var r=e.getInstanceId(),i=o[r];delete o[r];var s=i||n.createBean(new ku(e));n.headerRowComps[r]=s,n.rowCompsList.push(s),function(e){var o=e.getGui();o.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(o),t&&yn(n.eRowContainer,o,t),t=o}(s)})),b(o).forEach((function(e){return n.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',t.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',Dc([nr("eCenterContainer")],t.prototype,"eCenterContainer",void 0),Dc([z],t.prototype,"init",null),Dc([K],t.prototype,"destroyRowComps",null),t}(tr),Lc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ic=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(Uu=t.HeaderNavigationDirection||(t.HeaderNavigationDirection={}))[Uu.UP=0]="UP",Uu[Uu.DOWN=1]="DOWN",Uu[Uu.LEFT=2]="LEFT",Uu[Uu.RIGHT=3]="RIGHT";var Mc=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Lc(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},n.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},n.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},n.prototype.navigateVertically=function(e,n,o){if(n||(n=this.focusService.getFocusedHeader()),!n)return!1;var r=n.headerRowIndex,i=n.column,s=this.getHeaderRowCount(),a=e===t.HeaderNavigationDirection.UP,l=a?r-1:r+1,u=null,c=!1;l<0&&(l=0,u=i,c=!0),l>=s&&(l=-1);var p=this.getHeaderRowType(r);if(!c){if(p===t.HeaderRowType.COLUMN_GROUP){var d=i;u=a?i.getParent():d.getDisplayedChildren()[0]}else if(p===t.HeaderRowType.FLOATING_FILTER)u=i;else{d=i;u=a?d.getParent():d}if(!u)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l,column:u},allowUserOverride:!0,event:o})},n.prototype.navigateHorizontally=function(e,n,o){void 0===n&&(n=!1);var r,i,s=this.focusService.getFocusedHeader();return e===t.HeaderNavigationDirection.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(i="Before",r=this.headerPositionUtils.findHeader(s,i)):(i="After",r=this.headerPositionUtils.findHeader(s,i)),r?this.focusService.focusHeaderPosition({headerPosition:r,direction:i,fromTab:n,allowUserOverride:!0,event:o}):!n||this.focusNextHeaderRow(s,i,o)},n.prototype.focusNextHeaderRow=function(e,t,n){var o,r=e.headerRowIndex,i=null;return"Before"===t?r>0&&(o=r-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"end")):(o=r+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"start")),this.focusService.focusHeaderPosition({headerPosition:i,direction:t,fromTab:!0,allowUserOverride:!0,event:n})},n.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var n;if(e instanceof we){var o=e.getDisplayedLeafColumns();n="Before"===t?ue(o):o[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},Ic([Z("focusService")],n.prototype,"focusService",void 0),Ic([Z("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),Ic([Z("animationFrameService")],n.prototype,"animationFrameService",void 0),Ic([Z("ctrlsService")],n.prototype,"ctrlsService",void 0),Ic([z],n.prototype,"postConstruct",null),n=Ic([q("headerNavigationService")],n)}(Fe),Fc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gc=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Fc(n,e),n.prototype.setComp=function(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new mr(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,je.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},n.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,e)},n.prototype.setHeaderHeight=function(){var e,t,n,o=this.columnModel,r=this.gridOptionsWrapper,i=0,s=o.getHeaderRowCount();o.hasFloatingFilters()&&(s++,i=1),o.isPivotMode()?(t=r.getPivotGroupHeaderHeight(),n=r.getPivotHeaderHeight()):(t=r.getGroupHeaderHeight(),n=r.getHeaderHeight());var a=s-(1+i);e=i*r.getFloatingFiltersHeight(),e+=a*t;var l=(e+=n)+1+"px";this.comp.setHeightAndMinHeight(l)},n.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},n.prototype.onTabKeyDown=function(e){var n=this.gridOptionsWrapper.isEnableRtl(),o=e.shiftKey!==n?t.HeaderNavigationDirection.LEFT:t.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},n.prototype.handleKeyDown=function(e){var n=null;switch(e.key){case dr.LEFT:n=t.HeaderNavigationDirection.LEFT;case dr.RIGHT:r(n)||(n=t.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(n,!1,e);break;case dr.UP:n=t.HeaderNavigationDirection.UP;case dr.DOWN:r(n)||(n=t.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(n,null,e)&&e.preventDefault();break;default:return}},n.prototype.onFocusOut=function(e){var t=this.gridOptionsWrapper.getDocument(),n=e.relatedTarget;!n&&this.eGui.contains(t.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()},kc([Z("headerNavigationService")],n.prototype,"headerNavigationService",void 0),kc([Z("focusService")],n.prototype,"focusService",void 0),kc([Z("columnModel")],n.prototype,"columnModel",void 0),kc([Z("ctrlsService")],n.prototype,"ctrlsService",void 0),n}(Fe),Hc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},jc=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Hc(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}};this.createManagedBean(new Gc).setComp(t,this.getGui(),this.getFocusableElement());var n=function(t){e.createManagedBean(t),e.appendChild(t)};n(new Nc(oe.PINNED_LEFT)),n(new Nc(null)),n(new Nc(oe.PINNED_RIGHT))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',Vc([z],t.prototype,"postConstruct",null),t}(tr),Wc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Uc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wc(t,e),t.prototype.addResizeBar=function(e){var t=this,n={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(n,!0);return function(){return t.dragService.removeDragSource(n)}},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},Bc([Z("dragService")],t.prototype,"dragService",void 0),Bc([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Bc([q("horizontalResizeService")],t)}(Fe),zc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zc(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:o})}),t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,n){var o=this;this.showPopup(e,(function(r){o.popupService.positionPopupUnderComponent({type:n,eventSource:t,ePopup:r,keepWithinBounds:!0,column:e})}),t)},t.prototype.showPopup=function(e,t,n){var o=this,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!r)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var i,s=document.createElement("div");Vn(s,"presentation"),s.classList.add("ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(e){return o.trapFocusWithin(e,s)})),r.guiPromise.then((function(e){return s.appendChild(e)}));var a=n||this.ctrlsService.getGridBodyCtrl().getGui(),l=this.gridOptionsWrapper.getLocaleTextFunc(),u=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,"contextMenu");var r=t instanceof KeyboardEvent;if(o.tabListener&&(o.tabListener=o.tabListener()),r&&n&&fn(n)){var i=o.focusService.findTabbableParent(n);i&&i.focus()}},positionCallback:function(){return t(s)},anchorToElement:a,ariaLabel:l("ariaLabelColumnMenu","Column Menu")});u&&(this.hidePopup=i=u.hideFunc),r.filterPromise.then((function(e){t(s),e.afterGuiAttached&&e.afterGuiAttached({container:"columnMenu",hidePopup:i})})),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.key!==dr.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},Kc([Z("filterManager")],t.prototype,"filterManager",void 0),Kc([Z("popupService")],t.prototype,"popupService",void 0),Kc([Z("focusService")],t.prototype,"focusService",void 0),Kc([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Kc([q("menuFactory")],t)}(Fe),Zc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qc=function(e){function t(n){var o=e.call(this,t.getTemplate(n.cssClass))||this;return o.items=[],o.tabbedItemScrollMap=new Map,o.params=n,n.items&&n.items.forEach((function(e){return o.addItem(e)})),o}return Zc(t,e),t.prototype.postConstruct=function(){this.createManagedBean(new mr(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n <div ref="eHeader" role="tablist" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n </div>'},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument();switch(e.key){case dr.RIGHT:case dr.LEFT:if(!this.eHeader.contains(t.activeElement))return;var n=this.items.indexOf(this.activeItem),o=e.key===dr.RIGHT?Math.min(n+1,this.items.length-1):Math.max(n-1,0);if(n===o)return;e.preventDefault();var r=this.items[o];this.showItemWrapper(r),r.eHeaderButton.focus();break;case dr.UP:case dr.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,n=t.focusService,o=t.eHeader,r=t.eBody,i=t.activeItem,s=this.gridOptionsWrapper.getDocument().activeElement;if(e.preventDefault(),o.contains(s))n.focusInto(r,e.shiftKey);else if(n.isFocusUnderManagedComponent(r))i.eHeaderButton.focus();else{var a=n.findNextFocusableElement(r,!1,e.shiftKey);a?a.focus():i.eHeaderButton.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");Vn(t,"tab"),t.setAttribute("tabIndex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eHeader.appendChild(t),Un(t,e.titleLabel);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))},t.prototype.showItem=function(e){var t=this.items.find((function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this,n=e.tabbedItem,o=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:n}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),dn(this.eBody),n.bodyPromise.then((function(e){t.eBody.appendChild(e);var o=!t.focusService.isKeyboardMode();if(t.focusService.focusInto(t.eBody,!1,o),n.afterAttachedCallback&&n.afterAttachedCallback(t.afterAttachedParams),t.params.keepScrollPosition){var r=n.getScrollableContainer&&n.getScrollableContainer()||e;t.lastScrollListener=t.addManagedListener(r,"scroll",(function(){t.tabbedItemScrollMap.set(n.name,r.scrollTop)}));var i=t.tabbedItemScrollMap.get(n.name);void 0!==i&&setTimeout((function(){r.scrollTop=i}),0)}})),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),o.classList.add("ag-tab-selected"),this.activeItem=e):j(this.params.onActiveItemClicked)},Yc([Z("focusService")],t.prototype,"focusService",void 0),Yc([nr("eHeader")],t.prototype,"eHeader",void 0),Yc([nr("eBody")],t.prototype,"eBody",void 0),Yc([z],t.prototype,"postConstruct",null),t}(tr);var $c,Xc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jc=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ep=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return Xc(t,e),t.prototype.observeResize=function(e,t){var n=this,o=this.gridOptionsWrapper.getDocument().defaultView||window,r=G(t,50),i=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!o.ResizeObserver&&!i?function(){var t=new o.ResizeObserver(r);return t.observe(e),function(){return t.disconnect()}}():function(){var o=vn(e),r=mn(e),i=!0;return function s(){if(i){var a=vn(e),l=mn(e);(a!==o||l!==r)&&(o=a,r=l,t()),n.doNextPolyfillTurn(s)}}(),function(){return i=!1}}()},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var t=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],t.forEach((function(e){return e()}))}),50)}},t=Jc([q("resizeObserverService")],t)}(Fe),tp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),np=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},op=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return tp(t,e),t.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var o={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],o),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder})),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,o=this.createTasksP2,r=o.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0,u=this.ctrlsService.getGridBodyCtrl();l||a<e;){if(!u.getScrollFeature().executeAnimationFrameScroll()){var c=void 0;if(n.length)this.sortTaskList(t),c=n.pop().task;else if(r.length)this.sortTaskList(o),c=r.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}c=i.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}n.length||r.length||i.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),t=this.gridOptionsWrapper.getDocument().defaultView||window;t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var t=this,n=!1;return function(){t.isOn()?n||(n=!0,t.addDestroyTask((function(){n=!1,e()}))):t.getFrameworkOverrides().setTimeout(e,0)}},np([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),np([z],t.prototype,"init",null),t=np([q("animationFrameService")],t)}(Fe),rp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ip=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sp=function(e){function t(t,n){var o=e.call(this)||this;return o.element=t,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},n),o}return rp(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,n=e.clientWidth/2-this.getWidth()/2,o=t/2-this.getHeight()/2;this.offsetElement(n,o)},t.prototype.initialisePosition=function(){var e=this.config,t=e.centered,n=e.forcePopupParentAsOffsetParent,o=e.minWidth,r=e.width,i=e.minHeight,s=e.height,a=e.x,l=e.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=i||u,this.minWidth=o||c,r&&this.setWidth(r),s&&this.setHeight(s),r&&s||this.refreshSize(),t)this.center();else if(a||l)this.offsetElement(a,l);else if(p&&n&&this.boundaryEl){var m=parseFloat(this.boundaryEl.style.top),v=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(v)?0:v,isNaN(m)?0:m)}this.positioned=!!this.offsetParent},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,t){if(this.config.popup&&e!==this.movable){this.movable=e;var n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var t=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"===typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach((function(n){var o=!!e[n],r=t.getResizerElement(n),i={dragStartPixels:0,eElement:r,onDragStart:function(e){return t.onResizeStart(e,n)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,n)}};!!t.resizable[n]===o&&(t.isAlive()||o)||(o?(t.dragService.addDragSource(i),t.resizeListeners.push(i),r.style.pointerEvents="all"):r.style.pointerEvents="none")}))},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,t=e.height,n=e.width;-1!==n&&(this.element.style.width=n+"px"),-1!==t&&(this.element.style.height=t+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config.popup,n=this.element,o=!1;if("string"===typeof e&&-1!==e.indexOf("%"))On(n,e),e=an(n),o=!0;else if(this.positioned){var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var s=this.offsetParent.clientHeight,a=t?this.position.y:r.top,l=t?0:i.top;s&&e+a>s+l&&(e=s-a)}this.getHeight()!==e&&(o?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?On(n,e):(n.style.height=e+"px",n.style.flex="0 0 auto",this.lastSize.height="number"===typeof e?e:parseFloat(e)))},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,n=this.config.popup,o=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Rn(t,e),e=ln(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var r=this.offsetParent.clientWidth,i=n?this.position.x:this.element.getBoundingClientRect().left;r&&e+i>r&&(e=r-i)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Rn(t,e):(t.style.width=e+"px",t.style.flex=" unset",this.lastSize.width="number"===typeof e?e:parseFloat(e)))},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:n,x:e,y:t,keepWithinBounds:!0}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top))},t.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=e.e,n=e.isLeft,o=e.isTop,r=e.anywhereWithin,i=e.topBuffer,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!n,!!r,s)?0:s,movementY:this.shouldSkipY(t,!!o,i,a)?0:a}},t.prototype.shouldSkipX=function(e,t,n,o){var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:r.left,l=a<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=s.right;return!!l||(l=t?o<0&&e.clientX>a+i.left||o>0&&e.clientX<a+i.left:n?o<0&&e.clientX>s.right||o>0&&e.clientX<a+i.left:o<0&&e.clientX>s.right||o>0&&e.clientX<s.right)},t.prototype.shouldSkipY=function(e,t,n,o){void 0===n&&(n=0);var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:r.top,l=a<=0&&i.top>=e.clientY||i.bottom<=e.clientY&&i.bottom<=s.bottom;return!!l||(l=t?o<0&&e.clientY>a+i.top+n||o>0&&e.clientY<a+i.top:o<0&&e.clientY>s.bottom||o>0&&e.clientY<s.bottom)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var t=(new DOMParser).parseFromString('<div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>',"text/html").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector(".ag-resizer-wrapper");e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");var n=this.config,o=n.popup,r=n.forcePopupParentAsOffsetParent;o||r||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter((function(e){return!e.classList.contains("ag-hidden")})):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,n=0,o=0;o<e.length;o++){var r=e[o],i=!!r.style.flex&&"0 0 auto"!==r.style.flex;if(r!==this.element){var s=this.minHeight||0,a=this.minWidth||0;if(i){var l=window.getComputedStyle(r);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=r.offsetHeight,a=r.offsetWidth;t+=s,n+=a}}return{height:t,width:n}},t.prototype.applySizeToSiblings=function(e){var t=null,n=this.getSiblings();if(n){for(var o=0;o<n.length;o++){var r=n[o];r!==t&&(e?r.style.height=r.offsetHeight+"px":r.style.width=r.offsetWidth+"px",r.style.flex="0 0 auto",r===this.element&&(t=n[o+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var t=this.config,n=t.popup,o=t.forcePopupParentAsOffsetParent,r=this.currentResizer,i=r.isTop,s=r.isRight,a=r.isBottom,l=r.isLeft,u=s||l,c=a||i,p=this.calculateMouseMovement({e:e,isLeft:l,isTop:i}),d=p.movementX,h=p.movementY,f=this.position.x,g=this.position.y,m=0,v=0;if(u&&d){var y=l?-1:1,C=this.getWidth(),w=C+d*y,b=!1;l&&(f+(m=C-w)<=0||w<=this.minWidth)&&(b=!0,m=0),b||this.setWidth(w)}if(c&&h){y=i?-1:1;var _=this.getHeight(),E=_+h*y,S=!1;i?(g+(v=_-E)<=0||E<=this.minHeight)&&(S=!0,v=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&_<E&&this.getMinSizeOfSiblings().height+E>this.element.parentElement.offsetHeight&&(S=!0),S||this.setHeight(E)}this.updateDragStartPosition(e.clientX,e.clientY),((n||o)&&m||v)&&this.offsetElement(f+m,g+v)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var n={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchEvent(n)},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 t,n=this.position,o=n.x,r=n.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var i=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:t}),s=i.movementX,a=i.movementY;this.offsetElement(o+s,r+a),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("static"!==window.getComputedStyle(e).position)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(){e.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},ip([Z("popupService")],t.prototype,"popupService",void 0),ip([Z("dragService")],t.prototype,"dragService",void 0),t}(Fe),ap=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},up=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ap(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl}))},t.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var o=this.rowRenderer.getAllCellsForColumn(e);return t||o.push(n),this.addElementsToContainerAndGetWidth(o)},t.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,n=document.createElement("span");n.style.position="fixed";var o=this.centerRowContainerCtrl.getContainerElement();o.appendChild(n),e.forEach((function(e){return t.cloneItemIntoDummy(e,n)}));var r=n.offsetWidth;return o.removeChild(n),r+this.gridOptionsWrapper.getAutoSizePadding()},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(n){var o=n.getHtmlElementForColumnHeader(e);null!=o&&(t=o)})),t},t.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var o=document.createElement("div"),r=o.classList;["ag-header-cell","ag-header-group-cell"].some((function(e){return n.classList.contains(e)}))?(r.add("ag-header","ag-header-row"),o.style.position="static"):r.add("ag-row");for(var i=e.parentElement;i;){if(["ag-header-row","ag-row"].some((function(e){return i.classList.contains(e)}))){for(var s=0;s<i.classList.length;s++){var a=i.classList[s];"ag-row-position-absolute"!=a&&r.add(a)}break}i=i.parentElement}o.appendChild(n),t.appendChild(o)},lp([Z("rowRenderer")],t.prototype,"rowRenderer",void 0),lp([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),lp([Z("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),lp([z],t.prototype,"postConstruct",null),t=lp([q("autoWidthCalculator")],t)}(Fe),cp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},dp=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},hp=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dp(arguments[t]));return e},fp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCtrlsByRowIndex={},t.zombieRowCtrls={},t.allRowCtrls=[],t.topRowCtrls=[],t.bottomRowCtrls=[],t.refreshInProgress=!1,t}return cp(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()}))},t.prototype.initialise=function(){this.addManagedListener(this.eventService,je.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,je.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,je.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_ROW_CLASS,this.redrawRows.bind(this)),this.addManagedListener(this.eventService,je.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var e=this.gridOptionsWrapper.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new gp(t)}},t.prototype.getRowCtrls=function(){return this.allRowCtrls},t.prototype.updateAllRowCtrls=function(){var e=b(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&e.sort((function(e,t){return e.getRowNode().rowIndex-t.getRowNode.rowIndex}));var t=b(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=hp(e,t,n)},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,je.EVENT_CELL_FOCUSED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellFocused(t)})),e.getFullWidthRowCtrls().forEach((function(e){e.onFullWidthRowFocused(t)}))})),this.addManagedListener(this.eventService,je.EVENT_FLASH_CELLS,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onFlashCells(t)}))})),this.addManagedListener(this.eventService,je.EVENT_COLUMN_HOVER_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onColumnHover()}))})),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.getAllCellCtrls().forEach((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,je.EVENT_RANGE_SELECTION_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,je.EVENT_COLUMN_MOVED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,je.EVENT_COLUMN_PINNED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,je.EVENT_COLUMN_VISIBLE,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,je.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnModel.getAllGridColumns();t&&t.forEach((function(t){var n=function(n){e.getAllCellCtrls().forEach((function(e){e.getColumn()===t&&n(e)}))},o=function(){n((function(e){return e.onLeftChanged()}))},r=function(){n((function(e){return e.onWidthChanged()}))},i=function(){n((function(e){return e.onFirstRightPinnedChanged()}))},s=function(){n((function(e){return e.onLastLeftPinnedChanged()}))};t.addEventListener(ae.EVENT_LEFT_CHANGED,o),t.addEventListener(ae.EVENT_WIDTH_CHANGED,r),t.addEventListener(ae.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(ae.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(ae.EVENT_LEFT_CHANGED,o),t.removeEventListener(ae.EVENT_WIDTH_CHANGED,r),t.removeEventListener(ae.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(ae.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach((function(n){var o=n.getCellElement(e);o&&t.push(o)})),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCtrls=function(){return this.topRowCtrls},t.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},t.prototype.refreshFloatingRows=function(e,t){var n=this;e.forEach((function(e){e.destroyFirstPass(),e.destroySecondPass()})),e.length=0,t&&t.forEach((function(t){var o=new fl(t,n.beans,!1,!1,n.printLayout);e.push(o)}))},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return i(e)||f(this.rowCtrlsByRowIndex,(function(n,o){var r=o.getRowNode();e.indexOf(r)>=0&&t.push(n)})),t},t.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var n=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:t})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;var n=this.gridOptionsWrapper.getDocument().activeElement,o=this.gridOptionsWrapper.getDomData(n,al.DOM_DATA_KEY_CELL_CTRL),r=this.gridOptionsWrapper.getDomData(n,fl.DOM_DATA_KEY_ROW_CTRL);return o||r?t:null},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&!!e.recycleRows,o=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=n?this.recycleRows():null;n||this.removeAllRowComps();var i=function(){if(null==t||null==r)return!1;var e=!1;return f(r,(function(n,o){var r=o.getRowNode(),i=r.rowIndex==t.rowIndex,s=r.rowPinned==t.rowPinned;i&&s&&(e=!0)})),e}();this.redraw(r,o),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),i||this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.isRefreshInProgress=function(){return this.refreshInProgress},t.prototype.restoreFocusedCell=function(e){e&&this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach((function(t){t.stopEditing(e)}))},t.prototype.onNewColumnsLoaded=function(){this.getAllCellCtrls().forEach((function(e){return e.onNewColumnsLoaded()}))},t.prototype.getAllCellCtrls=function(){var e=[];return this.getAllRowCtrls().forEach((function(t){return e=e.concat(t.getAllCellCtrls())})),e},t.prototype.getAllRowCtrls=function(){var e=this,t=hp(this.topRowCtrls,this.bottomRowCtrls);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(n){return t.push(e.rowCtrlsByRowIndex[n])})),t},t.prototype.addRenderedRowListener=function(e,t,n){var o=this.rowCtrlsByRowIndex[t];o&&o.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,n=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){return e.flashCell({flashDelay:t,fadeDelay:n})}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){if(e.refreshShouldDestroy()){var n=e.getRowCtrl();n&&n.refreshCell(e)}else e.refreshCell(t)})),this.getFullWidthRowCtrls(e.rowNodes).forEach((function(e){e.refreshFullWidth()}))},t.prototype.getCellRendererInstances=function(e){return this.getCellCtrls(e.rowNodes,e.columns).map((function(e){return e.getCellRenderer()})).filter((function(e){return null!=e}))},t.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.mapRowNodes=function(e){if(e){var t={top:{},bottom:{},normal:{}};return e.forEach((function(e){var n=e.id;e.rowPinned===oe.PINNED_TOP?t.top[n]=e:e.rowPinned===oe.PINNED_BOTTOM?t.bottom[n]=e:t.normal[n]=e})),t}},t.prototype.isRowInMap=function(e,t){var n=e.id,o=e.rowPinned;return o===oe.PINNED_BOTTOM?null!=t.bottom[n]:o===oe.PINNED_TOP?null!=t.top[n]:null!=t.normal[n]},t.prototype.getCellCtrls=function(e,t){var n,o=this,i=this.mapRowNodes(e),s=[];r(t)&&(n={},t.forEach((function(e){var t=o.columnModel.getGridColumn(e);r(t)&&(n[t.getId()]=!0)})));var a=function(e){var t=e.getRowNode();(null==i||o.isRowInMap(t,i))&&e.getAllCellCtrls().forEach((function(e){var t=e.getColumn().getId();n&&!n[t]||s.push(e)}))};return f(this.rowCtrlsByRowIndex,(function(e,t){a(t)})),this.topRowCtrls&&this.topRowCtrls.forEach(a),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(a),s},t.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];f(this.rowCtrlsByRowIndex,(function(t,n){null==n.getRowNode().id&&e.push(t)})),this.removeRowCtrls(e);var t={};return f(this.rowCtrlsByRowIndex,(function(e,n){var o=n.getRowNode();t[o.id]=n})),this.rowCtrlsByRowIndex={},t},t.prototype.removeRowCtrls=function(e){var t=this;e.forEach((function(e){var n=t.rowCtrlsByRowIndex[e];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var n=Object.keys(this.rowCtrlsByRowIndex).filter((function(e){return!t[e]}));this.removeRowCtrls(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=ho(this.firstRenderedRow,this.lastRenderedRow),o=function(e,o){var r=o.getRowNode().rowIndex;null!=r&&(r<t.firstRenderedRow||r>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(o)&&n.push(r)};return f(this.rowCtrlsByRowIndex,o),f(e,o),n.sort((function(e,t){return e-t})),n},t.prototype.redraw=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender();var i=this.calculateIndexesToDraw(e);(this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1),i.forEach((function(i){r(o.createOrUpdateRowCtrl(i,e,t,n))})),e)&&(n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((function(){o.destroyRowCtrls(e,t),o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,t));this.updateAllRowCtrls(),this.gridBodyCtrl.updateRowCount()},t.prototype.dispatchDisplayedRowsChanged=function(){var e={type:je.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach((function(t){var n=t.getRowNode().rowIndex;e.push(n.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.getFullWidthRowCtrls=function(e){var t=this,n=this.mapRowNodes(e);return b(this.rowCtrlsByRowIndex).filter((function(e){if(!e.isFullWidth())return!1;var o=e.getRowNode();return!(null!=n&&!t.isRowInMap(o,n))}))},t.prototype.refreshFullWidthRows=function(e){var t=[],n=!!e,o=n?{}:void 0;n&&o&&e.forEach((function(e){return o[e.id]=!0})),this.getFullWidthRowCtrls().forEach((function(e){var r=e.getRowNode();if(n&&o){var i=r.level>0&&r.parent?r.parent.id:void 0;if(!o[r.id]&&!o[i])return}if(!e.refreshFullWidth()){var s=e.getRowNode().rowIndex;t.push(s.toString())}})),this.removeRowCtrls(t),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCtrl=function(e,t,n,o){var i,s=this.rowCtrlsByRowIndex[e];if(s||r(i=this.paginationProxy.getRow(e))&&r(t)&&t[i.id]&&i.alreadyRendered&&(s=t[i.id],t[i.id]=null),!s){if(i||(i=this.paginationProxy.getRow(e)),!r(i))return;s=this.createRowCon(i,n,o)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s,s},t.prototype.destroyRowCtrls=function(e,t){var n=this,o=[];f(e,(function(e,r){r&&(n.cachedRowCtrls&&r.isCacheable()?n.cachedRowCtrls.addRow(r):(r.destroyFirstPass(),t?(n.zombieRowCtrls[r.getInstanceId()]=r,o.push((function(){r.destroySecondPass(),delete n.zombieRowCtrls[r.getInstanceId()]}))):r.destroySecondPass()))})),t&&(o.push((function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})),L(o))},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,n=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.gridOptionsWrapper.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),i=this.gridOptionsWrapper.isSuppressRowVirtualisation(),s=!1,a=void 0,l=void 0;do{var u=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),p=c.pageFirstPixel,d=c.pageLastPixel,h=this.rowContainerHeightService.getDivStretchOffset();if(i)a=p+h,l=d+h;else{var f=r.getScrollFeature().getVScrollPosition(),g=f.top,m=f.bottom;a=Math.max(g+u-o,p)+h,l=Math.min(m+u+o,d)+h}s=this.ensureAllRowsInRangeHaveHeightsCalculated(a,l)}while(s);var v=this.paginationProxy.getRowIndexAtPixel(a),y=this.paginationProxy.getRowIndexAtPixel(l),C=this.paginationProxy.getPageFirstRow(),w=this.paginationProxy.getPageLastRow();v<C&&(v=C),y>w&&(y=w),e=v,t=y}else e=0,t=-1;var b=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,_=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),E=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);b&&!_&&t-e>E&&(t=e+E);var S=e!==this.firstRenderedRow,R=t!==this.lastRenderedRow;if(S||R){this.firstRenderedRow=e,this.lastRenderedRow=t;var O={type:je.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(O)}if(this.paginationProxy.isRowsToRender()){var P={type:je.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(P)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusService.isRowNodeFocused(t),o=e.isEditing(),r=t.detail;return!!(n||o||r)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowCon=function(e,t,n){var o=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(o)return o;var r=this.gridOptionsWrapper.isSuppressAnimationFrame(),i=n&&!r&&!this.printLayout;return new fl(e,this.beans,t,i,this.printLayout)},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.getRowByPosition=function(e){var t;switch(e.rowPinned){case oe.PINNED_TOP:t=this.topRowCtrls[e.rowIndex];break;case oe.PINNED_BOTTOM:t=this.bottomRowCtrls[e.rowIndex];break;default:t=this.rowCtrlsByRowIndex[e.rowIndex]}return t},t.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,t){if(null==e||null==t)return!1;var n=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!n},pp([Z("paginationProxy")],t.prototype,"paginationProxy",void 0),pp([Z("columnModel")],t.prototype,"columnModel",void 0),pp([Z("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),pp([Z("rowModel")],t.prototype,"rowModel",void 0),pp([Z("focusService")],t.prototype,"focusService",void 0),pp([Z("columnApi")],t.prototype,"columnApi",void 0),pp([Z("gridApi")],t.prototype,"gridApi",void 0),pp([Z("beans")],t.prototype,"beans",void 0),pp([Z("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),pp([Y("ctrlsService")],t.prototype,"ctrlsService",void 0),pp([z],t.prototype,"postConstruct",null),t=pp([q("rowRenderer")],t)}(Fe),gp=function(){function e(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}return e.prototype.addRow=function(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){var t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}},e.prototype.getRow=function(e){if(null==e||null==e.id)return null;var t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null},e.prototype.removeFromCache=function(e){var t=e.getRowNode().id;delete this.entriesMap[t],de(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),mp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mp(t,e),t.prototype.formatValue=function(e,t,n,o,r){void 0===r&&(r=!0);var i,s=null,a=e.getColDef();if(o?i=o:r&&(i=t&&t.rowPinned&&a.pinnedRowValueFormatter?a.pinnedRowValueFormatter:a.valueFormatter),i){var l={value:n,node:t,data:t?t.data:null,colDef:a,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s=this.expressionService.evaluate(i,l)}else if(a.refData)return a.refData[n]||"";return null==s&&Array.isArray(n)&&(s=n.join(", ")),s},vp([Z("expressionService")],t.prototype,"expressionService",void 0),t=vp([q("valueFormatterService")],t)}(Fe),Cp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cp(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){return s(e===oe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var n=t===oe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(s(n))return 0;for(var o=0;o<n.length;o++){var r=n[o];if(r.rowTop+r.rowHeight-1>=e)return o}return n.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:je.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:je.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var n=this,o=[];if(e){var r=0;e.forEach((function(e,i){var s=new qi(n.beans);s.data=e;var a=t?qi.ID_PREFIX_TOP_PINNED:qi.ID_PREFIX_BOTTOM_PINNED;s.id=a+i,s.rowPinned=t?oe.PINNED_TOP:oe.PINNED_BOTTOM,s.setRowTop(r),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),r+=s.rowHeight,o.push(s)}))}return o},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){s(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){s(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var t=ue(e);return t.rowTop+t.rowHeight},wp([Z("columnApi")],t.prototype,"columnApi",void 0),wp([Z("gridApi")],t.prototype,"gridApi",void 0),wp([Z("beans")],t.prototype,"beans",void 0),wp([z],t.prototype,"init",null),t=wp([q("pinnedRowModel")],t)}(Fe);($c=t.ServerSideTransactionResultStatus||(t.ServerSideTransactionResultStatus={})).Applied="Applied",$c.StoreNotFound="StoreNotFound",$c.StoreLoading="StoreLoading",$c.StoreWaitingToLoad="StoreWaitingToLoad",$c.StoreLoadingFailed="StoreLoadingFailed",$c.StoreWrongType="StoreWrongType",$c.Cancelled="Cancelled";var _p,Ep=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,n){if(e.childrenAfterGroup)for(var o=0;o<e.childrenAfterGroup.length;o++){var r=e.childrenAfterGroup[o];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[o],t,n):n&&t(r)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,n=0;!this.mapToItems[t.id];){var o={rowNode:t,children:null};this.mapToItems[t.id]=o,n++,t=t.parent}return n},e.prototype.populateColumnsMap=function(e,t){var n=this;if(this.keepingColumns&&t)for(var o=e;o;)this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={}),t.forEach((function(e){return n.nodeIdsToColumns[o.id][e.getId()]=!0})),o=o.parent},e.prototype.linkPathItems=function(e,t){for(var n=e,o=0;o<t;o++){var r=this.mapToItems[n.id],i=this.mapToItems[n.parent.id];i.children||(i.children=[]),i.children.push(r),n=n.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return n[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!n[e.getId()]}))},e}(),Sp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rp=function(e){function t(n){var o=e.call(this)||this;return o.state=t.STATE_WAITING_TO_LOAD,o.version=0,o.id=n,o}return Sp(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,n=this.isAlive();return t&&n},t.prototype.successCommon=function(e,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(n))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var n={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(n)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Fe),Op=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Tp=function(e,t){return function(n,o){t(n,o,e)}},xp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var n;return Op(t,e),n=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsWrapper.getBlockLoadDebounceMillis();e&&e>0&&(this.checkBlockToLoadDebounce=Wo.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(Rp.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){Wo.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:n.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===Rp.STATE_WAITING_TO_LOAD&&(e=t)})),e&&(e.load(),this.activeBlockLoadsCount++,this.printCacheStatus())}},t.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var n=t.getBlockStateJson(),o=n.id,r=n.state;e[o]=r})),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",Pp([z],t.prototype,"postConstruct",null),Pp([Tp(0,$("loggerFactory"))],t.prototype,"setBeans",null),t=n=Pp([q("rowNodeBlockLoader")],t)}(Fe),Ap=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Np=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return Ap(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,je.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,o){var r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:je.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var e={type:je.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:je.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return i(this.topRowBounds)||i(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},t.prototype.isRowInPage=function(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(r(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:je.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},t.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!fo(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*this.currentPage,n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var o=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=o-1}}},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!fo(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},Dp([Z("rowModel")],t.prototype,"rowModel",void 0),Dp([Z("columnApi")],t.prototype,"columnApi",void 0),Dp([Z("gridApi")],t.prototype,"gridApi",void 0),Dp([z],t.prototype,"postConstruct",null),t=Dp([q("paginationProxy")],t)}(Fe),Lp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ip=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Mp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lp(t,e),t.prototype.processAllCellClasses=function(e,t,n,o){this.processClassRules(e.cellClassRules,t,n,o),this.processStaticCellClasses(e,t,n)},t.prototype.processClassRules=function(e,t,n,o){if(null!=e){for(var r=Object.keys(e),i={},s={},a=function(n){var o,a=r[n],u=e[a];"string"===typeof u?o=l.expressionService.evaluate(u,t):"function"===typeof u&&(o=u(t)),a.split(" ").forEach((function(e){null!=e&&""!=e.trim()&&(o?i[e]=!0:s[e]=!0)}))},l=this,u=0;u<r.length;u++)a(u);o&&Object.keys(s).forEach(o),Object.keys(i).forEach(n)}},t.prototype.getStaticCellClasses=function(e,t){var n,o=e.cellClass;if(!o)return[];"function"===typeof o?n=o(t):n=o;return"string"===typeof n&&(n=[n]),n||[]},t.prototype.processStaticCellClasses=function(e,t,n){this.getStaticCellClasses(e,t).forEach((function(e){n(e)}))},Ip([Z("expressionService")],t.prototype,"expressionService",void 0),t=Ip([q("stylingService")],t)}(Fe),Fp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kp=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return Fp(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,je.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}(ic),Gp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hp=function(e){function t(t){return e.call(this,t,"ag-toggle-button")||this}return Gp(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(ic),Vp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jp=function(e){function t(t,n,o){return void 0===n&&(n="ag-text-field"),void 0===o&&(o="text"),e.call(this,t,n,o)||this}return Vp(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=r(t)?t:""),o},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(t){t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(t){var n,o=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text");o&&o.split("").some((function(t){return!e.test(t)}))&&t.preventDefault()}))},t}(Fr),Wp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bp=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return Wp(t,e),t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Fr),Up=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zp=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return Up(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),n=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==n&&t.setValue(n)})),this.eInput.step="any"},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Ln(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Ln(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.step=e,Ln(this.eInput,"step",e)),this},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(jp),Kp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qp=function(e){function t(t){return e.call(this,t,"ag-range-field","range")||this}return Kp(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,o=t.max,r=t.step;null!=n&&this.setMinValue(n),null!=o&&this.setMaxValue(o),this.setStep(r||1)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){var n=t.target.value;e.setValue(n)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t}(Fr),Zp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qp=function(e){function t(n){var o=e.call(this,n,t.TEMPLATE)||this;return o.labelAlignment="top",o}return Zp(t,e),t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=Sr.EVENT_CHANGED;return this.addManagedListener(this.eText,n,(function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)})),this.addManagedListener(this.eSlider,n,(function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Sr.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',Yp([nr("eLabel")],t.prototype,"eLabel",void 0),Yp([nr("eSlider")],t.prototype,"eSlider",void 0),Yp([nr("eText")],t.prototype,"eText",void 0),Yp([z],t.prototype,"init",null),t}(_r),$p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xp=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Jp=function(e){function t(n){var o=e.call(this,n,t.TEMPLATE)||this;return o.radius=0,o.offsetX=0,o.offsetY=0,o}return $p(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var n=parseFloat(e);n>180&&(n-=360),t.setValue(n)})),this.updateNumberInput(),r(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,Sr.EVENT_CHANGED,(function(){var e=t.gridOptionsWrapper.getDocument();t.eAngleValue.getInputElement().contains(e.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,o=t.width/2,r=t.height/2;n.style.left=o+8*Math.cos(e)+"px",n.style.top=r+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,n=t.width/2,o=t.height/2,r=e.clientX-t.left-n,i=e.clientY-t.top-o,s=Math.atan2(i,r);this.setValue(s,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addManagedListener(this,Sr.EVENT_CHANGED,(function(){e(t.degrees)})),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var n;return n=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(n),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(n),this.dispatchEvent({type:Sr.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return Rn(this.getGui(),e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-angle-select">\n <div ref="eLabel"></div>\n <div class="ag-wrapper ag-angle-select-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',Xp([nr("eLabel")],t.prototype,"eLabel",void 0),Xp([nr("eParentCircle")],t.prototype,"eParentCircle",void 0),Xp([nr("eChildCircle")],t.prototype,"eChildCircle",void 0),Xp([nr("eAngleValue")],t.prototype,"eAngleValue",void 0),Xp([Z("dragService")],t.prototype,"dragService",void 0),t}(_r),ed=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),td=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},nd=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},od=function(e){function t(n){var o=e.call(this,t.TEMPLATE)||this;return o.H=1,o.S=1,o.B=1,o.A=1,o.isSpectrumDragging=!1,o.isSpectrumHueDragging=!1,o.isSpectrumAlphaDragging=!1,o.colorChanged=!1,o.picker=n.picker,o}return ed(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,o=e.clientY-t.top;n=Math.max(n,0),n=Math.min(n,t.width),o=Math.max(o,0),o=Math.min(o,t.height),this.setSpectrumValue(n/t.width,1-o/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var n=this.spectrumHueSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.H=1-r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var n=this.spectrumAlphaSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.A=r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.update=function(){var e=Ot.fromHSB(360*this.H,this.S,this.B,this.A),t=Ot.fromHSB(360*this.H,1,1),n=e.toRgbaString(),o=this.picker;Ot.fromString(o.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),o.setValue(n),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var o=this.spectrumDragger,r=o.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,o.style.left=e*n.width-r.width/2+"px",o.style.top=(1-t)*n.height-r.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map((function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=Ot.fromString(e),n=nd(t.toHSB(),3),o=n[0],r=n[1],i=n[2];this.H=(isNaN(o)?0:o)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*a.width+"px",this.setSpectrumValue(r,i)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(r(n.id)){var o=parseInt(n.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var e=Ot.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),n=t.recentColors;this.colorChanged&&n[0]!==e&&(n=n.filter((function(t){return t!=e})),(n=[e].concat(n)).length>t.maxRecentColors&&(n=n.slice(0,t.maxRecentColors)),t.recentColors=n)},t.prototype.destroy=function(){this.addRecentColor(),e.prototype.destroy.call(this)},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-spectrum-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',td([nr("spectrumColor")],t.prototype,"spectrumColor",void 0),td([nr("spectrumVal")],t.prototype,"spectrumVal",void 0),td([nr("spectrumDragger")],t.prototype,"spectrumDragger",void 0),td([nr("spectrumHue")],t.prototype,"spectrumHue",void 0),td([nr("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),td([nr("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),td([nr("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),td([nr("recentColors")],t.prototype,"recentColors",void 0),td([z],t.prototype,"postConstruct",null),t}(tr),rd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),id=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sd=function(e){function t(n){var o=e.call(this,t.getTemplate(n))||this;return o.closable=!0,o.config=n,o}return rd(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+t+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper"></div>\n </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,n=t.component,o=t.closable,r=t.hideTitleBar,i=t.title,s=t.minWidth,a=void 0===s?250:s,l=t.width,u=t.minHeight,c=void 0===u?250:u,p=t.height,d=t.centered,h=t.popup,f=t.x,g=t.y;this.positionableFeature=new sp(this.getGui(),{minWidth:a,width:l,minHeight:c,height:p,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var m=this.getGui();n&&this.setBodyComponent(n),r?this.eTitleBar.classList.add("ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=o?o:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){var n=e.gridOptionsWrapper.getDocument();if(m.contains(t.relatedTarget)||m.contains(n.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var o=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");o&&o.focus()}})),h&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),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 n=this.closeButtonComp=new tr(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n);var o=n.getGui(),r=xo("close",this.gridOptionsWrapper);r.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(r),this.addTitleBarButton(n),n.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(o=this.closeButtonComp.getGui()).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,t){var n=this.eTitleBarButtons,o=n.children,r=o.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r)),e.addCssClass("ag-panel-title-bar-button");var i=e.getGui();0===t?n.insertAdjacentElement("afterbegin",i):t===r?n.insertAdjacentElement("beforeend",i):o[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return rn(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return sn(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 t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',id([nr("eContentWrapper")],t.prototype,"eContentWrapper",void 0),id([nr("eTitleBar")],t.prototype,"eTitleBar",void 0),id([nr("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),id([nr("eTitle")],t.prototype,"eTitle",void 0),id([z],t.prototype,"postConstruct",null),t}(tr),ad=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ld=function(){return ld=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ld.apply(this,arguments)},ud=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},cd=function(e){function t(t){var n=e.call(this,ld(ld({},t),{popup:!0}))||this;return n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.lastPosition={x:0,y:0,width:0,height:0},n}return ad(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),o=this.config,r=o.movable,i=o.resizable,s=o.maximizable;this.addCssClass("ag-dialog"),e.prototype.postConstruct.call(this),this.addManagedListener(n,"focusin",(function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,o=t.modal,r=t.title,i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:o,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n,ariaLabel:r||i("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,n=t.x,o=t.y,r=t.width,i=t.height;this.setWidth(r),this.setHeight(i),this.positionableFeature.offsetElement(n,o)}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(){Jt(this.maximizeIcon,!this.isMaximized),Jt(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(),e.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 t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var o=this.maximizeButtonComp=this.createBean(new tr('<div class="ag-dialog-button"></span>')),r=o.getGui();r.appendChild(this.maximizeIcon=xo("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=xo("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","ag-hidden"),o.addManagedListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(o,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},ud([Z("popupService")],t.prototype,"popupService",void 0),t}(sd),pd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dd=function(e){function t(t){var n=e.call(this,t,"ag-color-picker","colorPicker")||this;return t&&t.color&&(n.value=t.color),n}return pd(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,t=this.getGui().getBoundingClientRect(),n=this.createBean(new cd({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250}));this.isPickerDisplayed=!0,n.addCssClass("ag-color-dialog"),Qn(this.eWrapper,!0);var o=this.createBean(new od({picker:this}));return o.addDestroyFunc((function(){n.isAlive()&&e.destroyBean(n)})),n.setParentComponent(this),n.setBodyComponent(o),o.setValue(this.getValue()),n.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,o.isAlive()&&e.destroyBean(o)),e.isAlive()&&(Qn(e.eWrapper,!1),e.getFocusableElement().focus()),e.isPickerDisplayed=!1})),n},t.prototype.setValue=function(t){return this.value===t?this:(this.eDisplayField.style.backgroundColor=t,e.prototype.setValue.call(this,t))},t.prototype.getValue=function(){return this.value},t}(Pr),hd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gd=function(e){function t(n){void 0===n&&(n={});var o=e.call(this,t.getTemplate(n))||this;o.suppressEnabledCheckbox=!0,o.suppressOpenCloseIcons=!1;var r=n.title,i=n.enabled,s=n.items,a=n.suppressEnabledCheckbox,l=n.suppressOpenCloseIcons;return o.title=r,o.cssIdentifier=n.cssIdentifier||"default",o.enabled=null==i||i,o.items=s||[],o.alignItems=n.alignItems||"center",null!=a&&(o.suppressEnabledCheckbox=a),null!=l&&(o.suppressOpenCloseIcons=l),o}return hd(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+t+'-group-container"></div>\n </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("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(To("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(To("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(t){switch(t.key){case dr.ENTER:case dr.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case dr.RIGHT:case dr.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===dr.RIGHT)}}))},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Qn(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;Jt(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),Jt(this.eGroupOpenedIcon,e&&this.expanded),Jt(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-"+this.alignItems),this.alignItems=e;var t="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(t),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Jt(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),Jt(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),this)},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.eContainer,n=e instanceof tr?e.getGui():e;n.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){this.items[t].classList.toggle("ag-hidden",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,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(n){t.setEnabled(n,!0),e(n)})),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",fd([nr("eTitleBar")],t.prototype,"eTitleBar",void 0),fd([nr("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),fd([nr("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),fd([nr("eToolbar")],t.prototype,"eToolbar",void 0),fd([nr("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),fd([nr("eTitle")],t.prototype,"eTitle",void 0),fd([nr("eContainer")],t.prototype,"eContainer",void 0),fd([z],t.prototype,"postConstruct",null),t}(tr),md=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yd=function(e){function t(t){var n=e.call(this)||this;n.skipTabGuardFocus=!1;var o=t.comp,r=t.eTopGuard,i=t.eBottomGuard,s=t.focusInnerElement,a=t.onFocusIn,l=t.onFocusOut,u=t.shouldStopEventPropagation,c=t.onTabKeyDown,p=t.handleKeyDown,d=t.eFocusableElement;return n.comp=o,n.eTopGuard=r,n.eBottomGuard=i,n.providedFocusInnerElement=s,n.eFocusableElement=d,n.providedFocusIn=a,n.providedFocusOut=l,n.providedShouldStopEventPropagation=u,n.providedOnTabKeyDown=c,n.providedHandleKeyDown=p,n}return md(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new mr(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))}))},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var n=this.tabGuardsAreActive();n&&this.deactivateTabGuards();var o=this.getNextFocusableElement(e.shiftKey);n&&setTimeout((function(){return t.activateTabGuards()}),0),o&&(o.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus()},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1);var t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,t.focus()},vd([Z("focusService")],t.prototype,"focusService",void 0),vd([z],t.prototype,"postConstruct",null),t}(Fe),Cd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wd=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},bd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(wd(arguments[t]));return e},_d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cd(t,e),t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var t=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:function(e){t.forEach((function(t){return null!=e?t.setAttribute("tabIndex",e):t.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new yd({comp:n,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var t=document.createElement("div");return t.classList.add("ag-tab-guard","ag-tab-guard-"+e),Vn(t,"presentation"),t},t.prototype.addTabGuards=function(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];dn(this.getFocusableElement()),this.addTabGuards.apply(this,bd(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,n){An(t)||(t=t.getGui());var o=this.eBottomGuard;o?o.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,n)},t}(tr),Ed=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sd=function(){return Sd=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Sd.apply(this,arguments)},Rd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Od=function(e){function t(t){void 0===t&&(t=1);var n=e.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return n.level=t,n.menuItems=[],n}return Ed(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.onTabKeyDown=function(e){var t=this.getParentComponent(),n=t&&t.getGui();n&&n.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case dr.UP:case dr.RIGHT:case dr.DOWN:case dr.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case dr.ESCAPE:var t=this.findTopMenu();t&&this.focusService.focusInto(t.getGui())}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var t=this;null!=e&&e.forEach((function(e){"separator"===e?t.addSeparator():"string"===typeof e?console.warn("AG Grid: unrecognised menu item "+e):t.addItem(e)}))},t.prototype.addItem=function(e){var t=this,n=this.createManagedBean(new Nd(Sd(Sd({},e),{isAnotherSubMenuOpen:function(){return t.menuItems.some((function(e){return e.isSubMenuOpen()}))}})));n.setParentComponent(this),Zn(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,Nd.EVENT_MENU_ITEM_SELECTED,(function(e){t.dispatchEvent(e)})),this.addManagedListener(n,Nd.EVENT_MENU_ITEM_ACTIVATED,(function(e){t.activeMenuItem&&t.activeMenuItem!==e.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=e.menuItem}))},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter((function(e){return!e.isDisabled()}))[0];e&&e.activate()},t.prototype.addSeparator=function(){this.appendChild(gn('\n <div class="ag-menu-separator" aria-hidden="true">\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n </div>'))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;for(;;){var n=e&&e.getParentComponent&&e.getParentComponent();if(!n||!(n instanceof t||n instanceof Nd))break;e=n}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case dr.UP:case dr.DOWN:var t=this.findNextItem(e===dr.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gridOptionsWrapper.isEnableRtl()?dr.RIGHT:dr.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof Nd&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var t=this.menuItems.filter((function(e){return!e.isDisabled()}));if(t.length){if(!this.activeMenuItem)return e?ue(t):t[0];var n;e&&t.reverse();for(var o=!1,r=0;r<t.length;r++){var i=t[r];if(o){n=i;break}i===this.activeMenuItem&&(o=!0)}return n||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},Rd([Z("focusService")],t.prototype,"focusService",void 0),Rd([z],t.prototype,"postConstruct",null),t}(_d),Pd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Td=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xd=function(e){function t(t){var n=e.call(this)||this;return n.wrappedComponent=t,n.setTemplateFromElement(t.getGui()),n}return Pd(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.handleKeyDown=function(e){e.key===dr.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)},Td([z],t.prototype,"postConstruct",null),t}(_d),Ad=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Nd=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n.isActive=!1,n.subMenuIsOpen=!1,n.setTemplate('<div class="'+n.getClassName()+'" tabindex="-1" role="treeitem"></div>'),n}return Ad(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),Yn(t,!0)):(this.addGuiEventListener("click",(function(t){return e.onItemSelected(t)})),this.addGuiEventListener("keydown",(function(t){t.key!==dr.ENTER&&t.key!==dr.SPACE||(t.preventDefault(),e.onItemSelected(t))})),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return e.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return e.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(t){return e.addCssClass(t)}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var n=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var o,r=gn('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var i=Wn(this.getGui()),s=isNaN(i)?1:i+1,a=this.createBean(new Od(s));a.setParentComponent(this),a.addMenuItems(this.params.subMenu),r.appendChild(a.getGui()),this.addManagedListener(a,t.EVENT_MENU_ITEM_SELECTED,(function(e){return n.dispatchEvent(e)})),a.addGuiEventListener("mouseenter",(function(){return n.cancelDeactivate()})),o=function(){return n.destroyBean(a)},e&&setTimeout((function(){return a.activateFirstItem()}),0)}else{var l=this.params.subMenu,u=this.createBean(new xd(l));u.setParentComponent(this);var c=u.getGui(),p="mouseenter",d=function(){return n.cancelDeactivate()};c.addEventListener(p,d),o=function(){return c.removeEventListener(p,d)},r.appendChild(c),l.afterGuiAttached&&setTimeout((function(){return l.afterGuiAttached()}),0)}var h=this.getGui(),f=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:h,ePopup:r}),g=this.gridOptionsWrapper.getLocaleTextFunc(),m=this.popupService.addPopup({modal:!0,eChild:r,positionCallback:f,anchorToElement:h,ariaLabel:g("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,Qn(h,!0),this.hideSubMenu=function(){m&&m.hideFunc(),n.subMenuIsOpen=!1,Qn(h,!1),o()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Qn(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout((function(){t.isAlive()&&t.isActive&&t.openSubMenu()}),300),this.onItemActivated())},t.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=gn('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(xo("check",this.gridOptionsWrapper)):this.params.icon&&(An(this.params.icon)?e.appendChild(this.params.icon):"string"===typeof this.params.icon?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(){if(this.params.name||!this.params.isCompact){var e=gn('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new Qo(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=gn('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=gn('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),t=this.getGui();if(this.params.subMenu){var n=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";Qn(t,!1),e.appendChild(xo(n,this.gridOptionsWrapper))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),!this.params.subMenu||this.params.action){var n={type:t.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e};this.dispatchEvent(n)}},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.params.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.getClassName=function(e){var t=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?t+"-"+e:t},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,Dd([Z("popupService")],t.prototype,"popupService",void 0),Dd([z],t.prototype,"init",null),t}(tr),Ld=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Id=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Md=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Fd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Md(arguments[t]));return e},kd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Ld(t,e),n=t,t.addKeyboardModeEvents=function(e,t){var o=n.instancesMonitored.get(e);o&&o.length>0?-1===o.indexOf(t)&&o.push(t):(n.instancesMonitored.set(e,[t]),e.addEventListener("keydown",n.toggleKeyboardMode),e.addEventListener("mousedown",n.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var o=n.instancesMonitored.get(e),r=[];o&&o.length&&(r=Fd(o).filter((function(e){return e!==t})),n.instancesMonitored.set(e,r)),0===r.length&&(e.removeEventListener("keydown",n.toggleKeyboardMode),e.removeEventListener("mousedown",n.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=n.keyboardModeActive,o="keydown"===e.type;if((!o||!(e.ctrlKey||e.metaKey||e.altKey))&&!(t&&o||!t&&!o)){n.keyboardModeActive=o;var r=e.target.ownerDocument;if(r){var i=n.instancesMonitored.get(r);i&&i.forEach((function(e){e.dispatchEvent({type:o?je.EVENT_KEYBOARD_FOCUS:je.EVENT_MOUSE_FOCUS})}))}}},t.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,je.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,je.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,je.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl;var o=e.gridOptionsWrapper.getDocument();n.addKeyboardModeEvents(o,e.gridCtrl),e.addDestroyFunc((function(){return e.unregisterGridCompController(e.gridCtrl)}))}))},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsWrapper.getDocument();n.removeKeyboardModeEvents(t,e)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return n.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,fl.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,ju.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(e,t){for(var n=e;n;){if(this.gridOptionsWrapper.getDomData(n,t))return!1;n=n.parentNode}return!0},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(e,t,n,r){void 0===r&&(r=!1);var i=this.columnModel.getGridColumn(t);i?(this.focusedCellPosition=i?{rowIndex:e,rowPinned:o(n),column:i}:null,this.onCellFocused(r)):this.focusedCellPosition=null},t.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},t.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumnGroupChild(),n=e.getRowIndex(),o=e.getPinned(),r=this.focusedHeaderPosition,i=r.column,s=r.headerRowIndex;return t===i&&n===s&&o==i.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e){var t=e.direction,n=e.fromTab,o=e.allowUserOverride,r=e.event,i=e.headerPosition;if(o){var s,a=this.gridOptionsWrapper,l=this.getFocusedHeader(),u=this.headerNavigationService.getHeaderRowCount();if(n){if(s=a.getTabToNextHeaderFunc())i=s({backwards:"Before"===t,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:u})}else if((s=a.getNavigateToNextHeaderFunc())&&r)i=s({key:r.key,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:u,event:r})}return!!i&&(-1===i.headerRowIndex?this.focusGridView(i.column):(this.headerNavigationService.scrollToColumn(i.column,t),this.ctrlsService.getHeaderRowContainerCtrl(i.column.getPinned()).focusHeader(i.headerRowIndex,i.column,r)))},t.prototype.focusFirstHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}))},t.prototype.focusLastHeader=function(e){var t=this.headerNavigationService.getHeaderRowCount()-1,n=ue(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},event:e})},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(e,t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===o(t))},t.prototype.findFocusableElements=function(e,t,n){void 0===n&&(n=!1);var o=oe.FOCUSABLE_SELECTOR,r=oe.FOCUSABLE_EXCLUDE;t&&(r+=", "+t),n&&(r+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll(o)),s=Array.prototype.slice.apply(e.querySelectorAll(r));if(!s.length)return i;var a;return a=s,i.filter((function(e){return-1===a.indexOf(e)}))},t.prototype.focusInto=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=this.findFocusableElements(e,null,n),r=t?ue(o):o[0];return!!r&&(r.focus(),!0)},t.prototype.findNextFocusableElement=function(e,t,n){void 0===e&&(e=this.eGridDiv);var o=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),r=this.gridOptionsWrapper.getDocument().activeElement,i=(t?o.findIndex((function(e){return e.contains(r)})):o.indexOf(r))+(n?-1:1);return i<0||i>=o.length?null:o[i]},t.prototype.isFocusUnderManagedComponent=function(e){var t=this.gridOptionsWrapper.getDocument(),n=e.querySelectorAll("."+mr.FOCUS_MANAGED_CLASS);if(!n.length)return!1;for(var o=0;o<n.length;o++)if(n[o].contains(t.activeElement))return!0;return!1},t.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var n=0;e&&null===Bt(e)&&++n<=t;)e=e.parentElement;return null===Bt(e)?null:e},t.prototype.onCellFocused=function(e){var t={type:je.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var n=t.rowIndex=this.focusedCellPosition.rowIndex,o=t.rowPinned=this.focusedCellPosition.rowPinned;t.column=this.focusedCellPosition.column;var r=this.rowRenderer.getRowByPosition({rowIndex:n,rowPinned:o});r&&(t.isFullWidthCell=r.isFullWidth())}this.eventService.dispatchEvent(t)},t.prototype.focusGridView=function(e,t){if(this.gridOptionsWrapper.isSuppressCellFocus())return t?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var n=t?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var r=n.rowIndex,i=n.rowPinned,s=this.getFocusedHeader();if(!e&&s&&(e=s.column),null==r||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:r,column:e,rowPinned:i}),this.setFocusedCell(r,e,o(i),!0),this.rangeService){var a={rowIndex:r,rowPinned:i,column:e};this.rangeService.setRangeToCell(a)}return!0},t.prototype.focusNextGridCoreContainer=function(e){return!!this.gridCtrl.focusNextInnerContainer(e)||(e||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},t.AG_KEYBOARD_FOCUS="ag-keyboard-focus",t.keyboardModeActive=!1,t.instancesMonitored=new Map,Id([Z("eGridDiv")],t.prototype,"eGridDiv",void 0),Id([Z("columnModel")],t.prototype,"columnModel",void 0),Id([Z("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Id([Z("columnApi")],t.prototype,"columnApi",void 0),Id([Z("gridApi")],t.prototype,"gridApi",void 0),Id([Z("rowRenderer")],t.prototype,"rowRenderer",void 0),Id([Z("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Id([Y("rangeService")],t.prototype,"rangeService",void 0),Id([Z("navigationService")],t.prototype,"navigationService",void 0),Id([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),Id([z],t.prototype,"init",null),t=n=Id([q("focusService")],t)}(Fe),Gd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal"}(_p||(_p={}));var Vd,jd=0,Wd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}return Gd(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl,e.addManagedListener(e.gridCtrl,je.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.add(kd.AG_KEYBOARD_FOCUS)}))})),e.addManagedListener(e.gridCtrl,je.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.remove(kd.AG_KEYBOARD_FOCUS)}))}))}))},t.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),o=this.keepXYWithinBounds(e.ePopup,t.top-n.top,_p.vertical),r=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=r+"px";var i,s=n.right-n.left-r;function a(){return t.right-n.left-2}function l(){return t.left-n.left-r}this.gridOptionsWrapper.isEnableRtl()?((i=l())<0&&(i=a()),i>s&&(i=0)):((i=a())>s&&(i=l()),i<0&&(i=0)),e.ePopup.style.left=i+"px",e.ePopup.style.top=o+"px"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=e.ePopup,n=e.nudgeX,o=e.nudgeY,r=this.calculatePointerAlign(e.mouseEvent),i=r.x,s=r.y;this.positionPopup({ePopup:t,x:i,y:s,nudgeX:n,nudgeY:o,keepWithinBounds:!0}),this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=e.alignSide||"left",o=this.getParentRect(),r=t.left-o.left;"right"===n&&(r-=e.ePopup.offsetWidth-t.width),this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:r,y:t.top-o.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-n.left,y:t.top-n.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.callPostProcessPopup=function(e,t,n,o,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:t,type:e,eventSource:n,mouseEvent:o})},t.prototype.positionPopup=function(e){var t=e.ePopup,n=e.keepWithinBounds,o=e.nudgeX,r=e.nudgeY,i=e.x,s=e.y;o&&(i+=o),r&&(s+=r),n&&(i=this.keepXYWithinBounds(t,i,_p.horizontal),s=this.keepXYWithinBounds(t,s,_p.vertical)),t.style.left=i+"px",t.style.top=s+"px"},t.prototype.getActivePopups=function(){return this.popupList.map((function(e){return e.element}))},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var e=this.gridOptionsWrapper.getDocument(),t=this.getPopupParent();t===e.body&&(t=e.documentElement);var n=getComputedStyle(t),o=t.getBoundingClientRect();return{top:o.top+parseFloat(n.borderTopWidth)||0,left:o.left+parseFloat(n.borderLeftWidth)||0,right:o.right+parseFloat(n.borderRightWidth)||0,bottom:o.bottom+parseFloat(n.borderBottomWidth)||0}},t.prototype.keepXYWithinBounds=function(e,t,n){var o=n===_p.vertical,r=o?"clientHeight":"clientWidth",i=o?"top":"left",s=o?"offsetHeight":"offsetWidth",a=o?"scrollTop":"scrollLeft",l=this.gridOptionsWrapper.getDocument(),u=l.documentElement,c=this.getPopupParent(),p=c.getBoundingClientRect(),d=l.documentElement.getBoundingClientRect(),h=c===l.body,f=e[s],g=h?(o?an:ln)(u)+u[a]:c[r];h&&(g-=Math.abs(d[i]-p[i]));var m=g-f;return Math.min(Math.max(t,0),Math.abs(m))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this,n=this.getPopupParent(),o=n.getBoundingClientRect(),r=e.element.getBoundingClientRect(),i=o.top-r.top,s=o.left-r.left,a=i,l=s,u=e.ePopup.style.top,c=parseInt(u.substring(0,u.length-1),10),p=e.ePopup.style.left,d=parseInt(p.substring(0,p.length-1),10);return new zo((function(o){t.getFrameworkOverrides().setInterval((function(){var o=n.getBoundingClientRect(),r=e.element.getBoundingClientRect();if(0==r.top&&0==r.left&&0==r.height&&0==r.width)e.hidePopup();else{var u=o.top-r.top;if(u!=a){var p=t.keepXYWithinBounds(e.ePopup,c+i-u,_p.vertical);e.ePopup.style.top=p+"px"}a=u;var h=o.left-r.left;if(h!=l){var f=t.keepXYWithinBounds(e.ePopup,d+s-h,_p.horizontal);e.ePopup.style.left=f+"px"}l=h}}),200).then((function(e){o((function(){null!=e&&window.clearInterval(e)}))}))}))},t.prototype.addPopup=function(e){var t=this,n=e.modal,o=e.eChild,r=e.closeOnEsc,i=e.closedCallback,s=e.click,a=e.alwaysOnTop,l=e.afterGuiAttached,u=e.positionCallback,c=e.anchorToElement,p=e.ariaLabel,d=this.gridOptionsWrapper.getDocument(),h=new zo((function(e){return e((function(){}))}));if(!d)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:h};var f=this.popupList.findIndex((function(e){return e.element===o}));if(-1!==f){var g=this.popupList[f];return{hideFunc:g.hideFunc,stopAnchoringPromise:g.stopAnchoringPromise}}var m=this.getPopupParent();null==o.style.top&&(o.style.top="0px"),null==o.style.left&&(o.style.left="0px");var v=document.createElement("div"),y=this.environment.getTheme().theme;y&&v.classList.add(y),v.classList.add("ag-popup"),o.classList.add(this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr","ag-popup-child"),o.hasAttribute("role")||Vn(o,"dialog"),Un(o,p),this.focusService.isKeyboardMode()&&o.classList.add(kd.AG_KEYBOARD_FOCUS),v.appendChild(o),m.appendChild(v),a?this.setAlwaysOnTop(v,!0):this.bringPopupToFront(v);var C=!1,w=function(e){v.contains(d.activeElement)&&(e.key===dr.ESCAPE&&E({keyboardEvent:e}))},b=function(e){return E({mouseEvent:e})},_=function(e){return E({touchEvent:e})},E=function(e){void 0===e&&(e={});var n=e.mouseEvent,r=e.touchEvent,a=e.keyboardEvent;t.isEventFromCurrentPopup({mouseEvent:n,touchEvent:r},o)||t.isEventSameChainAsOriginalEvent({originalMouseEvent:s,mouseEvent:n,touchEvent:r})||C||(C=!0,m.removeChild(v),d.removeEventListener("keydown",w),d.removeEventListener("mousedown",b),d.removeEventListener("touchstart",_),d.removeEventListener("contextmenu",b),t.eventService.removeEventListener(je.EVENT_DRAG_STARTED,b),i&&i(n||r||a),t.popupList=t.popupList.filter((function(e){return e.element!==o})),h&&h.then((function(e){return e&&e()})))};return l&&l({hidePopup:E}),window.setTimeout((function(){r&&d.addEventListener("keydown",w),n&&(d.addEventListener("mousedown",b),t.eventService.addEventListener(je.EVENT_DRAG_STARTED,b),d.addEventListener("touchstart",_),d.addEventListener("contextmenu",b))}),0),u&&u(),c&&(h=this.keepPopupPositionedRelativeTo({element:c,ePopup:o,hidePopup:E})),this.popupList.push({element:o,wrapper:v,hideFunc:E,stopAnchoringPromise:h,instanceId:jd++,isAnchored:!!c}),{hideFunc:E,stopAnchoringPromise:h}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(e){return e.isAnchored}))},t.prototype.isEventFromCurrentPopup=function(e,t){var n=e.mouseEvent,o=e.touchEvent,r=n||o;if(!r)return!1;var i=this.popupList.findIndex((function(e){return e.element===t}));if(-1===i)return!1;for(var s=i;s<this.popupList.length;s++){if(Ae(this.popupList[s].element,r))return!0}return this.isElementWithinCustomPopup(r.target)},t.prototype.isElementWithinCustomPopup=function(e){for(var t=this.gridOptionsWrapper.getDocument();e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,n=e.mouseEvent,o=e.touchEvent,r=null;if(n?r=n:o&&(r=o.touches[0]),r&&t){var i=n?n.screenX:0,s=n?n.screenY:0,a=Math.abs(t.screenX-i)<5,l=Math.abs(t.screenY-s)<5;if(a&&l)return!0}return!1},t.prototype.getWrapper=function(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),o=n.length,r=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),i=r.length,s=this.getWrapper(e);if(s&&!(o<=1)&&t.contains(e)){var a=n.indexOf(s),l=s.querySelectorAll("div"),u=[];if(l.forEach((function(e){0!==e.scrollTop&&u.push([e,e.scrollTop])})),i)s.classList.contains("ag-always-on-top")?a!==o-1&&ue(r).insertAdjacentElement("afterend",s):a!==o-i-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==o-1&&ue(n).insertAdjacentElement("afterend",s);for(;u.length;){var c=u.pop();c[0].scrollTop=c[1]}var p={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(p)}},Hd([Z("environment")],t.prototype,"environment",void 0),Hd([Z("focusService")],t.prototype,"focusService",void 0),Hd([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),Hd([z],t.prototype,"postConstruct",null),t=Hd([q("popupService")],t)}(Fe),Bd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ud=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zd=function(e){function t(n,o,r){void 0===n&&(n="default"),void 0===o&&(o="listbox");var i=e.call(this,t.getTemplate(n))||this;return i.cssIdentifier=n,i.ariaRole=o,i.listName=r,i.renderedRows=new Map,i.rowHeight=20,i.isDestroyed=!1,i}return Bd(t,e),t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)},focusInnerElement:function(t){return e.focusInnerElement(t)},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}}),this.setAriaProperties()},t.prototype.setAriaProperties=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),t=this.eContainer;Vn(t,this.ariaRole),Un(t,e)},t.prototype.addResizeObserver=function(){var e=this.drawVirtualRows.bind(this),t=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(t)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var t=e.target;return t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=Bn(t)-1),!1},t.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},t.prototype.handleKeyDown=function(e){switch(e.key){case dr.UP:case dr.DOWN:this.navigate(e.key===dr.UP)&&e.preventDefault()}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.focusService.focusInto(this.getGui(),!e.shiftKey)},t.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout((function(){var n=t.renderedRows.get(e);n&&n.eDiv.focus()}),10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},t.getTemplate=function(e){return'\n <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container" ref="eContainer"></div>\n </div>'},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!==typeof e||e<0||e>=t)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,o=n+this.rowHeight,r=this.getGui(),i=r.scrollTop,s=r.offsetHeight,a=i+s<o;if(i>n)r.scrollTop=n;else if(a){var l=o-s;r.scrollTop=l}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){var e=this;if(null!=this.model&&!this.isDestroyed){var t=this.model.getRowCount();this.eContainer.style.height=t*this.rowHeight+"px",V((function(){return e.eContainer.clientHeight>=t*e.rowHeight}),(function(){e.isDestroyed||(e.clearVirtualRows(),e.drawVirtualRows())}))}},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach((function(t,n){return e.removeRow(n)}))},t.prototype.drawVirtualRows=function(){var e=this.getGui(),t=e.scrollTop,n=t+e.offsetHeight,o=Math.floor(t/this.rowHeight),r=Math.floor(n/this.rowHeight);this.ensureRowsRendered(o,r)},t.prototype.ensureRowsRendered=function(e,t){var n=this;this.renderedRows.forEach((function(o,r){(r<e||r>t)&&r!==n.lastFocusedRowIndex&&n.removeRow(r)}));for(var o=e;o<=t;o++)this.renderedRows.has(o)||o<this.model.getRowCount()&&this.insertRow(o)},t.prototype.insertRow=function(e){var t=this,n=this.model.getRow(e),o=document.createElement("div");if(o.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Vn(o,"tree"===this.ariaRole?"treeitem":"option"),Xn(o,this.model.getRowCount()),Jn(o,e+1),o.setAttribute("tabindex","-1"),"function"===typeof this.model.isRowSelected){var r=this.model.isRowSelected(e);lo(o,!!r),uo(o,r)}o.style.height=this.rowHeight+"px",o.style.top=this.rowHeight*e+"px";var i=this.componentCreator(n,o);i.addGuiEventListener("focusin",(function(){return t.lastFocusedRowIndex=e})),o.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",o):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",o):this.eContainer.appendChild(o),this.renderedRows.set(e,{rowComponent:i,eDiv:o})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isDestroyed||(this.clearVirtualRows(),this.isDestroyed=!0,e.prototype.destroy.call(this))},Ud([Z("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Ud([Z("focusService")],t.prototype,"focusService",void 0),Ud([nr("eContainer")],t.prototype,"eContainer",void 0),Ud([z],t.prototype,"postConstruct",null),t}(_d),Kd=["mouseover","mouseout","mouseenter","mouseleave"],qd=["touchstart","touchend","touchmove","touchcancel"],Zd=function(){function e(){this.isOutsideAngular=function(e){return me(Kd,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new zo((function(n){n(window.setInterval(e,t))}))},e.prototype.addEventListener=function(e,t,n,o){var r=me(qd,t);e.addEventListener(t,n,{capture:!!o,passive:r})},e.prototype.dispatchEvent=function(e,t,n){t()},e.prototype.frameworkComponent=function(e){return null},e.prototype.isFrameworkComponent=function(e){return!1},e}(),Yd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},$d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yd(t,e),t.prototype.getNextCellToFocus=function(e,t,n){return void 0===n&&(n=!1),n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var n,o,r=e===dr.UP,i=e===dr.DOWN,s=e===dr.LEFT;if(r||i)o=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),n=t.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsWrapper.isEnableRtl();o=t.rowIndex,n=s!==l?a[0]:ue(a)}return{rowIndex:o,rowPinned:null,column:n}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){for(var n=t,o=!1;!o;){switch(e){case dr.UP:n=this.getCellAbove(n);break;case dr.DOWN:n=this.getCellBelow(n);break;case dr.RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case dr.LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("AG Grid: unknown key for navigation "+e)}o=!n||this.isCellGoodToFocusOn(n)}return n},t.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case oe.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case oe.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!!t&&!n.isSuppressNavigable(t)},t.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case oe.PINNED_BOTTOM:return null;case oe.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(oe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:oe.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(oe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:oe.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},t.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===oe.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===oe.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},t.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return(n?0===t:t===this.paginationProxy.getPageFirstRow())?n===oe.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(oe.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},t.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:oe.PINNED_TOP}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnModel.getDisplayedColAfter(e.column);if(!r){r=t[0];var s=this.getRowBelow(e);if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnModel.getDisplayedColBefore(e.column);if(!r){r=ue(t);var s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},Qd([Z("columnModel")],t.prototype,"columnModel",void 0),Qd([Z("rowModel")],t.prototype,"rowModel",void 0),Qd([Z("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Qd([Z("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Qd([q("cellNavigationService")],t)}(Fe),Xd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jd=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},eh=function(e,t){return function(n,o){t(n,o,e)}},th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return Xd(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,je.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,je.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}}))}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left)}))},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},t.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case je.EVENT_COLUMN_MOVED:case je.EVENT_COLUMN_VISIBLE:case je.EVENT_COLUMN_PINNED:case je.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case je.EVENT_COLUMN_GROUP_OPENED:var o=e;t.processGroupOpenedEvent(o);break;case je.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.")}}))},t.prototype.processGroupOpenedEvent=function(e){var t=e.columnGroup,n=null;if(t){var o=t.getGroupId();n=this.columnModel.getProvidedColumnGroup(o)}t&&!n||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnModel.setColumnGroupOpened(n,t.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t=this,n=e.column,o=null;if(n&&(o=this.columnModel.getPrimaryColumn(n.getColId())),!n||o){var r=this.getMasterColumns(e);switch(e.type){case je.EVENT_COLUMN_MOVED:var i=e,s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId}}));this.columnModel.applyColumnState({state:s,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+i.toIndex);break;case je.EVENT_COLUMN_VISIBLE:var a=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,hide:e.hide}}));this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible);break;case je.EVENT_COLUMN_PINNED:var l=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,pinned:e.pinned}}));this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned);break;case je.EVENT_COLUMN_RESIZED:var u=e;r.forEach((function(n){t.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+n.getActualWidth());var o=[{key:n.getColId(),newWidth:n.getActualWidth()}];t.columnModel.setColumnWidths(o,!1,u.finished,"alignedGridChanged")}))}var c=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),p=this.gridOptionsWrapper.getAlignedGrids();p&&p.forEach((function(e){e.api&&e.api.setAlwaysShowVerticalScroll(c)}))}},Jd([Z("columnModel")],t.prototype,"columnModel",void 0),Jd([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),Jd([eh(0,$("loggerFactory"))],t.prototype,"setBeans",null),Jd([z],t.prototype,"init",null),t=Jd([q("alignedGridsService")],t)}(Fe),nh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),oh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rh=function(e,t){return function(n,o){t(n,o,e)}},ih=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nh(t,e),t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,je.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return f(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},t.prototype.getSelectedRows=function(){var e=[];return f(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},t.prototype.removeGroupsFromSelection=function(){var e=this;f(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new Ep(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var t=this,n={},o=0;return f(this.selectedNodes,(function(r,i){if(i&&i.id!==e.id){var s=t.selectedNodes[i.id];o+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(n[i.parent.id]=i.parent)}})),f(n,(function(e,t){t.calculateSelectedFromChildren()})),o},t.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){if(r(t)&&e.id!==t.id&&t){var n=t.id;this.selectedNodes[n]==e&&(this.selectedNodes[t.id]=t)}},t.prototype.syncInNewRowNode=function(e){r(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var o=0,r=n.length;o<r;o++){var i=n[o];if(i.isSelected())t.push(i);else{var s=i;s.group&&s.children&&e(s.children)}}}(e),t}console.warn("AG Grid: `selectAll` not available doing `rowModel=virtual`")}else console.warn("AG Grid: `getBestCostNodeSelection` is only available when using normal row model")},t.prototype.setRowModel=function(e){this.rowModel=e},t.prototype.isEmpty=function(){var e=0;return f(this.selectedNodes,(function(t,n){n&&e++})),0===e},t.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},n=this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!n)return void console.error("AG Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else f(this.selectedNodes,(function(e,n){n&&t(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:je.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==oe.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,n=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(n):t.forEachNode(n),this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:je.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},t.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},t.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},t.prototype.selectIndex=function(e,t){var n=this.rowModel.getRow(e);this.selectNode(n,t)},oh([Z("rowModel")],t.prototype,"rowModel",void 0),oh([Z("columnApi")],t.prototype,"columnApi",void 0),oh([Z("gridApi")],t.prototype,"gridApi",void 0),oh([rh(0,$("loggerFactory"))],t.prototype,"setBeans",null),oh([z],t.prototype,"init",null),t=oh([q("selectionService")],t)}(Fe),sh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ah=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){"undefined"===typeof e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnModel.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnModel.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnModel.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnModel.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},e.prototype.moveColumn=function(e,t){"number"===typeof e?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(e,t,"api")):this.columnModel.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n,o){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,n,o)},e.prototype.setColumnWidths=function(e,t,n){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,n)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnModel.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){this.columnModel.autoSizeColumns({columns:e,skipHeader:t})},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Wo.removeAllReferences.bind(window,this,"Column API"),100)},e.prototype.columnGroupOpened=function(e,t){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},e.prototype.setColumnState=function(e){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:e,applyOrder:!0},"api")},e.prototype.getOriginalColumnGroup=function(e){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(e)},sh([Z("columnModel")],e.prototype,"columnModel",void 0),sh([K],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=sh([q("columnApi")],e)}(),lh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),uh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return lh(t,e),t.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(je.EVENT_CELL_VALUE_CHANGED,(function(t){return e.callColumnCellValueChangedHandler(t)}),this.gridOptionsWrapper.useAsyncEvents())},t.prototype.getValue=function(e,t,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),this.initialised||this.init(),t){var r,i=e.getColDef(),s=i.field,a=e.getId(),l=t.data,u=t.groupData&&void 0!==t.groupData[a],c=!o&&t.aggData&&void 0!==t.aggData[a];if(n&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&c?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=E(l,s,e.isFieldContainsDots()):u?r=t.groupData[a]:c?r=t.aggData[a]:i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):s&&l&&(r=E(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"===typeof r&&0===r.indexOf("=")){var p=r.substring(1);r=this.executeValueGetter(p,l,e,t)}if(null==r){var d=this.getOpenedGroup(t,e);if(null!=d)return d}return r}},t.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsWrapper.isShowOpenedGroup()&&t.getColDef().showRowGroup)for(var n=t.getColDef().showRowGroup,o=e.parent;null!=o;){if(o.rowGroupColumn&&(!0===n||n===o.rowGroupColumn.getId()))return o.key;o=o.parent}},t.prototype.setValue=function(e,t,n,o){var s=this.columnModel.getPrimaryColumn(t);if(!e||!s)return!1;i(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.newValueHandler,c=a.valueSetter;if(i(l)&&i(u)&&i(c))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var p,d={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:n,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=n,void 0===(p=u&&r(u)?u(d):r(c)?this.expressionService.evaluate(c,d):this.setValueUsingField(e.data,l,n,s.isFieldContainsDots()))&&(p=!0),!p)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(s,e);var h={type:je.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:d.column,api:d.api,columnApi:d.columnApi,colDef:d.colDef,context:d.context,data:e.data,node:e,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:o};return this.eventService.dispatchEvent(h),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;"function"===typeof t&&t({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,t,n,o){if(!t)return!1;if(o)for(var r=t.split("."),i=e;r.length>0&&i;){var s=r.shift();0===r.length?i[s]=n:i=i[s]}else e[t]=n;return!0},t.prototype.executeFilterValueGetter=function(e,t,n,o){var r={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)};return this.expressionService.evaluate(e,r)},t.prototype.executeValueGetter=function(e,t,n,o){var r=n.getId(),i=this.valueCache.getValue(o,r);if(void 0!==i)return i;var s={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(o,r,a),a},t.prototype.getValueCallback=function(e,t){var n=this.columnModel.getPrimaryColumn(t);return n?this.getValue(n,e):null},t.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),o=e.getColDef().keyCreator,r=n;o&&(r=o({value:n,colDef:e.getColDef(),column:e,node:t,data:t.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}));return"string"===typeof r||null==r||"[object Object]"===(r=String(r))&&A((function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),r},uh([Z("expressionService")],t.prototype,"expressionService",void 0),uh([Z("columnModel")],t.prototype,"columnModel",void 0),uh([Z("valueCache")],t.prototype,"valueCache",void 0),uh([z],t.prototype,"init",null),t=uh([q("valueService")],t)}(Fe),ph=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hh=function(e,t){return function(n,o){t(n,o,e)}},fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return ph(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("function"===typeof e)return e(t);if("string"===typeof e){var n=e;return this.evaluateExpression(n,t)}console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},dh([hh(0,$("loggerFactory"))],t.prototype,"setBeans",null),t=dh([q("expressionService")],t)}(Fe),gh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return gh(t,e),t.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var o=this.waitingCallbacks[e],r=this;if(!o){o=[],this.waitingCallbacks[e]=o;var i=new XMLHttpRequest;i.onload=function(){r.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&o.push(t),null},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],o=0;o<n.length;o++){(0,n[o])()}}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+t)},t=mh([q("templateService")],t)}(Fe),yh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ch=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wh=function(e,t){return function(n,o){t(n,o,e)}},bh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yh(t,e),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new _h(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Ch([wh(0,$("gridOptionsWrapper"))],t.prototype,"setBeans",null),t=Ch([q("loggerFactory")],t)}(Fe),_h=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+e)},e}(),Eh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rh=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Eh(n,e),n.prototype.setComp=function(e,t,n){var o=this;this.view=e,this.eGridHostDiv=t,this.eGui=n,this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new wa(this.view)),this.addRtlSupport(),this.addManagedListener(this,je.EVENT_KEYBOARD_FOCUS,(function(){o.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,je.EVENT_MOUSE_FOCUS,(function(){o.view.addOrRemoveKeyboardFocusClass(!1)}));var r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()})),this.ctrlsService.registerGridCtrl(this)},n.prototype.isDetailGrid=function(){var e,t;return(null===(t=null===(e=this.focusService.findTabbableParent(this.getGui()))||void 0===e?void 0:e.getAttribute("row-id"))||void 0===t?void 0:t.startsWith("detail"))||!1},n.prototype.showDropZones=function(){return re.isRegistered(t.ModuleNames.RowGroupingModule)},n.prototype.showSideBar=function(){return re.isRegistered(t.ModuleNames.SideBarModule)},n.prototype.showStatusBar=function(){return re.isRegistered(t.ModuleNames.StatusBarModule)},n.prototype.showWatermark=function(){return re.isRegistered(t.ModuleNames.EnterpriseCoreModule)},n.prototype.onGridSizeChanged=function(){var e={type:je.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},n.prototype.destroyGridUi=function(){this.view.destroyGridUi()},n.prototype.getGui=function(){return this.eGui},n.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},n.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},n.prototype.focusNextInnerContainer=function(e){var t=this.gridOptionsWrapper.getDocument(),n=this.view.getFocusableContainers(),o=n.findIndex((function(e){return e.contains(t.activeElement)}))+(e?-1:1);return!(o<=0||o>=n.length)&&this.focusService.focusInto(n[o])},n.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers();if(e){if(t.length>1)return this.focusService.focusInto(ue(t),!0);var n=ue(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(n,!0))return!0}return this.focusService.focusFirstHeader()},n.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Sh([Z("columnApi")],n.prototype,"columnApi",void 0),Sh([Z("gridApi")],n.prototype,"gridApi",void 0),Sh([Z("focusService")],n.prototype,"focusService",void 0),Sh([Z("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Sh([Z("columnModel")],n.prototype,"columnModel",void 0),Sh([Z("ctrlsService")],n.prototype,"ctrlsService",void 0),Sh([Z("mouseEventService")],n.prototype,"mouseEventService",void 0),n}(Fe),Oh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ph=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Th=function(e){function n(t){var n=e.call(this,void 0)||this;return n.eGridDiv=t,n}return Oh(n,e),n.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var t={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(t){return e.addCssClass(t)},addOrRemoveKeyboardFocusClass:function(t){return e.addOrRemoveCssClass(kd.AG_KEYBOARD_FOCUS,t)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(t){e.getGui().style.userSelect=null!=t?t:"",e.getGui().style.webkitUserSelect=null!=t?t:""},setCursor:function(t){e.getGui().style.cursor=null!=t?t:""}};this.ctrl=this.createManagedBean(new Rh);var n=this.createTemplate();this.setTemplate(n),this.ctrl.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(t){return e.ctrl.focusInnerElement(t)}})},n.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc((function(){e.eGridDiv.removeChild(t),e.logger.log("Grid removed from DOM")}))},n.prototype.updateLayoutClasses=function(e,n){var o=this.eRootWrapperBody.classList;o.toggle(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),o.toggle(t.LayoutCssClasses.NORMAL,n.normal),o.toggle(t.LayoutCssClasses.PRINT,n.print),this.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),this.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,n.normal),this.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,n.print)},n.prototype.createTemplate=function(){return'<div class="ag-root-wrapper">\n '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-body ref="gridBody"></ag-grid-body>\n '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n </div>\n "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n <ag-pagination></ag-pagination>\n "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n </div>"},n.prototype.getFocusableElement=function(){return this.eRootWrapperBody},n.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((function(e){return fn(e)}))},Ph([Z("loggerFactory")],n.prototype,"loggerFactory",void 0),Ph([nr("gridBody")],n.prototype,"gridBodyComp",void 0),Ph([nr("sideBar")],n.prototype,"sideBarComp",void 0),Ph([nr("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),Ph([z],n.prototype,"postConstruct",null),n}(_d),xh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ah=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Dh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return xh(t,e),n=t,t.prototype.progressSort=function(e,t,n){var o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t,n)},t.prototype.setSortForColumn=function(e,t,n,o){t!==oe.SORT_ASC&&t!==oe.SORT_DESC&&(t=null),e.setSort(t,o),(n||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,o),this.updateSortIndex(e),this.dispatchSortChangedEvents(o)},t.prototype.updateSortIndex=function(e){var t=this.getColumnsWithSortingOrdered(),n=0;t.forEach((function(t){t!==e&&(t.setSortIndex(n),n++)})),e.getSort()&&e.setSortIndex(n),this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return null==e.getSort()})).forEach((function(e){return e.setSortIndex()}))},t.prototype.onSortChanged=function(e){this.dispatchSortChangedEvents(e)},t.prototype.isSortActive=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e&&e.length>0},t.prototype.dispatchSortChangedEvents=function(e){var t={type:je.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},t.prototype.clearSortBarThisColumn=function(e,t){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){n!==e&&n.setSort(void 0,t)}))},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():n.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var o,r=t.indexOf(e.getSort()),i=r<0,s=r==t.length-1;return o=i||s?t[0]:t[r+1],n.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn("AG Grid: invalid sort type "+o),null):o},t.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),t=e.filter((function(e){return!!e.getSort()})),n={};return e.forEach((function(e,t){return n[e.getId()]=t})),t.sort((function(e,t){var o=e.getSortIndex(),r=t.getSortIndex();return null!=o&&null!=r?o-r:null==o&&null==r?n[e.getId()]>n[t.getId()]?1:-1:null==r?-1:1})),t},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),colId:e.getId()}}))},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),column:e}}))},t.DEFAULT_SORTING_ORDER=[oe.SORT_ASC,oe.SORT_DESC,null],Ah([Z("columnModel")],t.prototype,"columnModel",void 0),Ah([Z("columnApi")],t.prototype,"columnApi",void 0),Ah([Z("gridApi")],t.prototype,"gridApi",void 0),t=n=Ah([q("sortController")],t)}(Fe),Nh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ih=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nh(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:je.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:je.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},Lh([Z("columnApi")],t.prototype,"columnApi",void 0),Lh([Z("gridApi")],t.prototype,"gridApi",void 0),t=Lh([q("columnHoverService")],t)}(Fe),Mh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return Mh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){return e.gridBodyCtrl=t.gridBodyCtrl}))},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridBodyCtrl.setColumnMovingCss(!1)}))},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},Fh([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),Fh([z],t.prototype,"postConstruct",null),t=Fh([q("columnAnimationService")],t)}(Fe),Gh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Gh(t,e),n=t,t.prototype.createAutoGroupColumns=function(e,t){var n=this,o=[],r=this.gridOptionsWrapper.isTreeData(),i=this.gridOptionsWrapper.isGroupMultiAutoColumn();return r&&i&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),i=!1),i?t.forEach((function(t,r){o.push(n.createOneAutoGroupColumn(e,t,r))})):o.push(this.createOneAutoGroupColumn(e)),o},t.prototype.createOneAutoGroupColumn=function(e,t,o){var r,s=this.generateDefaultColDef(t);(r=t?oe.GROUP_AUTO_COLUMN_ID+"-"+t.getId():n.GROUP_AUTO_COLUMN_BUNDLE_ID,_(s,this.gridOptionsWrapper.getAutoGroupColumnDef()),(s=this.columnFactory.mergeColDefs(s)).colId=r,this.gridOptionsWrapper.isTreeData())||i(s.field)&&i(s.valueGetter)&&i(s.filterValueGetter)&&(s.filter=!1);o&&o>0&&(s.headerCheckboxSelection=!1);var a=e.find((function(e){return e.getId()==r}));if(a)return a.setColDef(s,null),this.columnFactory.applyColumnState(a,s),a;var l=new ae(s,null,r,!0);return this.context.createBean(l),l},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),e){var o=e.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),(o.cellRenderer||o.cellRendererFramework)&&Object.assign(n,{cellRendererParams:{innerRenderer:o.cellRenderer,innerRendererFramework:o.cellRendererFramework,innerRendererParams:o.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},t.GROUP_AUTO_COLUMN_BUNDLE_ID=oe.GROUP_AUTO_COLUMN_ID,Hh([Z("columnModel")],t.prototype,"columnModel",void 0),Hh([Z("columnFactory")],t.prototype,"columnFactory",void 0),t=n=Hh([q("autoGroupColService")],t)}(Fe),jh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,je.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,je.EVENT_SCROLL_VISIBILITY_CHANGED,e.onScrollVisibilityChanged.bind(e)),e.checkPageSize()}))},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},Wh([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),Wh([z],t.prototype,"postConstruct",null),t=Wh([q("paginationAutoPageSizeService")],t)}(Fe),Uh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return Uh(t,e),t.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},zh([z],t.prototype,"init",null),t=zh([q("valueCache")],t)}(Fe),qh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zh=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qh(t,e),t.prototype.init=function(){this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,je.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==oe.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),o=new Ep(n,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o)}this.rowRenderer.refreshCells()}},Zh([Z("rowModel")],t.prototype,"rowModel",void 0),Zh([Z("rowRenderer")],t.prototype,"rowRenderer",void 0),Zh([z],t.prototype,"init",null),t=Zh([q("changeDetectionService")],t)}(Fe),Qh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$h=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qh(t,e),t.prototype.adaptFunction=function(e,t){var n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?n.functionAdapter(t):null},t.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){return this.eGui},t.prototype.init=function(t){var n=e(t),o=typeof n;this.eGui="string"!==o&&"number"!==o&&"boolean"!==o?null!=n?n:gn("<span></span>"):gn("<span>"+n+"</span>")},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},$h([Z("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=$h([q("agComponentUtils")],t)}(Fe),Jh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ef=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jh(t,e),t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},ef([Z("agComponentUtils")],t.prototype,"agComponentUtils",void 0),ef([z],t.prototype,"postConstruct",null),t=ef([q("componentMetadataProvider")],t)}(Fe),nf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),of=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rf={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},sf={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},af={},lf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nf(t,e),t.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),o=rf[n][t],r=0;af[e]||(af[e]={});var i=af[e][t];if(null!=i)return i;if(sf[t]){var s=sf[t],a=document.createElement("div");a.classList.add(e),a.style.position="absolute";var l=s.reduce((function(e,t){var n=document.createElement("div");return n.style.position="static",n.classList.add(t),e.appendChild(n),n}),a);if(document.body){document.body.appendChild(a);var u=-1!==t.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(l)[u],10),document.body.removeChild(a)}}return af[e][t]=r||o,af[e][t]},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},t.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/,t=this.eGridDiv,n=null;t&&!(n=e.exec(t.className));)t=t.parentElement||void 0;if(!n)return{};var o=n[0];if(void 0===n[2]){var r=o.replace("ag-","ag-theme-");A((function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+o+" with "+r+".")}),"using-old-theme")}return{theme:o,el:t,themeFamily:o.replace(/-dark$/,"")}},of([Z("eGridDiv")],t.prototype,"eGridDiv",void 0),t=of([q("environment")],t)}(Fe),uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pf=function(e,t){return function(n,o){t(n,o,e)}},df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return uf(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,je.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Ut(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+t+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(t)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:je.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var t="number"===typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:je.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},cf([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),cf([pf(0,$("loggerFactory"))],t.prototype,"agWire",null),cf([z],t.prototype,"postConstruct",null),t=cf([q("rowContainerHeightService")],t)}(Fe),hf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ff=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hf(t,e),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},t.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},t.prototype.recurseDown=function(e,t){var n=this;e&&e.forEach((function(e){if(e.group){var o;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren)o=r((t(e)||[]).find((function(e){return!0===e.selectable})));else o=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(o)}}))},ff([z],t.prototype,"init",null),t=ff([q("selectableService")],t)}(Fe),mf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yf=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return mf(t,e),t.prototype.postConstruct=function(){var e=this,t=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",xo(t?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",xo(t?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",xo(t?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",xo(t?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,je.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(t){var n=t.el,o=t.fn;e.addManagedListener(n,"click",o),e.addManagedListener(n,"keydown",(function(e){e.key!==dr.ENTER&&e.key!==dr.SPACE||(e.preventDefault(),o())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(t)return t({value:e});var n=this.gridOptionsWrapper.getLocaleTextFunc();return go(e,n("thousandSeparator",","),n("decimalSeparator","."))},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),o=e("of","of"),r=e("firstPage","First Page"),i=e("previousPage","Previous Page"),s=e("nextPage","Next Page"),a=e("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-to">'+n+'</span>\n <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-of">'+o+'</span>\n <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+r+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+i+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+l+'-start-page">'+t+'</span>\n <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+l+'-of-page">'+o+'</span>\n <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n </span>\n </div>'},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(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var o=this.isZeroPagesToDisplay(),r=t&&e===n-1;this.nextButtonDisabled=r||o,this.lastButtonDisabled=!t||o||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,t){Yn(e,t),e.classList.toggle("ag-disabled",t),t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),o=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?e=t=0:(t=(e=o*n+1)+o-1,r&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=e?this.paginationProxy.getMasterRowCount():null;if(1===n){var o=this.paginationProxy.getRow(0);if(o&&o.group&&!(o.groupData||o.aggData))return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var r=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=r,this.lbRecordCount.innerHTML=r}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},vf([Z("paginationProxy")],t.prototype,"paginationProxy",void 0),vf([Z("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),vf([nr("btFirst")],t.prototype,"btFirst",void 0),vf([nr("btPrevious")],t.prototype,"btPrevious",void 0),vf([nr("btNext")],t.prototype,"btNext",void 0),vf([nr("btLast")],t.prototype,"btLast",void 0),vf([nr("lbRecordCount")],t.prototype,"lbRecordCount",void 0),vf([nr("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),vf([nr("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),vf([nr("lbCurrent")],t.prototype,"lbCurrent",void 0),vf([nr("lbTotal")],t.prototype,"lbTotal",void 0),vf([z],t.prototype,"postConstruct",null),t}(tr),Cf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(Vd||(Vd={}));var bf=function(e){function n(){var t=e.call(this,n.TEMPLATE)||this;return t.inProgress=!1,t.destroyRequested=!1,t.manuallyDisplayed=!1,t}return Cf(n,e),n.prototype.updateLayoutClasses=function(e,n){var o=this.eOverlayWrapper.classList;o.toggle(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),o.toggle(t.LayoutCssClasses.NORMAL,n.normal),o.toggle(t.LayoutCssClasses.PRINT,n.print)},n.prototype.postConstruct=function(){this.createManagedBean(new wa(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,je.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},n.prototype.setWrapperTypeClass=function(e){var t=this.eOverlayWrapper.classList;t.toggle("ag-overlay-loading-wrapper",e===Vd.Loading),t.toggle("ag-overlay-no-rows-wrapper",e===Vd.NoRows)},n.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var e=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,Vd.Loading)}},n.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var e=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,Vd.NoRows)}},n.prototype.showOverlay=function(e,t){var n=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then((function(e){n.inProgress=!1,n.eOverlayWrapper.appendChild(e.getGui()),n.activeOverlay=e,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},n.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),dn(this.eOverlayWrapper))},n.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},n.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();e&&!t?this.showNoRowsOverlay():this.hideOverlay()},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},n.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',wf([Z("userComponentFactory")],n.prototype,"userComponentFactory",void 0),wf([Z("paginationProxy")],n.prototype,"paginationProxy",void 0),wf([Z("gridApi")],n.prototype,"gridApi",void 0),wf([Z("columnModel")],n.prototype,"columnModel",void 0),wf([nr("eOverlayWrapper")],n.prototype,"eOverlayWrapper",void 0),wf([z],n.prototype,"postConstruct",null),n}(tr),_f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ef=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _f(t,e),t.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e=oe.PINNED_TOP:this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e=oe.PINNED_BOTTOM),void 0===e?null:{rowIndex:t,rowPinned:e}},t.prototype.getLastRow=function(){var e,t=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),o=this.pinnedRowModel.getPinnedTopRowCount();return n?(t=oe.PINNED_BOTTOM,e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):o&&(t=oe.PINNED_TOP,e=o-1),void 0===e?null:{rowIndex:e,rowPinned:t}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},t.prototype.before=function(e,t){switch(e.rowPinned){case oe.PINNED_TOP:if(t.rowPinned!==oe.PINNED_TOP)return!0;break;case oe.PINNED_BOTTOM:if(t.rowPinned!==oe.PINNED_BOTTOM)return!1;break;default:if(r(t.rowPinned))return t.rowPinned!==oe.PINNED_TOP}return e.rowIndex<t.rowIndex},Ef([Z("rowModel")],t.prototype,"rowModel",void 0),Ef([Z("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ef([Z("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Ef([q("rowPositionUtils")],t)}(Fe),Rf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Of=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rf(t,e),t.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,o=e.column;return this.createIdFromValues(t,o,n)},t.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},t.prototype.equals=function(e,t){var n=e.column===t.column,o=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return n&&o&&r},t=Of([q("cellPositionUtils")],t)}(Fe),Tf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xf=function(e){this.cellValueChanges=e},Af=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.initialRange=n,r.finalRange=o,r}return Tf(t,e),t}(xf),Df=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),Nf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},If=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.activeCellEdit=null,t.activeRowEdit=null,t.isPasting=!1,t.isFilling=!1,t.onCellValueChanged=function(e){var n={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},o=null!==t.activeCellEdit&&t.cellPositionUtils.equals(t.activeCellEdit,n),r=null!==t.activeRowEdit&&t.rowPositionUtils.sameRow(t.activeRowEdit,n);if(o||r||t.isPasting||t.isFilling){var i=e.rowPinned,s=e.rowIndex,a=e.column,l=e.oldValue,u=e.value,c={rowPinned:i,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};t.cellValueChanges.push(c)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return Nf(n,e),n.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new Df(e),this.redoStack=new Df(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,je.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,je.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,je.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,je.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,je.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,je.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,je.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,je.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,je.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,je.EVENT_ROW_DRAG_END,this.clearStacks))}},n.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},n.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},n.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof Af?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},n.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof Af?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},n.prototype.processAction=function(e,t){var n=this;e.cellValueChanges.forEach((function(e){var o=e.rowIndex,r=e.rowPinned,i=e.columnId,s={rowIndex:o,rowPinned:r},a=n.getRowNode(s);a.displayed&&a.setDataValue(i,t(e))}))},n.prototype.processRangeAndCellFocus=function(e,t){var n;if(t){var o=t.startRow,r=t.endRow;n={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:t.startColumn.getColId()},this.setLastFocusedCell(n);var i={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:t.startColumn,columns:t.columns};this.gridApi.addCellRange(i)}else{var s=e[0],a={rowIndex:s.rowIndex,rowPinned:s.rowPinned},l=this.getRowNode(a);n={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId},this.setLastFocusedCell(n)}},n.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,o=e.columnId,r=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(o),re.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusService.setFocusedCell(n,o,r,!0)},n.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,je.EVENT_ROW_EDITING_STARTED,(function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,je.EVENT_ROW_EDITING_STOPPED,(function(){var t=new xf(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null}))},n.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,je.EVENT_CELL_EDITING_STARTED,(function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,je.EVENT_CELL_EDITING_STOPPED,(function(){if(e.activeCellEdit=null,!e.activeRowEdit&&!e.isPasting&&!e.isFilling){var t=new xf(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))},n.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,je.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.addManagedListener(this.eventService,je.EVENT_PASTE_END,(function(){var t=new xf(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},n.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,je.EVENT_FILL_START,(function(){e.isFilling=!0})),this.addManagedListener(this.eventService,je.EVENT_FILL_END,(function(t){var n=new Af(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1}))},n.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},n.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Lf([Z("focusService")],n.prototype,"focusService",void 0),Lf([Z("gridApi")],n.prototype,"gridApi",void 0),Lf([Z("rowModel")],n.prototype,"rowModel",void 0),Lf([Z("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Lf([Z("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),Lf([Z("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),Lf([z],n.prototype,"init",null),n=Lf([q("undoRedoService")],n)}(Fe),Mf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ff=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},kf=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Mf(n,e),n.prototype.findHeader=function(e,t){var n,o,r;if(e.column instanceof we?(o="getDisplayedGroup"+t,n=this.columnModel[o](e.column)):(r="getDisplayedCol"+t,n=this.columnModel[r](e.column)),n)return{column:n,headerRowIndex:e.headerRowIndex}},n.prototype.findColAtEdgeForHeaderRow=function(e,n){var o=this.columnModel.getAllDisplayedColumns(),r=o["start"===n?0:o.length-1];if(r){var i=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()).getRowType(e);return i==t.HeaderRowType.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(r,e)}:{headerRowIndex:null==i?-1:e,column:r}}},Ff([Z("columnModel")],n.prototype,"columnModel",void 0),Ff([Z("ctrlsService")],n.prototype,"ctrlsService",void 0),n=Ff([q("headerPositionUtils")],n)}(Fe),Gf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Hf=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,n){var o=this,r=[],i={};return e.forEach((function(e){for(var s=!0,a=o.createDefFromColumn(e,t,n),l=e.getOriginalParent();l;){var u=null;if(l.isPadding())l=l.getOriginalParent();else{var c=i[l.getGroupId()];if(c){c.children.push(a),s=!1;break}(u=o.createDefFromGroup(l))&&(u.children=[a],i[u.groupId]=u,a=u,l=l.getOriginalParent())}}s&&r.push(a)})),r},e.prototype.createDefFromGroup=function(e){var t=m(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,n){var o=m(e.getColDef());return o.colId=e.getColId(),o.width=e.getActualWidth(),o.rowGroup=e.isRowGroupActive(),o.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,o.pivot=e.isPivotActive(),o.pivotIndex=e.isPivotActive()?n.indexOf(e):null,o.aggFunc=e.isValueActive()?e.getAggFunc():null,o.hide=!e.isVisible()||void 0,o.pinned=e.isPinned()?e.getPinned():null,o.sort=e.getSort()?e.getSort():null,o.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,o},e=Gf([q("columnDefFactory")],e)}(),Vf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},jf=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var t=[];return r(e.extraCssClass)&&t.push(e.extraCssClass),t.push("ag-row"),t.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&t.push("ag-opacity-zero"),t.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&t.push("ag-row-pinned"),e.rowNode.isSelected()&&t.push("ag-row-selected"),e.rowNode.footer&&t.push("ag-row-footer"),t.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&t.push("ag-row-loading"),e.fullWidthRow&&t.push("ag-full-width-row"),e.expandable&&(t.push("ag-row-group"),t.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&t.push("ag-row-dragging"),ve(t,this.processClassesFromGridOptions(e.rowNode)),ve(t,this.preProcessRowClassRules(e.rowNode)),t.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&t.push("ag-row-first"),e.lastRowOnPage&&t.push("ag-row-last"),e.fullWidthRow&&(e.pinned===oe.PINNED_LEFT&&t.push("ag-cell-last-left-pinned"),e.pinned===oe.PINNED_RIGHT&&t.push("ag-cell-first-right-pinned")),t},e.prototype.processClassesFromGridOptions=function(e){var t=[],n=function(e){"string"===typeof e?t.push(e):Array.isArray(e)&&e.forEach((function(e){return t.push(e)}))},o=this.gridOptionsWrapper.getRowClass();if(o){if("function"===typeof o)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];n(o)}var r=this.gridOptionsWrapper.getRowClassFunc();r&&n(r({data:e.data,node:e,rowIndex:e.rowIndex}));return t},e.prototype.preProcessRowClassRules=function(e){var t=[];return this.processRowClassRules(e,(function(e){t.push(e)}),(function(e){})),t},e.prototype.processRowClassRules=function(e,t,n){var o={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),o,t,n)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},Vf([Z("stylingService")],e.prototype,"stylingService",void 0),Vf([Z("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Vf([q("rowCssClassCalculator")],e)}(),Wf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bf=function(){function e(){}return e.prototype.doFullSort=function(e,t){var n=e.map((function(e,t){return{currentPos:t,rowNode:e}}));return n.sort(this.compareRowNodes.bind(this,t)),n.map((function(e){return e.rowNode}))},e.prototype.compareRowNodes=function(e,t,n){for(var o=t.rowNode,r=n.rowNode,i=0,s=e.length;i<s;i++){var a=e[i],l=a.sort===oe.SORT_DESC,u=this.getValue(o,a.column),c=this.getValue(r,a.column),p=void 0,d=this.getComparator(a,o);if(p=d?d(u,c,o,r,l):Wo.defaultComparator(u,c,this.gridOptionsWrapper.isAccentedSort()),!isNaN(p)&&0!==p)return a.sort===oe.SORT_ASC?p:-1*p}return t.currentPos-n.currentPos},e.prototype.getComparator=function(e,t){var n=e.column,o=n.getColDef().comparator;if(null!=o)return o;if(t.rowGroupColumn)return t.rowGroupColumn.getColDef().comparator;if(n.getColDef().showRowGroup){var r=!t.group&&n.getColDef().field;if(r){var i=this.columnModel.getPrimaryColumn(r);if(i)return i.getColDef().comparator}}},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e,!1,!1)},Wf([Z("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Wf([Z("valueService")],e.prototype,"valueService",void 0),Wf([Z("columnModel")],e.prototype,"columnModel",void 0),e=Wf([q("rowNodeSorter")],e)}(),Uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}var n;return Uf(t,e),n=t,t.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollCtrl&&null!=this.gridHeaderCtrl,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach((function(t){return t(e)})),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},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,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollCtrl=function(e){this.fakeHScrollCtrl=e,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(e){this.gridHeaderCtrl=e,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(e){this.centerRowContainerCtrl=e,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(e){this.leftRowContainerCtrl=e,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(e){this.rightRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(e){this.topCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(e){this.topRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(e){this.bottomRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerHeaderContainer=function(e,t){switch(t){case oe.PINNED_LEFT:this.leftHeaderRowContainerCtrl=e;break;case oe.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=e}this.checkReady()},t.prototype.registerGridBodyCtrl=function(e){this.gridBodyCtrl=e,this.checkReady()},t.prototype.registerGridCtrl=function(e){this.gridCtrl=e,this.checkReady()},t.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},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.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(e){switch(e){case oe.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case oe.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME="ctrlsService",t=n=zf([q(n.NAME)],t)}(Fe),qf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zf=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return qf(t,e),t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var t=this.registry[e];if(null!=t)return new t},t=Zf([q("ctrlsFactory")],t)}(Fe),Qf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$f=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xf=function(e){function t(){return e.call(this)||this}return Qf(t,e),t.prototype.setComp=function(e,t,n,o){this.view=e,this.eViewport=n,this.eContainer=o,this.eGui=t,this.addManagedListener(this.eventService,je.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged();var r=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,r),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,r),this.setFakeHScrollSpacerWidths(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()),this.ctrlsService.registerFakeHScrollCtrl(this)},t.prototype.addActiveListenerToggles=function(){var e=this;["mouseenter","mousedown","touchstart"].forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","mouseup","touchend"].forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},t.prototype.postConstruct=function(){this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=qt()},t.prototype.onScrollVisibilityChanged=function(){this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,je.EVENT_BODY_SCROLL,(function(t){"horizontal"===t.direction&&e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)})),this.addManagedListener(this.eventService,je.EVENT_BODY_SCROLL_END,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)}))},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&e,o=this.gridOptionsWrapper.getScrollbarWidth();n&&(t+=o),this.view.setRightSpacerFixedWidth(t),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",t<=o);var r=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(r+=o),this.view.setLeftSpacerFixedWidth(r),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",r<=o)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,n=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,r=n?0:0===o&&t?15:o;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",t),this.view.setHeight(r),this.view.setViewportHeight(r),this.view.setContainerHeight(r)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},$f([Z("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),$f([Z("columnModel")],t.prototype,"columnModel",void 0),$f([Z("ctrlsService")],t.prototype,"ctrlsService",void 0),$f([z],t.prototype,"postConstruct",null),t}(Fe),Jf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),eg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},tg=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Jf(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeight:function(t){return On(e.getGui(),t)},setContainerHeight:function(t){return On(e.eContainer,t)},setViewportHeight:function(t){return On(e.eViewport,t)},setRightSpacerFixedWidth:function(t){return Rn(e.eRightSpacer,t)},setLeftSpacerFixedWidth:function(t){return Rn(e.eLeftSpacer,t)},includeLeftSpacerScrollerCss:function(t,n){return e.eLeftSpacer.classList.toggle(t,n)},includeRightSpacerScrollerCss:function(t,n){return e.eRightSpacer.classList.toggle(t,n)}};this.createManagedBean(new Xf).setComp(t,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new Fl((function(t){return e.eContainer.style.width=t+"px"})))},t.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n </div>',eg([nr("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),eg([nr("eRightSpacer")],t.prototype,"eRightSpacer",void 0),eg([nr("eViewport")],t.prototype,"eViewport",void 0),eg([nr("eContainer")],t.prototype,"eContainer",void 0),eg([z],t.prototype,"postConstruct",null),t}(tr),ng=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),og=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ng(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:je.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:je.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},og([Z("columnModel")],t.prototype,"columnModel",void 0),og([z],t.prototype,"postConstruct",null),t=og([q("pinnedWidthService")],t)}(Fe),ig=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ag=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return ig(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()==oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;if(null!=this.clientSideRowModel){this.events.push(e);null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){t.clientSideRowModel&&t.clientSideRowModel.onRowGroupOpened(),t.events.forEach((function(e){return t.eventService.dispatchEvent(e)})),t.events=[]}))),this.dispatchExpandedDebounced()}else this.eventService.dispatchEvent(e)},sg([Z("animationFrameService")],t.prototype,"animationFrameService",void 0),sg([Z("rowModel")],t.prototype,"rowModel",void 0),sg([z],t.prototype,"postConstruct",null),t=sg([q("rowNodeEventThrottle")],t)}(Fe),lg=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},ug=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(lg(arguments[t]));return e},cg=function(){function e(e,t,n){t?(this.gridOptions=t,(new pg).create(e,t,(function(t){var n=new Th(e);t.createBean(n)}),void 0,n)):console.error("AG Grid: no gridOptions provided to the grid")}return e.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},e}(),pg=function(){function e(){}return e.prototype.create=function(e,n,o,r,i){var s=this,a=!!n.debug,l=this.getRegisteredModules(i),u=this.createBeansList(n.rowModelType,l),c=this.createProvidedBeans(e,n,i);if(u){var p={providedBeanInstances:c,beanClasses:u,debug:a},d=new _h("AG Grid",(function(){return n.debug})),h=new _h("Context",(function(){return p.debug})),f=new B(p,h),g=f.getBean("beans");this.registerModuleUserComponents(g,l),this.registerStackComponents(g,l),this.registerControllers(g,l),o(f),g.ctrlsService.whenReady((function(){s.setColumnsAndData(g),s.dispatchGridReadyEvent(g,n);var e=re.isRegistered(t.ModuleNames.EnterpriseCoreModule);d.log("initialised successfully, enterprise = "+e)})),r&&r(f)}},e.prototype.registerControllers=function(e,t){t.forEach((function(t){t.controllers&&t.controllers.forEach((function(t){return e.ctrlsFactory.register(t)}))}))},e.prototype.registerStackComponents=function(e,t){var n=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(n)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=re.getRegisteredModules(),o=[],r={};function i(e,t){var n;r[(n=t).moduleName]||(r[n.moduleName]=!0,o.push(n),re.register(n,e)),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),n&&n.forEach(i.bind(null,!re.isPackageBased())),o},e.prototype.registerModuleUserComponents=function(e,t){this.extractModuleEntity(t,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(t){e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)}))},e.prototype.createProvidedBeans=function(e,t,n){var o=n?n.frameworkOverrides:null;i(o)&&(o=new Zd);var r={gridOptions:t,eGridDiv:e,globalEventListener:n?n.globalEventListener:null,frameworkOverrides:o};return n&&n.providedBeanInstances&&Object.assign(r,n.providedBeanInstances),r},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:ic},{componentName:"AgRadioButton",componentClass:kp},{componentName:"AgToggleButton",componentClass:Hp},{componentName:"AgInputTextField",componentClass:jp},{componentName:"AgInputTextArea",componentClass:Bp},{componentName:"AgInputNumberField",componentClass:zp},{componentName:"AgInputRange",componentClass:qp},{componentName:"AgSelect",componentClass:Lr},{componentName:"AgSlider",componentClass:Qp},{componentName:"AgAngleSelect",componentClass:Jp},{componentName:"AgColorPicker",componentClass:dd},{componentName:"AgGridBody",componentClass:Yl},{componentName:"AgHeaderRoot",componentClass:jc},{componentName:"AgPagination",componentClass:yf},{componentName:"AgOverlayWrapper",componentClass:bf},{componentName:"AgGroupComponent",componentClass:gd},{componentName:"AgPanel",componentClass:sd},{componentName:"AgDialog",componentClass:cd},{componentName:"AgRowContainer",componentClass:vu},{componentName:"AgFakeHorizontalScroll",componentClass:tg}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(n)},e.prototype.createBeansList=function(e,t){var n=this.getRowModelClass(e,t);if(n){var o=[n,Ya,Sf,Pf,kf,Bh,zu,Os,Xh,tf,ep,qs,df,Uc,bp,Qs,pt,ne,ma,Wd,ih,ea,it,Mc,Np,fp,fh,Ve,vh,th,iu,Kh,ch,bh,lt,up,qc,ts,ah,kd,tu,lf,$d,yp,Mp,Xl,Dh,Ih,kh,gf,Vh,Yh,op,If,bt,Hf,jf,xp,Bf,Kf,rg,ag,Yf],r=this.extractModuleEntity(t,(function(e){return e.beans?e.beans:[]}));o.push.apply(o,ug(r));var i=[];return o.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],ug(e.map(t)))},e.prototype.setColumnsAndData=function(e){var t=e.gridOptionsWrapper.getColumnDefs();e.columnModel.setColumnDefs(t||[],"gridInitializing"),e.rowModel.start()},e.prototype.dispatchGridReadyEvent=function(e,t){var n={type:je.EVENT_GRID_READY,api:t.api,columnApi:t.columnApi};e.eventService.dispatchEvent(n)},e.prototype.getRowModelClass=function(e,n){e||(e=oe.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};n.forEach((function(e){f(e.rowModels,(function(e,t){o[e]=t}))}));var i=o[e];if(r(i))return i;re.isPackageBased()?[oe.ROW_MODEL_TYPE_VIEWPORT,oe.ROW_MODEL_TYPE_SERVER_SIDE].includes(e)?console.error('AG Grid: Row Model "'+e+"\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/"):console.error("AG Grid: could not find row model for rowModelType "+e):e===oe.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+t.ModuleNames.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+t.ModuleNames.ClientSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):console.error("AG Grid: could not find row model for rowModelType "+e)},e}();var dg,hg=function(){function e(){}return e.prototype.wrap=function(e,t,n,o){var r=this;void 0===n&&(n=[]);var i=this.createWrapper(e,o);return t.forEach((function(e){r.createMethod(i,e,!0)})),n.forEach((function(e){r.createMethod(i,e,!1)})),i},e.prototype.unwrap=function(e){return e},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},e}();(dg=t.BarColumnLabelPlacement||(t.BarColumnLabelPlacement={})).InsideBase="insideBase",dg.InsideEnd="insideEnd",dg.Center="center",dg.OutsideEnd="outsideEnd";var fg="undefined"===typeof n.g?{}:n.g;fg.HTMLElement="undefined"===typeof HTMLElement?{}:HTMLElement,fg.HTMLButtonElement="undefined"===typeof HTMLButtonElement?{}:HTMLButtonElement,fg.HTMLSelectElement="undefined"===typeof HTMLSelectElement?{}:HTMLSelectElement,fg.HTMLInputElement="undefined"===typeof HTMLInputElement?{}:HTMLInputElement,fg.Node="undefined"===typeof Node?{}:Node,fg.MouseEvent="undefined"===typeof MouseEvent?{}:MouseEvent;var gg,mg=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},vg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mg(arguments[t]));return e},yg=function(){function e(t,n,o,r,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.eventService=o,this.columnModel=r,this.gridApi=i,this.columnApi=s,this.beans=l,this.selectionService=a,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return Wo.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){var n=this;if("string"!==typeof t){var o=this.rootNode,r=this.rootNode.sibling;o.childrenAfterFilter=null,o.childrenAfterGroup=null,o.childrenAfterAggFilter=null,o.childrenAfterSort=null,o.childrenMapped=null,o.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?o.allLeafChildren=t.map((function(t){return n.createNode(t,n.rootNode,e.TOP_LEVEL)})):(o.allLeafChildren=[],o.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=o.childrenAfterFilter,r.childrenAfterGroup=o.childrenAfterGroup,r.childrenAfterAggFilter=o.childrenAfterAggFilter,r.childrenAfterSort=o.childrenAfterSort,r.childrenMapped=o.childrenMapped,r.allLeafChildren=o.allLeafChildren)}else console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.updateRowData=function(e,t){var n={remove:[],update:[],add:[]},o=[];return this.executeRemove(e,n,o),this.executeUpdate(e,n,o),this.executeAdd(e,n),this.updateSelection(o),t&&Wo.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.updateSelection=function(e){var t=e.length>0;if(t&&e.forEach((function(e){e.setSelected(!1,!1,!0)})),this.selectionService.updateGroupsFromChildrenSelections(),t){var n={type:je.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.executeAdd=function(t,n){var o=this,r=t.add,i=t.addIndex;if(!Wo.missingOrEmpty(r)){var s,a,l=r.map((function(t){return o.createNode(t,o.rootNode,e.TOP_LEVEL)}));if("number"===typeof i&&i>=0){var u=this.rootNode.allLeafChildren,c=0===i?0:u.reduce((function(e,t,n){var o,r=t.rowIndex,s=null===(o=u[e])||void 0===o?void 0:o.rowIndex;return null!=r&&null!=s&&r<i&&r>s?n:e}),0)+1;s=u.slice(0,c),a=u.slice(c,u.length)}else s=this.rootNode.allLeafChildren,a=[];this.rootNode.allLeafChildren=vg(s,l,a),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),n.add=l}},e.prototype.executeRemove=function(e,t,n){var o=this,r=e.remove;if(!Wo.missingOrEmpty(r)){var i={};r.forEach((function(e){var r=o.lookupRowNode(e);r&&(r.isSelected()&&n.push(r),r.clearRowTopAndRowIndex(),i[r.id]=!0,delete o.allNodesMap[r.id],t.remove.push(r))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!i[e.id]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},e.prototype.executeUpdate=function(t,n,o){var r=this,i=t.update;Wo.missingOrEmpty(i)||i.forEach((function(t){var i=r.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&o.push(i),r.setMasterForRow(i,t,e.TOP_LEVEL,!1),n.update.push(i))}))},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowIdFunc();if(n){var o=n({data:e,level:0});if(!(t=this.allNodesMap[o]))return console.error("AG Grid: could not find row id="+o+", data item was not found for this id"),null}else if(!(t=this.rootNode.allLeafChildren.find((function(t){return t.data===e}))))return console.error("AG Grid: could not find data item as object was not found",e),console.error("Consider using getRowId to help the Grid find matching row data"),null;return t||null},e.prototype.createNode=function(e,t,n){var o=new qi(this.beans);return o.group=!1,this.setMasterForRow(o,e,n,!0),t&&!this.suppressParentsInRowNodes&&(o.parent=t),o.level=n,o.setDataAndId(e,this.nextId.toString()),this.allNodesMap[o.id]&&console.warn("AG Grid: duplicate node id '"+o.id+"' detected from getRowId callback, this could cause issues in your grid."),this.allNodesMap[o.id]=o,this.nextId++,o},e.prototype.setMasterForRow=function(e,t,n,o){if(this.doingTreeData)e.setMaster(!1),o&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),o){var r=this.columnModel.getRowGroupColumns(),i=n+(r?r.length:0);e.expanded=!!e.master&&this.isExpanded(i)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),Cg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(gg||(gg={}));var bg=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Cg(n,e),n.prototype.init=function(){var e=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING}),n=!this.gridOptionsWrapper.isSuppressAnimationFrame(),o=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:n});this.addManagedListener(this.eventService,je.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,je.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,je.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,je.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var r=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:n});this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_REMOVE_SINGLE_CHILDREN,r),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,r),this.rootNode=new qi(this.beans),this.nodeManager=new yg(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.gridApi,this.columnApi,this.selectionService,this.beans)},n.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},n.prototype.ensureRowHeightsValid=function(e,t,n,o){var r,i=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),u=Math.min(a,o),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(p);p.setRowHeight(d.height),r=!0,i=!0}}r&&this.setRowTopAndRowIndex()}while(r);return i},n.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),t=0,n=new Set,o=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,r=0;r<this.rowsToDisplay.length;r++){var i=this.rowsToDisplay[r];if(null!=i.id&&n.add(i.id),null==i.rowHeight){var s=this.gridOptionsWrapper.getRowHeightForNode(i,o,e);i.setRowHeight(s.height,s.estimated)}i.setRowTop(t),i.setRowIndex(r),t+=i.rowHeight}return n},n.prototype.clearRowTopAndRowIndex=function(e,t){var n=e.isActive(),o=function(e){e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()};!function e(t){if(o(t),o(t.detailNode),o(t.sibling),t.hasChildren()&&t.childrenAfterGroup){var r=-1==t.level;n&&!r&&!t.expanded||t.childrenAfterGroup.forEach(e)}}(this.rootNode)},n.prototype.ensureRowsAtPixel=function(e,n,o){var r=this;void 0===o&&(o=0);var i=this.getRowIndexAtPixel(n),s=this.getRow(i),a=!this.gridOptionsWrapper.isSuppressAnimationFrame();return s!==e[0]&&(e.forEach((function(e){Wo.removeFromArray(r.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){Wo.insertIntoArray(r.rootNode.allLeafChildren,e,Math.max(i+o,0)+t)})),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:a}),!0)},n.prototype.highlightRowAtPixel=function(e,t){var n=null!=t?this.getRowIndexAtPixel(t):null,o=null!=n?this.getRow(n):null;if(o&&e&&o!==e&&null!=t){var r=this.getHighlightPosition(t,o);this.lastHighlightedRow&&this.lastHighlightedRow!==o&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),o.setHighlighted(r),this.lastHighlightedRow=o}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},n.prototype.getHighlightPosition=function(e,n){if(!n){var o=this.getRowIndexAtPixel(e);if(!(n=this.getRow(o||0)))return t.RowHighlightPosition.Below}return e-n.rowTop<n.rowHeight/2?t.RowHighlightPosition.Above:t.RowHighlightPosition.Below},n.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},n.prototype.isLastRowIndexKnown=function(){return!0},n.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},n.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var e=this.rootNode.childrenAfterAggFilter;return e?e.length:0},n.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},n.prototype.getRowBounds=function(e){if(Wo.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},n.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},n.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var n=this.gridOptionsWrapper.isAnimateRows(),o=0===e.columns.length||e.columns.some((function(e){return e.isPrimary()}))?t.ClientSideRowModelSteps.FILTER:t.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:o,keepRenderedRows:!0,animate:n})}},n.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},n.prototype.getType=function(){return oe.ROW_MODEL_TYPE_CLIENT_SIDE},n.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:t.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},n.prototype.createChangePath=function(e){var t=Wo.missingOrEmpty(e),n=new Ep(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},n.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction())return!1;if(null==e.rowNodeTransactions)return!1;var t=e.rowNodeTransactions.filter((function(e){return null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0}));return null==t||0==t.length},n.prototype.refreshModel=function(e){if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var n=this.createChangePath(e.rowNodeTransactions);switch(e.step){case t.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,n,!!e.afterColumnsChanged);case t.ClientSideRowModelSteps.FILTER:this.doFilter(n);case t.ClientSideRowModelSteps.PIVOT:this.doPivot(n);case t.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(n);case t.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(n);case t.ClientSideRowModelSteps.SORT:this.doSort(e.rowNodeTransactions,n);case t.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var o=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,o);var r={type:je.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(r)}},n.prototype.isEmpty=function(){var e=Wo.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Wo.missing(this.rootNode)||e||!this.columnModel.isReady()},n.prototype.isRowsToRender=function(){return Wo.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},n.prototype.getNodesInRangeForSelection=function(e,t){var n,o=!t,r=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=o&&!r;if(o||a!==t&&a!==e||(o=!0),!(a.group&&s)){var u=o&&!r,c=a.isParentOfNode(n);(u||c)&&i.push(a)}l&&(a!==t&&a!==e||(r=!0,n=a===t?t:e))})),i},n.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},n.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},n.prototype.getRootNode=function(){return this.rootNode},n.prototype.getRow=function(e){return this.rowsToDisplay[e]},n.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},n.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Wo.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var o=Math.floor((t+n)/2),r=this.rowsToDisplay[o];if(this.isRowInPixel(r,e))return o;r.rowTop<e?t=o+1:r.rowTop>e&&(n=o-1)}},n.prototype.isRowInPixel=function(e,t){var n=e.rowTop,o=e.rowTop+e.rowHeight;return n<=t&&o>t},n.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,n){return e(t,n)}))},n.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,gg.Normal,0)},n.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter,e,gg.AfterFilter,0)},n.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,gg.AfterFilterAndSort,0)},n.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,gg.PivotNodes,0)},n.prototype.recursivelyWalkNodesAndCallback=function(e,t,n,o){if(!e)return o;for(var r=0;r<e.length;r++){var i=e[r];if(t(i,o++),i.hasChildren()){var s=null;switch(n){case gg.Normal:s=i.childrenAfterGroup;break;case gg.AfterFilter:s=i.childrenAfterAggFilter;break;case gg.AfterFilterAndSort:s=i.childrenAfterSort;break;case gg.PivotNodes:s=i.leafGroup?null:i.childrenAfterSort}s&&(o=this.recursivelyWalkNodesAndCallback(s,t,n,o))}}return o},n.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},n.prototype.expandOrCollapseAll=function(e){var n=this.gridOptionsWrapper.isTreeData(),o=this.columnModel.isPivotActive();this.rootNode&&function t(r){r&&r.forEach((function(r){var i=function(){r.expanded=e,t(r.childrenAfterGroup)};n?Wo.exists(r.childrenAfterGroup)&&i():o?!r.leafGroup&&i():r.group&&i()}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:t.ClientSideRowModelSteps.MAP});var r=e?"expandAll":"collapseAll",i={api:this.gridApi,columnApi:this.columnApi,type:je.EVENT_EXPAND_COLLAPSE_ALL,source:r};this.eventService.dispatchEvent(i)},n.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},n.prototype.doRowGrouping=function(e,t,n,o,r){this.groupStage?(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:n,changedPath:o}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:o,afterColumnsChanged:r}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(o)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},n.prototype.restoreGroupState=function(e){e&&Wo.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){"boolean"===typeof e[n]&&(t.expanded=e[n])}))},n.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return Wo.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){return e[n]=t.expanded})),e},n.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},n.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf(qi.ID_PREFIX_ROW_GROUP)){var t=void 0;return this.forEachNode((function(n){n.id===e&&(t=n)})),t}return this.nodeManager.getRowNode(e)},n.prototype.setRowData=function(e){var n=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:je.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,groupState:n,newData:!0})},n.prototype.batchUpdateRowData=function(e,t){var n=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var o=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){n.executeBatchUpdateRowData()}),o)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},n.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},n.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[],o=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(r){var i=e.nodeManager.updateRowData(r.rowDataTransaction,void 0);n.push(i),r.callback&&t.push(r.callback.bind(null,i)),"number"===typeof r.rowDataTransaction.addIndex&&(o=!0)})),this.commonUpdateRowData(n,void 0,o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0),n.length>0){var r={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:je.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n};this.eventService.dispatchEvent(r)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},n.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t),o="number"===typeof e.addIndex;return this.commonUpdateRowData([n],t,o),n},n.prototype.createRowNodeOrder=function(){if(!this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var t=0;t<this.rootNode.allLeafChildren.length;t++){e[this.rootNode.allLeafChildren[t].id]=t}return e}},n.prototype.commonUpdateRowData=function(e,n,o){var r=!this.gridOptionsWrapper.isSuppressAnimationFrame();o&&(n=this.createRowNodeOrder()),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:n,keepRenderedRows:!0,keepEditingRows:!0,animate:r});var i={type:je.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},n.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},n.prototype.onRowHeightChanged=function(){this.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0})},n.prototype.resetRowHeights=function(){var e=!1;this.forEachNode((function(t){t.setRowHeight(t.rowHeight,!0);var n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),e=!0})),e&&this.onRowHeightChanged()},wg([Z("columnModel")],n.prototype,"columnModel",void 0),wg([Z("selectionService")],n.prototype,"selectionService",void 0),wg([Z("filterManager")],n.prototype,"filterManager",void 0),wg([Z("valueCache")],n.prototype,"valueCache",void 0),wg([Z("columnApi")],n.prototype,"columnApi",void 0),wg([Z("gridApi")],n.prototype,"gridApi",void 0),wg([Z("animationFrameService")],n.prototype,"animationFrameService",void 0),wg([Z("beans")],n.prototype,"beans",void 0),wg([Z("filterStage")],n.prototype,"filterStage",void 0),wg([Z("sortStage")],n.prototype,"sortStage",void 0),wg([Z("flattenStage")],n.prototype,"flattenStage",void 0),wg([Y("groupStage")],n.prototype,"groupStage",void 0),wg([Y("aggregationStage")],n.prototype,"aggregationStage",void 0),wg([Y("pivotStage")],n.prototype,"pivotStage",void 0),wg([Y("filterAggregatesStage")],n.prototype,"filterAggregatesStage",void 0),wg([z],n.prototype,"init",null),n=wg([q("rowModel")],n)}(Fe),_g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Eg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _g(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},Eg([Z("filterService")],t.prototype,"filterService",void 0),t=Eg([q("filterStage")],t)}(Fe),Rg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Og=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rg(t,e),t.prototype.execute=function(e){var t=this.sortController.getSortOptions(),n=Wo.exists(t)&&t.length>0,o=n&&Wo.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=t.some((function(e){return!!e.column.getColDef().showRowGroup}));this.sortService.sort(t,n,o,e.rowNodeTransactions,e.changedPath,r)},Og([Z("sortService")],t.prototype,"sortService",void 0),Og([Z("sortController")],t.prototype,"sortController",void 0),Og([Z("columnModel")],t.prototype,"columnModel",void 0),t=Og([q("sortStage")],t)}(Fe),Tg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ag=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tg(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=[],o={value:0},r=this.columnModel.isPivotMode(),i=r&&t.leafGroup,s=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,n,o,r,0),!i&&n.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,n,o,0)),n},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,o,r){if(!Wo.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=0;l<e.length;l++){var u=e[l],c=u.hasChildren(),p=o&&!c,d=s&&c&&1===u.childrenAfterGroup.length,h=a&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,f=o&&u.leafGroup,g=i&&u.expanded&&!u.master&&!f;if(!p&&!g&&!d&&!h&&this.addRowNodeToRowsToDisplay(u,t,n,r),!o||!u.leafGroup)if(c){var m=d||h;if(u.expanded||m){var v=m?r:r+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,n,o,v),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,n,r))}}else if(u.master&&u.expanded){var y=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(y,t,n,r)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,n,o){var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(r?0:o)},t.prototype.ensureFooterNodeExists=function(e){if(!Wo.exists(e.sibling)){var t=new qi(this.beans);Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,Wo.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},t.prototype.createDetailNode=function(e){if(Wo.exists(e.detailNode))return e.detailNode;var t=new qi(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,Wo.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},xg([Z("columnModel")],t.prototype,"columnModel",void 0),xg([Z("beans")],t.prototype,"beans",void 0),t=xg([q("flattenStage")],t)}(Fe),Dg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ng=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Lg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dg(t,e),t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,t,n,o,r,i){var s=this,a=this.gridOptionsWrapper.isGroupMaintainOrder(),l=this.columnModel.getAllGridColumns().some((function(e){return e.isRowGroupActive()})),u={};n&&o&&(u=this.calculateDirtyNodes(o));var c=this.columnModel.isPivotMode();r&&r.forEachChangedNodeDepthFirst((function(o){s.pullDownGroupDataForHideOpenParents(o.childrenAfterAggFilter,!0);var p=c&&o.leafGroup,d=a&&l&&!o.leafGroup&&!i;if(!t||d||p){var h=o.childrenAfterAggFilter.slice(0);if(a&&o.childrenAfterSort){var f=o.childrenAfterSort.reduce((function(e,t,n){return e[t.id]=n,e}),{});h.sort((function(e,t){return(f[e.id]||0)-(f[t.id]||0)}))}o.childrenAfterSort=h}else o.childrenAfterSort=n?s.doDeltaSort(o,u,r,e):s.rowNodeSorter.doFullSort(o.childrenAfterAggFilter,e);if(o.sibling&&(o.sibling.childrenAfterSort=o.childrenAfterSort),s.updateChildIndexes(o),s.postSortFunc){var g={nodes:o.childrenAfterSort};s.postSortFunc(g)}})),this.updateGroupDataForHideOpenParents(r)},t.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e&&e.forEach((function(e){n(e.add),n(e.update),n(e.remove)})),t},t.prototype.doDeltaSort=function(e,t,n,o){var r=this,i=e.childrenAfterAggFilter,s=e.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(i,o);var a={},l=[];i.forEach((function(e){t[e.id]||!n.canSkip(e)?l.push(e):a[e.id]=!0}));var u=s.filter((function(e){return a[e.id]})),c=function(e,t){return{currentPos:t,rowNode:e}},p=l.map(c).sort((function(e,t){return r.rowNodeSorter.compareRowNodes(o,e,t)}));return this.mergeSortedArrays(o,p,u.map(c)).map((function(e){return e.rowNode}))},t.prototype.mergeSortedArrays=function(e,t,n){for(var o=[],r=0,i=0;r<t.length&&i<n.length;){this.rowNodeSorter.compareRowNodes(e,t[r],n[i])<0?o.push(t[r++]):o.push(n[i++])}for(;r<t.length;)o.push(t[r++]);for(;i<n.length;)o.push(n[i++]);return o},t.prototype.updateChildIndexes=function(e){if(!Wo.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,n=0;n<t.length;n++){var o=t[n],r=0===n,i=n===e.childrenAfterSort.length-1;o.setFirstChild(r),o.setLastChild(i),o.setChildIndex(n)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData()){return Wo.doOnce((function(){return console.warn("AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).")}),"sortService.hideOpenParentsWithTreeData"),!1}var n=function e(n){t.pullDownGroupDataForHideOpenParents(n.childrenAfterSort,!1),n.childrenAfterSort.forEach((function(t){t.hasChildren()&&e(t)}))};e&&e.executeFromRootNode((function(e){return n(e)}))}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;this.gridOptionsWrapper.isGroupHideOpenParents()&&!Wo.missing(e)&&e.forEach((function(e){n.columnModel.getGroupDisplayColumns().forEach((function(o){var r=o.getColDef().showRowGroup;if("string"===typeof r){var i=r,s=n.columnModel.getPrimaryColumn(i);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(o.getId(),void 0);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(o.getId(),a.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},Ng([Z("columnModel")],t.prototype,"columnModel",void 0),Ng([Z("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Ng([z],t.prototype,"init",null),t=Ng([q("sortService")],t)}(Fe),Ig=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ig(t,e),t.prototype.filter=function(e){var t=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var n=this,o=function(t,o){t.hasChildren()?t.childrenAfterFilter=e&&!o?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,o=e.data&&n.filterManager.doesRowPassFilter({rowNode:e});return t||o})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var r=function e(t,r){if(t.childrenAfterGroup)for(var i=0;i<t.childrenAfterGroup.length;i++){var s=t.childrenAfterGroup[i],a=r||n.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?e(t.childrenAfterGroup[i],a):o(s,a)}o(t,r)};t.executeFromRootNode((function(e){return r(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return o(e,!1)}),!0)}},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Mg([Z("filterManager")],t.prototype,"filterManager",void 0),t=Mg([q("filterService")],t)}(Fe),kg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Hg=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Vg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kg(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){return this.gridOptionsWrapper.isImmutableData()},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var n=Hg(t,2),o=n[0],r=n[1],i=this.clientSideRowModel.updateRowData(o,r);i&&this.rowRenderer.refreshFullWidthRows(i.update);var s={type:je.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}},t.prototype.createTransactionForRowData=function(e){if(Wo.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowIdFunc();if(null!=t){var n={remove:[],update:[],add:[]},o=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?void 0:{};return Wo.exists(e)&&e.forEach((function(e,i){var s=t({data:e,level:0}),a=o[s];(r&&(r[s]=i),a)?(a.data!==e&&n.update.push(e),o[s]=void 0):n.add.push(e)})),Wo.iterateObject(o,(function(e,t){t&&n.remove.push(t.data)})),[n,r]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},Gg([Z("rowModel")],t.prototype,"rowModel",void 0),Gg([Z("rowRenderer")],t.prototype,"rowRenderer",void 0),Gg([Z("columnApi")],t.prototype,"columnApi",void 0),Gg([Z("gridApi")],t.prototype,"gridApi",void 0),Gg([z],t.prototype,"postConstruct",null),t=Gg([q("immutableService")],t)}(Fe),jg={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[Sg,Pg,Ag,Lg,Fg,Vg],rowModels:{clientSide:bg}},Wg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ug=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.parentCache=n,r.params=o,r.startRow=t*o.blockSize,r.endRow=r.startRow+o.blockSize,r}return Wg(t,e),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,t,n){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),Wo.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();Wo.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){e.params.datasource.getRows(t)}),0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsWrapper.getContext()}},t.prototype.forEachNode=function(e,t,n){var o=this;this.rowNodes.forEach((function(r,i){o.startRow+i<n&&e(r,t.next())}))},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var n=e-this.startRow;return this.rowNodes[n]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,n=new qi(this.beans);n.setRowHeight(this.params.rowHeight),n.uiLevel=0,n.setRowIndex(t),n.setRowTop(this.params.rowHeight*t),this.rowNodes.push(n)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach((function(n,o){var r=e.rowData?e.rowData[o]:void 0;t.setDataAndId(n,r,t.startRow+o)}));var n=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,n)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(e){e.clearRowTopAndRowIndex()}))},Bg([Z("beans")],t.prototype,"beans",void 0),Bg([z],t.prototype,"postConstruct",null),Bg([K],t.prototype,"destroyRowNodes",null),t}(Rp),zg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qg=function(e,t){return function(n,o){t(n,o,e)}},Zg=function(e){function t(t){var n=e.call(this)||this;return n.lastRowIndexKnown=!1,n.blocks={},n.blockCount=0,n.rowCount=t.initialRowCount,n.params=t,n}return zg(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.params.blockSize),o=this.blocks[n];if(!o){if(t)return;o=this.createBlock(n)}return o.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new Ug(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(e){return e.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.destroyBlock(t)}))},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,o=this.getBlocksInOrder().filter((function(t){return t!=e}));o.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.params.maxBlocksInCache>0,i=r?this.params.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach((function(e,t){if(e.getState()===Ug.STATE_WAITING_TO_LOAD&&t>=s||!!r&&t>=i){if(n.isBlockCurrentlyDisplayed(e))return;if(n.isBlockFocused(e))return;n.removeBlockFromCache(e)}}))},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var n=e.getStartRow(),o=e.getEndRow();return t.rowIndex>=n&&t.rowIndex<o},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),n=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,n)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if("number"===typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,Wo.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var t=this,n=new Bo;this.getBlocksInOrder().forEach((function(o){return o.forEachNode(e,n,t.rowCount)}))},t.prototype.getBlocksInOrder=function(){return Wo.getAllValuesInObject(this.blocks).sort((function(e,t){return e.getId()-t.getId()}))},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:je.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach((function(n){n.getId()*e.params.blockSize>=e.rowCount&&t.push(n)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.removeBlockFromCache(t)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var n=this,o=[],r=-1,i=!1,s=new Bo;Wo.missing(e)&&(i=!0);var a=!1;return this.getBlocksInOrder().forEach((function(l){a||(i&&r+1!==l.getId()?a=!0:(r=l.getId(),l.forEachNode((function(n){var r=n===e||n===t;(i||r)&&o.push(n),r&&(i=!i)}),s,n.rowCount)))})),a||i?[]:o},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,Kg([Z("rowRenderer")],t.prototype,"rowRenderer",void 0),Kg([Z("focusService")],t.prototype,"focusService",void 0),Kg([qg(0,$("loggerFactory"))],t.prototype,"setBeans",null),Kg([K],t.prototype,"destroyAllBlocks",null),t}(Fe),Yg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qg=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},$g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yg(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,o){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return e.destroyCache()})),this.verifyProps())},t.prototype.verifyProps=function(){if(null!=this.gridOptionsWrapper.getInitialGroupOrderComparator()){Wo.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.")}),"IRM.InitialGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,je.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,je.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,je.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!Wo.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return oe.ROW_MODEL_TYPE_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,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsWrapper.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:je.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!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.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new Bo},this.infiniteCache=this.createBean(new Zg(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,t){return e>0?e:t},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 t;return this.forEachNode((function(n){n.id===e&&(t=n)})),t},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(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},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()},t.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},Qg([Z("filterManager")],t.prototype,"filterManager",void 0),Qg([Z("sortController")],t.prototype,"sortController",void 0),Qg([Z("selectionService")],t.prototype,"selectionService",void 0),Qg([Z("gridApi")],t.prototype,"gridApi",void 0),Qg([Z("columnApi")],t.prototype,"columnApi",void 0),Qg([Z("rowRenderer")],t.prototype,"rowRenderer",void 0),Qg([Z("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Qg([z],t.prototype,"init",null),Qg([K],t.prototype,"destroyDatasource",null),t=Qg([q("rowModel")],t)}(Fe),Xg={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:$g}},Jg=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?e+"."+t:e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e}(),em=function(){function e(e){this.groupColumns=[];var t=e.columnModel,n=e.valueService,o=e.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnModel=t,this.valueService=n,this.gridOptionsWrapper=o,this.processCellCallback=r,this.processHeaderCallback=i,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return e.prototype.prepare=function(e){this.groupColumns=e.filter((function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,o,r){var i,s=this.gridOptionsWrapper.isGroupMultiAutoColumn()?r.rowGroupIndex:0;i=r&&r.group&&(t===s&&-1!==this.groupColumns.indexOf(e)||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode()))?this.createValueForGroupNode(r):this.valueService.getValue(e,r);var a=this.processCell(n,r,e,i,this.processCellCallback,o);return null!=a?a:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var t=[e.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,o,r,i){return r?r({accumulatedRowIndex:e,column:n,node:t,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:i}):null!=o?o:""},e}(),tm=function(){function e(){}return e.download=function(e,t){var n=document.defaultView||window;if(n){var o=document.createElement("a"),r=n.URL.createObjectURL(t);o.setAttribute("href",r),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(o),n.setTimeout((function(){n.URL.revokeObjectURL(r)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),nm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),om=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var o=t.suppressQuotes,r=t.columnSeparator;return n.suppressQuotes=o,n.columnSeparator=r,n}return nm(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"===typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(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,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,oe.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null===e||void 0===e?'""':("string"===typeof e?t=e:"function"===typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(em),rm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),im=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rm(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),n=this.getData(t),o=new Blob(["\ufeff",n],{type:"text/plain"});return tm.download(this.getFileName(t.fileName),o),n},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){var t=this.getMergedParams(e);return this.getData(t)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,n=t.columnModel,o=t.valueService,r=t.gridOptionsWrapper,i=e,s=i.processCellCallback,a=i.processHeaderCallback,l=i.processGroupHeaderCallback,u=i.processRowGroupCallback,c=i.suppressQuotes,p=i.columnSeparator;return new om({columnModel:n,valueService:o,gridOptionsWrapper:r,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:c||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},im([Z("columnModel")],t.prototype,"columnModel",void 0),im([Z("valueService")],t.prototype,"valueService",void 0),im([Z("gridSerializer")],t.prototype,"gridSerializer",void 0),im([Z("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),im([z],t.prototype,"postConstruct",null),t=im([q("csvCreator")],t)}(Jg),am=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lm=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(t.RowType||(t.RowType={}));var um=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return am(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var n=this.getColumnsToExport(t.allColumns,t.columnKeys);return Wo.compose(this.prepareSession(n),this.prependContent(t),this.exportColumnGroups(t,n),this.exportHeaders(t,n),this.processPinnedTopRows(t,n),this.processRows(t,n),this.processPinnedBottomRows(t,n),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,n,o){var r=this,i=t.shouldRowBeSkipped||function(){return!1},s=this.gridOptionsWrapper,a=s.getContext(),l=s.getApi(),u=s.getColumnApi(),c=s.isGroupRemoveSingleChildren(),p=s.isGroupHideOpenParents(),d=s.isGroupRemoveLowestSingleChildren(),h=this.columnModel.isPivotMode()?o.leafGroup:!o.group,f=t.skipGroups||t.skipRowGroups,g=d&&o.leafGroup,m=1===o.allChildrenCount&&(c||g);f&&t.skipGroups&&Wo.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups");var v={rowIndex:o.rowIndex,rowPinned:o.rowPinned};if(!(!h&&(t.skipRowGroups||m||p)||t.onlySelected&&!o.isSelected()||t.rowNodes&&!t.rowNodes.some((function(e){return r.rowPositionUtils.sameRow(e,v)}))||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned)&&((!(-1===o.level)||o.leafGroup)&&!i({node:o,api:l,columnApi:u,context:a}))){var y=e.onNewBodyRow();if(n.forEach((function(e,t){y.onColumn(e,t,o)})),t.getCustomContentBelowRow){var C=t.getCustomContentBelowRow({node:o,api:l,columnApi:u,context:a});C&&e.addCustomContent(C)}}},t.prototype.appendContent=function(e){return function(t){var n=e.customFooter||e.appendContent;return n&&(e.customFooter&&Wo.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),t.addCustomContent(n)),t}},t.prototype.prependContent=function(e){return function(t){var n=e.customHeader||e.prependContent;return n&&(e.customHeader&&Wo.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),t.addCustomContent(n)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var n=this;return function(o){if(e.skipColumnGroupHeaders)e.columnGroups&&Wo.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var r=new We,i=n.displayedGroupCreator.createDisplayedGroups(t,n.columnModel.getGridBalancedTree(),r,null);n.recursivelyAddHeaderGroups(i,o,e.processGroupHeaderCallback)}return o}},t.prototype.exportHeaders=function(e,t){return function(n){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&Wo.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var o=n.onNewHeaderRow();t.forEach((function(e,t){o.onColumn(e,t,void 0)}))}return n}},t.prototype.processPinnedTopRows=function(e,t){var n=this;return function(o){var r=n.processRow.bind(n,o,e,t);return n.pinnedRowModel.forEachPinnedTopRow(r),o}},t.prototype.processRows=function(e,t){var n=this;return function(o){var r=n.rowModel,i=r.getType(),s=i===oe.ROW_MODEL_TYPE_CLIENT_SIDE,a=i===oe.ROW_MODEL_TYPE_SERVER_SIDE,l=!s&&e.onlySelected,u=n.processRow.bind(n,o,e,t);n.columnModel.isPivotMode()?s?r.forEachPivotNode(u):r.forEachNode(u):e.onlySelectedAllPages||l?n.selectionService.getSelectedNodes().forEach(u):s||a?r.forEachNodeAfterFilterAndSort(u):r.forEachNode(u);return o}},t.prototype.processPinnedBottomRows=function(e,t){var n=this;return function(o){var r=n.processRow.bind(n,o,e,t);return n.pinnedRowModel.forEachPinnedBottomRow(r),o}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var n=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!n?(this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([oe.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,n){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof we&&this.doAddHeaderHeader(t,e,n),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,n)},t.prototype.doAddHeaderHeader=function(e,t,n){var o=this,r=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,s=e;t=n?n({columnGroup:s,api:o.gridOptionsWrapper.getApi(),columnApi:o.gridOptionsWrapper.getColumnApi(),context:o.gridOptionsWrapper.getContext()}):o.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(e,t,n,o){var r=Wo.last(e);return"open"===t.getColumnGroupShow()?r&&null==r[1]||(r=[n],e.push(r)):r&&null==r[1]&&(r[1]=n-1),n===o.length-1&&r&&null==r[1]&&(r[1]=n),e}),[]);r.onColumn(t||"",i++,s.getLeafColumns().length-1,a)}))},lm([Z("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),lm([Z("columnModel")],t.prototype,"columnModel",void 0),lm([Z("rowModel")],t.prototype,"rowModel",void 0),lm([Z("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),lm([Z("selectionService")],t.prototype,"selectionService",void 0),lm([Z("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),t=lm([q("gridSerializer")],t)}(Fe),cm={moduleName:t.ModuleNames.CsvExportModule,beans:[sm,um]},pm="\r\n",dm=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.createXml=function(e,t){var n=this,o="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(r){o+=n.returnAttributeIfPopulated(e.prefix+r,e.map[r],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(r){o+=n.returnAttributeIfPopulated(r,e.properties.rawMap[r],t)})));var r="<"+e.name+o;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">"+pm:(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=n.createXml(e,t)})),r+"</"+e.name+">"+pm):r+"/>"+pm},e.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var o=t;return"boolean"===typeof t&&n&&(o=n(t))," "+e+'="'+o+'"'},e}(),hm=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},fm=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),gm=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,n){void 0===n&&(n=!1),this.files.push({path:e,created:new Date,content:t,isBase64:n})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,n;void 0===e&&(e="");var o=this.folders.concat(this.files),r=o.length,i="",s=0,a=0;try{for(var l=hm(o),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,s),d=p.fileHeader,h=p.folderHeader,f=p.content;s+=d.length+f.length,a+=h.length,e+=d+f,i+=h}}catch(g){t={error:g}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return e+i+this.buildFolderEnd(r,a,s)},e.getHeader=function(e,t){var n=e.content,o=e.path,r=e.created,i=e.isBase64,s=Wo.utf8_encode,a=Wo.decToHex,l=s(o),u=l!==o,c=this.convertTime(r),p=this.convertDate(r),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=n?this.getConvertedContent(n,i):{size:0,content:""},g=f.size,m=f.content,v="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(m):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK\x03\x04"+v+l+d,folderHeader:"PK\x01\x02\x14\0"+v+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\x10\0\0\0")+a(t,4)+l+d,content:m||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,n){var o=Wo.decToHex;return"PK\x05\x06\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(n,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,n=new Uint8Array(t),o=0;o<t;o++)n[o]=e.charCodeAt(o);var r=-1,i=0;for(o=0;o<t;o++)i=n[o],r=r>>>8^fm[255&(r^i)];return-1^r},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}();re.register(jg,!1),re.register(Xg,!1),re.register(cm,!1),t.AbstractHeaderCellCtrl=ju,t.AgAbstractField=Sr,t.AgAngleSelect=Jp,t.AgCheckbox=ic,t.AgColorPicker=dd,t.AgDialog=cd,t.AgGroupComponent=gd,t.AgInputNumberField=zp,t.AgInputRange=qp,t.AgInputTextArea=Bp,t.AgInputTextField=jp,t.AgMenuItemComponent=Nd,t.AgMenuList=Od,t.AgMenuPanel=xd,t.AgPanel=sd,t.AgPromise=zo,t.AgRadioButton=kp,t.AgSelect=Lr,t.AgSlider=Qp,t.AgStackComponentsRegistry=bt,t.AgToggleButton=Hp,t.AlignedGridsService=th,t.AnimateShowChangeCellRenderer=Vi,t.AnimateSlideCellRenderer=Bi,t.AnimationFrameService=op,t.AutoScrollService=Sa,t.AutoWidthCalculator=up,t.Autowired=Z,t.BaseComponentWrapper=hg,t.BaseCreator=Jg,t.BaseGridSerializingSession=em,t.Bean=q,t.BeanStub=Fe,t.Beans=Ya,t.BodyDropPivotTarget=Cu,t.BodyDropTarget=Su,t.CellComp=cu,t.CellCtrl=al,t.CellNavigationService=$d,t.CellPositionUtils=Pf,t.ChangedPath=Ep,t.CheckboxSelectionComponent=Qi,t.ColDefUtil=St,t.Color=Ot,t.Column=ae,t.ColumnApi=ah,t.ColumnFactory=Ve,t.ColumnGroup=we,t.ColumnKeyCreator=h,t.ColumnModel=it,t.ColumnUtils=lt,t.Component=tr,t.ComponentUtil=yt,t.Constants=oe,t.Context=B,t.CssClassApplier=Pu,t.CssClassManager=er,t.CsvCreator=sm,t.CsvExportModule=cm,t.CtrlsService=Kf,t.CustomTooltipFeature=Qo,t.DateFilter=qr,t.DisplayedGroupCreator=pt,t.Downloader=tm,t.DragAndDropService=ts,t.DragService=Qs,t.Environment=lf,t.EventService=ne,t.Events=je,t.ExpressionService=fh,t.FilterManager=ea,t.FloatingFilterMapper=Us,t.FocusService=kd,t.Grid=cg,t.GridApi=zu,t.GridBodyComp=Yl,t.GridBodyCtrl=Ga,t.GridComp=Th,t.GridCoreCreator=pg,t.GridCtrl=Rh,t.GridHeaderComp=jc,t.GridHeaderCtrl=Gc,t.GridOptionsWrapper=ma,t.GridSerializer=um,t.GroupCellRenderer=fs,t.GroupCellRendererCtrl=ps,t.GroupInstanceIdCreator=We,t.HeaderCellCtrl=pc,t.HeaderFilterCellComp=ia,t.HeaderFilterCellCtrl=ec,t.HeaderGroupCellCtrl=wc,t.HeaderNavigationService=Mc,t.HeaderPositionUtils=kf,t.HeaderRowComp=ku,t.HeaderRowContainerComp=Nc,t.HeaderRowContainerCtrl=xc,t.HeaderRowCtrl=Sc,t.HorizontalResizeService=Uc,t.KeyCode=dr,t.LargeTextCellEditor=Pi,t.Logger=_h,t.LoggerFactory=bh,t.ManagedFocusFeature=mr,t.ModuleRegistry=re,t.MouseEventService=tu,t.MoveColumnFeature=bu,t.NavigationService=iu,t.NumberFilter=ri,t.NumberSequence=Bo,t.Optional=Y,t.PaginationProxy=Np,t.PinnedRowModel=bp,t.PopupComponent=Si,t.PopupEditorWrapper=lu,t.PopupSelectCellEditor=Ni,t.PopupService=Wd,t.PopupTextCellEditor=ki,t.PositionableFeature=sp,t.PostConstruct=z,t.PreConstruct=U,t.PreDestroy=K,t.PropertyKeys=ft,t.ProvidedColumnGroup=be,t.ProvidedFilter=Cr,t.Qualifier=$,t.QuerySelector=function(e){return or.bind(this,e,void 0)},t.RefSelector=nr,t.ResizeObserverService=ep,t.RowContainerComp=vu,t.RowContainerCtrl=zl,t.RowCtrl=fl,t.RowNode=qi,t.RowNodeBlock=Rp,t.RowNodeBlockLoader=xp,t.RowNodeSorter=Bf,t.RowPositionUtils=Sf,t.RowRenderer=fp,t.ScalarFilter=Wr,t.ScrollVisibleService=Xl,t.SelectCellEditor=Ai,t.SelectableService=gf,t.SelectionService=ih,t.SetLeftFeature=Zu,t.SimpleFilter=Vr,t.SortController=Dh,t.StandardMenuFactory=qc,t.StylingService=Mp,t.TabGuardComp=_d,t.TabGuardCtrl=yd,t.TabbedLayout=Qc,t.TemplateService=vh,t.TextCellEditor=Mi,t.TextFilter=li,t.TextFloatingFilter=gi,t.Timer=Ko,t.TouchListener=mi,t.UserComponentFactory=qs,t.UserComponentRegistry=Os,t.ValueCache=Kh,t.ValueFormatterService=yp,t.ValueService=ch,t.VanillaFrameworkOverrides=Zd,t.VirtualList=zd,t.XmlFactory=dm,t.ZipContainer=gm,t._=Wo,t.defaultGroupComparator=function(e,t,n,o,i){void 0===i&&(i=!1),console.warn("AG Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=r(n)&&n.group,a=r(o)&&o.group,l=!s&&!a;return s&&a?c(n.key,o.key,i):l?c(e,t,i):s?1:-1},t.getRowContainerTypeForName=jl,t.simpleHttpRequest=function(e){return new zo((function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(JSON.parse(n.responseText))}}))},t.stringToArray=Pt},7945:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(2791)),a=n(4282),l=n(2553),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.setGridApi=function(e,n){t.api=e,t.columnApi=n},t}return o(t,e),t.prototype.render=function(){var e=this.props.suppressReactUi?a.AgGridReactLegacy:l.AgGridReactUi;return s.default.createElement(e,r({},this.props,{setGridApi:this.setGridApi}))},t}(s.Component);t.AgGridReact=u},4282:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1167),l=i(n(2007)),u=s(n(2791)),c=n(4619),p=n(6745),d=n(4584),h=n(8665),f=n(3365),g=n(9575),m=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.changeDetectionService=new d.ChangeDetectionService,n.api=null,n.destroyed=!1,n.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],n.portalManager=new f.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n}return o(t,e),t.prototype.render=function(){var e=this;return u.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(t){e.eGridDiv=t}},this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return r({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new y(this,this.portalManager)},modules:e,frameworkOverrides:new g.ReactFrameworkOverrides(!1)},n=this.props.gridOptions||{},o=this.props.children;p.AgGridColumn.hasChildColumns(o)&&(n.columnDefs=p.AgGridColumn.mapChildColumnDefs(o)),this.gridOptions=a.ComponentUtil.copyAttributesToGridOptions(n,this.props),new a.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return d.ChangeDetectionStrategyType.IdentityCheck}return d.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||null!=this.props.getRowId||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||null!=this.props.gridOptions.getRowId)},t.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,o="columnDefs",r=this.gridOptions.columnDefs;if(p.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(o)),s=p.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(r,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[o]={previousValue:r,currentValue:s})}else r&&r.length>0&&(t[o]={previousValue:r,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){a._.includes(a.ComponentUtil.ALL_PROPERTIES,i)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(i)).areEqual(e[i],t[i])||(r&&console.log("agGridReact: ["+i+"] property changed"),n[i]={previousValue:e[i],currentValue:t[i]}))})),a.ComponentUtil.getEventCallbacks().forEach((function(o){e[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] event callback changed"),n[o]={previousValue:e[o],currentValue:t[o]})}))},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},t.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},t.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},t.prototype.processSynchronousChanges=function(e){var t=r({},e);if(Object.keys(t).length>0){var n={};this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach((function(e){t[e]&&(n[e]=t[e],delete t[e])})),Object.keys(n).length>0&&this.api&&a.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)}return t},t.prototype.processAsynchronousChanges=function(e){var t=this;Object.keys(e).length>0&&window.setTimeout((function(){t.api&&a.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,t.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:t.MAX_COMPONENT_CREATION_TIME_IN_MS},t}(u.Component);function v(e,t){e.forEach((function(e){m[e]=t}))}t.AgGridReactLegacy=m,m.propTypes={gridOptions:l.default.object},v(a.ComponentUtil.getEventCallbacks(),l.default.func),v(a.ComponentUtil.BOOLEAN_PROPERTIES,l.default.bool),v(a.ComponentUtil.STRING_PROPERTIES,l.default.string),v(a.ComponentUtil.OBJECT_PROPERTIES,l.default.object),v(a.ComponentUtil.ARRAY_PROPERTIES,l.default.array),v(a.ComponentUtil.NUMBER_PROPERTIES,l.default.number),v(a.ComponentUtil.FUNCTION_PROPERTIES,l.default.func);var y=function(e){function t(t,n){var o=e.call(this)||this;return o.agGridReact=t,o.portalManager=n,o}return o(t,e),t.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new c.LegacyReactComponent(e,this.agGridReact,this.portalManager,t):new h.NewReactComponent(e,this.portalManager,t)},t}(a.BaseComponentWrapper)},4619:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2791),s=n(4164),a=n(1167),l=n(294),u=n(8340),c=r(n(3507)),p=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.staticMarkup=null,i.staticRenderTime=0,i.parentComponent=n,i}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new a.AgPromise((function(n){return t.createReactComponent(e,n)}))},t.prototype.createReactComponent=function(e,t){var n=this;this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var o=i.createElement(this.reactComponent,e),r=s.createPortal(o,this.eParentElement,c.default());this.portal=r,this.portalManager.mountReactPortal(r,this,(function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout((function(){n.removeStaticMarkup()})))}))},t.prototype.fallbackMethodAvailable=function(e){return!1},t.prototype.fallbackMethod=function(e,t){},t.prototype.isSlowRenderer=function(){return this.staticRenderTime>=t.SLOW_RENDERING_THRESHOLD},t.prototype.isNullValue=function(){return""===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,n=i.createElement(this.reactComponent,e);try{console.error=function(){};var o=Date.now(),r=u.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-o,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(s){}finally{console.error=t}}},t.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},t.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.SLOW_RENDERING_THRESHOLD=3,t}(l.ReactComponent);t.LegacyReactComponent=p},2553:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1167),l=i(n(2791)),u=n(6745),c=n(4584),p=n(8665),d=n(3365),h=s(n(3970)),f=n(9575);var g=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.destroyFuncs=[],n.changeDetectionService=new c.ChangeDetectionService,n.eGui=l.default.createRef(),n.whenReadyFuncs=[],n.ready=!1,n.renderedAfterMount=!1,n.mounted=!1,n.state={context:void 0},n.portalManager=new d.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n.destroyFuncs.push((function(){return n.portalManager.destroy()})),n}return o(t,e),t.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),l.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&l.default.createElement(h.default,{context:this.state.context}),this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return r({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this;if(!this.mounted){this.mounted=!0;var t=this.props.modules||[],n={providedBeanInstances:{frameworkComponentWrapper:new m(this.portalManager)},modules:t,frameworkOverrides:new f.ReactFrameworkOverrides(!0)};this.gridOptions=this.props.gridOptions||{};var o=this.props.children;u.AgGridColumn.hasChildColumns(o)&&(this.gridOptions.columnDefs=u.AgGridColumn.mapChildColumnDefs(o)),this.gridOptions=a.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props);(new a.GridCoreCreator).create(this.eGui.current,this.gridOptions,(function(t){e.setState({context:t}),t.getBean(a.CtrlsService.NAME).whenReady((function(){e.api=e.gridOptions.api,e.columnApi=e.gridOptions.columnApi,e.props.setGridApi(e.api,e.columnApi),e.destroyFuncs.push((function(){return e.api.destroy()}))}))}),(function(t){t.getBean(a.CtrlsService.NAME).whenReady((function(){e.whenReadyFuncs.forEach((function(e){return e()})),e.whenReadyFuncs.length=0,e.ready=!0}))}),n)}},t.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach((function(e){return e()})),this.destroyFuncs.length=0)},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,o="columnDefs",r=this.gridOptions.columnDefs;if(u.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(o)),s=u.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(r,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[o]={previousValue:r,currentValue:s})}else r&&r.length>0&&(t[o]={previousValue:r,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){a._.includes(a.ComponentUtil.ALL_PROPERTIES,i)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(i)).areEqual(e[i],t[i])||(r&&console.log("agGridReact: ["+i+"] property changed"),n[i]={previousValue:e[i],currentValue:t[i]}))})),a.ComponentUtil.getEventCallbacks().forEach((function(o){e[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] event callback changed"),n[o]={previousValue:e[o],currentValue:t[o]})}))},t.prototype.processChanges=function(e){var t=this;this.processWhenReady((function(){return a.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return c.ChangeDetectionStrategyType.IdentityCheck}return c.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||null!=this.props.getRowId||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||null!=this.props.gridOptions.getRowId)},t}(l.Component);t.AgGridReactUi=g;var m=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return o(t,e),t.prototype.createWrapper=function(e,t){return new p.NewReactComponent(e,this.parent,t)},t}(a.BaseComponentWrapper)},2724:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2791));t.BeansContext=r.default.createContext({})},7627:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(6817),a=n(2724),l=n(2553),u=n(1622);t.default=i.forwardRef((function(e,t){var n=i.useContext(a.BeansContext),r=n.ctrlsFactory,c=n.context,p=n.gridOptionsWrapper,d=n.resizeObserverService,h=n.clientSideRowModel,f=n.serverSideRowModel,g=i.useState(new s.CssClasses),m=g[0],v=g[1],y=i.useState(new s.CssClasses),C=y[0],w=y[1],b=i.useState(),_=b[0],E=b[1],S=i.useState(),R=S[0],O=S[1],P=i.useRef(),T=i.useRef(null),x=i.useMemo((function(){return m.toString()+" ag-details-row"}),[m]),A=i.useMemo((function(){return C.toString()+" ag-details-grid"}),[C]);t&&i.useImperativeHandle(t,(function(){return{refresh:function(){return P.current.refresh()}}})),u.useEffectOnce((function(){e.template&&"string"===typeof e.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")})),u.useEffectOnce((function(){var t={addOrRemoveCssClass:function(e,t){return v((function(n){return n.setClass(e,t)}))},addOrRemoveDetailGridCssClass:function(e,t){return w((function(n){return n.setClass(e,t)}))},setDetailGrid:function(e){return E(e)},setRowData:function(e){return O(e)},getGui:function(){return T.current}},n=r.getInstance("detailCellRenderer");if(n){var o;if(c.createBean(n),n.init(t,e),P.current=n,p.isDetailRowAutoHeight()){var i=function(){if(null!=T.current){var t=T.current.clientHeight;if(null!=t&&t>0){setTimeout((function(){e.node.setRowHeight(t),h?h.onRowHeightChanged():f&&f.onRowHeightChanged()}),0)}}};o=d.observeResize(T.current,i),i()}return function(){c.destroyBean(n),o&&o()}}}));var D=i.useCallback((function(e,t){P.current.registerDetailWithMaster(e,t)}),[]);return i.default.createElement("div",{className:x,ref:T},_&&i.default.createElement(l.AgGridReactUi,o({className:A},_,{rowData:R,setGridApi:D})))}))},5728:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=r(n(2791)),a=n(2724),l=n(8285),u=n(1622),c=n(6817),p=s.forwardRef((function(e,t){var n=s.useContext(a.BeansContext).context,r=s.useRef(null),d=s.useRef(null),h=s.useRef(null),f=s.useRef(null),g=s.useRef(null),m=s.useState(),v=m[0],y=m[1],C=s.useState(),w=C[0],b=C[1],_=s.useState(),E=_[0],S=_[1],R=s.useState(new c.CssClasses),O=R[0],P=R[1],T=s.useState(new c.CssClasses("ag-hidden")),x=T[0],A=T[1],D=s.useState(new c.CssClasses("ag-hidden")),N=D[0],L=D[1],I=s.useState(new c.CssClasses("ag-invisible")),M=I[0],F=I[1];s.useImperativeHandle(t,(function(){return{refresh:function(){return!1}}})),s.useEffect((function(){return l.showJsComp(v,n,d.current)}),[v]),u.useEffectOnce((function(){var t={setInnerRenderer:function(e,t){y(e),S(t)},setChildCount:function(e){return b(e)},addOrRemoveCssClass:function(e,t){return P((function(n){return n.setClass(e,t)}))},setContractedDisplayed:function(e){return L((function(t){return t.setClass("ag-hidden",!e)}))},setExpandedDisplayed:function(e){return A((function(t){return t.setClass("ag-hidden",!e)}))},setCheckboxVisible:function(e){return F((function(t){return t.setClass("ag-invisible",!e)}))}},o=n.createBean(new i.GroupCellRendererCtrl);return o.init(t,r.current,h.current,f.current,g.current,p,e),function(){n.destroyBean(o)}}));var k=s.useMemo((function(){return"ag-cell-wrapper "+O.toString()}),[O]),G=s.useMemo((function(){return"ag-group-expanded "+x.toString()}),[x]),H=s.useMemo((function(){return"ag-group-contracted "+N.toString()}),[N]),V=s.useMemo((function(){return"ag-group-checkbox "+M.toString()}),[M]),j=v&&v.componentFromFramework,W=j?v.componentClass:void 0,B=null==v&&null!=E;return s.default.createElement("span",o({className:k,ref:r},e.colDef?{}:{role:"gridcell"}),s.default.createElement("span",{className:G,ref:f}),s.default.createElement("span",{className:H,ref:g}),s.default.createElement("span",{className:V,ref:h}),s.default.createElement("span",{className:"ag-group-value",ref:d},B&&s.default.createElement(s.default.Fragment,null,E),j&&s.default.createElement(W,o({},v.params))),s.default.createElement("span",{className:"ag-group-child-count"},w))}));t.default=p},4148:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(6817),u=i(n(7664)),c=i(n(3930)),p=n(2724),d=n(8285),h=n(1622);!function(e){e[e.ShowValue=0]="ShowValue",e[e.EditValue=1]="EditValue"}(t.CellCompState||(t.CellCompState={}));t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=e.cellCtrl,r=e.printLayout,i=e.editingRow,f=a.useState(),g=f[0],m=f[1],v=a.useState(),y=v[0],C=v[1],w=a.useState(1),b=w[0],_=w[1],E=a.useState(new l.CssClasses),S=E[0],R=E[1],O=a.useState(),P=O[0],T=O[1],x=a.useState(),A=x[0],D=x[1],N=a.useState(),L=N[0],I=N[1],M=a.useState(),F=M[0],k=M[1],G=a.useState(),H=G[0],V=G[1],j=a.useState(),W=j[0],B=j[1],U=a.useState(!1),z=U[0],K=U[1],q=a.useState(!1),Z=q[0],Y=q[1],Q=a.useState(!1),$=Q[0],X=Q[1],J=a.useState(),ee=J[0],te=J[1],ne=a.useMemo((function(){return n.isForceWrapper()}),[]),oe=a.useRef(null),re=a.useRef(null),ie=a.useRef(),se=a.useRef(),ae=a.useRef(),le=a.useState(0),ue=le[0],ce=le[1],pe=a.useCallback((function(e){ae.current=e,ce((function(e){return e+1}))}),[]),de=a.useRef(),he=a.useState(0),fe=he[0],ge=he[1],me=a.useCallback((function(e){de.current=e,ge((function(e){return e+1}))}),[]),ve=null!=g&&(z||$||Z),ye=ne||ve,Ce=a.useCallback((function(e,t){(se.current=t,t)&&(!function(e,t,n){var o=n.getColumn();if(!e&&t.isPopup&&t.isPopup()){var r="AG Grid: Found an issue in column "+o.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.";s._.doOnce((function(){return console.warn(r)}),"jsEditorComp-isPopup-"+n.getColumn().getColId())}if(e&&t.getPopupPosition&&null!=t.getPopupPosition()){var i="AG Grid: Found an issue in column "+o.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.";s._.doOnce((function(){return console.warn(i)}),"jsEditorComp-getPopupPosition-"+n.getColumn().getColId())}}(e,t,n),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout((function(){return n.stopEditing()}),0))}),[]),we=a.useCallback((function(e){return Ce(!0,e)}),[]),be=a.useCallback((function(e){return Ce(!1,e)}),[]);c.default(g,ye,de.current,fe,ie,oe);var _e=a.useRef();a.useEffect((function(){var e=_e.current,t=g;if(_e.current=g,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails){var n=e.compDetails,o=t.compDetails;if(n.componentClass==o.componentClass)if(null!=re.current&&null!=re.current.refresh)1!=re.current.refresh(o.params)&&_((function(e){return e+1}))}}),[g]),a.useEffect((function(){if(y&&!y.compDetails.componentFromFramework){var e=y.compDetails,n=!0===y.popup,o=d.createSyncJsComp(e);if(o){var r=o.getGui();return Ce(n,o),n||(oe.current.appendChild(r),o.afterGuiAttached&&o.afterGuiAttached()),te(o),function(){t.destroyBean(o),Ce(n,void 0),te(void 0),r&&r.parentElement&&r.parentElement.removeChild(r)}}}}),[y]),a.useEffect((function(){if(n&&t&&(I(ae.current?"cell-"+n.getInstanceId():void 0),ae.current&&ye)){var e=[],o=function(n){if(n){var o=n.getGui();ae.current.insertAdjacentElement("afterbegin",o),e.push((function(){t.destroyBean(n),s._.removeFromParent(o)}))}return n};return z&&o(n.createSelectionCheckbox()),$&&o(n.createDndSource()),Z&&o(n.createRowDragComp()),function(){e.forEach((function(e){e()}))}}}),[ye,$,Z,z,ue]),h.useEffectOnce((function(){if(n){var e={addOrRemoveCssClass:function(e,t){return R((function(n){return n.setClass(e,t)}))},setUserStyles:function(e){return T(e)},getFocusableElement:function(){return oe.current},setTabIndex:function(e){return D(e)},setRole:function(e){return k(e)},setColId:function(e){return V(e)},setTitle:function(e){return B(e)},setIncludeSelection:function(e){return K(e)},setIncludeRowDrag:function(e){return Y(e)},setIncludeDndSource:function(e){return X(e)},getCellEditor:function(){return se.current||null},getCellRenderer:function(){return re.current?re.current:ie.current},getParentOfValue:function(){return de.current?de.current:ae.current?ae.current:oe.current},setRenderDetails:function(e,t,n){m({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(C({compDetails:e,popup:t,popupPosition:n}),t||m(void 0)):C(void 0)}},t=ae.current||void 0;n.setComp(e,oe.current,t,r,i)}}));var Ee=a.useMemo((function(){return!!(g&&g.compDetails&&g.compDetails.componentFromFramework&&l.isComponentStateless(g.compDetails.componentClass))}),[g]),Se=a.useMemo((function(){var e=S.toString();return ye||(e+=" ag-cell-value"),e}),[S,ve]),Re=a.useMemo((function(){return n.getInstanceId()}),[]),Oe=function(){return a.default.createElement(a.default.Fragment,null,null!=g&&function(e,t,n,r,i,s,l){var u=e.compDetails,c=e.value,p=!u,d=u&&u.componentFromFramework,h=u&&u.componentClass,f=c&&c.toString?c.toString():c,g=function(){return a.default.createElement(a.default.Fragment,null,p&&a.default.createElement(a.default.Fragment,null,f),d&&!s&&a.default.createElement(h,o({},u.params,{key:t,ref:r})),d&&s&&a.default.createElement(h,o({},u.params,{key:t})))};return a.default.createElement(a.default.Fragment,null,i?a.default.createElement("span",{role:"presentation",id:"cell-"+n,className:"ag-cell-value",ref:l},g()):g())}(g,b,Re,re,ye,Ee,me),null!=y&&function(e,t,n,r,i,s){var l=e.compDetails,c=l.componentClass,p=l.componentFromFramework&&!e.popup,d=l.componentFromFramework&&e.popup,h=!l.componentFromFramework&&e.popup;return a.default.createElement(a.default.Fragment,null,p&&a.default.createElement(c,o({},e.compDetails.params,{ref:t})),d&&a.default.createElement(u.default,{editDetails:e,cellCtrl:i,eParentCell:r,wrappedContent:a.default.createElement(c,o({},e.compDetails.params,{ref:n}))}),h&&s&&a.default.createElement(u.default,{editDetails:e,cellCtrl:i,eParentCell:r,jsChildComp:s}))}(y,be,we,oe.current,n,ee))};return a.default.createElement("div",{ref:oe,className:Se,style:P,tabIndex:A,role:F,"col-id":H,title:W,"aria-describedby":L},ye?a.default.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:pe},Oe()):Oe())}))},7664:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1167),i=o(n(2791)),s=n(4164),a=n(2724),l=n(1622);t.default=i.memo((function(e){var t=i.useState(),n=t[0],o=t[1],u=i.useContext(a.BeansContext),c=u.context,p=u.popupService,d=u.gridOptionsWrapper;return l.useEffectOnce((function(){var t=e.editDetails,n=e.cellCtrl,i=e.eParentCell,s=t.compDetails,a=d.isStopEditingWhenCellsLoseFocus(),l=c.createBean(new r.PopupEditorWrapper(s.params)),u=l.getGui();if(e.jsChildComp){var h=e.jsChildComp.getGui();h&&u.appendChild(h)}var f={column:n.getColumn(),rowNode:n.getRowNode(),type:"popupCellEditor",eventSource:i,ePopup:u,keepWithinBounds:!0},g="under"===t.popupPosition?p.positionPopupUnderComponent.bind(p,f):p.positionPopupOverComponent.bind(p,f),m=d.getLocaleTextFunc(),v=p.addPopup({modal:a,eChild:u,closeOnEsc:!0,closedCallback:function(){n.onPopupEditorClosed()},anchorToElement:i,positionCallback:g,ariaLabel:m("ariaLabelCellEditor","Cell Editor")}),y=v?v.hideFunc:void 0;return o(l),e.jsChildComp&&e.jsChildComp.afterGuiAttached&&e.jsChildComp.afterGuiAttached(),function(){null!=y&&y(),c.destroyBean(l)}})),i.default.createElement(i.default.Fragment,null,n&&e.wrappedContent&&s.createPortal(e.wrappedContent,n.getGui()))}))},3930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2791),r=n(2724),i=n(1622);t.default=function(e,t,n,s,a,l){var u=o.useContext(r.BeansContext),c=u.context,p=(u.userComponentFactory,o.useCallback((function(){var e=a.current;if(e){var t=e.getGui();t&&t.parentElement&&t.parentElement.removeChild(t),c.destroyBean(e),a.current=void 0}}),[]));o.useEffect((function(){var o=null!=e,r=e&&e.compDetails&&!e.compDetails.componentFromFramework;if(o&&r&&!(t&&null==n)){var i=e.compDetails;if(a.current){var s=a.current,u=!!(null!=s.refresh&&0==e.force)&&s.refresh(i.params);if(!0===u||void 0===u)return;p()}var c=i.newAgStackInstance();if(c){var d=c.resolveNow(null,(function(e){return e}));if(d){var h=d.getGui();if(h)(t?n:l.current).appendChild(h),a.current=d}}}else p()}),[e,t,s]),i.useEffectOnce((function(){return p}))}},6556:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=o(n(2791)),a=n(2724),l=r(n(332)),u=r(n(1008)),c=r(n(961)),p=n(1622),d=n(6817);t.default=s.memo((function(){var e=s.useContext(a.BeansContext),t=e.context,n=e.agStackComponentsRegistry,o=e.resizeObserverService,r=s.useState(""),h=r[0],f=r[1],g=s.useState(0),m=g[0],v=g[1],y=s.useState(0),C=y[0],w=y[1],b=s.useState(0),_=b[0],E=b[1],S=s.useState(0),R=S[0],O=S[1],P=s.useState(""),T=P[0],x=P[1],A=s.useState(""),D=A[0],N=A[1],L=s.useState(null),I=L[0],M=L[1],F=s.useState(null),k=F[0],G=F[1],H=s.useState(""),V=H[0],j=H[1],W=s.useState(null),B=W[0],U=W[1],z=s.useState("ag-layout-normal"),K=z[0],q=z[1],Z=s.useRef(null),Y=s.useRef(null),Q=s.useRef(null),$=s.useRef(null);u.default(" AG Grid Body ",Z),u.default(" AG Pinned Top ",Y),u.default(" AG Middle ",Q),u.default(" AG Pinned Bottom ",$),p.useEffectOnce((function(){var e=[],r=[];if(t){var s=function(o){var r=n.getComponentClass(o),i=t.createBean(new r);return e.push(i),i};Z.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),Z.current.appendChild(s("AG-FAKE-HORIZONTAL-SCROLL").getGui()),Z.current.appendChild(document.createComment(" AG Overlay Wrapper ")),Z.current.appendChild(s("AG-OVERLAY-WRAPPER").getGui());var a={setRowAnimationCssOnBodyViewport:f,setColumnCount:v,setRowCount:w,setTopHeight:E,setBottomHeight:O,setTopDisplay:x,setBottomDisplay:N,setColumnMovingCss:M,updateLayoutClasses:q,setAlwaysVerticalScrollClass:G,setPinnedTopBottomOverflowY:j,setCellSelectableCss:U,registerBodyViewportResizeListener:function(e){var t=o.observeResize(Q.current,e);r.push((function(){return t()}))}},l=t.createBean(new i.GridBodyCtrl);return e.push(l),l.setComp(a,Z.current,Q.current,Y.current,$.current),function(){t.destroyBeans(e),r.forEach((function(e){return e()}))}}}));var X=s.useMemo((function(){return d.classesList("ag-root","ag-unselectable",I,K)}),[I,K]),J=s.useMemo((function(){return d.classesList("ag-body-viewport",h,K,k,B)}),[h,K,k,B]),ee=s.useMemo((function(){return d.classesList("ag-floating-top",B)}),[B]),te=s.useMemo((function(){return d.classesList("ag-floating-bottom",B)}),[B]),ne=s.useMemo((function(){return{height:_,minHeight:_,display:T,overflowY:V}}),[_,T,V]),oe=s.useMemo((function(){return{height:R,minHeight:R,display:D,overflowY:V}}),[R,D,V]),re=function(e){return s.default.createElement(c.default,{name:e,key:e+"-container"})},ie=function(e){var t=e.section,n=e.children,o=e.className,r=e.style;return s.default.createElement("div",{ref:t,className:o,role:"presentation",style:r},n.map(re))};return s.default.createElement("div",{ref:Z,className:X,role:"grid","aria-colcount":m,"aria-rowcount":C},s.default.createElement(l.default,null),ie({section:Y,className:ee,style:ne,children:[i.RowContainerName.TOP_LEFT,i.RowContainerName.TOP_CENTER,i.RowContainerName.TOP_RIGHT,i.RowContainerName.TOP_FULL_WIDTH]}),ie({section:Q,className:J,children:[i.RowContainerName.LEFT,i.RowContainerName.CENTER,i.RowContainerName.RIGHT,i.RowContainerName.FULL_WIDTH]}),ie({section:$,className:te,style:oe,children:[i.RowContainerName.BOTTOM_LEFT,i.RowContainerName.BOTTOM_CENTER,i.RowContainerName.BOTTOM_RIGHT,i.RowContainerName.BOTTOM_FULL_WIDTH]}))}))},3970:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=o(n(2791)),a=n(2724),l=r(n(6556)),u=r(n(1008)),c=r(n(2051)),p=n(1622),d=n(6817);t.default=s.memo((function(e){var t=e.context,n=s.useState(""),o=n[0],r=n[1],h=s.useState(""),f=h[0],g=h[1],m=s.useState(""),v=m[0],y=m[1],C=s.useState(null),w=C[0],b=C[1],_=s.useState(null),E=_[0],S=_[1],R=s.useState(!1),O=R[0],P=R[1],T=s.useState(),x=T[0],A=T[1],D=s.useRef(null),N=s.useRef(null),L=s.useRef(),I=s.useRef(null),M=s.useRef((function(){})),F=s.useCallback((function(){}),[]),k=s.useMemo((function(){return t.getBean("beans")}),[]);u.default(" AG Grid ",N),p.useEffectOnce((function(){var e=D.current=t.createBean(new i.GridCtrl);return function(){t.destroyBean(e),D.current=null}})),p.useEffectOnce((function(){var e=D.current;M.current=e.focusInnerElement.bind(e);var t={destroyGridUi:function(){},setRtlClass:r,addOrRemoveKeyboardFocusClass:function(e){return g(e?i.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){L.current.forceFocusOutOfContainer()},updateLayoutClasses:y,getFocusableContainers:function(){var e=[],t=N.current.querySelector(".ag-root"),n=N.current.querySelector(".ag-side-bar");return t&&e.push(t),n&&e.push(n),e},setCursor:b,setUserSelect:S};e.setComp(t,N.current,N.current),P(!0)})),s.useEffect((function(){if(x){var e=D.current,n=[],o=k.agStackComponentsRegistry,r=o.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),i=o.getComponentClass("AG-SIDE-BAR"),s=o.getComponentClass("AG-STATUS-BAR"),a=o.getComponentClass("AG-WATERMARK"),l=o.getComponentClass("AG-PAGINATION"),u=[],c=N.current,p=I.current;if(e.showDropZones()&&r){var d=t.createBean(new r),h=d.getGui();c.insertAdjacentElement("afterbegin",h),u.push(h),n.push(d)}if(e.showSideBar()&&i){var f=t.createBean(new i),g=(h=f.getGui(),p.querySelector(".ag-tab-guard-bottom"));g&&(g.insertAdjacentElement("beforebegin",h),u.push(h)),n.push(f)}if(e.showStatusBar()&&s){var m=t.createBean(new s);h=m.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(m)}if(l){var v=t.createBean(new l);h=v.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(v)}if(e.showWatermark()&&a){var y=t.createBean(new a);h=y.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(y)}return function(){t.destroyBeans(n),u.forEach((function(e){e.parentElement&&e.parentElement.removeChild(e)}))}}}),[x]);var G=s.useMemo((function(){return d.classesList("ag-root-wrapper",o,f,v)}),[o,f,v]),H=s.useMemo((function(){return d.classesList("ag-root-wrapper-body","ag-focus-managed",v)}),[v]),V=s.useMemo((function(){return{userSelect:null!=E?E:"",WebkitUserSelect:null!=E?E:"",cursor:null!=w?w:""}}),[E,w]),j=I.current,W=s.useCallback((function(e){L.current=e,A(!0)}),[]);return s.default.createElement("div",{ref:N,className:G,style:V},s.default.createElement("div",{className:H,ref:I},O&&j&&s.default.createElement(a.BeansContext.Provider,{value:k},s.default.createElement(c.default,{ref:W,eFocusableElement:j,onTabKeyDown:F,gridCtrl:D.current},s.default.createElement(l.default,null)))))}))},332:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=r(n(1212)),c=n(1622);t.default=i.memo((function(){var e=i.useState(new l.CssClasses),t=e[0],n=e[1],o=i.useState(),r=o[0],p=o[1],d=i.useContext(s.BeansContext).context,h=i.useRef(null);c.useEffectOnce((function(){var e={addOrRemoveCssClass:function(e,t){return n((function(n){return n.setClass(e,t)}))},setHeightAndMinHeight:function(e){return p(e)}},t=d.createBean(new a.GridHeaderCtrl);return t.setComp(e,h.current,h.current),function(){d.destroyBean(t)}}));var f=i.useMemo((function(){return"ag-header "+t.toString()}),[t]),g=i.useMemo((function(){return{height:r,minHeight:r}}),[r]);return i.default.createElement("div",{ref:h,className:f,style:g,role:"presentation"},i.default.createElement(u.default,{pinned:a.Constants.PINNED_LEFT}),i.default.createElement(u.default,{pinned:null}),i.default.createElement(u.default,{pinned:a.Constants.PINNED_RIGHT}))}))},273:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=n(8285),c=n(1622);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(),r=n[0],p=n[1],d=i.useState(),h=d[0],f=d[1],g=i.useState(),m=g[0],v=g[1],y=i.useState(),C=y[0],w=y[1],b=i.useState(),_=b[0],E=b[1],S=i.useState(),R=S[0],O=S[1],P=i.useRef(null),T=i.useRef(null),x=i.useRef(),A=e.ctrl,D=i.useMemo((function(){return new a.CssClassManager((function(){return P.current}))}),[]);c.useEffectOnce((function(){var e={setWidth:function(e){return p(e)},addOrRemoveCssClass:function(e,t){return D.addOrRemoveCssClass(e,t)},setColId:function(e){return v(e)},setTitle:function(e){return f(e)},setAriaDescription:function(e){return E(e)},setAriaSort:function(e){return w(e)},setUserCompDetails:function(e){return O(e)},getUserCompInstance:function(){return x.current||void 0}};A.setComp(e,P.current,T.current);var t=A.getSelectAllGui();T.current.insertAdjacentElement("afterend",t)})),i.useEffect((function(){return u.showJsComp(R,t,P.current,x)}),[R]),i.useEffect((function(){var e=void 0;P.current.childNodes.forEach((function(t){null!=t&&t!==T.current&&(e=t)})),A.setDragSource(e)}),[R]);var N=i.useMemo((function(){return{width:r}}),[r]),L=i.useMemo((function(){var e;return!!((null===(e=R)||void 0===e?void 0:e.componentFromFramework)&&l.isComponentStateless(R.componentClass))}),[R]),I=R&&R.componentFromFramework,M=R&&R.componentClass;return i.default.createElement("div",{ref:P,className:"ag-header-cell",style:N,title:h,"col-id":m,"aria-sort":C,role:"columnheader",tabIndex:-1,"aria-description":_},i.default.createElement("div",{ref:T,className:"ag-header-cell-resize",role:"presentation"}),I&&L&&i.default.createElement(M,o({},R.params)),I&&!L&&i.default.createElement(M,o({},R.params,{ref:x})))}))},1478:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=n(8285),c=n(1622);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(new l.CssClasses),r=n[0],p=n[1],d=i.useState(new l.CssClasses),h=d[0],f=d[1],g=i.useState(new l.CssClasses),m=g[0],v=g[1],y=i.useState(),C=y[0],w=y[1],b=i.useState(),_=b[0],E=b[1],S=i.useRef(null),R=i.useRef(null),O=i.useRef(null),P=i.useRef(null),T=i.useRef(!1),x=i.useRef(),A=i.useRef();c.useEffectOnce((function(){A.current=new a.AgPromise((function(e){x.current=e}))}));var D=function(e){T.current||null!=e&&(x.current&&x.current(e),T.current=!0)},N=e.ctrl;c.useEffectOnce((function(){var e={addOrRemoveCssClass:function(e,t){return p((function(n){return n.setClass(e,t)}))},addOrRemoveBodyCssClass:function(e,t){return f((function(n){return n.setClass(e,t)}))},addOrRemoveButtonWrapperCssClass:function(e,t){return v((function(n){return n.setClass(e,t)}))},setWidth:function(e){return w(e)},setCompDetails:function(e){return E(e)},getFloatingFilterComp:function(){return A.current?A.current:null},setMenuIcon:function(e){return P.current.appendChild(e)}};N.setComp(e,S.current,P.current,R.current)})),i.useEffect((function(){return u.showJsComp(_,t,R.current,D)}),[_]);var L=i.useMemo((function(){return{width:C}}),[C]),I=i.useMemo((function(){return"ag-header-cell ag-floating-filter "+r.toString()}),[r]),M=i.useMemo((function(){return h.toString()}),[h]),F=i.useMemo((function(){return"ag-floating-filter-button "+m.toString()}),[h]),k=i.useMemo((function(){return!!(_&&_.componentFromFramework&&l.isComponentStateless(_.componentClass))}),[_]),G=_&&_.componentFromFramework,H=_&&_.componentClass;return i.default.createElement("div",{ref:S,className:I,style:L,role:"gridcell",tabIndex:-1},i.default.createElement("div",{ref:R,className:M,role:"presentation"},G&&k&&i.default.createElement(H,o({},_.params)),G&&!k&&i.default.createElement(H,o({},_.params,{ref:D}))),i.default.createElement("div",{ref:O,className:F,role:"presentation"},i.default.createElement("button",{ref:P,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}))},5267:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(8285),l=n(1622),u=n(6817);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(new u.CssClasses),r=n[0],c=n[1],p=i.useState(new u.CssClasses),d=p[0],h=p[1],f=i.useState(),g=f[0],m=f[1],v=i.useState(),y=v[0],C=v[1],w=i.useState(),b=w[0],_=w[1],E=i.useState(),S=E[0],R=E[1],O=i.useState(),P=O[0],T=O[1],x=i.useRef(null),A=i.useRef(null),D=e.ctrl;l.useEffectOnce((function(){var e={setWidth:function(e){return m(e)},addOrRemoveCssClass:function(e,t){return c((function(n){return n.setClass(e,t)}))},setColId:function(e){return _(e)},setTitle:function(e){return C(e)},setUserCompDetails:function(e){return T(e)},addOrRemoveResizableCssClass:function(e,t){return h((function(n){return n.setClass(e,t)}))},setAriaExpanded:function(e){return R(e)}};D.setComp(e,x.current,A.current)})),i.useEffect((function(){return a.showJsComp(P,t,x.current)}),[P]),i.useEffect((function(){var e=void 0;x.current.childNodes.forEach((function(t){null!=t&&t!==A.current&&(e=t)})),e&&D.setDragSource(e)}),[P]);var N=i.useMemo((function(){return{width:g}}),[g]),L=i.useMemo((function(){return"ag-header-group-cell "+r.toString()}),[r]),I=i.useMemo((function(){return"ag-header-cell-resize "+d.toString()}),[d]),M=P&&P.componentFromFramework,F=P&&P.componentClass;return i.default.createElement("div",{ref:x,className:L,style:N,title:y,"col-id":b,role:"columnheader",tabIndex:-1,"aria-expanded":S},M&&i.default.createElement(F,o({},P.params)),i.default.createElement("div",{ref:A,className:I}))}))},9979:function(e,t,n){"use strict";var o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(2724),u=i(n(273)),c=i(n(5267)),p=i(n(1478)),d=n(1622);t.default=a.memo((function(e){var t=a.useContext(l.BeansContext).gridOptionsWrapper,n=a.useState(),r=n[0],i=n[1],h=a.useState(),f=h[0],g=h[1],m=a.useState(),v=m[0],y=m[1],C=a.useState(),w=C[0],b=C[1],_=a.useState(),E=_[0],S=_[1],R=a.useState([]),O=R[0],P=R[1],T=a.useRef(null),x=e.ctrl,A=x.getType()===s.HeaderRowType.COLUMN,D=x.getType()===s.HeaderRowType.COLUMN_GROUP,N=x.getType()===s.HeaderRowType.FLOATING_FILTER,L=a.useCallback((function(e,n){if(t.isEnsureDomOrder())return n;var r=s._.mapById(e,(function(e){return e.getInstanceId()})),i=s._.mapById(n,(function(e){return e.getInstanceId()})),a=e.filter((function(e){return i.has(e.getInstanceId())})),l=n.filter((function(e){return!r.has(e.getInstanceId())}));return o(a,l)}),[]);d.useEffectOnce((function(){var e={setTransform:function(e){return i(e)},setHeight:function(e){return g(e)},setTop:function(e){return y(e)},setHeaderCtrls:function(e){return P((function(t){return L(t,e)}))},setWidth:function(e){return b(e)},setAriaRowIndex:function(e){return S(e)}};x.setComp(e)}));var I=a.useMemo((function(){return{transform:r,height:f,top:v,width:w}}),[r,f,v,w]),M=a.useMemo((function(){var e=["ag-header-row"];return A&&e.push("ag-header-row-column"),D&&e.push("ag-header-row-column-group"),N&&e.push("ag-header-row-column-filter"),e.join(" ")}),[]),F=a.useCallback((function(e){switch(x.getType()){case s.HeaderRowType.COLUMN_GROUP:return a.default.createElement(c.default,{ctrl:e,key:e.getInstanceId()});case s.HeaderRowType.FLOATING_FILTER:return a.default.createElement(p.default,{ctrl:e,key:e.getInstanceId()});default:return a.default.createElement(u.default,{ctrl:e,key:e.getInstanceId()})}}),[]);return a.default.createElement("div",{ref:T,className:M,role:"row",style:I,"aria-rowindex":E},O.map(F))}))},1212:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=r(n(9979)),c=n(1622);t.default=i.memo((function(e){var t=i.useState(new l.CssClasses),n=t[0],o=t[1],r=i.useState(),p=r[0],d=r[1],h=i.useState(),f=h[0],g=h[1],m=i.useState(),v=m[0],y=m[1],C=i.useState([]),w=C[0],b=C[1],_=i.useContext(s.BeansContext).context,E=i.useRef(null),S=e.pinned===a.Constants.PINNED_LEFT,R=e.pinned===a.Constants.PINNED_RIGHT,O=!S&&!R;c.useEffectOnce((function(){var t={addOrRemoveCssClass:function(e,t){return o((function(n){return n.setClass(e,t)}))},setCtrls:function(e){return b(e)},setCenterWidth:function(e){return d(e)},setContainerTransform:function(e){return g(e)},setPinnedContainerWidth:function(e){return y(e)}},n=_.createBean(new a.HeaderRowContainerCtrl(e.pinned));return n.setComp(t,E.current),function(){_.destroyBean(n)}}));var P=i.useMemo((function(){return n.toString()}),[n]),T=function(){return w.map((function(e){return i.default.createElement(u.default,{ctrl:e,key:e.getInstanceId()})}))},x=i.useMemo((function(){return{width:p,transform:f}}),[p,f]),A=i.useMemo((function(){return{width:v,minWidth:v,maxWidth:v}}),[v]);return i.default.createElement(i.default.Fragment,null,S&&i.default.createElement("div",{ref:E,className:"ag-pinned-left-header "+P,role:"presentation",style:A},T()),R&&i.default.createElement("div",{ref:E,className:"ag-pinned-right-header "+P,role:"presentation",style:A},T()),O&&i.default.createElement("div",{ref:E,className:"ag-header-viewport "+P,role:"presentation"},i.default.createElement("div",{className:"ag-header-container",role:"rowgroup",style:x},T())))}))},8285:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showJsComp=function(e,t,o,r){if(!(!e||e.componentFromFramework)){var i=e.newAgStackInstance();if(i){var s,a,l=!1;return i.then((function(e){l?t.destroyBean(e):(a=(s=e).getGui(),o.appendChild(a),n(r,s))})),function(){l=!0,s&&(a&&a.parentElement&&a.parentElement.removeChild(a),t.destroyBean(s),r&&n(r,void 0))}}}};var n=function(e,t){e&&(e instanceof Function?e(t):e.current=t)};t.createSyncJsComp=function(e){var t=e.newAgStackInstance();if(t)return t.resolveNow(null,(function(e){return e}))}},1008:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1622);t.default=function(e,t){o.useEffectOnce((function(){var n=t.current,o=n.parentElement;if(o){var r=document.createComment(e);return o.insertBefore(r,n),function(){o.removeChild(r)}}}))}},2939:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(2791)),l=n(1167),u=n(8285),c=n(6817),p=n(2724),d=s(n(4148)),h=n(1622);t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=e.rowCtrl,i=e.containerType,s=a.useState(),f=s[0],g=s[1],m=a.useState(),v=m[0],y=m[1],C=a.useState(),w=C[0],b=C[1],_=a.useState(),E=_[0],S=_[1],R=a.useState(),O=R[0],P=R[1],T=a.useState(),x=T[0],A=T[1],D=a.useState({list:[],instanceIdMap:new Map}),N=D[0],L=D[1],I=a.useState(),M=I[0],F=I[1],k=a.useState(!1),G=k[0],H=k[1],V=a.useState(n.getInitialRowTop()),j=V[0],W=V[1],B=a.useState(n.getInitialTransform()),U=B[0],z=B[1],K=a.useRef(null),q=a.useRef(),Z=a.useRef(!1),Y=a.useState(0),Q=Y[0],$=Y[1];a.useEffect((function(){var e;if(!Z.current&&M&&!(Q>10)){var t=null===(e=K.current)||void 0===e?void 0:e.firstChild;t?(n.setupDetailRowAutoHeight(t),Z.current=!0):$((function(e){return e+1}))}}),[M,Q]);var X=a.useMemo((function(){return new l.CssClassManager((function(){return K.current}))}),[]);h.useEffectOnce((function(){if(n.isAlive()){var e={setTop:function(e){return W(e)},setTransform:function(e){return z(e)},addOrRemoveCssClass:function(e,t){return X.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return H(e)},setRowIndex:function(e){return g(e)},setRowId:function(e){return y(e)},setRowBusinessKey:function(e){return S(e)},setTabIndex:function(e){return P(e)},setUserStyles:function(e){return A(e)},setRole:function(e){return b(e)},setCellCtrls:function(e){return L((function(t){return function(e,t,n){if(n){var o={list:t,instanceIdMap:new Map};return t.forEach((function(e){return o.instanceIdMap.set(e.getInstanceId(),e)})),o}var i=[],s=[],a=new Map,l=new Map;return t.forEach((function(e){return l.set(e.getInstanceId(),e)})),e.list.forEach((function(e){var t=e.getInstanceId();l.has(t)&&(i.push(e),a.set(t,e))})),t.forEach((function(t){var n=t.getInstanceId();e.instanceIdMap.has(n)||(s.push(t),a.set(n,t))})),{list:r(i,s),instanceIdMap:a}}(t,e,G)}))},showFullWidth:function(e){return F(e)},getFullWidthCellRenderer:function(){return q.current}};n.setComp(e,K.current,i)}})),a.useEffect((function(){return u.showJsComp(M,t,K.current,q)}),[M]);var J=a.useMemo((function(){var e={top:j,transform:U};return Object.assign(e,x),e}),[j,U,x]),ee=M&&M.componentFromFramework,te=null!=N,ne=a.useMemo((function(){var e;return!!((null===(e=M)||void 0===e?void 0:e.componentFromFramework)&&c.isComponentStateless(M.componentClass))}),[M]);return a.default.createElement("div",{ref:K,role:w,style:J,"row-index":f,"row-id":v,"row-business-key":E,tabIndex:O},te&&N.list.map((function(e){return a.default.createElement(d.default,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})})),ee&&function(){var e=M.componentClass;return a.default.createElement(a.default.Fragment,null,ne&&a.default.createElement(e,o({},M.params)),!ne&&a.default.createElement(e,o({},M.params,{ref:q})))}())}))},961:function(e,t,n){"use strict";var o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(6817),u=i(n(1008)),c=i(n(2939)),p=n(2724),d=n(1622);t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=a.useState(""),r=n[0],i=n[1],h=a.useState([]),f=h[0],g=h[1],m=a.useState([]),v=m[0],y=m[1],C=a.useState(!1),w=C[0],b=C[1],_=a.useState(""),E=_[0],S=_[1],R=e.name,O=a.useMemo((function(){return s.getRowContainerTypeForName(R)}),[R]),P=a.useRef(null),T=a.useRef(null),x=a.useRef(null),A=a.useMemo((function(){return s.RowContainerCtrl.getRowContainerCssClasses(R)}),[R]),D=a.useMemo((function(){return l.classesList(A.wrapper)}),[]),N=a.useMemo((function(){return l.classesList(A.viewport)}),[]),L=a.useMemo((function(){return l.classesList(A.container)}),[]),I=R===s.RowContainerName.CENTER,M=R===s.RowContainerName.TOP_CENTER||R===s.RowContainerName.BOTTOM_CENTER,F=!I&&!M,k=I?P:M?T:x;u.default(" AG Row Container "+R+" ",k),a.useEffect((function(){g((function(e){if(w)return v;var t=e.filter((function(e){return v.indexOf(e)>=0})),n=v.filter((function(e){return t.indexOf(e)<0}));return o(t,n)}))}),[w,v]),d.useEffectOnce((function(){var e=[],n={setViewportHeight:i,setRowCtrls:function(e){return y(e)},setDomOrder:function(e){return b(e)},setContainerWidth:function(e){return S(e)}},o=t.createBean(new s.RowContainerCtrl(R));return e.push(o),o.setComp(n,x.current,T.current,P.current),function(){t.destroyBeans(e)}}));var G=a.useMemo((function(){return{height:r}}),[r]),H=a.useMemo((function(){return{width:E}}),[E]),V=function(){return a.default.createElement("div",{className:L,ref:x,role:v.length?"rowgroup":"presentation",style:H},f.map((function(e){return a.default.createElement(c.default,{rowCtrl:e,containerType:O,key:e.getInstanceId()})})))};return a.default.createElement(a.default.Fragment,null,I&&a.default.createElement("div",{className:D,ref:P,role:"presentation"},a.default.createElement("div",{className:N,ref:T,role:"presentation",style:G},V())),M&&a.default.createElement("div",{className:N,ref:T,role:"presentation",style:G},V()),F&&V())}))},2051:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2791)),i=n(1167),s=n(2724),a=n(1622),l=r.forwardRef((function(e,t){var n=e.children,o=e.eFocusableElement,l=e.onTabKeyDown,u=e.gridCtrl,c=r.useContext(s.BeansContext).context,p=r.useRef(null),d=r.useRef(null),h=r.useRef(),f=r.useState(),g=f[0],m=f[1];r.useImperativeHandle(t,(function(){return{forceFocusOutOfContainer:function(){h.current.forceFocusOutOfContainer()}}})),a.useEffectOnce((function(){var e=p.current,t=d.current,n={setTabIndex:function(e){return m(null==e?void 0:parseInt(e,10))}},r=h.current=c.createBean(new i.TabGuardCtrl({comp:n,eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:l,focusInnerElement:function(e){return u.focusInnerElement(e)}}));return function(){c.destroyBean(r)}}));var v=function(e){return r.default.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:g,ref:"top"===e?p:d})};return r.default.createElement(r.default.Fragment,null,v("top"),n,v("bottom"))}));t.default=r.memo(l)},1622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2791);t.useEffectOnce=function(e){var t=o.useRef(),n=o.useRef(!1),r=o.useRef(!1),i=o.useState(0),s=(i[0],i[1]);n.current&&(r.current=!0),o.useEffect((function(){return n.current||(t.current=e(),n.current=!0),s((function(e){return e+1})),function(){r.current&&t.current&&t.current()}}),[])}},6817:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.classesList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return null!=e&&""!==e}));return n.join(" ")};var o=function(){function e(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.classesMap={},t.forEach((function(t){e.classesMap[t]=!0}))}return e.prototype.setClass=function(t,o){if(!!this.classesMap[t]==o)return this;var r=new e;return r.classesMap=n({},this.classesMap),r.classesMap[t]=o,r},e.prototype.toString=function(){var e=this;return Object.keys(this.classesMap).filter((function(t){return e.classesMap[t]})).join(" ")},e}();t.CssClasses=o,t.isComponentStateless=function(e){return"function"===typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"===typeof e&&e.$$typeof===("function"===typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}},6745:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(2791)),l=s(n(2007)),u=i(n(1167)),c=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n}return o(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return a.default.Children.map(e,(function(e){return e?t.toColDef(e.props):null}))},t.toColDef=function(e){var n=e.children,o=r(e,["children"]);return t.hasChildColumns(n)&&(o.children=t.mapChildColumnDefs(n)),o},t.hasChildColumns=function(e){return a.default.Children.count(e)>0},t}(a.Component);function p(e,t){e.forEach((function(e){c[e]=t}))}t.AgGridColumn=c,p(u.ColDefUtil.BOOLEAN_PROPERTIES,l.default.bool),p(u.ColDefUtil.STRING_PROPERTIES,l.default.string),p(u.ColDefUtil.OBJECT_PROPERTIES,l.default.object),p(u.ColDefUtil.ARRAY_PROPERTIES,l.default.array),p(u.ColDefUtil.NUMBER_PROPERTIES,l.default.number),p(u.ColDefUtil.FUNCTION_PROPERTIES,l.default.func)},4584:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(n=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var o=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),r=function(){function e(){}return e.prototype.areEqual=function(t,n){return e.areEquivalent(e.copy(t),e.copy(n))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!==typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{})},e.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"===typeof e&&isNaN(e)},e.areEquivalent=function(t,n){if(t=e.unwrapStringOrNumber(t),n=e.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!==typeof n)return!1;if(e.isNaN(t)&&e.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"===typeof t)return!1;if("object"!==typeof t||t.$$typeof&&"Symbol(react.element)"===t.$$typeof.toString())return t==n;if(Object.isFrozen(t)||Object.isFrozen(n))return t===n;var o=void 0===t.areEquivPropertyTracking,r=void 0===n.areEquivPropertyTracking;try{var i=void 0;if(o)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===n})))return!0;if(r)n.areEquivPropertyTracking=[];else if(n.areEquivPropertyTracking.some((function(e){return e===t})))return!0;t.areEquivPropertyTracking.push(n),n.areEquivPropertyTracking.push(t);var s={};for(i in t)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in n)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in s)if(!this.areEquivalent(t[i],n[i]))return!1;return!0}finally{o&&delete t.areEquivPropertyTracking,r&&delete n.areEquivPropertyTracking}},e}(),i=function(){function e(){var e;this.strategyMap=((e={})[n.DeepValueCheck]=new r,e[n.IdentityCheck]=new o((function(e,t){return e===t})),e[n.NoCheck]=new o((function(e,t){return!1})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=i},3507:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=0;t.default=function(){return"agPortalKey_"+ ++n}},8665:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2791),a=n(4164),l=n(1167),u=n(294),c=n(8340),p=i(n(3507)),d=function(e){function t(t,n,o){var r=e.call(this,t,n,o)||this;return r.oldPortal=null,r.key=p.default(),r.portalKey=p.default(),r}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new l.AgPromise((function(e){return t.createReactComponent(e)}))},t.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=s.createElement(this.reactComponent,r(r({},e),{key:this.key})),this.portal=a.createPortal(this.reactElement,this.eParentElement,this.portalKey)},t.prototype.createReactComponent=function(e){this.portalManager.mountReactPortal(this.portal,this,(function(t){e(t)}))},t.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},t.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var t=console.error;try{return console.error=function(){},""===c.renderToStaticMarkup(s.createElement(this.reactComponent,e))}catch(n){}finally{console.error=t}return!1},t.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},t.prototype.fallbackMethod=function(e,t){var n=this[e+"Component"];if(n)return n.bind(this)(t)},t.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]},t}(u.ReactComponent);t.NewReactComponent=d},3365:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(t,n,o){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=n||"div",this.parent=t,this.maxComponentCreationTimeMs=o||e.MAX_COMPONENT_CREATION_TIME_IN_MS}return e.prototype.getPortals=function(){return this.portals},e.prototype.destroy=function(){this.destroyed=!0},e.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},e.prototype.getComponentWrappingElement=function(){return this.wrappingElement},e.prototype.mountReactPortal=function(e,t,o){this.portals=n(this.portals,[e]),this.waitForInstance(t,o),this.batchUpdate()},e.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},e.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout((function(){e.destroyed||e.parent.forceUpdate((function(){e.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0)},e.prototype.waitForInstance=function(e,t,n){var o=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout((function(){o.waitForInstance(e,t,n)}))}},e.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,e}();t.PortalManager=o},294:function(e,t){"use strict";var n=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,n,o){var r=e.call(this)||this;return r.portal=null,r.reactComponent=t,r.portalManager=n,r.componentType=o,r.statelessComponent=r.isStateless(r.reactComponent),r}return n(t,e),t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},t.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach((function(t){return e.eParentElement.classList.add(t)})))},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},t.prototype.hasSymbol=function(){return"function"===typeof Symbol&&Symbol.for},t.prototype.isStateless=function(e){return"function"===typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"===typeof e&&e.$$typeof===this.getMemoType()},t.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},t.prototype.callMethod=function(e,t){var n=this,o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(o){var r=o[e];return r?r.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}setTimeout((function(){return n.callMethod(e,t)}))},t.prototype.addMethod=function(e,t){this[e]=t},t}((function(){}));t.ReactComponent=o},9575:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=r(n(5728)),a=r(n(7627)),l=function(e){function t(t){var n=e.call(this)||this;return n.frameworkComponents={agGroupCellRenderer:s.default,agGroupRowRenderer:s.default,agDetailCellRenderer:a.default},n.reactUi=t,n}return o(t,e),t.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},t.prototype.isFrameworkComponent=function(e){if(!e)return!1;var t=e.prototype;return!(t&&"getGui"in t)},t}(i.VanillaFrameworkOverrides);t.ReactFrameworkOverrides=l},2953:function(e,t,n){t.AgGridReact=n(7945).AgGridReact,n(6745).AgGridColumn,n(4584).ChangeDetectionStrategyType,n(2553).AgGridReactUi},4569:function(e,t,n){e.exports=n(8036)},3381:function(e,t,n){"use strict";var o=n(3589),r=n(7297),i=n(9301),s=n(9774),a=n(1804),l=n(9145),u=n(5411),c=n(6789),p=n(4531),d=n(6569),h=n(6261);e.exports=function(e){return new Promise((function(t,n){var f,g=e.data,m=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}o.isFormData(g)&&o.isStandardBrowserEnv()&&delete m["Content-Type"];var C=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+b)}var _=a(e.baseURL,e.url);function E(){if(C){var o="getAllResponseHeaders"in C?l(C.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:o,config:e,request:C};r((function(e){t(e),y()}),(function(e){n(e),y()}),i),C=null}}if(C.open(e.method.toUpperCase(),s(_,e.params,e.paramsSerializer),!0),C.timeout=e.timeout,"onloadend"in C?C.onloadend=E:C.onreadystatechange=function(){C&&4===C.readyState&&(0!==C.status||C.responseURL&&0===C.responseURL.indexOf("file:"))&&setTimeout(E)},C.onabort=function(){C&&(n(new p("Request aborted",p.ECONNABORTED,e,C)),C=null)},C.onerror=function(){n(new p("Network Error",p.ERR_NETWORK,e,C,C)),C=null},C.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",o=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new p(t,o.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,C)),C=null},o.isStandardBrowserEnv()){var S=(e.withCredentials||u(_))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in C&&o.forEach(m,(function(e,t){"undefined"===typeof g&&"content-type"===t.toLowerCase()?delete m[t]:C.setRequestHeader(t,e)})),o.isUndefined(e.withCredentials)||(C.withCredentials=!!e.withCredentials),v&&"json"!==v&&(C.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&C.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&C.upload&&C.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){C&&(n(!e||e&&e.type?new d:e),C.abort(),C=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||(g=null);var R=h(_);R&&-1===["http","https","file"].indexOf(R)?n(new p("Unsupported protocol "+R+":",p.ERR_BAD_REQUEST,e)):C.send(g)}))}},8036:function(e,t,n){"use strict";var o=n(3589),r=n(4049),i=n(3773),s=n(777);var a=function e(t){var n=new i(t),a=r(i.prototype.request,n);return o.extend(a,i.prototype,n),o.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(1709));a.Axios=i,a.CanceledError=n(6569),a.CancelToken=n(6857),a.isCancel=n(5517),a.VERSION=n(7600).version,a.toFormData=n(1397),a.AxiosError=n(4531),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(8089),a.isAxiosError=n(9580),e.exports=a,e.exports.default=a},6857:function(e,t,n){"use strict";var o=n(6569);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,o=n._listeners.length;for(t=0;t<o;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,o=new Promise((function(e){n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e){n.reason||(n.reason=new o(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},6569:function(e,t,n){"use strict";var o=n(4531);function r(e){o.call(this,null==e?"canceled":e,o.ERR_CANCELED),this.name="CanceledError"}n(3589).inherits(r,o,{__CANCEL__:!0}),e.exports=r},5517:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3773:function(e,t,n){"use strict";var o=n(3589),r=n(9774),i=n(7470),s=n(2733),a=n(777),l=n(1804),u=n(7835),c=u.validators;function p(e){this.defaults=e,this.interceptors={request:new i,response:new i}}p.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var o=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var p=[s,void 0];for(Array.prototype.unshift.apply(p,o),p=p.concat(l),i=Promise.resolve(t);p.length;)i=i.then(p.shift(),p.shift());return i}for(var d=t;o.length;){var h=o.shift(),f=o.shift();try{d=h(d)}catch(g){f(g);break}}try{i=s(d)}catch(g){return Promise.reject(g)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},p.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},o.forEach(["delete","get","head","options"],(function(e){p.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,r){return this.request(a(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}p.prototype[e]=t(),p.prototype[e+"Form"]=t(!0)})),e.exports=p},4531:function(e,t,n){"use strict";var o=n(3589);function r(e,t,n,o,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}o.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=r.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(r,s),Object.defineProperty(i,"isAxiosError",{value:!0}),r.from=function(e,t,n,s,a,l){var u=Object.create(i);return o.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,n,s,a),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},7470:function(e,t,n){"use strict";var o=n(3589);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},1804:function(e,t,n){"use strict";var o=n(4044),r=n(9549);e.exports=function(e,t){return e&&!o(t)?r(e,t):t}},2733:function(e,t,n){"use strict";var o=n(3589),r=n(2693),i=n(5517),s=n(1709),a=n(6569);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},777:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return o.isPlainObject(e)&&o.isPlainObject(t)?o.merge(e,t):o.isPlainObject(t)?o.merge({},t):o.isArray(t)?t.slice():t}function i(n){return o.isUndefined(t[n])?o.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function s(e){if(!o.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return o.isUndefined(t[n])?o.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return o.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,r=t(e);o.isUndefined(r)&&t!==l||(n[e]=r)})),n}},7297:function(e,t,n){"use strict";var o=n(4531);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new o("Request failed with status code "+n.status,[o.ERR_BAD_REQUEST,o.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},2693:function(e,t,n){"use strict";var o=n(3589),r=n(1709);e.exports=function(e,t,n){var i=this||r;return o.forEach(n,(function(n){e=n.call(i,e,t)})),e}},1709:function(e,t,n){"use strict";var o=n(3589),r=n(4341),i=n(4531),s=n(6789),a=n(1397),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c={transitional:s,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(3381)),e}(),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=o.isObject(e),s=t&&t["Content-Type"];if((n=o.isFileList(e))||i&&"multipart/form-data"===s){var l=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,l&&new l)}return i||"application/json"===s?(u(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw i.from(a,i.ERR_BAD_RESPONSE,this,null,this.response);throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(3035)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){c.headers[e]=o.merge(l)})),e.exports=c},6789:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7600:function(e){e.exports={version:"0.27.2"}},4049:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];return e.apply(t,n)}}},9774:function(e,t,n){"use strict";var o=n(3589);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},9549:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},9301:function(e,t,n){"use strict";var o=n(3589);e.exports=o.isStandardBrowserEnv()?{write:function(e,t,n,r,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),o.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),o.isString(r)&&a.push("path="+r),o.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4044:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},9580:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e){return o.isObject(e)&&!0===e.isAxiosError}},5411:function(e,t,n){"use strict";var o=n(3589);e.exports=o.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var o=e;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=o.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4341:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){o.forEach(e,(function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])}))}},3035:function(e){e.exports=null},9145:function(e,t,n){"use strict";var o=n(3589),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(o.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=o.trim(e.substr(0,i)).toLowerCase(),n=o.trim(e.substr(i+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},6261:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8089:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1397:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,s){if(o.isPlainObject(i)||o.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+s);n.push(i),o.forEach(i,(function(n,i){if(!o.isUndefined(n)){var a,l=s?s+"."+i:i;if(n&&!s&&"object"===typeof n)if(o.endsWith(i,"{}"))n=JSON.stringify(n);else if(o.endsWith(i,"[]")&&(a=o.toArray(n)))return void a.forEach((function(e){!o.isUndefined(e)&&t.append(l,r(e))}));e(n,l)}})),n.pop()}else t.append(s,r(i))}(e),t}},7835:function(e,t,n){"use strict";var o=n(7600).version,r=n(4531),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+o+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,a){if(!1===e)throw new r(i(o," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!s[o]&&(s[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var s=o[i],a=t[s];if(a){var l=e[s],u=void 0===l||a(l,s,e);if(!0!==u)throw new r("option "+s+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+s,r.ERR_BAD_OPTION)}},validators:i}},3589:function(e,t,n){"use strict";var o,r=n(4049),i=Object.prototype.toString,s=(o=Object.create(null),function(e){var t=i.call(e);return o[t]||(o[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function u(e){return"undefined"===typeof e}var c=a("ArrayBuffer");function p(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=a("Date"),f=a("File"),g=a("Blob"),m=a("FileList");function v(e){return"[object Function]"===i.call(e)}var y=a("URLSearchParams");function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),l(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var w,b=(w="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:p,isPlainObject:d,isUndefined:u,isDate:h,isFile:f,isBlob:g,isFunction:v,isStream:function(e){return p(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:C,merge:function e(){var t={};function n(n,o){d(t[o])&&d(n)?t[o]=e(t[o],n):d(n)?t[o]=e({},n):l(n)?t[o]=n.slice():t[o]=n}for(var o=0,r=arguments.length;o<r;o++)C(arguments[o],n);return t},extend:function(e,t,n){return C(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,o){e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var o,r,i,s={};t=t||{};do{for(r=(o=Object.getOwnPropertyNames(e)).length;r-- >0;)s[i=o[r]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var o=e.indexOf(t,n);return-1!==o&&o===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:b,isFileList:m}},2618:function(e,t,n){var o;!function(){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},2110:function(e,t,n){"use strict";var o=n(8309),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return o.isMemo(e)?s:a[e.$$typeof]||r}a[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[o.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,o){if("string"!==typeof n){if(f){var r=h(n);r&&r!==f&&e(t,r,o)}var s=c(n);p&&(s=s.concat(p(n)));for(var a=l(t),g=l(n),m=0;m<s.length;++m){var v=s[m];if(!i[v]&&(!o||!o[v])&&(!g||!g[v])&&(!a||!a[v])){var y=d(n,v);try{u(t,v,y)}catch(C){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,C=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function b(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case p:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case l:return e;default:return t}}case r:return t}}}function _(e){return b(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||b(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return b(e)===u},t.isContextProvider=function(e){return b(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return b(e)===d},t.isFragment=function(e){return b(e)===i},t.isLazy=function(e){return b(e)===m},t.isMemo=function(e){return b(e)===g},t.isPortal=function(e){return b(e)===r},t.isProfiler=function(e){return b(e)===a},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===p||e===a||e===s||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===C||e.$$typeof===w||e.$$typeof===v)},t.typeOf=b},8309:function(e,t,n){"use strict";e.exports=n(746)},8559:function(e,t){!function(e){"use strict";var t="1.8.0";function n(e){var t,n,o,r;for(n=1,o=arguments.length;n<o;n++)for(t in r=arguments[n])e[t]=r[t];return e}var o=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function r(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var o=n.call(arguments,2);return function(){return e.apply(t,o.length?o.concat(n.call(arguments)):arguments)}}var i=0;function s(e){return"_leaflet_id"in e||(e._leaflet_id=++i),e._leaflet_id}function a(e,t,n){var o,r,i,s;return s=function(){o=!1,r&&(i.apply(n,r),r=!1)},i=function(){o?r=arguments:(e.apply(n,arguments),setTimeout(s,t),o=!0)},i}function l(e,t,n){var o=t[1],r=t[0],i=o-r;return e===o&&n?e:((e-r)%i+i)%i+r}function u(){return!1}function c(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function p(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d(e){return p(e).split(/\s+/)}function h(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?o(e.options):{}),t)e.options[n]=t[n];return e.options}function f(e,t,n){var o=[];for(var r in e)o.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(e[r]));return(t&&-1!==t.indexOf("?")?"&":"?")+o.join("&")}var g=/\{ *([\w_ -]+) *\}/g;function m(e,t){return e.replace(g,(function(e,n){var o=t[n];if(void 0===o)throw new Error("No value provided for variable "+e);return"function"===typeof o&&(o=o(t)),o}))}var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var C="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function w(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var b=0;function _(e){var t=+new Date,n=Math.max(0,16-(t-b));return b=t+n,window.setTimeout(e,n)}var E=window.requestAnimationFrame||w("RequestAnimationFrame")||_,S=window.cancelAnimationFrame||w("CancelAnimationFrame")||w("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function R(e,t,n){if(!n||E!==_)return E.call(window,r(e,t));e.call(t)}function O(e){e&&S.call(window,e)}var P={__proto__:null,extend:n,create:o,bind:r,get lastId(){return i},stamp:s,throttle:a,wrapNum:l,falseFn:u,formatNum:c,trim:p,splitWords:d,setOptions:h,getParamString:f,template:m,isArray:v,indexOf:y,emptyImageUrl:C,requestFn:E,cancelFn:S,requestAnimFrame:R,cancelAnimFrame:O};function T(){}function x(e){if("undefined"!==typeof L&&L&&L.Mixin){e=v(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}T.extend=function(e){var t=function(){h(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=t.__super__=this.prototype,i=o(r);for(var s in i.constructor=t,t.prototype=i,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(t[s]=this[s]);return e.statics&&n(t,e.statics),e.includes&&(x(e.includes),n.apply(null,[i].concat(e.includes))),n(i,e),delete i.statics,delete i.includes,i.options&&(i.options=r.options?o(r.options):{},n(i.options,e.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=i._initHooks.length;e<t;e++)i._initHooks[e].call(this)}},t},T.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},T.mergeOptions=function(e){return n(this.prototype.options,e),this},T.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"===typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var A={on:function(e,t,n){if("object"===typeof e)for(var o in e)this._on(o,e[o],t);else for(var r=0,i=(e=d(e)).length;r<i;r++)this._on(e[r],t,n);return this},off:function(e,t,n){if(arguments.length)if("object"===typeof e)for(var o in e)this._off(o,e[o],t);else{e=d(e);for(var r=1===arguments.length,i=0,s=e.length;i<s;i++)r?this._off(e[i]):this._off(e[i],t,n)}else delete this._events;return this},_on:function(e,t,n){if("function"===typeof t){this._events=this._events||{};var o=this._events[e];o||(o=[],this._events[e]=o),n===this&&(n=void 0);for(var r={fn:t,ctx:n},i=o,s=0,a=i.length;s<a;s++)if(i[s].fn===t&&i[s].ctx===n)return;i.push(r)}else console.warn("wrong listener type: "+typeof t)},_off:function(e,t,n){var o,r,i;if(this._events&&(o=this._events[e]))if(1!==arguments.length)if(n===this&&(n=void 0),"function"===typeof t){for(r=0,i=o.length;r<i;r++){var s=o[r];if(s.ctx===n&&s.fn===t)return this._firingCount&&(s.fn=u,this._events[e]=o=o.slice()),void o.splice(r,1)}console.warn("listener not found")}else console.warn("wrong listener type: "+typeof t);else{if(this._firingCount)for(r=0,i=o.length;r<i;r++)o[r].fn=u;delete this._events[e]}},fire:function(e,t,o){if(!this.listens(e,o))return this;var r=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var i=this._events[e];if(i){this._firingCount=this._firingCount+1||1;for(var s=0,a=i.length;s<a;s++){var l=i[s];l.fn.call(l.ctx||this,r)}this._firingCount--}}return o&&this._propagateEvent(r),this},listens:function(e,t){"string"!==typeof e&&console.warn('"string" type argument expected');var n=this._events&&this._events[e];if(n&&n.length)return!0;if(t)for(var o in this._eventParents)if(this._eventParents[o].listens(e,t))return!0;return!1},once:function(e,t,n){if("object"===typeof e){for(var o in e)this.once(o,e[o],t);return this}var i=r((function(){this.off(e,t,n).off(e,i,n)}),this);return this.on(e,t,n).on(e,i,n)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[s(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[s(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};A.addEventListener=A.on,A.removeEventListener=A.clearAllEventListeners=A.off,A.addOneTimeEventListener=A.once,A.fireEvent=A.fire,A.hasEventListeners=A.listens;var D=T.extend(A);function N(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var I=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function M(e,t,n){return e instanceof N?e:v(e)?new N(e[0],e[1]):void 0===e||null===e?e:"object"===typeof e&&"x"in e&&"y"in e?new N(e.x,e.y):new N(e,t,n)}function F(e,t){if(e)for(var n=t?[e,t]:e,o=0,r=n.length;o<r;o++)this.extend(n[o])}function k(e,t){return!e||e instanceof F?e:new F(e,t)}function G(e,t){if(e)for(var n=t?[e,t]:e,o=0,r=n.length;o<r;o++)this.extend(n[o])}function H(e,t){return e instanceof G?e:new G(e,t)}function V(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function j(e,t,n){return e instanceof V?e:v(e)&&"object"!==typeof e[0]?3===e.length?new V(e[0],e[1],e[2]):2===e.length?new V(e[0],e[1]):null:void 0===e||null===e?e:"object"===typeof e&&"lat"in e?new V(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new V(e,t,n)}N.prototype={clone:function(){return new N(this.x,this.y)},add:function(e){return this.clone()._add(M(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(M(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new N(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new N(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=I(this.x),this.y=I(this.y),this},distanceTo:function(e){var t=(e=M(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=M(e)).x===this.x&&e.y===this.y},contains:function(e){return e=M(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},F.prototype={extend:function(e){return e=M(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new N((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new N(this.min.x,this.max.y)},getTopRight:function(){return new N(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e="number"===typeof e[0]||e instanceof N?M(e):k(e))instanceof F?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=k(e);var t=this.min,n=this.max,o=e.min,r=e.max,i=r.x>=t.x&&o.x<=n.x,s=r.y>=t.y&&o.y<=n.y;return i&&s},overlaps:function(e){e=k(e);var t=this.min,n=this.max,o=e.min,r=e.max,i=r.x>t.x&&o.x<n.x,s=r.y>t.y&&o.y<n.y;return i&&s},isValid:function(){return!(!this.min||!this.max)}},G.prototype={extend:function(e){var t,n,o=this._southWest,r=this._northEast;if(e instanceof V)t=e,n=e;else{if(!(e instanceof G))return e?this.extend(j(e)||H(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return o||r?(o.lat=Math.min(t.lat,o.lat),o.lng=Math.min(t.lng,o.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new V(t.lat,t.lng),this._northEast=new V(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,o=Math.abs(t.lat-n.lat)*e,r=Math.abs(t.lng-n.lng)*e;return new G(new V(t.lat-o,t.lng-r),new V(n.lat+o,n.lng+r))},getCenter:function(){return new V((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new V(this.getNorth(),this.getWest())},getSouthEast:function(){return new V(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"===typeof e[0]||e instanceof V||"lat"in e?j(e):H(e);var t,n,o=this._southWest,r=this._northEast;return e instanceof G?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=o.lat&&n.lat<=r.lat&&t.lng>=o.lng&&n.lng<=r.lng},intersects:function(e){e=H(e);var t=this._southWest,n=this._northEast,o=e.getSouthWest(),r=e.getNorthEast(),i=r.lat>=t.lat&&o.lat<=n.lat,s=r.lng>=t.lng&&o.lng<=n.lng;return i&&s},overlaps:function(e){e=H(e);var t=this._southWest,n=this._northEast,o=e.getSouthWest(),r=e.getNorthEast(),i=r.lat>t.lat&&o.lat<n.lat,s=r.lng>t.lng&&o.lng<n.lng;return i&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=H(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},V.prototype={equals:function(e,t){return!!e&&(e=j(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+c(this.lat,e)+", "+c(this.lng,e)+")"},distanceTo:function(e){return B.distance(this,j(e))},wrap:function(){return B.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return H([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new V(this.lat,this.lng,this.alt)}};var W={latLngToPoint:function(e,t){var n=this.projection.project(e),o=this.scale(t);return this.transformation._transform(n,o)},pointToLatLng:function(e,t){var n=this.scale(t),o=this.transformation.untransform(e,n);return this.projection.unproject(o)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new F(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new V(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),o=t.lat-n.lat,r=t.lng-n.lng;if(0===o&&0===r)return e;var i=e.getSouthWest(),s=e.getNorthEast();return new G(new V(i.lat-o,i.lng-r),new V(s.lat-o,s.lng-r))}},B=n({},W,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,o=e.lat*n,r=t.lat*n,i=Math.sin((t.lat-e.lat)*n/2),s=Math.sin((t.lng-e.lng)*n/2),a=i*i+Math.cos(o)*Math.cos(r)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),U=6378137,z={R:U,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,o=Math.max(Math.min(n,e.lat),-n),r=Math.sin(o*t);return new N(this.R*e.lng*t,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(e){var t=180/Math.PI;return new V((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=U*Math.PI;return new F([-e,-e],[e,e])}()};function K(e,t,n,o){if(v(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=o}function q(e,t,n,o){return new K(e,t,n,o)}K.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new N((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var Z=n({},B,{code:"EPSG:3857",projection:z,transformation:function(){var e=.5/(Math.PI*z.R);return q(e,.5,-e,.5)}()}),Y=n({},Z,{code:"EPSG:900913"});function Q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function $(e,t){var n,o,r,i,s,a,l="";for(n=0,r=e.length;n<r;n++){for(o=0,i=(s=e[n]).length;o<i;o++)l+=(o?"L":"M")+(a=s[o]).x+" "+a.y;l+=t?Ie.svg?"z":"x":""}return l||"M0 0"}var X=document.documentElement.style,J="ActiveXObject"in window,ee=J&&!document.addEventListener,te="msLaunchUri"in navigator&&!("documentMode"in document),ne=Le("webkit"),oe=Le("android"),re=Le("android 2")||Le("android 3"),ie=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),se=oe&&Le("Google")&&ie<537&&!("AudioNode"in window),ae=!!window.opera,le=!te&&Le("chrome"),ue=Le("gecko")&&!ne&&!ae&&!J,ce=!le&&Le("safari"),pe=Le("phantom"),de="OTransition"in X,he=0===navigator.platform.indexOf("Win"),fe=J&&"transition"in X,ge="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!re,me="MozPerspective"in X,ve=!window.L_DISABLE_3D&&(fe||ge||me)&&!de&&!pe,ye="undefined"!==typeof orientation||Le("mobile"),Ce=ye&&ne,we=ye&&ge,be=!window.PointerEvent&&window.MSPointerEvent,_e=!(!window.PointerEvent&&!be),Ee="ontouchstart"in window||!!window.TouchEvent,Se=!window.L_NO_TOUCH&&(Ee||_e),Re=ye&&ae,Oe=ye&&ue,Pe=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Te=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",u,t),window.removeEventListener("testPassiveEventSupport",u,t)}catch(n){}return e}(),xe=!!document.createElement("canvas").getContext,Ae=!(!document.createElementNS||!Q("svg").createSVGRect),De=!!Ae&&function(){var e=document.createElement("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(e.firstChild&&e.firstChild.namespaceURI)}(),Ne=!Ae&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===typeof t.adj}catch(n){return!1}}();function Le(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Ie={ie:J,ielt9:ee,edge:te,webkit:ne,android:oe,android23:re,androidStock:se,opera:ae,chrome:le,gecko:ue,safari:ce,phantom:pe,opera12:de,win:he,ie3d:fe,webkit3d:ge,gecko3d:me,any3d:ve,mobile:ye,mobileWebkit:Ce,mobileWebkit3d:we,msPointer:be,pointer:_e,touch:Se,touchNative:Ee,mobileOpera:Re,mobileGecko:Oe,retina:Pe,passiveEvents:Te,canvas:xe,svg:Ae,vml:Ne,inlineSvg:De},Me=Ie.msPointer?"MSPointerDown":"pointerdown",Fe=Ie.msPointer?"MSPointerMove":"pointermove",ke=Ie.msPointer?"MSPointerUp":"pointerup",Ge=Ie.msPointer?"MSPointerCancel":"pointercancel",He={touchstart:Me,touchmove:Fe,touchend:ke,touchcancel:Ge},Ve={touchstart:Qe,touchmove:Ye,touchend:Ye,touchcancel:Ye},je={},We=!1;function Be(e,t,n){return"touchstart"===t&&Ze(),Ve[t]?(n=Ve[t].bind(this,n),e.addEventListener(He[t],n,!1),n):(console.warn("wrong event specified:",t),L.Util.falseFn)}function Ue(e,t,n){He[t]?e.removeEventListener(He[t],n,!1):console.warn("wrong event specified:",t)}function ze(e){je[e.pointerId]=e}function Ke(e){je[e.pointerId]&&(je[e.pointerId]=e)}function qe(e){delete je[e.pointerId]}function Ze(){We||(document.addEventListener(Me,ze,!0),document.addEventListener(Fe,Ke,!0),document.addEventListener(ke,qe,!0),document.addEventListener(Ge,qe,!0),We=!0)}function Ye(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],je)t.touches.push(je[n]);t.changedTouches=[t],e(t)}}function Qe(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&zt(t),Ye(e,t)}function $e(e){var t,n,o={};for(n in e)t=e[n],o[n]=t&&t.bind?t.bind(e):t;return e=o,o.type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}var Xe=200;function Je(e,t){e.addEventListener("dblclick",t);var n,o=0;function r(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var r=Date.now();r-o<=Xe?2===++n&&t($e(e)):n=1,o=r}}else n=e.detail}return e.addEventListener("click",r),{dblclick:t,simDblclick:r}}function et(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}var tt,nt,ot,rt,it,st=Et(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),at=Et(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lt="webkitTransition"===at||"OTransition"===at?at+"End":"transitionend";function ut(e){return"string"===typeof e?document.getElementById(e):e}function ct(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var o=document.defaultView.getComputedStyle(e,null);n=o?o[t]:null}return"auto"===n?null:n}function pt(e,t,n){var o=document.createElement(e);return o.className=t||"",n&&n.appendChild(o),o}function dt(e){var t=e.parentNode;t&&t.removeChild(e)}function ht(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ft(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function gt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function mt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=wt(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function vt(e,t){if(void 0!==e.classList)for(var n=d(t),o=0,r=n.length;o<r;o++)e.classList.add(n[o]);else if(!mt(e,t)){var i=wt(e);Ct(e,(i?i+" ":"")+t)}}function yt(e,t){void 0!==e.classList?e.classList.remove(t):Ct(e,p((" "+wt(e)+" ").replace(" "+t+" "," ")))}function Ct(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function wt(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function bt(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&_t(e,t)}function _t(e,t){var n=!1,o="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(o)}catch(r){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+o+"(opacity="+t+")"}function Et(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function St(e,t,n){var o=t||new N(0,0);e.style[st]=(Ie.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(n?" scale("+n+")":"")}function Rt(e,t){e._leaflet_pos=t,Ie.any3d?St(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Ot(e){return e._leaflet_pos||new N(0,0)}if("onselectstart"in document)tt=function(){Mt(window,"selectstart",zt)},nt=function(){kt(window,"selectstart",zt)};else{var Pt=Et(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);tt=function(){if(Pt){var e=document.documentElement.style;ot=e[Pt],e[Pt]="none"}},nt=function(){Pt&&(document.documentElement.style[Pt]=ot,ot=void 0)}}function Tt(){Mt(window,"dragstart",zt)}function xt(){kt(window,"dragstart",zt)}function At(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(Dt(),rt=e,it=e.style.outline,e.style.outline="none",Mt(window,"keydown",Dt))}function Dt(){rt&&(rt.style.outline=it,rt=void 0,it=void 0,kt(window,"keydown",Dt))}function Nt(e){do{e=e.parentNode}while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Lt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var It={__proto__:null,TRANSFORM:st,TRANSITION:at,TRANSITION_END:lt,get:ut,getStyle:ct,create:pt,remove:dt,empty:ht,toFront:ft,toBack:gt,hasClass:mt,addClass:vt,removeClass:yt,setClass:Ct,getClass:wt,setOpacity:bt,testProp:Et,setTransform:St,setPosition:Rt,getPosition:Ot,get disableTextSelection(){return tt},get enableTextSelection(){return nt},disableImageDrag:Tt,enableImageDrag:xt,preventOutline:At,restoreOutline:Dt,getSizedParentNode:Nt,getScale:Lt};function Mt(e,t,n,o){if(t&&"object"===typeof t)for(var r in t)Vt(e,r,t[r],n);else for(var i=0,s=(t=d(t)).length;i<s;i++)Vt(e,t[i],n,o);return this}var Ft="_leaflet_events";function kt(e,t,n,o){if(1===arguments.length)Gt(e),delete e[Ft];else if(t&&"object"===typeof t)for(var r in t)jt(e,r,t[r],n);else if(t=d(t),2===arguments.length)Gt(e,(function(e){return-1!==y(t,e)}));else for(var i=0,s=t.length;i<s;i++)jt(e,t[i],n,o);return this}function Gt(e,t){for(var n in e[Ft]){var o=n.split(/\d/)[0];t&&!t(o)||jt(e,o,null,null,n)}}var Ht={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Vt(e,t,n,o){var r=t+s(n)+(o?"_"+s(o):"");if(e[Ft]&&e[Ft][r])return this;var i=function(t){return n.call(o||e,t||window.event)},a=i;!Ie.touchNative&&Ie.pointer&&0===t.indexOf("touch")?i=Be(e,t,i):Ie.touch&&"dblclick"===t?i=Je(e,i):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Ht[t]||t,i,!!Ie.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(i=function(t){t=t||window.event,Qt(e,t)&&a(t)},e.addEventListener(Ht[t],i,!1)):e.addEventListener(t,a,!1):e.attachEvent("on"+t,i),e[Ft]=e[Ft]||{},e[Ft][r]=i}function jt(e,t,n,o,r){r=r||t+s(n)+(o?"_"+s(o):"");var i=e[Ft]&&e[Ft][r];if(!i)return this;!Ie.touchNative&&Ie.pointer&&0===t.indexOf("touch")?Ue(e,t,i):Ie.touch&&"dblclick"===t?et(e,i):"removeEventListener"in e?e.removeEventListener(Ht[t]||t,i,!1):e.detachEvent("on"+t,i),e[Ft][r]=null}function Wt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Bt(e){return Vt(e,"wheel",Wt),this}function Ut(e){return Mt(e,"mousedown touchstart dblclick contextmenu",Wt),e._leaflet_disable_click=!0,this}function zt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Kt(e){return zt(e),Wt(e),this}function qt(e,t){if(!t)return new N(e.clientX,e.clientY);var n=Lt(t),o=n.boundingClientRect;return new N((e.clientX-o.left)/n.x-t.clientLeft,(e.clientY-o.top)/n.y-t.clientTop)}var Zt=Ie.win&&Ie.chrome?2*window.devicePixelRatio:Ie.gecko?window.devicePixelRatio:1;function Yt(e){return Ie.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Zt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function Qt(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(o){return!1}return n!==e}var $t={__proto__:null,on:Mt,off:kt,stopPropagation:Wt,disableScrollPropagation:Bt,disableClickPropagation:Ut,preventDefault:zt,stop:Kt,getMousePosition:qt,getWheelDelta:Yt,isExternalTarget:Qt,addListener:Mt,removeListener:kt},Xt=D.extend({run:function(e,t,n,o){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=Ot(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=R(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),Rt(this._el,n),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),Jt=D.extend({options:{crs:Z,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=h(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(j(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=at&&Ie.any3d&&!Ie.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Mt(this._proxy,lt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,o){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(j(e),t,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&!0!==o&&(void 0!==o.animate&&(o.zoom=n({animate:o.animate},o.zoom),o.pan=n({animate:o.animate,duration:o.duration},o.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,o.zoom):this._tryAnimatedPan(e,o.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Ie.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Ie.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var o=this.getZoomScale(t),r=this.getSize().divideBy(2),i=(e instanceof N?e:this.latLngToContainerPoint(e)).subtract(r).multiplyBy(1-1/o),s=this.containerPointToLatLng(r.add(i));return this.setView(s,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():H(e);var n=M(t.paddingTopLeft||t.padding||[0,0]),o=M(t.paddingBottomRight||t.padding||[0,0]),r=this.getBoundsZoom(e,!1,n.add(o));if((r="number"===typeof t.maxZoom?Math.min(t.maxZoom,r):r)===1/0)return{center:e.getCenter(),zoom:r};var i=o.subtract(n).divideBy(2),s=this.project(e.getSouthWest(),r),a=this.project(e.getNorthEast(),r);return{center:this.unproject(s.add(a).divideBy(2).add(i),r),zoom:r}},fitBounds:function(e,t){if(!(e=H(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=M(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Xt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){vt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Ie.any3d)return this.setView(e,t,n);this._stop();var o=this.project(this.getCenter()),r=this.project(e),i=this.getSize(),s=this._zoom;e=j(e),t=void 0===t?s:t;var a=Math.max(i.x,i.y),l=a*this.getZoomScale(s,t),u=r.distanceTo(o)||1,c=1.42,p=c*c;function d(e){var t=(l*l-a*a+(e?-1:1)*p*p*u*u)/(2*(e?l:a)*p*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function h(e){return(Math.exp(e)-Math.exp(-e))/2}function f(e){return(Math.exp(e)+Math.exp(-e))/2}function g(e){return h(e)/f(e)}var m=d(0);function v(e){return a*(f(m)/f(m+c*e))}function y(e){return a*(f(m)*g(m+c*e)-h(m))/p}function C(e){return 1-Math.pow(1-e,1.5)}var w=Date.now(),b=(d(1)-m)/c,_=n.duration?1e3*n.duration:1e3*b*.8;function E(){var n=(Date.now()-w)/_,i=C(n)*b;n<=1?(this._flyToFrame=R(E,this),this._move(this.unproject(o.add(r.subtract(o).multiplyBy(y(i)/u)),s),this.getScaleZoom(a/v(i),s),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),E.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=H(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),o=this._limitCenter(n,this._zoom,H(e));return n.equals(o)||this.panTo(o,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=M((t=t||{}).paddingTopLeft||t.padding||[0,0]),o=M(t.paddingBottomRight||t.padding||[0,0]),r=this.project(this.getCenter()),i=this.project(e),s=this.getPixelBounds(),a=k([s.min.add(n),s.max.subtract(o)]),l=a.getSize();if(!a.contains(i)){this._enforcingBounds=!0;var u=i.subtract(a.getCenter()),c=a.extend(i).getSize().subtract(l);r.x+=u.x<0?-c.x:c.x,r.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(r),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),i=t.divideBy(2).round(),s=o.divideBy(2).round(),a=i.subtract(s);return a.x||a.y?(e.animate&&e.pan?this.panBy(a):(e.pan&&this._rawPanBy(a),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=r(this._handleGeolocationResponse,this),o=r(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,o,e):navigator.geolocation.getCurrentPosition(t,o,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new V(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),o=this._locateOptions;if(o.setView){var r=this.getBoundsZoom(n);this.setView(t,o.maxZoom?Math.min(r,o.maxZoom):r)}var i={latlng:t,bounds:n,timestamp:e.timestamp};for(var s in e.coords)"number"===typeof e.coords[s]&&(i[s]=e.coords[s]);this.fire("locationfound",i)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),dt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)dt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=pt("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new G(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=H(e),n=M(n||[0,0]);var o=this.getZoom()||0,r=this.getMinZoom(),i=this.getMaxZoom(),s=e.getNorthWest(),a=e.getSouthEast(),l=this.getSize().subtract(n),u=k(this.project(a,o),this.project(s,o)).getSize(),c=Ie.any3d?this.options.zoomSnap:1,p=l.x/u.x,d=l.y/u.y,h=t?Math.max(p,d):Math.min(p,d);return o=this.getScaleZoom(h,o),c&&(o=Math.round(o/(c/100))*(c/100),o=t?Math.ceil(o/c)*c:Math.floor(o/c)*c),Math.max(r,Math.min(i,o))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new F(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"===typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var o=n.zoom(e*n.scale(t));return isNaN(o)?1/0:o},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(j(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(M(e),t)},layerPointToLatLng:function(e){var t=M(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(j(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(j(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(H(e))},distance:function(e,t){return this.options.crs.distance(j(e),j(t))},containerPointToLayerPoint:function(e){return M(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return M(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(M(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(e)))},mouseEventToContainerPoint:function(e){return qt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=ut(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Mt(t,"scroll",this._onScroll,this),this._containerId=s(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ie.any3d,vt(e,"leaflet-container"+(Ie.touch?" leaflet-touch":"")+(Ie.retina?" leaflet-retina":"")+(Ie.ielt9?" leaflet-oldie":"")+(Ie.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=ct(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Rt(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(vt(e.markerPane,"leaflet-zoom-hide"),vt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){Rt(this._mapPane,new N(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var o=this._zoom!==t;this._moveStart(o,!1)._move(e,t)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,o){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),o?n&&n.pinch&&this.fire("zoom",n):((r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Rt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[s(this._container)]=this;var t=e?kt:Mt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Ie.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=R((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,o=[],r="mouseout"===t||"mouseover"===t,i=e.target||e.srcElement,a=!1;i;){if((n=this._targets[s(i)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(t,!0)){if(r&&!Qt(i,e))break;if(o.push(n),r)break}if(i===this._container)break;i=i.parentNode}return o.length||a||r||!this.listens(t,!0)||(o=[this]),o},_isClickDisabled:function(e){for(;e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&At(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,o){if("click"===e.type){var r=n({},e);r.type="preclick",this._fireDOMEvent(r,r.type,o)}var i=this._findEventTargets(e,t);if(o){for(var s=[],a=0;a<o.length;a++)o[a].listens(t,!0)&&s.push(o[a]);i=s.concat(i)}if(i.length){"contextmenu"===t&&zt(e);var l=i[0],u={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(a=0;a<i.length;a++)if(i[a].fire(t,u,!0),u.originalEvent._stopped||!1===i[a].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Ot(this._mapPane)||new N(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var o=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(o)},_latLngBoundsToNewLayerBounds:function(e,t,n){var o=this._getNewPixelOrigin(n,t);return k([this.project(e.getSouthWest(),t)._subtract(o),this.project(e.getNorthWest(),t)._subtract(o),this.project(e.getSouthEast(),t)._subtract(o),this.project(e.getNorthEast(),t)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var o=this.project(e,t),r=this.getSize().divideBy(2),i=new F(o.subtract(r),o.add(r)),s=this._getBoundsOffset(i,n,t);return s.round().equals([0,0])?e:this.unproject(o.add(s),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),o=new F(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(o,t))},_getBoundsOffset:function(e,t,n){var o=k(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),r=o.min.subtract(e.min),i=o.max.subtract(e.max);return new N(this._rebound(r.x,-i.x),this._rebound(r.y,-i.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),o=Ie.any3d?this.options.zoomSnap:1;return o&&(e=Math.round(e/o)*o),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=st,n=this._proxy.style[t];St(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){dt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();St(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(t),r=this._getCenterOffset(e)._divideBy(1-1/o);return!(!0!==n.animate&&!this.getSize().contains(r))&&(R((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),!0)},_animateZoom:function(e,t,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,vt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&yt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function en(e,t){return new Jt(e,t)}var tn=T.extend({options:{position:"topright"},initialize:function(e){h(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),o=e._controlCorners[n];return vt(t,"leaflet-control"),-1!==n.indexOf("bottom")?o.insertBefore(t,o.firstChild):o.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(dt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),nn=function(e){return new tn(e)};Jt.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=pt("div",t+"control-container",this._container);function o(o,r){var i=t+o+" "+t+r;e[o+r]=pt("div",i,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)dt(this._controlCorners[e]);dt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var on=tn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,o){return n<o?-1:o<n?1:0}},initialize:function(e,t,n){for(var o in h(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[o],o);for(o in t)this._addLayer(t[o],o,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return tn.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(s(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){vt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(vt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=pt("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),Ut(t),Bt(t);var o=this._section=pt("section",e+"-list");n&&(this._map.on("click",this.collapse,this),Mt(t,{mouseenter:function(){Mt(o,"click",zt),this.expand(),setTimeout((function(){kt(o,"click",zt)}))},mouseleave:this.collapse},this));var r=this._layersLink=pt("a",e+"-toggle",t);r.href="#",r.title="Layers",r.setAttribute("role","button"),Mt(r,"click",zt),Mt(r,"focus",this.expand,this),n||this.expand(),this._baseLayersList=pt("div",e+"-base",o),this._separator=pt("div",e+"-separator",o),this._overlaysList=pt("div",e+"-overlays",o),t.appendChild(o)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&s(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(r((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ht(this._baseLayersList),ht(this._overlaysList),this._layerControlInputs=[];var e,t,n,o,r=0;for(n=0;n<this._layers.length;n++)o=this._layers[n],this._addItem(o),t=t||o.overlay,e=e||!o.overlay,r+=o.overlay?0:1;return this.options.hideSingleBase&&(e=e&&r>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(s(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",o=document.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(e){var t,n=document.createElement("label"),o=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=o):t=this._createRadioElement("leaflet-base-layers_"+s(this),o),this._layerControlInputs.push(t),t.layerId=s(e.layer),Mt(t,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+e.name;var i=document.createElement("span");return n.appendChild(i),i.appendChild(t),i.appendChild(r),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,o=[],r=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.checked?o.push(t):e.checked||r.push(t);for(i=0;i<r.length;i++)this._map.hasLayer(r[i])&&this._map.removeLayer(r[i]);for(i=0;i<o.length;i++)this._map.hasLayer(o[i])||this._map.addLayer(o[i]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,o=this._map.getZoom(),r=n.length-1;r>=0;r--)e=n[r],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&o<t.options.minZoom||void 0!==t.options.maxZoom&&o>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}}),rn=function(e,t,n){return new on(e,t,n)},sn=tn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=pt("div",t+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,o,r){var i=pt("a",n,o);return i.innerHTML=e,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),Ut(i),Mt(i,"click",Kt),Mt(i,"click",r,this),Mt(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";yt(this._zoomInButton,t),yt(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(vt(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(vt(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});Jt.mergeOptions({zoomControl:!0}),Jt.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new sn,this.addControl(this.zoomControl))}));var an=function(e){return new sn(e)},ln=tn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=pt("div",t),o=this.options;return this._addScales(o,t+"-line",n),e.on(o.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=pt("div",t,n)),e.imperial&&(this._iScale=pt("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,o,r=3.2808399*e;r>5280?(t=r/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(o=this._getRoundNum(r),this._updateScale(this._iScale,o+" ft",o/r))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),un=function(e){return new ln(e)},cn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',pn=tn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ie.inlineSvg?cn+" ":"")+"Leaflet</a>"},initialize:function(e){h(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=pt("div","leaflet-control-attribution"),Ut(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Jt.mergeOptions({attributionControl:!0}),Jt.addInitHook((function(){this.options.attributionControl&&(new pn).addTo(this)}));var dn=function(e){return new pn(e)};tn.Layers=on,tn.Zoom=sn,tn.Scale=ln,tn.Attribution=pn,nn.layers=rn,nn.zoom=an,nn.scale=un,nn.attribution=dn;var hn=T.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});hn.addTo=function(e,t){return e.addHandler(t,this),this};var fn,gn={Events:A},mn=Ie.touch?"touchstart mousedown":"mousedown",vn=D.extend({options:{clickTolerance:3},initialize:function(e,t,n,o){h(this,o),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(Mt(this._dragStartTarget,mn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(vn._dragging===this&&this.finishDrag(!0),kt(this._dragStartTarget,mn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!mt(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)vn._dragging===this&&this.finishDrag();else if(!(vn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches)&&(vn._dragging=this,this._preventOutline&&At(this._element),Tt(),tt(),!this._moving)){this.fire("down");var t=e.touches?e.touches[0]:e,n=Nt(this._element);this._startPoint=new N(t.clientX,t.clientY),this._startPos=Ot(this._element),this._parentScale=Lt(n);var o="mousedown"===e.type;Mt(document,o?"mousemove":"touchmove",this._onMove,this),Mt(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new N(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,zt(e),this._moved||(this.fire("dragstart"),this._moved=!0,vt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),vt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),Rt(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){yt(document.body,"leaflet-dragging"),this._lastTarget&&(yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),kt(document,"mousemove touchmove",this._onMove,this),kt(document,"mouseup touchend touchcancel",this._onUp,this),xt(),nt(),this._moved&&this._moving&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,vn._dragging=!1}});function yn(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=bn(e=En(e,n),n)}function Cn(e,t,n){return Math.sqrt(Tn(e,t,n,!0))}function wn(e,t,n){return Tn(e,t,n)}function bn(e,t){var n=e.length,o=new(typeof Uint8Array!==void 0+""?Uint8Array:Array)(n);o[0]=o[n-1]=1,_n(e,o,t,0,n-1);var r,i=[];for(r=0;r<n;r++)o[r]&&i.push(e[r]);return i}function _n(e,t,n,o,r){var i,s,a,l=0;for(s=o+1;s<=r-1;s++)(a=Tn(e[s],e[o],e[r],!0))>l&&(i=s,l=a);l>n&&(t[i]=1,_n(e,t,n,o,i),_n(e,t,n,i,r))}function En(e,t){for(var n=[e[0]],o=1,r=0,i=e.length;o<i;o++)Pn(e[o],e[r])>t&&(n.push(e[o]),r=o);return r<i-1&&n.push(e[i-1]),n}function Sn(e,t,n,o,r){var i,s,a,l=o?fn:On(e,n),u=On(t,n);for(fn=u;;){if(!(l|u))return[e,t];if(l&u)return!1;a=On(s=Rn(e,t,i=l||u,n,r),n),i===l?(e=s,l=a):(t=s,u=a)}}function Rn(e,t,n,o,r){var i,s,a=t.x-e.x,l=t.y-e.y,u=o.min,c=o.max;return 8&n?(i=e.x+a*(c.y-e.y)/l,s=c.y):4&n?(i=e.x+a*(u.y-e.y)/l,s=u.y):2&n?(i=c.x,s=e.y+l*(c.x-e.x)/a):1&n&&(i=u.x,s=e.y+l*(u.x-e.x)/a),new N(i,s,r)}function On(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function Pn(e,t){var n=t.x-e.x,o=t.y-e.y;return n*n+o*o}function Tn(e,t,n,o){var r,i=t.x,s=t.y,a=n.x-i,l=n.y-s,u=a*a+l*l;return u>0&&((r=((e.x-i)*a+(e.y-s)*l)/u)>1?(i=n.x,s=n.y):r>0&&(i+=a*r,s+=l*r)),a=e.x-i,l=e.y-s,o?a*a+l*l:new N(i,s)}function xn(e){return!v(e[0])||"object"!==typeof e[0][0]&&"undefined"!==typeof e[0][0]}function An(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),xn(e)}var Dn={__proto__:null,simplify:yn,pointToSegmentDistance:Cn,closestPointOnSegment:wn,clipSegment:Sn,_getEdgeIntersection:Rn,_getBitCode:On,_sqClosestPointOnSegment:Tn,isFlat:xn,_flat:An};function Nn(e,t,n){var o,r,i,s,a,l,u,c,p,d=[1,4,2,8];for(r=0,u=e.length;r<u;r++)e[r]._code=On(e[r],t);for(s=0;s<4;s++){for(c=d[s],o=[],r=0,i=(u=e.length)-1;r<u;i=r++)a=e[r],l=e[i],a._code&c?l._code&c||((p=Rn(l,a,c,t,n))._code=On(p,t),o.push(p)):(l._code&c&&((p=Rn(l,a,c,t,n))._code=On(p,t),o.push(p)),o.push(a));e=o}return e}var Ln={__proto__:null,clipPolygon:Nn},In={project:function(e){return new N(e.lng,e.lat)},unproject:function(e){return new V(e.y,e.x)},bounds:new F([-180,-90],[180,90])},Mn={R:6378137,R_MINOR:6356752.314245179,bounds:new F([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,o=e.lat*t,r=this.R_MINOR/n,i=Math.sqrt(1-r*r),s=i*Math.sin(o),a=Math.tan(Math.PI/4-o/2)/Math.pow((1-s)/(1+s),i/2);return o=-n*Math.log(Math.max(a,1e-10)),new N(e.lng*t*n,o)},unproject:function(e){for(var t,n=180/Math.PI,o=this.R,r=this.R_MINOR/o,i=Math.sqrt(1-r*r),s=Math.exp(-e.y/o),a=Math.PI/2-2*Math.atan(s),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)t=i*Math.sin(a),t=Math.pow((1-t)/(1+t),i/2),a+=u=Math.PI/2-2*Math.atan(s*t)-a;return new V(a*n,e.x*n/o)}},Fn={__proto__:null,LonLat:In,Mercator:Mn,SphericalMercator:z},kn=n({},B,{code:"EPSG:3395",projection:Mn,transformation:function(){var e=.5/(Math.PI*Mn.R);return q(e,.5,-e,.5)}()}),Gn=n({},B,{code:"EPSG:4326",projection:In,transformation:q(1/180,1,-1/180,.5)}),Hn=n({},W,{projection:In,transformation:q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,o=t.lat-e.lat;return Math.sqrt(n*n+o*o)},infinite:!0});W.Earth=B,W.EPSG3395=kn,W.EPSG3857=Z,W.EPSG900913=Y,W.EPSG4326=Gn,W.Simple=Hn;var Vn=D.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[s(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[s(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});Jt.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=s(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=s(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return s(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?v(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[s(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=s(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var o in this._zoomBoundLayers){var r=this._zoomBoundLayers[o].options;e=void 0===r.minZoom?e:Math.min(e,r.minZoom),t=void 0===r.maxZoom?t:Math.max(t,r.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var jn=Vn.extend({initialize:function(e,t){var n,o;if(h(this,t),this._layers={},e)for(n=0,o=e.length;n<o;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"===typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,o=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,o);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return s(e)}}),Wn=function(e,t){return new jn(e,t)},Bn=jn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),jn.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),jn.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new G;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Un=function(e,t){return new Bn(e,t)},zn=T.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){h(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(o,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(o.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),o},_setIconStyles:function(e,t){var n=this.options,o=n[t+"Size"];"number"===typeof o&&(o=[o,o]);var r=M(o),i=M("shadow"===t&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),i&&(e.style.marginLeft=-i.x+"px",e.style.marginTop=-i.y+"px"),r&&(e.style.width=r.x+"px",e.style.height=r.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Ie.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Kn(e){return new zn(e)}var qn=zn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!==typeof qn.imagePath&&(qn.imagePath=this._detectIconPath()),(this.options.imagePath||qn.imagePath)+zn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var o=t.exec(e);return o&&o[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=pt("div","leaflet-default-icon-path",document.body),t=ct(e,"background-image")||ct(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-"leaflet.css".length-1):""}}),Zn=hn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new vn(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),vt(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,o=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,i=Ot(t._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),l=k(s.min._subtract(a).add(r),s.max._subtract(a).subtract(r));if(!l.contains(i)){var u=M((Math.max(l.max.x,i.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,i.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,i.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,i.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(o);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),Rt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=R(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=R(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,o=Ot(t._icon),r=t._map.layerPointToLatLng(o);n&&Rt(n,o),t._latlng=r,e.latlng=r,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),Yn=Vn.extend({options:{icon:new qn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){h(this,t),this._latlng=j(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=j(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),vt(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Mt(n,"focus",this._panOnFocus,this);var r=e.icon.createShadow(this._shadow),i=!1;r!==this._shadow&&(this._removeShadow(),i=!0),r&&(vt(r,t),r.alt=""),this._shadow=r,e.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&i&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&kt(this._icon,"focus",this._panOnFocus,this),dt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&dt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&Rt(this._icon,e),this._shadow&&Rt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(vt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Zn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Zn(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&bt(this._icon,e),this._shadow&&bt(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?M(t.iconSize):M(0,0),o=t.iconAnchor?M(t.iconAnchor):M(0,0);e.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:n.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Qn(e,t){return new Yn(e,t)}var $n=Vn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return h(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Xn=$n.extend({options:{fill:!0,radius:10},initialize:function(e,t){h(this,t),this._latlng=j(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=j(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return $n.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),o=[e+n,t+n];this._pxBounds=new F(this._point.subtract(o),this._point.add(o))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Jn(e,t){return new Xn(e,t)}var eo=Xn.extend({initialize:function(e,t,o){if("number"===typeof t&&(t=n({},o,{radius:t})),h(this,t),this._latlng=j(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new G(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:$n.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,o=n.options.crs;if(o.distance===B.distance){var r=Math.PI/180,i=this._mRadius/B.R/r,s=n.project([t+i,e]),a=n.project([t-i,e]),l=s.add(a).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(i*r)-Math.sin(t*r)*Math.sin(u*r))/(Math.cos(t*r)*Math.cos(u*r)))/r;(isNaN(c)||0===c)&&(c=i/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-s.y}else{var p=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(p).x}this._updateBounds()}});function to(e,t,n){return new eo(e,t,n)}var no=$n.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){h(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,o=1/0,r=null,i=Tn,s=0,a=this._parts.length;s<a;s++)for(var l=this._parts[s],u=1,c=l.length;u<c;u++){var p=i(e,t=l[u-1],n=l[u],!0);p<o&&(o=p,r=i(e,t,n))}return r&&(r.distance=Math.sqrt(o)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,o,r,i,s,a=this._rings[0],l=a.length;if(!l)return null;for(e=0,t=0;e<l-1;e++)t+=a[e].distanceTo(a[e+1])/2;if(0===t)return this._map.layerPointToLatLng(a[0]);for(e=0,o=0;e<l-1;e++)if(r=a[e],i=a[e+1],(o+=n=r.distanceTo(i))>t)return s=(o-t)/n,this._map.layerPointToLatLng([i.x-s*(i.x-r.x),i.y-s*(i.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=j(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new G,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return xn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=xn(e),o=0,r=e.length;o<r;o++)n?(t[o]=j(e[o]),this._bounds.extend(t[o])):t[o]=this._convertLatLngs(e[o]);return t},_project:function(){var e=new F;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new N(e,e);this._rawPxBounds&&(this._pxBounds=new F([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var o,r,i=e[0]instanceof V,s=e.length;if(i){for(r=[],o=0;o<s;o++)r[o]=this._map.latLngToLayerPoint(e[o]),n.extend(r[o]);t.push(r)}else for(o=0;o<s;o++)this._projectLatlngs(e[o],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,o,r,i,s,a,l=this._parts;for(t=0,o=0,r=this._rings.length;t<r;t++)for(n=0,i=(a=this._rings[t]).length;n<i-1;n++)(s=Sn(a[n],a[n+1],e,n,!0))&&(l[o]=l[o]||[],l[o].push(s[0]),s[1]===a[n+1]&&n!==i-2||(l[o].push(s[1]),o++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,o=e.length;n<o;n++)e[n]=yn(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,o,r,i,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,i=this._parts.length;n<i;n++)for(o=0,r=(s=(a=this._parts[n]).length)-1;o<s;r=o++)if((t||0!==o)&&Cn(e,a[r],a[o])<=l)return!0;return!1}});function oo(e,t){return new no(e,t)}no._flat=An;var ro=no.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,o,r,i,s,a,l,u=this._rings[0],c=u.length;if(!c)return null;for(i=s=a=0,e=0,t=c-1;e<c;t=e++)n=u[e],o=u[t],r=n.y*o.x-o.y*n.x,s+=(n.x+o.x)*r,a+=(n.y+o.y)*r,i+=3*r;return l=0===i?u[0]:[s/i,a/i],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=no.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof V&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){no.prototype._setLatLngs.call(this,e),xn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return xn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new N(t,t);if(e=new F(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var o,r=0,i=this._rings.length;r<i;r++)(o=Nn(this._rings[r],e,!0)).length&&this._parts.push(o)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,o,r,i,s,a,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(r=0,a=this._parts.length;r<a;r++)for(i=0,s=(l=(t=this._parts[r]).length)-1;i<l;s=i++)n=t[i],o=t[s],n.y>e.y!==o.y>e.y&&e.x<(o.x-n.x)*(e.y-n.y)/(o.y-n.y)+n.x&&(u=!u);return u||no.prototype._containsPoint.call(this,e,!0)}});function io(e,t){return new ro(e,t)}var so=Bn.extend({initialize:function(e,t){h(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,o,r=v(e)?e:e.features;if(r){for(t=0,n=r.length;t<n;t++)((o=r[t]).geometries||o.geometry||o.features||o.coordinates)&&this.addData(o);return this}var i=this.options;if(i.filter&&!i.filter(e))return this;var s=ao(e,i);return s?(s.feature=go(e),s.defaultOptions=s.options,this.resetStyle(s),i.onEachFeature&&i.onEachFeature(e,s),this.addLayer(s)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"===typeof t&&(t=t(e.feature)),e.setStyle(t))}});function ao(e,t){var n,o,r,i,s="Feature"===e.type?e.geometry:e,a=s?s.coordinates:null,l=[],u=t&&t.pointToLayer,c=t&&t.coordsToLatLng||uo;if(!a&&!s)return null;switch(s.type){case"Point":return lo(u,e,n=c(a),t);case"MultiPoint":for(r=0,i=a.length;r<i;r++)n=c(a[r]),l.push(lo(u,e,n,t));return new Bn(l);case"LineString":case"MultiLineString":return o=co(a,"LineString"===s.type?0:1,c),new no(o,t);case"Polygon":case"MultiPolygon":return o=co(a,"Polygon"===s.type?1:2,c),new ro(o,t);case"GeometryCollection":for(r=0,i=s.geometries.length;r<i;r++){var p=ao({geometry:s.geometries[r],type:"Feature",properties:e.properties},t);p&&l.push(p)}return new Bn(l);default:throw new Error("Invalid GeoJSON object.")}}function lo(e,t,n,o){return e?e(t,n):new Yn(n,o&&o.markersInheritOptions&&o)}function uo(e){return new V(e[1],e[0],e[2])}function co(e,t,n){for(var o,r=[],i=0,s=e.length;i<s;i++)o=t?co(e[i],t-1,n):(n||uo)(e[i]),r.push(o);return r}function po(e,t){return void 0!==(e=j(e)).alt?[c(e.lng,t),c(e.lat,t),c(e.alt,t)]:[c(e.lng,t),c(e.lat,t)]}function ho(e,t,n,o){for(var r=[],i=0,s=e.length;i<s;i++)r.push(t?ho(e[i],t-1,n,o):po(e[i],o));return!t&&n&&r.push(r[0]),r}function fo(e,t){return e.feature?n({},e.feature,{geometry:t}):go(t)}function go(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var mo={toGeoJSON:function(e){return fo(this,{type:"Point",coordinates:po(this.getLatLng(),e)})}};function vo(e,t){return new so(e,t)}Yn.include(mo),eo.include(mo),Xn.include(mo),no.include({toGeoJSON:function(e){var t=!xn(this._latlngs);return fo(this,{type:(t?"Multi":"")+"LineString",coordinates:ho(this._latlngs,t?1:0,!1,e)})}}),ro.include({toGeoJSON:function(e){var t=!xn(this._latlngs),n=t&&!xn(this._latlngs[0]),o=ho(this._latlngs,n?2:t?1:0,!0,e);return t||(o=[o]),fo(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),jn.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),fo(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,o=[];return this.eachLayer((function(t){if(t.toGeoJSON){var r=t.toGeoJSON(e);if(n)o.push(r.geometry);else{var i=go(r);"FeatureCollection"===i.type?o.push.apply(o,i.features):o.push(i)}}})),n?fo(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});var yo=vo,Co=Vn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=H(t),h(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(vt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){dt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&ft(this._image),this},bringToBack:function(){return this._map&>(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=H(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:pt("img");vt(t,"leaflet-image-layer"),this._zoomAnimated&&vt(t,"leaflet-zoom-animated"),this.options.className&&vt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onload=r(this.fire,this,"load"),t.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;St(this._image,n,t)},_reset:function(){var e=this._image,t=new F(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();Rt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){bt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),wo=function(e,t,n){return new Co(e,t,n)},bo=Co.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:pt("video");if(vt(t,"leaflet-image-layer"),this._zoomAnimated&&vt(t,"leaflet-zoom-animated"),this.options.className&&vt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onloadeddata=r(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),o=[],i=0;i<n.length;i++)o.push(n[i].src);this._url=n.length>0?o:[t.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=pt("source");a.src=this._url[s],t.appendChild(a)}}}});function _o(e,t,n){return new bo(e,t,n)}var Eo=Co.extend({_initImage:function(){var e=this._image=this._url;vt(e,"leaflet-image-layer"),this._zoomAnimated&&vt(e,"leaflet-zoom-animated"),this.options.className&&vt(e,this.options.className),e.onselectstart=u,e.onmousemove=u}});function So(e,t,n){return new Eo(e,t,n)}var Ro=Vn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(e,t){h(this,e),this._source=t},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&bt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&bt(this._container,1),this.bringToFront(),this.options.interactive&&(vt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(bt(this._container,0),this._removeTimeout=setTimeout(r(dt,void 0,this._container),200)):dt(this._container),this.options.interactive&&(yt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=j(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ft(this._container),this},bringToBack:function(){return this._map&>(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof Bn){t=null;var n=this._source._layers;for(var o in n)if(n[o]._map){t=n[o];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=M(this.options.offset),n=this._getAnchor();this._zoomAnimated?Rt(this._container,e.add(n)):t=t.add(e).add(n);var o=this._containerBottom=-t.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=o+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}});Jt.include({_initOverlay:function(e,t,n,o){var r=t;return r instanceof e||(r=new e(o).setContent(t)),n&&r.setLatLng(n),r}}),Vn.include({_initOverlay:function(e,t,n,o){var r=n;return r instanceof e?(h(r,o),r._source=this):(r=t&&!o?t:new e(o,this)).setContent(n),r}});var Oo=Ro.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Ro.prototype.openOn.call(this,e)},onAdd:function(e){Ro.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof $n||this._source.on("preclick",Wt))},onRemove:function(e){Ro.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof $n||this._source.off("preclick",Wt))},getEvents:function(){var e=Ro.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=pt("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=pt("div",e+"-content-wrapper",t);if(this._contentNode=pt("div",e+"-content",n),Ut(t),Bt(this._contentNode),Mt(t,"contextmenu",Wt),this._tipContainer=pt("div",e+"-tip-container",t),this._tip=pt("div",e+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=pt("a",e+"-close-button",t);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">×</span>',Mt(o,"click",this.close,this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var o=e.offsetHeight,r=this.options.maxHeight,i="leaflet-popup-scrolled";r&&o>r?(t.height=r+"px",vt(e,i)):yt(e,i),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();Rt(this._container,t.add(n))},_adjustPan:function(e){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,n=parseInt(ct(this._container,"marginBottom"),10)||0,o=this._container.offsetHeight+n,r=this._containerWidth,i=new N(this._containerLeft,-o-this._containerBottom);i._add(Ot(this._container));var s=t.layerPointToContainerPoint(i),a=M(this.options.autoPanPadding),l=M(this.options.autoPanPaddingTopLeft||a),u=M(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),p=0,d=0;s.x+r+u.x>c.x&&(p=s.x+r-c.x+u.x),s.x-p-l.x<0&&(p=s.x-l.x),s.y+o+u.y>c.y&&(d=s.y+o-c.y+u.y),s.y-d-l.y<0&&(d=s.y-l.y),(p||d)&&t.fire("autopanstart").panBy([p,d],{animate:e&&"moveend"===e.type})}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Po=function(e,t){return new Oo(e,t)};Jt.mergeOptions({closePopupOnClick:!0}),Jt.include({openPopup:function(e,t,n){return this._initOverlay(Oo,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),Vn.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Oo,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&this._popup._prepareOpen(e)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Kt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof $n?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var To=Ro.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Ro.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Ro.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Ro.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=pt("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,o=this._map,r=this._container,i=o.latLngToContainerPoint(o.getCenter()),s=o.layerPointToContainerPoint(e),a=this.options.direction,l=r.offsetWidth,u=r.offsetHeight,c=M(this.options.offset),p=this._getAnchor();"top"===a?(t=l/2,n=u):"bottom"===a?(t=l/2,n=0):"center"===a?(t=l/2,n=u/2):"right"===a?(t=0,n=u/2):"left"===a?(t=l,n=u/2):s.x<i.x?(a="right",t=0,n=u/2):(a="left",t=l+2*(c.x+p.x),n=u/2),e=e.subtract(M(t,n,!0)).add(c).add(p),yt(r,"leaflet-tooltip-right"),yt(r,"leaflet-tooltip-left"),yt(r,"leaflet-tooltip-top"),yt(r,"leaflet-tooltip-bottom"),vt(r,"leaflet-tooltip-"+a),Rt(r,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&bt(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return M(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),xo=function(e,t){return new To(e,t)};Jt.include({openTooltip:function(e,t,n){return this._initOverlay(To,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),Vn.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(To,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&this._tooltip._prepareOpen(e)&&this._tooltip.openOn(this._map),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0))},_moveTooltip:function(e){var t,n,o=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),o=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(o)}});var Ao=zn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ht(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var o=M(n.bgPos);t.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function Do(e){return new Ao(e)}zn.Default=qn;var No=Vn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ie.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){h(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),dt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ft(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(gt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof N?e:new N(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,o=-e(-1/0,1/0),r=0,i=n.length;r<i;r++)t=n[r].style.zIndex,n[r]!==this._container&&t&&(o=e(o,+t));isFinite(o)&&(this.options.zIndex=o+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ie.ielt9){bt(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var o in this._tiles){var r=this._tiles[o];if(r.current&&r.loaded){var i=Math.min(1,(e-r.loaded)/200);bt(r.el,i),i<1?t=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(O(this._fadeFrame),this._fadeFrame=R(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=pt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(dt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var o=this._levels[e],r=this._map;return o||((o=this._levels[e]={}).el=pt("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=t,o.origin=r.project(r.unproject(r.getPixelOrigin()),e).round(),o.zoom=e,this._setZoomTransform(o,r.getCenter(),r.getZoom()),u(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var o=t.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)dt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,o){var r=Math.floor(e/2),i=Math.floor(t/2),s=n-1,a=new N(+r,+i);a.z=+s;var l=this._tileCoordsToKey(a),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),s>o&&this._retainParent(r,i,s,o))},_retainChildren:function(e,t,n,o){for(var r=2*e;r<2*e+2;r++)for(var i=2*t;i<2*t+2;i++){var s=new N(r,i);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<o&&this._retainChildren(r,i,n+1,o))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,o){var r=Math.round(t);r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r);var i=this.options.updateWhenZooming&&r!==this._tileZoom;o&&!i||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var o=this._map.getZoomScale(n,e.zoom),r=e.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(t,n)).round();Ie.any3d?St(e.el,r,o):Rt(e.el,r)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),o=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],o).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],o).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],o).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],o).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),o=t.getZoomScale(n,this._tileZoom),r=t.project(e,this._tileZoom).floor(),i=t.getSize().divideBy(2*o);return new F(r.subtract(i),r.add(i))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var o=this._getTiledPixelBounds(e),r=this._pxBoundsToTileRange(o),i=r.getCenter(),s=[],a=this.options.keepBuffer,l=new F(r.getBottomLeft().subtract([a,-a]),r.getTopRight().add([a,-a]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new N(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var p=r.min.y;p<=r.max.y;p++)for(var d=r.min.x;d<=r.max.x;d++){var h=new N(d,p);if(h.z=this._tileZoom,this._isValidTile(h)){var f=this._tiles[this._tileCoordsToKey(h)];f?f.current=!0:s.push(h)}}if(s.sort((function(e,t){return e.distanceTo(i)-t.distanceTo(i)})),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(d=0;d<s.length;d++)this._addTile(s[d],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(e);return H(this.options.bounds).overlaps(o)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),o=e.scaleBy(n),r=o.add(n);return[t.unproject(o,e.z),t.unproject(r,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new G(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new N(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(dt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){vt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=u,e.onmousemove=u,Ie.ielt9&&this.options.opacity<1&&bt(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),o=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),r(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&R(r(this._tileReady,this,e,null,i)),Rt(i,n),this._tiles[o]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var o=this._tileCoordsToKey(e);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(bt(n.el,0),O(this._fadeFrame),this._fadeFrame=R(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(vt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ie.ielt9||!this._map._fadeAnimated?R(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new N(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new F(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Lo(e){return new No(e)}var Io=No.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=h(this,t)).detectRetina&&Ie.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"===typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return Mt(n,"load",r(this._tileOnLoad,this,t,n)),Mt(n,"error",r(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"===typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(e),n},getTileUrl:function(e){var t={r:Ie.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=o),t["-y"]=o}return m(this._url,n(t,this.options))},_tileOnLoad:function(e,t){Ie.ielt9?setTimeout(r(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var o=this.options.errorTileUrl;o&&t.getAttribute("src")!==o&&(t.src=o),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=u,t.onerror=u,!t.complete)){t.src=C;var n=this._tiles[e].coords;dt(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",C),No.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==C))return No.prototype._tileReady.call(this,e,t,n)}});function Mo(e,t){return new Io(e,t)}var Fo=Io.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var o=n({},this.defaultWmsParams);for(var r in t)r in this.options||(o[r]=t[r]);var i=(t=h(this,t)).detectRetina&&Ie.retina?2:1,s=this.getTileSize();o.width=s.x*i,o.height=s.y*i,this.wmsParams=o},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Io.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,o=k(n.project(t[0]),n.project(t[1])),r=o.min,i=o.max,s=(this._wmsVersion>=1.3&&this._crs===Gn?[r.y,r.x,i.y,i.x]:[r.x,r.y,i.x,i.y]).join(","),a=Io.prototype.getTileUrl.call(this,e);return a+f(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function ko(e,t){return new Fo(e,t)}Io.WMS=Fo,Mo.wms=ko;var Go=Vn.extend({options:{padding:.1},initialize:function(e){h(this,e),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&vt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,t),i=o.multiplyBy(-n).add(r).subtract(this._map._getNewPixelOrigin(e,t));Ie.any3d?St(this._container,i,n):Rt(this._container,i)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new F(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ho=Go.extend({options:{tolerance:0},getEvents:function(){var e=Go.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Go.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Mt(e,"mousemove",this._onMouseMove,this),Mt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Mt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,dt(this._container),kt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Go.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),o=Ie.retina?2:1;Rt(t,e.min),t.width=o*n.x,t.height=o*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Ie.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Go.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[s(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,o=t.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete e._order,delete this._layers[s(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"===typeof e.options.dashArray){var t,n,o=e.options.dashArray.split(/[, ]+/),r=[];for(n=0;n<o.length;n++){if(t=Number(o[n]),isNaN(t))return;r.push(t)}e.options._dashArray=r}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||R(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new F,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var o=this._drawFirst;o;o=o.next)e=o.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,o,r,i,s=e._parts,a=s.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(o=0,r=s[n].length;o<r;o++)i=s[n][o],l[o?"lineTo":"moveTo"](i.x,i.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,o=Math.max(Math.round(e._radius),1),r=(Math.max(Math.round(e._radiusY),1)||o)/o;1!==r&&(n.save(),n.scale(1,r)),n.beginPath(),n.arc(t.x,t.y/r,o,0,2*Math.PI,!1),1!==r&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,o=this._map.mouseEventToLayerPoint(e),r=this._drawFirst;r;r=r.next)(t=r.layer).options.interactive&&t._containsPoint(o)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(yt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,o,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(t)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(e),o&&(vt(this._container,"leaflet-interactive"),this._fireEvent([o],e,"mouseover"),this._hoveredLayer=o)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(r((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,o=t.prev;n&&(n.prev=o,o?o.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,o=t.prev;o&&(o.next=n,n?n.prev=o:o&&(this._drawLast=o),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function Vo(e){return Ie.canvas?new Ho(e):null}var jo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Wo={_initContainer:function(){this._container=pt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Go.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=jo("shape");vt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=jo("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;dt(t),e.removeInteractiveTarget(t),delete this._layers[s(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,o=e.options,r=e._container;r.stroked=!!o.stroke,r.filled=!!o.fill,o.stroke?(t||(t=e._stroke=jo("stroke")),r.appendChild(t),t.weight=o.weight+"px",t.color=o.color,t.opacity=o.opacity,o.dashArray?t.dashStyle=v(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=o.lineCap.replace("butt","flat"),t.joinstyle=o.lineJoin):t&&(r.removeChild(t),e._stroke=null),o.fill?(n||(n=e._fill=jo("fill")),r.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(r.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),o=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+o+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){ft(e._container)},_bringToBack:function(e){gt(e._container)}},Bo=Ie.vml?jo:Q,Uo=Go.extend({_initContainer:function(){this._container=Bo("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Bo("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){dt(this._container),kt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Go.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),Rt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=Bo("path");e.options.className&&vt(t,e.options.className),e.options.interactive&&vt(t,"leaflet-interactive"),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){dt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[s(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,$(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),o="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",r=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+o+2*n+",0 "+o+2*-n+",0 ";this._setPath(e,r)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){ft(e._path)},_bringToBack:function(e){gt(e._path)}});function zo(e){return Ie.svg||Ie.vml?new Uo(e):null}Ie.vml&&Uo.include(Wo),Jt.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Vo(e)||zo(e)}});var Ko=ro.extend({initialize:function(e,t){ro.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=H(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function qo(e,t){return new Ko(e,t)}Uo.create=Bo,Uo.pointsToPath=$,so.geometryToLayer=ao,so.coordsToLatLng=uo,so.coordsToLatLngs=co,so.latLngToCoords=po,so.latLngsToCoords=ho,so.getFeature=fo,so.asFeature=go,Jt.mergeOptions({boxZoom:!0});var Zo=hn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Mt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){kt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){dt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),tt(),Tt(),this._startPoint=this._map.mouseEventToContainerPoint(e),Mt(document,{contextmenu:Kt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=pt("div","leaflet-zoom-box",this._container),vt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new F(this._point,this._startPoint),n=t.getSize();Rt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(dt(this._box),yt(this._container,"leaflet-crosshair")),nt(),xt(),kt(document,{contextmenu:Kt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var t=new G(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Jt.addInitHook("addHandler","boxZoom",Zo),Jt.mergeOptions({doubleClickZoom:!0});var Yo=hn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),o=t.options.zoomDelta,r=e.originalEvent.shiftKey?n-o:n+o;"center"===t.options.doubleClickZoom?t.setZoom(r):t.setZoomAround(e.containerPoint,r)}});Jt.addInitHook("addHandler","doubleClickZoom",Yo),Jt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Qo=hn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new vn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}vt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){yt(this._map._container,"leaflet-grab"),yt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=H(this._map.options.maxBounds);this._offsetLimit=k(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,r=(o-t+n)%e+t-n,i=(o+t+n)%e-t-n,s=Math.abs(r+n)<Math.abs(i+n)?r:i;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(e){var t=this._map,n=t.options,o=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),o)t.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),i=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=r.multiplyBy(s/i),l=a.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=a.multiplyBy(u/l),p=u/(n.inertiaDeceleration*s),d=c.multiplyBy(-p/2).round();d.x||d.y?(d=t._limitOffset(d,t.options.maxBounds),R((function(){t.panBy(d,{duration:p,easeLinearity:s,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});Jt.addInitHook("addHandler","dragging",Qo),Jt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var $o=hn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),Mt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),kt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,o=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(o,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,o=this._panKeys={},r=this.keyCodes;for(t=0,n=r.left.length;t<n;t++)o[r.left[t]]=[-1*e,0];for(t=0,n=r.right.length;t<n;t++)o[r.right[t]]=[e,0];for(t=0,n=r.down.length;t<n;t++)o[r.down[t]]=[0,e];for(t=0,n=r.up.length;t<n;t++)o[r.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,o=this._zoomKeys={},r=this.keyCodes;for(t=0,n=r.zoomIn.length;t<n;t++)o[r.zoomIn[t]]=e;for(t=0,n=r.zoomOut.length;t<n;t++)o[r.zoomOut[t]]=-e},_addHooks:function(){Mt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){kt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,o=this._map;if(n in this._panKeys)o._panAnim&&o._panAnim._inProgress||(t=this._panKeys[n],e.shiftKey&&(t=M(t).multiplyBy(3)),o.panBy(t),o.options.maxBounds&&o.panInsideBounds(o.options.maxBounds));else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}Kt(e)}}});Jt.addInitHook("addHandler","keyboard",$o),Jt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Xo=hn.extend({addHooks:function(){Mt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){kt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=Yt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),o),Kt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var o=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,i=n?Math.ceil(r/n)*n:r,s=e._limitZoom(t+(this._delta>0?i:-i))-t;this._delta=0,this._startTime=null,s&&("center"===e.options.scrollWheelZoom?e.setZoom(t+s):e.setZoomAround(this._lastMousePos,t+s))}});Jt.addInitHook("addHandler","scrollWheelZoom",Xo);var Jo=600;Jt.mergeOptions({tapHold:Ie.touchNative&&Ie.safari&&Ie.mobile,tapTolerance:15});var er=hn.extend({addHooks:function(){Mt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){kt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new N(t.clientX,t.clientY),this._holdTimeout=setTimeout(r((function(){this._cancel(),this._isTapValid()&&(Mt(document,"touchend",zt),Mt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),Jo),Mt(document,"touchend touchcancel contextmenu",this._cancel,this),Mt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){kt(document,"touchend",zt),kt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),kt(document,"touchend touchcancel contextmenu",this._cancel,this),kt(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new N(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});Jt.addInitHook("addHandler","tapHold",er),Jt.mergeOptions({touchZoom:Ie.touch,bounceAtZoomLimits:!0});var tr=hn.extend({addHooks:function(){vt(this._map._container,"leaflet-touch-zoom"),Mt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){yt(this._map._container,"leaflet-touch-zoom"),kt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Mt(document,"touchmove",this._onTouchMove,this),Mt(document,"touchend touchcancel",this._onTouchEnd,this),zt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(o)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var s=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===s.x&&0===s.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var a=r(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=R(a,this,!0),zt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,O(this._animRequest),kt(document,"touchmove",this._onTouchMove,this),kt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Jt.addInitHook("addHandler","touchZoom",tr),Jt.BoxZoom=Zo,Jt.DoubleClickZoom=Yo,Jt.Drag=Qo,Jt.Keyboard=$o,Jt.ScrollWheelZoom=Xo,Jt.TapHold=er,Jt.TouchZoom=tr,e.Bounds=F,e.Browser=Ie,e.CRS=W,e.Canvas=Ho,e.Circle=eo,e.CircleMarker=Xn,e.Class=T,e.Control=tn,e.DivIcon=Ao,e.DivOverlay=Ro,e.DomEvent=$t,e.DomUtil=It,e.Draggable=vn,e.Evented=D,e.FeatureGroup=Bn,e.GeoJSON=so,e.GridLayer=No,e.Handler=hn,e.Icon=zn,e.ImageOverlay=Co,e.LatLng=V,e.LatLngBounds=G,e.Layer=Vn,e.LayerGroup=jn,e.LineUtil=Dn,e.Map=Jt,e.Marker=Yn,e.Mixin=gn,e.Path=$n,e.Point=N,e.PolyUtil=Ln,e.Polygon=ro,e.Polyline=no,e.Popup=Oo,e.PosAnimation=Xt,e.Projection=Fn,e.Rectangle=Ko,e.Renderer=Go,e.SVG=Uo,e.SVGOverlay=Eo,e.TileLayer=Io,e.Tooltip=To,e.Transformation=K,e.Util=P,e.VideoOverlay=bo,e.bind=r,e.bounds=k,e.canvas=Vo,e.circle=to,e.circleMarker=Jn,e.control=nn,e.divIcon=Do,e.extend=n,e.featureGroup=Un,e.geoJSON=vo,e.geoJson=yo,e.gridLayer=Lo,e.icon=Kn,e.imageOverlay=wo,e.latLng=j,e.latLngBounds=H,e.layerGroup=Wn,e.map=en,e.marker=Qn,e.point=M,e.polygon=io,e.polyline=oo,e.popup=Po,e.rectangle=qo,e.setOptions=h,e.stamp=s,e.svg=zo,e.svgOverlay=So,e.tileLayer=Mo,e.tooltip=xo,e.transformation=q,e.version=t,e.videoOverlay=_o;var nr=window.L;e.noConflict=function(){return window.L=nr,this},window.L=e}(t)},888:function(e,t,n){"use strict";var o=n(9047);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7511:function(e,t,n){"use strict";t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=l(n(2007)),i=l(n(1511)),s=l(n(9198)),a=n(9051);function l(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(){return!0},b="suggestions-revealed",_="input-focused",E="input-changed",S="escape-pressed",R=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(c,e);var t,n,r,l,u=(t=c,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function c(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),C(g(t=u.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),C(g(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),C(g(t),"onSuggestionMouseEnter",(function(e,n){var o=n.sectionIndex,r=n.itemIndex;t.updateHighlightedSuggestion(o,r),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),C(g(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),C(g(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),C(g(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),C(g(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),C(g(t),"onSuggestionSelected",(function(e,n){var o=t.props,r=o.alwaysRenderSuggestions,i=o.onSuggestionSelected,s=o.onSuggestionsFetchRequested;i&&i(e,n);var a=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);r||a?s({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),C(g(t),"onSuggestionClick",(function(e){var n=t.props,o=n.alwaysRenderSuggestions,r=n.focusInputOnSuggestionClick,i=t.getSuggestionIndices(t.findSuggestionElement(e.target)),s=i.sectionIndex,a=i.suggestionIndex,l=t.getSuggestion(s,a),u=t.props.getSuggestionValue(l);t.maybeCallOnChange(e,u,"click"),t.onSuggestionSelected(e,{suggestion:l,suggestionValue:u,suggestionIndex:a,sectionIndex:s,method:"click"});var c=t.props.shouldKeepSuggestionsOnSelect(l);o||c||t.closeSuggestions(),!0===r?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),C(g(t),"onBlur",(function(){var e=t.props,n=e.inputProps,o=e.shouldRenderSuggestions,r=n.value,i=n.onBlur,s=t.getHighlightedSuggestion(),a=o(r,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!a}),i&&i(t.blurEvent,{highlightedSuggestion:s})})),C(g(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),C(g(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),C(g(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),C(g(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),C(g(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,o=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:o,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return n=c,r=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,i.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.suggestions,r=n.onSuggestionHighlighted,s=n.highlightFirstSuggestion;if(!(0,i.default)(o,e.suggestions)&&o.length>0&&s)this.highlightFirstSuggestion();else if(r){var a=this.getHighlightedSuggestion();a!=t.highlightedSuggestion&&r({suggestion:a})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var o=this;this.setState((function(r){var i=r.valueBeforeUpDown;return null===t?i=null:null===i&&"undefined"!==typeof n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:o.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,o=n.suggestions,r=n.multiSection,i=n.getSectionSuggestions;return r?i(o[e])[t]:o[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"===typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var o=this.props.inputProps,r=o.value,i=o.onChange;t!==r&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,o=e.inputProps,r=e.shouldRenderSuggestions,i=o.value;return n.length>0&&r(i,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,r=t.renderInputComponent,i=t.onSuggestionsFetchRequested,l=t.renderSuggestion,u=t.inputProps,c=t.multiSection,p=t.renderSectionTitle,h=t.id,f=t.getSectionSuggestions,g=t.theme,m=t.getSuggestionValue,v=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,C=t.containerProps,R=this.state,O=R.isFocused,P=R.isCollapsed,T=R.highlightedSectionIndex,x=R.highlightedSuggestionIndex,A=R.valueBeforeUpDown,D=v?w:this.props.shouldRenderSuggestions,N=u.value,L=u.onFocus,I=u.onKeyDown,M=this.willRenderSuggestions(this.props,"render"),F=v||O&&!P&&M,k=F?n:[],G=d({},u,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=D(N,_);e.setState({isFocused:!0,isCollapsed:!n}),L&&L(t),n&&i({value:N,reason:_})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,o=D(n,E);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(d({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!o})),o?i({value:n,reason:E}):e.onSuggestionsClearRequested()},onKeyDown:function(t,o){var r=t.keyCode;switch(r){case 40:case 38:if(P)D(N,b)&&(i({value:N,reason:b}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var s,a=o.newHighlightedSectionIndex,l=o.newHighlightedItemIndex;s=null===l?null===A?N:A:e.getSuggestionValueByIndex(a,l),e.updateHighlightedSuggestion(a,l,N),e.maybeCallOnChange(t,s,40===r?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(F&&!v&&e.closeSuggestions(),null!=u){t.preventDefault();var c=m(u);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:c,suggestionIndex:x,sectionIndex:T,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:F&&t.preventDefault();var p=F&&!v;null===A?p||(e.maybeCallOnChange(t,"","escape"),D("",S)?i({value:"",reason:S}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,A,"escape"),p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}I&&I(t)}}),H={query:this.getQuery()};return o.default.createElement(s.default,{multiSection:c,items:k,renderInputComponent:r,renderItemsContainer:this.renderSuggestionsContainer,renderItem:l,renderItemData:H,renderSectionTitle:p,getSectionItems:f,highlightedSectionIndex:T,highlightedItemIndex:x,containerProps:C,inputProps:G,itemProps:this.itemProps,theme:(0,a.mapToAutowhateverTheme)(g),id:h,ref:this.storeAutowhateverRef})}}],r&&h(n.prototype,r),l&&h(n,l),c}(o.Component);t.default=R,C(R,"propTypes",{suggestions:r.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!==typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!==typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:r.default.func,onSuggestionSelected:r.default.func,onSuggestionHighlighted:r.default.func,renderInputComponent:r.default.func,renderSuggestionsContainer:r.default.func,getSuggestionValue:r.default.func.isRequired,renderSuggestion:r.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:r.default.func,alwaysRenderSuggestions:r.default.bool,multiSection:r.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!==typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!==typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:r.default.bool,highlightFirstSuggestion:r.default.bool,theme:r.default.object,id:r.default.string,containerProps:r.default.object}),C(R,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:a.defaultTheme,id:"1",containerProps:{}})},9198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=u(n(2007)),i=u(n(5201)),s=u(n(1016)),a=u(n(326)),l=u(n(5875));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function g(e){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return!t||"object"!==g(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E={},S=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(p,e);var t,n,r,u,c=(t=p,function(){var e,n=w(t);if(C()){var o=w(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return v(this,e)});function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),_(y(t=c.call(this,e)),"storeInputReference",(function(e){null!==e&&(t.input=e);var n=t.props.inputProps.ref;n&&("function"===typeof n?n(e):"object"===g(n)&&Object.prototype.hasOwnProperty.call(n,"current")&&(n.current=e))})),_(y(t),"storeItemsContainerReference",(function(e){null!==e&&(t.itemsContainer=e)})),_(y(t),"onHighlightedItemChange",(function(e){t.highlightedItem=e})),_(y(t),"getItemId",(function(e,n){if(null===n)return null;var o=t.props.id,r=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(o,"-").concat(r,"-item-").concat(n)})),_(y(t),"onFocus",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)})),_(y(t),"onBlur",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)})),_(y(t),"onKeyDown",(function(e){var n=t.props,o=n.inputProps,r=n.highlightedSectionIndex,i=n.highlightedItemIndex,s=e.keyCode;switch(s){case 40:case 38:var a=40===s?"next":"prev",l=h(t.sectionIterator[a]([r,i]),2),u=l[0],c=l[1];o.onKeyDown(e,{newHighlightedSectionIndex:u,newHighlightedItemIndex:c});break;default:o.onKeyDown(e,{highlightedSectionIndex:r,highlightedItemIndex:i})}})),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return n=p,(r=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,i.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,s.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,i=n.items,s=n.renderItem,u=n.renderItemData,c=n.renderSectionTitle,p=n.highlightedSectionIndex,d=n.highlightedItemIndex,h=n.itemProps;return i.map((function(n,i){var f="react-autowhatever-".concat(r,"-"),g="".concat(f,"section-").concat(i,"-"),m=0===i;return o.default.createElement("div",t("".concat(g,"container"),"sectionContainer",m&&"sectionContainerFirst"),o.default.createElement(a.default,{section:n,renderSectionTitle:c,theme:t,sectionKeyPrefix:g}),o.default.createElement(l.default,{items:e.sectionsItems[i],itemProps:h,renderItem:s,renderItemData:u,sectionIndex:i,highlightedItemIndex:p===i?d:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:f,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,r=n.id,i=n.renderItem,s=n.renderItemData,a=n.highlightedSectionIndex,u=n.highlightedItemIndex,c=n.itemProps;return o.default.createElement(l.default,{items:e,itemProps:c,renderItem:i,renderItemData:s,highlightedItemIndex:null===a?u:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(r,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,o=t.scrollTop;n<o?o=n:n+e.offsetHeight>o+t.offsetHeight&&(o=n+e.offsetHeight-t.offsetHeight),o!==t.scrollTop&&(t.scrollTop=o)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,r=t.multiSection,i=t.renderInputComponent,s=t.renderItemsContainer,a=t.highlightedSectionIndex,l=t.highlightedItemIndex,u=this.state.isInputFocused,c=r?this.renderSections():this.renderItems(),p=null!==c,h=this.getItemId(a,l),f="react-autowhatever-".concat(n),g=d({role:"combobox","aria-haspopup":"listbox","aria-owns":f,"aria-expanded":p},e("react-autowhatever-".concat(n,"-container"),"container",p&&"containerOpen"),{},this.props.containerProps),m=i(d({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":f,"aria-activedescendant":h},e("react-autowhatever-".concat(n,"-input"),"input",p&&"inputOpen",u&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=s({containerProps:d({id:f,role:"listbox"},e("react-autowhatever-".concat(n,"-items-container"),"itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:c});return o.default.createElement("div",g,m,v)}}])&&m(n.prototype,r),u&&m(n,u),p}(o.Component);t.default=S,_(S,"propTypes",{id:r.default.string,multiSection:r.default.bool,renderInputComponent:r.default.func,renderItemsContainer:r.default.func,items:r.default.array.isRequired,renderItem:r.default.func,renderItemData:r.default.object,renderSectionTitle:r.default.func,getSectionItems:r.default.func,containerProps:r.default.object,inputProps:r.default.object,itemProps:r.default.oneOfType([r.default.object,r.default.func]),highlightedSectionIndex:r.default.number,highlightedItemIndex:r.default.number,theme:r.default.oneOfType([r.default.object,r.default.array])}),_(S,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return o.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:E,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:E,inputProps:E,itemProps:E,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},7391:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=s(n(2007)),i=s(n(8448));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(l,e);var t,n,r,s,a=(t=l,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function l(){var e;d(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return C(g(e=a.call.apply(a,[this].concat(n))),"storeItemReference",(function(t){null!==t&&(e.item=t)})),C(g(e),"onMouseEnter",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onMouseLeave",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onMouseDown",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onClick",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onClick(t,{sectionIndex:o,itemIndex:r})})),e}return n=l,r=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,r=e.renderItem,i=e.renderItemData,s=p(e,["isHighlighted","item","renderItem","renderItemData"]);return delete s.sectionIndex,delete s.itemIndex,"function"===typeof s.onMouseEnter&&(s.onMouseEnter=this.onMouseEnter),"function"===typeof s.onMouseLeave&&(s.onMouseLeave=this.onMouseLeave),"function"===typeof s.onMouseDown&&(s.onMouseDown=this.onMouseDown),"function"===typeof s.onClick&&(s.onClick=this.onClick),o.default.createElement("li",u({role:"option"},s,{ref:this.storeItemReference}),r(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isHighlighted:t},i)))}}],r&&h(n.prototype,r),s&&h(n,s),l}(o.Component);t.default=w,C(w,"propTypes",{sectionIndex:r.default.number,isHighlighted:r.default.bool.isRequired,itemIndex:r.default.number.isRequired,item:r.default.any.isRequired,renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,onMouseEnter:r.default.func,onMouseLeave:r.default.func,onMouseDown:r.default.func,onClick:r.default.func})},5875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=a(n(2007)),i=a(n(7391)),s=a(n(8448));function a(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(u,e);var t,n,r,a,l=(t=u,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function u(){var e;d(this,u);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return C(g(e=l.call.apply(l,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return n=u,r=[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=t.itemProps,s=t.renderItem,a=t.renderItemData,l=t.sectionIndex,u=t.highlightedItemIndex,d=t.getItemId,h=t.theme,f=t.keyPrefix,g=null===l?f:"".concat(f,"section-").concat(l,"-"),m="function"===typeof r;return o.default.createElement("ul",c({role:"listbox"},h("".concat(g,"items-list"),"itemsList")),n.map((function(t,n){var f=0===n,v=n===u,y="".concat(g,"item-").concat(n),w=m?r({sectionIndex:l,itemIndex:n}):r,b=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:d(l,n),"aria-selected":v},h(y,"item",f&&"itemFirst",v&&"itemHighlighted"),{},w);return v&&(b.ref=e.storeHighlightedItemReference),o.default.createElement(i.default,c({},b,{sectionIndex:l,isHighlighted:v,itemIndex:n,item:t,renderItem:s,renderItemData:a}))})))}}],r&&h(n.prototype,r),a&&h(n,a),u}(o.Component);t.default=w,C(w,"propTypes",{items:r.default.array.isRequired,itemProps:r.default.oneOfType([r.default.object,r.default.func]),renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,sectionIndex:r.default.number,highlightedItemIndex:r.default.number,onHighlightedItemChange:r.default.func.isRequired,getItemId:r.default.func.isRequired,theme:r.default.func.isRequired,keyPrefix:r.default.string.isRequired}),C(w,"defaultProps",{sectionIndex:null})},326:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=s(n(2007)),i=s(n(8448));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}var g,m,v,y=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(l,e);var t,n,r,s,a=(t=l,function(){var e,n=h(t);if(d()){var o=h(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return p(this,e)});function l(){return u(this,l),a.apply(this,arguments)}return n=l,(r=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,i=e.sectionKeyPrefix,s=n(t);return s?o.default.createElement("div",r("".concat(i,"title"),"sectionTitle"),s):null}}])&&c(n.prototype,r),s&&c(n,s),l}(o.Component);t.default=y,g=y,m="propTypes",v={section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired},m in g?Object.defineProperty(g,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):g[m]=v},8448:function(e,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!0;var s,a,l={};for(s=0,a=o.length;s<a;s++)l[o[s]]=!0;for(s=0,a=r.length;s<a;s++){var u=r[s],c=e[u],p=t[u];if(c!==p){if(!l[u]||null===c||null===p||"object"!==n(c)||"object"!==n(p))return!0;var d=Object.keys(c),h=Object.keys(p);if(d.length!==h.length)return!0;for(var f=0,g=d.length;f<g;f++){var m=d[f];if(c[m]!==p[m])return!0}}}return!1}},9986:function(e,t,n){"use strict";e.exports=n(7511).default},9051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0;t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},1071:function(e,t,n){"use strict";var o=n(2791);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Object.prototype.hasOwnProperty,s=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a={},l={};function u(e){return!!i.call(l,e)||!i.call(a,e)&&(s.test(e)?l[e]=!0:(a[e]=!0,!1))}function c(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new c(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new c(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new c(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new c(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new c(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new c(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)}));var d=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(d,h);p[t]=new c(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(d,h);p[t]=new c(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(d,h);p[t]=new c(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)}));var f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","ms","Moz","O"];Object.keys(f).forEach((function(e){g.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),f[t]=f[e]}))}));var m=/["'&<>]/;function v(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=m.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}var y=/([A-Z])/g,C=/^ms-/,w=Array.isArray;function b(e,t){return{insertionMode:e,selectedValue:t}}var _=new Map;function E(e,t,n){if("object"!==typeof n)throw Error(r(62));for(var o in t=!0,n)if(i.call(n,o)){var s=n[o];if(null!=s&&"boolean"!==typeof s&&""!==s){if(0===o.indexOf("--")){var a=v(o);s=v((""+s).trim())}else{a=o;var l=_.get(a);void 0!==l||(l=v(a.replace(y,"-$1").toLowerCase().replace(C,"-ms-")),_.set(a,l)),a=l,s="number"===typeof s?0===s||i.call(f,o)?""+s:s+"px":v((""+s).trim())}t?(t=!1,e.push(' style="',a,":",s)):e.push(";",a,":",s)}}t||e.push('"')}function S(e,t,n,o){switch(n){case"style":return void E(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=p.hasOwnProperty(n)?p[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:o&&e.push(" ",n,'=""');break;case 4:!0===o?e.push(" ",n,'=""'):!1!==o&&e.push(" ",n,'="',v(o),'"');break;case 5:isNaN(o)||e.push(" ",n,'="',v(o),'"');break;case 6:!isNaN(o)&&1<=o&&e.push(" ",n,'="',v(o),'"');break;default:t.sanitizeURL&&(o=""+o),e.push(" ",n,'="',v(o),'"')}}else if(u(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',v(o),'"')}}function R(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!==typeof t||!("__html"in t))throw Error(r(61));null!==(t=t.__html)&&void 0!==t&&e.push(""+t)}}function O(e,t,n,o){e.push(x(n));var r,s=n=null;for(r in t)if(i.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":n=a;break;case"dangerouslySetInnerHTML":s=a;break;default:S(e,o,r,a)}}return e.push(">"),R(e,s,n),"string"===typeof n?(e.push(v(n)),null):n}var P=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,T=new Map;function x(e){var t=T.get(e);if(void 0===t){if(!P.test(e))throw Error(r(65,e));t="<"+e,T.set(e,t)}return t}function A(e,t,n,s,a){switch(t){case"select":e.push(x("select"));var l=null,c=null;for(f in n)if(i.call(n,f)){var p=n[f];if(null!=p)switch(f){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;case"defaultValue":case"value":break;default:S(e,s,f,p)}}return e.push(">"),R(e,c,l),l;case"option":c=a.selectedValue,e.push(x("option"));var d=p=null,h=null,f=null;for(l in n)if(i.call(n,l)){var g=n[l];if(null!=g)switch(l){case"children":p=g;break;case"selected":h=g;break;case"dangerouslySetInnerHTML":f=g;break;case"value":d=g;default:S(e,s,l,g)}}if(null!=c)if(n=null!==d?""+d:function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(p),w(c)){for(s=0;s<c.length;s++)if(""+c[s]===n){e.push(' selected=""');break}}else""+c===n&&e.push(' selected=""');else h&&e.push(' selected=""');return e.push(">"),R(e,f,p),p;case"textarea":for(p in e.push(x("textarea")),f=c=l=null,n)if(i.call(n,p)&&null!=(d=n[p]))switch(p){case"children":f=d;break;case"value":l=d;break;case"defaultValue":c=d;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:S(e,s,p,d)}if(null===l&&null!==c&&(l=c),e.push(">"),null!=f){if(null!=l)throw Error(r(92));if(w(f)&&1<f.length)throw Error(r(93));l=""+f}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(v(""+l)),null;case"input":for(c in e.push(x("input")),d=f=p=l=null,n)if(i.call(n,c)&&null!=(h=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":d=h;break;case"defaultValue":p=h;break;case"checked":f=h;break;case"value":l=h;break;default:S(e,s,c,h)}return null!==f?S(e,s,"checked",f):null!==d&&S(e,s,"checked",d),null!==l?S(e,s,"value",l):null!==p&&S(e,s,"value",p),e.push("/>"),null;case"menuitem":for(var m in e.push(x("menuitem")),n)if(i.call(n,m)&&null!=(l=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:S(e,s,m,l)}return e.push(">"),null;case"title":for(g in e.push(x("title")),l=null,n)if(i.call(n,g)&&null!=(c=n[g]))switch(g){case"children":l=c;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:S(e,s,g,c)}return e.push(">"),l;case"listing":case"pre":for(d in e.push(x(t)),c=l=null,n)if(i.call(n,d)&&null!=(p=n[d]))switch(d){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;default:S(e,s,d,p)}if(e.push(">"),null!=c){if(null!=l)throw Error(r(60));if("object"!==typeof c||!("__html"in c))throw Error(r(61));null!==(n=c.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(x(t)),n)if(i.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,t));default:S(e,s,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return O(e,n,t,s);case"html":return 0===a.insertionMode&&e.push("<!DOCTYPE html>"),O(e,n,t,s);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return O(e,n,t,s);for(h in e.push(x(t)),c=l=null,n)if(i.call(n,h)&&null!=(p=n[h]))switch(h){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;case"style":E(e,s,p);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(h)&&"function"!==typeof p&&"symbol"!==typeof p&&e.push(" ",h,'="',v(p),'"')}return e.push(">"),R(e,c,l),l}}function D(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(r(395));return e.push(n),e.push('"></template>')}var N=/[<\u2028\u2029]/g;function L(e){return JSON.stringify(e).replace(N,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function I(e,t,n,o){return n.generateStaticMarkup?(e.push(v(t)),!1):(""===t?e=o:(o&&e.push("\x3c!-- --\x3e"),e.push(v(t)),e=!0),e)}var M=Object.assign,F=Symbol.for("react.element"),k=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),W=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Z=Symbol.for("react.scope"),Y=Symbol.for("react.debug_trace_mode"),Q=Symbol.for("react.legacy_hidden"),$=Symbol.for("react.default_value"),X=Symbol.iterator;function J(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case G:return"Fragment";case k:return"Portal";case V:return"Profiler";case H:return"StrictMode";case U:return"Suspense";case z:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case W:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case B:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case K:return null!==(t=e.displayName||null)?t:J(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return J(e(t))}catch(n){}}return null}var ee={};function te(e,t){if(!(e=e.contextTypes))return ee;var n,o={};for(n in e)o[n]=t[n];return o}var ne=null;function oe(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));oe(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function ie(e){var t=e.parent;null!==t&&ie(t),e.context._currentValue2=e.value}function se(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?oe(e,t):se(e,t)}function ae(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?oe(e,n):ae(e,n),t.context._currentValue2=t.value}function le(e){var t=ne;t!==e&&(null===t?ie(e):null===e?re(t):t.depth===e.depth?oe(t,e):t.depth>e.depth?se(t,e):ae(t,e),ne=e)}var ue={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,o){var r=void 0!==e.state?e.state:null;e.updater=ue,e.props=n,e.state=r;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"===typeof s&&null!==s?s._currentValue2:o,"function"===typeof(s=t.getDerivedStateFromProps)&&(r=null===(s=s(n,r))||void 0===s?r:M({},r,s),e.state=r),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&ue.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,r=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"===typeof a?a.call(e,i,n,o):a)&&(r?(r=!1,i=M({},i,a)):M(i,a))}e.state=i}else i.queue=null}var pe={id:1,overflow:""};function de(e,t,n){var o=e.id;e=e.overflow;var r=32-he(o)-1;o&=~(1<<r),n+=1;var i=32-he(t)+r;if(30<i){var s=r-r%5;return i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,{id:1<<32-he(t)+r|n<<r|o,overflow:i+e}}return{id:1<<i|n<<r|o,overflow:e}}var he=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(fe(e)/ge|0)|0},fe=Math.log,ge=Math.LN2;var me="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ve=null,ye=null,Ce=null,we=null,be=!1,_e=!1,Ee=0,Se=null,Re=0;function Oe(){if(null===ve)throw Error(r(321));return ve}function Pe(){if(0<Re)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Te(){return null===we?null===Ce?(be=!1,Ce=we=Pe()):(be=!0,we=Ce):null===we.next?(be=!1,we=we.next=Pe()):(be=!0,we=we.next),we}function xe(){ye=ve=null,_e=!1,Ce=null,Re=0,we=Se=null}function Ae(e,t){return"function"===typeof t?t(e):t}function De(e,t,n){if(ve=Oe(),we=Te(),be){var o=we.queue;if(t=o.dispatch,null!==Se&&void 0!==(n=Se.get(o))){Se.delete(o),o=we.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return we.memoizedState=o,[o,t]}return[we.memoizedState,t]}return e=e===Ae?"function"===typeof t?t():t:void 0!==n?n(t):t,we.memoizedState=e,e=(e=we.queue={last:null,dispatch:null}).dispatch=Le.bind(null,ve,e),[we.memoizedState,e]}function Ne(e,t){if(ve=Oe(),t=void 0===t?null:t,null!==(we=Te())){var n=we.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!me(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),we.memoizedState=[e,t],e}function Le(e,t,n){if(25<=Re)throw Error(r(301));if(e===ve)if(_e=!0,e={action:n,next:null},null===Se&&(Se=new Map),void 0===(n=Se.get(t)))Se.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ie(){throw Error(r(394))}function Me(){}var Fe={readContext:function(e){return e._currentValue2},useContext:function(e){return Oe(),e._currentValue2},useMemo:Ne,useReducer:De,useRef:function(e){ve=Oe();var t=(we=Te()).memoizedState;return null===t?(e={current:e},we.memoizedState=e):t},useState:function(e){return De(Ae,e)},useInsertionEffect:Me,useLayoutEffect:function(){},useCallback:function(e,t){return Ne((function(){return e}),t)},useImperativeHandle:Me,useEffect:Me,useDebugValue:Me,useDeferredValue:function(e){return Oe(),e},useTransition:function(){return Oe(),[!1,Ie]},useId:function(){var e=ye.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-he(e)-1)).toString(32)+t;var n=ke;if(null===n)throw Error(r(404));return t=Ee++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Oe(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},ke=null,Ge=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function He(e){return console.error(e),null}function Ve(){}function je(e,t,n,o,r,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&nt(e)},blockedBoundary:n,blockedSegment:o,abortSet:r,legacyContext:i,context:s,treeContext:a};return r.add(l),l}function We(e,t,n,o,r,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:r,textEmbedded:i}}function Be(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ue(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function ze(e,t,n,o,r){for(ve={},ye=t,Ee=0,e=n(o,r);_e;)_e=!1,Ee=0,Re+=1,we=null,e=n(o,r);return xe(),e}function Ke(e,t,n,o){var i=n.render(),s=o.childContextTypes;if(null!==s&&void 0!==s){var a=t.legacyContext;if("function"!==typeof n.getChildContext)o=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(r(108,J(o)||"Unknown",l));o=M({},a,n)}t.legacyContext=o,Ye(e,t,i),t.legacyContext=a}else Ye(e,t,i)}function qe(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ze(e,t,n,o,i){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){i=te(n,t.legacyContext);var s=n.contextType;ce(s=new n(o,"object"===typeof s&&null!==s?s._currentValue2:i),n,o,i),Ke(e,t,s,n)}else{i=ze(e,t,n,o,s=te(n,t.legacyContext));var a=0!==Ee;if("object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof)ce(i,n,o,s),Ke(e,t,i,n);else if(a){o=t.treeContext,t.treeContext=de(o,1,0);try{Ye(e,t,i)}finally{t.treeContext=o}}else Ye(e,t,i)}else{if("string"!==typeof n){switch(n){case Q:case Y:case H:case V:case G:case z:return void Ye(e,t,o.children);case Z:throw Error(r(343));case U:e:{n=t.blockedBoundary,i=t.blockedSegment,s=o.fallback,o=o.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a=new Set,errorDigest:null},u=We(0,i.chunks.length,l,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var c=We(0,0,null,i.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=c;try{if($e(e,t,o),e.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push("\x3c!-- --\x3e"),c.status=1,et(l,c),0===l.pendingTasks)break e}catch(p){c.status=4,l.forceClientRender=!0,l.errorDigest=Be(e,p)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=je(e,s,n,u,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case B:if(o=ze(e,t,n.render,o,i),0!==Ee){n=t.treeContext,t.treeContext=de(n,1,0);try{Ye(e,t,o)}finally{t.treeContext=n}}else Ye(e,t,o);return;case K:return void Ze(e,t,n=n.type,o=qe(n,o),i);case j:if(i=o.children,n=n._context,o=o.value,s=n._currentValue2,n._currentValue2=o,ne=o={parent:a=ne,depth:null===a?0:a.depth+1,context:n,parentValue:s,value:o},t.context=o,Ye(e,t,i),null===(e=ne))throw Error(r(403));return o=e.parentValue,e.context._currentValue2=o===$?e.context._defaultValue:o,e=ne=e.parent,void(t.context=e);case W:return void Ye(e,t,o=(o=o.children)(n._currentValue2));case q:return void Ze(e,t,n=(i=n._init)(n._payload),o=qe(n,o),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(s=A((i=t.blockedSegment).chunks,n,o,e.responseState,i.formatContext),i.lastPushedText=!1,a=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return b(1,null!=n.value?n.value:n.defaultValue);case"svg":return b(2,null);case"math":return b(3,null);case"foreignObject":return b(1,null);case"table":return b(4,null);case"thead":case"tbody":case"tfoot":return b(5,null);case"colgroup":return b(7,null);case"tr":return b(6,null)}return 4<=e.insertionMode||0===e.insertionMode?b(1,null):e}(a,n,o),$e(e,t,s),i.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push("</",n,">")}i.lastPushedText=!1}}function Ye(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case F:return void Ze(e,t,n.type,n.props,n.ref);case k:throw Error(r(257));case q:var o=n._init;return void Ye(e,t,n=o(n._payload))}if(w(n))return void Qe(e,t,n);if(null===n||"object"!==typeof n?o=null:o="function"===typeof(o=X&&n[X]||n["@@iterator"])?o:null,o&&(o=o.call(n))){if(!(n=o.next()).done){var i=[];do{i.push(n.value),n=o.next()}while(!n.done);Qe(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(o=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"===typeof n&&((o=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function Qe(e,t,n){for(var o=n.length,r=0;r<o;r++){var i=t.treeContext;t.treeContext=de(i,o,r);try{$e(e,t,n[r])}finally{t.treeContext=i}}}function $e(e,t,n){var o=t.blockedSegment.formatContext,r=t.legacyContext,i=t.context;try{return Ye(e,t,n)}catch(l){if(xe(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,le(i),l;n=l;var s=t.blockedSegment,a=We(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=je(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,le(i)}}function Xe(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function Je(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(r(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach((function(e){return Je(e,t,n)})),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function et(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&et(e,n)}else e.completedSegments.push(t)}function tt(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Ve,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&et(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Xe,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(et(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function nt(e){if(2!==e.status){var t=ne,n=Ge.current;Ge.current=Fe;var o=ke;ke=e.responseState;try{var r,i=e.pingedTasks;for(r=0;r<i.length;r++){var s=i[r],a=e,l=s.blockedSegment;if(0===l.status){le(s.context);try{Ye(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),s.abortSet.delete(s),l.status=1,tt(a,s.blockedBoundary,l)}catch(h){if(xe(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var u=s.ping;h.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=h,d=Be(a,p);if(null===c?Ue(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}i.splice(0,r),null!==e.destination&<(e,e.destination)}catch(h){Be(e,h),Ue(e,h)}finally{ke=o,Ge.current=n,n===Fe&&le(t)}}}function ot(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=o.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var i=!0;o=n.chunks;var s=0;n=n.children;for(var a=0;a<n.length;a++){for(i=n[a];s<i.index;s++)t.push(o[s]);i=rt(e,t,i)}for(;s<o.length-1;s++)t.push(o[s]);return s<o.length&&(i=t.push(o[s])),i;default:throw Error(r(390))}}function rt(e,t,n){var o=n.boundary;if(null===o)return ot(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)return e.responseState.generateStaticMarkup||(o=o.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),o&&(t.push(' data-dgst="'),o=v(o),t.push(o),t.push('"')),t.push("></template>")),ot(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var i=e.responseState,s=i.nextSuspenseID++;return i=i.boundaryPrefix+s.toString(16),o=o.id=i,D(t,e.responseState,o),ot(e,t,n),t.push("\x3c!--/$--\x3e")}if(o.byteSize>e.progressiveChunkSize)return o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),D(t,e.responseState,o.id),ot(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=o.completedSegments).length)throw Error(r(391));return rt(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function it(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(r(397))}}(t,n.formatContext)}function st(e,t,n){for(var o=n.completedSegments,i=0;i<o.length;i++)at(e,t,n,o[i]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===o)throw Error(r(395));return n=n.toString(16),t.push(o),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function at(e,t,n,o){if(2===o.status)return!0;var i=o.id;if(-1===i){if(-1===(o.id=n.rootSegmentID))throw Error(r(392));return it(e,t,o)}return it(e,t,o),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),i=i.toString(16),t.push(i),t.push('","'),t.push(e.placeholderPrefix),t.push(i),t.push('")<\/script>')}function lt(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)t.push(o[n]);n<o.length&&t.push(o[n])}var i,s=e.clientRenderedBoundaries;for(i=0;i<s.length;i++){var a=s[i];o=t;var l=e.responseState,u=a.id,c=a.errorDigest,p=a.errorMessage,d=a.errorComponentStack;if(o.push(l.startInlineScript),l.sentClientRenderFunction?o.push('$RX("'):(l.sentClientRenderFunction=!0,o.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===u)throw Error(r(395));if(o.push(u),o.push('"'),c||p||d){o.push(",");var h=L(c||"");o.push(h)}if(p||d){o.push(",");var f=L(p||"");o.push(f)}if(d){o.push(",");var g=L(d);o.push(g)}if(!o.push(")<\/script>"))return e.destination=null,i++,void s.splice(0,i)}s.splice(0,i);var m=e.completedBoundaries;for(i=0;i<m.length;i++)if(!st(e,t,m[i]))return e.destination=null,i++,void m.splice(0,i);m.splice(0,i);var v=e.partialBoundaries;for(i=0;i<v.length;i++){var y=v[i];e:{s=e,a=t;var C=y.completedSegments;for(l=0;l<C.length;l++)if(!at(s,a,y,C[l])){l++,C.splice(0,l);var w=!1;break e}C.splice(0,l),w=!0}if(!w)return e.destination=null,i++,void v.splice(0,i)}v.splice(0,i);var b=e.completedBoundaries;for(i=0;i<b.length;i++)if(!st(e,t,b[i]))return e.destination=null,i++,void b.splice(0,i);b.splice(0,i)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function ut(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Je(n,e,t)})),n.clear(),null!==e.destination&<(e,e.destination)}catch(o){Be(e,o),Ue(e,o)}}function ct(){}function pt(e,t,n,o){var i=!1,s=null,a="",l={push:function(e){return null!==e&&(a+=e),!0},destroy:function(e){i=!0,s=e}},u=!1;if(e=function(e,t,n,o,r,i,s,a,l){var u=[],c=new Set;return(n=We(t={destination:null,responseState:t,progressiveChunkSize:void 0===o?12800:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===r?He:r,onAllReady:void 0===i?Ve:i,onShellReady:void 0===s?Ve:s,onShellError:void 0===a?Ve:a,onFatalError:void 0===l?Ve:l},0,null,n,!1,!1)).parentFlushed=!0,e=je(t,e,null,n,c,ee,null,pe),u.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,void 0,(function(){u=!0}),void 0,void 0),nt(e),ut(e,o),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{lt(e,l)}catch(c){Be(e,c),Ue(e,c)}}if(i)throw s;if(!u)throw Error(r(426));return a}t.renderToNodeStream=function(){throw Error(r(207))},t.renderToStaticMarkup=function(e,t){return pt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(r(208))},t.renderToString=function(e,t){return pt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},4424:function(e,t,n){"use strict";var o=n(2791);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=null,s=0;function a(e,t){if(0!==t.length)if(512<t.length)0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=new Uint8Array(512),s=0),e.enqueue(t);else{var n=i.length-s;n<t.length&&(0===n?e.enqueue(i):(i.set(t.subarray(0,n),s),e.enqueue(i),t=t.subarray(n)),i=new Uint8Array(512),s=0),i.set(t,s),s+=t.length}}function l(e,t){return a(e,t),!0}function u(e){i&&0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=null,s=0)}var c=new TextEncoder;function p(e){return c.encode(e)}function d(e){return c.encode(e)}function h(e,t){"function"===typeof e.error?e.error(t):e.close()}var f=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},v={};function y(e){return!!f.call(v,e)||!f.call(m,e)&&(g.test(e)?v[e]=!0:(m[e]=!0,!1))}function C(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){w[e]=new C(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];w[t]=new C(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){w[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){w[e]=new C(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){w[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){w[e]=new C(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){w[e]=new C(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){w[e]=new C(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){w[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function _(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,_);w[t]=new C(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,_);w[t]=new C(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,_);w[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)})),w.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","ms","Moz","O"];Object.keys(E).forEach((function(e){S.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),E[t]=E[e]}))}));var R=/["'&<>]/;function O(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=R.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}var P=/([A-Z])/g,T=/^ms-/,x=Array.isArray,A=d("<script>"),D=d("<\/script>"),N=d('<script src="'),L=d('<script type="module" src="'),I=d('" async=""><\/script>'),M=/(<\/|<)(s)(cript)/gi;function F(e,t,n,o){return t+("s"===n?"\\u0073":"\\u0053")+o}function k(e,t){return{insertionMode:e,selectedValue:t}}var G=d("\x3c!-- --\x3e");function H(e,t,n,o){return""===t?o:(o&&e.push(G),e.push(p(O(t))),!0)}var V=new Map,j=d(' style="'),W=d(":"),B=d(";");function U(e,t,n){if("object"!==typeof n)throw Error(r(62));for(var o in t=!0,n)if(f.call(n,o)){var i=n[o];if(null!=i&&"boolean"!==typeof i&&""!==i){if(0===o.indexOf("--")){var s=p(O(o));i=p(O((""+i).trim()))}else{s=o;var a=V.get(s);void 0!==a||(a=d(O(s.replace(P,"-$1").toLowerCase().replace(T,"-ms-"))),V.set(s,a)),s=a,i="number"===typeof i?0===i||f.call(E,o)?p(""+i):p(i+"px"):p(O((""+i).trim()))}t?(t=!1,e.push(j,s,W,i)):e.push(B,s,W,i)}}t||e.push(q)}var z=d(" "),K=d('="'),q=d('"'),Z=d('=""');function Y(e,t,n,o){switch(n){case"style":return void U(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=w.hasOwnProperty(n)?w[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=p(t.attributeName),t.type){case 3:o&&e.push(z,n,Z);break;case 4:!0===o?e.push(z,n,Z):!1!==o&&e.push(z,n,K,p(O(o)),q);break;case 5:isNaN(o)||e.push(z,n,K,p(O(o)),q);break;case 6:!isNaN(o)&&1<=o&&e.push(z,n,K,p(O(o)),q);break;default:t.sanitizeURL&&(o=""+o),e.push(z,n,K,p(O(o)),q)}}else if(y(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(z,p(n),K,p(O(o)),q)}}var Q=d(">"),$=d("/>");function X(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!==typeof t||!("__html"in t))throw Error(r(61));null!==(t=t.__html)&&void 0!==t&&e.push(p(""+t))}}var J=d(' selected=""');function ee(e,t,n,o){e.push(re(n));var r,i=n=null;for(r in t)if(f.call(t,r)){var s=t[r];if(null!=s)switch(r){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:Y(e,o,r,s)}}return e.push(Q),X(e,i,n),"string"===typeof n?(e.push(p(O(n))),null):n}var te=d("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oe=new Map;function re(e){var t=oe.get(e);if(void 0===t){if(!ne.test(e))throw Error(r(65,e));t=d("<"+e),oe.set(e,t)}return t}var ie=d("<!DOCTYPE html>");function se(e,t,n,i,s){switch(t){case"select":e.push(re("select"));var a=null,l=null;for(h in n)if(f.call(n,h)){var u=n[h];if(null!=u)switch(h){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;case"defaultValue":case"value":break;default:Y(e,i,h,u)}}return e.push(Q),X(e,l,a),a;case"option":l=s.selectedValue,e.push(re("option"));var c=u=null,d=null,h=null;for(a in n)if(f.call(n,a)){var g=n[a];if(null!=g)switch(a){case"children":u=g;break;case"selected":d=g;break;case"dangerouslySetInnerHTML":h=g;break;case"value":c=g;default:Y(e,i,a,g)}}if(null!=l)if(n=null!==c?""+c:function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(u),x(l)){for(i=0;i<l.length;i++)if(""+l[i]===n){e.push(J);break}}else""+l===n&&e.push(J);else d&&e.push(J);return e.push(Q),X(e,h,u),u;case"textarea":for(u in e.push(re("textarea")),h=l=a=null,n)if(f.call(n,u)&&null!=(c=n[u]))switch(u){case"children":h=c;break;case"value":a=c;break;case"defaultValue":l=c;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:Y(e,i,u,c)}if(null===a&&null!==l&&(a=l),e.push(Q),null!=h){if(null!=a)throw Error(r(92));if(x(h)&&1<h.length)throw Error(r(93));a=""+h}return"string"===typeof a&&"\n"===a[0]&&e.push(te),null!==a&&e.push(p(O(""+a))),null;case"input":for(l in e.push(re("input")),c=h=u=a=null,n)if(f.call(n,l)&&null!=(d=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":c=d;break;case"defaultValue":u=d;break;case"checked":h=d;break;case"value":a=d;break;default:Y(e,i,l,d)}return null!==h?Y(e,i,"checked",h):null!==c&&Y(e,i,"checked",c),null!==a?Y(e,i,"value",a):null!==u&&Y(e,i,"value",u),e.push($),null;case"menuitem":for(var m in e.push(re("menuitem")),n)if(f.call(n,m)&&null!=(a=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:Y(e,i,m,a)}return e.push(Q),null;case"title":for(g in e.push(re("title")),a=null,n)if(f.call(n,g)&&null!=(l=n[g]))switch(g){case"children":a=l;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:Y(e,i,g,l)}return e.push(Q),a;case"listing":case"pre":for(c in e.push(re(t)),l=a=null,n)if(f.call(n,c)&&null!=(u=n[c]))switch(c){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;default:Y(e,i,c,u)}if(e.push(Q),null!=l){if(null!=a)throw Error(r(60));if("object"!==typeof l||!("__html"in l))throw Error(r(61));null!==(n=l.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push(te,p(n)):e.push(p(""+n)))}return"string"===typeof a&&"\n"===a[0]&&e.push(te),a;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(re(t)),n)if(f.call(n,v)&&null!=(a=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,t));default:Y(e,i,v,a)}return e.push($),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,i);case"html":return 0===s.insertionMode&&e.push(ie),ee(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return ee(e,n,t,i);for(d in e.push(re(t)),l=a=null,n)if(f.call(n,d)&&null!=(u=n[d]))switch(d){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;case"style":U(e,i,u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(d)&&"function"!==typeof u&&"symbol"!==typeof u&&e.push(z,p(d),K,p(O(u)),q)}return e.push(Q),X(e,l,a),a}}var ae=d("</"),le=d(">"),ue=d('<template id="'),ce=d('"></template>'),pe=d("\x3c!--$--\x3e"),de=d('\x3c!--$?--\x3e<template id="'),he=d('"></template>'),fe=d("\x3c!--$!--\x3e"),ge=d("\x3c!--/$--\x3e"),me=d("<template"),ve=d('"'),ye=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Ce=d("></template>");function we(e,t,n){if(a(e,de),null===n)throw Error(r(395));return a(e,n),l(e,he)}var be=d('<div hidden id="'),_e=d('">'),Ee=d("</div>"),Se=d('<svg aria-hidden="true" style="display:none" id="'),Re=d('">'),Oe=d("</svg>"),Pe=d('<math aria-hidden="true" style="display:none" id="'),Te=d('">'),xe=d("</math>"),Ae=d('<table hidden id="'),De=d('">'),Ne=d("</table>"),Le=d('<table hidden><tbody id="'),Ie=d('">'),Me=d("</tbody></table>"),Fe=d('<table hidden><tr id="'),ke=d('">'),Ge=d("</tr></table>"),He=d('<table hidden><colgroup id="'),Ve=d('">'),je=d("</colgroup></table>");var We=d('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Be=d('$RS("'),Ue=d('","'),ze=d('")<\/script>'),Ke=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),qe=d('$RC("'),Ze=d('","'),Ye=d('")<\/script>'),Qe=d('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),$e=d('$RX("'),Xe=d('"'),Je=d(")<\/script>"),et=d(","),tt=/[<\u2028\u2029]/g;function nt(e){return JSON.stringify(e).replace(tt,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var ot=Object.assign,rt=Symbol.for("react.element"),it=Symbol.for("react.portal"),st=Symbol.for("react.fragment"),at=Symbol.for("react.strict_mode"),lt=Symbol.for("react.profiler"),ut=Symbol.for("react.provider"),ct=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),ht=Symbol.for("react.suspense_list"),ft=Symbol.for("react.memo"),gt=Symbol.for("react.lazy"),mt=Symbol.for("react.scope"),vt=Symbol.for("react.debug_trace_mode"),yt=Symbol.for("react.legacy_hidden"),Ct=Symbol.for("react.default_value"),wt=Symbol.iterator;function bt(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case st:return"Fragment";case it:return"Portal";case lt:return"Profiler";case at:return"StrictMode";case dt:return"Suspense";case ht:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case ut:return(e._context.displayName||"Context")+".Provider";case pt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ft:return null!==(t=e.displayName||null)?t:bt(e.type)||"Memo";case gt:t=e._payload,e=e._init;try{return bt(e(t))}catch(n){}}return null}var _t={};function Et(e,t){if(!(e=e.contextTypes))return _t;var n,o={};for(n in e)o[n]=t[n];return o}var St=null;function Rt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));Rt(e,n)}t.context._currentValue=t.value}}function Ot(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ot(e)}function Pt(e){var t=e.parent;null!==t&&Pt(t),e.context._currentValue=e.value}function Tt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?Rt(e,t):Tt(e,t)}function xt(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?Rt(e,n):xt(e,n),t.context._currentValue=t.value}function At(e){var t=St;t!==e&&(null===t?Pt(e):null===e?Ot(t):t.depth===e.depth?Rt(t,e):t.depth>e.depth?Tt(t,e):xt(t,e),St=e)}var Dt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Nt(e,t,n,o){var r=void 0!==e.state?e.state:null;e.updater=Dt,e.props=n,e.state=r;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"===typeof s&&null!==s?s._currentValue:o,"function"===typeof(s=t.getDerivedStateFromProps)&&(r=null===(s=s(n,r))||void 0===s?r:ot({},r,s),e.state=r),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Dt.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,r=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"===typeof a?a.call(e,i,n,o):a)&&(r?(r=!1,i=ot({},i,a)):ot(i,a))}e.state=i}else i.queue=null}var Lt={id:1,overflow:""};function It(e,t,n){var o=e.id;e=e.overflow;var r=32-Mt(o)-1;o&=~(1<<r),n+=1;var i=32-Mt(t)+r;if(30<i){var s=r-r%5;return i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,{id:1<<32-Mt(t)+r|n<<r|o,overflow:i+e}}return{id:1<<i|n<<r|o,overflow:e}}var Mt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Ft(e)/kt|0)|0},Ft=Math.log,kt=Math.LN2;var Gt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Ht=null,Vt=null,jt=null,Wt=null,Bt=!1,Ut=!1,zt=0,Kt=null,qt=0;function Zt(){if(null===Ht)throw Error(r(321));return Ht}function Yt(){if(0<qt)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Qt(){return null===Wt?null===jt?(Bt=!1,jt=Wt=Yt()):(Bt=!0,Wt=jt):null===Wt.next?(Bt=!1,Wt=Wt.next=Yt()):(Bt=!0,Wt=Wt.next),Wt}function $t(){Vt=Ht=null,Ut=!1,jt=null,qt=0,Wt=Kt=null}function Xt(e,t){return"function"===typeof t?t(e):t}function Jt(e,t,n){if(Ht=Zt(),Wt=Qt(),Bt){var o=Wt.queue;if(t=o.dispatch,null!==Kt&&void 0!==(n=Kt.get(o))){Kt.delete(o),o=Wt.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return Wt.memoizedState=o,[o,t]}return[Wt.memoizedState,t]}return e=e===Xt?"function"===typeof t?t():t:void 0!==n?n(t):t,Wt.memoizedState=e,e=(e=Wt.queue={last:null,dispatch:null}).dispatch=tn.bind(null,Ht,e),[Wt.memoizedState,e]}function en(e,t){if(Ht=Zt(),t=void 0===t?null:t,null!==(Wt=Qt())){var n=Wt.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!Gt(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),Wt.memoizedState=[e,t],e}function tn(e,t,n){if(25<=qt)throw Error(r(301));if(e===Ht)if(Ut=!0,e={action:n,next:null},null===Kt&&(Kt=new Map),void 0===(n=Kt.get(t)))Kt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function nn(){throw Error(r(394))}function on(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Zt(),e._currentValue},useMemo:en,useReducer:Jt,useRef:function(e){Ht=Zt();var t=(Wt=Qt()).memoizedState;return null===t?(e={current:e},Wt.memoizedState=e):t},useState:function(e){return Jt(Xt,e)},useInsertionEffect:on,useLayoutEffect:function(){},useCallback:function(e,t){return en((function(){return e}),t)},useImperativeHandle:on,useEffect:on,useDebugValue:on,useDeferredValue:function(e){return Zt(),e},useTransition:function(){return Zt(),[!1,nn]},useId:function(){var e=Vt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Mt(e)-1)).toString(32)+t;var n=sn;if(null===n)throw Error(r(404));return t=zt++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Zt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},sn=null,an=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(e){return console.error(e),null}function un(){}function cn(e,t,n,o,r,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&Rn(e)},blockedBoundary:n,blockedSegment:o,abortSet:r,legacyContext:i,context:s,treeContext:a};return r.add(l),l}function pn(e,t,n,o,r,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:r,textEmbedded:i}}function dn(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function hn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,h(e.destination,t)):(e.status=1,e.fatalError=t)}function fn(e,t,n,o,r){for(Ht={},Vt=t,zt=0,e=n(o,r);Ut;)Ut=!1,zt=0,qt+=1,Wt=null,e=n(o,r);return $t(),e}function gn(e,t,n,o){var i=n.render(),s=o.childContextTypes;if(null!==s&&void 0!==s){var a=t.legacyContext;if("function"!==typeof n.getChildContext)o=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(r(108,bt(o)||"Unknown",l));o=ot({},a,n)}t.legacyContext=o,yn(e,t,i),t.legacyContext=a}else yn(e,t,i)}function mn(e,t){if(e&&e.defaultProps){for(var n in t=ot({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function vn(e,t,n,o,i){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){i=Et(n,t.legacyContext);var s=n.contextType;Nt(s=new n(o,"object"===typeof s&&null!==s?s._currentValue:i),n,o,i),gn(e,t,s,n)}else{i=fn(e,t,n,o,s=Et(n,t.legacyContext));var a=0!==zt;if("object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof)Nt(i,n,o,s),gn(e,t,i,n);else if(a){o=t.treeContext,t.treeContext=It(o,1,0);try{yn(e,t,i)}finally{t.treeContext=o}}else yn(e,t,i)}else{if("string"!==typeof n){switch(n){case yt:case vt:case at:case lt:case st:case ht:return void yn(e,t,o.children);case mt:throw Error(r(343));case dt:e:{n=t.blockedBoundary,i=t.blockedSegment,s=o.fallback,o=o.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a=new Set,errorDigest:null},u=pn(0,i.chunks.length,l,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var c=pn(0,0,null,i.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=c;try{if(wn(e,t,o),c.lastPushedText&&c.textEmbedded&&c.chunks.push(G),c.status=1,En(l,c),0===l.pendingTasks)break e}catch(d){c.status=4,l.forceClientRender=!0,l.errorDigest=dn(e,d)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=cn(e,s,n,u,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case pt:if(o=fn(e,t,n.render,o,i),0!==zt){n=t.treeContext,t.treeContext=It(n,1,0);try{yn(e,t,o)}finally{t.treeContext=n}}else yn(e,t,o);return;case ft:return void vn(e,t,n=n.type,o=mn(n,o),i);case ut:if(i=o.children,n=n._context,o=o.value,s=n._currentValue,n._currentValue=o,St=o={parent:a=St,depth:null===a?0:a.depth+1,context:n,parentValue:s,value:o},t.context=o,yn(e,t,i),null===(e=St))throw Error(r(403));return o=e.parentValue,e.context._currentValue=o===Ct?e.context._defaultValue:o,e=St=e.parent,void(t.context=e);case ct:return void yn(e,t,o=(o=o.children)(n._currentValue));case gt:return void vn(e,t,n=(i=n._init)(n._payload),o=mn(n,o),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(s=se((i=t.blockedSegment).chunks,n,o,e.responseState,i.formatContext),i.lastPushedText=!1,a=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return k(1,null!=n.value?n.value:n.defaultValue);case"svg":return k(2,null);case"math":return k(3,null);case"foreignObject":return k(1,null);case"table":return k(4,null);case"thead":case"tbody":case"tfoot":return k(5,null);case"colgroup":return k(7,null);case"tr":return k(6,null)}return 4<=e.insertionMode||0===e.insertionMode?k(1,null):e}(a,n,o),wn(e,t,s),i.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(ae,p(n),le)}i.lastPushedText=!1}}function yn(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case rt:return void vn(e,t,n.type,n.props,n.ref);case it:throw Error(r(257));case gt:var o=n._init;return void yn(e,t,n=o(n._payload))}if(x(n))return void Cn(e,t,n);if(null===n||"object"!==typeof n?o=null:o="function"===typeof(o=wt&&n[wt]||n["@@iterator"])?o:null,o&&(o=o.call(n))){if(!(n=o.next()).done){var i=[];do{i.push(n.value),n=o.next()}while(!n.done);Cn(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(o=t.blockedSegment).lastPushedText=H(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"===typeof n&&((o=t.blockedSegment).lastPushedText=H(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function Cn(e,t,n){for(var o=n.length,r=0;r<o;r++){var i=t.treeContext;t.treeContext=It(i,o,r);try{wn(e,t,n[r])}finally{t.treeContext=i}}}function wn(e,t,n){var o=t.blockedSegment.formatContext,r=t.legacyContext,i=t.context;try{return yn(e,t,n)}catch(l){if($t(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,At(i),l;n=l;var s=t.blockedSegment,a=pn(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,At(i)}}function bn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Sn(this,t,e)}function _n(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(r(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach((function(e){return _n(e,t,n)})),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function En(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&En(e,n)}else e.completedSegments.push(t)}function Sn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=un,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&En(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(bn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(En(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Rn(e){if(2!==e.status){var t=St,n=an.current;an.current=rn;var o=sn;sn=e.responseState;try{var r,i=e.pingedTasks;for(r=0;r<i.length;r++){var s=i[r],a=e,l=s.blockedSegment;if(0===l.status){At(s.context);try{yn(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(G),s.abortSet.delete(s),l.status=1,Sn(a,s.blockedBoundary,l)}catch(h){if($t(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var u=s.ping;h.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=h,d=dn(a,p);if(null===c?hn(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}i.splice(0,r),null!==e.destination&&Dn(e,e.destination)}catch(h){dn(e,h),hn(e,h)}finally{sn=o,an.current=n,n===rn&&At(t)}}}function On(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,a(t,ue),a(t,e.placeholderPrefix),a(t,e=p(o.toString(16))),l(t,ce);case 1:n.status=2;var i=!0;o=n.chunks;var s=0;n=n.children;for(var u=0;u<n.length;u++){for(i=n[u];s<i.index;s++)a(t,o[s]);i=Pn(e,t,i)}for(;s<o.length-1;s++)a(t,o[s]);return s<o.length&&(i=l(t,o[s])),i;default:throw Error(r(390))}}function Pn(e,t,n){var o=n.boundary;if(null===o)return On(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)o=o.errorDigest,l(t,fe),a(t,me),o&&(a(t,ye),a(t,p(O(o))),a(t,ve)),l(t,Ce),On(e,t,n);else if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var i=e.responseState,s=i.nextSuspenseID++;i=d(i.boundaryPrefix+s.toString(16)),o=o.id=i,we(t,e.responseState,o),On(e,t,n)}else if(o.byteSize>e.progressiveChunkSize)o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),we(t,e.responseState,o.id),On(e,t,n);else{if(l(t,pe),1!==(n=o.completedSegments).length)throw Error(r(391));Pn(e,t,n[0])}return l(t,ge)}function Tn(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return a(e,be),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,_e);case 2:return a(e,Se),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Re);case 3:return a(e,Pe),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Te);case 4:return a(e,Ae),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,De);case 5:return a(e,Le),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Ie);case 6:return a(e,Fe),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,ke);case 7:return a(e,He),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Ve);default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),Pn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,Ee);case 2:return l(e,Oe);case 3:return l(e,xe);case 4:return l(e,Ne);case 5:return l(e,Me);case 6:return l(e,Ge);case 7:return l(e,je);default:throw Error(r(397))}}(t,n.formatContext)}function xn(e,t,n){for(var o=n.completedSegments,i=0;i<o.length;i++)An(e,t,n,o[i]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,a(t,e.startInlineScript),e.sentCompleteBoundaryFunction?a(t,qe):(e.sentCompleteBoundaryFunction=!0,a(t,Ke)),null===o)throw Error(r(395));return n=p(n.toString(16)),a(t,o),a(t,Ze),a(t,e.segmentPrefix),a(t,n),l(t,Ye)}function An(e,t,n,o){if(2===o.status)return!0;var i=o.id;if(-1===i){if(-1===(o.id=n.rootSegmentID))throw Error(r(392));return Tn(e,t,o)}return Tn(e,t,o),a(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?a(t,Be):(e.sentCompleteSegmentFunction=!0,a(t,We)),a(t,e.segmentPrefix),a(t,i=p(i.toString(16))),a(t,Ue),a(t,e.placeholderPrefix),a(t,i),l(t,ze)}function Dn(e,t){i=new Uint8Array(512),s=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Pn(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)a(t,o[n]);n<o.length&&l(t,o[n])}var c,d=e.clientRenderedBoundaries;for(c=0;c<d.length;c++){var h=d[c];o=t;var f=e.responseState,g=h.id,m=h.errorDigest,v=h.errorMessage,y=h.errorComponentStack;if(a(o,f.startInlineScript),f.sentClientRenderFunction?a(o,$e):(f.sentClientRenderFunction=!0,a(o,Qe)),null===g)throw Error(r(395));if(a(o,g),a(o,Xe),(m||v||y)&&(a(o,et),a(o,p(nt(m||"")))),(v||y)&&(a(o,et),a(o,p(nt(v||"")))),y&&(a(o,et),a(o,p(nt(y)))),!l(o,Je))return e.destination=null,c++,void d.splice(0,c)}d.splice(0,c);var C=e.completedBoundaries;for(c=0;c<C.length;c++)if(!xn(e,t,C[c]))return e.destination=null,c++,void C.splice(0,c);C.splice(0,c),u(t),i=new Uint8Array(512),s=0;var w=e.partialBoundaries;for(c=0;c<w.length;c++){var b=w[c];e:{d=e,h=t;var _=b.completedSegments;for(f=0;f<_.length;f++)if(!An(d,h,b,_[f])){f++,_.splice(0,f);var E=!1;break e}_.splice(0,f),E=!0}if(!E)return e.destination=null,c++,void w.splice(0,c)}w.splice(0,c);var S=e.completedBoundaries;for(c=0;c<S.length;c++)if(!xn(e,t,S[c]))return e.destination=null,c++,void S.splice(0,c);S.splice(0,c)}finally{u(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Nn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return _n(n,e,t)})),n.clear(),null!==e.destination&&Dn(e,e.destination)}catch(o){dn(e,o),hn(e,o)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,o){var r,i,s=new Promise((function(e,t){i=e,r=t})),a=function(e,t,n,o,r,i,s,a,l){var u=[],c=new Set;return(n=pn(t={destination:null,responseState:t,progressiveChunkSize:void 0===o?12800:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===r?ln:r,onAllReady:void 0===i?un:i,onShellReady:void 0===s?un:s,onShellError:void 0===a?un:a,onFatalError:void 0===l?un:l},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,c,_t,null,Lt),u.push(e),t}(e,function(e,t,n,o,r){e=void 0===e?"":e,t=void 0===t?A:d('<script nonce="'+O(t)+'">');var i=[];if(void 0!==n&&i.push(t,p((""+n).replace(M,F)),D),void 0!==o)for(n=0;n<o.length;n++)i.push(N,p(O(o[n])),I);if(void 0!==r)for(o=0;o<r.length;o++)i.push(L,p(O(r[o])),I);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:d(e+"P:"),segmentPrefix:d(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return k("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===a.status)a.status=2,h(e,a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=e;try{Dn(a,e)}catch(t){dn(a,t),hn(a,t)}}},cancel:function(){Nn(a)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),o(e)}),r);if(t&&t.signal){var l=t.signal;l.addEventListener("abort",(function e(){Nn(a,l.reason),l.removeEventListener("abort",e)}))}Rn(a)}))},t.version="18.2.0"},4463:function(e,t,n){"use strict";var o=n(2791),r=n(5296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function g(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function C(e,t,n,o){var r=m.hasOwnProperty(t)?m[t]:null;(null!==r?0!==r.type:o||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,o){if(null===t||"undefined"===typeof t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,o)&&(n=null),o||null===r?function(e){return!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function M(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=I&&e[I]||e["@@iterator"])?e:null}var F,k=Object.assign;function G(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var o=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){o=u}e.call(t.prototype)}else{try{throw Error()}catch(u){o=u}e()}}catch(u){if(u&&o&&"string"===typeof u.stack){for(var r=u.stack.split("\n"),i=o.stack.split("\n"),s=r.length-1,a=i.length-1;1<=s&&0<=a&&r[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||r[s]!==i[a]){var l="\n"+r[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?G(e):""}function j(e){switch(e.tag){case 5:return G(e.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 1:return e=V(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case _:return"Portal";case R:return"Profiler";case S:return"StrictMode";case x:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function B(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=z(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return k({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $(e,t){null!=(t=t.checked)&&C(e,"checked",t,!1)}function X(e,t){$(e,t);var n=U(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return k({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ie(e,t){var n=U(t.value),o=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=ge(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=k({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function Ce(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function be(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ee=null,Se=null;function Re(e){if(e=wr(e)){if("function"!==typeof _e)throw Error(i(280));var t=e.stateNode;t&&(t=_r(t),_e(e.stateNode,e.type,t))}}function Oe(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Pe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Te(e,t){return e(t)}function xe(){}var Ae=!1;function De(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Te(e,t,n)}finally{Ae=!1,(null!==Ee||null!==Se)&&(xe(),Pe())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var o=_r(n);if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Le=!1;if(c)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ce){Le=!1}function Me(e,t,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Fe=!1,ke=null,Ge=!1,He=null,Ve={onError:function(e){Fe=!0,ke=e}};function je(e,t,n,o,r,i,s,a,l){Fe=!1,ke=null,Me.apply(Ve,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Be(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(We(e)!==e)throw Error(i(188))}function ze(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var s=r.alternate;if(null===s){if(null!==(o=r.return)){n=o;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return Ue(r),e;if(s===o)return Ue(r),t;s=s.sibling}throw Error(i(188))}if(n.return!==o.return)n=r,o=s;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,o=s;break}if(l===o){a=!0,o=r,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,o=r;break}if(l===o){a=!0,o=s,n=r;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==o)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var qe=r.unstable_scheduleCallback,Ze=r.unstable_cancelCallback,Ye=r.unstable_shouldYield,Qe=r.unstable_requestPaint,$e=r.unstable_now,Xe=r.unstable_getCurrentPriorityLevel,Je=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,ot=r.unstable_IdlePriority,rt=null,it=null;var st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~r;0!==a?o=pt(a):0!==(i&=s)&&(o=pt(i))}else 0!==(s=n&~r)?o=pt(s):0!==i&&(o=pt(i));if(0===o)return 0;if(0!==t&&t!==o&&0===(t&r)&&((r=o&-o)>=(i=t&-t)||16===r&&0!==(4194240&i)))return t;if(0!==(4&o)&&(o|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)r=1<<(n=31-st(t)),o|=e[n],t&=~r;return o}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-st(n),r=1<<o;r&t|e[o]&t&&(e[o]|=t),n&=~r}}var Ct=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var bt,_t,Et,St,Rt,Ot=!1,Pt=[],Tt=null,xt=null,At=null,Dt=new Map,Nt=new Map,Lt=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":xt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Ft(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:i,targetContainers:[r]},null!==t&&(null!==(t=wr(t))&&_t(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function kt(e){var t=Cr(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Be(n)))return e.blockedOn=t,void Rt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wr(n))&&_t(t),e.blockedOn=n,!1;var o=new(n=e.nativeEvent).constructor(n.type,n);we=o,n.target.dispatchEvent(o),we=null,t.shift()}return!0}function Ht(e,t,n){Gt(e)&&n.delete(t)}function Vt(){Ot=!1,null!==Tt&&Gt(Tt)&&(Tt=null),null!==xt&&Gt(xt)&&(xt=null),null!==At&&Gt(At)&&(At=null),Dt.forEach(Ht),Nt.forEach(Ht)}function jt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Vt)))}function Wt(e){function t(t){return jt(t,e)}if(0<Pt.length){jt(Pt[0],e);for(var n=1;n<Pt.length;n++){var o=Pt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Tt&&jt(Tt,e),null!==xt&&jt(xt,e),null!==At&&jt(At,e),Dt.forEach(t),Nt.forEach(t),n=0;n<Lt.length;n++)(o=Lt[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)kt(n),null===n.blockedOn&&Lt.shift()}var Bt=w.ReactCurrentBatchConfig,Ut=!0;function zt(e,t,n,o){var r=Ct,i=Bt.transition;Bt.transition=null;try{Ct=1,qt(e,t,n,o)}finally{Ct=r,Bt.transition=i}}function Kt(e,t,n,o){var r=Ct,i=Bt.transition;Bt.transition=null;try{Ct=4,qt(e,t,n,o)}finally{Ct=r,Bt.transition=i}}function qt(e,t,n,o){if(Ut){var r=Yt(e,t,n,o);if(null===r)zo(e,t,o,Zt,n),Mt(e,o);else if(function(e,t,n,o,r){switch(t){case"focusin":return Tt=Ft(Tt,e,t,n,o,r),!0;case"dragenter":return xt=Ft(xt,e,t,n,o,r),!0;case"mouseover":return At=Ft(At,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return Dt.set(i,Ft(Dt.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Nt.set(i,Ft(Nt.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o))o.stopPropagation();else if(Mt(e,o),4&t&&-1<It.indexOf(e)){for(;null!==r;){var i=wr(r);if(null!==i&&bt(i),null===(i=Yt(e,t,n,o))&&zo(e,t,o,Zt,n),i===r)break;r=i}null!==r&&o.stopPropagation()}else zo(e,t,o,null,n)}}var Zt=null;function Yt(e,t,n,o){if(Zt=null,null!==(e=Cr(e=be(o))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Be(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case ot:return 536870912;default:return 16}default:return 16}}var $t=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,o=n.length,r="value"in $t?$t.value:$t.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var s=o-e;for(t=1;t<=s&&n[o-t]===r[i-t];t++);return Jt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function on(){return!1}function rn(e){function t(t,n,o,r,i){for(var s in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(r):r[s]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:on,this.isPropagationStopped=on,this}return k(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=rn(un),pn=k({},un,{view:0,detail:0}),dn=rn(pn),hn=k({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=rn(hn),gn=rn(k({},hn,{dataTransfer:0})),mn=rn(k({},pn,{relatedTarget:0})),vn=rn(k({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=k({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cn=rn(yn),wn=rn(k({},un,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Rn(){return Sn}var On=k({},pn,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=rn(On),Tn=rn(k({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=rn(k({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),An=rn(k({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=k({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=rn(Dn),Ln=[9,13,27,32],In=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var Fn=c&&"TextEvent"in window&&!Mn,kn=c&&(!In||Mn&&8<Mn&&11>=Mn),Gn=String.fromCharCode(32),Hn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function zn(e,t,n,o){Oe(o),0<(t=qo(t,"onChange")).length&&(n=new cn("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Zn(e){Ho(e,0)}function Yn(e){if(q(br(e)))return e}function Qn(e,t){if("change"===e)return t}var $n=!1;if(c){var Xn;if(c){var Jn="oninput"in document;if(!Jn){var eo=document.createElement("div");eo.setAttribute("oninput","return;"),Jn="function"===typeof eo.oninput}Xn=Jn}else Xn=!1;$n=Xn&&(!document.documentMode||9<document.documentMode)}function to(){Kn&&(Kn.detachEvent("onpropertychange",no),qn=Kn=null)}function no(e){if("value"===e.propertyName&&Yn(qn)){var t=[];zn(t,qn,e,be(e)),De(Zn,t)}}function oo(e,t,n){"focusin"===e?(to(),qn=n,(Kn=t).attachEvent("onpropertychange",no)):"focusout"===e&&to()}function ro(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(qn)}function io(e,t){if("click"===e)return Yn(t)}function so(e,t){if("input"===e||"change"===e)return Yn(t)}var ao="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lo(e,t){if(ao(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var r=n[o];if(!p.call(t,r)||!ao(e[r],t[r]))return!1}return!0}function uo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function co(e,t){var n,o=uo(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=uo(o)}}function po(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?po(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ho(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(o){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function fo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function go(e){var t=ho(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&po(n.ownerDocument.documentElement,n)){if(null!==o&&fo(n))if(t=o.start,void 0===(e=o.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=void 0===o.end?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=co(n,i);var s=co(n,o);r&&s&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mo=c&&"documentMode"in document&&11>=document.documentMode,vo=null,yo=null,Co=null,wo=!1;function bo(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wo||null==vo||vo!==Z(o)||("selectionStart"in(o=vo)&&fo(o)?o={start:o.selectionStart,end:o.selectionEnd}:o={anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},Co&&lo(Co,o)||(Co=o,0<(o=qo(yo,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=vo)))}function _o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Eo={animationend:_o("Animation","AnimationEnd"),animationiteration:_o("Animation","AnimationIteration"),animationstart:_o("Animation","AnimationStart"),transitionend:_o("Transition","TransitionEnd")},So={},Ro={};function Oo(e){if(So[e])return So[e];if(!Eo[e])return e;var t,n=Eo[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ro)return So[e]=n[t];return e}c&&(Ro=document.createElement("div").style,"AnimationEvent"in window||(delete Eo.animationend.animation,delete Eo.animationiteration.animation,delete Eo.animationstart.animation),"TransitionEvent"in window||delete Eo.transitionend.transition);var Po=Oo("animationend"),To=Oo("animationiteration"),xo=Oo("animationstart"),Ao=Oo("transitionend"),Do=new Map,No="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lo(e,t){Do.set(e,t),l(t,[e])}for(var Io=0;Io<No.length;Io++){var Mo=No[Io];Lo(Mo.toLowerCase(),"on"+(Mo[0].toUpperCase()+Mo.slice(1)))}Lo(Po,"onAnimationEnd"),Lo(To,"onAnimationIteration"),Lo(xo,"onAnimationStart"),Lo("dblclick","onDoubleClick"),Lo("focusin","onFocus"),Lo("focusout","onBlur"),Lo(Ao,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ko=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fo));function Go(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,r,s,a,l,u){if(je.apply(this,arguments),Fe){if(!Fe)throw Error(i(198));var c=ke;Fe=!1,ke=null,Ge||(Ge=!0,He=c)}}(o,t,void 0,e),e.currentTarget=null}function Ho(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var o=e[n],r=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;Go(r,a,u),i=l}else for(s=0;s<o.length;s++){if(l=(a=o[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;Go(r,a,u),i=l}}}if(Ge)throw e=He,Ge=!1,He=null,e}function Vo(e,t){var n=t[mr];void 0===n&&(n=t[mr]=new Set);var o=e+"__bubble";n.has(o)||(Uo(t,e,2,!1),n.add(o))}function jo(e,t,n){var o=0;t&&(o|=4),Uo(n,e,o,t)}var Wo="_reactListening"+Math.random().toString(36).slice(2);function Bo(e){if(!e[Wo]){e[Wo]=!0,s.forEach((function(t){"selectionchange"!==t&&(ko.has(t)||jo(t,!1,e),jo(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Wo]||(t[Wo]=!0,jo("selectionchange",!1,t))}}function Uo(e,t,n,o){switch(Qt(t)){case 1:var r=zt;break;case 4:r=Kt;break;default:r=qt}n=r.bind(null,t,n,e),r=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),o?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function zo(e,t,n,o,r){var i=o;if(0===(1&t)&&0===(2&t)&&null!==o)e:for(;;){if(null===o)return;var s=o.tag;if(3===s||4===s){var a=o.stateNode.containerInfo;if(a===r||8===a.nodeType&&a.parentNode===r)break;if(4===s)for(s=o.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;s=s.return}for(;null!==a;){if(null===(s=Cr(a)))return;if(5===(l=s.tag)||6===l){o=i=s;continue e}a=a.parentNode}}o=o.return}De((function(){var o=i,r=be(n),s=[];e:{var a=Do.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=xn;break;case Po:case To:case xo:l=vn;break;case Ao:l=An;break;case"scroll":l=dn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=Cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=0!==(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=o;null!==f;){var g=(h=f).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&(null!=(g=Ne(f,d))&&c.push(Ko(f,g,h)))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,r),s.push({event:a,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!Cr(u)&&!u[gr])&&(l||a)&&(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=o,null!==(u=(u=n.relatedTarget||n.toElement)?Cr(u):null)&&(u!==(p=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=o),l!==u)){if(c=fn,g="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,g="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:br(l),h=null==u?a:br(u),(a=new c(g,f+"leave",l,n,r)).target=p,a.relatedTarget=h,g=null,Cr(r)===o&&((c=new c(d,f+"enter",u,n,r)).target=h,c.relatedTarget=p,g=c),p=g,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Zo(h))f++;for(h=0,g=d;g;g=Zo(g))h++;for(;0<f-h;)c=Zo(c),f--;for(;0<h-f;)d=Zo(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Zo(c),d=Zo(d)}c=null}else c=null;null!==l&&Yo(s,a,l,c,!1),null!==u&&null!==p&&Yo(s,p,u,c,!0)}if("select"===(l=(a=o?br(o):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=Qn;else if(Un(a))if($n)m=so;else{m=ro;var v=oo}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=io);switch(m&&(m=m(e,o))?zn(s,m,n,r):(v&&v(e,a,o),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&ee(a,"number",a.value)),v=o?br(o):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(vo=v,yo=o,Co=null);break;case"focusout":Co=yo=vo=null;break;case"mousedown":wo=!0;break;case"contextmenu":case"mouseup":case"dragend":wo=!1,bo(s,n,r);break;case"selectionchange":if(mo)break;case"keydown":case"keyup":bo(s,n,r)}var y;if(In)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Wn?Vn(e,n)&&(C="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(C="onCompositionStart");C&&(kn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==C?"onCompositionEnd"===C&&Wn&&(y=en()):(Xt="value"in($t=r)?$t.value:$t.textContent,Wn=!0)),0<(v=qo(o,C)).length&&(C=new wn(C,e,null,n,r),s.push({event:C,listeners:v}),y?C.data=y:null!==(y=jn(n))&&(C.data=y))),(y=Fn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Gn);case"textInput":return(e=t.data)===Gn&&Hn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!In&&Vn(e,t)?(e=en(),Jt=Xt=$t=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(o=qo(o,"onBeforeInput")).length&&(r=new wn("onBeforeInput","beforeinput",null,n,r),s.push({event:r,listeners:o}),r.data=y))}Ho(s,t)}))}function Ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qo(e,t){for(var n=t+"Capture",o=[];null!==e;){var r=e,i=r.stateNode;5===r.tag&&null!==i&&(r=i,null!=(i=Ne(e,n))&&o.unshift(Ko(e,i,r)),null!=(i=Ne(e,t))&&o.push(Ko(e,i,r))),e=e.return}return o}function Zo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yo(e,t,n,o,r){for(var i=t._reactName,s=[];null!==n&&n!==o;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===o)break;5===a.tag&&null!==u&&(a=u,r?null!=(l=Ne(n,i))&&s.unshift(Ko(n,l,a)):r||null!=(l=Ne(n,i))&&s.push(Ko(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Qo=/\r\n?/g,$o=/\u0000|\uFFFD/g;function Xo(e){return("string"===typeof e?e:""+e).replace(Qo,"\n").replace($o,"")}function Jo(e,t,n){if(t=Xo(t),Xo(e)!==t&&n)throw Error(i(425))}function er(){}var tr=null,nr=null;function or(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rr="function"===typeof setTimeout?setTimeout:void 0,ir="function"===typeof clearTimeout?clearTimeout:void 0,sr="function"===typeof Promise?Promise:void 0,ar="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof sr?function(e){return sr.resolve(null).then(e).catch(lr)}:rr;function lr(e){setTimeout((function(){throw e}))}function ur(e,t){var n=t,o=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===o)return e.removeChild(r),void Wt(t);o--}else"$"!==n&&"$?"!==n&&"$!"!==n||o++;n=r}while(n);Wt(t)}function cr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function pr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),hr="__reactFiber$"+dr,fr="__reactProps$"+dr,gr="__reactContainer$"+dr,mr="__reactEvents$"+dr,vr="__reactListeners$"+dr,yr="__reactHandles$"+dr;function Cr(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gr]||n[hr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=pr(e);null!==e;){if(n=e[hr])return n;e=pr(e)}return t}n=(e=n).parentNode}return null}function wr(e){return!(e=e[hr]||e[gr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function br(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function _r(e){return e[fr]||null}var Er=[],Sr=-1;function Rr(e){return{current:e}}function Or(e){0>Sr||(e.current=Er[Sr],Er[Sr]=null,Sr--)}function Pr(e,t){Sr++,Er[Sr]=e.current,e.current=t}var Tr={},xr=Rr(Tr),Ar=Rr(!1),Dr=Tr;function Nr(e,t){var n=e.type.contextTypes;if(!n)return Tr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lr(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ir(){Or(Ar),Or(xr)}function Mr(e,t,n){if(xr.current!==Tr)throw Error(i(168));Pr(xr,t),Pr(Ar,n)}function Fr(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,"function"!==typeof o.getChildContext)return n;for(var r in o=o.getChildContext())if(!(r in t))throw Error(i(108,B(e)||"Unknown",r));return k({},n,o)}function kr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tr,Dr=xr.current,Pr(xr,e),Pr(Ar,Ar.current),!0}function Gr(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=Fr(e,t,Dr),o.__reactInternalMemoizedMergedChildContext=e,Or(Ar),Or(xr),Pr(xr,e)):Or(Ar),Pr(Ar,n)}var Hr=null,Vr=!1,jr=!1;function Wr(e){null===Hr?Hr=[e]:Hr.push(e)}function Br(){if(!jr&&null!==Hr){jr=!0;var e=0,t=Ct;try{var n=Hr;for(Ct=1;e<n.length;e++){var o=n[e];do{o=o(!0)}while(null!==o)}Hr=null,Vr=!1}catch(r){throw null!==Hr&&(Hr=Hr.slice(e+1)),qe(Je,Br),r}finally{Ct=t,jr=!1}}return null}var Ur=[],zr=0,Kr=null,qr=0,Zr=[],Yr=0,Qr=null,$r=1,Xr="";function Jr(e,t){Ur[zr++]=qr,Ur[zr++]=Kr,Kr=e,qr=t}function ei(e,t,n){Zr[Yr++]=$r,Zr[Yr++]=Xr,Zr[Yr++]=Qr,Qr=e;var o=$r;e=Xr;var r=32-st(o)-1;o&=~(1<<r),n+=1;var i=32-st(t)+r;if(30<i){var s=r-r%5;i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,$r=1<<32-st(t)+r|n<<r|o,Xr=i+e}else $r=1<<i|n<<r|o,Xr=e}function ti(e){null!==e.return&&(Jr(e,1),ei(e,1,0))}function ni(e){for(;e===Kr;)Kr=Ur[--zr],Ur[zr]=null,qr=Ur[--zr],Ur[zr]=null;for(;e===Qr;)Qr=Zr[--Yr],Zr[Yr]=null,Xr=Zr[--Yr],Zr[Yr]=null,$r=Zr[--Yr],Zr[Yr]=null}var oi=null,ri=null,ii=!1,si=null;function ai(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,oi=e,ri=cr(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qr?{id:$r,overflow:Xr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Du(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ri=null,!0);default:return!1}}function ui(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ci(e){if(ii){var t=ri;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=cr(n.nextSibling);var o=oi;t&&li(e,t)?ai(o,n):(e.flags=-4097&e.flags|2,ii=!1,oi=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,oi=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function di(e){if(e!==oi)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!or(e.type,e.memoizedProps)),t&&(t=ri)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=cr(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ri=cr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ri=null}}else ri=oi?cr(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=ri;e;)e=cr(e.nextSibling)}function fi(){ri=oi=null,ii=!1}function gi(e){null===si?si=[e]:si.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=k({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yi=Rr(null),Ci=null,wi=null,bi=null;function _i(){bi=wi=Ci=null}function Ei(e){var t=yi.current;Or(yi),e._currentValue=t}function Si(e,t,n){for(;null!==e;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==o&&(o.childLanes|=t)):null!==o&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ri(e,t){Ci=e,bi=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wa=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(bi!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===Ci)throw Error(i(308));wi=e,Ci.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Pi=null;function Ti(e){null===Pi?Pi=[e]:Pi.push(e)}function xi(e,t,n,o){var r=t.interleaved;return null===r?(n.next=n,Ti(t)):(n.next=r.next,r.next=n),t.interleaved=n,Ai(e,o)}function Ai(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Di=!1;function Ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mi(e,t,n){var o=e.updateQueue;if(null===o)return null;if(o=o.shared,0!==(2&Tl)){var r=o.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Ai(e,n)}return null===(r=o.interleaved)?(t.next=t,Ti(o)):(t.next=r.next,r.next=t),o.interleaved=t,Ai(e,n)}function Fi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,yt(e,n)}}function ki(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var r=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?r=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?r=i=t:i=i.next=t}else r=i=t;return n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gi(e,t,n,o){var r=e.updateQueue;Di=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(null!==a){r.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&((a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(null!==i){var p=r.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((o&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,g=a;switch(d=t,h=n,g.tag){case 1:if("function"===typeof(f=g.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(d="function"===typeof(f=g.payload)?f.call(h,p,d):f)||void 0===d)break e;p=k({},p,d);break e;case 2:Di=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=r.effects)?r.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=r.shared.pending))break;a=(d=a).next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}if(null===c&&(l=p),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,null!==(t=r.shared.interleaved)){r=t;do{s|=r.lane,r=r.next}while(r!==t)}else null===i&&(r.shared.lanes=0);Fl|=s,e.lanes=s,e.memoizedState=p}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(null!==r){if(o.callback=null,o=n,"function"!==typeof r)throw Error(i(191,r));r.call(o)}}}var Vi=(new o.Component).refs;function ji(e,t,n,o){n=null===(n=n(o,t=e.memoizedState))||void 0===n?t:k({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=eu(),r=tu(e),i=Ii(o,r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Mi(e,i,r))&&(nu(t,e,r,o),Fi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=eu(),r=tu(e),i=Ii(o,r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Mi(e,i,r))&&(nu(t,e,r,o),Fi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),o=tu(e),r=Ii(n,o);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Mi(e,r,o))&&(nu(t,e,o,n),Fi(t,e,o))}};function Bi(e,t,n,o,r,i,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!lo(n,o)||!lo(r,i))}function Ui(e,t,n){var o=!1,r=Tr,i=t.contextType;return"object"===typeof i&&null!==i?i=Oi(i):(r=Lr(t)?Dr:xr.current,i=(o=null!==(o=t.contextTypes)&&void 0!==o)?Nr(e,r):Tr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function zi(e,t,n,o){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Wi.enqueueReplaceState(t,t.state,null)}function Ki(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Vi,Ni(e);var i=t.contextType;"object"===typeof i&&null!==i?r.context=Oi(i):(i=Lr(t)?Dr:xr.current,r.context=Nr(e,i)),r.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(ji(e,t,i,n),r.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof r.getSnapshotBeforeUpdate||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||(t=r.state,"function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Wi.enqueueReplaceState(r,r.state,null),Gi(e,n,r,o),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.flags|=4194308)}function qi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var o=n.stateNode}if(!o)throw Error(i(147,e));var r=o,s=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=r.refs;t===Vi&&(t=r.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Zi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yi(e){return(0,e._init)(e._payload)}function Qi(e){function t(t,n){if(e){var o=t.deletions;null===o?(t.deletions=[n],t.flags|=16):o.push(n)}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Lu(e,t)).index=0,e.sibling=null,e}function s(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags|=2,n):o:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=ku(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){var i=n.type;return i===E?p(e,t,n.props.children,o,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===N&&Yi(i)===t.type)?((o=r(t,n.props)).ref=qi(e,t,n),o.return=e,o):((o=Iu(n.type,n.key,n.props,null,e.mode,o)).ref=qi(e,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gu(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function p(e,t,n,o,i){return null===t||7!==t.tag?((t=Mu(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=ku(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case b:return(n=Iu(t.type,t.key,t.props,null,e.mode,n)).ref=qi(e,null,t),n.return=e,n;case _:return(t=Gu(t,e.mode,n)).return=e,t;case N:return d(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Mu(t,e.mode,n,null)).return=e,t;Zi(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:l(e,t,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===r?u(e,t,n,o):null;case _:return n.key===r?c(e,t,n,o):null;case N:return h(e,t,(r=n._init)(n._payload),o)}if(te(n)||M(n))return null!==r?null:p(e,t,n,o,null);Zi(e,n)}return null}function f(e,t,n,o,r){if("string"===typeof o&&""!==o||"number"===typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"===typeof o&&null!==o){switch(o.$$typeof){case b:return u(t,e=e.get(null===o.key?n:o.key)||null,o,r);case _:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r);case N:return f(e,t,n,(0,o._init)(o._payload),r)}if(te(o)||M(o))return p(t,e=e.get(n)||null,o,r,null);Zi(t,o)}return null}function g(r,i,a,l){for(var u=null,c=null,p=i,g=i=0,m=null;null!==p&&g<a.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var v=h(r,p,a[g],l);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&t(r,p),i=s(v,i,g),null===c?u=v:c.sibling=v,c=v,p=m}if(g===a.length)return n(r,p),ii&&Jr(r,g),u;if(null===p){for(;g<a.length;g++)null!==(p=d(r,a[g],l))&&(i=s(p,i,g),null===c?u=p:c.sibling=p,c=p);return ii&&Jr(r,g),u}for(p=o(r,p);g<a.length;g++)null!==(m=f(p,r,g,a[g],l))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),i=s(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&p.forEach((function(e){return t(r,e)})),ii&&Jr(r,g),u}function m(r,a,l,u){var c=M(l);if("function"!==typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,g=a,m=a=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var C=h(r,g,y.value,u);if(null===C){null===g&&(g=v);break}e&&g&&null===C.alternate&&t(r,g),a=s(C,a,m),null===p?c=C:p.sibling=C,p=C,g=v}if(y.done)return n(r,g),ii&&Jr(r,m),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=d(r,y.value,u))&&(a=s(y,a,m),null===p?c=y:p.sibling=y,p=y);return ii&&Jr(r,m),c}for(g=o(r,g);!y.done;m++,y=l.next())null!==(y=f(g,r,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),a=s(y,a,m),null===p?c=y:p.sibling=y,p=y);return e&&g.forEach((function(e){return t(r,e)})),ii&&Jr(r,m),c}return function e(o,i,s,l){if("object"===typeof s&&null!==s&&s.type===E&&null===s.key&&(s=s.props.children),"object"===typeof s&&null!==s){switch(s.$$typeof){case b:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===E){if(7===c.tag){n(o,c.sibling),(i=r(c,s.props.children)).return=o,o=i;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===N&&Yi(u)===c.type){n(o,c.sibling),(i=r(c,s.props)).ref=qi(o,c,s),i.return=o,o=i;break e}n(o,c);break}t(o,c),c=c.sibling}s.type===E?((i=Mu(s.props.children,o.mode,l,s.key)).return=o,o=i):((l=Iu(s.type,s.key,s.props,null,o.mode,l)).ref=qi(o,i,s),l.return=o,o=l)}return a(o);case _:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(o,i.sibling),(i=r(i,s.children||[])).return=o,o=i;break e}n(o,i);break}t(o,i),i=i.sibling}(i=Gu(s,o.mode,l)).return=o,o=i}return a(o);case N:return e(o,i,(c=s._init)(s._payload),l)}if(te(s))return g(o,i,s,l);if(M(s))return m(o,i,s,l);Zi(o,s)}return"string"===typeof s&&""!==s||"number"===typeof s?(s=""+s,null!==i&&6===i.tag?(n(o,i.sibling),(i=r(i,s)).return=o,o=i):(n(o,i),(i=ku(s,o.mode,l)).return=o,o=i),a(o)):n(o,i)}}var $i=Qi(!0),Xi=Qi(!1),Ji={},es=Rr(Ji),ts=Rr(Ji),ns=Rr(Ji);function os(e){if(e===Ji)throw Error(i(174));return e}function rs(e,t){switch(Pr(ns,t),Pr(ts,e),Pr(es,Ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Or(es),Pr(es,t)}function is(){Or(es),Or(ts),Or(ns)}function ss(e){os(ns.current);var t=os(es.current),n=le(t,e.type);t!==n&&(Pr(ts,e),Pr(es,n))}function as(e){ts.current===e&&(Or(es),Or(ts))}var ls=Rr(0);function us(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cs=[];function ps(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ds=w.ReactCurrentDispatcher,hs=w.ReactCurrentBatchConfig,fs=0,gs=null,ms=null,vs=null,ys=!1,Cs=!1,ws=0,bs=0;function _s(){throw Error(i(321))}function Es(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ao(e[n],t[n]))return!1;return!0}function Ss(e,t,n,o,r,s){if(fs=s,gs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=null===e||null===e.memoizedState?aa:la,e=n(o,r),Cs){s=0;do{if(Cs=!1,ws=0,25<=s)throw Error(i(301));s+=1,vs=ms=null,t.updateQueue=null,ds.current=ua,e=n(o,r)}while(Cs)}if(ds.current=sa,t=null!==ms&&null!==ms.next,fs=0,vs=ms=gs=null,ys=!1,t)throw Error(i(300));return e}function Rs(){var e=0!==ws;return ws=0,e}function Os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vs?gs.memoizedState=vs=e:vs=vs.next=e,vs}function Ps(){if(null===ms){var e=gs.alternate;e=null!==e?e.memoizedState:null}else e=ms.next;var t=null===vs?gs.memoizedState:vs.next;if(null!==t)vs=t,ms=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ms=e).memoizedState,baseState:ms.baseState,baseQueue:ms.baseQueue,queue:ms.queue,next:null},null===vs?gs.memoizedState=vs=e:vs=vs.next=e}return vs}function Ts(e,t){return"function"===typeof t?t(e):t}function xs(e){var t=Ps(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=ms,r=o.baseQueue,s=n.pending;if(null!==s){if(null!==r){var a=r.next;r.next=s.next,s.next=a}o.baseQueue=r=s,n.pending=null}if(null!==r){s=r.next,o=o.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((fs&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=o):u=u.next=d,gs.lanes|=p,Fl|=p}c=c.next}while(null!==c&&c!==s);null===u?a=o:u.next=l,ao(o,t.memoizedState)||(wa=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=u,n.lastRenderedState=o}if(null!==(e=n.interleaved)){r=e;do{s=r.lane,gs.lanes|=s,Fl|=s,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function As(e){var t=Ps(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,s=t.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{s=e(s,a.action),a=a.next}while(a!==r);ao(s,t.memoizedState)||(wa=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,o]}function Ds(){}function Ns(e,t){var n=gs,o=Ps(),r=t(),s=!ao(o.memoizedState,r);if(s&&(o.memoizedState=r,wa=!0),o=o.queue,Us(Ms.bind(null,n,o,e),[e]),o.getSnapshot!==t||s||null!==vs&&1&vs.memoizedState.tag){if(n.flags|=2048,Hs(9,Is.bind(null,n,o,r,t),void 0,null),null===xl)throw Error(i(349));0!==(30&fs)||Ls(n,t,r)}return r}function Ls(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Is(e,t,n,o){t.value=n,t.getSnapshot=o,Fs(t)&&ks(e)}function Ms(e,t,n){return n((function(){Fs(t)&&ks(e)}))}function Fs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ao(e,n)}catch(o){return!0}}function ks(e){var t=Ai(e,1);null!==t&&nu(t,e,1,-1)}function Gs(e){var t=Os();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ts,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,gs,e),[t.memoizedState,e]}function Hs(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function Vs(){return Ps().memoizedState}function js(e,t,n,o){var r=Os();gs.flags|=e,r.memoizedState=Hs(1|t,n,void 0,void 0===o?null:o)}function Ws(e,t,n,o){var r=Ps();o=void 0===o?null:o;var i=void 0;if(null!==ms){var s=ms.memoizedState;if(i=s.destroy,null!==o&&Es(o,s.deps))return void(r.memoizedState=Hs(t,n,i,o))}gs.flags|=e,r.memoizedState=Hs(1|t,n,i,o)}function Bs(e,t){return js(8390656,8,e,t)}function Us(e,t){return Ws(2048,8,e,t)}function zs(e,t){return Ws(4,2,e,t)}function Ks(e,t){return Ws(4,4,e,t)}function qs(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Zs(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ws(4,4,qs.bind(null,t,e),n)}function Ys(){}function Qs(e,t){var n=Ps();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Es(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function $s(e,t){var n=Ps();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Es(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Xs(e,t,n){return 0===(21&fs)?(e.baseState&&(e.baseState=!1,wa=!0),e.memoizedState=n):(ao(n,t)||(n=gt(),gs.lanes|=n,Fl|=n,e.baseState=!0),t)}function Js(e,t){var n=Ct;Ct=0!==n&&4>n?n:4,e(!0);var o=hs.transition;hs.transition={};try{e(!1),t()}finally{Ct=n,hs.transition=o}}function ea(){return Ps().memoizedState}function ta(e,t,n){var o=tu(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},oa(e))ra(t,n);else if(null!==(n=xi(e,t,n,o))){nu(n,e,o,eu()),ia(n,t,o)}}function na(e,t,n){var o=tu(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(oa(e))ra(t,r);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(r.hasEagerState=!0,r.eagerState=a,ao(a,s)){var l=t.interleaved;return null===l?(r.next=r,Ti(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(u){}null!==(n=xi(e,t,r,o))&&(nu(n,e,o,r=eu()),ia(n,t,o))}}function oa(e){var t=e.alternate;return e===gs||null!==t&&t===gs}function ra(e,t){Cs=ys=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ia(e,t,n){if(0!==(4194240&n)){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,yt(e,n)}}var sa={readContext:Oi,useCallback:_s,useContext:_s,useEffect:_s,useImperativeHandle:_s,useInsertionEffect:_s,useLayoutEffect:_s,useMemo:_s,useReducer:_s,useRef:_s,useState:_s,useDebugValue:_s,useDeferredValue:_s,useTransition:_s,useMutableSource:_s,useSyncExternalStore:_s,useId:_s,unstable_isNewReconciler:!1},aa={readContext:Oi,useCallback:function(e,t){return Os().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Bs,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,js(4194308,4,qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return js(4194308,4,e,t)},useInsertionEffect:function(e,t){return js(4,2,e,t)},useMemo:function(e,t){var n=Os();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Os();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=ta.bind(null,gs,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},Os().memoizedState=e},useState:Gs,useDebugValue:Ys,useDeferredValue:function(e){return Os().memoizedState=e},useTransition:function(){var e=Gs(!1),t=e[0];return e=Js.bind(null,e[1]),Os().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=gs,r=Os();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===xl)throw Error(i(349));0!==(30&fs)||Ls(o,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,Bs(Ms.bind(null,o,s,e),[e]),o.flags|=2048,Hs(9,Is.bind(null,o,s,n,t),void 0,null),n},useId:function(){var e=Os(),t=xl.identifierPrefix;if(ii){var n=Xr;t=":"+t+"R"+(n=($r&~(1<<32-st($r)-1)).toString(32)+n),0<(n=ws++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=bs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Oi,useCallback:Qs,useContext:Oi,useEffect:Us,useImperativeHandle:Zs,useInsertionEffect:zs,useLayoutEffect:Ks,useMemo:$s,useReducer:xs,useRef:Vs,useState:function(){return xs(Ts)},useDebugValue:Ys,useDeferredValue:function(e){return Xs(Ps(),ms.memoizedState,e)},useTransition:function(){return[xs(Ts)[0],Ps().memoizedState]},useMutableSource:Ds,useSyncExternalStore:Ns,useId:ea,unstable_isNewReconciler:!1},ua={readContext:Oi,useCallback:Qs,useContext:Oi,useEffect:Us,useImperativeHandle:Zs,useInsertionEffect:zs,useLayoutEffect:Ks,useMemo:$s,useReducer:As,useRef:Vs,useState:function(){return As(Ts)},useDebugValue:Ys,useDeferredValue:function(e){var t=Ps();return null===ms?t.memoizedState=e:Xs(t,ms.memoizedState,e)},useTransition:function(){return[As(Ts)[0],Ps().memoizedState]},useMutableSource:Ds,useSyncExternalStore:Ns,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var n="",o=t;do{n+=j(o),o=o.return}while(o);var r=n}catch(i){r="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:r,digest:null}}function pa(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ha="function"===typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=Ii(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Ul||(Ul=!0,zl=o),da(0,t)},n}function ga(e,t,n){(n=Ii(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"===typeof o){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){da(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){da(0,t),"function"!==typeof o&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var o=e.pingCache;if(null===o){o=e.pingCache=new ha;var r=new Set;o.set(t,r)}else void 0===(r=o.get(t))&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=Ru.bind(null,e,t,n),t.then(e,e))}function va(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,n,o,r){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ii(-1,1)).tag=2,Mi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var Ca=w.ReactCurrentOwner,wa=!1;function ba(e,t,n,o){t.child=null===e?Xi(t,null,n,o):$i(t,e.child,n,o)}function _a(e,t,n,o,r){n=n.render;var i=t.ref;return Ri(t,r),o=Ss(e,t,n,o,i,r),n=Rs(),null===e||wa?(ii&&n&&ti(t),t.flags|=1,ba(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ua(e,t,r))}function Ea(e,t,n,o,r){if(null===e){var i=n.type;return"function"!==typeof i||Nu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Iu(n.type,null,o,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sa(e,t,i,o,r))}if(i=e.child,0===(e.lanes&r)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lo)(s,o)&&e.ref===t.ref)return Ua(e,t,r)}return t.flags|=1,(e=Lu(i,o)).ref=t.ref,e.return=t,t.child=e}function Sa(e,t,n,o,r){if(null!==e){var i=e.memoizedProps;if(lo(i,o)&&e.ref===t.ref){if(wa=!1,t.pendingProps=o=i,0===(e.lanes&r))return t.lanes=e.lanes,Ua(e,t,r);0!==(131072&e.flags)&&(wa=!0)}}return Pa(e,t,n,o,r)}function Ra(e,t,n){var o=t.pendingProps,r=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pr(Ll,Nl),Nl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pr(Ll,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==i?i.baseLanes:n,Pr(Ll,Nl),Nl|=o}else null!==i?(o=i.baseLanes|n,t.memoizedState=null):o=n,Pr(Ll,Nl),Nl|=o;return ba(e,t,r,n),t.child}function Oa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pa(e,t,n,o,r){var i=Lr(n)?Dr:xr.current;return i=Nr(t,i),Ri(t,r),n=Ss(e,t,n,o,i,r),o=Rs(),null===e||wa?(ii&&o&&ti(t),t.flags|=1,ba(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ua(e,t,r))}function Ta(e,t,n,o,r){if(Lr(n)){var i=!0;kr(t)}else i=!1;if(Ri(t,r),null===t.stateNode)Ba(e,t),Ui(t,n,o),Ki(t,n,o,r),o=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;"object"===typeof u&&null!==u?u=Oi(u):u=Nr(t,u=Lr(n)?Dr:xr.current);var c=n.getDerivedStateFromProps,p="function"===typeof c||"function"===typeof s.getSnapshotBeforeUpdate;p||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==o||l!==u)&&zi(t,s,o,u),Di=!1;var d=t.memoizedState;s.state=d,Gi(t,o,s,r),l=t.memoizedState,a!==o||d!==l||Ar.current||Di?("function"===typeof c&&(ji(t,n,c,o),l=t.memoizedState),(a=Di||Bi(t,n,a,o,d,l,u))?(p||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),s.props=o,s.state=l,s.context=u,o=a):("function"===typeof s.componentDidMount&&(t.flags|=4194308),o=!1)}else{s=t.stateNode,Li(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:vi(t.type,a),s.props=u,p=t.pendingProps,d=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=Oi(l):l=Nr(t,l=Lr(n)?Dr:xr.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==p||d!==l)&&zi(t,s,o,l),Di=!1,d=t.memoizedState,s.state=d,Gi(t,o,s,r);var f=t.memoizedState;a!==p||d!==f||Ar.current||Di?("function"===typeof h&&(ji(t,n,h,o),f=t.memoizedState),(u=Di||Bi(t,n,u,o,d,f,l)||!1)?(c||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(o,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,f,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),s.props=o,s.state=f,s.context=l,o=u):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),o=!1)}return xa(e,t,n,o,i,r)}function xa(e,t,n,o,r,i){Oa(e,t);var s=0!==(128&t.flags);if(!o&&!s)return r&&Gr(t,n,!1),Ua(e,t,i);o=t.stateNode,Ca.current=t;var a=s&&"function"!==typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&s?(t.child=$i(t,e.child,null,i),t.child=$i(t,null,a,i)):ba(e,t,a,i),t.memoizedState=o.state,r&&Gr(t,n,!0),t.child}function Aa(e){var t=e.stateNode;t.pendingContext?Mr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mr(0,t.context,!1),rs(e,t.containerInfo)}function Da(e,t,n,o,r){return fi(),gi(r),t.flags|=256,ba(e,t,n,o),t.child}var Na,La,Ia,Ma={dehydrated:null,treeContext:null,retryLane:0};function Fa(e){return{baseLanes:e,cachePool:null,transitions:null}}function ka(e,t,n){var o,r=t.pendingProps,s=ls.current,a=!1,l=0!==(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&0!==(2&s)),o?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Pr(ls,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,a?(r=t.mode,a=t.child,l={mode:"hidden",children:l},0===(1&r)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Fu(l,r,0,null),e=Mu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Fa(n),t.memoizedState=Ma,e):Ga(t,l));if(null!==(s=e.memoizedState)&&null!==(o=s.dehydrated))return function(e,t,n,o,r,s,a){if(n)return 256&t.flags?(t.flags&=-257,Ha(e,t,a,o=pa(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=o.fallback,r=t.mode,o=Fu({mode:"visible",children:o.children},r,0,null),(s=Mu(s,r,a,null)).flags|=2,o.return=t,s.return=t,o.sibling=s,t.child=o,0!==(1&t.mode)&&$i(t,e.child,null,a),t.child.memoizedState=Fa(a),t.memoizedState=Ma,s);if(0===(1&t.mode))return Ha(e,t,a,null);if("$!"===r.data){if(o=r.nextSibling&&r.nextSibling.dataset)var l=o.dgst;return o=l,Ha(e,t,a,o=pa(s=Error(i(419)),o,void 0))}if(l=0!==(a&e.childLanes),wa||l){if(null!==(o=xl)){switch(a&-a){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(o.suspendedLanes|a))?0:r)&&r!==s.retryLane&&(s.retryLane=r,Ai(e,r),nu(o,e,r,-1))}return gu(),Ha(e,t,a,o=pa(Error(i(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Pu.bind(null,e),r._reactRetry=t,null):(e=s.treeContext,ri=cr(r.nextSibling),oi=t,ii=!0,si=null,null!==e&&(Zr[Yr++]=$r,Zr[Yr++]=Xr,Zr[Yr++]=Qr,$r=e.id,Xr=e.overflow,Qr=t),(t=Ga(t,o.children)).flags|=4096,t)}(e,t,l,r,o,s,n);if(a){a=r.fallback,l=t.mode,o=(s=e.child).sibling;var u={mode:"hidden",children:r.children};return 0===(1&l)&&t.child!==s?((r=t.child).childLanes=0,r.pendingProps=u,t.deletions=null):(r=Lu(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==o?a=Lu(o,a):(a=Mu(a,l,n,null)).flags|=2,a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,l=null===(l=e.child.memoizedState)?Fa(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ma,r}return e=(a=e.child).sibling,r=Lu(a,{mode:"visible",children:r.children}),0===(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ga(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ha(e,t,n,o){return null!==o&&gi(o),$i(t,e.child,null,n),(e=Ga(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Va(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),Si(e.return,t,n)}function ja(e,t,n,o,r){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=r)}function Wa(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(ba(e,t,o.children,n),0!==(2&(o=ls.current)))o=1&o|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Va(e,n,t);else if(19===e.tag)Va(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Pr(ls,o),0===(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===us(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ja(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===us(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ja(t,!0,n,null,i);break;case"together":ja(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ba(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Lu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function za(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ka(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=14680064&r.subtreeFlags,o|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function qa(e,t,n){var o=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ka(t),null;case 1:case 17:return Lr(t.type)&&Ir(),Ka(t),null;case 3:return o=t.stateNode,is(),Or(Ar),Or(xr),ps(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==si&&(su(si),si=null))),Ka(t),null;case 5:as(t);var r=os(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)La(e,t,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(i(166));return Ka(t),null}if(e=os(es.current),di(t)){o=t.stateNode,n=t.type;var s=t.memoizedProps;switch(o[hr]=t,o[fr]=s,e=0!==(1&t.mode),n){case"dialog":Vo("cancel",o),Vo("close",o);break;case"iframe":case"object":case"embed":Vo("load",o);break;case"video":case"audio":for(r=0;r<Fo.length;r++)Vo(Fo[r],o);break;case"source":Vo("error",o);break;case"img":case"image":case"link":Vo("error",o),Vo("load",o);break;case"details":Vo("toggle",o);break;case"input":Q(o,s),Vo("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Vo("invalid",o);break;case"textarea":re(o,s),Vo("invalid",o)}for(var l in ye(n,s),r=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"===typeof u?o.textContent!==u&&(!0!==s.suppressHydrationWarning&&Jo(o.textContent,u,e),r=["children",u]):"number"===typeof u&&o.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Jo(o.textContent,u,e),r=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Vo("scroll",o)}switch(n){case"input":K(o),J(o,s,!0);break;case"textarea":K(o),se(o);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(o.onclick=er)}o=r,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof o.is?e=l.createElement(n,{is:o.is}):(e=l.createElement(n),"select"===n&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,n),e[hr]=t,e[fr]=o,Na(e,t),t.stateNode=e;e:{switch(l=Ce(n,o),n){case"dialog":Vo("cancel",e),Vo("close",e),r=o;break;case"iframe":case"object":case"embed":Vo("load",e),r=o;break;case"video":case"audio":for(r=0;r<Fo.length;r++)Vo(Fo[r],e);r=o;break;case"source":Vo("error",e),r=o;break;case"img":case"image":case"link":Vo("error",e),Vo("load",e),r=o;break;case"details":Vo("toggle",e),r=o;break;case"input":Q(e,o),r=Y(e,o),Vo("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=k({},o,{value:void 0}),Vo("invalid",e);break;case"textarea":re(e,o),r=oe(e,o),Vo("invalid",e)}for(s in ye(n,r),u=r)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"===typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Vo("scroll",e):null!=c&&C(e,s,c,l))}switch(n){case"input":K(e),J(e,o,!1);break;case"textarea":K(e),se(e);break;case"option":null!=o.value&&e.setAttribute("value",""+U(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?ne(e,!!o.multiple,s,!1):null!=o.defaultValue&&ne(e,!!o.multiple,o.defaultValue,!0);break;default:"function"===typeof r.onClick&&(e.onclick=er)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ka(t),null;case 6:if(e&&null!=t.stateNode)Ia(0,t,e.memoizedProps,o);else{if("string"!==typeof o&&null===t.stateNode)throw Error(i(166));if(n=os(ns.current),os(es.current),di(t)){if(o=t.stateNode,n=t.memoizedProps,o[hr]=t,(s=o.nodeValue!==n)&&null!==(e=oi))switch(e.tag){case 3:Jo(o.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jo(o.nodeValue,n,0!==(1&e.mode))}s&&(t.flags|=4)}else(o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[hr]=t,t.stateNode=o}return Ka(t),null;case 13:if(Or(ls),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==ri&&0!==(1&t.mode)&&0===(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[hr]=t}else fi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ka(t),s=!1}else null!==si&&(su(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ls.current)?0===Il&&(Il=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ka(t),null);case 4:return is(),null===e&&Bo(t.stateNode.containerInfo),Ka(t),null;case 10:return Ei(t.type._context),Ka(t),null;case 19:if(Or(ls),null===(s=t.memoizedState))return Ka(t),null;if(o=0!==(128&t.flags),null===(l=s.rendering))if(o)za(s,!1);else{if(0!==Il||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=us(e))){for(t.flags|=128,za(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pr(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&$e()>Wl&&(t.flags|=128,o=!0,za(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=us(l))){if(t.flags|=128,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),za(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Ka(t),null}else 2*$e()-s.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,o=!0,za(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=$e(),t.sibling=null,n=ls.current,Pr(ls,o?1&n|2:1&n),t):(Ka(t),null);case 22:case 23:return pu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&0!==(1&t.mode)?0!==(1073741824&Nl)&&(Ka(t),6&t.subtreeFlags&&(t.flags|=8192)):Ka(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Za(e,t){switch(ni(t),t.tag){case 1:return Lr(t.type)&&Ir(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return is(),Or(Ar),Or(xr),ps(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(Or(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Or(ls),null;case 4:return is(),null;case 10:return Ei(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}Na=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},La=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,os(es.current);var i,s=null;switch(n){case"input":r=Y(e,r),o=Y(e,o),s=[];break;case"select":r=k({},r,{value:void 0}),o=k({},o,{value:void 0}),s=[];break;case"textarea":r=oe(e,r),o=oe(e,o),s=[];break;default:"function"!==typeof r.onClick&&"function"===typeof o.onClick&&(e.onclick=er)}for(c in ye(n,o),n=null,r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&null!=r[c])if("style"===c){var l=r[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in o){var u=o[c];if(l=null!=r?r[c]:void 0,o.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Vo("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ia=function(e,t,n,o){n!==o&&(t.flags|=4)};var Ya=!1,Qa=!1,$a="function"===typeof WeakSet?WeakSet:Set,Xa=null;function Ja(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(o){Su(e,t,o)}else n.current=null}function el(e,t,n){try{n()}catch(o){Su(e,t,o)}}var tl=!1;function nl(e,t,n){var o=t.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var r=o=o.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,void 0!==i&&el(t,n,i)}r=r.next}while(r!==o)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hr],delete t[fr],delete t[mr],delete t[vr],delete t[yr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=er));else if(4!==o&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,pl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(rt,n)}catch(a){}switch(n.tag){case 5:Qa||Ja(n,t);case 6:var o=cl,r=pl;cl=null,dl(e,t,n),pl=r,null!==(cl=o)&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?ur(e.parentNode,n):1===e.nodeType&&ur(e,n),Wt(e)):ur(cl,n.stateNode));break;case 4:o=cl,r=pl,cl=n.stateNode.containerInfo,pl=!0,dl(e,t,n),cl=o,pl=r;break;case 0:case 11:case 14:case 15:if(!Qa&&(null!==(o=n.updateQueue)&&null!==(o=o.lastEffect))){r=o=o.next;do{var i=r,s=i.destroy;i=i.tag,void 0!==s&&(0!==(2&i)||0!==(4&i))&&el(n,t,s),r=r.next}while(r!==o)}dl(e,t,n);break;case 1:if(!Qa&&(Ja(n,t),"function"===typeof(o=n.stateNode).componentWillUnmount))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(a){Su(n,t,a)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Qa=(o=Qa)||null!==n.memoizedState,dl(e,t,n),Qa=o):dl(e,t,n);break;default:dl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new $a),t.forEach((function(t){var o=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var r=n[o];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,pl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));hl(s,a,r),cl=null,pl=!1;var u=r.alternate;null!==u&&(u.return=null),r.return=null}catch(c){Su(r,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&o){try{nl(3,e,e.return),ol(3,e)}catch(m){Su(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Su(e,e.return,m)}}break;case 1:gl(t,e),vl(e),512&o&&null!==n&&Ja(n,n.return);break;case 5:if(gl(t,e),vl(e),512&o&&null!==n&&Ja(n,n.return),32&e.flags){var r=e.stateNode;try{de(r,"")}catch(m){Su(e,e.return,m)}}if(4&o&&null!=(r=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&$(r,s),Ce(l,a);var c=Ce(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?me(r,d):"dangerouslySetInnerHTML"===p?pe(r,d):"children"===p?de(r,d):C(r,p,d,c)}switch(l){case"input":X(r,s);break;case"textarea":ie(r,s);break;case"select":var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(r,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?ne(r,!!s.multiple,s.defaultValue,!0):ne(r,!!s.multiple,s.multiple?[]:"",!1))}r[fr]=s}catch(m){Su(e,e.return,m)}}break;case 6:if(gl(t,e),vl(e),4&o){if(null===e.stateNode)throw Error(i(162));r=e.stateNode,s=e.memoizedProps;try{r.nodeValue=s}catch(m){Su(e,e.return,m)}}break;case 3:if(gl(t,e),vl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(m){Su(e,e.return,m)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(r=e.child).flags&&(s=null!==r.memoizedState,r.stateNode.isHidden=s,!s||null!==r.alternate&&null!==r.alternate.memoizedState||(jl=$e())),4&o&&fl(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?(Qa=(c=Qa)||p,gl(t,e),Qa=c):gl(t,e),vl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&0!==(1&e.mode))for(Xa=e,p=e.child;null!==p;){for(d=Xa=p;null!==Xa;){switch(f=(h=Xa).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Ja(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){o=h,n=h.return;try{t=o,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Su(o,n,m)}}break;case 5:Ja(h,h.return);break;case 22:if(null!==h.memoizedState){bl(d);continue}}null!==f?(f.return=h,Xa=f):bl(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{r=d.stateNode,c?"function"===typeof(s=r.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=void 0!==(u=d.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=ge("display",a))}catch(m){Su(e,e.return,m)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Su(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),vl(e),4&o&&fl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var o=n;break e}n=n.return}throw Error(i(160))}switch(o.tag){case 5:var r=o.stateNode;32&o.flags&&(de(r,""),o.flags&=-33),ul(e,al(e),r);break;case 3:case 4:var s=o.stateNode.containerInfo;ll(e,al(e),s);break;default:throw Error(i(161))}}catch(a){Su(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xa=e,Cl(e,t,n)}function Cl(e,t,n){for(var o=0!==(1&e.mode);null!==Xa;){var r=Xa,i=r.child;if(22===r.tag&&o){var s=null!==r.memoizedState||Ya;if(!s){var a=r.alternate,l=null!==a&&null!==a.memoizedState||Qa;a=Ya;var u=Qa;if(Ya=s,(Qa=l)&&!u)for(Xa=r;null!==Xa;)l=(s=Xa).child,22===s.tag&&null!==s.memoizedState?_l(r):null!==l?(l.return=s,Xa=l):_l(r);for(;null!==i;)Xa=i,Cl(i,t,n),i=i.sibling;Xa=r,Ya=a,Qa=u}wl(e)}else 0!==(8772&r.subtreeFlags)&&null!==i?(i.return=r,Xa=i):wl(e)}}function wl(e){for(;null!==Xa;){var t=Xa;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qa||ol(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Qa)if(null===n)o.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);o.componentDidUpdate(r,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Hi(t,s,o);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&Wt(d)}}}break;default:throw Error(i(163))}Qa||512&t.flags&&rl(t)}catch(h){Su(t,t.return,h)}}if(t===e){Xa=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xa=n;break}Xa=t.return}}function bl(e){for(;null!==Xa;){var t=Xa;if(t===e){Xa=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xa=n;break}Xa=t.return}}function _l(e){for(;null!==Xa;){var t=Xa;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(l){Su(t,n,l)}break;case 1:var o=t.stateNode;if("function"===typeof o.componentDidMount){var r=t.return;try{o.componentDidMount()}catch(l){Su(t,r,l)}}var i=t.return;try{rl(t)}catch(l){Su(t,i,l)}break;case 5:var s=t.return;try{rl(t)}catch(l){Su(t,s,l)}}}catch(l){Su(t,t.return,l)}if(t===e){Xa=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Xa=a;break}Xa=t.return}}var El,Sl=Math.ceil,Rl=w.ReactCurrentDispatcher,Ol=w.ReactCurrentOwner,Pl=w.ReactCurrentBatchConfig,Tl=0,xl=null,Al=null,Dl=0,Nl=0,Ll=Rr(0),Il=0,Ml=null,Fl=0,kl=0,Gl=0,Hl=null,Vl=null,jl=0,Wl=1/0,Bl=null,Ul=!1,zl=null,Kl=null,ql=!1,Zl=null,Yl=0,Ql=0,$l=null,Xl=-1,Jl=0;function eu(){return 0!==(6&Tl)?$e():-1!==Xl?Xl:Xl=$e()}function tu(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Dl?Dl&-Dl:null!==mi.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=Ct)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function nu(e,t,n,o){if(50<Ql)throw Ql=0,$l=null,Error(i(185));vt(e,n,o),0!==(2&Tl)&&e===xl||(e===xl&&(0===(2&Tl)&&(kl|=n),4===Il&&au(e,Dl)),ou(e,o),1===n&&0===Tl&&0===(1&t.mode)&&(Wl=$e()+500,Vr&&Br()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=r[s];-1===l?0!==(a&n)&&0===(a&o)||(r[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var o=dt(e,e===xl?Dl:0);if(0===o)null!==n&&Ze(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(null!=n&&Ze(n),1===t)0===e.tag?function(e){Vr=!0,Wr(e)}(lu.bind(null,e)):Wr(lu.bind(null,e)),ar((function(){0===(6&Tl)&&Br()})),n=null;else{switch(wt(o)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=ot}n=xu(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Xl=-1,Jl=0,0!==(6&Tl))throw Error(i(327));var n=e.callbackNode;if(_u()&&e.callbackNode!==n)return null;var o=dt(e,e===xl?Dl:0);if(0===o)return null;if(0!==(30&o)||0!==(o&e.expiredLanes)||t)t=mu(e,o);else{t=o;var r=Tl;Tl|=2;var s=fu();for(xl===e&&Dl===t||(Bl=null,Wl=$e()+500,du(e,t));;)try{yu();break}catch(l){hu(e,l)}_i(),Rl.current=s,Tl=r,null!==Al?t=0:(xl=null,Dl=0,t=Il)}if(0!==t){if(2===t&&(0!==(r=ft(e))&&(o=r,t=iu(e,r))),1===t)throw n=Ml,du(e,0),au(e,o),ou(e,$e()),n;if(6===t)au(e,o);else{if(r=e.current.alternate,0===(30&o)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var o=0;o<n.length;o++){var r=n[o],i=r.getSnapshot;r=r.value;try{if(!ao(i(),r))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=mu(e,o))&&(0!==(s=ft(e))&&(o=s,t=iu(e,s))),1===t))throw n=Ml,du(e,0),au(e,o),ou(e,$e()),n;switch(e.finishedWork=r,e.finishedLanes=o,t){case 0:case 1:throw Error(i(345));case 2:case 5:bu(e,Vl,Bl);break;case 3:if(au(e,o),(130023424&o)===o&&10<(t=jl+500-$e())){if(0!==dt(e,0))break;if(((r=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=rr(bu.bind(null,e,Vl,Bl),t);break}bu(e,Vl,Bl);break;case 4:if(au(e,o),(4194240&o)===o)break;for(t=e.eventTimes,r=-1;0<o;){var a=31-st(o);s=1<<a,(a=t[a])>r&&(r=a),o&=~s}if(o=r,10<(o=(120>(o=$e()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Sl(o/1960))-o)){e.timeoutHandle=rr(bu.bind(null,e,Vl,Bl),o);break}bu(e,Vl,Bl);break;default:throw Error(i(329))}}}return ou(e,$e()),e.callbackNode===n?ru.bind(null,e):null}function iu(e,t){var n=Hl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Vl,Vl=n,null!==t&&su(t)),e}function su(e){null===Vl?Vl=e:Vl.push.apply(Vl,e)}function au(e,t){for(t&=~Gl,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),o=1<<n;e[n]=-1,t&=~o}}function lu(e){if(0!==(6&Tl))throw Error(i(327));_u();var t=dt(e,0);if(0===(1&t))return ou(e,$e()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var o=ft(e);0!==o&&(t=o,n=iu(e,o))}if(1===n)throw n=Ml,du(e,0),au(e,t),ou(e,$e()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,bu(e,Vl,Bl),ou(e,$e()),null}function uu(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Wl=$e()+500,Vr&&Br())}}function cu(e){null!==Zl&&0===Zl.tag&&0===(6&Tl)&&_u();var t=Tl;Tl|=1;var n=Pl.transition,o=Ct;try{if(Pl.transition=null,Ct=1,e)return e()}finally{Ct=o,Pl.transition=n,0===(6&(Tl=t))&&Br()}}function pu(){Nl=Ll.current,Or(Ll)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ir(n)),null!==Al)for(n=Al.return;null!==n;){var o=n;switch(ni(o),o.tag){case 1:null!==(o=o.type.childContextTypes)&&void 0!==o&&Ir();break;case 3:is(),Or(Ar),Or(xr),ps();break;case 5:as(o);break;case 4:is();break;case 13:case 19:Or(ls);break;case 10:Ei(o.type._context);break;case 22:case 23:pu()}n=n.return}if(xl=e,Al=e=Lu(e.current,null),Dl=Nl=t,Il=0,Ml=null,Gl=kl=Fl=0,Vl=Hl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(o=(n=Pi[t]).interleaved)){n.interleaved=null;var r=o.next,i=n.pending;if(null!==i){var s=i.next;i.next=r,o.next=s}n.pending=o}Pi=null}return e}function hu(e,t){for(;;){var n=Al;try{if(_i(),ds.current=sa,ys){for(var o=gs.memoizedState;null!==o;){var r=o.queue;null!==r&&(r.pending=null),o=o.next}ys=!1}if(fs=0,vs=ms=gs=null,Cs=!1,ws=0,Ol.current=null,null===n||null===n.return){Il=1,Ml=t,Al=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=Dl,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,p=l,d=p.tag;if(0===(1&p.mode)&&(0===d||11===d||15===d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=va(a);if(null!==f){f.flags&=-257,ya(f,a,l,0,t),1&f.mode&&ma(s,c,t),u=c;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0===(1&t)){ma(s,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var v=va(a);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),ya(v,a,l,0,t),gi(ca(u,l));break e}}s=u=ca(u,l),4!==Il&&(Il=2),null===Hl?Hl=[s]:Hl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,ki(s,fa(0,u,t));break e;case 1:l=u;var y=s.type,C=s.stateNode;if(0===(128&s.flags)&&("function"===typeof y.getDerivedStateFromError||null!==C&&"function"===typeof C.componentDidCatch&&(null===Kl||!Kl.has(C)))){s.flags|=65536,t&=-t,s.lanes|=t,ki(s,ga(s,l,t));break e}}s=s.return}while(null!==s)}wu(n)}catch(w){t=w,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function fu(){var e=Rl.current;return Rl.current=sa,null===e?sa:e}function gu(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===xl||0===(268435455&Fl)&&0===(268435455&kl)||au(xl,Dl)}function mu(e,t){var n=Tl;Tl|=2;var o=fu();for(xl===e&&Dl===t||(Bl=null,du(e,t));;)try{vu();break}catch(r){hu(e,r)}if(_i(),Tl=n,Rl.current=o,null!==Al)throw Error(i(261));return xl=null,Dl=0,Il}function vu(){for(;null!==Al;)Cu(Al)}function yu(){for(;null!==Al&&!Ye();)Cu(Al)}function Cu(e){var t=El(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?wu(e):Al=t,Ol.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=qa(n,t,Nl)))return void(Al=n)}else{if(null!==(n=Za(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Il=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Il&&(Il=5)}function bu(e,t,n){var o=Ct,r=Pl.transition;try{Pl.transition=null,Ct=1,function(e,t,n,o){do{_u()}while(null!==Zl);if(0!==(6&Tl))throw Error(i(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-st(n),i=1<<r;t[r]=0,o[r]=-1,e[r]=-1,n&=~i}}(e,s),e===xl&&(Al=xl=null,Dl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||ql||(ql=!0,xu(tt,(function(){return _u(),null}))),s=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||s){s=Pl.transition,Pl.transition=null;var a=Ct;Ct=1;var l=Tl;Tl|=4,Ol.current=null,function(e,t){if(tr=Ut,fo(e=ho())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var r=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{n.nodeType,s.nodeType}catch(b){n=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==n||0!==r&&3!==d.nodeType||(l=a+r),d!==s||0!==o&&3!==d.nodeType||(u=a+o),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===r&&(l=a),h===s&&++p===o&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(nr={focusedElem:e,selectionRange:n},Ut=!1,Xa=t;null!==Xa;)if(e=(t=Xa).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Xa=e;else for(;null!==Xa;){t=Xa;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,C=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:vi(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(b){Su(t,t.return,b)}if(null!==(e=t.sibling)){e.return=t.return,Xa=e;break}Xa=t.return}g=tl,tl=!1}(e,n),ml(n,e),go(nr),Ut=!!tr,nr=tr=null,e.current=n,yl(n,e,r),Qe(),Tl=l,Ct=a,Pl.transition=s}else e.current=n;if(ql&&(ql=!1,Zl=e,Yl=r),0===(s=e.pendingLanes)&&(Kl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ou(e,$e()),null!==t)for(o=e.onRecoverableError,n=0;n<t.length;n++)o((r=t[n]).value,{componentStack:r.stack,digest:r.digest});if(Ul)throw Ul=!1,e=zl,zl=null,e;0!==(1&Yl)&&0!==e.tag&&_u(),0!==(1&(s=e.pendingLanes))?e===$l?Ql++:(Ql=0,$l=e):Ql=0,Br()}(e,t,n,o)}finally{Pl.transition=r,Ct=o}return null}function _u(){if(null!==Zl){var e=wt(Yl),t=Pl.transition,n=Ct;try{if(Pl.transition=null,Ct=16>e?16:e,null===Zl)var o=!1;else{if(e=Zl,Zl=null,Yl=0,0!==(6&Tl))throw Error(i(331));var r=Tl;for(Tl|=4,Xa=e.current;null!==Xa;){var s=Xa,a=s.child;if(0!==(16&Xa.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xa=c;null!==Xa;){var p=Xa;switch(p.tag){case 0:case 11:case 15:nl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Xa=d;else for(;null!==Xa;){var h=(p=Xa).sibling,f=p.return;if(il(p),p===c){Xa=null;break}if(null!==h){h.return=f,Xa=h;break}Xa=f}}}var g=s.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Xa=s}}if(0!==(2064&s.subtreeFlags)&&null!==a)a.return=s,Xa=a;else e:for(;null!==Xa;){if(0!==(2048&(s=Xa).flags))switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,Xa=y;break e}Xa=s.return}}var C=e.current;for(Xa=C;null!==Xa;){var w=(a=Xa).child;if(0!==(2064&a.subtreeFlags)&&null!==w)w.return=a,Xa=w;else e:for(a=C;null!==Xa;){if(0!==(2048&(l=Xa).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(_){Su(l,l.return,_)}if(l===a){Xa=null;break e}var b=l.sibling;if(null!==b){b.return=l.return,Xa=b;break e}Xa=l.return}}if(Tl=r,Br(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(rt,e)}catch(_){}o=!0}return o}finally{Ct=n,Pl.transition=t}}return!1}function Eu(e,t,n){e=Mi(e,t=fa(0,t=ca(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ou(e,t))}function Su(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof o.componentDidCatch&&(null===Kl||!Kl.has(o))){t=Mi(t,e=ga(t,e=ca(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function Ru(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,xl===e&&(Dl&n)===n&&(4===Il||3===Il&&(130023424&Dl)===Dl&&500>$e()-jl?du(e,0):Gl|=n),ou(e,t)}function Ou(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Ai(e,t))&&(vt(e,t,n),ou(e,n))}function Pu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Tu(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(i(314))}null!==o&&o.delete(t),Ou(e,n)}function xu(e,t){return qe(e,t)}function Au(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,o){return new Au(e,t,n,o)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lu(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Iu(e,t,n,o,r,s){var a=2;if(o=e,"function"===typeof e)Nu(e)&&(a=1);else if("string"===typeof e)a=5;else e:switch(e){case E:return Mu(n.children,r,s,t);case S:a=8,r|=8;break;case R:return(e=Du(12,n,t,2|r)).elementType=R,e.lanes=s,e;case x:return(e=Du(13,n,t,r)).elementType=x,e.lanes=s,e;case A:return(e=Du(19,n,t,r)).elementType=A,e.lanes=s,e;case L:return Fu(n,r,s,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case O:a=10;break e;case P:a=9;break e;case T:a=11;break e;case D:a=14;break e;case N:a=16,o=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Du(a,n,t,r)).elementType=e,t.type=o,t.lanes=s,t}function Mu(e,t,n,o){return(e=Du(7,e,o,t)).lanes=n,e}function Fu(e,t,n,o){return(e=Du(22,e,o,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function ku(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function Gu(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hu(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Vu(e,t,n,o,r,i,s,a,l){return e=new Hu(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Du(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ni(i),e}function ju(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}function Wu(e){if(!e)return Tr;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Lr(n))return Fr(e,n,t)}return t}function Bu(e,t,n,o,r,i,s,a,l){return(e=Vu(n,o,!0,e,0,i,0,a,l)).context=Wu(null),n=e.current,(i=Ii(o=eu(),r=tu(n))).callback=void 0!==t&&null!==t?t:null,Mi(n,i,r),e.current.lanes=r,vt(e,r,o),ou(e,o),e}function Uu(e,t,n,o){var r=t.current,i=eu(),s=tu(r);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ii(i,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Mi(r,t,s))&&(nu(e,r,s,i),Fi(e,r,s)),s}function zu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ar.current)wa=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return wa=!1,function(e,t,n){switch(t.tag){case 3:Aa(t),fi();break;case 5:ss(t);break;case 1:Lr(t.type)&&kr(t);break;case 4:rs(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,r=t.memoizedProps.value;Pr(yi,o._currentValue),o._currentValue=r;break;case 13:if(null!==(o=t.memoizedState))return null!==o.dehydrated?(Pr(ls,1&ls.current),t.flags|=128,null):0!==(n&t.child.childLanes)?ka(e,t,n):(Pr(ls,1&ls.current),null!==(e=Ua(e,t,n))?e.sibling:null);Pr(ls,1&ls.current);break;case 19:if(o=0!==(n&t.childLanes),0!==(128&e.flags)){if(o)return Wa(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Pr(ls,ls.current),o)break;return null;case 22:case 23:return t.lanes=0,Ra(e,t,n)}return Ua(e,t,n)}(e,t,n);wa=0!==(131072&e.flags)}else wa=!1,ii&&0!==(1048576&t.flags)&&ei(t,qr,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ba(e,t),e=t.pendingProps;var r=Nr(t,xr.current);Ri(t,n),r=Ss(null,t,o,e,r,n);var s=Rs();return t.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lr(o)?(s=!0,kr(t)):s=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Ni(t),r.updater=Wi,t.stateNode=r,r._reactInternals=t,Ki(t,o,e,n),t=xa(null,t,o,!0,s,n)):(t.tag=0,ii&&s&&ti(t),ba(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Ba(e,t),e=t.pendingProps,o=(r=o._init)(o._payload),t.type=o,r=t.tag=function(e){if("function"===typeof e)return Nu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===D)return 14}return 2}(o),e=vi(o,e),r){case 0:t=Pa(null,t,o,e,n);break e;case 1:t=Ta(null,t,o,e,n);break e;case 11:t=_a(null,t,o,e,n);break e;case 14:t=Ea(null,t,o,vi(o.type,e),n);break e}throw Error(i(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,Pa(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 1:return o=t.type,r=t.pendingProps,Ta(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 3:e:{if(Aa(t),null===e)throw Error(i(387));o=t.pendingProps,r=(s=t.memoizedState).element,Li(e,t),Gi(t,o,null,n);var a=t.memoizedState;if(o=a.element,s.isDehydrated){if(s={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Da(e,t,o,n,r=ca(Error(i(423)),t));break e}if(o!==r){t=Da(e,t,o,n,r=ca(Error(i(424)),t));break e}for(ri=cr(t.stateNode.containerInfo.firstChild),oi=t,ii=!0,si=null,n=Xi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),o===r){t=Ua(e,t,n);break e}ba(e,t,o,n)}t=t.child}return t;case 5:return ss(t),null===e&&ci(t),o=t.type,r=t.pendingProps,s=null!==e?e.memoizedProps:null,a=r.children,or(o,r)?a=null:null!==s&&or(o,s)&&(t.flags|=32),Oa(e,t),ba(e,t,a,n),t.child;case 6:return null===e&&ci(t),null;case 13:return ka(e,t,n);case 4:return rs(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=$i(t,null,o,n):ba(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,_a(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 7:return ba(e,t,t.pendingProps,n),t.child;case 8:case 12:return ba(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,s=t.memoizedProps,a=r.value,Pr(yi,o._currentValue),o._currentValue=a,null!==s)if(ao(s.value,a)){if(s.children===r.children&&!Ar.current){t=Ua(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===s.tag){(u=Ii(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Si(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Si(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}ba(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Ri(t,n),o=o(r=Oi(r)),t.flags|=1,ba(e,t,o,n),t.child;case 14:return r=vi(o=t.type,t.pendingProps),Ea(e,t,o,r=vi(o.type,r),n);case 15:return Sa(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:vi(o,r),Ba(e,t),t.tag=1,Lr(o)?(e=!0,kr(t)):e=!1,Ri(t,n),Ui(t,o,r),Ki(t,o,r,n),xa(null,t,o,!0,e,n);case 19:return Wa(e,t,n);case 22:return Ra(e,t,n)}throw Error(i(156,t.tag))};var Zu="function"===typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Qu(e){this._internalRoot=e}function $u(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,o,r){var i=n._reactRootContainer;if(i){var s=i;if("function"===typeof r){var a=r;r=function(){var e=zu(s);a.call(e)}}Uu(t,s,e,r)}else s=function(e,t,n,o,r){if(r){if("function"===typeof o){var i=o;o=function(){var e=zu(s);i.call(e)}}var s=Bu(t,o,e,0,null,!1,0,"",Ju);return e._reactRootContainer=s,e[gr]=s.current,Bo(8===e.nodeType?e.parentNode:e),cu(),s}for(;r=e.lastChild;)e.removeChild(r);if("function"===typeof o){var a=o;o=function(){var e=zu(l);a.call(e)}}var l=Vu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[gr]=l.current,Bo(8===e.nodeType?e.parentNode:e),cu((function(){Uu(t,l,n,o)})),l}(n,t,e,r,o);return zu(s)}Qu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Uu(e,t,null,null)},Qu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Uu(null,e,null,null)})),t[gr]=null}},Qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&kt(e)}},bt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(yt(t,1|n),ou(t,$e()),0===(6&Tl)&&(Wl=$e()+500,Br()))}break;case 13:cu((function(){var t=Ai(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),qu(e,1)}},_t=function(e){if(13===e.tag){var t=Ai(e,134217728);if(null!==t)nu(t,e,134217728,eu());qu(e,134217728)}},Et=function(e){if(13===e.tag){var t=tu(e),n=Ai(e,t);if(null!==n)nu(n,e,t,eu());qu(e,t)}},St=function(){return Ct},Rt=function(e,t){var n=Ct;try{return Ct=e,t()}finally{Ct=n}},_e=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=_r(o);if(!r)throw Error(i(90));q(o),X(o,r)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=uu,xe=cu;var tc={usingClientEntryPoint:!1,Events:[wr,br,_r,Oe,Pe,uu]},nc={findFiberByHostInstance:Cr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},oc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ze(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{rt=rc.inject(oc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$u(t))throw Error(i(200));return ju(e,t,null,n)},t.createRoot=function(e,t){if(!$u(e))throw Error(i(299));var n=!1,o="",r=Zu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Vu(e,1,!1,null,0,n,0,o,r),e[gr]=t.current,Bo(8===e.nodeType?e.parentNode:e),new Yu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=ze(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!$u(e))throw Error(i(405));var o=null!=n&&n.hydratedSources||null,r=!1,s="",a=Zu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Bu(t,null,e,1,null!=n?n:null,r,0,s,a),e[gr]=t.current,Bo(e),o)for(e=0;e<o.length;e++)r=(r=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Qu(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[gr]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Xu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,o)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var o=n(4164);t.createRoot=o.createRoot,t.hydrateRoot=o.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},8340:function(e,t,n){"use strict";var o,r;o=n(1071),r=n(4424),t.version=o.version,t.renderToString=o.renderToString,t.renderToStaticMarkup=o.renderToStaticMarkup,t.renderToNodeStream=o.renderToNodeStream,t.renderToStaticNodeStream=o.renderToStaticNodeStream,t.renderToReadableStream=r.renderToReadableStream},1372:function(e,t){"use strict";var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case a:case s:case d:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case g:case f:case l:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===a||e===s||e===d||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},7441:function(e,t,n){"use strict";e.exports=n(1372)},3688:function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?a="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,u="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:function(){return s}}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},2240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(2791),s=f(i),a=f(n(4164)),l=f(n(2007)),u=f(n(4334)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5858)),p=n(3663),d=f(p),h=n(3688);function f(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var v=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",C=p.canUseDOM&&void 0!==a.default.createPortal,w=function(e){return document.createElement(e)},b=function(){return C?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function _(e){return e()}var E=function(e){function t(){var e,n,r;g(this,t);for(var i=arguments.length,l=Array(i),c=0;c<i;c++)l[c]=arguments[c];return n=r=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.removePortal=function(){!C&&a.default.unmountComponentAtNode(r.node);var e=_(r.props.parentSelector);e&&e.contains(r.node)?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=b()(r,s.default.createElement(u.default,o({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},m(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){p.canUseDOM&&(C||(this.node=w("div")),this.node.className=this.props.portalClassName,_(this.props.parentSelector).appendChild(this.node),!C&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:_(e.parentSelector),nextParent:_(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(p.canUseDOM){var o=this.props,r=o.isOpen,i=o.portalClassName;e.portalClassName!==i&&(this.node.className=i);var s=n.prevParent,a=n.nextParent;a!==s&&(s.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||r)&&!C&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(p.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return p.canUseDOM&&C?(!this.node&&C&&(this.node=w("div")),b()(s.default.createElement(u.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(i.Component);E.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(d.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(d.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},E.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},E.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(E),t.default=E},4334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(2791),a=m(n(2007)),l=g(n(8844)),u=m(n(870)),c=g(n(5858)),p=g(n(4942)),d=n(3663),h=m(d),f=m(n(8484));function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}n(5670);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,C=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&p.remove(document.body,i),r&&p.remove(document.getElementsByTagName("html")[0],r),o&&y>0&&0===(y-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===("undefined"===typeof t?"undefined":r(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"===typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName;r&&p.add(document.body,r),o&&p.add(document.getElementsByTagName("html")[0],o),n&&(y+=1,c.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=o({id:t,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),p=this.props.contentElement(c,s);return this.props.overlayElement(u,p)}}]),t}(s.Component);C.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},C.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(h.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(h.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=C,e.exports=t.default},5858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")})));a=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"===typeof t&&s.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=u(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){r.value.setAttribute("aria-hidden","true")}}catch(s){n=!0,o=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=u(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){r.value.removeAttribute("aria-hidden")}}catch(s){n=!0,o=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=n(2391),i=(o=r)&&o.__esModule?o:{default:o},s=n(3663);var a=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},5670:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[s,a],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}s=a=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[s,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,r=n(8484),i=(o=r)&&o.__esModule?o:{default:o};var s=void 0,a=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe((function(e,t){s||a||((s=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),s.style.position="absolute",s.style.opacity="0",s.setAttribute("tabindex","0"),s.addEventListener("focus",u),(a=s.cloneNode()).addEventListener("focus",u)),(l=t).length>0?(document.body.firstChild!==s&&document.body.insertBefore(s,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(s.parentElement&&s.parentElement.removeChild(s),a.parentElement&&a.parentElement.removeChild(a))}))},4942:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var s in o)r(i,o[s]);n={},o={}},t.log=function(){0};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},8844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s=[]},t.log=function(){0},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){s.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==s.length&&(t=s.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){s.length>0&&s.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var o,r=n(9750),i=(o=r)&&o.__esModule?o:{default:o};var s=[],a=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()}),0)}}},8484:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},3663:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=n(2618);var i=((o=r)&&o.__esModule?o:{default:o}).default,s=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=s},870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var o=void 0,r=t.shiftKey,a=n[0],l=n[n.length-1],u=s();if(e===u){if(!r)return;o=l}l!==u||r||(o=a);a===u&&r&&(o=l);if(o)return t.preventDefault(),void o.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var p=n.indexOf(u);p>-1&&(p+=r?-1:1);if("undefined"===typeof(o=n[p]))return t.preventDefault(),void(o=r?l:a).focus();t.preventDefault(),o.focus()};var o,r=n(9750),i=(o=r)&&o.__esModule?o:{default:o};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?s(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},9750:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(i)};var n=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(o){return console.warn("Failed to inspect element style"),!1}}function r(e,t){var r=e.nodeName.toLowerCase();return(n.test(r)&&!e.disabled||"a"===r&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),o(t))return!1;t=t.parentNode}return!0}(e)}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&r(e,!n)}e.exports=t.default},7948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(2240),i=(o=r)&&o.__esModule?o:{default:o};t.default=i.default,e.exports=t.default},5590:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var o=n(4578),r=n(8846),i=n(1985),s=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,o.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(r.l))},5708:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return o.S}});var o=n(7161),r=n(5044);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useMutation")&&n.d(t,{useMutation:function(){return r.useMutation}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}})},209:function(e,t,n){"use strict";n.d(t,{E:function(){return i},j:function(){return r}});var o=console;function r(){return o}function i(e){o=e}},1909:function(e,t,n){"use strict";n.d(t,{R:function(){return u},m:function(){return l}});var o=n(7462),r=n(209),i=n(2363),s=n(6350),a=n(1985),l=function(){function e(e){this.options=(0,o.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||u(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(a.ZT).catch(a.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,o=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),o.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,r.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new s.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,o.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,o.Z)({},e,{isPaused:!0});case"continue":return(0,o.Z)({},e,{isPaused:!1});case"loading":return(0,o.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,o.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,o.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,o.Z)({},e,t.state);default:return e}}(this.state,e),i.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function u(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},2363:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var o=n(1985),r=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,o.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t.schedule((function(){e.apply(void 0,o)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,o.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),i=new r},5503:function(e,t,n){"use strict";n.d(t,{N:function(){return s}});var o=n(4578),r=n(8846),i=n(1985),s=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,o.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},t}(r.l))},7161:function(e,t,n){"use strict";n.d(t,{S:function(){return y}});var o=n(7462),r=n(1985),i=n(4578),s=n(2363),a=n(209),l=n(6350),u=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,o.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,r.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,o,i=this.state.data,s=(0,r.SE)(e,i);return(null==(n=(o=this.options).isDataEqual)?void 0:n.call(o,i,s))?s=i:!1!==this.options.structuralSharing&&(s=(0,r.Q$)(i,s)),this.dispatch({data:s,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),s},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(r.ZT).catch(r.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,r.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,o,i,s=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var u;return null==(u=this.retryer)||u.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var c=this.observers.find((function(e){return e.options.queryFn}));c&&this.setOptions(c.options)}var p=(0,r.mc)(this.queryKey),d=(0,r.G9)(),h={queryKey:p,pageParam:void 0,meta:this.meta};Object.defineProperty(h,"signal",{enumerable:!0,get:function(){if(d)return s.abortSignalConsumed=!0,d.signal}});var f,g,m={fetchOptions:t,options:this.options,queryKey:p,state:this.state,fetchFn:function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(h)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(f=this.options.behavior)||f.onFetch(m));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(o=m.fetchOptions)?void 0:o.meta))||this.dispatch({type:"fetch",meta:null==(g=m.fetchOptions)?void 0:g.meta});return this.retryer=new l.m4({fn:m.fetchFn,abort:null==d||null==(i=d.abort)?void 0:i.bind(d),onSuccess:function(e){s.setData(e),null==s.cache.config.onSuccess||s.cache.config.onSuccess(e,s),0===s.cacheTime&&s.optionalRemove()},onError:function(e){(0,l.DV)(e)&&e.silent||s.dispatch({type:"error",error:e}),(0,l.DV)(e)||(null==s.cache.config.onError||s.cache.config.onError(e,s),(0,a.j)().error(e)),0===s.cacheTime&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),s.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof e.initialData?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,o="undefined"!==typeof t;return{data:t,dataUpdateCount:0,dataUpdatedAt:o?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:o?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return(0,o.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,o.Z)({},e,{isPaused:!0});case"continue":return(0,o.Z)({},e,{isPaused:!1});case"fetch":return(0,o.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,o.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;return(0,l.DV)(i)&&i.revert&&this.revertState?(0,o.Z)({},this.revertState):(0,o.Z)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,o.Z)({},e,{isInvalidated:!0});case"setState":return(0,o.Z)({},e,t.state);default:return e}},e}(),c=n(8846),p=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,i.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var o,i=t.queryKey,s=null!=(o=t.queryHash)?o:(0,r.Rm)(i,t),a=this.get(s);return a||(a=new u({cache:this,queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(a)),a},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;s.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,r.I6)(e,t)[0];return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,r._x)(n,e)}))},n.findAll=function(e,t){var n=(0,r.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return(0,r._x)(n,e)})):this.queries},n.notify=function(e){var t=this;s.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;s.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;s.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(c.l),d=n(1909),h=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,i.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var o=new d.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(o),o},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;s.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,r.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,r.X7)(e,t)}))},n.notify=function(e){var t=this;s.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return s.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(r.ZT)}))}),Promise.resolve())}))},t}(c.l),f=n(5590),g=n(5503);function m(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function v(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new p,this.mutationCache=e.mutationCache||new h,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=f.j.subscribe((function(){f.j.isFocused()&&g.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=g.N.subscribe((function(){f.j.isFocused()&&g.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,r.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,o.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var o=(0,r._v)(e),i=this.defaultQueryOptions(o);return this.queryCache.build(this,i).setData(t,n)},t.setQueriesData=function(e,t,n){var o=this;return s.V.batch((function(){return o.getQueryCache().findAll(e).map((function(e){var r=e.queryKey;return[r,o.setQueryData(r,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,r.I6)(e,t)[0],o=this.queryCache;s.V.batch((function(){o.findAll(n).forEach((function(e){o.remove(e)}))}))},t.resetQueries=function(e,t,n){var i=this,a=(0,r.I6)(e,t,n),l=a[0],u=a[1],c=this.queryCache,p=(0,o.Z)({},l,{active:!0});return s.V.batch((function(){return c.findAll(l).forEach((function(e){e.reset()})),i.refetchQueries(p,u)}))},t.cancelQueries=function(e,t,n){var o=this,i=(0,r.I6)(e,t,n),a=i[0],l=i[1],u=void 0===l?{}:l;"undefined"===typeof u.revert&&(u.revert=!0);var c=s.V.batch((function(){return o.queryCache.findAll(a).map((function(e){return e.cancel(u)}))}));return Promise.all(c).then(r.ZT).catch(r.ZT)},t.invalidateQueries=function(e,t,n){var i,a,l,u=this,c=(0,r.I6)(e,t,n),p=c[0],d=c[1],h=(0,o.Z)({},p,{active:null==(i=null!=(a=p.refetchActive)?a:p.active)||i,inactive:null!=(l=p.refetchInactive)&&l});return s.V.batch((function(){return u.queryCache.findAll(p).forEach((function(e){e.invalidate()})),u.refetchQueries(h,d)}))},t.refetchQueries=function(e,t,n){var i=this,a=(0,r.I6)(e,t,n),l=a[0],u=a[1],c=s.V.batch((function(){return i.queryCache.findAll(l).map((function(e){return e.fetch(void 0,(0,o.Z)({},u,{meta:{refetchPage:null==l?void 0:l.refetchPage}}))}))})),p=Promise.all(c).then(r.ZT);return(null==u?void 0:u.throwOnError)||(p=p.catch(r.ZT)),p},t.fetchQuery=function(e,t,n){var o=(0,r._v)(e,t,n),i=this.defaultQueryOptions(o);"undefined"===typeof i.retry&&(i.retry=!1);var s=this.queryCache.build(this,i);return s.isStaleByTime(i.staleTime)?s.fetch(i):Promise.resolve(s.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(r.ZT).catch(r.ZT)},t.fetchInfiniteQuery=function(e,t,n){var o=(0,r._v)(e,t,n);return o.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,o,i,s,a,u,c=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,p=null==(o=e.fetchOptions)||null==(i=o.meta)?void 0:i.fetchMore,d=null==p?void 0:p.pageParam,h="forward"===(null==p?void 0:p.direction),f="backward"===(null==p?void 0:p.direction),g=(null==(s=e.state.data)?void 0:s.pages)||[],y=(null==(a=e.state.data)?void 0:a.pageParams)||[],C=(0,r.G9)(),w=null==C?void 0:C.signal,b=y,_=!1,E=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},S=function(e,t,n,o){return b=o?[t].concat(b):[].concat(b,[t]),o?[n].concat(e):[].concat(e,[n])},R=function(t,n,o,r){if(_)return Promise.reject("Cancelled");if("undefined"===typeof o&&!n&&t.length)return Promise.resolve(t);var i={queryKey:e.queryKey,signal:w,pageParam:o,meta:e.meta},s=E(i),a=Promise.resolve(s).then((function(e){return S(t,o,e,r)}));return(0,l.LE)(s)&&(a.cancel=s.cancel),a};if(g.length)if(h){var O="undefined"!==typeof d,P=O?d:m(e.options,g);u=R(g,O,P)}else if(f){var T="undefined"!==typeof d,x=T?d:v(e.options,g);u=R(g,T,x,!0)}else!function(){b=[];var t="undefined"===typeof e.options.getNextPageParam,n=!c||!g[0]||c(g[0],0,g);u=n?R([],t,y[0]):Promise.resolve(S([],y[0],g[0]));for(var o=function(n){u=u.then((function(o){if(!c||!g[n]||c(g[n],n,g)){var r=t?y[n]:m(e.options,o);return R(o,t,r)}return Promise.resolve(S(o,y[n],g[n]))}))},r=1;r<g.length;r++)o(r)}();else u=R([]);var A=u.then((function(e){return{pages:e,pageParams:b}}));return A.cancel=function(){_=!0,null==C||C.abort(),(0,l.LE)(u)&&u.cancel()},A}}},this.fetchQuery(o)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(r.ZT).catch(r.ZT)},t.cancelMutations=function(){var e=this,t=s.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(r.ZT).catch(r.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,r.yF)(e)===(0,r.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,r.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,r.yF)(e)===(0,r.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,r.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,o.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,r.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,o.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},6350:function(e,t,n){"use strict";n.d(t,{DV:function(){return u},LE:function(){return a},m4:function(){return c}});var o=n(5590),r=n(5503),i=n(1985);function s(e){return Math.min(1e3*Math.pow(2,e),3e4)}function a(e){return"function"===typeof(null==e?void 0:e.cancel)}var l=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function u(e){return e instanceof l}var c=function(e){var t,n,u,c,p=this,d=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){d=!0},this.continueRetry=function(){d=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){u=e,c=t}));var h=function(t){p.isResolved||(p.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),u(t))},f=function(t){p.isResolved||(p.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),c(t))};!function u(){if(!p.isResolved){var c;try{c=e.fn()}catch(g){c=Promise.reject(g)}t=function(e){if(!p.isResolved&&(f(new l(e)),null==p.abort||p.abort(),a(c)))try{c.cancel()}catch(t){}},p.isTransportCancelable=a(c),Promise.resolve(c).then(h).catch((function(t){var a,l;if(!p.isResolved){var c=null!=(a=e.retry)?a:3,h=null!=(l=e.retryDelay)?l:s,g="function"===typeof h?h(p.failureCount,t):h,m=!0===c||"number"===typeof c&&p.failureCount<c||"function"===typeof c&&c(p.failureCount,t);!d&&m?(p.failureCount++,null==e.onFail||e.onFail(p.failureCount,t),(0,i.Gh)(g).then((function(){if(!o.j.isFocused()||!r.N.isOnline())return new Promise((function(t){n=t,p.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,p.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){d?f(t):u()}))):f(t)}}))}}()}},8846:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var o=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},5044:function(){},1985:function(e,t,n){"use strict";n.d(t,{A4:function(){return R},G9:function(){return O},Gh:function(){return S},I6:function(){return d},Kp:function(){return u},PN:function(){return a},Q$:function(){return C},Rm:function(){return g},SE:function(){return s},VS:function(){return w},X7:function(){return f},ZT:function(){return i},_v:function(){return c},_x:function(){return h},lV:function(){return p},mc:function(){return l},sk:function(){return r},to:function(){return v},yF:function(){return m}});var o=n(7462),r="undefined"===typeof window;function i(){}function s(e,t){return"function"===typeof e?e(t):e}function a(e){return"number"===typeof e&&e>=0&&e!==1/0}function l(e){return Array.isArray(e)?e:[e]}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t,n){return E(e)?"function"===typeof t?(0,o.Z)({},n,{queryKey:e,queryFn:t}):(0,o.Z)({},t,{queryKey:e}):e}function p(e,t,n){return E(e)?"function"===typeof t?(0,o.Z)({},n,{mutationKey:e,mutationFn:t}):(0,o.Z)({},t,{mutationKey:e}):"function"===typeof e?(0,o.Z)({},t,{mutationFn:e}):(0,o.Z)({},e)}function d(e,t,n){return E(e)?[(0,o.Z)({},t,{queryKey:e}),n]:[e||{},t]}function h(e,t){var n=e.active,o=e.exact,r=e.fetching,i=e.inactive,s=e.predicate,a=e.queryKey,l=e.stale;if(E(a))if(o){if(t.queryHash!==g(a,t.options))return!1}else if(!v(t.queryKey,a))return!1;var u=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,i);if("none"===u)return!1;if("all"!==u){var c=t.isActive();if("active"===u&&!c)return!1;if("inactive"===u&&c)return!1}return("boolean"!==typeof l||t.isStale()===l)&&(("boolean"!==typeof r||t.isFetching()===r)&&!(s&&!s(t)))}function f(e,t){var n=e.exact,o=e.fetching,r=e.predicate,i=e.mutationKey;if(E(i)){if(!t.options.mutationKey)return!1;if(n){if(m(t.options.mutationKey)!==m(i))return!1}else if(!v(t.options.mutationKey,i))return!1}return("boolean"!==typeof o||"loading"===t.state.status===o)&&!(r&&!r(t))}function g(e,t){return((null==t?void 0:t.queryKeyHashFn)||m)(e)}function m(e){var t,n=l(e);return t=n,JSON.stringify(t,(function(e,t){return b(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function v(e,t){return y(l(e),l(t))}function y(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(n){return!y(e[n],t[n])})))}function C(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||b(e)&&b(t)){for(var o=n?e.length:Object.keys(e).length,r=n?t:Object.keys(t),i=r.length,s=n?[]:{},a=0,l=0;l<i;l++){var u=n?l:r[l];s[u]=C(e[u],t[u]),s[u]===e[u]&&a++}return o===i&&a===o?e:s}return t}function w(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function b(e){if(!_(e))return!1;var t=e.constructor;if("undefined"===typeof t)return!0;var n=t.prototype;return!!_(n)&&!!n.hasOwnProperty("isPrototypeOf")}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e){return"string"===typeof e||Array.isArray(e)}function S(e){return new Promise((function(t){setTimeout(t,e)}))}function R(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function O(){if("function"===typeof AbortController)return new AbortController}},1933:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return o.QueryClient},QueryClientProvider:function(){return r.QueryClientProvider},useMutation:function(){return r.useMutation},useQuery:function(){return r.useQuery}});var o=n(5708);n.o(o,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return o.QueryClientProvider}}),n.o(o,"useMutation")&&n.d(t,{useMutation:function(){return o.useMutation}}),n.o(o,"useQuery")&&n.d(t,{useQuery:function(){return o.useQuery}});var r=n(5704)},5704:function(e,t,n){"use strict";n.d(t,{QueryClientProvider:function(){return d},useMutation:function(){return w},useQuery:function(){return D}});var o=n(2363),r=n(4164).unstable_batchedUpdates;o.V.setBatchNotifyFunction(r);var i=n(209),s=console;(0,i.E)(s);var a=n(2791),l=a.createContext(void 0),u=a.createContext(!1);function c(e){return e&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var p=function(){var e=a.useContext(c(a.useContext(u)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},d=function(e){var t=e.client,n=e.contextSharing,o=void 0!==n&&n,r=e.children;a.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var i=c(o);return a.createElement(u.Provider,{value:o},a.createElement(i.Provider,{value:t},r))},h=n(7462),f=n(1985),g=n(4578),m=n(1909),v=n(8846),y=function(e){function t(t,n){var o;return(o=e.call(this)||this).client=t,o.setOptions(n),o.bindMethods(),o.updateResult(),o}(0,g.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,h.Z)({},this.options,{variables:"undefined"!==typeof e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,m.R)(),t=(0,h.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;o.V.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(v.l);function C(e,t,n){return"function"===typeof t?t.apply(void 0,n):"boolean"===typeof t?t:!!e}function w(e,t,n){var r=a.useRef(!1),i=a.useState(0)[1],s=(0,f.lV)(e,t,n),l=p(),u=a.useRef();u.current?u.current.setOptions(s):u.current=new y(l,s);var c=u.current.getCurrentResult();a.useEffect((function(){r.current=!0;var e=u.current.subscribe(o.V.batchCalls((function(){r.current&&i((function(e){return e+1}))})));return function(){r.current=!1,e()}}),[]);var d=a.useCallback((function(e,t){u.current.mutate(e,t).catch(f.ZT)}),[]);if(c.error&&C(void 0,u.current.options.useErrorBoundary,[c.error]))throw c.error;return(0,h.Z)({},c,{mutate:d,mutateAsync:c.mutate})}var b=n(5590),_=n(6350),E=function(e){function t(t,n){var o;return(o=e.call(this)||this).client=t,o.options=n,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(n),o}(0,g.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),S(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return R(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return R(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var r=this.hasListeners();r&&O(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!r||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var i=this.computeRefetchInterval();!r||this.currentQuery===o&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,o={},r=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!1,enumerable:!0,get:function(){return r(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&r("error"),o},n.getNextResult=function(e){var t=this;return new Promise((function(n,o){var r=t.subscribe((function(t){t.isFetching||(r(),t.isError&&(null==e?void 0:e.throwOnError)?o(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,h.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),o=this.client.getQueryCache().build(this.client,n);return o.fetch().then((function(){return t.createResult(o,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(f.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!f.sk&&!this.currentResult.isStale&&(0,f.PN)(this.options.staleTime)){var t=(0,f.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!f.sk&&!1!==this.options.enabled&&(0,f.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||b.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,o=this.currentQuery,r=this.options,s=this.currentResult,a=this.currentResultState,l=this.currentResultOptions,u=e!==o,c=u?e.state:this.currentQueryInitialState,p=u?this.currentResult:this.previousQueryResult,d=e.state,h=d.dataUpdatedAt,g=d.error,m=d.errorUpdatedAt,v=d.isFetching,y=d.status,C=!1,w=!1;if(t.optimisticResults){var b=this.hasListeners(),_=!b&&S(e,t),E=b&&O(e,o,t,r);(_||E)&&(v=!0,h||(y="loading"))}if(t.keepPreviousData&&!d.dataUpdateCount&&(null==p?void 0:p.isSuccess)&&"error"!==y)n=p.data,h=p.dataUpdatedAt,y=p.status,C=!0;else if(t.select&&"undefined"!==typeof d.data)if(s&&d.data===(null==a?void 0:a.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),!1!==t.structuralSharing&&(n=(0,f.Q$)(null==s?void 0:s.data,n)),this.selectResult=n,this.selectError=null}catch(T){(0,i.j)().error(T),this.selectError=T}else n=d.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof n&&("loading"===y||"idle"===y)){var R;if((null==s?void 0:s.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))R=s.data;else if(R="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof R)try{R=t.select(R),!1!==t.structuralSharing&&(R=(0,f.Q$)(null==s?void 0:s.data,R)),this.selectError=null}catch(T){(0,i.j)().error(T),this.selectError=T}"undefined"!==typeof R&&(y="success",n=R,w=!0)}return this.selectError&&(g=this.selectError,n=this.selectResult,m=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:n,dataUpdatedAt:h,error:g,errorUpdatedAt:m,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&"loading"!==y,isLoadingError:"error"===y&&0===d.dataUpdatedAt,isPlaceholderData:w,isPreviousData:C,isRefetchError:"error"===y&&0!==d.dataUpdatedAt,isStale:P(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,o=n.notifyOnChangeProps,r=n.notifyOnChangePropsExclusions;if(!o&&!r)return!0;if("tracked"===o&&!this.trackedProps.length)return!0;var i="tracked"===o?this.trackedProps:o;return Object.keys(e).some((function(n){var o=n,s=e[o]!==t[o],a=null==i?void 0:i.some((function(e){return e===n})),l=null==r?void 0:r.some((function(e){return e===n}));return s&&!l&&(!i||a)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,f.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,h.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,_.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;o.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(v.l);function S(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&R(e,t,t.refetchOnMount)}function R(e,t,n){if(!1!==t.enabled){var o="function"===typeof n?n(e):n;return"always"===o||!1!==o&&P(e,t)}return!1}function O(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&P(e,n)}function P(e,t){return e.isStaleByTime(t.staleTime)}function T(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var x=a.createContext(T());function A(e,t){var n=a.useRef(!1),r=a.useState(0)[1],i=p(),s=a.useContext(x),l=i.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=o.V.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=o.V.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=o.V.batchCalls(l.onSettled)),l.suspense&&("number"!==typeof l.staleTime&&(l.staleTime=1e3),0===l.cacheTime&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(s.isReset()||(l.retryOnMount=!1));var u=a.useState((function(){return new t(i,l)}))[0],c=u.getOptimisticResult(l);if(a.useEffect((function(){n.current=!0,s.clearReset();var e=u.subscribe(o.V.batchCalls((function(){n.current&&r((function(e){return e+1}))})));return u.updateResult(),function(){n.current=!1,e()}}),[s,u]),a.useEffect((function(){u.setOptions(l,{listeners:!1})}),[l,u]),l.suspense&&c.isLoading)throw u.fetchOptimistic(l).then((function(e){var t=e.data;null==l.onSuccess||l.onSuccess(t),null==l.onSettled||l.onSettled(t,null)})).catch((function(e){s.clearReset(),null==l.onError||l.onError(e),null==l.onSettled||l.onSettled(void 0,e)}));if(c.isError&&!s.isReset()&&!c.isFetching&&C(l.suspense,l.useErrorBoundary,[c.error,u.getCurrentQuery()]))throw c.error;return"tracked"===l.notifyOnChangeProps&&(c=u.trackResult(c,l)),c}function D(e,t,n){return A((0,f._v)(e,t,n),E)}},1016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,s=n(6722),a=(i=s)&&i.__esModule?i:{default:i},l=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=o(t,2),i=n[0],s=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var u=n.map((function(e){return i[e]})).filter(l);return"string"===typeof u[0]||"function"===typeof s?{key:e,className:s?s.apply(void 0,r(u)):u.join(" ")}:{key:e,style:a.default.apply(void 0,[{}].concat(r(u)))}}},e.exports=t.default},6722:function(e){"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var r,i,s=n(e),a=1;a<arguments.length;a++){r=arguments[a],i=o(Object(r));for(var l=0;l<i.length;l++)s[i[l]]=r[i[l]]}return s}},6374:function(e,t,n){"use strict";var o=n(2791),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var o,i={},u=null,c=null;for(o in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:u,ref:c,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function y(){}function C(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=C.prototype=new y;w.constructor=C,g(w,v.prototype),w.isPureReactComponent=!0;var b=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,o){var r,i={},s=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)_.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=o;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:E.current}}function O(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function x(e,t,r,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case o:l=!0}}if(l)return s=s(l=e),e=""===i?"."+T(l,0):i,b(s)?(r="",null!=e&&(r=e.replace(P,"$&/")+"/"),x(s,t,r,"",(function(e){return e}))):null!=s&&(O(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,r+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(P,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",b(e))for(var u=0;u<e.length;u++){var c=i+T(a=e[u],u);l+=x(a,t,r,c,s)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=x(a=a.value,t,r,c=i+T(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var o=[],r=0;return x(e,o,"","",(function(e){return t.call(n,e,r++)})),o}function D(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},L={transition:null},I={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:L,ReactCurrentOwner:E};t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=s,t.PureComponent=C,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,o){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)_.call(t,u)&&!S.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=o;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:r,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var o=n-1>>>1,r=e[o];if(!(0<i(r,t)))break e;e[o]=t,e[n]=r,n=o}}function o(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length,s=r>>>1;o<s;){var a=2*(o+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<r&&0>i(c,l)?(e[o]=c,e[u]=n,o=u):(e[o]=l,e[a]=n,o=a);else{if(!(u<r&&0>i(c,n)))break e;e[o]=c,e[u]=n,o=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,C="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=o(c);null!==t;){if(null===t.callback)r(c);else{if(!(t.startTime<=e))break;r(c),t.sortIndex=t.expirationTime,n(u,t)}t=o(c)}}function b(e){if(m=!1,w(e),!g)if(null!==o(u))g=!0,L(_);else{var t=o(c);null!==t&&I(b,t.startTime-e)}}function _(e,n){g=!1,m&&(m=!1,y(O),O=-1),f=!0;var i=h;try{for(w(n),d=o(u);null!==d&&(!(d.expirationTime>n)||e&&!x());){var s=d.callback;if("function"===typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof a?d.callback=a:d===o(u)&&r(u),w(n)}else r(u);d=o(u)}if(null!==d)var l=!0;else{var p=o(c);null!==p&&I(b,p.startTime-n),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,R=null,O=-1,P=5,T=-1;function x(){return!(t.unstable_now()-T<P)}function A(){if(null!==R){var e=t.unstable_now();T=e;var n=!0;try{n=R(!0,e)}finally{n?E():(S=!1,R=null)}}else S=!1}if("function"===typeof C)E=function(){C(A)};else if("undefined"!==typeof MessageChannel){var D=new MessageChannel,N=D.port2;D.port1.onmessage=A,E=function(){N.postMessage(null)}}else E=function(){v(A,0)};function L(e){R=e,S||(S=!0,E())}function I(e,n){O=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||f||(g=!0,L(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return o(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,r,i){var s=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:r,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===o(u)&&e===o(c)&&(m?(y(O),O=-1):m=!0,I(b,i-s))):(e.sortIndex=a,n(u,e),g||f||(g=!0,L(_))),e},t.unstable_shouldYield=x,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},5201:function(e){"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,o=e.multiSection;function r(e){var r=t(e,2),i=r[0],s=r[1];return o?null===s||s===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,s+1]:0===n||s===n-1?[null,null]:null===s?[null,0]:[null,s+1]}return{next:r,prev:function(e){var r=t(e,2),i=r[0],s=r[1];return o?null===s||0===s?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,s-1]:0===n||0===s?[null,null]:null===s?[null,n-1]:[null,s-1]},isLast:function(e){return null===r(e)[1]}}}},1511:function(e){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}},9613:function(e){e.exports=function(e,t,n,o){var r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!a(u))return!1;var c=e[u],p=t[u];if(!1===(r=n?n.call(o,c,p,u):void 0)||void 0===r&&c!==p)return!1}return!0}},2391:function(e){"use strict";var t=function(){};e.exports=t},7462:function(e,t,n){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{Z:function(){return o}})},4578:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9611);function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,o.Z)(e,t)}},9611:function(e,t,n){"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}n.d(t,{Z:function(){return o}})}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,o){return n.f[o](e,t),t}),[]))},n.u=function(e){return"files/static/js/"+e+".9d42efaa.chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="server-admin:";n.l=function(o,r,i,s){if(e[o])e[o].push(r);else{var a,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var p=u[c];if(p.getAttribute("src")==o||p.getAttribute("data-webpack")==t+i){a=p;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=o),e[o]=[r];var d=function(t,n){a.onerror=a.onload=null,clearTimeout(h);var r=e[o];if(delete e[o],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){var e={179:0};n.f.j=function(t,o){var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var i=new Promise((function(n,o){r=e[t]=[n,o]}));o.push(r[2]=i);var s=n.p+n.u(t),a=new Error;n.l(s,(function(o){if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,o){var r,i,s=o[0],a=o[1],l=o[2],u=0;if(s.some((function(t){return 0!==e[t]}))){for(r in a)n.o(a,r)&&(n.m[r]=a[r]);if(l)l(n)}for(t&&t(o);u<s.length;u++)i=s[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkserver_admin=self.webpackChunkserver_admin||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}(),function(){"use strict";var e={};function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function o(e,n){if(e){if("string"===typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(e),n.d(e,{FormButton:function(){return Oo},FormError:function(){return Do},FormErrorList:function(){return No},FormInput:function(){return To},FormLabel:function(){return Po},FormOption:function(){return Ao},FormSelect:function(){return xo},FormTail:function(){return Lo},StyledForm:function(){return So},StyledFormItem:function(){return Ro}});var i,s=n(2791),a=n(7462);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));var l=function(e){return e};var u="beforeunload",c="popstate";function p(e){e.preventDefault(),e.returnValue=""}function d(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function h(){return Math.random().toString(36).substr(2,8)}function f(e){var t=e.pathname,n=void 0===t?"/":t,o=e.search,r=void 0===o?"":o,i=e.hash,s=void 0===i?"":i;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function g(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}var m=(0,s.createContext)(null);var v=(0,s.createContext)(null);var y=(0,s.createContext)({outlet:null,matches:[]});function C(e,t){if(!e)throw new Error(t)}function w(e,t,n){void 0===n&&(n="/");var o=T(("string"===typeof t?g(t):t).pathname||"/",n);if(null==o)return null;var r=b(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(r);for(var i=null,s=0;null==i&&s<r.length;++s)i=R(r[s],o);return i}function b(e,t,n,o){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===o&&(o=""),e.forEach((function(e,r){var i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(o)||C(!1),i.relativePath=i.relativePath.slice(o.length));var s=x([o,i.relativePath]),a=n.concat(i);e.children&&e.children.length>0&&(!0===e.index&&C(!1),b(e.children,t,a,s)),(null!=e.path||e.index)&&t.push({path:s,score:S(s,e.index),routesMeta:a})})),t}var _=/^:\w+$/,E=function(e){return"*"===e};function S(e,t){var n=e.split("/"),o=n.length;return n.some(E)&&(o+=-2),t&&(o+=2),n.filter((function(e){return!E(e)})).reduce((function(e,t){return e+(_.test(t)?3:""===t?1:10)}),o)}function R(e,t){for(var n=e.routesMeta,o={},r="/",i=[],s=0;s<n.length;++s){var a=n[s],l=s===n.length-1,u="/"===r?t:t.slice(r.length)||"/",c=O({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u);if(!c)return null;Object.assign(o,c.params);var p=a.route;i.push({params:o,pathname:x([r,c.pathname]),pathnameBase:A(x([r,c.pathnameBase])),route:p}),"/"!==c.pathnameBase&&(r=x([r,c.pathnameBase]))}return i}function O(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);var o=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return o.push(t),"([^\\/]+)"}));e.endsWith("*")?(o.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(r,t?void 0:"i"),o]}(e.path,e.caseSensitive,e.end),o=r(n,2),i=o[0],s=o[1],a=t.match(i);if(!a)return null;var l=a[0],u=l.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:s.reduce((function(e,t,n){if("*"===t){var o=c[n]||"";u=l.slice(0,l.length-o.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return e}}(c[n]||""),e}),{}),pathname:l,pathnameBase:u,pattern:e}}function P(e,t,n){var o,r="string"===typeof e?g(e):e,i=""===e||""===r.pathname?"/":r.pathname;if(null==i)o=n;else{var s=t.length-1;if(i.startsWith("..")){for(var a=i.split("/");".."===a[0];)a.shift(),s-=1;r.pathname=a.join("/")}o=s>=0?t[s]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?g(e):e,o=n.pathname,r=n.search,i=void 0===r?"":r,s=n.hash,a=void 0===s?"":s,l=o?o.startsWith("/")?o:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(o,t):t;return{pathname:l,search:D(i),hash:N(a)}}(r,o);return i&&"/"!==i&&i.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var x=function(e){return e.join("/").replace(/\/\/+/g,"/")},A=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},D=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},N=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function L(e){I()||C(!1);var t=(0,s.useContext)(m),n=t.basename,o=t.navigator,r=G(e),i=r.hash,a=r.pathname,l=r.search,u=a;if("/"!==n){var c=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?g(e).pathname:e.pathname}(e),p=null!=c&&c.endsWith("/");u="/"===a?n+(p?"/":""):x([n,a])}return o.createHref({pathname:u,search:l,hash:i})}function I(){return null!=(0,s.useContext)(v)}function M(){return I()||C(!1),(0,s.useContext)(v).location}function F(){I()||C(!1);var e=(0,s.useContext)(m),t=e.basename,n=e.navigator,o=(0,s.useContext)(y).matches,r=M().pathname,i=JSON.stringify(o.map((function(e){return e.pathnameBase}))),a=(0,s.useRef)(!1);(0,s.useEffect)((function(){a.current=!0}));var l=(0,s.useCallback)((function(e,o){if(void 0===o&&(o={}),a.current)if("number"!==typeof e){var s=P(e,JSON.parse(i),r);"/"!==t&&(s.pathname=x([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state)}else n.go(e)}),[t,n,i,r]);return l}var k=(0,s.createContext)(null);function G(e){var t=(0,s.useContext)(y).matches,n=M().pathname,o=JSON.stringify(t.map((function(e){return e.pathnameBase})));return(0,s.useMemo)((function(){return P(e,JSON.parse(o),n)}),[e,o,n])}function H(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((function(n,o,r){return(0,s.createElement)(y.Provider,{children:void 0!==o.route.element?o.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,r+1))}})}),null)}function V(e){return function(e){var t=(0,s.useContext)(y).outlet;return t?(0,s.createElement)(k.Provider,{value:e},t):t}(e.context)}function j(e){C(!1)}function W(e){var t=e.basename,n=void 0===t?"/":t,o=e.children,r=void 0===o?null:o,a=e.location,l=e.navigationType,u=void 0===l?i.Pop:l,c=e.navigator,p=e.static,d=void 0!==p&&p;I()&&C(!1);var h=A(n),f=(0,s.useMemo)((function(){return{basename:h,navigator:c,static:d}}),[h,c,d]);"string"===typeof a&&(a=g(a));var y=a,w=y.pathname,b=void 0===w?"/":w,_=y.search,E=void 0===_?"":_,S=y.hash,R=void 0===S?"":S,O=y.state,P=void 0===O?null:O,x=y.key,D=void 0===x?"default":x,N=(0,s.useMemo)((function(){var e=T(b,h);return null==e?null:{pathname:e,search:E,hash:R,state:P,key:D}}),[h,b,E,R,P,D]);return null==N?null:(0,s.createElement)(m.Provider,{value:f},(0,s.createElement)(v.Provider,{children:r,value:{location:N,navigationType:u}}))}function B(e){var t=e.children,n=e.location;return function(e,t){I()||C(!1);var n,o=(0,s.useContext)(y).matches,r=o[o.length-1],i=r?r.params:{},a=(r&&r.pathname,r?r.pathnameBase:"/"),l=(r&&r.route,M());if(t){var u,c="string"===typeof t?g(t):t;"/"===a||(null==(u=c.pathname)?void 0:u.startsWith(a))||C(!1),n=c}else n=l;var p=n.pathname||"/",d=w(e,{pathname:"/"===a?p:p.slice(a.length)||"/"});return H(d&&d.map((function(e){return Object.assign({},e,{params:Object.assign({},i,e.params),pathname:x([a,e.pathname]),pathnameBase:"/"===e.pathnameBase?a:x([a,e.pathnameBase])})})),o)}(U(t),n)}function U(e){var t=[];return s.Children.forEach(e,(function(e){if((0,s.isValidElement)(e))if(e.type!==s.Fragment){e.type!==j&&C(!1);var n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=U(e.props.children)),t.push(n)}else t.push.apply(t,U(e.props.children))})),t}function z(){return z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},z.apply(this,arguments)}function K(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var q=["onClick","reloadDocument","replace","state","target","to"],Z=["aria-current","caseSensitive","className","end","style","to","children"];function Y(e){var t=e.basename,n=e.children,o=e.window,m=(0,s.useRef)();null==m.current&&(m.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,o=n.history;function r(){var e=n.location,t=e.pathname,r=e.search,i=e.hash,s=o.state||{};return[s.idx,l({pathname:t,search:r,hash:i,state:s.usr||null,key:s.key||"default"})]}var s=null;n.addEventListener(c,(function(){if(s)b.call(s),s=null;else{var e=i.Pop,t=r(),n=t[0],o=t[1];if(b.length){if(null!=n){var a=y-n;a&&(s={action:e,location:o,retry:function(){P(-1*a)}},P(a))}}else O(e)}}));var m=i.Pop,v=r(),y=v[0],C=v[1],w=d(),b=d();function _(e){return"string"===typeof e?e:f(e)}function E(e,t){return void 0===t&&(t=null),l((0,a.Z)({pathname:C.pathname,hash:"",search:""},"string"===typeof e?g(e):e,{state:t,key:h()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},_(e)]}function R(e,t,n){return!b.length||(b.call({action:e,location:t,retry:n}),!1)}function O(e){m=e;var t=r();y=t[0],C=t[1],w.call({action:m,location:C})}function P(e){o.go(e)}null==y&&(y=0,o.replaceState((0,a.Z)({},o.state,{idx:y}),""));var T={get action(){return m},get location(){return C},createHref:_,push:function e(t,r){var s=i.Push,a=E(t,r);if(R(s,a,(function(){e(t,r)}))){var l=S(a,y+1),u=l[0],c=l[1];try{o.pushState(u,"",c)}catch(p){n.location.assign(c)}O(s)}},replace:function e(t,n){var r=i.Replace,s=E(t,n);if(R(r,s,(function(){e(t,n)}))){var a=S(s,y),l=a[0],u=a[1];o.replaceState(l,"",u),O(r)}},go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(e){return w.push(e)},block:function(e){var t=b.push(e);return 1===b.length&&n.addEventListener(u,p),function(){t(),b.length||n.removeEventListener(u,p)}}};return T}({window:o}));var v=m.current,y=r((0,s.useState)({action:v.action,location:v.location}),2),C=y[0],w=y[1];return(0,s.useLayoutEffect)((function(){return v.listen(w)}),[v]),(0,s.createElement)(W,{basename:t,children:n,location:C.location,navigationType:C.action,navigator:v})}var Q=(0,s.forwardRef)((function(e,t){var n=e.onClick,o=e.reloadDocument,r=e.replace,i=void 0!==r&&r,a=e.state,l=e.target,u=e.to,c=K(e,q),p=L(u),d=function(e,t){var n=void 0===t?{}:t,o=n.target,r=n.replace,i=n.state,a=F(),l=M(),u=G(e);return(0,s.useCallback)((function(t){if(0===t.button&&(!o||"_self"===o)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!r||f(l)===f(u);a(e,{replace:n,state:i})}}),[l,a,u,r,i,o,e])}(u,{replace:i,state:a,target:l});return(0,s.createElement)("a",z({},c,{href:p,onClick:function(e){n&&n(e),e.defaultPrevented||o||d(e)},ref:t,target:l}))}));var $=(0,s.forwardRef)((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,r=e.caseSensitive,i=void 0!==r&&r,a=e.className,l=void 0===a?"":a,u=e.end,c=void 0!==u&&u,p=e.style,d=e.to,h=e.children,f=K(e,Z),g=M(),m=G(d),v=g.pathname,y=m.pathname;i||(v=v.toLowerCase(),y=y.toLowerCase());var C,w=v===y||!c&&v.startsWith(y)&&"/"===v.charAt(y.length),b=w?o:void 0;C="function"===typeof l?l({isActive:w}):[l,w?"active":null].filter(Boolean).join(" ");var _="function"===typeof p?p({isActive:w}):p;return(0,s.createElement)(Q,z({},f,{"aria-current":b,className:C,ref:t,style:_,to:d}),"function"===typeof h?h({isActive:w}):h)}));var X=n(1250),J=n(7441),ee=n(9613),te=n.n(ee);var ne=function(e){function t(e,o,l,u,d){for(var h,f,g,m,w,_=0,E=0,S=0,R=0,O=0,N=0,I=g=h=0,F=0,k=0,G=0,H=0,V=l.length,j=V-1,W="",B="",U="",z="";F<V;){if(f=l.charCodeAt(F),F===j&&0!==E+R+S+_&&(0!==E&&(f=47===E?10:47),R=S=_=0,V++,j++),0===E+R+S+_){if(F===j&&(0<k&&(W=W.replace(p,"")),0<W.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:W+=l.charAt(F)}f=59}switch(f){case 123:for(h=(W=W.trim()).charCodeAt(0),g=1,H=++F;F<V;){switch(f=l.charCodeAt(F)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(F+1)){case 42:case 47:e:{for(I=F+1;I<j;++I)switch(l.charCodeAt(I)){case 47:if(42===f&&42===l.charCodeAt(I-1)&&F+2!==I){F=I+1;break e}break;case 10:if(47===f){F=I+1;break e}}F=I}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<j&&l.charCodeAt(F)!==f;);}if(0===g)break;F++}if(g=l.substring(H,F),0===h&&(h=(W=W.replace(c,"").trim()).charCodeAt(0)),64===h){switch(0<k&&(W=W.replace(p,"")),f=W.charCodeAt(1)){case 100:case 109:case 115:case 45:k=o;break;default:k=D}if(H=(g=t(o,k,g,f,d+1)).length,0<L&&(w=a(3,g,k=n(D,W,G),o,T,P,H,f,d,u),W=k.join(""),void 0!==w&&0===(H=(g=w.trim()).length)&&(f=0,g="")),0<H)switch(f){case 115:W=W.replace(b,s);case 100:case 109:case 45:g=W+"{"+g+"}";break;case 107:g=(W=W.replace(v,"$1 $2"))+"{"+g+"}",g=1===A||2===A&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=W+g,112===u&&(B+=g,g="")}else g=""}else g=t(o,n(o,W,G),g,u,d+1);U+=g,g=G=k=I=h=0,W="",f=l.charCodeAt(++F);break;case 125:case 59:if(1<(H=(W=(0<k?W.replace(p,""):W).trim()).length))switch(0===I&&(h=W.charCodeAt(0),45===h||96<h&&123>h)&&(H=(W=W.replace(" ",":")).length),0<L&&void 0!==(w=a(1,W,o,e,T,P,B.length,u,d,u))&&0===(H=(W=w.trim()).length)&&(W="\0\0"),h=W.charCodeAt(0),f=W.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){z+=W+l.charAt(F);break}default:58!==W.charCodeAt(H-1)&&(B+=r(W,h,f,W.charCodeAt(2)))}G=k=I=h=0,W="",f=l.charCodeAt(++F)}}switch(f){case 13:case 10:47===E?E=0:0===1+h&&107!==u&&0<W.length&&(k=1,W+="\0"),0<L*M&&a(0,W,o,e,T,P,B.length,u,d,u),P=1,T++;break;case 59:case 125:if(0===E+R+S+_){P++;break}default:switch(P++,m=l.charAt(F),f){case 9:case 32:if(0===R+_+E)switch(O){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===R+E+_&&(k=G=1,m="\f"+m);break;case 108:if(0===R+E+_+x&&0<I)switch(F-I){case 2:112===O&&58===l.charCodeAt(F-3)&&(x=O);case 8:111===N&&(x=N)}break;case 58:0===R+E+_&&(I=F);break;case 44:0===E+S+R+_&&(k=1,m+="\r");break;case 34:case 39:0===E&&(R=R===f?0:0===R?f:R);break;case 91:0===R+E+S&&_++;break;case 93:0===R+E+S&&_--;break;case 41:0===R+E+_&&S--;break;case 40:if(0===R+E+_){if(0===h)if(2*O+3*N===533);else h=1;S++}break;case 64:0===E+S+R+_+I+g&&(g=1);break;case 42:case 47:if(!(0<R+_+S))switch(E){case 0:switch(2*f+3*l.charCodeAt(F+1)){case 235:E=47;break;case 220:H=F,E=42}break;case 42:47===f&&42===O&&H+2!==F&&(33===l.charCodeAt(H+2)&&(B+=l.substring(H,F+1)),m="",E=0)}}0===E&&(W+=m)}N=O,O=f,F++}if(0<(H=B.length)){if(k=o,0<L&&(void 0!==(w=a(2,B,k,e,T,P,H,u,d,u))&&0===(B=w).length))return z+B+U;if(B=k.join(",")+"{"+B+"}",0!==A*x){switch(2!==A||i(B,2)||(x=0),x){case 111:B=B.replace(C,":-moz-$1")+B;break;case 112:B=B.replace(y,"::-webkit-input-$1")+B.replace(y,"::-moz-$1")+B.replace(y,":-ms-input-$1")+B}x=0}}return z+B+U}function n(e,t,n){var r=t.trim().split(g);t=r;var i=r.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<i;++a)t[a]=o(e,t[a],n).trim();break;default:var l=a=0;for(t=[];a<i;++a)for(var u=0;u<s;++u)t[l++]=o(e[u]+" ",r[a],n).trim()}return t}function o(e,t,n){var o=t.charCodeAt(0);switch(33>o&&(o=(t=t.trim()).charCodeAt(0)),o){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var s=e+";",a=2*t+3*n+4*o;if(944===a){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===A||2===A&&i(l,1)?"-webkit-"+l+l:l}if(0===A||2===A&&!i(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(O,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return h.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,a=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(E,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(E,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===R.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+o&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+s}return s}function i(e,t){var n=e.indexOf(1===t?":":"{"),o=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?o:o.replace(S,"$1"),n,t)}function s(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,o,r,i,s,a,l,c){for(var p,d=0,h=t;d<L;++d)switch(p=N[d].call(u,e,h,n,o,r,i,s,a,l,c)){case void 0:case!1:case!0:case null:break;default:h=p}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!==typeof e?A=1:(A=2,I=e):A=0),l}function u(e,n){var o=e;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<L){var r=a(-1,n,o,o,T,P,0,0,0,0);void 0!==r&&"string"===typeof r&&(n=r)}var i=t(D,o,n,0,0);return 0<L&&(void 0!==(r=a(-2,i,o,o,T,P,i.length,0,0,0))&&(i=r)),"",x=0,P=T=1,i}var c=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,C=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,b=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,E=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,R=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,P=1,T=1,x=0,A=1,D=[],N=[],L=0,I=null,M=0;return u.use=function e(t){switch(t){case void 0:case null:L=N.length=0;break;default:if("function"===typeof t)N[L++]=t;else if("object"===typeof t)for(var n=0,o=t.length;n<o;++n)e(t[n]);else M=0|!!t}return e},u.set=l,void 0!==e&&l(e),u},oe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var re=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ie=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return re.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),se=n(2110),ae=n.n(se);function le(){return(le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var ue=function(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n},ce=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,J.typeOf)(e)},pe=Object.freeze([]),de=Object.freeze({});function he(e){return"function"==typeof e}function fe(e){return e.displayName||e.name||"Component"}function ge(e){return e&&"string"==typeof e.styledComponentId}var me="undefined"!=typeof process&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",ve="undefined"!=typeof window&&"HTMLElement"in window,ye=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY));function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var we=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)(r<<=1)<0&&Ce(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var i=o;i<r;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=0,l=t.length;a<l;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,i=o;i<r;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),be=new Map,_e=new Map,Ee=1,Se=function(e){if(be.has(e))return be.get(e);for(;_e.has(Ee);)Ee++;var t=Ee++;return be.set(e,t),_e.set(t,e),t},Re=function(e){return _e.get(e)},Oe=function(e,t){t>=Ee&&(Ee=t+1),be.set(e,t),_e.set(t,e)},Pe="style["+me+'][data-styled-version="5.3.5"]',Te=new RegExp("^"+me+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),xe=function(e,t,n){for(var o,r=n.split(","),i=0,s=r.length;i<s;i++)(o=r[i])&&e.registerName(t,o)},Ae=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),o=[],r=0,i=n.length;r<i;r++){var s=n[r].trim();if(s){var a=s.match(Te);if(a){var l=0|parseInt(a[1],10),u=a[2];0!==l&&(Oe(u,l),xe(e,u,a[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(s)}}},De=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Ne=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(me))return o}}(n),i=void 0!==r?r.nextSibling:null;o.setAttribute(me,"active"),o.setAttribute("data-styled-version","5.3.5");var s=De();return s&&o.setAttribute("nonce",s),n.insertBefore(o,i),o},Le=function(){function e(e){var t=this.element=Ne(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}Ce(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Ie=function(){function e(e){var t=this.element=Ne(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),o=this.nodes[e];return this.element.insertBefore(n,o||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Me=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Fe=ve,ke={isServer:!ve,useCSSOMInjection:!ye},Ge=function(){function e(e,t,n){void 0===e&&(e=de),void 0===t&&(t={}),this.options=le({},ke,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ve&&Fe&&(Fe=!1,function(e){for(var t=document.querySelectorAll(Pe),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(me)&&(Ae(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return Se(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(le({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,o=t.useCSSOMInjection,r=t.target,e=n?new Me(r):o?new Le(r):new Ie(r),new we(e)));var e,t,n,o,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=0;r<n;r++){var i=Re(r);if(void 0!==i){var s=e.names.get(i),a=t.getGroup(r);if(s&&a&&s.size){var l=me+".g"+r+'[id="'+i+'"]',u="";void 0!==s&&s.forEach((function(e){e.length>0&&(u+=e+",")})),o+=""+a+l+'{content:"'+u+'"}/*!sc*/\n'}}}return o}(this)},e}(),He=/(a)(d)/gi,Ve=function(e){return String.fromCharCode(e+(e>25?39:97))};function je(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ve(t%52)+n;return(Ve(t%52)+n).replace(He,"$1-$2")}var We=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Be=function(e){return We(5381,e)};function Ue(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(he(n)&&!ge(n))return!1}return!0}var ze=Be("5.3.5"),Ke=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ue(e),this.componentId=t,this.baseHash=We(ze,t),this.baseStyle=n,Ge.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(o,this.staticRulesId))r.push(this.staticRulesId);else{var i=ct(this.rules,e,t,n).join(""),s=je(We(this.baseHash,i)>>>0);if(!t.hasNameForId(o,s)){var a=n(i,"."+s,void 0,o);t.insertRules(o,s,a)}r.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,u=We(this.baseHash,n.hash),c="",p=0;p<l;p++){var d=this.rules[p];if("string"==typeof d)c+=d;else if(d){var h=ct(d,e,t,n),f=Array.isArray(h)?h.join(""):h;u=We(u,f+p),c+=f}}if(c){var g=je(u>>>0);if(!t.hasNameForId(o,g)){var m=n(c,"."+g,void 0,o);t.insertRules(o,g,m)}r.push(g)}}return r.join(" ")},e}(),qe=/^\s*\/\/.*$/gm,Ze=[":","[",".","#"];function Ye(e){var t,n,o,r,i=void 0===e?de:e,s=i.options,a=void 0===s?de:s,l=i.plugins,u=void 0===l?pe:l,c=new ne(a),p=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,o,r,i,s,a,l,u,c,p){switch(n){case 1:if(0===c&&64===o.charCodeAt(0))return e(o+";"),"";break;case 2:if(0===u)return o+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(r[0]+o),"";default:return o+(0===p?"/*|*/":"")}case-2:o.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),h=function(e,o,i){return 0===o&&-1!==Ze.indexOf(i[n.length])||i.match(r)?e:"."+t};function f(e,i,s,a){void 0===a&&(a="&");var l=e.replace(qe,""),u=i&&s?s+" "+i+" { "+l+" }":l;return t=a,n=i,o=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),c(s||!i?"":i,u)}return c.use([].concat(u,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(n)>0&&(r[0]=r[0].replace(o,h))},d,function(e){if(-2===e){var t=p;return p=[],t}}])),f.hash=u.length?u.reduce((function(e,t){return t.name||Ce(15),We(e,t.name)}),5381).toString():"",f}var Qe=s.createContext(),$e=(Qe.Consumer,s.createContext()),Xe=($e.Consumer,new Ge),Je=Ye();function et(){return(0,s.useContext)(Qe)||Xe}function tt(){return(0,s.useContext)($e)||Je}function nt(e){var t=(0,s.useState)(e.stylisPlugins),n=t[0],o=t[1],r=et(),i=(0,s.useMemo)((function(){var t=r;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,s.useMemo)((function(){return Ye({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,s.useEffect)((function(){te()(n,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),s.createElement(Qe.Provider,{value:i},s.createElement($e.Provider,{value:a},e.children))}var ot=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Je);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.toString=function(){return Ce(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Je),this.name+e.hash},e}(),rt=/([A-Z])/,it=/([A-Z])/g,st=/^ms-/,at=function(e){return"-"+e.toLowerCase()};function lt(e){return rt.test(e)?e.replace(it,at).replace(st,"-ms-"):e}var ut=function(e){return null==e||!1===e||""===e};function ct(e,t,n,o){if(Array.isArray(e)){for(var r,i=[],s=0,a=e.length;s<a;s+=1)""!==(r=ct(e[s],t,n,o))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return ut(e)?"":ge(e)?"."+e.styledComponentId:he(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ct(e(t),t,n,o):e instanceof ot?n?(e.inject(n,o),e.getName(o)):e:ce(e)?function e(t,n){var o,r,i=[];for(var s in t)t.hasOwnProperty(s)&&!ut(t[s])&&(Array.isArray(t[s])&&t[s].isCss||he(t[s])?i.push(lt(s)+":",t[s],";"):ce(t[s])?i.push.apply(i,e(t[s],s)):i.push(lt(s)+": "+(o=s,(null==(r=t[s])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||o in oe?String(r).trim():r+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var pt=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function dt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return he(e)||ce(e)?pt(ct(ue(pe,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:pt(ct(ue(e,n)))}new Set;var ht=function(e,t,n){return void 0===n&&(n=de),e.theme!==n.theme&&e.theme||t||n.theme},ft=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,gt=/(^-|-$)/g;function mt(e){return e.replace(ft,"-").replace(gt,"")}var vt=function(e){return je(Be(e)>>>0)};function yt(e){return"string"==typeof e&&!0}var Ct=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},wt=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function bt(e,t,n){var o=e[n];Ct(t)&&Ct(o)?_t(o,t):e[n]=t}function _t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var r=0,i=n;r<i.length;r++){var s=i[r];if(Ct(s))for(var a in s)wt(a)&&bt(e,s[a],a)}return e}var Et=s.createContext();Et.Consumer;function St(e){var t=(0,s.useContext)(Et),n=(0,s.useMemo)((function(){return function(e,t){return e?he(e)?e(t):Array.isArray(e)||"object"!=typeof e?Ce(8):t?le({},t,{},e):e:Ce(14)}(e.theme,t)}),[e.theme,t]);return e.children?s.createElement(Et.Provider,{value:n},e.children):null}var Rt={};function Ot(e,t,n){var o=ge(e),r=!yt(e),i=t.attrs,a=void 0===i?pe:i,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":mt(e);Rt[n]=(Rt[n]||0)+1;var o=n+"-"+vt("5.3.5"+n+Rt[n]);return t?t+"-"+o:o}(t.displayName,t.parentComponentId):l,c=t.displayName,p=void 0===c?function(e){return yt(e)?"styled."+e:"Styled("+fe(e)+")"}(e):c,d=t.displayName&&t.componentId?mt(t.displayName)+"-"+t.componentId:t.componentId||u,h=o&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,f=t.shouldForwardProp;o&&e.shouldForwardProp&&(f=t.shouldForwardProp?function(n,o,r){return e.shouldForwardProp(n,o,r)&&t.shouldForwardProp(n,o,r)}:e.shouldForwardProp);var g,m=new Ke(n,d,o?e.componentStyle:void 0),v=m.isStatic&&0===a.length,y=function(e,t){return function(e,t,n,o){var r=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,p=e.target,d=function(e,t,n){void 0===e&&(e=de);var o=le({},t,{theme:e}),r={};return n.forEach((function(e){var t,n,i,s=e;for(t in he(s)&&(s=s(o)),s)o[t]=r[t]="className"===t?(n=r[t],i=s[t],n&&i?n+" "+i:n||i):s[t]})),[o,r]}(ht(t,(0,s.useContext)(Et),a)||de,t,r),h=d[0],f=d[1],g=function(e,t,n,o){var r=et(),i=tt();return t?e.generateAndInjectStyles(de,r,i):e.generateAndInjectStyles(n,r,i)}(i,o,h),m=n,v=f.$as||t.$as||f.as||t.as||p,y=yt(v),C=f!==t?le({},t,{},f):t,w={};for(var b in C)"$"!==b[0]&&"as"!==b&&("forwardedAs"===b?w.as=C[b]:(u?u(b,ie,v):!y||ie(b))&&(w[b]=C[b]));return t.style&&f.style!==t.style&&(w.style=le({},t.style,{},f.style)),w.className=Array.prototype.concat(l,c,g!==c?g:null,t.className,f.className).filter(Boolean).join(" "),w.ref=m,(0,s.createElement)(v,w)}(g,e,t,v)};return y.displayName=p,(g=s.forwardRef(y)).attrs=h,g.componentStyle=m,g.displayName=p,g.shouldForwardProp=f,g.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):pe,g.styledComponentId=d,g.target=o?e.target:e,g.withComponent=function(e){var o=t.componentId,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,["componentId"]),i=o&&o+"-"+(yt(e)?e:mt(fe(e)));return Ot(e,le({},r,{attrs:h,componentId:i}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?_t({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},r&&ae()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Pt=function(e){return function e(t,n,o){if(void 0===o&&(o=de),!(0,J.isValidElementType)(n))return Ce(1,String(n));var r=function(){return t(n,o,dt.apply(void 0,arguments))};return r.withConfig=function(r){return e(t,n,le({},o,{},r))},r.attrs=function(r){return e(t,n,le({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},r}(Ot,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Pt[e]=Pt(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ue(e),Ge.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,o){var r=o(ct(this.rules,t,n,o).join(""),""),i=this.componentId+e;n.insertRules(i,i,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,o){e>2&&Ge.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=De();return"<style "+[n&&'nonce="'+n+'"',me+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?Ce(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Ce(2);var n=((t={})[me]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=De();return o&&(n.nonce=o),[s.createElement("style",le({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Ge({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?Ce(2):s.createElement(nt,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return Ce(3)}}();var Tt=function(){return(0,s.useContext)(Et)},xt=Pt;function At(e){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},At(e)}function Dt(e){var t=function(e,t){if("object"!=At(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=At(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==At(t)?t:String(t)}function Nt(e,t,n){return(t=Dt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){Nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(){Mt=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var i=t&&t.prototype instanceof m?t:m,s=Object.create(i.prototype),a=new x(o||[]);return r(s,"_invoke",{value:R(e,n,a)}),s}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",h="executing",f="completed",g={};function m(){}function v(){}function y(){}var C={};u(C,s,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(A([])));b&&b!==n&&o.call(b,s)&&(C=b);var _=y.prototype=m.prototype=Object.create(C);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,s,a){var l=p(e[r],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==At(c)&&o.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(c).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function R(t,n,o){var r=d;return function(i,s){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw s;return{value:e,done:!0}}for(o.method=i,o.arg=s;;){var a=o.delegate;if(a){var l=O(a,o);if(l){if(l===g)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===d)throw r=f,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var u=p(t,n,o);if("normal"===u.type){if(r=o.done?f:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(r=f,o.method="throw",o.arg=u.arg)}}}function O(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=p(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var s=i.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(At(t)+" is not iterable")}return v.prototype=y,r(_,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},E(S.prototype),u(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var s=new S(c(e,n,o,r),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},E(_),u(_,l,"Generator"),u(_,s,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=A,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return a.type="throw",a.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=o.call(s,"catchLoc"),u=o.call(s,"finallyLoc");if(l&&u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Ft(e,t,n,o,r,i,s){try{var a=e[i](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(o,r)}function kt(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function s(e){Ft(i,o,r,s,a,"next",e)}function a(e){Ft(i,o,r,s,a,"throw",e)}s(void 0)}))}}var Gt=n(9611);function Ht(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,Gt.Z)(e,t)}function Vt(){Vt=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=new RegExp(e,o);return t.set(i,r||t.get(e)),(0,Gt.Z)(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1<r.length;)i++;t[n]=e[r[i]]}return t}),Object.create(null))}return Ht(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=o(n,this);var r=n.indices;r&&(r.groups=o(r,this))}return n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var i=t.get(this);return e[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=At(e[e.length-1])&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},Vt.apply(this,arguments)}function jt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Dt(o.key),o)}}var Wt=n(4569),Bt=n.n(Wt);function Ut(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function zt(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Kt={data:""},qt=function(e){return"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Kt},Zt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Yt=/\/\*[^]*?\*\/| +/g,Qt=/\n+/g,$t=function e(t,n){var o="",r="",i="",s=function(s){var l=t[s];"@"==s[0]?"i"==s[1]?o=s+" "+l+";":r+="f"==s[1]?e(l,s):s+"{"+e(l,"k"==s[1]?"":n)+"}":"object"==typeof l?r+=e(l,n?n.replace(/([^,])+/g,(function(e){return s.replace(/(^:.*)|([^,])+/g,(function(t){return/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t}))})):s):null!=l&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=e.p?e.p(s,l):s+":"+l+";"),a=s};for(var a in t)s(a);return o+(n&&i?n+"{"+i+"}":i)+r},Xt={},Jt=function e(t){if("object"==typeof t){var n="";for(var o in t)n+=o+e(t[o]);return n}return t},en=function(e,t,n,o,r){var i=Jt(e),s=Xt[i]||(Xt[i]=function(e){for(var t=0,n=11;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n}(i));if(!Xt[s]){var a=i!==e?e:function(e){for(var t,n,o=[{}];t=Zt.exec(e.replace(Yt,""));)t[4]?o.shift():t[3]?(n=t[3].replace(Qt," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(Qt," ").trim();return o[0]}(e);Xt[s]=$t(r?Nt({},"@keyframes "+s,a):a,n?"":"."+s)}return function(e,t,n){-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)}(Xt[s],t,o),s},tn=function(e,t,n){return e.reduce((function(e,o,r){var i=t[r];if(i&&i.call){var s=i(n),a=s&&s.props&&s.props.className||/^go/.test(s)&&s;i=a?"."+a:s&&"object"==typeof s?s.props?"":$t(s,""):!1===s?"":s}return e+o+(null==i?"":i)}),"")};function nn(e){var t=this||{},n=e.call?e(t.p):e;return en(n.unshift?n.raw?tn(n,[].slice.call(arguments,1),t.p):n.reduce((function(e,n){return Object.assign(e,n&&n.call?n(t.p):n)}),{}):n,qt(t.target),t.g,t.o,t.k)}nn.bind({g:1});var on,rn,sn,an,ln,un,cn,pn,dn,hn,fn,gn,mn,vn,yn,Cn,wn,bn,_n,En=nn.bind({k:1});function Sn(e,t){var n=this||{};return function(){var o=arguments;function r(i,s){var a=Object.assign({},i),l=a.className||r.className;n.p=Object.assign({theme:rn&&rn()},a),n.o=/ *go\d+/.test(l),a.className=nn.apply(n,o)+(l?" "+l:""),t&&(a.ref=s);var u=e;return e[0]&&(u=a.as||e,delete a.as),sn&&u[0]&&sn(a),on(u,a)}return t?t(r):r}}var Rn=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},On=function(){var e=0;return function(){return(++e).toString()}}(),Pn=function(){var e;return function(){if(void 0===e&&typeof window<"u"){var t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}}(),Tn=new Map,xn=function(e){if(!Tn.has(e)){var t=setTimeout((function(){Tn.delete(e),Ln({type:4,toastId:e})}),1e3);Tn.set(e,t)}},An=function e(t,n){switch(n.type){case 0:return It(It({},t),{},{toasts:[n.toast].concat(zt(t.toasts)).slice(0,20)});case 1:return n.toast.id&&function(e){var t=Tn.get(e);t&&clearTimeout(t)}(n.toast.id),It(It({},t),{},{toasts:t.toasts.map((function(e){return e.id===n.toast.id?It(It({},e),n.toast):e}))});case 2:var o=n.toast;return t.toasts.find((function(e){return e.id===o.id}))?e(t,{type:1,toast:o}):e(t,{type:0,toast:o});case 3:var r=n.toastId;return r?xn(r):t.toasts.forEach((function(e){xn(e.id)})),It(It({},t),{},{toasts:t.toasts.map((function(e){return e.id===r||void 0===r?It(It({},e),{},{visible:!1}):e}))});case 4:return void 0===n.toastId?It(It({},t),{},{toasts:[]}):It(It({},t),{},{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case 5:return It(It({},t),{},{pausedAt:n.time});case 6:var i=n.time-(t.pausedAt||0);return It(It({},t),{},{pausedAt:void 0,toasts:t.toasts.map((function(e){return It(It({},e),{},{pauseDuration:e.pauseDuration+i})}))})}},Dn=[],Nn={toasts:[],pausedAt:void 0},Ln=function(e){Nn=An(Nn,e),Dn.forEach((function(e){e(Nn)}))},In={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Mn=function(e){return function(t,n){var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return It(It({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n),{},{id:(null==n?void 0:n.id)||On()})}(t,e,n);return Ln({type:2,toast:o}),o.id}},Fn=function(e,t){return Mn("blank")(e,t)};Fn.error=Mn("error"),Fn.success=Mn("success"),Fn.loading=Mn("loading"),Fn.custom=Mn("custom"),Fn.dismiss=function(e){Ln({type:3,toastId:e})},Fn.remove=function(e){return Ln({type:4,toastId:e})},Fn.promise=function(e,t,n){var o=Fn.loading(t.loading,It(It({},n),null==n?void 0:n.loading));return e.then((function(e){return Fn.success(Rn(t.success,e),It(It({id:o},n),null==n?void 0:n.success)),e})).catch((function(e){Fn.error(Rn(t.error,e),It(It({id:o},n),null==n?void 0:n.error))})),e};var kn=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r((0,s.useState)(Nn),2),n=t[0],o=t[1];(0,s.useEffect)((function(){return Dn.push(o),function(){var e=Dn.indexOf(o);e>-1&&Dn.splice(e,1)}}),[n]);var i=n.toasts.map((function(t){var n,o;return It(It(It(It({},e),e[t.type]),t),{},{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||In[t.type],style:It(It(It({},e.style),null==(o=e[t.type])?void 0:o.style),t.style)})}));return It(It({},n),{},{toasts:i})}(e),n=t.toasts,o=t.pausedAt;(0,s.useEffect)((function(){if(!o){var e=Date.now(),t=n.map((function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((function(){return Fn.dismiss(t.id)}),n);t.visible&&Fn.dismiss(t.id)}}));return function(){t.forEach((function(e){return e&&clearTimeout(e)}))}}}),[n,o]);var i=(0,s.useMemo)((function(){return{startPause:function(){Ln({type:5,time:Date.now()})},endPause:function(){o&&Ln({type:6,time:Date.now()})},updateHeight:function(e,t){return Ln({type:1,toast:{id:e,height:t}})},calculateOffset:function(e,t){var o,r=t||{},i=r.reverseOrder,s=void 0!==i&&i,a=r.gutter,l=void 0===a?8:a,u=r.defaultPosition,c=n.filter((function(t){return(t.position||u)===(e.position||u)&&t.height})),p=c.findIndex((function(t){return t.id===e.id})),d=c.filter((function(e,t){return t<p&&e.visible})).length;return(o=c.filter((function(e){return e.visible}))).slice.apply(o,zt(s?[d+1]:[0,d])).reduce((function(e,t){return e+(t.height||0)+l}),0)}}}),[n,o]);return{toasts:n,handlers:i}},Gn=En(an||(an=Ut(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]))),Hn=En(ln||(ln=Ut(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),Vn=En(un||(un=Ut(["\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]))),jn=Sn("div")(cn||(cn=Ut(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"])),(function(e){return e.primary||"#ff4b4b"}),Gn,Hn,(function(e){return e.secondary||"#fff"}),Vn),Wn=En(pn||(pn=Ut(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),Bn=Sn("div")(dn||(dn=Ut(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"])),(function(e){return e.secondary||"#e0e0e0"}),(function(e){return e.primary||"#616161"}),Wn),Un=En(hn||(hn=Ut(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]))),zn=En(fn||(fn=Ut(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]))),Kn=Sn("div")(gn||(gn=Ut(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"])),(function(e){return e.primary||"#61d345"}),Un,zn,(function(e){return e.secondary||"#fff"})),qn=Sn("div")(mn||(mn=Ut(["\n position: absolute;\n"]))),Zn=Sn("div")(vn||(vn=Ut(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]))),Yn=En(yn||(yn=Ut(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),Qn=Sn("div")(Cn||(Cn=Ut(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"])),Yn),$n=function(e){var t=e.toast,n=t.icon,o=t.type,r=t.iconTheme;return void 0!==n?"string"==typeof n?s.createElement(Qn,null,n):n:"blank"===o?null:s.createElement(Zn,null,s.createElement(Bn,It({},r)),"loading"!==o&&s.createElement(qn,null,"error"===o?s.createElement(jn,It({},r)):s.createElement(Kn,It({},r))))},Xn=function(e){return"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n")},Jn=function(e){return"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n")},eo=Sn("div",s.forwardRef)(wn||(wn=Ut(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]))),to=Sn("div")(bn||(bn=Ut(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]))),no=s.memo((function(e){var t=e.toast,n=e.position,o=e.style,i=e.children,a=null!=t&&t.height?function(e,t){var n=e.includes("top")?1:-1,o=r(Pn()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Xn(n),Jn(n)],2),i=o[0],s=o[1];return{animation:t?"".concat(En(i)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(En(s)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}}(t.position||n||"top-center",t.visible):{opacity:0},l=s.createElement($n,{toast:t}),u=s.createElement(to,It({},t.ariaProps),Rn(t.message,t));return s.createElement(eo,{className:t.className,style:It(It(It({},a),o),t.style)},"function"==typeof i?i({icon:l,message:u}):s.createElement(s.Fragment,null,l,u))}));!function(e,t,n,o){$t.p=t,on=e,rn=n,sn=o}(s.createElement);var oo=nn(_n||(_n=Ut(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]))),ro=function(e){var t=e.reverseOrder,n=e.position,o=void 0===n?"top-center":n,r=e.toastOptions,i=e.gutter,a=e.children,l=e.containerStyle,u=e.containerClassName,c=kn(r),p=c.toasts,d=c.handlers;return s.createElement("div",{style:It({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},l),className:u,onMouseEnter:d.startPause,onMouseLeave:d.endPause},p.map((function(e){var n=e.position||o,r=function(e,t){var n=e.includes("top"),o=n?{top:0}:{bottom:0},r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return It(It({left:0,right:0,display:"flex",position:"absolute",transition:Pn()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)")},o),r)}(n,d.calculateOffset(e,{reverseOrder:t,gutter:i,defaultPosition:o})),l=e.height?void 0:function(e){return function(t){t&&setTimeout((function(){var n=t.getBoundingClientRect();e(n)}))}}((function(t){d.updateHeight(e.id,t.height)}));return s.createElement("div",{ref:l,className:e.visible?oo:"",key:e.id,style:r},"custom"===e.type?Rn(e.message,e):a?a(e):s.createElement(no,{toast:e,position:n}))})))},io=Fn;function so(e){io.success(e)}function ao(e){io.error(e)}var lo=Bt().create({withCredentials:!0,headers:{"Content-Type":"application/json"}});lo.interceptors.response.use((function(e){return e}),(function(e){if(console.error(e),403===e.response.status)ao("Authentication error");else if(e.response.data&&e.response.data.meta&&e.response.data.meta.errorCode){var t="Unknown error";switch(e.response.data.meta.errorCode){case"NO_USER_OR_GROUP":t="User or group not specified. Please ensure you select a user or group to proceed.";break;case"INVALID_USER":t="The specified user is invalid or does not exist. Please check the user information and try again.";break;case"NO_OR_INVALID_PERMISSION_LEVEL":t="No permission level provided or the provided level is invalid. Please select a valid permission level.";break;case"NO_OR_INVALID_PERMISSION_LEVEL_MODS":t="No permission level for mods provided, or the provided level is invalid. Please select a valid permission level for moderators.";break;default:t="An error occurred: ".concat(e.response.data.meta.errorCode,".")}ao(t)}else ao("Unknown HTTP error");return Promise.reject(e)}));var uo,co=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,n=null,o=[{key:"get",value:function(){var e=kt(Mt().mark((function e(t){var n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.get(t);case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"post",value:function(){var e=kt(Mt().mark((function e(t,n){var o;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.post(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=kt(Mt().mark((function e(t,n){var o;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.delete(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"put",value:function(){var e=kt(Mt().mark((function e(t,n){var o;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.put(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"executeCommand",value:function(){var e=kt(Mt().mark((function e(t){var n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.post("/api/command",{command:t});case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"getMods",value:function(){var e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:return e.next=5,lo.get("/api/mods");case 5:return t=e.sent,e.abrupt("return",t.data.data);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getAnimals",value:function(){var e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.get("/api/animal");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getHostiles",value:function(){var e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.get("/api/hostile");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getAdminList",value:function(){var e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("admin list");case 2:return t=e.sent,e.abrupt("return",t.result.split("\n").slice(2,-3).map((function(e){var t=e.trim(),n=Vt(/(\d+): (\w+) \(.*stored name: ((\w+)|)\)/g,{level:1,ID:2,name:3}).exec(t).groups;return{level:n.level,ID:n.ID,name:n.name}})));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getCommandPermissions",value:function(){var e=kt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("commandpermission list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Vt(/(\d+): (.+)/g,{level:1,command:2}).exec(e).groups;return{level:t.level,command:t.command}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getWebPermissions",value:function(){var e=kt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("webpermission list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Vt(/(\d+): (.+)/g,{level:1,permission:2}).exec(e).groups;return{level:t.level,permission:t.permission}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getWebTokens",value:function(){var e=kt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("webtokens list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Vt(/(\d+): (.+) \/ (.+)/g,{level:1,name:2,token:3}).exec(e).groups,n=t.level,o=t.name;return{level:n,token:t.token,name:o}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getBans",value:function(){var e=kt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("ban list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Vt(/(.+) \x2D (.+) (.+) \x2D(.*)/g,{date:1,ID:2,name:3,reason:4}).exec(e).groups,n=t.date,o=t.ID,r=t.name,i=t.reason;return{date:new Date(n),ID:o,name:r,reason:i}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getLatestLogLines",value:function(){var e=kt(Mt().mark((function e(t){var n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.get("/api/log?count=".concat(t));case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"login",value:function(){var e=kt(Mt().mark((function e(t,n){var o;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.post("/session/login",{username:t,password:n});case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"registerUser",value:function(){var e=kt(Mt().mark((function e(t,n,o){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,lo.post("/api/registeruser",{username:t,password:n,token:o});case 3:e.next=11;break;case 5:if(e.prev=5,e.t0=e.catch(0),!(e.t0 instanceof Wt.AxiosError)){e.next=10;break}if(!(e.t0.response.status>400&&e.t0.response.status<500)){e.next=10;break}throw new Error(e.t0.response.data.meta.errorCode);case 10:throw new Error("Internal server error");case 11:return e.abrupt("return");case 12:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n,o){return e.apply(this,arguments)}}()},{key:"getPlayers",value:function(){var e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.get("/api/player");case 2:return t=e.sent,e.abrupt("return",t.data.data.players);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getMapConfig",value:function(){var e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.get("/api/map/config");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getItems",value:function(){var e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lo.get("/api/item");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}],n&&jt(t.prototype,n),o&&jt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),po=n(2953),ho=n(184),fo={filter:"agDateColumnFilter",cellRenderer:function(e){return e.value?new Date(e.value).toLocaleString():""}},go=xt.span.withConfig({displayName:"types__RedText",componentId:"sc-18lssv1-0"})(["color:",";"],(function(e){return e.theme.colors.tfpRed})),mo={date:fo,command:{filter:"agTextColumnFilter",cellRenderer:function(e){return e.value?e.data.allowed?e.value:(0,ho.jsx)(go,{children:e.value}):""}}},vo=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=dt.apply(void 0,[e].concat(n)).join(""),i=vt(r);return new ot(i,r)}(uo||(uo=Ut(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),yo=xt.div.withConfig({displayName:"loading__LoadingContainer",componentId:"sc-dbw08p-0"})(["display:flex;justify-content:center;align-items:center;height:100%;"]),Co=xt.div.withConfig({displayName:"loading__Spinner",componentId:"sc-dbw08p-1"})(["border:5px solid ",";border-top:5px solid ",";border-radius:50%;width:50px;height:50px;animation:"," 2s linear infinite;"],(function(e){return e.theme.colors.tfpDarkGrey20}),(function(e){return e.theme.colors.tfpRed}),vo);function wo(){return(0,ho.jsx)(yo,{children:(0,ho.jsx)(Co,{})})}var bo={flex:1,wrapText:!0,autoHeight:!0,resizable:!0,sortable:!0,cellStyle:{textAlign:"left"},comparator:function(e,t){return e&&t?String(e).toLowerCase().localeCompare(String(t).toLowerCase()):0}};function _o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={theme:"ag-theme-balham-dark",enableCellTextSelection:!0,suppressCellFocus:!0,enableRangeSelection:!1,height:"100%"},n=It(It({},t),e),o=(0,s.useState)(null),i=r(o,2),a=i[1],l=(0,s.useState)(null),u=r(l,2),c=u[1],p=function(e){a(e.api),c(e.columnApi),n.onGridReady&&n.onGridReady(e)};return n.loading?(0,ho.jsx)(wo,{}):(0,ho.jsx)("div",{className:n.theme,style:{height:n.height,width:"100%"},children:(0,ho.jsx)(po.AgGridReact,It({rowData:n.rowData,columnDefs:n.columnDef,defaultColDef:bo,columnTypes:mo,alwaysShowHorizontalScroll:!0,onGridReady:p},n))})}function Eo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={theme:"ag-theme-balham-dark"},n=It(It({},t),e),o=function(e){if(!e.editing){var t=8===e.event.keyCode,o=46===e.event.keyCode;if(t||o){var r=e.api.getSelectedRows();return n.deleteRowFn?r.forEach((function(e){n.deleteRowFn(e)})):console.warn("No deleteRowFn provided in table options, rows will not actually get deleted"),n.reloadFn(),!0}return!1}};return n.loading?(0,ho.jsx)(wo,{}):(0,ho.jsx)(_o,It({rowData:n.rowData,columnDef:n.columnDef,defaultColDef:It(It({},bo),{},{suppressKeyboardEvent:o}),onCellValueChanged:n.editRowFn,editType:"fullRow",rowSelection:"multiple"},n))}var So=xt.form.withConfig({displayName:"style__StyledForm",componentId:"sc-1c54au9-0"})(["display:grid;grid-template-columns:repeat(2,1fr);gap:0.5rem;justify-content:center;align-items:start;margin-bottom:1rem;"]),Ro=xt.div.withConfig({displayName:"style__StyledFormItem",componentId:"sc-1c54au9-1"})(["display:flex;flex-direction:column;"]),Oo=xt.button.withConfig({displayName:"style__FormButton",componentId:"sc-1c54au9-2"})(["display:block;width:auto;height:auto;padding:0.75rem 1.5rem;font-size:1rem;cursor:pointer;transition:background-color 0.3s ease,color 0.3s ease;background-color:",";color:",";border:none;border-radius:5px;align-self:center;&:hover{background-color:",";color:",";}&:active{transform:translateY(1px);}"],(function(e){return e.isError?e.theme.colors.tfpRed:e.theme.colors.tfpBlue}),(function(e){return e.theme.colors.tfpWhite}),(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpWhite})),Po=xt.label.withConfig({displayName:"style__FormLabel",componentId:"sc-1c54au9-3"})(["font-size:1rem;margin-bottom:0.5rem;font-weight:500;"]),To=xt.input.withConfig({displayName:"style__FormInput",componentId:"sc-1c54au9-4"})(["padding:0.75rem;font-size:1rem;border:2px solid ",";background-color:",";border-radius:5px;color:",";&:focus{border-color:",";outline:none;}"],(function(e){return e.theme.colors.tfpDarkGrey80}),(function(e){return e.theme.colors.tfpMediumGrey}),(function(e){return e.theme.colors.text}),(function(e){return e.theme.colors.tfpBlue})),xo=xt.select.withConfig({displayName:"style__FormSelect",componentId:"sc-1c54au9-5"})(["padding:0.75rem;font-size:1rem;border:2px solid ",";background-color:",";border-radius:5px;color:",";&:focus{border-color:",";outline:none;}"],(function(e){return e.theme.colors.tfpDarkGrey80}),(function(e){return e.theme.colors.tfpMediumGrey}),(function(e){return e.theme.colors.text}),(function(e){return e.theme.colors.tfpBlue})),Ao=xt.option.withConfig({displayName:"style__FormOption",componentId:"sc-1c54au9-6"})(["padding:0.75rem;font-size:1rem;border:2px solid ",";background-color:",";border-radius:5px;color:",";&:focus{border-color:",";outline:none;}"],(function(e){return e.theme.colors.tfpDarkGrey80}),(function(e){return e.theme.colors.tfpMediumGrey}),(function(e){return e.theme.colors.text}),(function(e){return e.theme.colors.tfpBlue})),Do=xt.span.withConfig({displayName:"style__FormError",componentId:"sc-1c54au9-7"})(["color:",";font-size:0.8rem;margin-top:0.5rem;"],(function(e){return e.theme.colors.tfpRed})),No=xt.div.withConfig({displayName:"style__FormErrorList",componentId:"sc-1c54au9-8"})(["display:flex;flex-direction:column;"]),Lo=xt.div.withConfig({displayName:"style__FormTail",componentId:"sc-1c54au9-9"})(["grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;margin-top:1rem;"]);function Io(e){var t=e.errors;if(!t)return null;var n=Object.entries(t).map((function(e){var t=r(e,2),n=t[0],o=t[1];return""===o.message?"".concat(n," is required"):o.message}));return n.length?(0,ho.jsx)(No,{children:n.map((function(e){return(0,ho.jsx)(Do,{children:e},e)}))}):null}function Mo(e){var t=e.handleSubmit,n=e.children,o=e.errors,r=void 0===o?{}:o,i=e.isLoading;return(0,ho.jsxs)(So,{onSubmit:t,children:[n,(0,ho.jsxs)(Lo,{children:[(0,ho.jsx)(Oo,{type:"submit",isError:r.length,children:i?(0,ho.jsx)(wo,{}):"Submit"}),(0,ho.jsx)(Io,{errors:r})]})]})}function Fo(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function ko(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Go=["name"],Ho=["_f"],Vo=["_f"],jo=function(e){return"checkbox"===e.type},Wo=function(e){return e instanceof Date},Bo=function(e){return null==e},Uo=function(e){return"object"===typeof e},zo=function(e){return!Bo(e)&&!Array.isArray(e)&&Uo(e)&&!Wo(e)},Ko=function(e){return zo(e)&&e.target?jo(e.target)?e.target.checked:e.target.value:e},qo=function(e,t){return e.has(function(e){return e.substring(0,e.search(/\.\d+(\.|$)/))||e}(t))},Zo="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function Yo(e){var t,n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Zo&&(e instanceof Blob||e instanceof FileList)||!n&&!zo(e))return e;if(t=n?[]:{},n||function(e){var t=e.constructor&&e.constructor.prototype;return zo(t)&&t.hasOwnProperty("isPrototypeOf")}(e))for(var o in e)e.hasOwnProperty(o)&&(t[o]=Yo(e[o]));else t=e}return t}var Qo=function(e){return Array.isArray(e)?e.filter(Boolean):[]},$o=function(e){return void 0===e},Xo=function(e,t,n){if(!t||!zo(e))return n;var o=Qo(t.split(/[,[\].]+?/)).reduce((function(e,t){return Bo(e)?e:e[t]}),e);return $o(o)||o===e?$o(e[t])?n:e[t]:o},Jo=function(e){return"boolean"===typeof e},er="blur",tr="focusout",nr="onBlur",or="onChange",rr="onSubmit",ir="onTouched",sr="all",ar="max",lr="min",ur="maxLength",cr="minLength",pr="pattern",dr="required",hr="validate",fr=(s.createContext(null),function(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r={defaultValues:t._defaultValues},i=function(i){Object.defineProperty(r,i,{get:function(){var r=i;return t._proxyFormState[r]!==sr&&(t._proxyFormState[r]=!o||sr),n&&(n[r]=!0),e[r]}})};for(var s in e)i(s);return r}),gr=function(e){return zo(e)&&!Object.keys(e).length},mr=function(e,t,n,o){n(e);e.name;var r=ko(e,Go);return gr(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((function(e){return t[e]===(!o||sr)}))},vr=function(e){return Array.isArray(e)?e:[e]};function yr(e){var t=s.useRef(e);t.current=e,s.useEffect((function(){var n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return function(){n&&n.unsubscribe()}}),[e.disabled])}var Cr=function(e){return"string"===typeof e},wr=function(e,t,n,o,r){return Cr(e)?(o&&t.watch.add(e),Xo(n,e,r)):Array.isArray(e)?e.map((function(e){return o&&t.watch.add(e),Xo(n,e)})):(o&&(t.watchAll=!0),n)};var br=function(e){return/^\w*$/.test(e)},_r=function(e){return Qo(e.replace(/["|']|\]/g,"").split(/\.|\[/))},Er=function(e,t,n){for(var o=-1,r=br(t)?[t]:_r(t),i=r.length,s=i-1;++o<i;){var a=r[o],l=n;if(o!==s){var u=e[a];l=zo(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}e[a]=l,e=e[a]}return e};var Sr=function(e,t,n,o,r){return t?It(It({},n[e]),{},{types:It(It({},n[e]&&n[e].types?n[e].types:{}),{},Nt({},o,r||!0))}):{}},Rr=function(e){return{isOnSubmit:!e||e===rr,isOnBlur:e===nr,isOnChange:e===or,isOnAll:e===sr,isOnTouch:e===ir}},Or=function(e,t,n){return!n&&(t.watchAll||t.watch.has(e)||zt(t.watch).some((function(t){return e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))})))},Pr=function e(t,n,o,r){var i,s=Fo(o||Object.keys(t));try{for(s.s();!(i=s.n()).done;){var a=i.value,l=Xo(t,a);if(l){var u=l._f,c=ko(l,Ho);if(u){if(u.refs&&u.refs[0]&&n(u.refs[0],a)&&!r)break;if(u.ref&&n(u.ref,u.name)&&!r)break;e(c,n)}else zo(c)&&e(c,n)}}}catch(p){s.e(p)}finally{s.f()}},Tr=function(e,t,n){var o=Qo(Xo(e,n));return Er(o,"root",t[n]),Er(e,n,o),e},xr=function(e){return"file"===e.type},Ar=function(e){return"function"===typeof e},Dr=function(e){if(!Zo)return!1;var t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Nr=function(e){return Cr(e)},Lr=function(e){return"radio"===e.type},Ir=function(e){return e instanceof RegExp},Mr={value:!1,isValid:!1},Fr={value:!0,isValid:!0},kr=function(e){if(Array.isArray(e)){if(e.length>1){var t=e.filter((function(e){return e&&e.checked&&!e.disabled})).map((function(e){return e.value}));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!$o(e[0].attributes.value)?$o(e[0].value)||""===e[0].value?Fr:{value:e[0].value,isValid:!0}:Fr:Mr}return Mr},Gr={isValid:!1,value:null},Hr=function(e){return Array.isArray(e)?e.reduce((function(e,t){return t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e}),Gr):Gr};function Vr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(Nr(e)||Array.isArray(e)&&e.every(Nr)||Jo(e)&&!e)return{type:n,message:Nr(e)?e:"",ref:t}}var jr=function(e){return zo(e)&&!Ir(e)?e:{value:e,message:""}},Wr=function(){var e=kt(Mt().mark((function e(t,n,o,r,i){var s,a,l,u,c,p,d,h,f,g,m,v,y,C,w,b,_,E,S,R,O,P,T,x,A,D,N,L,I,M,F,k,G,H,V,j,W,B,U,z,K,q,Z,Y,Q,$,X,J;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=t._f,a=s.ref,l=s.refs,u=s.required,c=s.maxLength,p=s.minLength,d=s.min,h=s.max,f=s.pattern,g=s.validate,m=s.name,v=s.valueAsNumber,y=s.mount,C=s.disabled,w=Xo(n,m),y&&!C){e.next=4;break}return e.abrupt("return",{});case 4:if(b=l?l[0]:a,_=function(e){r&&b.reportValidity&&(b.setCustomValidity(Jo(e)?"":e||""),b.reportValidity())},E={},S=Lr(a),R=jo(a),O=S||R,P=(v||xr(a))&&$o(a.value)&&$o(w)||Dr(a)&&""===a.value||""===w||Array.isArray(w)&&!w.length,T=Sr.bind(null,m,o,E),x=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ur,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:cr,i=e?t:n;E[m]=It({type:e?o:r,message:i,ref:a},T(e?o:r,i))},!(i?!Array.isArray(w)||!w.length:u&&(!O&&(P||Bo(w))||Jo(w)&&!w||R&&!kr(l).isValid||S&&!Hr(l).isValid))){e.next=20;break}if(A=Nr(u)?{value:!!u,message:u}:jr(u),D=A.value,N=A.message,!D){e.next=20;break}if(E[m]=It({type:dr,message:N,ref:b},T(dr,N)),o){e.next=20;break}return _(N),e.abrupt("return",E);case 20:if(P||Bo(d)&&Bo(h)){e.next=29;break}if(M=jr(h),F=jr(d),Bo(w)||isNaN(w)?(G=a.valueAsDate||new Date(w),H=function(e){return new Date((new Date).toDateString()+" "+e)},V="time"==a.type,j="week"==a.type,Cr(M.value)&&w&&(L=V?H(w)>H(M.value):j?w>M.value:G>new Date(M.value)),Cr(F.value)&&w&&(I=V?H(w)<H(F.value):j?w<F.value:G<new Date(F.value))):(k=a.valueAsNumber||(w?+w:w),Bo(M.value)||(L=k>M.value),Bo(F.value)||(I=k<F.value)),!L&&!I){e.next=29;break}if(x(!!L,M.message,F.message,ar,lr),o){e.next=29;break}return _(E[m].message),e.abrupt("return",E);case 29:if(!c&&!p||P||!(Cr(w)||i&&Array.isArray(w))){e.next=39;break}if(W=jr(c),B=jr(p),U=!Bo(W.value)&&w.length>+W.value,z=!Bo(B.value)&&w.length<+B.value,!U&&!z){e.next=39;break}if(x(U,W.message,B.message),o){e.next=39;break}return _(E[m].message),e.abrupt("return",E);case 39:if(!f||P||!Cr(w)){e.next=46;break}if(K=jr(f),q=K.value,Z=K.message,!Ir(q)||w.match(q)){e.next=46;break}if(E[m]=It({type:pr,message:Z,ref:a},T(pr,Z)),o){e.next=46;break}return _(Z),e.abrupt("return",E);case 46:if(!g){e.next=80;break}if(!Ar(g)){e.next=59;break}return e.next=50,g(w,n);case 50:if(Y=e.sent,!(Q=Vr(Y,b))){e.next=57;break}if(E[m]=It(It({},Q),T(hr,Q.message)),o){e.next=57;break}return _(Q.message),e.abrupt("return",E);case 57:e.next=80;break;case 59:if(!zo(g)){e.next=80;break}$={},e.t0=Mt().keys(g);case 62:if((e.t1=e.t0()).done){e.next=76;break}if(X=e.t1.value,gr($)||o){e.next=66;break}return e.abrupt("break",76);case 66:return e.t2=Vr,e.next=69,g[X](w,n);case 69:e.t3=e.sent,e.t4=b,e.t5=X,(J=(0,e.t2)(e.t3,e.t4,e.t5))&&($=It(It({},J),T(X,J.message)),_(J.message),o&&(E[m]=$)),e.next=62;break;case 76:if(gr($)){e.next=80;break}if(E[m]=It({ref:b},$),o){e.next=80;break}return e.abrupt("return",E);case 80:return _(!0),e.abrupt("return",E);case 82:case"end":return e.stop()}}),e)})));return function(t,n,o,r,i){return e.apply(this,arguments)}}();function Br(e,t){var n=Array.isArray(t)?t:br(t)?[t]:_r(t),o=1===n.length?e:function(e,t){for(var n=t.slice(0,-1).length,o=0;o<n;)e=$o(e)?o++:e[t[o++]];return e}(e,n),r=n.length-1,i=n[r];return o&&delete o[i],0!==r&&(zo(o)&&gr(o)||Array.isArray(o)&&function(e){for(var t in e)if(e.hasOwnProperty(t)&&!$o(e[t]))return!1;return!0}(o))&&Br(e,n.slice(0,-1)),e}var Ur=function(){var e=[];return{get observers(){return e},next:function(t){var n,o=Fo(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;r.next&&r.next(t)}}catch(i){o.e(i)}finally{o.f()}},subscribe:function(t){return e.push(t),{unsubscribe:function(){e=e.filter((function(e){return e!==t}))}}},unsubscribe:function(){e=[]}}},zr=function(e){return Bo(e)||!Uo(e)};function Kr(e,t){if(zr(e)||zr(t))return e===t;if(Wo(e)&&Wo(t))return e.getTime()===t.getTime();var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var r=0,i=n;r<i.length;r++){var s=i[r],a=e[s];if(!o.includes(s))return!1;if("ref"!==s){var l=t[s];if(Wo(a)&&Wo(l)||zo(a)&&zo(l)||Array.isArray(a)&&Array.isArray(l)?!Kr(a,l):a!==l)return!1}}return!0}var qr=function(e){return"select-multiple"===e.type},Zr=function(e){return Lr(e)||jo(e)},Yr=function(e){return Dr(e)&&e.isConnected},Qr=function(e){for(var t in e)if(Ar(e[t]))return!0;return!1};function $r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(e);if(zo(e)||n)for(var o in e)Array.isArray(e[o])||zo(e[o])&&!Qr(e[o])?(t[o]=Array.isArray(e[o])?[]:{},$r(e[o],t[o])):Bo(e[o])||(t[o]=!0);return t}function Xr(e,t,n){var o=Array.isArray(e);if(zo(e)||o)for(var r in e)Array.isArray(e[r])||zo(e[r])&&!Qr(e[r])?$o(t)||zr(n[r])?n[r]=Array.isArray(e[r])?$r(e[r],[]):It({},$r(e[r])):Xr(e[r],Bo(t)?{}:t[r],n[r]):n[r]=!Kr(e[r],t[r]);return n}var Jr=function(e,t){return Xr(e,t,$r(t))},ei=function(e,t){var n=t.valueAsNumber,o=t.valueAsDate,r=t.setValueAs;return $o(e)?e:n?""===e?NaN:e?+e:e:o&&Cr(e)?new Date(e):r?r(e):e};function ti(e){var t=e.ref;if(!(e.refs?e.refs.every((function(e){return e.disabled})):t.disabled))return xr(t)?t.files:Lr(t)?Hr(e.refs).value:qr(t)?zt(t.selectedOptions).map((function(e){return e.value})):jo(t)?kr(e.refs).value:ei($o(t.value)?e.ref.value:t.value,e)}var ni=function(e,t,n,o){var r,i={},s=Fo(e);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=Xo(t,a);l&&Er(i,a,l._f)}}catch(u){s.e(u)}finally{s.f()}return{criteriaMode:n,names:zt(e),fields:i,shouldUseNativeValidation:o}},oi=function(e){return $o(e)?e:Ir(e)?e.source:zo(e)?Ir(e.value)?e.value.source:e.value:e},ri=function(e){return e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate)};function ii(e,t,n){var o=Xo(e,n);if(o||br(n))return{error:o,name:n};for(var r=n.split(".");r.length;){var i=r.join("."),s=Xo(t,i),a=Xo(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};r.pop()}return{name:n}}var si=function(e,t,n,o,r){return!r.isOnAll&&(!n&&r.isOnTouch?!(t||e):(n?o.isOnBlur:r.isOnBlur)?!e:!(n?o.isOnChange:r.isOnChange)||e)},ai=function(e,t){return!Qo(Xo(e,t)).length&&Br(e,t)},li={mode:rr,reValidateMode:or,shouldFocusError:!0};function ui(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=It(It({},li),t),r={submitCount:0,isDirty:!1,isLoading:Ar(o.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:o.errors||{},disabled:o.disabled||!1},i={},s=(zo(o.values)||zo(o.defaultValues))&&Yo(o.values||o.defaultValues)||{},a=o.shouldUnregister?{}:Yo(s),l={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0,p={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Ur(),array:Ur(),state:Ur()},h=Rr(o.mode),f=Rr(o.reValidateMode),g=o.criteriaMode===sr,m=function(e){return function(t){clearTimeout(c),c=setTimeout(e,t)}},v=function(){var e=kt(Mt().mark((function e(t){var n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p.isValid&&!t){e.next=14;break}if(!o.resolver){e.next=9;break}return e.t1=gr,e.next=5,R();case 5:e.t2=e.sent.errors,e.t0=(0,e.t1)(e.t2),e.next=12;break;case 9:return e.next=11,P(i,!0);case 11:e.t0=e.sent;case 12:(n=e.t0)!==r.isValid&&d.state.next({isValid:n});case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(e){return p.isValidating&&d.state.next({isValidating:e})},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],c=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(o&&n){if(l.action=!0,c&&Array.isArray(Xo(i,e))){var h=n(Xo(i,e),o.argA,o.argB);u&&Er(i,e,h)}if(c&&Array.isArray(Xo(r.errors,e))){var f=n(Xo(r.errors,e),o.argA,o.argB);u&&Er(r.errors,e,f),ai(r.errors,e)}if(p.touchedFields&&c&&Array.isArray(Xo(r.touchedFields,e))){var g=n(Xo(r.touchedFields,e),o.argA,o.argB);u&&Er(r.touchedFields,e,g)}p.dirtyFields&&(r.dirtyFields=Jr(s,a)),d.state.next({name:e,isDirty:x(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Er(a,e,t)},w=function(e,t){Er(r.errors,e,t),d.state.next({errors:r.errors})},b=function(e){r.errors=e,d.state.next({errors:r.errors,isValid:!1})},_=function(e,t,n,o){var r=Xo(i,e);if(r){var u=Xo(a,e,$o(n)?Xo(s,e):n);$o(u)||o&&o.defaultChecked||t?Er(a,e,t?u:ti(r._f)):N(e,u),l.mount&&v()}},E=function(e,t,n,o,a){var l=!1,u=!1,c={name:e},h=!(!Xo(i,e)||!Xo(i,e)._f.disabled);if(!n||o){p.isDirty&&(u=r.isDirty,r.isDirty=c.isDirty=x(),l=u!==c.isDirty);var f=h||Kr(Xo(s,e),t);u=!(h||!Xo(r.dirtyFields,e)),f||h?Br(r.dirtyFields,e):Er(r.dirtyFields,e,!0),c.dirtyFields=r.dirtyFields,l=l||p.dirtyFields&&u!==!f}if(n){var g=Xo(r.touchedFields,e);g||(Er(r.touchedFields,e,n),c.touchedFields=r.touchedFields,l=l||p.touchedFields&&g!==n)}return l&&a&&d.state.next(c),l?c:{}},S=function(n,o,i,s){var a=Xo(r.errors,n),l=p.isValid&&Jo(o)&&r.isValid!==o;if(t.delayError&&i?(e=m((function(){return w(n,i)})))(t.delayError):(clearTimeout(c),e=null,i?Er(r.errors,n,i):Br(r.errors,n)),(i?!Kr(a,i):a)||!gr(s)||l){var u=It(It(It({},s),l&&Jo(o)?{isValid:o}:{}),{},{errors:r.errors,name:n});r=It(It({},r),u),d.state.next(u)}y(!1)},R=function(){var e=kt(Mt().mark((function e(t){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.resolver(a,o.context,ni(t||u.mount,i,o.criteriaMode,o.shouldUseNativeValidation)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){var e=kt(Mt().mark((function e(t){var n,o,i,s,a,l;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(t);case 2:if(n=e.sent,o=n.errors,t){i=Fo(t);try{for(i.s();!(s=i.n()).done;)a=s.value,(l=Xo(o,a))?Er(r.errors,a,l):Br(r.errors,a)}catch(u){i.e(u)}finally{i.f()}}else r.errors=o;return e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=kt(Mt().mark((function e(t,n){var i,s,l,c,p,d,h,f=arguments;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=f.length>2&&void 0!==f[2]?f[2]:{valid:!0},e.t0=Mt().keys(t);case 2:if((e.t1=e.t0()).done){e.next=23;break}if(s=e.t1.value,!(l=t[s])){e.next=21;break}if(c=l._f,p=ko(l,Vo),!c){e.next=17;break}return d=u.array.has(c.name),e.next=11,Wr(l,a,g,o.shouldUseNativeValidation&&!n,d);case 11:if(!(h=e.sent)[c.name]){e.next=16;break}if(i.valid=!1,!n){e.next=16;break}return e.abrupt("break",23);case 16:!n&&(Xo(h,c.name)?d?Tr(r.errors,h,c.name):Er(r.errors,c.name,h[c.name]):Br(r.errors,c.name));case 17:if(e.t2=p,!e.t2){e.next=21;break}return e.next=21,P(p,n,i);case 21:e.next=2;break;case 23:return e.abrupt("return",i.valid);case 24:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),T=function(){var e,t=Fo(u.unMount);try{for(t.s();!(e=t.n()).done;){var n=e.value,o=Xo(i,n);o&&(o._f.refs?o._f.refs.every((function(e){return!Yr(e)})):!Yr(o._f.ref))&&B(n)}}catch(r){t.e(r)}finally{t.f()}u.unMount=new Set},x=function(e,t){return e&&t&&Er(a,e,t),!Kr(G(),s)},A=function(e,t,n){return wr(e,u,It({},l.mount?a:$o(t)?s:Cr(e)?Nt({},e,t):t),n,t)},D=function(e){return Qo(Xo(l.mount?a:s,e,t.shouldUnregister?Xo(s,e,[]):[]))},N=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Xo(i,e),r=t;if(o){var s=o._f;s&&(!s.disabled&&Er(a,e,ei(t,s)),r=Dr(s.ref)&&Bo(t)?"":t,qr(s.ref)?zt(s.ref.options).forEach((function(e){return e.selected=r.includes(e.value)})):s.refs?jo(s.ref)?s.refs.length>1?s.refs.forEach((function(e){return(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(r)?!!r.find((function(t){return t===e.value})):r===e.value)})):s.refs[0]&&(s.refs[0].checked=!!r):s.refs.forEach((function(e){return e.checked=e.value===r})):xr(s.ref)?s.ref.value="":(s.ref.value=r,s.ref.type||d.values.next({name:e,values:It({},a)})))}(n.shouldDirty||n.shouldTouch)&&E(e,r,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&k(e)},L=function e(t,n,o){for(var r in n){var s=n[r],a="".concat(t,".").concat(r),l=Xo(i,a);!u.array.has(t)&&zr(s)&&(!l||l._f)||Wo(s)?N(a,s,o):e(a,s,o)}},I=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=Xo(i,e),h=u.array.has(e),f=Yo(t);Er(a,e,f),h?(d.array.next({name:e,values:It({},a)}),(p.isDirty||p.dirtyFields)&&o.shouldDirty&&d.state.next({name:e,dirtyFields:Jr(s,a),isDirty:x(e,f)})):!c||c._f||Bo(f)?N(e,f,o):L(e,f,o),Or(e,u)&&d.state.next(It({},r)),d.values.next({name:e,values:It({},a)}),!l.mount&&n()},M=function(){var t=kt(Mt().mark((function t(n){var s,l,c,m,C,w,b,_,O,T,x,A,D,N,L,I,M,F;return Mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=n.target,l=s.name,c=!0,m=Xo(i,l),C=function(){return s.type?ti(m._f):Ko(n)},w=function(e){c=Number.isNaN(e)||e===Xo(a,l,e)},!m){t.next=45;break}if(O=C(),T=n.type===er||n.type===tr,x=!ri(m._f)&&!o.resolver&&!Xo(r.errors,l)&&!m._f.deps||si(T,Xo(r.touchedFields,l),r.isSubmitted,f,h),A=Or(l,u,T),Er(a,l,O),T?(m._f.onBlur&&m._f.onBlur(n),e&&e(0)):m._f.onChange&&m._f.onChange(n),D=E(l,O,T,!1),N=!gr(D)||A,!T&&d.values.next({name:l,type:n.type,values:It({},a)}),!x){t.next=19;break}return p.isValid&&v(),t.abrupt("return",N&&d.state.next(It({name:l},A?{}:D)));case 19:if(!T&&A&&d.state.next(It({},r)),y(!0),!o.resolver){t.next=30;break}return t.next=24,R([l]);case 24:L=t.sent,I=L.errors,w(O),c&&(M=ii(r.errors,i,l),F=ii(I,i,M.name||l),b=F.error,l=F.name,_=gr(I)),t.next=44;break;case 30:return t.next=32,Wr(m,a,g,o.shouldUseNativeValidation);case 32:if(t.t0=l,b=t.sent[t.t0],w(O),!c){t.next=44;break}if(!b){t.next=40;break}_=!1,t.next=44;break;case 40:if(!p.isValid){t.next=44;break}return t.next=43,P(i,!0);case 43:_=t.sent;case 44:c&&(m._f.deps&&k(m._f.deps),S(l,_,b,D));case 45:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),F=function(e,t){if(Xo(r.errors,t)&&e.focus)return e.focus(),1},k=function(){var e=kt(Mt().mark((function e(t){var n,s,a,l,c,h=arguments;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=h.length>1&&void 0!==h[1]?h[1]:{},l=vr(t),y(!0),!o.resolver){e.next=11;break}return e.next=6,O($o(t)?t:l);case 6:c=e.sent,s=gr(c),a=t?!l.some((function(e){return Xo(c,e)})):s,e.next=21;break;case 11:if(!t){e.next=18;break}return e.next=14,Promise.all(l.map(function(){var e=kt(Mt().mark((function e(t){var n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Xo(i,t),e.next=3,P(n&&n._f?Nt({},t,n):n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 14:((a=e.sent.every(Boolean))||r.isValid)&&v(),e.next=21;break;case 18:return e.next=20,P(i);case 20:a=s=e.sent;case 21:return d.state.next(It(It(It({},!Cr(t)||p.isValid&&s!==r.isValid?{}:{name:t}),o.resolver||!t?{isValid:s}:{}),{},{errors:r.errors,isValidating:!1})),n.shouldFocus&&!a&&Pr(i,F,t?l:u.mount),e.abrupt("return",a);case 24:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),G=function(e){var t=It(It({},s),l.mount?a:{});return $o(e)?t:Cr(e)?Xo(t,e):e.map((function(e){return Xo(t,e)}))},H=function(e,t){return{invalid:!!Xo((t||r).errors,e),isDirty:!!Xo((t||r).dirtyFields,e),isTouched:!!Xo((t||r).touchedFields,e),error:Xo((t||r).errors,e)}},V=function(e){e&&vr(e).forEach((function(e){return Br(r.errors,e)})),d.state.next({errors:e?r.errors:{}})},j=function(e,t,n){var o=(Xo(i,e,{_f:{}})._f||{}).ref;Er(r.errors,e,It(It({},t),{},{ref:o})),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},W=function(e,t){return Ar(e)?d.values.subscribe({next:function(n){return e(A(void 0,t),n)}}):A(e,t,!0)},B=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=Fo(e?vr(e):u.mount);try{for(l.s();!(t=l.n()).done;){var c=t.value;u.mount.delete(c),u.array.delete(c),n.keepValue||(Br(i,c),Br(a,c)),!n.keepError&&Br(r.errors,c),!n.keepDirty&&Br(r.dirtyFields,c),!n.keepTouched&&Br(r.touchedFields,c),!o.shouldUnregister&&!n.keepDefaultValue&&Br(s,c)}}catch(p){l.e(p)}finally{l.f()}d.values.next({values:It({},a)}),d.state.next(It(It({},r),n.keepDirty?{isDirty:x()}:{})),!n.keepIsValid&&v()},U=function(e){var t=e.disabled,n=e.name,o=e.field,r=e.fields,i=e.value;if(Jo(t)){var s=t?void 0:$o(i)?ti(o?o._f:Xo(r,n)._f):i;Er(a,n,s),E(n,s,!1,!1,!0)}},z=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Xo(i,t),a=Jo(n.disabled);return Er(i,t,It(It({},r||{}),{},{_f:It(It({},r&&r._f?r._f:{ref:{name:t}}),{},{name:t,mount:!0},n)})),u.mount.add(t),r?U({field:r,disabled:n.disabled,name:t,value:n.value}):_(t,!0,n.value),It(It(It({},a?{disabled:n.disabled}:{}),o.progressive?{required:!!n.required,min:oi(n.min),max:oi(n.max),minLength:oi(n.minLength),maxLength:oi(n.maxLength),pattern:oi(n.pattern)}:{}),{},{name:t,onChange:M,onBlur:M,ref:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(a){if(a){e(t,n),r=Xo(i,t);var c=$o(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,p=Zr(c),d=r._f.refs||[];if(p?d.find((function(e){return e===c})):c===r._f.ref)return;Er(i,t,{_f:It(It({},r._f),p?{refs:[].concat(zt(d.filter(Yr)),[c],zt(Array.isArray(Xo(s,t))?[{}]:[])),ref:{type:c.type,name:t}}:{ref:c})}),_(t,!1,void 0,c)}else(r=Xo(i,t,{}))._f&&(r._f.mount=!1),(o.shouldUnregister||n.shouldUnregister)&&(!qo(u.array,t)||!l.action)&&u.unMount.add(t)}))})},K=function(){return o.shouldFocusError&&Pr(i,F,u.mount)},q=function(e){Jo(e)&&(d.state.next({disabled:e}),Pr(i,(function(t,n){var o=e,r=Xo(i,n);r&&Jo(r._f.disabled)&&(o||(o=r._f.disabled)),t.disabled=o}),0,!1))},Z=function(e,t){return function(){var n=kt(Mt().mark((function n(s){var l,u,c,p,h;return Mt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l=void 0,s&&(s.preventDefault&&s.preventDefault(),s.persist&&s.persist()),u=Yo(a),d.state.next({isSubmitting:!0}),!o.resolver){n.next=14;break}return n.next=7,R();case 7:c=n.sent,p=c.errors,h=c.values,r.errors=p,u=h,n.next=16;break;case 14:return n.next=16,P(i);case 16:if(Br(r.errors,"root"),!gr(r.errors)){n.next=29;break}return d.state.next({errors:{}}),n.prev=19,n.next=22,e(u,s);case 22:n.next=27;break;case 24:n.prev=24,n.t0=n.catch(19),l=n.t0;case 27:n.next=34;break;case 29:if(!t){n.next=32;break}return n.next=32,t(It({},r.errors),s);case 32:K(),setTimeout(K);case 34:if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:gr(r.errors)&&!l,submitCount:r.submitCount+1,errors:r.errors}),!l){n.next=37;break}throw l;case 37:case"end":return n.stop()}}),n,null,[[19,24]])})));return function(e){return n.apply(this,arguments)}}()},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Xo(i,e)&&($o(t.defaultValue)?I(e,Yo(Xo(s,e))):(I(e,t.defaultValue),Er(s,e,Yo(t.defaultValue))),t.keepTouched||Br(r.touchedFields,e),t.keepDirty||(Br(r.dirtyFields,e),r.isDirty=t.defaultValue?x(e,Yo(Xo(s,e))):x()),t.keepError||(Br(r.errors,e),p.isValid&&v()),d.state.next(It({},r)))},Q=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=e?Yo(e):s,h=Yo(c),f=e&&!gr(e)?h:s;if(o.keepDefaultValues||(s=c),!o.keepValues){if(o.keepDirtyValues){var g,m=Fo(u.mount);try{for(m.s();!(g=m.n()).done;){var v=g.value;Xo(r.dirtyFields,v)?Er(f,v,Xo(a,v)):I(v,Xo(f,v))}}catch(S){m.e(S)}finally{m.f()}}else{if(Zo&&$o(e)){var y,C=Fo(u.mount);try{for(C.s();!(y=C.n()).done;){var w=y.value,b=Xo(i,w);if(b&&b._f){var _=Array.isArray(b._f.refs)?b._f.refs[0]:b._f.ref;if(Dr(_)){var E=_.closest("form");if(E){E.reset();break}}}}}catch(S){C.e(S)}finally{C.f()}}i={}}a=t.shouldUnregister?o.keepDefaultValues?Yo(s):{}:Yo(f),d.array.next({values:It({},f)}),d.values.next({values:It({},f)})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&n(),l.mount=!p.isValid||!!o.keepIsValid||!!o.keepDirtyValues,l.watch=!!t.shouldUnregister,d.state.next({submitCount:o.keepSubmitCount?r.submitCount:0,isDirty:o.keepDirty?r.isDirty:!(!o.keepDefaultValues||Kr(e,s)),isSubmitted:!!o.keepIsSubmitted&&r.isSubmitted,dirtyFields:o.keepDirtyValues?o.keepDefaultValues&&a?Jr(s,a):r.dirtyFields:o.keepDefaultValues&&e?Jr(s,e):{},touchedFields:o.keepTouched?r.touchedFields:{},errors:o.keepErrors?r.errors:{},isSubmitSuccessful:!!o.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},$=function(e,t){return Q(Ar(e)?e(a):e,t)},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Xo(i,e),o=n&&n._f;if(o){var r=o.refs?o.refs[0]:o.ref;r.focus&&(r.focus(),t.shouldSelect&&r.select())}},J=function(e){r=It(It({},r),e)},ee=function(){return Ar(o.defaultValues)&&o.defaultValues().then((function(e){$(e,o.resetOptions),d.state.next({isLoading:!1})}))};return{control:{register:z,unregister:B,getFieldState:H,handleSubmit:Z,setError:j,_executeSchema:R,_getWatch:A,_getDirty:x,_updateValid:v,_removeUnmounted:T,_updateFieldArray:C,_updateDisabledField:U,_getFieldArray:D,_reset:Q,_resetDefaultValues:ee,_updateFormState:J,_disableForm:q,_subjects:d,_proxyFormState:p,_setErrors:b,get _fields(){return i},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return s},get _names(){return u},set _names(e){u=e},get _formState(){return r},set _formState(e){r=e},get _options(){return o},set _options(e){o=It(It({},o),e)}},trigger:k,register:z,handleSubmit:Z,watch:W,setValue:I,getValues:G,reset:$,resetField:Y,clearErrors:V,unregister:B,setError:j,setFocus:X,getFieldState:H}}function ci(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s.useRef(),n=s.useRef(),o=s.useState({isDirty:!1,isValidating:!1,isLoading:Ar(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ar(e.defaultValues)?void 0:e.defaultValues}),i=r(o,2),a=i[0],l=i[1];t.current||(t.current=It(It({},ui(e,(function(){return l((function(e){return It({},e)}))}))),{},{formState:a}));var u=t.current.control;return u._options=e,yr({subject:u._subjects.state,next:function(e){mr(e,u._proxyFormState,u._updateFormState,!0)&&l(It({},u._formState))}}),s.useEffect((function(){return u._disableForm(e.disabled)}),[u,e.disabled]),s.useEffect((function(){if(u._proxyFormState.isDirty){var e=u._getDirty();e!==a.isDirty&&u._subjects.state.next({isDirty:e})}}),[u,a.isDirty]),s.useEffect((function(){e.values&&!Kr(e.values,n.current)?(u._reset(e.values,u._options.resetOptions),n.current=e.values,l((function(e){return It({},e)}))):u._resetDefaultValues()}),[e.values,u]),s.useEffect((function(){e.errors&&u._setErrors(e.errors)}),[e.errors,u]),s.useEffect((function(){u._state.mount||(u._updateValid(),u._state.mount=!0),u._state.watch&&(u._state.watch=!1,u._subjects.state.next(It({},u._formState))),u._removeUnmounted()})),s.useEffect((function(){e.shouldUnregister&&u._subjects.values.next({values:u._getWatch()})}),[e.shouldUnregister,u]),t.current.formState=fr(a,u),t.current}var pi=n(1933),di=(0,s.createContext)({});function hi(e){var t=e.children,n=r((0,s.useState)(null),2),o=n[0],i=n[1];(0,s.useEffect)((function(){function e(){return(e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,co.getMods();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var a=function(e){var t=r((0,s.useState)(!0),2),n=t[0],o=t[1],i=r((0,s.useState)(0),2),a=i[0],l=i[1],u=r((0,s.useState)([]),2),c=u[0],p=u[1],d=function(e){"load"===e.type&&l((function(e){return e+1})),"error"===e.type&&(console.error("Failed to load ".concat(e.target.href||e.target.src)),l((function(e){return e+1})))};return(0,s.useEffect)((function(){if(e){var t,n=e.filter((function(e){return e.web})),o=Fo(n.map((function(e){return e.web.bundle})));try{for(o.s();!(t=o.n()).done;){var r=t.value;if(r&&!document.querySelector('script[src="'.concat(r,'"]'))){var i=document.createElement("script");i.type="text/javascript",i.src=r,i.async=!0,document.body.appendChild(i),i.addEventListener("load",d),i.addEventListener("error",d)}}}catch(c){o.e(c)}finally{o.f()}var s,a=Fo(n.map((function(e){return e.web.css})));try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l&&!document.querySelector('link[href="'.concat(l,'"]'))){var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.href=l,document.head.appendChild(u),u.addEventListener("load",d),u.addEventListener("error",d)}}}catch(c){a.e(c)}finally{a.f()}}}),[e]),(0,s.useEffect)((function(){if(e){var t=e.filter((function(e){return e.web})),n=t.reduce((function(e,t){return t.web.bundle&&(e+=1),t.web.css&&(e+=1),e}),0);if(a===n){var r=t.filter((function(e){return window[e.name]})).map((function(e){return It(It({},e),{},{external:window[e.name]})}));p(r),o(!1)}}}),[e,a]),n?{loading:n,loadedResources:a}:{loading:n,webMods:c}}(o),l=a.webMods,u=a.loading;l&&!u&&l.length!==o.filter((function(e){return e.web})).length&&console.error("Mods length mismatch, are all IDs mapped correctly between js mods and backend response?",l,o);var c=[];return l&&l.forEach((function(e){for(var t in e.external.routes)if(Object.hasOwnProperty.call(e.external.routes,t)){var n=e.external.routes[t],o=e.name.toLowerCase().split(" ").join("");c.push({path:"mods/".concat(o,"/").concat(t),name:t,element:gi(n,{React:s})})}})),l||(l=[]),(0,ho.jsx)(di.Provider,{value:{mods:o,webMods:l,modRoutes:c},children:t})}function fi(){return(0,s.useContext)(di)}function gi(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.createElement)(t,It({React:s,styled:xt,HTTP:co,Table:_o,EditableTable:Eo,FormElements:e,TfpForm:Mo,useForm:ci,useQuery:pi.useQuery,useMutation:pi.useMutation},n))}var mi=n.p+"files/static/media/7d2d-logo.fb3c6004228951242783.png",vi=n.p+"files/static/media/7d2d-square.8d1f92bcf774cf9ed887.webp",yi="webevent.log",Ci="webapi.Animal",wi="webapi.Command",bi="webapi.Hostile",_i="webapi.Log",Ei="webapi.Player",Si="webapi.ServerStats",Ri="webapi.Mods",Oi="web.map";function Pi(){return Ti.apply(this,arguments)}function Ti(){return(Ti=kt(Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",co.get("/userstatus"));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var xi=(0,s.createContext)({status:{loggedin:!1}});function Ai(e){var t=e.children,n=r((0,s.useState)({}),2),o=n[0],i=n[1],a=r((0,s.useState)(!0),2),l=a[0],u=a[1],c=r((0,s.useState)([]),2),p=c[0],d=c[1];function h(){return f.apply(this,arguments)}function f(){return f=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pi();case 2:t=e.sent,i(t),d(t.permissions),u(!1);case 6:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}return(0,s.useEffect)((function(){h()}),[]),l?null:(0,ho.jsx)(xi.Provider,{value:{status:o,loading:l,permissions:p,checkPermission:function(e){for(var t=Array.isArray(e)?e:[e],n=function(e){var n=o.permissions.find((function(n){return n.module.toLowerCase()===t[e].module.toLowerCase()}));if(!n||!n.allowed[t[e].method])return{v:!1}},r=0;r<t.length;r++){var i=n(r);if("object"===typeof i)return i.v}return!0},refreshStatus:h},children:t})}function Di(){return(0,s.useContext)(xi)}var Ni=n(7948),Li=n.n(Ni),Ii=xt.div.withConfig({displayName:"button__ButtonContainer",componentId:"sc-13s7063-0"})(["background-color:",";color:",";border-radius:5px;padding:0.5rem;width:fit-content;cursor:pointer;margin:0.25rem;"],(function(e){return e.theme.colors.tfpDarkGrey}),(function(e){return e.theme.colors.tfpWhite}));function Mi(e){return(0,ho.jsx)(Ii,{onClick:e.onClick,children:e.text})}var Fi=xt.form.withConfig({displayName:"loginForm__FormContainer",componentId:"sc-gwxwcm-0"})(["margin:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;"]),ki=xt.input.withConfig({displayName:"loginForm__StyledInput",componentId:"sc-gwxwcm-1"})(["margin-top:1rem;margin-bottom:1rem;border-radius:5px;outline:none;"]);function Gi(e){var t=e.onSubmit,n=r((0,s.useState)(""),2),o=n[0],i=n[1],a=r((0,s.useState)(""),2),l=a[0],u=a[1];return(0,ho.jsxs)(Fi,{onSubmit:function(e){return t(e,o,l)},children:[(0,ho.jsx)("label",{htmlFor:"username",children:"Username"}),(0,ho.jsx)(ki,{id:"username",type:"text",value:o,onChange:function(e){i(e.target.value)}}),(0,ho.jsx)("label",{htmlFor:"password",children:"Password"}),(0,ho.jsx)(ki,{id:"password",type:"password",value:l,onChange:function(e){u(e.target.value)}}),(0,ho.jsx)(Mi,{text:"Submit",onClick:function(e){return t(e,o,l)}}),(0,ho.jsx)("input",{type:"submit",hidden:!0})]})}Li().setAppElement("#root");var Hi=xt.div.withConfig({displayName:"loginModal__Container",componentId:"sc-1yk7ggv-0"})(["margin:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;"]),Vi=xt.p.withConfig({displayName:"loginModal__ErrorMessage",componentId:"sc-1yk7ggv-1"})(["color:",";font-size:14px;margin-top:10px;"],(function(e){return e.theme.colors.tfpRed}));function ji(e){var t=e.OpenComponent,n=e.modalIsOpen,o=e.setIsModalOpen,i=Tt(),a=r((0,s.useState)(null),2),l=a[0],u=a[1],c={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",backgroundColor:i.colors.tfpDarkGrey80,color:i.colors.tfpWhite},overlay:{zIndex:1e3,backgroundColor:i.colors.tfpDarkGrey60}};return(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)("div",{onClick:function(){o(!0)},children:t}),(0,ho.jsxs)(Li(),{isOpen:n,onRequestClose:function(){o(!1)},style:c,contentLabel:"Example Modal",children:[(0,ho.jsx)(Hi,{children:(0,ho.jsx)("p",{children:'If you do not have an account yet, you can create one by executing the "createwebuser" command ingame'})}),(0,ho.jsx)("hr",{}),(0,ho.jsx)(Gi,{onSubmit:function(e,t,n){e.preventDefault(),co.login(t,n).then((function(e){location.reload()})).catch((function(e){console.error(e),u(e.response.data)}))}}),l&&(0,ho.jsx)(Vi,{children:l})]})]})}var Wi={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Bi=s.createContext&&s.createContext(Wi),Ui=function(){return Ui=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ui.apply(this,arguments)},zi=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ki(e){return e&&e.map((function(e,t){return s.createElement(e.tag,Ui({key:t},e.attr),Ki(e.child))}))}function qi(e){return function(t){return s.createElement(Zi,Ui({attr:Ui({},e.attr)},t),Ki(e.child))}}function Zi(e){var t=function(t){var n,o=e.attr,r=e.size,i=e.title,a=zi(e,["attr","size","title"]),l=r||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),s.createElement("svg",Ui({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,a,{className:n,style:Ui(Ui({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&s.createElement("title",null,i),e.children)};return void 0!==Bi?s.createElement(Bi.Consumer,null,(function(e){return t(e)})):t(Wi)}function Yi(e){return qi({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}},{tag:"polyline",attr:{points:"10 17 15 12 10 7"}},{tag:"line",attr:{x1:"15",y1:"12",x2:"3",y2:"12"}}]})(e)}function Qi(e){return qi({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}},{tag:"polyline",attr:{points:"16 17 21 12 16 7"}},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"}}]})(e)}function $i(e){var t=e.collapsed,n=Di().status,o=r((0,s.useState)(!1),2),i=o[0],a=o[1],l=(0,ho.jsx)(Du,{collapsed:t,icon:(0,ho.jsx)(Yi,{}),title:"Log in",to:"#"});return n.loggedIn?(0,ho.jsx)(Du,{collapsed:t,icon:(0,ho.jsx)(Qi,{}),title:"Log out",to:"../session/logout",external:!0}):(0,ho.jsx)(ji,{modalIsOpen:i,setIsModalOpen:a,OpenComponent:l})}var Xi=xt(Q).withConfig({displayName:"NavLink",componentId:"sc-pj17un-0"})(["color:",";text-decoration:none;"],(function(e){return e.theme.colors.tfpWhite})),Ji=n(2007),es=n.n(Ji),ts=function(e){var t=e.requiredPermission,n=e.children,o=Di().checkPermission;if(!t)throw new Error("requiredPermission is required");return o(t)?n:null};function ns(e){return qi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"}}]})(e)}function os(e){return qi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function rs(e){return qi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function is(e){return qi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"}}]})(e)}function ss(e){return qi({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"}}]})(e)}function as(e){return qi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"}}]})(e)}function ls(e){return qi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function us(e){return qi({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function cs(e){return qi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"}}]})(e)}function ps(e){return qi({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"}}]})(e)}function ds(e){return qi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"}}]})(e)}function hs(e){return qi({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"}}]})(e)}function fs(e){return qi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}}]})(e)}function gs(e){return qi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}}]})(e)}function ms(e){return qi({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"}}]})(e)}function vs(e){return qi({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"}}]})(e)}function ys(e){return qi({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"}}]})(e)}ts.propTypes={requiredPermission:es().shape({module:es().string.isRequired,method:es().string.isRequired}).isRequired,children:es().node.isRequired};var Cs="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),ws=new Uint8Array(16);function bs(){if(!Cs)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cs(ws)}for(var _s=[],Es=0;Es<256;++Es)_s[Es]=(Es+256).toString(16).substr(1);var Ss=function(e,t){var n=t||0,o=_s;return[o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]]].join("")};var Rs=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||bs)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var i=0;i<16;++i)t[o+i]=r[i];return t||Ss(r)};function Os(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ps(e,t,n){return t&&Os(e.prototype,t),n&&Os(e,n),e}function Ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xs(){return xs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xs.apply(this,arguments)}function As(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach((function(t){Ts(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ns(e)}function Ls(e,t){return Ls=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ls(e,t)}function Is(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var Ms={HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"},Fs=function(e,t){var n;"function"===typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(n)};var ks=function(e,t){var n=this.state.show,o=this.props.id,r=this.isCapture(t.currentTarget),i=t.currentTarget.getAttribute("currentItem");r||t.stopPropagation(),n&&"true"===i?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),Gs(t.currentTarget,this.getTargetArray(o)),this.showTooltip(t))},Gs=function(e,t){for(var n=0;n<t.length;n++)e!==t[n]?t[n].setAttribute("currentItem","false"):t[n].setAttribute("currentItem","true")},Hs={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,n){this.id in e?e[this.id][t]=n:Object.defineProperty(e,this.id,{configurable:!0,value:Ts({},t,n)})},get:function(e,t){var n=e[this.id];if(void 0!==n)return n[t]}};var Vs=function(e,t,n){var o=t.respectEffect,r=void 0!==o&&o,i=t.customEvent,s=void 0!==i&&i,a=this.props.id,l=n.target.getAttribute("data-tip")||null,u=n.target.getAttribute("data-for")||null,c=n.target;if(!this.isCustomEvent(c)||s){var p=null==a&&null==u||u===a;if(null!=l&&(!r||"float"===this.getEffect(c))&&p){var d=function(e){var t={};for(var n in e)"function"===typeof e[n]?t[n]=e[n].bind(e):t[n]=e[n];return t}(n);d.currentTarget=c,e(d)}}},js=function(e,t){var n={};return e.forEach((function(e){var o=e.getAttribute(t);o&&o.split(" ").forEach((function(e){return n[e]=!0}))})),n},Ws=function(){return document.getElementsByTagName("body")[0]};function Bs(e,t,n,o,r,i,s){for(var a=Us(n),l=a.width,u=a.height,c=Us(t),p=c.width,d=c.height,h=zs(e,t,i),f=h.mouseX,g=h.mouseY,m=Ks(i,p,d,l,u),v=qs(s),y=v.extraOffsetX,C=v.extraOffsetY,w=window.innerWidth,b=window.innerHeight,_=Zs(n),E=_.parentTop,S=_.parentLeft,R=function(e){var t=m[e].l;return f+t+y},O=function(e){var t=m[e].t;return g+t+C},P=function(e){return function(e){var t=m[e].r;return f+t+y}(e)>w},T=function(e){return function(e){var t=m[e].b;return g+t+C}(e)>b},x=function(e){return function(e){return R(e)<0}(e)||P(e)||function(e){return O(e)<0}(e)||T(e)},A=function(e){return!x(e)},D=["top","bottom","left","right"],N=[],L=0;L<4;L++){var I=D[L];A(I)&&N.push(I)}var M,F=!1,k=r!==o;return A(r)&&k?(F=!0,M=r):N.length>0&&x(r)&&x(o)&&(F=!0,M=N[0]),F?{isNewState:!0,newState:{place:M}}:{isNewState:!1,position:{left:parseInt(R(o)-S,10),top:parseInt(O(o)-E,10)}}}var Us=function(e){var t=e.getBoundingClientRect(),n=t.height,o=t.width;return{height:parseInt(n,10),width:parseInt(o,10)}},zs=function(e,t,n){var o=t.getBoundingClientRect(),r=o.top,i=o.left,s=Us(t),a=s.width,l=s.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+a/2,mouseY:r+l/2}},Ks=function(e,t,n,o,r){var i,s,a,l;return"float"===e?(i={l:-o/2,r:o/2,t:-(r+3+2),b:-3},a={l:-o/2,r:o/2,t:15,b:r+3+2+12},l={l:-(o+3+2),r:-3,t:-r/2,b:r/2},s={l:3,r:o+3+2,t:-r/2,b:r/2}):"solid"===e&&(i={l:-o/2,r:o/2,t:-(n/2+r+2),b:-n/2},a={l:-o/2,r:o/2,t:n/2,b:n/2+r+2},l={l:-(o+t/2+2),r:-t/2,t:-r/2,b:r/2},s={l:t/2,r:o+t/2+2,t:-r/2,b:r/2}),{top:i,bottom:a,left:l,right:s}},qs=function(e){var t=0,n=0;for(var o in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===o?n-=parseInt(e[o],10):"bottom"===o?n+=parseInt(e[o],10):"left"===o?t-=parseInt(e[o],10):"right"===o&&(t+=parseInt(e[o],10));return{extraOffsetX:t,extraOffsetY:n}},Zs=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function Ys(e,t,n,o){if(t)return t;if(void 0!==n&&null!==n)return n;if(null===n)return null;var r=/<br\s*\/?>/;return o&&"false"!==o&&r.test(e)?e.split(r).map((function(e,t){return s.createElement("span",{key:t,className:"multi-line"},e)})):e}function Qs(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function $s(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var Xs={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function Js(e,t,n,o){return function(e,t){var n=t.text,o=t.background,r=t.border,i=t.arrow;return"\n \t.".concat(e," {\n\t color: ").concat(n,";\n\t background: ").concat(o,";\n\t border: 1px solid ").concat(r,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,".place-top::before {\n border-top: 8px solid ").concat(r,";\n }\n .").concat(e,".place-top::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n border-top-color: ").concat(i,";\n border-top-style: solid;\n border-top-width: 6px;\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,".place-bottom::before {\n border-bottom: 8px solid ").concat(r,";\n }\n .").concat(e,".place-bottom::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n border-bottom-color: ").concat(i,";\n border-bottom-style: solid;\n border-bottom-width: 6px;\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,".place-left::before {\n border-left: 8px solid ").concat(r,";\n }\n .").concat(e,".place-left::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n border-left-color: ").concat(i,";\n border-left-style: solid;\n border-left-width: 6px;\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,".place-right::before {\n border-right: 8px solid ").concat(r,";\n }\n .").concat(e,".place-right::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n border-right-color: ").concat(i,";\n border-right-style: solid;\n border-right-width: 6px;\n }\n ")}(e,function(e,t,n){var o=e.text,r=e.background,i=e.border,s=e.arrow?e.arrow:e.background,a=function(e){return Xs[e]?Ds({},Xs[e]):void 0}(t);o&&(a.text=o);r&&(a.background=r);n&&(a.border=i||("light"===t?"black":"white"));s&&(a.arrow=s);return a}(t,n,o))}var ea="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function ta(e,t){return e(t={exports:{}},t.exports),t.exports}var na=function(e){return e&&e.Math==Math&&e},oa=na("object"==typeof globalThis&&globalThis)||na("object"==typeof window&&window)||na("object"==typeof self&&self)||na("object"==typeof ea&&ea)||function(){return this}()||Function("return this")(),ra=function(e){try{return!!e()}catch(t){return!0}},ia=!ra((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),sa={}.propertyIsEnumerable,aa=Object.getOwnPropertyDescriptor,la=aa&&!sa.call({1:2},1)?function(e){var t=aa(this,e);return!!t&&t.enumerable}:sa,ua={f:la},ca=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pa={}.toString,da=function(e){return pa.call(e).slice(8,-1)},ha="".split,fa=ra((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==da(e)?ha.call(e,""):Object(e)}:Object,ga=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},ma=function(e){return fa(ga(e))},va=function(e){return"object"===typeof e?null!==e:"function"===typeof e},ya=function(e,t){if(!va(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!va(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!va(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!va(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")},Ca=function(e){return Object(ga(e))},wa={}.hasOwnProperty,ba=function(e,t){return wa.call(Ca(e),t)},_a=oa.document,Ea=va(_a)&&va(_a.createElement),Sa=function(e){return Ea?_a.createElement(e):{}},Ra=!ia&&!ra((function(){return 7!=Object.defineProperty(Sa("div"),"a",{get:function(){return 7}}).a})),Oa=Object.getOwnPropertyDescriptor,Pa=ia?Oa:function(e,t){if(e=ma(e),t=ya(t,!0),Ra)try{return Oa(e,t)}catch(n){}if(ba(e,t))return ca(!ua.f.call(e,t),e[t])},Ta={f:Pa},xa=function(e){if(!va(e))throw TypeError(String(e)+" is not an object");return e},Aa=Object.defineProperty,Da=ia?Aa:function(e,t,n){if(xa(e),t=ya(t,!0),xa(n),Ra)try{return Aa(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Na={f:Da},La=ia?function(e,t,n){return Na.f(e,t,ca(1,n))}:function(e,t,n){return e[t]=n,e},Ia=function(e,t){try{La(oa,e,t)}catch(n){oa[e]=t}return t},Ma="__core-js_shared__",Fa=oa[Ma]||Ia(Ma,{}),ka=Function.toString;"function"!=typeof Fa.inspectSource&&(Fa.inspectSource=function(e){return ka.call(e)});var Ga,Ha,Va,ja=Fa.inspectSource,Wa=oa.WeakMap,Ba="function"===typeof Wa&&/native code/.test(ja(Wa)),Ua=ta((function(e){(e.exports=function(e,t){return Fa[e]||(Fa[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),za=0,Ka=Math.random(),qa=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++za+Ka).toString(36)},Za=Ua("keys"),Ya=function(e){return Za[e]||(Za[e]=qa(e))},Qa={},$a="Object already initialized",Xa=oa.WeakMap;if(Ba||Fa.state){var Ja=Fa.state||(Fa.state=new Xa),el=Ja.get,tl=Ja.has,nl=Ja.set;Ga=function(e,t){if(tl.call(Ja,e))throw new TypeError($a);return t.facade=e,nl.call(Ja,e,t),t},Ha=function(e){return el.call(Ja,e)||{}},Va=function(e){return tl.call(Ja,e)}}else{var ol=Ya("state");Qa[ol]=!0,Ga=function(e,t){if(ba(e,ol))throw new TypeError($a);return t.facade=e,La(e,ol,t),t},Ha=function(e){return ba(e,ol)?e[ol]:{}},Va=function(e){return ba(e,ol)}}var rl,il,sl={set:Ga,get:Ha,has:Va,enforce:function(e){return Va(e)?Ha(e):Ga(e,{})},getterFor:function(e){return function(t){var n;if(!va(t)||(n=Ha(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},al=ta((function(e){var t=sl.get,n=sl.enforce,o=String(String).split("String");(e.exports=function(e,t,r,i){var s,a=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof r&&("string"!=typeof t||ba(r,"name")||La(r,"name",t),(s=n(r)).source||(s.source=o.join("string"==typeof t?t:""))),e!==oa?(a?!u&&e[t]&&(l=!0):delete e[t],l?e[t]=r:La(e,t,r)):l?e[t]=r:Ia(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||ja(this)}))})),ll=oa,ul=function(e){return"function"==typeof e?e:void 0},cl=function(e,t){return arguments.length<2?ul(ll[e])||ul(oa[e]):ll[e]&&ll[e][t]||oa[e]&&oa[e][t]},pl=Math.ceil,dl=Math.floor,hl=function(e){return isNaN(e=+e)?0:(e>0?dl:pl)(e)},fl=Math.min,gl=function(e){return e>0?fl(hl(e),9007199254740991):0},ml=Math.max,vl=Math.min,yl=function(e){return function(t,n,o){var r,i=ma(t),s=gl(i.length),a=function(e,t){var n=hl(e);return n<0?ml(n+t,0):vl(n,t)}(o,s);if(e&&n!=n){for(;s>a;)if((r=i[a++])!=r)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},Cl={includes:yl(!0),indexOf:yl(!1)}.indexOf,wl=function(e,t){var n,o=ma(e),r=0,i=[];for(n in o)!ba(Qa,n)&&ba(o,n)&&i.push(n);for(;t.length>r;)ba(o,n=t[r++])&&(~Cl(i,n)||i.push(n));return i},bl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_l=bl.concat("length","prototype"),El=Object.getOwnPropertyNames||function(e){return wl(e,_l)},Sl={f:El},Rl={f:Object.getOwnPropertySymbols},Ol=cl("Reflect","ownKeys")||function(e){var t=Sl.f(xa(e)),n=Rl.f;return n?t.concat(n(e)):t},Pl=function(e,t){for(var n=Ol(t),o=Na.f,r=Ta.f,i=0;i<n.length;i++){var s=n[i];ba(e,s)||o(e,s,r(t,s))}},Tl=/#|\.prototype\./,xl=function(e,t){var n=Dl[Al(e)];return n==Ll||n!=Nl&&("function"==typeof t?ra(t):!!t)},Al=xl.normalize=function(e){return String(e).replace(Tl,".").toLowerCase()},Dl=xl.data={},Nl=xl.NATIVE="N",Ll=xl.POLYFILL="P",Il=xl,Ml=Ta.f,Fl=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}},kl=Array.isArray||function(e){return"Array"==da(e)},Gl=cl("navigator","userAgent")||"",Hl=oa.process,Vl=Hl&&Hl.versions,jl=Vl&&Vl.v8;jl?il=(rl=jl.split("."))[0]<4?1:rl[0]+rl[1]:Gl&&(!(rl=Gl.match(/Edge\/(\d+)/))||rl[1]>=74)&&(rl=Gl.match(/Chrome\/(\d+)/))&&(il=rl[1]);var Wl,Bl=il&&+il,Ul=!!Object.getOwnPropertySymbols&&!ra((function(){return!String(Symbol())||!Symbol.sham&&Bl&&Bl<41})),zl=Ul&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Kl=Ua("wks"),ql=oa.Symbol,Zl=zl?ql:ql&&ql.withoutSetter||qa,Yl=function(e){return ba(Kl,e)&&(Ul||"string"==typeof Kl[e])||(Ul&&ba(ql,e)?Kl[e]=ql[e]:Kl[e]=Zl("Symbol."+e)),Kl[e]},Ql=Yl("species"),$l=function(e,t){var n;return kl(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!kl(n.prototype)?va(n)&&null===(n=n[Ql])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Xl=[].push,Jl=function(e){var t=1==e,n=2==e,o=3==e,r=4==e,i=6==e,s=7==e,a=5==e||i;return function(l,u,c,p){for(var d,h,f=Ca(l),g=fa(f),m=Fl(u,c,3),v=gl(g.length),y=0,C=p||$l,w=t?C(l,v):n||s?C(l,0):void 0;v>y;y++)if((a||y in g)&&(h=m(d=g[y],y,f),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Xl.call(w,d)}else switch(e){case 4:return!1;case 7:Xl.call(w,d)}return i?-1:o||r?r:w}},eu={forEach:Jl(0),map:Jl(1),filter:Jl(2),some:Jl(3),every:Jl(4),find:Jl(5),findIndex:Jl(6),filterOut:Jl(7)},tu=Object.keys||function(e){return wl(e,bl)},nu=ia?Object.defineProperties:function(e,t){xa(e);for(var n,o=tu(t),r=o.length,i=0;r>i;)Na.f(e,n=o[i++],t[n]);return e},ou=cl("document","documentElement"),ru=Ya("IE_PROTO"),iu=function(){},su=function(e){return"<script>"+e+"</"+"script>"},au=function(){try{Wl=document.domain&&new ActiveXObject("htmlfile")}catch(t){}au=Wl?function(e){e.write(su("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Wl):function(){var e,t=Sa("iframe");return t.style.display="none",ou.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(su("document.F=Object")),e.close(),e.F}();for(var e=bl.length;e--;)delete au.prototype[bl[e]];return au()};Qa[ru]=!0;var lu=Object.create||function(e,t){var n;return null!==e?(iu.prototype=xa(e),n=new iu,iu.prototype=null,n[ru]=e):n=au(),void 0===t?n:nu(n,t)},uu=Yl("unscopables"),cu=Array.prototype;void 0==cu[uu]&&Na.f(cu,uu,{configurable:!0,value:lu(null)});var pu,du,hu,fu,gu=eu.find,mu="find",vu=!0;mu in[]&&Array(1).find((function(){vu=!1})),function(e,t){var n,o,r,i,s,a=e.target,l=e.global,u=e.stat;if(n=l?oa:u?oa[a]||Ia(a,{}):(oa[a]||{}).prototype)for(o in t){if(i=t[o],r=e.noTargetGet?(s=Ml(n,o))&&s.value:n[o],!Il(l?o:a+(u?".":"#")+o,e.forced)&&void 0!==r){if(typeof i===typeof r)continue;Pl(i,r)}(e.sham||r&&r.sham)&&La(i,"sham",!0),al(n,o,i,e)}}({target:"Array",proto:!0,forced:vu},{find:function(e){return gu(this,e,arguments.length>1?arguments[1]:void 0)}}),pu=mu,cu[uu][pu]=!0;var yu,Cu=function(e){e.hide=function(e){Fs(Ms.HIDE,{target:e})},e.rebuild=function(){Fs(Ms.REBUILD)},e.show=function(e){Fs(Ms.SHOW,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(du=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(Ms.HIDE,this.globalHide),window.addEventListener(Ms.HIDE,this.globalHide,!1),window.removeEventListener(Ms.REBUILD,this.globalRebuild),window.addEventListener(Ms.REBUILD,this.globalRebuild,!1),window.removeEventListener(Ms.SHOW,this.globalShow),window.addEventListener(Ms.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(Ms.HIDE,this.globalHide),window.removeEventListener(Ms.REBUILD,this.globalRebuild),window.removeEventListener(Ms.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(du=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,n=this.state,o=n.event,r=n.eventOff,i=e.getAttribute("data-event")||o,s=e.getAttribute("data-event-off")||r;i.split(" ").forEach((function(n){e.removeEventListener(n,Hs.get(e,n));var o=ks.bind(t,s);Hs.set(e,n,o),e.addEventListener(n,o,!1)})),s&&s.split(" ").forEach((function(n){e.removeEventListener(n,t.hideTooltip),e.addEventListener(n,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,n=t.event,o=t.eventOff,r=n||e.getAttribute("data-event"),i=o||e.getAttribute("data-event-off");e.removeEventListener(r,Hs.get(e,n)),i&&e.removeEventListener(i,this.hideTooltip)}}(du=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(du=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(du=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,o=n.event,r=n.eventOff,i=n.possibleCustomEvents,s=n.possibleCustomEventsOff,a=Ws(),l=js(e,"data-event"),u=js(e,"data-event-off");null!=o&&(l[o]=!0),null!=r&&(u[r]=!0),i.split(" ").forEach((function(e){return l[e]=!0})),s.split(" ").forEach((function(e){return u[e]=!0})),this.unbindBodyListener(a);var c=this.bodyModeListeners={};for(var p in null==o&&(c.mouseover=Vs.bind(this,this.showTooltip,{}),c.mousemove=Vs.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=Vs.bind(this,this.hideTooltip,{})),l)c[p]=Vs.bind(this,(function(e){var n=e.currentTarget.getAttribute("data-event-off")||r;ks.call(t,n,e)}),{customEvent:!0});for(var d in u)c[d]=Vs.bind(this,this.hideTooltip,{customEvent:!0});for(var h in c)a.addEventListener(h,c[h])},e.prototype.unbindBodyListener=function(e){e=e||Ws();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((fu=hu=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Is(this,Ns(t).call(this,e))).state={uuid:e.uuid||"t"+Rs(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:Qs(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},n.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),n.mount=!0,n.delayShowLoop=null,n.delayHideLoop=null,n.delayReshow=null,n.intervalUpdateContent=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ls(e,t)}(t,e),Ps(t,null,[{key:"propTypes",get:function(){return{uuid:es().string,children:es().any,place:es().string,type:es().string,effect:es().string,offset:es().object,multiline:es().bool,border:es().bool,textColor:es().string,backgroundColor:es().string,borderColor:es().string,arrowColor:es().string,insecure:es().bool,class:es().string,className:es().string,id:es().string,html:es().bool,delayHide:es().number,delayUpdate:es().number,delayShow:es().number,event:es().string,eventOff:es().string,isCapture:es().bool,globalEventOff:es().string,getContent:es().any,afterShow:es().func,afterHide:es().func,overridePosition:es().func,disable:es().bool,scrollHide:es().bool,resizeHide:es().bool,wrapper:es().string,bodyMode:es().bool,possibleCustomEvents:es().string,possibleCustomEventsOff:es().string,clickable:es().bool}}}]),Ps(t,[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props,t=(e.insecure,e.resizeHide);this.bindListener(),this.bindWindowEvents(t),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.tooltipRef;if(e){for(var t,n=e.parentNode;n.parentNode;)n=n.parentNode;switch(n.constructor.name){case"Document":case"HTMLDocument":case void 0:t=n.head;break;default:t=n}if(!t.querySelector("style[data-react-tooltip]")){var o=document.createElement("style");o.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',o.setAttribute("data-react-tooltip","true"),t.appendChild(o)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,n=[];if(e){var o=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(o,'"]')}else t="[data-tip]:not([data-for])";return $s(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat($s(e.shadowRoot.querySelectorAll(t)))})),n.concat($s(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,o=t.globalEventOff,r=t.isCapture,i=this.getTargetArray(n);i.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(i):i.forEach((function(t){var n=e.isCapture(t),o=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),t.addEventListener("focus",e.showTooltip,n),"float"===o&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n),t.addEventListener("blur",e.hideTooltip,n))})),o&&(window.removeEventListener(o,this.hideTooltip),window.addEventListener(o,this.hideTooltip,r)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,o=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),o&&window.removeEventListener(o,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,n=t.getContent,o=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),Ys(this.state.originTooltip,o,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"===typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var n=this.props,o=n.multiline,r=n.getContent,i=e.currentTarget.getAttribute("data-tip"),s=e.currentTarget.getAttribute("data-multiline")||o||!1,a=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.state.uuid);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=a?"solid":this.getEffect(e.currentTarget),p=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=Bs(e,e.currentTarget,this.tooltipRef,u,u,c,p);d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,e,e.currentTarget,this.tooltipRef,u,u,c,p));var h=d.isNewState?d.newState.place:u;this.clearTimer();var f=e.currentTarget,g=this.state.show?f.getAttribute("data-delay-update")||this.props.delayUpdate:0,m=this,v=function(){m.setState({originTooltip:i,isMultiline:s,desiredPlace:u,place:h,type:f.getAttribute("data-type")||m.props.type||"dark",customColors:{text:f.getAttribute("data-text-color")||m.props.textColor||null,background:f.getAttribute("data-background-color")||m.props.backgroundColor||null,border:f.getAttribute("data-border-color")||m.props.borderColor||null,arrow:f.getAttribute("data-arrow-color")||m.props.arrowColor||null},effect:c,offset:p,html:(f.getAttribute("data-html")?"true"===f.getAttribute("data-html"):m.props.html)||!1,delayShow:f.getAttribute("data-delay-show")||m.props.delayShow||0,delayHide:f.getAttribute("data-delay-hide")||m.props.delayHide||0,delayUpdate:f.getAttribute("data-delay-update")||m.props.delayUpdate||0,border:(f.getAttribute("data-border")?"true"===f.getAttribute("data-border"):m.props.border)||!1,extraClass:f.getAttribute("data-class")||m.props.class||m.props.className||"",disable:(f.getAttribute("data-tip-disable")?"true"===f.getAttribute("data-tip-disable"):m.props.disable)||!1,currentTarget:f},(function(){l&&m.addScrollListener(m.state.currentTarget),m.updateTooltip(e),r&&Array.isArray(r)&&(m.intervalUpdateContent=setInterval((function(){if(m.mount){var e=m.props.getContent,t=Ys(i,"",e[0](),s),n=m.isEmptyTip(t);m.setState({isEmptyTip:n}),m.updatePosition()}}),r[1]))}))};g?this.delayReshow=setTimeout(v,g):v()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,o=n.delayShow,r=n.disable,i=this.props.afterShow,s=this.getTooltipContent(),a=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(s)&&!r){var l=this.state.show?0:parseInt(o,10),u=function(){if(Array.isArray(s)&&s.length>0||s){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:a,show:!0},(function(){t.updatePosition(),n&&i&&i(e)}))}};clearTimeout(this.delayShowLoop),l?this.delayShowLoop=setTimeout(u,l):u()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},r=this.state.disable,i=o.isScroll,s=i?0:this.state.delayHide,a=this.props.afterHide,l=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(l)&&!r){if(t){var u=this.getTargetArray(this.props.id),c=u.some((function(t){return t===e.currentTarget}));if(!c||!this.state.show)return}e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var p=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(n.state.currentTarget),t&&a&&a(e)})))};this.clearTimer(),s?this.delayHideLoop=setTimeout(p,parseInt(s,10)):p()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,o=t.currentTarget,r=t.place,i=t.desiredPlace,s=t.effect,a=t.offset,l=this.tooltipRef,u=Bs(n,o,l,r,i,s,a);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,n,o,l,r,i,s,a)),u.isNewState)return this.setState(u.newState,(function(){e.updatePosition()}));l.style.left=u.position.left+"px",l.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,n=this.state,o=n.extraClass,r=n.html,i=n.ariaProps,a=n.disable,l=n.uuid,u=this.getTooltipContent(),c=this.isEmptyTip(u),p=Js(this.state.uuid,this.state.customColors,this.state.type,this.state.border),d="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||a||c?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),h=this.props.wrapper;t.supportedWrappers.indexOf(h)<0&&(h=t.defaultProps.wrapper);var f=[d,o].filter(Boolean).join(" ");if(r){var g="".concat(u,'\n<style aria-hidden="true">').concat(p,"</style>");return s.createElement(h,xs({className:"".concat(f),id:this.props.id||l,ref:function(t){return e.tooltipRef=t}},i,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:g}}))}return s.createElement(h,xs({className:"".concat(f),id:this.props.id||l},i,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),s.createElement("style",{dangerouslySetInnerHTML:{__html:p},"aria-hidden":"true"}),u)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,o=Qs(e);return Object.keys(o).some((function(e){return o[e]!==n[e]}))?Ds({},t,{ariaProps:o}):null}}]),t}(s.Component),Ts(hu,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),Ts(hu,"supportedWrappers",["div","span"]),Ts(hu,"displayName","ReactTooltip"),(yu=du=fu).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var n=new t((function(t){for(var n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.removedNodes.length;r++)if(o.removedNodes[r]===e.state.currentTarget)return void e.hideTooltip()}));n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},du=void(yu.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||du))||du)||du)||du)||du)||du)||du,wu=Cu,bu=xt.div.withConfig({displayName:"sidebar__Container",componentId:"sc-152a2hf-0"})(["height:100vh;width:",";min-width:",";position:relative;font-size:2rem;text-align:center;display:flex;flex-direction:column;justify-content:space-between;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"],(function(e){return e.collapsed?"100px":"250px"}),(function(e){return e.collapsed?"100px":"250px"})),_u=xt.ul.withConfig({displayName:"sidebar__StyledUl",componentId:"sc-152a2hf-1"})(["list-style-type:none;padding-left:1rem;position:relative;"]),Eu=xt.li.withConfig({displayName:"sidebar__StyledLi",componentId:"sc-152a2hf-2"})(["height:42px;display:flex;align-items:center;justify-content:flex-start;"]),Su=xt(Xi).withConfig({displayName:"sidebar__StyledNavLink",componentId:"sc-152a2hf-3"})(["text-decoration:none;color:",";display:flex;align-items:center;justify-content:flex-start;> *{margin:0 0.5rem;}"],(function(e){return e.isActive?"red":"white"})),Ru=xt.div.withConfig({displayName:"sidebar__ImageContainer",componentId:"sc-152a2hf-4"})(["width:",";height:200px;top:0;"],(function(e){return e.collapsed?"100px":"250px"})),Ou=xt.img.withConfig({displayName:"sidebar__SdtdLogoContainer",componentId:"sc-152a2hf-5"})(["width:100%;height:",";"],(function(e){return e.collapsed?"50%":"100%"})),Pu=xt.div.withConfig({displayName:"sidebar__StyledCollapse",componentId:"sc-152a2hf-6"})(["width:100%;height:50px;cursor:pointer;"]),Tu=xt.a.withConfig({displayName:"sidebar__ExternalLink",componentId:"sc-152a2hf-7"})(["text-decoration:none;color:",";display:flex;align-items:center;justify-content:flex-start;> *{margin:0 0.5rem;}"],(function(e){return e.isActive?"red":"white"}));function xu(e){return(0,ho.jsx)(Ru,{collapsed:e.collapsed,children:(0,ho.jsx)(Ou,{collapsed:e.collapsed,src:e.collapsed?vi:mi,alt:"Image"})})}function Au(e){var t=e.children;return(0,ho.jsx)(Eu,{children:(0,ho.jsx)("nav",{children:t})})}function Du(e){var t=e.icon,n=e.title,o=e.component,r=e.to,i=e.collapsed,s=e.external,a=void 0!==s&&s,l=M(),u=l.pathname===r||l.pathname.startsWith("/mods/")&&l.pathname.endsWith(r),c=n||o;return a?(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsxs)(Tu,{isActive:u,href:r,"data-tip":"React-tooltip","data-for":"tooltip-".concat(n),children:[t,i?"":c]}),(0,ho.jsx)(wu,{id:"tooltip-".concat(n),children:(0,ho.jsx)("span",{children:n})},"console-type-tooltip-".concat(n))]}):(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsxs)(Su,{to:r,isActive:u,"data-tip":"React-tooltip","data-for":"tooltip-".concat(n),children:[t,i?"":c]}),(0,ho.jsx)(wu,{id:"tooltip-".concat(n),children:(0,ho.jsx)("span",{children:n})},"console-type-tooltip-".concat(n))]})}function Nu(e){var t=e.collapsed,n=e.setCollapsed;var o=Di().status,r=fi().modRoutes;return(0,ho.jsxs)(bu,{collapsed:t,children:[(0,ho.jsx)(xu,{collapsed:t}),(0,ho.jsxs)(_u,{children:[(0,ho.jsx)(ts,{requiredPermission:{module:Oi,method:"GET"},children:(0,ho.jsx)(Au,{children:(0,ho.jsx)(Du,{collapsed:t,icon:(0,ho.jsx)(hs,{}),title:"Map",to:"/map"})})}),(0,ho.jsx)(ts,{requiredPermission:{module:wi,method:"GET"},children:(0,ho.jsx)(Au,{children:(0,ho.jsx)(Du,{collapsed:t,icon:(0,ho.jsx)(vs,{}),title:"Console",to:"/console"})})}),(0,ho.jsx)(ts,{requiredPermission:{module:wi,method:"GET"},children:(0,ho.jsx)(Au,{children:(0,ho.jsx)(Du,{collapsed:t,icon:(0,ho.jsx)(ss,{}),title:"Settings",to:"/settings"})})}),(0,ho.jsx)(ts,{requiredPermission:{module:Ri,method:"GET"},children:(0,ho.jsx)(Au,{children:(0,ho.jsx)(Du,{collapsed:t,icon:(0,ho.jsx)(cs,{}),title:"Mods",to:"/mods"})})}),r.map((function(e){return(0,ho.jsx)(Au,{children:(0,ho.jsx)(Du,{collapsed:t,icon:(0,ho.jsx)(cs,{}),title:e.name,to:e.path})},e.path)}))]}),(0,ho.jsxs)(_u,{children:[o.loggedIn&&(0,ho.jsx)(Au,{children:(0,ho.jsx)(Du,{collapsed:t,icon:(0,ho.jsx)(ys,{}),title:"".concat(o.username),to:"/profile"})}),(0,ho.jsx)(Au,{children:(0,ho.jsx)($i,{collapsed:t})})]}),(0,ho.jsx)(Pu,{onClick:function(){n(!t)},children:t?(0,ho.jsx)(rs,{}):(0,ho.jsx)(os,{})})]})}var Lu=n.p+"files/static/media/bg-forest.a0037883583931c1c7e3.jpg",Iu=xt.div.withConfig({displayName:"sc-404__CenterContainer",componentId:"sc-13rbdbz-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;"]);function Mu(){return(0,ho.jsxs)(Iu,{children:[(0,ho.jsx)("h1",{children:"404"}),(0,ho.jsx)("p",{children:"You have gotten lost in the wilderness, there's nothing here!"}),(0,ho.jsx)("br",{}),(0,ho.jsxs)(Xi,{to:"/",children:[" ",(0,ho.jsx)(ps,{})," Go home"]})]})}var Fu=xt.div.withConfig({displayName:"Settings__SettingsContainer",componentId:"sc-mzo7ay-0"})(["height:100vh;width:100%;display:grid;grid-template-columns:250px auto;text-align:left;overflow-y:scroll;"]),ku=xt.div.withConfig({displayName:"Settings__NavContainer",componentId:"sc-mzo7ay-1"})(["display:flex;flex-direction:column;justify-content:center;align-items:left;height:100vh;background-color:",";padding:2rem;overflow-y:scroll;"],(function(e){return e.theme.colors.tfpDarkGrey20})),Gu=xt.div.withConfig({displayName:"Settings__ItemContentContainer",componentId:"sc-mzo7ay-2"})(["width:90%;height:80vh;margin:2rem;"]),Hu=xt($).withConfig({displayName:"Settings__StyledNavLink",componentId:"sc-mzo7ay-3"})(["cursor:pointer;color:",";text-decoration:none;margin-bottom:1rem;transition:color 0.3s ease;font-size:1.17em;font-weight:500;line-height:1.83em;&.active{color:",";font-weight:700;}:hover{color:",";}"],(function(e){return e.isActive?e.theme.colors.tfpRed:e.theme.colors.tfpWhite}),(function(e){return e.theme.colors.tfpRed}),(function(e){return e.theme.colors.tfpRed}));function Vu(){var e=fi().webMods,t=[];return e&&e.forEach((function(e){for(var n in e.external.settings)Object.hasOwnProperty.call(e.external.settings,n)&&t.push({title:n})})),(0,ho.jsxs)(Fu,{children:[(0,ho.jsxs)(ku,{children:[(0,ho.jsx)(Hu,{to:"web-users",children:"Web Users"}),(0,ho.jsx)(Hu,{to:"user-permissions",children:"User Permissions"}),(0,ho.jsx)(Hu,{to:"group-permissions",children:"Group Permissions"}),(0,ho.jsx)(Hu,{to:"web-permissions",children:"Web Permissions"}),(0,ho.jsx)(Hu,{to:"command-permissions",children:"Command Permissions"}),(0,ho.jsx)(Hu,{to:"api-tokens",children:"API Tokens"}),(0,ho.jsx)(Hu,{to:"bans",children:"Bans"}),(0,ho.jsx)(Hu,{to:"allow-list",children:"Allow List"}),t.map((function(e){return(0,ho.jsx)(Hu,{to:e.title.split(" ").join("-"),children:e.title},e.title)}))]}),(0,ho.jsx)(Gu,{children:(0,ho.jsx)(V,{})})]})}var ju=xt.div.withConfig({displayName:"Error__CenterContainer",componentId:"sc-mbd7nn-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;"]);function Wu(){var e=function(){var e=(0,s.useContext)(y).matches,t=e[e.length-1];return t?t.params:{}}().code;return(0,ho.jsxs)(ju,{children:[(0,ho.jsx)("h1",{children:"Error!"}),(0,ho.jsxs)("p",{children:[e," happened \ud83d\ude22"]}),(0,ho.jsx)("br",{}),(0,ho.jsxs)(Xi,{to:"/",children:[" ",(0,ho.jsx)(ps,{})," Go home"]})]})}function Bu(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];clearTimeout(t),t=setTimeout((function(){return e.apply(void 0,r)}),n)}}var Uu=xt.div.withConfig({displayName:"Register__Container",componentId:"sc-1vk5lyq-0"})(["display:flex;justify-content:center;align-items:center;height:100%;width:100%;"]),zu=xt.form.withConfig({displayName:"Register__Form",componentId:"sc-1vk5lyq-1"})(["display:flex;flex-direction:column;align-items:center;padding:20px;width:75%;"]),Ku=xt.h1.withConfig({displayName:"Register__Heading",componentId:"sc-1vk5lyq-2"})(["font-size:24px;margin-bottom:20px;"]),qu=xt.label.withConfig({displayName:"Register__Label",componentId:"sc-1vk5lyq-3"})(["display:flex;flex-direction:column;margin-bottom:10px;text-align:center;width:100%;"]),Zu=xt.input.withConfig({displayName:"Register__Input",componentId:"sc-1vk5lyq-4"})(["border:1px solid #ccc;border-radius:5px;font-size:16px;padding:5px;width:100%;"]),Yu=xt.p.withConfig({displayName:"Register__ExtraText",componentId:"sc-1vk5lyq-5"})(["font-size:14px;margin-top:20px;text-align:center;a{color:'#4CAF50';text-decoration:none;}a:hover{text-decoration:underline;}"]),Qu=xt.p.withConfig({displayName:"Register__ErrorMessage",componentId:"sc-1vk5lyq-6"})(["color:",";font-size:14px;margin-top:10px;min-height:20px;max-width:75%;"],(function(e){return e.theme.colors.tfpRed}));function $u(){var e=r((0,s.useState)(""),2),t=e[0],n=e[1],o=r((0,s.useState)(""),2),i=o[0],a=o[1],l=r((0,s.useState)(null),2),u=l[0],c=l[1],p=F(),d=Di().refreshStatus,h=function(e){return c(null),/^\w{4,16}$/.test(e.username)?!!/^\w{4,16}$/.test(e.password)||(c("Your password must be between 4 and 16 characters long and may only contain letters, numbers, and underscores."),!1):(c("Your username must be between 4 and 16 characters long and may only contain letters, numbers, and underscores."),!1)},f=Bu(h,500),g=function(e){if(e.preventDefault(),h({username:t,password:i})){var n=new URLSearchParams(window.location.search).get("token");co.registerUser(t,i,n).then((function(){return d()})).then((function(e){p("/")})).catch((function(e){var t;console.error(e),c(null!==(t=e.message)&&void 0!==t?t:"Something went wrong")}))}};return(0,ho.jsx)(Uu,{children:(0,ho.jsxs)(zu,{onSubmit:g,children:[(0,ho.jsx)(Ku,{children:"Register"}),(0,ho.jsxs)(qu,{children:["Username",(0,ho.jsx)(Zu,{type:"text",value:t,onChange:function(e){n(e.target.value),f({username:e.target.value,password:i})}})]}),(0,ho.jsxs)(qu,{children:["Password",(0,ho.jsx)(Zu,{type:"password",value:i,onChange:function(e){a(e.target.value),f({username:t,password:e.target.value})}})]}),(0,ho.jsx)(Mi,{type:"submit",text:"Submit",onClick:g}),(0,ho.jsx)("input",{type:"submit",hidden:!0}),(0,ho.jsx)(Qu,{children:null!==u&&void 0!==u?u:""}),(0,ho.jsx)(Yu,{children:"Creating an account will inherit your 7 Days To Die game permissions. If you do not have any permissions, please contact an admin."})]})})}var Xu=xt.div.withConfig({displayName:"collapseIndicator__CollapseIconContainer",componentId:"sc-jxuh5c-0"})(["float:left;margin-left:auto;margin-right:1rem;line-height:",";"],(function(e){return e.collapsed?"1.1rem":"0.5rem"}));function Ju(e){var t=e.collapsed,n=e.canCollapse,o=Tt();return n?(0,ho.jsx)(Xu,{children:t?(0,ho.jsx)(ns,{"data-tip":"React-tooltip","data-for":"tooltip-collapse"}):(0,ho.jsx)(rs,{color:o.colors.tfpRed,"data-tip":"React-tooltip","data-for":"tooltip-collapse"})}):null}var ec=xt.div.withConfig({displayName:"consoleLine__StyledConsoleLineContainer",componentId:"sc-5hqen8-0"})(["cursor:",";"],(function(e){return e.canCollapse?"pointer":"default"})),tc=xt.div.withConfig({displayName:"consoleLine__StyledTimestamp",componentId:"sc-5hqen8-1"})(["margin-left:1rem;margin-right:1rem;white-space:pre;"]),nc=xt.div.withConfig({displayName:"consoleLine__StyledConsoleLine",componentId:"sc-5hqen8-2"})(["max-width:100%;vertical-align:top;display:flex;white-space:",";text-align:left;margin:0;text-overflow:",";overflow:hidden;"],(function(e){return e.collapsed?"pre":"pre-wrap"}),(function(e){return e.collapsed?"ellipsis":""})),oc=xt.div.withConfig({displayName:"consoleLine__StyledConsoleLineBody",componentId:"sc-5hqen8-3"})(["text-overflow:inherit;overflow:inherit;"]),rc=xt.div.withConfig({displayName:"consoleLine__StyledConsoleLineHeader",componentId:"sc-5hqen8-4"})(["text-overflow:inherit;overflow:inherit;"]),ic=xt.strong.withConfig({displayName:"consoleLine__StyledConsoleLineCommandInput",componentId:"sc-5hqen8-5"})(["text-overflow:inherit;overflow:inherit;color:",";"],(function(e){return e.theme.colors.tfpBlue}));function sc(e){var t=lc(e.message).header;return(0,ho.jsx)(rc,{children:t})}function ac(e){var t=lc(e.message),n=t.header,o=t.body;return(0,ho.jsxs)(oc,{children:[(0,ho.jsx)(rc,{children:n}),(0,ho.jsx)("p",{children:o})]})}function lc(e){return"executedCommand"===e.type?{header:(0,ho.jsx)(ic,{children:e.input}),body:e.output}:e.trace?{header:e.msg,body:e.trace}:{header:e.msg.split("\n")[0],body:(e.msg+"\n"+e.trace).split("\n").slice(1).join("\n")}}function uc(e,t,n){switch(e){case"Log":return(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(as,{style:{maxWidth:"14px",minWidth:"14px"},"data-tip":"React-tooltip","data-for":"tooltip-log"},"console-type-icon-".concat(t)),(0,ho.jsx)(wu,{id:"tooltip-log",children:"Log"},"console-type-tooltip-".concat(t))]});case"Warning":return(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(us,{style:{maxWidth:"14px",minWidth:"14px"},color:"yellow","data-tip":"React-tooltip","data-for":"tooltip-warning"},"console-type-icon-".concat(t)),(0,ho.jsx)(wu,{id:"tooltip-warning",children:"Warning"},"console-type-tooltip-".concat(t))]});case"Exception":return(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(is,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-exception"},"console-type-icon-".concat(t)),(0,ho.jsx)(wu,{id:"tooltip-exception",children:"Exception"},"console-type-tooltip-".concat(t))]});case"Error":return(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(ls,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-error"},"console-type-icon-".concat(t)),(0,ho.jsx)(wu,{id:"tooltip-error",children:"Error"},"console-type-tooltip-".concat(t))]});case"Assert":return(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(ls,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-assert"},"console-type-icon-".concat(t)),(0,ho.jsx)(wu,{id:"tooltip-assert",children:"Assert"},"console-type-tooltip-".concat(t))]});case"executedCommand":return(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(vs,{style:{maxWidth:"14px",minWidth:"14px"},color:n.colors.tfpBlue,"data-tip":"React-tooltip","data-for":"tooltip-input"},"console-type-icon-".concat(t)),(0,ho.jsx)(wu,{id:"tooltip-input",children:"Executed command"},"console-type-tooltip-".concat(t))]});default:return(0,ho.jsx)(as,{})}}function cc(e){var t,n,o=e.message,i=(0,s.useRef)(null),a=!!(n=o)&&("executedCommand"===n.type||!!n.trace||n.msg.length>125),l=r((0,s.useState)(null===(t=o.startCollapsed)||void 0===t||t),2),u=l[0],c=l[1],p=Tt();return(0,s.useEffect)((function(){var e;null===(e=i.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}),[u]),(0,ho.jsx)(ec,{onClick:function(e){a&&"Range"!==window.getSelection().type&&c(!u)},canCollapse:a,children:(0,ho.jsxs)(nc,{ref:i,collapsed:u,children:[uc(o.type,"".concat(o.timestamp,"-").concat(o.msg),p),(0,ho.jsx)(tc,{children:new Date(o.timestamp).toLocaleString()}),u?(0,ho.jsx)(sc,{message:o}):(0,ho.jsx)(ac,{message:o}),(0,ho.jsx)(Ju,{canCollapse:a,collapsed:u})]})})}var pc=xt.div.withConfig({displayName:"consoleWindow__StyledConsoleWindow",componentId:"sc-3ztljt-0"})(["background-color:",";height:100%;min-width:100%;border-radius:5px;text-align:left;padding-left:1rem;overflow-y:scroll;flex-grow:1;font-family:monospace;"],(function(e){return e.theme.colors.tfpDarkGrey40}));function dc(e){var t=e.messages,n=(0,s.useRef)(null);return(0,s.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.scrollIntoView()}),[t]),(0,ho.jsxs)(pc,{children:[t.map((function(e,t){return(0,ho.jsx)(cc,{message:e},"console-line-".concat(t))})),(0,ho.jsx)("div",{ref:n})]})}var hc=new Map;var fc=new Set;function gc(e){for(var t=0,n=zt(fc);t<n.length;t++){(0,n[t])(e)}}function mc(e){return"undefined"===e?void 0:JSON.parse(e)}function vc(e){try{return e()}catch(t){return}}var yc=function(e,t){if(void 0===s.useSyncExternalStore)throw new TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');var n=r((0,s.useState)(null===t||void 0===t?void 0:t.defaultValue),1)[0];if("undefined"===typeof window)return[n,function(){},{isPersistent:!0,removeItem:function(){}}];var o=null===t||void 0===t?void 0:t.serializer;return function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:mc,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:JSON.stringify;hc.has(e)||void 0===t||null!==vc((function(){return localStorage.getItem(e)}))||vc((function(){return localStorage.setItem(e,r(t))}));var i=(0,s.useRef)({item:null,parsed:t}),a=(0,s.useSyncExternalStore)((0,s.useCallback)((function(t){var n=function(n){e===n&&t()};return fc.add(n),function(){fc.delete(n)}}),[e]),(function(){var n,r=null!==(n=vc((function(){return localStorage.getItem(e)})))&&void 0!==n?n:null;if(hc.has(e))i.current={item:r,parsed:hc.get(e)};else if(r!==i.current.item){var s;try{s=null===r?t:o(r)}catch(a){s=t}i.current={item:r,parsed:s}}return i.current.parsed}),(function(){return t})),l=(0,s.useCallback)((function(t){var n=t instanceof Function?t(i.current.parsed):t;try{localStorage.setItem(e,r(n)),hc.delete(e)}catch(o){hc.set(e,n)}gc(e)}),[e,r]);return(0,s.useEffect)((function(){if(n){var t=function(t){t.storageArea===vc((function(){return localStorage}))&&t.key===e&&gc(e)};return window.addEventListener("storage",t),function(){return window.removeEventListener("storage",t)}}}),[e,n]),(0,s.useMemo)((function(){return[a,l,{isPersistent:a===t||!hc.has(e),removeItem:function(){vc((function(){return localStorage.removeItem(e)})),hc.delete(e),gc(e)}}]}),[e,l,a,t])}(e,n,null===t||void 0===t?void 0:t.storageSync,null===o||void 0===o?void 0:o.parse,null===o||void 0===o?void 0:o.stringify)},Cc=xt.div.withConfig({displayName:"ConsoleHelpTableCell__StyledTableCellContainer",componentId:"sc-1jajcna-0"})(["cursor:",";"],(function(e){return e.canCollapse?"pointer":"default"})),wc=xt.div.withConfig({displayName:"ConsoleHelpTableCell__StyledTableCellLine",componentId:"sc-1jajcna-1"})(["line-height:1.1rem;white-space:pre;"]);function bc(e){var t=e.text,n=function(e){return!!e&&e.length>150}(t),o=r((0,s.useState)(n),2),i=o[0],a=o[1],l=r(yc("command",{defaultValue:""}),2),u=l[0],c=l[1];if(!t)return"";var p=t.toString().split("\n");function d(e){switch(e.detail){case 1:"Range"!==window.getSelection().type&&a(!i);break;case 2:n||(" "===u[u.length-1]?c("".concat(u).concat(e.target.textContent)):u.length?c("".concat(u," ").concat(e.target.textContent)):c(e.target.textContent))}}return i?(0,ho.jsxs)(Cc,{onClick:d,canCollapse:n,children:[(0,ho.jsx)(Ju,{canCollapse:n,collapsed:i}),(0,ho.jsx)(wc,{children:p.join(" ").slice(0,150)})]}):(0,ho.jsxs)(Cc,{onClick:d,canCollapse:n,children:[(0,ho.jsx)(Ju,{canCollapse:n,collapsed:i}),p.map((function(e,t){return(0,ho.jsx)(wc,{children:e},t)}))]})}var _c=xt.div.withConfig({displayName:"helpWindow__HelpWindow",componentId:"sc-19frvue-0"})(["color:",";border-radius:5px;flex-grow:1;margin-bottom:3%;"],(function(e){return e.theme.colors.tfpBlack})),Ec=xt.div.withConfig({displayName:"helpWindow__FlexRow",componentId:"sc-19frvue-1"})(["background-color:",";height:3rem;border-radius:5px 5px 0 0;display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;margin-right:5%;> *{margin-left:2rem;margin-right:2rem;}"],(function(e){return e.theme.colors.tfpDarkGrey})),Sc=xt.div.withConfig({displayName:"helpWindow__HelpHeader",componentId:"sc-19frvue-2"})(["color:",";font-size:150%;font-weight:bold;cursor:pointer;"],(function(e){return e.highlighted?e.theme.colors.tfpRed:e.theme.colors.tfpWhite}));function Rc(e){return e.map((function(e){return e.cellRenderer||(e.cellRenderer=function(e){return(0,ho.jsx)(bc,{text:e.value})}),e}))}var Oc=Rc([{field:"allowed",flex:.2,sort:"desc",cellRenderer:function(e){return e.value?"\ud83d\udfe2":"\ud83d\udd34"},comparator:function(e,t){return e-t},cellStyle:{textAlign:"center"}},{field:"command",filter:"agTextColumnFilter"},{field:"description",filter:"agTextColumnFilter"},{field:"help",filter:"agTextColumnFilter",flex:2}]),Pc=Rc([{field:"name",filter:"agTextColumnFilter"},{field:"platformId.combinedString",filter:"agTextColumnFilter",headerName:"Platform ID"},{field:"crossplatformId.combinedString",filter:"agTextColumnFilter",headerName:"Crossplatform ID"},{field:"ip",filter:"agTextColumnFilter"},{field:"entityId",filter:"agTextColumnFilter"},{field:"ping"},{field:"lastOnline",type:["date"]},{field:"totalPlayTimeSeconds",filter:"agNumberColumnFilter",headerName:"Total play time"},{field:"position.x",filter:"agNumberColumnFilter",headerName:"X"},{field:"position.y",filter:"agNumberColumnFilter",headerName:"Y"},{field:"position.z",filter:"agNumberColumnFilter",headerName:"Z"}]),Tc=Rc([{field:"id",filter:"agNumberColumnFilter"},{field:"name",filter:"agTextColumnFilter",flex:4}]),xc=Rc([{field:"name",filter:"agTextColumnFilter",headerName:"ID"},{field:"isBlock",filter:"agTextColumnFilter",headerName:"Block",flex:.2,cellRenderer:function(e){return e.value?"\u2705":"\u274e"},comparator:function(e,t){return e-t}},{field:"localizedName",filter:"agTextColumnFilter",headerName:"Name"}]),Ac=Rc([{field:"timestamp",type:["date"]},{field:"input",filter:"agTextColumnFilter"},{field:"output",filter:"agTextColumnFilter"}]);function Dc(e){var t=e.executedCommands,n=r((0,s.useState)([]),2),o=n[0],i=n[1],a=r((0,s.useState)(Oc),2),l=a[0],u=a[1],c=r(yc("consoleHelpActiveField",{defaultValue:"Commands"}),2),p=c[0],d=c[1];function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc";e.applyColumnState({state:[{colId:t,sort:n}]})}(0,s.useEffect)((function(){function e(){return(e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,co.get("/api/command");case 3:t=e.sent,u(Oc),i(t.commands),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),u(Oc),i([]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function n(){return n=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,co.getPlayers();case 3:t=e.sent,u(Pc),i(t.map((function(e){return It(It({},e),{},{lastonline:new Date(e.lastonline)})}))),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),u(Pc),i([]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),n.apply(this,arguments)}function o(){return o=kt(Mt().mark((function e(){var t,n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,co.executeCommand("spawnentity");case 3:t=e.sent,n=t.result.split("\n").slice(3,-1).map((function(e){var t=e.split("-").map((function(e){return e.trim()}));return{id:t[0],name:t[1]}})),u(Tc),i(n),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),u(Tc),i([]);case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),o.apply(this,arguments)}function r(){return(r=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,co.getItems();case 3:t=e.sent,u(xc),i(t),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),u(xc),i([]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}switch(p){case"Commands":!function(){e.apply(this,arguments)}();break;case"Command history":i(t),u(Ac);break;case"Players":!function(){n.apply(this,arguments)}();break;case"Entities":!function(){o.apply(this,arguments)}();break;case"Items":!function(){r.apply(this,arguments)}()}}),[p,t]);var f=function(e){d(e.target.innerText)};return(0,ho.jsxs)(_c,{children:[(0,ho.jsxs)(Ec,{children:[(0,ho.jsx)(Sc,{onClick:f,highlighted:"Commands"===p,children:"Commands"}),(0,ho.jsx)(Sc,{onClick:f,highlighted:"Command history"===p,children:"Command history"}),(0,ho.jsx)(Sc,{onClick:f,highlighted:"Players"===p,children:"Players"}),(0,ho.jsx)(Sc,{onClick:f,highlighted:"Items"===p,children:"Items"}),(0,ho.jsx)(Sc,{onClick:f,highlighted:"Entities"===p,children:"Entities"})]}),(0,ho.jsx)(_o,{rowData:o,columnDef:l,alwaysShowHorizontalScroll:!0,onComponentStateChanged:Bu((function(e){var t=e.columnApi;switch(p){case"Commands":h(t,"command","asc");break;case"Command history":h(t,"timestamp","desc");break;case"Players":case"Entities":case"Items":h(t,"name")}}),100)})]})}var Nc=n(9986),Lc=n.n(Nc),Ic=xt.div.withConfig({displayName:"autosuggest__SuggestionTitle",componentId:"sc-1bxvksr-0"})(["color:",";border-radius:5px;min-width:40%;cursor:pointer;"],(function(e){return e.selected?e.theme.colors.tfpRed:e.theme.colors.tfpBlack})),Mc=xt.div.withConfig({displayName:"autosuggest__SuggestionContainer",componentId:"sc-1bxvksr-1"})(["display:flex;max-height:60%;"]),Fc=xt.div.withConfig({displayName:"autosuggest__SuggestionHelp",componentId:"sc-1bxvksr-2"})(["color:",";white-space:pre-wrap;padding-top:1rem;padding-bottom:1rem;text-align:left;"],(function(e){return e.theme.colors.tfpBlack}));function kc(e){var t=e.command,n=e.setCommand,o=e.sendCommand,i=e.shouldRenderSuggestions,a=r((0,s.useState)([]),2),l=a[0],u=a[1],c=r((0,s.useState)([]),2),p=c[0],d=c[1],h=r((0,s.useState)(0),2),f=h[0],g=h[1],m=Tt();(0,s.useEffect)((function(){g(0)}),[t]);var v={suggestionsContainerOpen:{backgroundColor:m.colors.tfpLightGrey,position:"absolute",bottom:"10%",width:"80%",height:"auto",borderRadius:"5px",overflowY:"scroll",overflowX:"wrap"},input:{width:"100%",padding:"1rem",borderRadius:"5px",backgroundColor:m.colors.tfpLightGrey,color:m.colors.tfpBlack,border:"none",lineHeight:"1rem",outline:"none"},suggestionsList:{listStyle:"none",textAlign:"left"}};function y(e){n(e.command),g(0),C({value:e.command})}function C(e){var t=e.value;d(function(e){if(!l)return[];if(!e)return[];e.includes(" ")&&(e=e.split(" ")[0]);var t=l.filter((function(t){return t.command.includes(e)||t.overloads.join(" ").includes(e)})),n=t.slice(0,20);return t.length>20?(n.push({command:"...",help:"More suggestions are available, narrow your search to see them",overloads:[]}),n):n}(t))}return(0,s.useEffect)((function(){function e(){return(e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,co.get("/api/command");case 3:t=e.sent,u(t.commands),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),ao("Error loading command suggestions");case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),(0,ho.jsx)(Lc(),{suggestions:p,onSuggestionsFetchRequested:function(e){return C(e)},onSuggestionsClearRequested:function(){d([])},getSuggestionValue:function(e){return e.command},renderSuggestion:function(e){if(!e)return null;var t=p.indexOf(e),n=e.overloads.filter((function(t){return t!==e.command})).join(" ");return t===f?(0,ho.jsx)(ho.Fragment,{children:(0,ho.jsxs)(Ic,{selected:!0,onClick:function(){y(e)},onMouseEnter:function(){g(t)},children:[e.command," ",n.length?n:""]})}):(0,ho.jsxs)(Ic,{onClick:function(){y(e)},onMouseEnter:function(){g(t)},children:[e.command," ",n.length?n:""]})},theme:v,shouldRenderSuggestions:i,inputProps:{onChange:function(e){(e.target.value||""===e.target.value)&&n(e.target.value)},onKeyDown:function(e){if("Enter"===e.key&&(o(),e.preventDefault()),"ArrowDown"===e.key){var t=f+1;t<p.length?g(t):g(0),e.preventDefault()}if("ArrowUp"===e.key){var n=f-1;g(n>=0?n:p.length-1),e.preventDefault()}if("Tab"===e.key){if(e.preventDefault(),"..."===p[f].command)return;y(p[f])}},value:t},containerProps:{style:{width:"80%",flexGrow:1}},renderSuggestionsContainer:function(e){var t,n=e.containerProps,o=e.children;return e.query,o?(0,ho.jsxs)(Mc,It(It({},n),{},{children:[(0,ho.jsx)(Ic,{children:o}),(0,ho.jsx)(Fc,{children:null===(t=p[f])||void 0===t?void 0:t.help})]})):null}})}xt.div.withConfig({displayName:"input__ConsoleInputField",componentId:"sc-sci9ws-0"})(["flex-grow:1;padding:1rem;border-radius:5px;background-color:",";color:",";border:none;line-height:1rem;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpBlack}));var Gc=xt.div.withConfig({displayName:"input__SendButton",componentId:"sc-sci9ws-1"})(["background-color:",";color:",";width:10%;height:3rem;display:flex;justify-content:center;align-items:center;border-radius:5px;font-size:150%;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpBlack})),Hc=xt.div.withConfig({displayName:"input__RoundButtonContainer",componentId:"sc-sci9ws-2"})(["border-radius:100%;background-color:",";color:",";min-width:4rem;min-height:4rem;font-size:1.75rem;display:flex;justify-content:center;align-items:center;cursor:pointer;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpRed})),Vc=xt.div.withConfig({displayName:"input__FlexRow",componentId:"sc-sci9ws-3"})(["display:flex;min-width:100%;flex-direction:row;justify-content:flex-end;align-items:center;margin-top:2%;margin-right:5%;> *{margin-left:1rem;margin-right:1rem;}"]);function jc(e){var t=e.addMessage,n=e.sseActive,o=e.setSseActive,i=r(yc("command",{defaultValue:""}),2),s=i[0],a=i[1],l=r(yc("helpActiveState",{defaultValue:!1}),2),u=l[0],c=l[1];function p(){return d.apply(this,arguments)}function d(){return(d=kt(Mt().mark((function e(){var n,o,r;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={type:"executedCommand",timestamp:new Date,input:s,output:""},e.prev=1,e.next=4,co.executeCommand(s);case 4:o=e.sent,n.output=o.result,so("Command executed"),e.next=15;break;case 9:e.prev=9,e.t0=e.catch(1),console.error(e.t0),r="Unknown error",e.t0&&e.t0.response&&e.t0.response.data&&(r=e.t0.response.data.meta&&"NO_PERMISSION"===e.t0.response.data.meta.errorCode?"You do not have permission to execute this command":e.t0.response.data.meta&&"UNKNOWN_COMMAND"===e.t0.response.data.meta.errorCode?'Unknown command, use "help" to see available commands':JSON.stringify(e.t0.response.data,null,2)),n.output=r;case 15:return e.prev=15,t(n,!1),a(""),c(!1),e.finish(15);case 20:case"end":return e.stop()}}),e,null,[[1,9,15,20]])})))).apply(this,arguments)}function h(){return h=kt(Mt().mark((function e(t){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),p();case 2:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}return(0,ho.jsxs)(Vc,{children:[(0,ho.jsxs)(ts,{requiredPermission:{module:wi,method:"POST"},children:[(0,ho.jsx)(kc,{command:s,setCommand:a,sendCommand:p,shouldRenderSuggestions:function(){return!u}}),(0,ho.jsx)(Gc,{onClick:function(e){return h.apply(this,arguments)},children:"Send"})]}),(0,ho.jsx)(Hc,{"data-tip":"React-tooltip","data-for":n?"tooltip-pause":"tooltip-start",onClick:function(e){e.preventDefault(),o(!n)},children:n?(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(fs,{}),(0,ho.jsx)(wu,{id:"tooltip-pause",children:"Pause log stream"})]}):(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(gs,{}),(0,ho.jsx)(wu,{id:"tooltip-start",children:"Start log stream"})]})}),(0,ho.jsxs)(Hc,{"data-for":"tooltip-help","data-tip":"React-tooltip",onClick:function(e){e.preventDefault(),c(!u)},children:[(0,ho.jsx)(ms,{}),(0,ho.jsx)(wu,{id:"tooltip-help",children:"Help"})]})]})}function Wc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e.length>t?e.slice(e.length-t):e}var Bc=xt.div.withConfig({displayName:"Console__ConsoleContainer",componentId:"sc-1w2ewjb-0"})(["width:100%;height:100%;display:flex;flex-direction:column;"]);function Uc(){var e=r(yc("consoleExecutedCommands",{defaultValue:[]}),2),t=e[0],n=e[1],o=r(yc("consoleMessages",{defaultValue:[]}),2),i=o[0],a=o[1],l=r(yc("sseActive",{defaultValue:!0}),2),u=l[0],c=l[1],p=r(yc("helpActiveState",{defaultValue:!1}),2),d=p[0],h=p[1],f=Di().checkPermission;function g(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=e.type,r=e.msg;e.timestamp=e.isotime?new Date(e.isotime):new Date,(""!==r||r.input)&&("executedCommand"===o&&n((function(t){return Wc([].concat(zt(t),[e]),100)})),a((function(n){return Wc([].concat(zt(n),[It(It({},e),{},{startCollapsed:t})]),500)})))}return(0,s.useEffect)((function(){f({module:_i,method:"GET"})||(a([]),h(!0))}),[]),(0,s.useEffect)((function(){function e(){return e=kt(Mt().mark((function e(){var n,o;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f({module:_i,method:"GET"})){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,co.getLatestLogLines(-100);case 4:n=e.sent,o=n.entries.map((function(e){return It({timestamp:new Date(e.isotime)},e)})),a((function(e){return[].concat(zt(t.map((function(e){return It(It({},e),{},{timestamp:new Date(e.timestamp)})}))),zt(o)).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)}))}));case 7:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}u&&function(){e.apply(this,arguments)}()}),[u]),(0,s.useEffect)((function(){if(u&&f({module:yi,method:"GET"})){var e=new EventSource("/sse/log",{withCredentials:!0});return e.addEventListener("logLine",(function(e){g(JSON.parse(e.data))})),e.addEventListener("error",(function(e){e.readyState===EventSource.CLOSED&&console.log("Connection was closed")})),e.addEventListener("open",(function(e){console.log("Console: SSE opened")})),function(){e.close()}}}),[u]),(0,ho.jsxs)(Bc,{children:[d?(0,ho.jsx)(Dc,{executedCommands:t}):(0,ho.jsx)(dc,{messages:i}),(0,ho.jsx)(jc,{linkToHelp:!0,addMessage:g,sseActive:u,setSseActive:c})]})}var zc=JSON.parse('{"i8":"v0.8.5-rc.0","i2":"2024-02-25T10:07:34Z","th":"51d5f5d657f7459562ff7e35b49f966e72eed7bf"}'),Kc=xt.span.withConfig({displayName:"versionIndicator__StyledVersionBanner",componentId:"sc-14vm1z5-0"})(["color:",";font-size:0.8rem;"],(function(e){return e.theme.colors.tfpLightGrey}));function qc(){return(0,ho.jsx)(Kc,{children:(0,ho.jsxs)("ul",{children:[(0,ho.jsxs)("li",{children:["version: ",zc.i8]}),(0,ho.jsxs)("li",{children:["commit: ",zc.th]}),(0,ho.jsxs)("li",{children:["created: ",zc.i2]})]})})}var Zc=xt.div.withConfig({displayName:"Mods__ModsContainer",componentId:"sc-x6jqah-0"})(["flex:1;flex-direction:column;text-align:left;overflow-y:scroll;height:100%;"]),Yc=xt.a.withConfig({displayName:"Mods__StyledLinkIcon",componentId:"sc-x6jqah-1"})(["cursor:pointer;margin:0 1rem;color:",";&:hover{color:",";}"],(function(e){return e.theme.colors.tfpWhite}),(function(e){return e.theme.colors.tfpRed}));function Qc(e){var t=e.url;return t?(0,ho.jsx)(Yc,{href:t,target:"_blank",rel:"noopener noreferrer",children:(0,ho.jsx)(ds,{})}):null}function $c(){var e=fi().mods;if(!e)return(0,ho.jsx)("p",{children:"Mods still loading..."});var t=e.filter((function(e){return e.displayName})).map((function(e){return(0,ho.jsxs)("div",{children:[(0,ho.jsxs)("h2",{children:[e.displayName,(0,ho.jsx)(Qc,{url:e.website})]}),(0,ho.jsxs)("small",{children:["Author: ",e.author,", version: ",e.version]}),(0,ho.jsx)("p",{children:e.description})]},e.name)}));return(0,ho.jsxs)(Zc,{children:[(0,ho.jsx)("h1",{children:"Mods"}),(0,ho.jsx)("h2",{children:"Dashboard version"}),(0,ho.jsx)(qc,{}),t]})}function Xc(e,t){return Object.freeze(It(It({},e),t))}var Jc=(0,s.createContext)(null),ep=Jc.Provider;function tp(){var e=(0,s.useContext)(Jc);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var np=n(8559),op=n.n(np),rp=["bounds","boundsOptions","center","children","className","id","placeholder","style","whenReady","zoom"];function ip(){return ip=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ip.apply(this,arguments)}function sp(e,t){var n=e.bounds,o=e.boundsOptions,i=e.center,a=e.children,l=e.className,u=e.id,c=e.placeholder,p=e.style,d=e.whenReady,h=e.zoom,f=ko(e,rp),g=r((0,s.useState)({className:l,id:u,style:p}),1)[0],m=r((0,s.useState)(null),2),v=m[0],y=m[1];(0,s.useImperativeHandle)(t,(function(){var e;return null!==(e=null===v||void 0===v?void 0:v.map)&&void 0!==e?e:null}),[v]);var C=(0,s.useCallback)((function(e){if(null!==e&&null===v){var t=new np.Map(e,f);null!=i&&null!=h?t.setView(i,h):null!=n&&t.fitBounds(n,o),null!=d&&t.whenReady(d),y(function(e){return Object.freeze({__version:1,map:e})}(t))}}),[]);(0,s.useEffect)((function(){return function(){null===v||void 0===v||v.map.remove()}}),[v]);var w=v?s.createElement(ep,{value:v},a):null!==c&&void 0!==c?c:null;return s.createElement("div",ip({},g,{ref:C}),w)}var ap=(0,s.forwardRef)(sp);function lp(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function up(e,t){return null==t?function(t,n){return(0,s.useRef)(e(t,n))}:function(n,o){var r=(0,s.useRef)(e(n,o)),i=(0,s.useRef)(n),a=r.current.instance;return(0,s.useEffect)((function(){i.current!==n&&(t(a,n,i.current),i.current=n)}),[a,n,o]),r}}var cp=n(4164);function pp(e){function t(t,n){var o=e(t).current,r=o.instance,i=o.context;return(0,s.useImperativeHandle)(n,(function(){return r})),null==t.children?null:s.createElement(ep,{value:i},t.children)}return(0,s.forwardRef)(t)}var dp,hp=["children"],fp=up((function(e,t){e.children;var n=ko(e,hp),o=new np.Control.Layers(void 0,void 0,n);return lp(o,Xc(t,{layersControl:o}))}),(function(e,t,n){t.collapsed!==n.collapsed&&(!0===t.collapsed?e.collapse():e.expand())})),gp=pp((dp=fp,function(e){var t=tp(),n=dp(e,t),o=n.current.instance,r=(0,s.useRef)(e.position),i=e.position;return(0,s.useEffect)((function(){return o.addTo(t.map),function(){o.remove()}}),[t.map,o]),(0,s.useEffect)((function(){null!=i&&i!==r.current&&(o.setPosition(i),r.current=i)}),[o,i]),n}));function mp(e){return function(t){var n=tp(),o=(0,s.useRef)(t),i=r((0,s.useState)(null),2),a=i[0],l=i[1],u=n.layersControl,c=n.map,p=(0,s.useCallback)((function(t){null!=u&&(o.current.checked&&c.addLayer(t),e(u,t,o.current.name),l(t))}),[u,c]),d=(0,s.useCallback)((function(e){null===u||void 0===u||u.removeLayer(e),l(null)}),[u]),h=(0,s.useMemo)((function(){return Xc(n,{layerContainer:{addLayer:p,removeLayer:d}})}),[n,p,d]);return(0,s.useEffect)((function(){null!==a&&o.current!==t&&(!0!==t.checked||null!=o.current.checked&&!1!==o.current.checked?!0!==o.current.checked||null!=t.checked&&!1!==t.checked||c.removeLayer(a):c.addLayer(a),o.current=t)})),t.children?s.createElement(ep,{value:h},t.children):null}}function vp(){return tp().map}function yp(e,t){var n=(0,s.useRef)(t);(0,s.useEffect)((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}function Cp(e,t){var n=(0,s.useRef)();(0,s.useEffect)((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}function wp(e,t){var n,o=null!==(n=e.pane)&&void 0!==n?n:t.pane;return o?It(It({},e),{},{pane:o}):e}function bp(e,t){(0,s.useEffect)((function(){var n;return(null!==(n=t.layerContainer)&&void 0!==n?n:t.map).addLayer(e.instance),function(){var n;null===(n=t.layerContainer)||void 0===n||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}function _p(e){return function(t){var n=tp(),o=e(wp(t,n),n);return Cp(o.current,t.eventHandlers),bp(o.current,n),function(e,t){var n=(0,s.useRef)();(0,s.useEffect)((function(){if(t.pathOptions!==n.current){var o,r=null!==(o=t.pathOptions)&&void 0!==o?o:{};e.instance.setStyle(r),n.current=r}}),[e,t])}(o.current,t),o}}function Ep(e,t){var n=function(e){return function(t){var n=tp(),o=e(wp(t,n),n);return yp(n.map,t.attribution),Cp(o.current,t.eventHandlers),bp(o.current,n),o}}(up(e,t));return pp(n)}function Sp(e,t){var n=function(e,t){return function(n,o){var r=tp(),i=e(wp(n,r),r);return yp(r.map,n.attribution),Cp(i.current,n.eventHandlers),t(i.current,r,n,o),i}}(up(e),t);return function(e){function t(t,n){var o=r((0,s.useState)(!1),2),i=o[0],a=o[1],l=e(t,a).current.instance;(0,s.useImperativeHandle)(n,(function(){return l})),(0,s.useEffect)((function(){i&&l.update()}),[l,i,t.children]);var u=l._contentNode;return u?(0,cp.createPortal)(t.children,u):null}return(0,s.forwardRef)(t)}(n)}gp.BaseLayer=mp((function(e,t,n){e.addBaseLayer(t,n)})),gp.Overlay=mp((function(e,t,n){e.addOverlay(t,n)}));var Rp=["children"],Op=Ep((function(e,t){e.children;var n=ko(e,Rp),o=new np.LayerGroup([],n);return lp(o,Xc(t,{layerContainer:o}))})),Pp=["position"],Tp=Ep((function(e,t){var n=e.position,o=ko(e,Pp),r=new np.Marker(n,o);return lp(r,Xc(t,{overlayContainer:r}))}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())}));function xp(){var e=fi().webMods,t=r((0,s.useState)([]),2),n=t[0],o=t[1],i=Di().checkPermission;return(0,s.useEffect)((function(){if(e){var t=e.filter((function(e){return e.external.mapComponents&&e.external.mapComponents.length})).map((function(e){return(0,ho.jsx)(Ap,{modComponent:e.external.mapComponents[0],checkPermission:i},e.name)}));o(t)}}),[JSON.stringify(e)]),n}function Ap(e){var t=e.modComponent,n=e.checkPermission;return gi(t,{map:vp(),checkPermission:n,LayerGroup:Op,LayersControl:gp,Marker:Tp,HideBasedOnAuth:ts,L:op()})}function Dp(e){var t=e.mapInfo,n=vp(),o=op().tileLayer("../../map/{z}/{x}/{y}.png?t={time}",{maxZoom:t.maxZoom+1,minZoom:Math.max(0,t.maxZoom-5),maxNativeZoom:t.maxZoom,minNativeZoom:0,tileSize:t.tileSize,time:(new Date).getTime()});return o.getTileUrl=function(e){return e.y=-e.y-1,op().TileLayer.prototype.getTileUrl.bind(o)(e)},o.addTo(n),null}function Np(){var e=vp(),t=op().Control.extend({options:{position:"bottomleft"},onAdd:function(e){var t=op().DomUtil.create("div","control-coordinates webmap-control");return t.innerHTML="Mouse pos: - E / - N<br/>Last click: - E / - N",op().DomEvent.on(t,"mousemove",op().DomEvent.stopPropagation),this._map=e,this._div=t,e.on("mousemove",this._onMouseMove,this),e.on("mouseout",this._onMouseOut,this),e.on("click",this._onClick,this),t},onRemove:function(e){},_onMouseMove:function(e){this.lastPos=e.latlng,this._updateText()},_onMouseOut:function(e){this.lastPos=!1,this._updateText()},_onClick:function(e){this.lastClick=e.latlng,this._updateText()},_updateText:function(e){this._div.innerHTML="Mouse pos: ".concat(this._formatCoord(this.lastPos),"<br/>Last click: ").concat(this._formatCoord(this.lastClick))},_formatCoord:function(e){return e?Math.abs(e.lat).toFixed(0)+(e.lat>=0?" E":" W")+" / "+Math.abs(e.lng).toFixed(0)+(e.lng>=0?" N":" S"):"- E / - N"},lastPos:!1,lastClick:!1}),n=new t({});return(0,s.useEffect)((function(){return n.addTo(e),function(){e.removeLayer(n)}}),[]),null}function Lp(){var e=vp();function t(e){return n.apply(this,arguments)}function n(){return n=kt(Mt().mark((function e(t){var n,o;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,co.get("/api/serverstats");case 2:n=e.sent,o="Day "+n.gameTime.days+", ",n.gameTime.hours<10&&(o+="0"),o+=n.gameTime.hours,o+=":",n.gameTime.minutes<10&&(o+="0"),o+=n.gameTime.minutes,t.innerHTML=o;case 10:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}var o=op().Control.extend({options:{position:"bottomright"},onAdd:function(e){var n=this,o=op().DomUtil.create("div","control-gametime webmap-control");return o.innerHTML="",op().DomEvent.on(o,"mousemove",op().DomEvent.stopPropagation),this._map=e,this._div=o,this.interval=setInterval((function(){return t(n._div)}),1e4),t(this._div),o},onRemove:function(e){clearInterval(this.interval)}}),r=new o({});return(0,s.useEffect)((function(){return r.addTo(e),function(){e.removeLayer(r)}}),[]),null}Ap.propTypes={modComponent:es().func.isRequired},Dp.propTypes={mapInfo:es().object.isRequired};var Ip=Sp((function(e,t){return lp(new np.Popup(e,t.overlayContainer),t)}),(function(e,t,n,o){var r=n.position;(0,s.useEffect)((function(){var n=e.instance;function i(e){e.popup===n&&(n.update(),o(!0))}function s(e){e.popup===n&&o(!1)}return t.map.on({popupopen:i,popupclose:s}),null==t.overlayContainer?(null!=r&&n.setLatLng(r),n.openOn(t.map)):t.overlayContainer.bindPopup(n),function(){var e;t.map.off({popupopen:i,popupclose:s}),null===(e=t.overlayContainer)||void 0===e||e.unbindPopup(),t.map.removeLayer(n)}}),[e,t,o,r])})),Mp=n.p+"files/static/media/ui_game_symbol_animal_tracker.210ce6882c9a8cca199c.png",Fp=It({},{animalRabbit:n.p+"files/static/media/ui_game_symbol_tracking_rabbit.a0d8304b6832aa8747ce.png",animalBear:n.p+"files/static/media/ui_game_symbol_tracking_bear.f093e312239e9b55cf62.png",animalChicken:n.p+"files/static/media/ui_game_symbol_tracking_chicken.f8502366d557395fcf52.png",animalDeer:n.p+"files/static/media/ui_game_symbol_tracking_deer.b0383a07e77bfb5b21dd.png",animalMountainLion:n.p+"files/static/media/ui_game_symbol_tracking_mountain_lion.2175438fc5295629a9e4.png",animalPig:n.p+"files/static/media/ui_game_symbol_tracking_pig.b7563c410d208abd634c.png",animalSnake:n.p+"files/static/media/ui_game_symbol_tracking_snake.5d39ffcdaa456ce6ce0f.png",animalWolf:n.p+"files/static/media/ui_game_symbol_tracking_wolf.d1dddf4ab14bc8848bee.png",animal:Mp});function kp(e){var t=e.lat,n=e.lng,o=e.name,r=function(e){var t=Fp[e]||Fp.animal;return op().icon({iconUrl:t,iconSize:[32,32]})}(o);return(0,ho.jsx)(Tp,{position:[t,n],icon:r,children:(0,ho.jsx)(Ip,{children:o})})}function Gp(){var e=r((0,s.useState)([]),2),t=e[0],n=e[1],o=fi().webMods;function i(){return a.apply(this,arguments)}function a(){return a=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,co.getAnimals();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}(0,s.useEffect)((function(){o.forEach((function(e){if(console.log("checking mod",e),e.external.iconOverrides){console.log("found icon overrides",e.external.iconOverrides);for(var t=0,n=Object.entries(e.external.iconOverrides);t<n.length;t++){var o=r(n[t],2),i=o[0],s=o[1];console.log("setting icon override",i,s),Fp[i]=s}}})),i()}),[o]),(0,s.useEffect)((function(){var e=setInterval(kt(Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i();case 1:case"end":return e.stop()}}),e)}))),1e4);return i(),function(){return clearInterval(e)}}),[]);var l=t.map((function(e){return(0,ho.jsx)(kp,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,ho.jsx)(Op,{name:"animals",children:l})}var Hp=n.p+"files/static/media/ui_game_symbol_zombie.a0270fc24da3324c8de7.png";function Vp(e){var t=e.lat,n=e.lng,o=e.name,r=fi().webMods.find((function(e){return e.external.iconOverrides&&e.external.iconOverrides.hostile})),i=op().icon({iconUrl:r?r.external.iconOverrides.hostile:Hp,iconSize:[32,32]});return(0,ho.jsx)(Tp,{position:[t,n],icon:i,children:(0,ho.jsx)(Ip,{children:o})})}function jp(){var e=r((0,s.useState)([]),2),t=e[0],n=e[1];function o(){return i.apply(this,arguments)}function i(){return i=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,co.getHostiles();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}(0,s.useEffect)((function(){var e=setInterval(kt(Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o();case 1:case"end":return e.stop()}}),e)}))),1e4);return o(),function(){return clearInterval(e)}}),[]);var a=t.map((function(e){return(0,ho.jsx)(Vp,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,ho.jsx)(Op,{name:"hostiles",children:a})}var Wp=n.p+"files/static/media/ui_game_symbol_player.94e20a11a9cd11f88a5f.png";function Bp(e){var t=e.lat,n=e.lng,o=e.name,r=fi().webMods.find((function(e){return e.external.iconOverrides&&e.external.iconOverrides.player})),i=op().icon({iconUrl:r?r.external.iconOverrides.player:Wp,iconSize:[32,32]});return(0,ho.jsx)(Tp,{position:[t,n],icon:i,children:(0,ho.jsx)(Ip,{children:o})})}function Up(){var e=r((0,s.useState)([]),2),t=e[0],n=e[1];function o(){return i.apply(this,arguments)}function i(){return i=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,co.getPlayers();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}(0,s.useEffect)((function(){var e=setInterval(kt(Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o();case 1:case"end":return e.stop()}}),e)}))),1e4);return o(),function(){return clearInterval(e)}}),[]);var a=t.map((function(e){return(0,ho.jsx)(Bp,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,ho.jsx)(Op,{name:"players",children:a})}var zp=["bounds"],Kp=function(e,t){return pp(_p(up(e,t)))}((function(e,t){var n=e.bounds,o=ko(e,zp),r=new np.Rectangle(n,o);return lp(r,Xc(t,{overlayContainer:r}))}),(function(e,t,n){t.bounds!==n.bounds&&e.setBounds(t.bounds)})),qp=Sp((function(e,t){return lp(new np.Tooltip(e,t.overlayContainer),t)}),(function(e,t,n,o){var r=n.position;(0,s.useEffect)((function(){var n=t.overlayContainer;if(null!=n){var i=e.instance,s=function(e){e.tooltip===i&&(null!=r&&i.setLatLng(r),i.update(),o(!0))},a=function(e){e.tooltip===i&&o(!1)};return n.on({tooltipopen:s,tooltipclose:a}),n.bindTooltip(i),function(){n.off({tooltipopen:s,tooltipclose:a}),null!=n._map&&n.unbindTooltip()}}}),[e,t,o,r])}));function Zp(e,t){var n=Math.floor(e.lat/t.regionSize),o=Math.floor(e.lng/t.regionSize);return op().latLng(n,o)}function Yp(e){var t=e.mapInfo,n=e.mapSize,o=vp(),i=r((0,s.useState)([]),2),a=i[0],l=i[1];return(0,s.useEffect)((function(){!function(){for(var e,r=o.getBounds().pad(1),i=op().latLngBounds(o.unproject([-n.x/2,-n.z/2],t.maxZoom),o.unproject([n.x/2,n.z/2],t.maxZoom)),s=(r=r.overlaps(i)?r:i).getSouthWest(),a=r.getNorthEast(),u=t.regionSize,c=Math.floor(s.lng/u),p=Math.floor(s.lat/u),d=Math.ceil(a.lng/u),h=Math.ceil(a.lat/u),f=[],g=c;g<=d;g++)for(var m=p;m<=h;m++){var v=op().point(g*u,m*u),y=op().point((g+1)*u,(m+1)*u),C=o.unproject(v,t.maxZoom),w=o.unproject(y,t.maxZoom);i.contains(C)&&i.contains(w)&&f.push((0,ho.jsx)(Kp,{bounds:[C,w],color:"gray",stroke:!0,fill:!0,weight:1,children:(0,ho.jsx)(qp,{children:(e=Zp(C,t),"r.".concat(e.lat,".").concat(e.lng,".7rg"))})},"".concat(g,"-").concat(m)))}l(f)}()}),[]),(0,ho.jsx)(Op,{name:"regions",children:a})}var Qp={regionSize:512,chunkSize:16,tileSize:128,maxZoom:4},$p={zoom:1,center:{lat:0,lng:0},layers:{animals:!0,hostiles:!0,players:!0,regions:!1}},Xp=function(){var e=r(yc("mapState",{defaultValue:$p}),2)[1];return function(e,t){var n=vp();(0,s.useEffect)((function(){return n.on(e,t),function(){n.off(e,t)}}),[n,e,t])}("move",Bu((function(t){e((function(e){return It(It({},e),{},{center:t.target.getCenter(),zoom:t.target.getZoom()})}))}))),null},Jp=xt.div.withConfig({displayName:"Map__Container",componentId:"sc-ytilka-0"})(["height:100%;width:100%;text-align:left;"]);function ed(){var e=r((0,s.useState)({enabled:!1,mapSize:{x:6144,y:255,z:6144}}),2),t=e[0],n=e[1],o=r(yc("mapState",{defaultValue:$p}),2),i=o[0],a=o[1];(0,s.useEffect)((function(){var e=function(){var e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,co.getMapConfig();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var l={project:function(e){return new np.Point(e.lat/Math.pow(2,Qp.maxZoom),e.lng/Math.pow(2,Qp.maxZoom))},unproject:function(e){return new np.LatLng(e.x*Math.pow(2,Qp.maxZoom),e.y*Math.pow(2,Qp.maxZoom))}},u=op().extend({},op().CRS.Simple,{projection:l,transformation:new np.Transformation(1,0,-1,0),scale:function(e){return Math.pow(2,e)}});return t.enabled?(0,ho.jsx)(Jp,{children:(0,ho.jsx)(ts,{requiredPermission:{module:Oi,method:"GET"},children:(0,ho.jsxs)(ap,{style:{width:"100%",height:"100%"},center:i.center,zoom:i.zoom,scrollWheelZoom:!0,attributionControl:!1,crs:u,maxBounds:[[-t.mapSize.x/2,-t.mapSize.z/2],[t.mapSize.x/2,t.mapSize.z/2]],maxBoundsViscosity:1,whenReady:function(e){var t=e.target;t.on("overlayadd",(function(e){e.name&&a((function(t){return It(It({},t),{},{layers:It(It({},t.layers),{},Nt({},e.name.toLowerCase(),!0))})}))})),t.on("overlayremove",(function(e){e.name&&a((function(t){return It(It({},t),{},{layers:It(It({},t.layers),{},Nt({},e.name.toLowerCase(),!1))})}))}))},children:[(0,ho.jsx)(Xp,{}),(0,ho.jsx)(Dp,{mapInfo:Qp}),(0,ho.jsx)(Np,{}),(0,ho.jsx)(ts,{requiredPermission:{module:Si,method:"GET"},children:(0,ho.jsx)(Lp,{})}),(0,ho.jsxs)(gp,{collapsed:!1,position:"topright",children:[(0,ho.jsx)(ts,{requiredPermission:{module:Ci,method:"GET"},children:(0,ho.jsx)(gp.Overlay,{name:"Animals",checked:i.layers.animals,children:(0,ho.jsx)(Gp,{})})}),(0,ho.jsx)(ts,{requiredPermission:{module:Ei,method:"GET"},children:(0,ho.jsx)(gp.Overlay,{name:"Players",checked:i.layers.players,children:(0,ho.jsx)(Up,{})})}),(0,ho.jsx)(ts,{requiredPermission:{module:bi,method:"GET"},children:(0,ho.jsx)(gp.Overlay,{name:"Hostiles",checked:i.layers.hostiles,children:(0,ho.jsx)(jp,{})})}),(0,ho.jsx)(gp.Overlay,{name:"Regions",checked:i.layers.regions,children:(0,ho.jsx)(Yp,{mapInfo:Qp,mapSize:t.mapSize})}),(0,ho.jsx)(xp,{})]})]})})}):(0,ho.jsx)("p",{children:"Map is not enabled, you can enable it via the server settings config file."})}var td=xt.div.withConfig({displayName:"Profile__Container",componentId:"sc-jtaopp-0"})(["flex:1;flex-direction:column;text-align:left;"]),nd=xt.div.withConfig({displayName:"Profile__CardsContainer",componentId:"sc-jtaopp-1"})(["display:flex;flex-wrap:wrap;"]),od=xt.div.withConfig({displayName:"Profile__PermissionCard",componentId:"sc-jtaopp-2"})(["padding:1rem;"]),rd=xt.ul.withConfig({displayName:"Profile__PermissionUl",componentId:"sc-jtaopp-3"})(["list-style-type:none;padding-left:1rem;"]);function id(e){var t=e.modulePermission,n=Object.keys(t.allowed);return(0,ho.jsxs)(od,{children:[(0,ho.jsx)("h3",{children:t.module}),(0,ho.jsx)(rd,{children:n.map((function(e){return(0,ho.jsxs)("li",{children:[t.allowed[e]?"\ud83d\udfe2":"\ud83d\udd34"," ",e]},e)}))})]})}function sd(){var e=Di().status,t=e.permissions.map((function(e){return(0,ho.jsx)(id,{modulePermission:e},e.module)}));return(0,ho.jsxs)(td,{children:[(0,ho.jsx)("h1",{children:"Profile"}),(0,ho.jsx)("h2",{children:e.username}),(0,ho.jsxs)("small",{children:["Permission level: ",e.permissionLevel]}),(0,ho.jsx)("h2",{children:"Permissions"}),(0,ho.jsx)(nd,{children:t})]})}var ad=xt.div.withConfig({displayName:"Empty__Container",componentId:"sc-w42chz-0"})(["height:100%;width:100%;text-align:left;"]);function ld(){return(0,ho.jsx)(ad,{})}var ud=xt.div.withConfig({displayName:"style__FormAndTableContainer",componentId:"sc-o1sn8w-0"})(["display:grid;grid-template-rows:auto 1fr;gap:1rem;margin-bottom:1rem;.ag-root-wrapper{height:50vh;}"]);function cd(){var e=(0,pi.useQuery)("webUsers",(function(){return co.get("/api/webusers")})),t=e.isLoading,n=e.data,o=e.refetch;return(0,ho.jsxs)(ud,{children:[(0,ho.jsxs)("p",{children:["To create a new user, execute the ",(0,ho.jsx)("code",{children:"createwebuser"})," command in game."]}),(0,ho.jsx)(Eo,{columnDef:[{field:"name",filter:"agTextColumnFilter"},{field:"platformUserId.combinedString",filter:"agTextColumnFilter",headerName:"Platform User ID"},{field:"crossplatformUserId.combinedString",filter:"agTextColumnFilter",headerName:"Crossplatform User ID"}],rowData:n,loading:t,reloadFn:o})]})}function pd(){var e=ci(),t=e.register,n=e.handleSubmit,o=e.formState.errors,r=e.reset,i=(0,pi.useQuery)("userPermissions",(function(){return co.get("/api/userpermissions")})),s=i.isLoading,a=i.data,l=i.refetch,u=(0,pi.useMutation)("createUserPermission",(function(e){return co.post("/api/userpermissions/user/".concat(e.userId),{permissionLevel:parseInt(e.permissionLevel,10),name:e.name})}),{onSuccess:function(){r(),l()}}),c=u.mutate;return(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)("p",{children:"User permissions control what users can do in the system"}),(0,ho.jsxs)(ud,{children:[(0,ho.jsxs)(Mo,{handleSubmit:n((function(e){c(e)})),errors:o,isLoading:s,children:[(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"name",children:"Name"}),(0,ho.jsx)(To,It({id:"name"},t("name",{required:!0})))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"userId",children:"User ID"}),(0,ho.jsx)(To,It({id:"userId"},t("userId",{required:!0})))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"permissionLevel",children:"Permission Level"}),(0,ho.jsx)(To,It({id:"permissionLevel",type:"number"},t("permissionLevel",{required:!0})))]})]}),a&&(0,ho.jsx)(Eo,{columnDef:[{field:"name",filter:"agTextColumnFilter"},{field:"userId.combinedString",filter:"agTextColumnFilter",headerName:"ID"},{field:"permissionLevel",filter:"agNumberColumnFilter",headerName:"Level"}],reloadFn:l,rowData:a.users,loading:s,height:"90%"})]})]})}function dd(){var e=ci(),t=e.register,n=e.handleSubmit,o=e.formState.errors,r=e.reset,i=(0,pi.useQuery)("webmodules",(function(){return co.get("/api/webmodules")})),s=i.isLoading,a=i.data,l=i.refetch,u=(0,pi.useMutation)("createWebPermission",(function(e){var t={permissionLevelGlobal:parseInt(e.permissionLevel,10),permissionLevelPerMethod:Nt({},e.permission,parseInt(e.permissionLevel,10))};return"global"===e.permission?delete t.permissionLevelPerMethod:delete t.permissionLevelGlobal,co.post("/api/webmodules/".concat(e.module),t)}),{onSuccess:function(){r(),l()}}),c=u.mutate;return(0,ho.jsxs)(ud,{children:[(0,ho.jsx)("p",{children:"These permissions control what web modules can do in the system. Each module has a global permission level and per-method permission levels."}),(0,ho.jsxs)(Mo,{handleSubmit:n((function(e){c(e)})),errors:o,isLoading:s,children:[(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"module",children:"Module"}),(0,ho.jsx)(xo,It(It({},t("module",{required:!0})),{},{children:a&&a.map((function(e){return(0,ho.jsx)(Ao,{value:e.module,label:e.module},e.module)}))}))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"permission",children:"Permission"}),(0,ho.jsxs)(xo,It(It({},t("permission",{required:!0})),{},{children:[(0,ho.jsx)(Ao,{selected:!0,value:"global",label:"Global"}),(0,ho.jsx)(Ao,{value:"GET",label:"Read"}),(0,ho.jsx)(Ao,{value:"POST",label:"Create"}),(0,ho.jsx)(Ao,{value:"PUT",label:"Edit"}),(0,ho.jsx)(Ao,{value:"DELETE",label:"Delete"})]}))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"permissionLevel",children:"Permission Level"}),(0,ho.jsx)(To,It({id:"permissionLevel"},t("permissionLevel",{required:!0})))]})]}),a&&(0,ho.jsx)(Eo,{columnDef:[{field:"module",filter:"agTextColumnFilter"},{field:"permissionLevelGlobal",filter:"agNumberColumnFilter",headerName:"Global"},{field:"permissionLevelPerMethod.GET",filter:"agNumberColumnFilter",headerName:"Read"},{field:"permissionLevelPerMethod.POST",filter:"agNumberColumnFilter",headerName:"Create"},{field:"permissionLevelPerMethod.PUT",filter:"agNumberColumnFilter",headerName:"Edit"},{field:"permissionLevelPerMethod.DELETE",filter:"agNumberColumnFilter",headerName:"Delete"},{field:"isDefault",filter:"agBooleanColumnFilter"}],reloadFn:l,rowData:a,loading:s,height:"90%"})]})}function hd(){var e=ci(),t=e.register,n=e.handleSubmit,o=e.formState.errors,r=e.reset,i=(0,pi.useQuery)("apiTokens",(function(){return co.get("/api/webapitokens")})),s=i.isLoading,a=i.data,l=i.refetch,u=(0,pi.useMutation)("createApiToken",(function(e){return co.post("/api/webapitokens/".concat(e.apiTokenName),{secret:e.secret,permissionLevel:parseInt(e.permissionLevel,10)})}),{onSuccess:function(){r(),l()}}),c=u.mutate;return(0,ho.jsxs)(ud,{children:[(0,ho.jsxs)(Mo,{handleSubmit:n((function(e){c(e)})),errors:o,isLoading:s,children:[(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"apiTokenName",children:"API Token Name"}),(0,ho.jsx)(To,It({id:"apiTokenName"},t("apiTokenName",{required:!0})))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"secret",children:"Secret"}),(0,ho.jsx)(To,It({id:"secret"},t("secret",{required:!0})))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"permissionLevel",children:"Permission Level"}),(0,ho.jsx)(To,It({id:"permissionLevel",type:"number"},t("permissionLevel",{required:!0})))]})]}),a&&(0,ho.jsx)(Eo,{columnDef:[{field:"name",filter:"agTextColumnFilter"},{field:"secret",filter:"agTextColumnFilter"},{field:"permissionLevel",filter:"agNumberColumnFilter",headerName:"Permission Level"}],reloadFn:l,rowData:a,loading:s,height:"90%"})]})}function fd(){var e=ci(),t=e.register,n=e.handleSubmit,o=e.formState.errors,r=e.reset,i=(0,pi.useQuery)("bans",(function(){return co.get("/api/blacklist")})),s=i.isLoading,a=i.data,l=i.refetch,u=(0,pi.useMutation)("createBan",(function(e){return co.post("/api/blacklist/".concat(e.userId),{bannedUntil:e.bannedUntil,banReason:e.banReason,name:e.name})}),{onSuccess:function(){r(),l()}}),c=u.mutate;return(0,ho.jsxs)(ud,{children:[(0,ho.jsxs)(Mo,{handleSubmit:n((function(e){c(e)})),errors:o,isLoading:s,children:[(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"name",children:"Name"}),(0,ho.jsx)(To,It({id:"name"},t("name",{required:!0})))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"userId",children:"User ID"}),(0,ho.jsx)(To,It({id:"userId"},t("userId",{required:!0})))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"bannedUntil",children:"Banned Until"}),(0,ho.jsx)(To,It({id:"bannedUntil",type:"datetime-local"},t("bannedUntil",{required:!0})))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"banReason",children:"Ban Reason"}),(0,ho.jsx)(To,It({id:"banReason"},t("banReason",{required:!0})))]})]}),a&&(0,ho.jsx)(Eo,{columnDef:[{field:"name",filter:"agTextColumnFilter"},{field:"userId.combinedString",filter:"agTextColumnFilter",headerName:"User ID"},{field:"bannedUntil",filter:"agDateColumnFilter",headerName:"Banned Until"},{field:"banReason",filter:"agTextColumnFilter",headerName:"Ban Reason"}],reloadFn:l,rowData:a,loading:s,height:"90%"})]})}function gd(){var e=ci(),t=e.register,n=e.handleSubmit,o=e.watch,r=e.reset,i=o("type"),s=function(){var e=kt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,co.get("/api/whitelist");case 2:return t=e.sent,e.abrupt("return",[].concat(zt(t.users.map((function(e){return{id:e.userId.combinedString,name:e.name,type:"User"}}))),zt(t.groups.map((function(e){return{id:e.groupId,name:e.name,type:"Group"}})))));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=(0,pi.useQuery)("whitelist",s),l=a.data,u=a.isLoading,c=a.refetch,p=(0,pi.useMutation)((function(e){return"User"===e.type?co.post("/api/whitelist/user/".concat(e.id),{name:e.name}):co.post("/api/whitelist/group/".concat(e.id),{name:e.name})}),{onSuccess:function(){r(),c()}});return(0,ho.jsxs)(ud,{children:[(0,ho.jsxs)(Mo,{handleSubmit:n((function(e){p.mutate(It(It({},e),{},{id:e.identifier}))})),children:[(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{children:"Type"}),(0,ho.jsxs)(xo,It(It({},t("type")),{},{children:[(0,ho.jsx)(Ao,{value:"User",children:"User"}),(0,ho.jsx)(Ao,{value:"Group",children:"Group"})]}))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{children:"User"===i?"User ID":"Group ID"}),(0,ho.jsx)(To,It({},t("identifier")))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{children:"Name"}),(0,ho.jsx)(To,It({},t("name")))]})]}),(0,ho.jsx)(Eo,{columnDef:[It(It({},bo),{},{field:"name",headerName:"Name"}),It(It({},bo),{},{field:"id",headerName:"ID"}),It(It({},bo),{},{field:"type",headerName:"Type"})],rowData:l,loading:u})]})}function md(){var e=ci(),t=e.register,n=e.handleSubmit,o=e.formState.errors,r=e.reset,i=(0,pi.useQuery)("commandPermissions",(function(){return co.get("/api/commandpermissions")})),s=i.isLoading,a=i.data,l=i.refetch,u=(0,pi.useMutation)("createCommandPermission",(function(e){return co.post("/api/commandpermissions/".concat(e.command),{permissionLevel:parseInt(e.permissionLevel,10)})}),{onSuccess:function(){r(),l()}}),c=u.mutate;return(0,ho.jsxs)(ud,{children:[(0,ho.jsxs)(Mo,{handleSubmit:n((function(e){c(e)})),errors:o,isLoading:s,children:[(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"command",children:"Command"}),(0,ho.jsx)(xo,It(It({},t("command",{required:!0})),{},{children:a&&a.map((function(e){return(0,ho.jsx)(Ao,{value:e.command,label:e.command},e.command)}))}))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"permissionLevel",children:"Permission Level"}),(0,ho.jsx)(To,It({id:"permissionLevel",type:"number"},t("permissionLevel",{required:!0})))]})]}),a&&(0,ho.jsx)(Eo,{columnDef:[{field:"command",filter:"agTextColumnFilter"},{field:"permissionLevel",filter:"agNumberColumnFilter",headerName:"Permission Level"}],reloadFn:l,rowData:a,loading:s,height:"90%"})]})}function vd(){var e=ci(),t=e.register,n=e.handleSubmit,o=e.formState.errors,r=e.reset,i=(0,pi.useQuery)("groupPermissions",(function(){return co.get("/api/userpermissions")})),s=i.isLoading,a=i.data,l=i.refetch,u=(0,pi.useMutation)("createGroup",(function(e){return co.post("/api/userpermissions/group/".concat(e.groupId),{name:e.name,permissionLevelNormal:parseInt(e.permissionLevelNormal,10),permissionLevelMods:parseInt(e.permissionLevelMods,10)})}),{onSuccess:function(){r(),l()}}),c=u.mutate;return(0,ho.jsxs)(ud,{children:[(0,ho.jsxs)(Mo,{handleSubmit:n((function(e){c(e)})),isLoading:s,errors:o,children:[(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"name",children:"Group Name"}),(0,ho.jsx)(To,It({id:"name"},t("name",{required:!0})))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"groupId",children:"Group ID"}),(0,ho.jsx)(To,It({id:"groupId"},t("groupId",{required:!0})))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"permissionLevelNormal",children:"Permission Level (Normal)"}),(0,ho.jsx)(To,It({id:"permissionLevelNormal",type:"number"},t("permissionLevelNormal",{required:!0})))]}),(0,ho.jsxs)(Ro,{children:[(0,ho.jsx)(Po,{htmlFor:"permissionLevelMods",children:"Permission Level (Mods)"}),(0,ho.jsx)(To,It({id:"permissionLevelMods",type:"number"},t("permissionLevelMods",{required:!0})))]})]}),a&&(0,ho.jsx)(Eo,{columnDef:[{field:"name",filter:"agTextColumnFilter"},{field:"groupId",filter:"agTextColumnFilter",headerName:"ID"},{field:"permissionLevelNormal",filter:"agNumberColumnFilter",headerName:"Level"},{field:"permissionLevelMods",filter:"agNumberColumnFilter",headerName:"Level mods"}],reloadFn:l,rowData:a.groups,loading:s,height:"90%"})]})}var yd=xt.div.withConfig({displayName:"Router__ContentContainer",componentId:"sc-1psfph8-0"})(["min-width:",";padding:1%;"],(function(e){return e.collapsed?"calc(100% - 100px)":"calc(100% - 250px)"}));function Cd(e){var t=e.sidebarCollapsed,n=fi(),o=n.modRoutes,r=n.webMods,i=Di().checkPermission,s=[];return r&&r.forEach((function(e){for(var t in e.external.settings)if(Object.hasOwnProperty.call(e.external.settings,t)){var n=e.external.settings[t];s.push({title:t,component:gi(n,{checkPermission:i})})}})),(0,ho.jsxs)(B,{children:[(0,ho.jsx)(j,{path:"/",element:(0,ho.jsx)(yd,{collapsed:t,children:(0,ho.jsx)(ld,{})})}),(0,ho.jsx)(j,{path:"/map",element:(0,ho.jsx)(yd,{collapsed:t,children:(0,ho.jsx)(ed,{})})}),(0,ho.jsx)(j,{path:"mods",element:(0,ho.jsx)(yd,{collapsed:t,children:(0,ho.jsx)($c,{})})}),(0,ho.jsx)(j,{path:"console",element:(0,ho.jsx)(yd,{collapsed:t,children:(0,ho.jsx)(Uc,{})})}),(0,ho.jsxs)(j,{path:"settings",element:(0,ho.jsx)(Vu,{}),children:[(0,ho.jsx)(j,{path:"web-users",element:(0,ho.jsx)(cd,{})}),(0,ho.jsx)(j,{path:"user-permissions",element:(0,ho.jsx)(pd,{})}),(0,ho.jsx)(j,{path:"group-permissions",element:(0,ho.jsx)(vd,{})}),(0,ho.jsx)(j,{path:"web-permissions",element:(0,ho.jsx)(dd,{})}),(0,ho.jsx)(j,{path:"command-permissions",element:(0,ho.jsx)(md,{})}),(0,ho.jsx)(j,{path:"api-tokens",element:(0,ho.jsx)(hd,{})}),(0,ho.jsx)(j,{path:"bans",element:(0,ho.jsx)(fd,{})}),(0,ho.jsx)(j,{path:"allow-list",element:(0,ho.jsx)(gd,{})}),s.map((function(e){return(0,ho.jsx)(j,{path:e.title.split(" ").join("-"),element:e.component},e.title)}))]}),(0,ho.jsx)(j,{path:"profile",element:(0,ho.jsx)(yd,{collapsed:t,children:(0,ho.jsx)(sd,{})})}),(0,ho.jsx)(j,{path:"createuser",element:(0,ho.jsx)($u,{})}),o.map((function(e){return(0,ho.jsx)(j,{path:e.path,element:(0,ho.jsx)(yd,{collapsed:t,children:e.element})},e.path)})),(0,ho.jsx)(j,{path:"error/:code",element:(0,ho.jsx)(Wu,{})}),(0,ho.jsx)(j,{path:"*",element:(0,ho.jsx)(yd,{collapsed:t,children:(0,ho.jsx)(Mu,{})})})]})}var wd={colors:{transparent:"transparent",tfpRed:"#ff0000",tfpBlue:"#00A3E0",tfpLightGrey:"#CCCCCC",tfpDarkGrey:"#828383",tfpDarkGrey20:"rgba(0,0,0, 0.2)",tfpDarkGrey40:"rgba(0,0,0, 0.4)",tfpDarkGrey60:"rgba(0,0,0, 0.6)",tfpDarkGrey80:"rgba(0,0,0, 0.8)",tfpMediumGrey:"#C4C4C4",tfpBlack:"#090C0C",tfpWhite:"#FFFFFF"}},bd=xt.div.withConfig({displayName:"App__PageContainer",componentId:"sc-1jyt4iy-0"})(["display:flex;flex-direction:row;height:100vh;width:100vw;background-color:",";background-image:url(",");background-size:cover;color:",";"],(function(e){return e.theme.colors.tfpBlack}),Lu,(function(e){return e.theme.colors.tfpWhite}));var _d=function(){var e=r(yc("sideBarCollapsed",{defaultValue:!1}),2),t=e[0],n=e[1],o=new pi.QueryClient;return(0,ho.jsx)("div",{className:"App",children:(0,ho.jsx)(pi.QueryClientProvider,{client:o,children:(0,ho.jsx)(Ai,{children:(0,ho.jsx)(hi,{children:(0,ho.jsxs)(St,{theme:wd,children:[(0,ho.jsx)(ro,{position:"bottom-left",reverseOrder:!0}),(0,ho.jsxs)(bd,{children:[(0,ho.jsx)(Nu,{collapsed:t,setCollapsed:n}),(0,ho.jsx)(Cd,{sidebarCollapsed:t})]})]})})})})})},Ed=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,o=t.getFID,r=t.getFCP,i=t.getLCP,s=t.getTTFB;n(e),o(e),r(e),i(e),s(e)}))};X.createRoot(document.getElementById("root")).render((0,ho.jsx)(Y,{basename:"/app",children:(0,ho.jsx)(_d,{})})),Ed()}()}(); 3 //# sourceMappingURL=main.e01f51c2.js.map
Note:
See TracChangeset
for help on using the changeset viewer.