PageSourceSearch

https://marketers.findyourinfluence.com/9951.6f0618d5f6549531.js

js findyourinfluence.com collected 2026-09-24 22:19:38 UTC 1,129,008 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmetronic=self.webpackChunkmetronic||[]).push([[9951],{14477(mr,et,Y){Y.d(et,{s:()=>D});var _=Y(41360);let D=(()=>{class de{constructor(M){this.el=M}ngAfterViewInit(){this.toggle=new KTToggle(this.el.nativeElement,this.options)}static{this.\u0275fac=function(ae){return new(ae||de)(_.rXU(_.aKT))}}static{this.\u0275dir=_.FsC({type:de,selectors:[["","ktToggle",""]],inputs:{options:"options"},exportAs:["ktToggle"]})}}return de})()},44274(mr,et,Y){Y.d(et,{V:()=>Te});var _=Y(89417),D=Y(32881),de=Y(65478),O=Y(91402),M=Y(1109),ae=Y(48423),Pe=Y(66827),fe=Y(35474),Re=Y(80896),wt=Y(76734),oe=Y(89922),Le=Y(66532),te=Y(1072),Ce=Y(41360);let Te=(()=>{class rr{static{this.\u0275fac=function(wi){return new(wi||rr)}}static{this.\u0275mod=Ce.$C({type:rr})}static{this.\u0275inj=Ce.G2t({imports:[D.MD,ae.U,Pe.J,M.zH,M.n8,fe.n,Re.w,Le.t,oe.F,wt.U,_.YN,_.X1,te.Wk,de.E9,O.Id]})}}return rr})()},35474(mr,et,Y){Y.d(et,{n:()=>oe});var _=Y(32881),D=Y(89417),de=Y(66827),O=Y(48423),M=Y(73524),ae=Y(66532),Pe=Y(30897),fe=Y(16606),Re=Y(1109),wt=Y(41360);let oe=(()=>{class Le{static{this.\u0275fac=function(Te){return new(Te||Le)}}static{this.\u0275mod=wt.$C({type:Le})}static{this.\u0275inj=wt.G2t({imports:[_.MD,de.J,M.$V,Re.zH,Re.n8,ae.t,Pe.U,fe.I,O.U,D.YN,D.X1]})}}return Le})()},73975(mr,et,Y){Y.d(et,{A:()=>wt});var _=Y(41360),D=Y(32881);const de=oe=>({"background-image":oe});function O(oe,Le){if(1&oe&&(_.qex(0),_.j41(1,"div",2)(2,"h1",3),_.EFF(3),_.k0s(),_.nrm(4,"p",4),_.k0s(),_.bVm()),2&oe){const te=_.XpG();_.R7$(3),_.JRh(te.code),_.R7$(),_.Y8G("innerHTML",te.desc,_.npT)}}function M(oe,Le){if(1&oe&&(_.qex(0),_.j41(1,"div",5)(2,"div",6)(3,"h1"),_.EFF(4),_.k0s()(),_.nrm(5,"span",7),_.k0s(),_.bVm()),2&oe){const te=_.XpG();_.R7$(4),_.JRh(te.title),_.R7$(),_.Y8G("innerHTML",te.desc,_.npT)}}function ae(oe,Le){if(1&oe&&(_.qex(0),_.j41(1,"div",5)(2,"div",8)(3,"h1"),_.EFF(4),_.k0s()(),_.j41(5,"p",9),_.EFF(6),_.k0s(),_.j41(7,"p",10),_.EFF(8),_.k0s(),_.nrm(9,"p",11),_.k0s(),_.bVm()),2&oe){const te=_.XpG();_.R7$(4),_.JRh(te.code),_.R7$(2),_.SpI(" ",te.title," "),_.R7$(2),_.SpI(" ",te.subtitle," "),_.R7$(),_.Y8G("innerHTML",te.desc,_.npT)}}function Pe(oe,Le){if(1&oe&&(_.qex(0),_.j41(1,"div",5)(2,"h1",8),_.EFF(3),_.k0s(),_.j41(4,"p",12),_.EFF(5),_.k0s(),_.j41(6,"p",10),_.EFF(7),_.k0s(),_.nrm(8,"p",11),_.k0s(),_.bVm()),2&oe){const te=_.XpG();_.R7$(3),_.SpI(" ",te.code," "),_.R7$(2),_.SpI(" ",te.title," "),_.R7$(2),_.SpI(" ",te.subtitle," "),_.R7$(),_.Y8G("innerHTML",te.desc,_.npT)}}function fe(oe,Le){if(1&oe&&(_.qex(0),_.j41(1,"div",5)(2,"div",12)(3,"h1"),_.EFF(4),_.k0s()(),_.j41(5,"p",10),_.EFF(6),_.k0s(),_.nrm(7,"p",11),_.k0s(),_.bVm()),2&oe){const te=_.XpG();_.R7$(4),_.JRh(te.title),_.R7$(2),_.SpI(" ",te.subtitle," "),_.R7$(),_.Y8G("innerHTML",te.desc,_.npT)}}function Re(oe,Le){if(1&oe&&(_.qex(0),_.j41(1,"div",5)(2,"div",13)(3,"h1"),_.EFF(4),_.k0s()(),_.nrm(5,"p",14),_.k0s(),_.bVm()),2&oe){const te=_.XpG();_.R7$(4),_.JRh(te.title),_.R7$(),_.Y8G("innerHTML",te.desc,_.npT)}}let wt=(()=>{class oe{constructor(){this.type="error-v1",this.code="404",this.desc="Oops! Something went wrong!",this.return="Return back",this.classes="kt-grid kt-grid--ver kt-grid--root"}static{this.\u0275fac=function(Ce){return new(Ce||oe)}}static{this.\u0275cmp=_.VBU({type:oe,selectors:[["kt-error"]],hostVars:2,hostBindings:function(Ce,Te){2&Ce&&_.HbH(Te.classes)},inputs:{type:"type",image:"image",code:"code",title:"title",subtitle:"subtitle",desc:"desc",return:"return"},standalone:!1,decls:7,vars:10,consts:[[1,"kt-grid__item","kt-grid__item--fluid","kt-grid",3,"ngClass","ngStyle"],[4,"ngIf"],[1,"kt-error-v1__container"],[1,"kt-error-v1__number"],[1,"kt-error-v1__desc",3,"innerHTML"],[1,"kt-error_container"],[1,"kt-error_title2","kt-font-light"],[1,"kt-error_desc","kt-font-light",3,"innerHTML"],[1,"kt-error_number"],[1,"kt-error_title","kt-font-light"],[1,"kt-error_subtitle"],[1,"kt-error_description",3,"innerHTML"],[1,"kt-error_title"],[1,"kt-error_subtitle","kt-font-light"],[1,"kt-error_description","kt-font-light",3,"innerHTML"]],template:function(Ce,Te){1&Ce&&(_.j41(0,"div",0),_.DNE(1,O,5,2,"ng-container",1)(2,M,6,2,"ng-container",1)(3,ae,10,4,"ng-container",1)(4,Pe,9,4,"ng-container",1)(5,fe,8,3,"ng-container",1)(6,Re,6,2,"ng-container",1),_.k0s()),2&Ce&&(_.Y8G("ngClass","kt-"+Te.type)("ngStyle",_.eq3(8,de,"url("+Te.image+")")),_.R7$(),_.Y8G("ngIf","error-v1"===Te.type),_.R7$(),_.Y8G("ngIf","error-v2"===Te.type),_.R7$(),_.Y8G("ngIf","error-v3"===Te.type),_.R7$(),_.Y8G("ngIf","error-v4"===Te.type),_.R7$(),_.Y8G("ngIf","error-v5"===Te.type),_.R7$(),_.Y8G("ngIf","error-v6"===Te.type))},dependencies:[D.YU,D.bT,D.B3],styles:["[_nghost-%COMP%]{height:100%}.kt-error-v403[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-attachment:fixed;background-size:cover}"]})}}return oe})()},39574(mr,et,Y){Y.d(et,{o:()=>de});var _=Y(41360);let D=(()=>{class O{constructor(ae){this.el=ae}ngAfterViewInit(){this.scrollTop=new KTScrolltop(this.el.nativeElement,this.options)}getScrollTop(){return this.scrollTop}static{this.\u0275fac=function(Pe){return new(Pe||O)(_.rXU(_.aKT))}}static{this.\u0275dir=_.FsC({type:O,selectors:[["","ktScrollTop",""]],inputs:{options:"options"}})}}return O})(),de=(()=>{class O{constructor(){this.scrollTopOptions={offset:300,speed:400}}static{this.\u0275fac=function(Pe){return new(Pe||O)}}static{this.\u0275cmp=_.VBU({type:O,selectors:[["kt-scroll-top"]],standalone:!1,decls:2,vars:1,consts:[["ktScrollTop","","id","kt_scrolltop",1,"kt-scrolltop",3,"options"],[1,"la","la-arrow-up"]],template:function(Pe,fe){1&Pe&&(_.j41(0,"div",0),_.nrm(1,"i",1),_.k0s()),2&Pe&&_.Y8G("options",fe.scrollTopOptions)},dependencies:[D],encapsulation:2})}}return O})()},73524(mr,et,Y){Y.d(et,{xs:()=>Pm,$V:()=>Tm});var _=Y(31635),D=Y(41360);function de(n){return null==n||""===n?null:n}function O(n,t){return void 0===t&&(t=!1),null!=n&&(""!==n||t)}
1function M(n){return!O(n)}function ae(n){return null==n||0===n.length}function Pe(n){return null!=n&&"function"==typeof n.toString?n.toString():null}function fe(n){if(void 0!==n){if(null===n||""===n)return null;if("number"==typeof n)return isNaN(n)?void 0:n;var t=parseInt(n,10);return isNaN(t)?void 0:t}}function Re(n){if(void 0!==n)return null!==n&&""!==n&&("boolean"==typeof n?n:/true/i.test(n))}function Ce(n){if(n instanceof Set||n instanceof Map){var t=[];return n.forEach(function(e){return t.push(e)}),t}return Object.values(n)}var Te=Object.freeze({__proto__:null,makeNull:de,exists:O,missing:M,missingOrEmpty:ae,toStringOrNull:Pe,attrToNumber:fe,attrToBoolean:Re,attrToString:function wt(n){if(null!=n&&""!==n)return n},referenceCompare:function oe(n,t){return null==n&&null==t||!(null==n&&null!=t||null!=n&&null==t)&&n===t},jsonEquals:function Le(n,t){return(n?JSON.stringify(n):null)===(t?JSON.stringify(t):null)},defaultComparator:function te(n,t,e){void 0===e&&(e=!1);var r=null==n,o=null==t;if(n&&n.toNumber&&(n=n.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&o)return 0;if(r)return-1;if(o)return 1;function i(s,a){return s>a?1:s<a?-1:0}if("string"!=typeof n||!e)return i(n,t);try{return n.localeCompare(t)}catch{return i(n,t)}},values:Ce}),rr=function(){function n(){this.existingKeys={}}return n.prototype.addExistingKeys=function(t){for(var e=0;e<t.length;e++)this.existingKeys[t[e]]=!0},n.prototype.getUniqueKey=function(t,e){t=Pe(t);for(var r=0;;){var o=void 0;if(t?(o=t,0!==r&&(o+="_"+r)):e?(o=e,0!==r&&(o+="_"+r)):o=""+r,!this.existingKeys[o])return this.existingKeys[o]=!0,o;r++}},n}();function re(n,t){null!=n&&(Array.isArray(n)?n.forEach(function(e,r){return t(""+r,e)}):Object.keys(n).forEach(function(e){return t(e,n[e])}))}function ao(n){for(var t={},e=Object.keys(n),r=0;r<e.length;r++){var o=e[r];t[o]=n[o]}return t}function lo(n,t){if(n){var e=n,r={};return Object.keys(e).forEach(function(o){if(!(t&&t.indexOf(o)>=0)){var i=e[o],s=or(i)&&i.constructor===Object;r[o]=s?lo(i):i}}),r}}function Os(n,t){return n[t]}function Ps(n,t,e){n[t]=e}function Ts(n,t,e,r){var o=Os(n,e);void 0!==o&&Ps(t,e,r?r(o):o)}function Ds(n){var t={};return n.filter(function(e){return null!=e}).forEach(function(e){Object.keys(e).forEach(function(r){return t[r]=null})}),Object.keys(t)}function tt(n){if(!n)return[];var t=Object;if("function"==typeof t.values)return t.values(n);var e=[];for(var r in n)n.hasOwnProperty(r)&&n.propertyIsEnumerable(r)&&e.push(n[r]);return e}function Ve(n,t,e,r){void 0===e&&(e=!0),void 0===r&&(r=!1),O(t)&&re(t,function(o,i){var s=n[o];s!==i&&(r&&null==s&&null!=i&&"object"==typeof i&&i.constructor===Object&&(n[o]=s={}),or(i)&&or(s)&&!Array.isArray(s)?Ve(s,i,e,r):(e||void 0!==i)&&(n[o]=i))})}function uo(n,t,e){if(t&&n){if(!e)return n[t];for(var r=t.split("."),o=n,i=0;i<r.length;i++){if(null==o)return;o=o[r[i]]}return o}}function bs(n,t){Object.keys(n).forEach(function(o){"object"==typeof n[o]&&(n[o]=void 0)});var e=Object.getPrototypeOf(n),r={};Object.keys(e).forEach(function(o){"function"==typeof e[o]&&(r[o]={value:function(){console.warn("AG Grid: "+t+" function "+o+"() 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(n,r)}function or(n){return"object"==typeof n&&null!==n}var su=Object.freeze({__proto__:null,iterateObject:re,cloneObject:ao,deepCloneObject:function wi(n){return JSON.parse(JSON.stringify(n))},deepCloneDefinition:lo,getProperty:Os,setProperty:Ps,copyPropertiesIfPresent:function ru(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];e.forEach(function(o){return Ts(n,t,o)})},copyPropertyIfPresent:Ts,getAllKeysInObjects:Ds,getAllValuesInObject:tt,mergeDeep:Ve,missingOrEmptyObject:function ou(n){return M(n)||0===Object.keys(n).length},get:function iu(n,t,e){if(null==n)return e;for(var r=t.split("."),o=n;r.length>1;)if(null==(o=o[r.shift()]))return e;return o[r[0]]??e},set:function nu(n,t,e){if(null!=n){for(var r=t.split("."),o=n;r.length>1;)if(null==(o=o[r.shift()]))return;o[r[0]]=e}}
1,deepFreeze:function As(n){return Object.freeze(n),Ce(n).forEach(function(t){(or(t)||"function"==typeof t)&&As(t)}),n},getValueUsingField:uo,removeAllReferences:bs,isNonNullObject:or}),Fs={};function q(n,t){Fs[t]||(n(),Fs[t]=!0)}function po(n){if(n.name)return n.name;var t=/function\s+([^\(]+)/.exec(n.toString());return t&&2===t.length?t[1].trim():null}function co(n){return!!(n&&n.constructor&&n.call&&n.apply)}function Is(n){Gs(n,400)}var Ri=[],Ei=!1;function _i(n){Ri.push(n),!Ei&&(Ei=!0,window.setTimeout(function(){var t=Ri.slice();Ri.length=0,Ei=!1,t.forEach(function(e){return e()})},0))}function Gs(n,t){void 0===t&&(t=0),n.length>0&&window.setTimeout(function(){return n.forEach(function(e){return e()})},t)}function Rt(n,t,e){var r;return void 0===e&&(e=!1),function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=this,a=e&&!r;window.clearTimeout(r),r=window.setTimeout(function(){r=null,e||n.apply(s,o)},t),a&&n.apply(s,o)}}function Si(n,t){var e=0;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var s=(new Date).getTime();s-e<t||(e=s,n.apply(this,r))}}function xs(n,t,e,r){void 0===e&&(e=100);var o=(new Date).getTime(),i=null,s=!1,a=function(){var l=(new Date).getTime()-o>e;(n()||l)&&(t(),s=!0,null!=i&&(window.clearInterval(i),i=null),l&&r&&console.warn(r))};a(),s||(i=window.setInterval(a,10))}function Ls(n){n&&n()}var uu=Object.freeze({__proto__:null,doOnce:q,getFunctionName:po,isFunction:co,executeInAWhile:Is,executeNextVMTurn:_i,executeAfter:Gs,debounce:Rt,throttle:Si,waitUntil:xs,compose:function au(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(e){return n.reduce(function(r,o){return o(r)},e)}},callIfPresent:Ls,noop:function(){}}),pu=function(){function n(t,e){if(this.beanWrappers={}
1,this.destroyed=!1,t&&t.beanClasses){this.contextParams=t,this.logger=e,this.logger.log(">> creating ag-Application Context"),this.createBeans();var r=this.getBeanInstances();this.wireBeans(r),this.logger.log(">> ag-Application Context ready - component is alive")}}return n.prototype.getBeanInstances=function(){return Ce(this.beanWrappers).map(function(t){return t.beanInstance})},n.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},n.prototype.wireBeans=function(t,e){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),O(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},n.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),re(this.beanWrappers,function(r,o){var i;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(i=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var s=t.getBeansForParameters(i,o.bean.name),a=function cu(n,t){var e=[null].concat(t);return new(n.bind.apply(n,e))}(o.bean,s);o.beanInstance=a});var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+e)},n.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var r;return r=t.prototype.constructor?po(t.prototype.constructor):""+t,void console.error("Context item "+r+" is not a bean")}this.beanWrappers[e.beanName]={bean:t,beanInstance:null,beanName:e.beanName}},n.prototype.autoWireBeans=function(t){var e=this;t.forEach(function(r){e.forEachMetaDataInHierarchy(r,function(o,i){var s=o.agClassAttributes;s&&s.forEach(function(a){var l=e.lookupBeanInstance(i,a.beanName,a.optional);r[a.attributeName]=l})})})},n.prototype.methodWireBeans=function(t){var e=this;t.forEach(function(r){e.forEachMetaDataInHierarchy(r,function(o,i){re(o.autowireMethods,function(s,a){if("agConstructor"!==s){var l=e.getBeansForParameters(a,i);r[s].apply(r,l)}})})})},n.prototype.forEachMetaDataInHierarchy=function(t,e){for(var r=Object.getPrototypeOf(t);null!=r;){var o=r.constructor;o.hasOwnProperty("__agBeanMetaData")&&e(o.__agBeanMetaData,this.getBeanName(o)),r=Object.getPrototypeOf(r)}},n.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString();return e.substring(9,e.indexOf("("))},n.prototype.getBeansForParameters=function(t,e){var r=this,o=[];return t&&re(t,function(i,s){var a=r.lookupBeanInstance(e,s);o[Number(i)]=a}),o},n.prototype.lookupBeanInstance=function(t,e,r){if(void 0===r&&(r=!1),"context"===e)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var o=this.beanWrappers[e];return o?o.beanInstance:(r||console.error("AG Grid: unable to find bean reference "+e+" while initialising "+t),null)},n.prototype.callLifeCycleMethods=function(t,e){var r=this;t.forEach(function(o){return r.callLifeCycleMethodsOnBean(o,e)})},n.prototype.callLifeCycleMethodsOnBean=function(t,e,r){var o={};this.forEachMetaDataInHierarchy(t,function(s){var a=s[e];a&&a.forEach(function(l){l!=r&&(o[l]=!0)})}),Object.keys(o).forEach(function(s){return t[s]()})},n.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},n.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},n.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},n.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach(function(r){e.callLifeCycleMethodsOnBean(r,"preDestroyMethods","destroy"),"function"==typeof r.destroy&&r.destroy()}),[]):[]},n}();function Ms(n,t,e){var r=Mt(n.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function I(n,t,e){var r=Mt(n.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function Ee(n,t,e){var r=Mt(n.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function L(n){return function(t){Mt(t).beanName=n}}function h(n){return function(t,e,r){Ns(t,n,!1,0,e,null)}}function J(n){return function(t,e,r){Ns(t,n,!0,0,e,null)}}
vendor: 1,524 bytes, line 1
1function Ns(n,t,e,r,o,i){if(null!==t)if("number"!=typeof i){var s=Mt(n.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:o,beanName:t,optional:e})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function Fe(n){return function(t,e,r){var i,o="function"==typeof t?t:t.constructor;if("number"==typeof r){var s=void 0;e?(i=Mt(o),s=e):(i=Mt(o),s="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[s]||(i.autowireMethods[s]={}),i.autowireMethods[s][r]=n}}}function Mt(n){return n.hasOwnProperty("__agBeanMetaData")||(n.__agBeanMetaData={}),n.__agBeanMetaData}var ho=function(){return ho=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},ho.apply(this,arguments)},Hs=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},fo=function(n,t){return function(e,r){t(e,r,n)}},Et=function(){function n(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}
1return n.prototype.setBeans=function(t,e,r,o){if(void 0===o&&(o=null),this.frameworkOverrides=r,this.gridOptionsWrapper=e,o){var i=e.useAsyncEvents();this.addGlobalListener(o,i)}},n.prototype.getListeners=function(t,e,r){var o=e?this.allAsyncListeners:this.allSyncListeners,i=o.get(t);return!i&&r&&o.set(t,i=new Set),i},n.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},n.prototype.addEventListener=function(t,e,r){void 0===r&&(r=!1),this.getListeners(t,r,!0).add(e)},n.prototype.removeEventListener=function(t,e,r){void 0===r&&(r=!1);var o=this.getListeners(t,r,!1);o&&(o.delete(e),0===o.size)&&(r?this.allAsyncListeners:this.allSyncListeners).delete(t)},n.prototype.addGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},n.prototype.removeGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},n.prototype.dispatchEvent=function(t){var e=t;this.gridOptionsWrapper&&(e=ho(ho({},t),{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},n.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},n.prototype.dispatchToListeners=function(t,e){var r=this,o=t.type,s=this.getListeners(o,e,!1);s&&s.forEach(function(u){e?r.dispatchAsync(function(){return u(t)}):u(t)}),(e?this.globalAsyncListeners:this.globalSyncListeners).forEach(function(l){e?r.dispatchAsync(function(){return r.frameworkOverrides.dispatchEvent(o,function(){return l(o,t)},!0)}):r.frameworkOverrides.dispatchEvent(o,function(){return l(o,t)},!0)})},n.prototype.dispatchAsync=function(t){this.asyncFunctionsQueue.push(t),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},n.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach(function(e){return e()})},Hs([fo(0,Fe("loggerFactory")),fo(1,Fe("gridOptionsWrapper")),fo(2,Fe("frameworkOverrides")),fo(3,Fe("globalEventListener"))],n.prototype,"setBeans",null),Hs([L("eventService")],n)}(),m=function(){function n(){}return n.ROW_BUFFER_SIZE=10,n.LAYOUT_INTERVAL=500,n.BATCH_WAIT_MILLIS=50,n.EXPORT_TYPE_DRAG_COPY="dragCopy",n.EXPORT_TYPE_CLIPBOARD="clipboard",n.EXPORT_TYPE_EXCEL="excel",n.EXPORT_TYPE_CSV="csv",n.ROW_MODEL_TYPE_INFINITE="infinite",n.ROW_MODEL_TYPE_VIEWPORT="viewport",n.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",n.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",n.ALWAYS="always",n.ONLY_WHEN_GROUPING="onlyWhenGrouping",n.PINNED_TOP="top",n.PINNED_BOTTOM="bottom",n.DOM_LAYOUT_NORMAL="normal",n.DOM_LAYOUT_PRINT="print",n.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",n.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",n.SOURCE_PASTE="paste",n.PINNED_RIGHT="right",n.PINNED_LEFT="left",n.SORT_ASC="asc",n.SORT_DESC="desc",n.INPUT_SELECTOR="input, select, button, textarea",n.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",n.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",n}(),W=function(n){return n.CommunityCoreModule="@ag-grid-community/core",n.CommunityAllModules="@ag-grid-community/all",n.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",n.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",n.CsvExportModule="@ag-grid-community/csv-export",n.EnterpriseCoreModule="@ag-grid-enterprise/core",n.EnterpriseAllModules="@ag-grid-enterprise/all",n.RowGroupingModule="@ag-grid-enterprise/row-grouping",n.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",n.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",n.MenuModule="@ag-grid-enterprise/menu",n.SetFilterModule="@ag-grid-enterprise/set-filter",n.MultiFilterModule="@ag-grid-enterprise/multi-filter",n.StatusBarModule="@ag-grid-enterprise/status-bar",n.SideBarModule="@ag-grid-enterprise/side-bar",n.RangeSelectionModule="@ag-grid-enterprise/range-selection",n.MasterDetailModule="@ag-grid-enterprise/master-detail",n.RichSelectModule="@ag-grid-enterprise/rich-select",n.GridChartsModule="@ag-grid-enterprise/charts",n.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",n.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",n.ExcelExportModule="@ag-grid-enterprise/excel-export",n.ClipboardModule="@ag-grid-enterprise/clipboard",n.SparklinesModule="@ag-grid-enterprise/sparklines",n.AngularModule="@ag-grid-community/angular",n.ReactModule="@ag-grid-community/react",n.VueModule="@ag-grid-community/vue",n.PolymerModule="@ag-grid-community/polymer",n}(W||{}),k=function(){function n(){}return n.register=function(t,e){void 0===e&&(e=!0),n.modulesMap[t.moduleName]=t,void 0===n.moduleBased?n.moduleBased=e
1:n.moduleBased!==e&&q(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")},n.registerModules=function(t,e){void 0===e&&(e=!0),t&&t.forEach(function(r){return n.register(r,e)})},n.assertRegistered=function(t,e){return!!this.isRegistered(t)||(o=n.moduleBased?"AG Grid: unable to use "+e+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+e+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",q(function(){console.warn(o)},e+t),!1);var o},n.isRegistered=function(t){return!!n.modulesMap[t]},n.getRegisteredModules=function(){return Ce(n.modulesMap)},n.isPackageBased=function(){return!n.moduleBased},n.modulesMap={},n}(),Oi=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},du=0,X=function(){function n(t,e,r,o){this.instanceId=du++,this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new Et,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=r,this.primary=o,this.setState(t)}return n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setState=function(t){void 0!==t.sort?(t.sort===m.SORT_ASC||t.sort===m.SORT_DESC)&&(this.sort=t.sort):(t.initialSort===m.SORT_ASC||t.initialSort===m.SORT_DESC)&&(this.sort=t.initialSort);var e=fe(t.sortIndex),r=fe(t.initialSortIndex);void 0!==e?null!==e&&(this.sortIndex=e):null!==r&&(this.sortIndex=r);var o=Re(t.hide),i=Re(t.initialHide);this.visible=void 0!==o?!o:!i,this.setPinned(void 0!==t.pinned?t.pinned:t.initialPinned);var s=fe(t.flex),a=fe(t.initialFlex);void 0!==s?this.flex=s:void 0!==a&&(this.flex=a)},n.prototype.setColDef=function(t,e){this.colDef=t,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_COL_DEF_CHANGED,"api"))},n.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},n.prototype.setParent=function(t){this.parent=t},n.prototype.getParent=function(){return this.parent},n.prototype.setOriginalParent=function(t){this.originalParent=t},n.prototype.getOriginalParent=function(){return this.originalParent},n.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},n.prototype.initDotNotation=function(){var t=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=O(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=O(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},n.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},n.prototype.resetActualWidth=function(t){void 0===t&&(t="api");var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,t,!0)},n.prototype.isEmptyGroup=function(){return!1},n.prototype.isRowGroupDisplayed=function(t){return!(M(this.colDef)||M(this.colDef.showRowGroup)||!0!==this.colDef.showRowGroup&&this.colDef.showRowGroup!==t)},n.prototype.isPrimary=function(){return this.primary},n.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},n.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},n.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},n.prototype.validate=function(){var t=this.colDef;function e(s,a,l){q(function(){l?console.warn(s,l):q(function(){return console.warn(s)},a)},a)}this.gridOptionsWrapper.isRowModelDefault()&&!k.isRegistered(W.RowGroupingModule)&&["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach(function(s){O(t[s])&&(k.isPackageBased()?e("AG Grid: "+s+" is only valid in ag-grid-enterprise, your column definition should not have "+s,"ColumnRowGroupingMissing"+s):e("AG Grid: "+s+" is only valid with AG Grid Enterprise Module "+W.RowGroupingModule+" - your column definition should not have "+s,"ColumnRowGroupingMissing"+s))}),k.isRegistered(W.RichSelectModule)||("agRichSelect"===this.colDef.cellEditor||"agRichSelectCellEditor"===this.colDef.cellEditor)&&(k.isPackageBased()?e("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):e("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+W.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()&&["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach(function(s){O(t[s])&&e("AG Grid: "+s+" is not possible when doing tree data, your column definition should not have "+s,"TreeDataCannotRowGroup")}),O(this.colDef.width)&&"number"!=typeof this.colDef.width&&e("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),t.pinnedRowCellRenderer&&e("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"),t.pinnedRowCellRendererParams&&e("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"),t.pinnedRowCellRendererFramework&&e("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"),t.pinnedRowValueGetter&&e("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")},n.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},n.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},n.prototype.createColumnFunctionCallbackParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},n.prototype.isSuppressNavigable=function(t){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var e=this.createColumnFunctionCallbackParams(t);return(0,this.colDef.suppressNavigable)(e)}return!1},n.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(t,this.colDef.editable)},n.prototype.isSuppressFillHandle=function(){return!!Re(this.colDef.suppressFillHandle)},n.prototype.isAutoHeight=function(){return!!Re(this.colDef.autoHeight)},n.prototype.isAutoHeaderHeight=function(){return!!Re(this.colDef.autoHeaderHeight)},n.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},n.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},n.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},n.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},n.prototype.isResizable=function(){return!!Re(this.colDef.resizable)},n.prototype.isColumnFunc=function(t,e){return"boolean"==typeof e?e:"function"==typeof e&&e(this.createColumnFunctionCallbackParams(t))},n.prototype.setMoving=function(t,e){void 0===e&&(e="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_MOVING_CHANGED,e))},n.prototype.createColumnEvent=function(t,e){return{type:t,column:this,columns:[this],source:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},n.prototype.isMoving=function(){return this.moving},n.prototype.getSort=function(){return this.sort},n.prototype.setSort=function(t,e){void 0===e&&(e="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_SORT_CHANGED,e)))},n.prototype.setMenuVisible=function(t,e){void 0===e&&(e="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_MENU_VISIBLE_CHANGED,e)))},n.prototype.isMenuVisible=function(){return this.menuVisible},n.prototype.isSortAscending=function(){return this.sort===m.SORT_ASC},n.prototype.isSortDescending=function(){return this.sort===m.SORT_DESC},n.prototype.isSortNone=function(){return M(this.sort)},n.prototype.isSorting=function(){return O(this.sort)},n.prototype.getSortIndex=function(){return this.sortIndex},n.prototype.setSortIndex=function(t){this.sortIndex=t},n.prototype.setAggFunc=function(t){this.aggFunc=t},n.prototype.getAggFunc=function(){return this.aggFunc},n.prototype.getLeft=function(){return this.left},n.prototype.getOldLeft=function(){return this.oldLeft},n.prototype.getRight=function(){return this.left+this.actualWidth},n.prototype.setLeft=function(t,e){void 0===e&&(e="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_LEFT_CHANGED,e)))},n.prototype.isFilterActive=function(){return this.filterActive},n.prototype.setFilterActive=function(t,e,r){void 0===e&&(e="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_FILTER_ACTIVE_CHANGED,e)));var o=this.createColumnEvent(n.EVENT_FILTER_CHANGED,e);r&&Ve(o,r),this.eventService.dispatchEvent(o)},n.prototype.setPinned=function(t){this.pinned=!0===t||t===m.PINNED_LE
1FT?m.PINNED_LEFT:t===m.PINNED_RIGHT?m.PINNED_RIGHT:null},n.prototype.setFirstRightPinned=function(t,e){void 0===e&&(e="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_FIRST_RIGHT_PINNED_CHANGED,e)))},n.prototype.setLastLeftPinned=function(t,e){void 0===e&&(e="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_LAST_LEFT_PINNED_CHANGED,e)))},n.prototype.isFirstRightPinned=function(){return this.firstRightPinned},n.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},n.prototype.isPinned=function(){return this.pinned===m.PINNED_LEFT||this.pinned===m.PINNED_RIGHT},n.prototype.isPinnedLeft=function(){return this.pinned===m.PINNED_LEFT},n.prototype.isPinnedRight=function(){return this.pinned===m.PINNED_RIGHT},n.prototype.getPinned=function(){return this.pinned},n.prototype.setVisible=function(t,e){void 0===e&&(e="api");var r=!0===t;this.visible!==r&&(this.visible=r,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_VISIBLE_CHANGED,e)))},n.prototype.isVisible=function(){return this.visible},n.prototype.getColDef=function(){return this.colDef},n.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},n.prototype.getColId=function(){return this.colId},n.prototype.getId=function(){return this.getColId()},n.prototype.getUniqueId=function(){return this.getId()},n.prototype.getDefinition=function(){return this.colDef},n.prototype.getActualWidth=function(){return this.actualWidth},n.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},n.prototype.setAutoHeaderHeight=function(t){var e=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,e},n.prototype.createBaseColDefParams=function(t){return{node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},n.prototype.getColSpan=function(t){if(M(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),r=this.colDef.colSpan(e);return Math.max(r,1)},n.prototype.getRowSpan=function(t){if(M(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),r=this.colDef.rowSpan(e);return Math.max(r,1)},n.prototype.setActualWidth=function(t,e,r){void 0===e&&(e="api"),void 0===r&&(r=!1),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&"flex"!==e&&"gridInitializing"!==e&&(this.flex=null),r||this.fireColumnWidthChangedEvent(e))},n.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_WIDTH_CHANGED,t))},n.prototype.isGreaterThanMax=function(t){return null!=this.maxWidth&&t>this.maxWidth},n.prototype.getMinWidth=function(){return this.minWidth},n.prototype.getMaxWidth=function(){return this.maxWidth},n.prototype.getFlex=function(){return this.flex||0},n.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t)},n.prototype.setMinimum=function(t){void 0===t&&(t="api"),O(this.minWidth)&&this.setActualWidth(this.minWidth,t)},n.prototype.setRowGroupActive=function(t,e){void 0===e&&(e="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_ROW_GROUP_CHANGED,e)))},n.prototype.isRowGroupActive=function(){return this.rowGroupActive},n.prototype.setPivotActive=function(t,e){void 0===e&&(e="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_PIVOT_CHANGED,e)))},n.prototype.isPivotActive=function(){return this.pivotActive},n.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},n.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},n.prototype.setValueActive=function(t,e){void 0===e&&(e="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(n.EVENT_VALUE_CHANGED,e)))},n.prototype.isValueActive=function(){return this.aggregationActive},n.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},n.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},n.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},n.prototype.getMenuTabs=function(t){var e=this.getColDef().menuTabs;return null==e&&(e=t),e},n.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},n.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},n.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},n.EVENT_MOVING_CHANGED="movingChanged",n.EVENT_LEFT_CHANGED="leftChanged",n.EVENT_WIDTH_CHANGED="widthChanged",n.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",n.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",n.EVENT_VISIBLE_CHANGED="visibleChanged",n.EVENT_FILTER_CHANGED="filterChanged",n.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",n.EVENT_SORT_CHANGED="sortChanged",n.EVENT_COL_DEF_CHANGED="colDefChanged",n.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",n.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",n.EVENT_PIVOT_CHANGED="columnPivotChanged",n.EVENT_VALUE_CHANGED="columnValueChanged",Oi([h("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Oi([h("columnUtils")],n.prototype,"columnUtils",void 0),Oi([I],n.prototype,"initialise",null),n}();function Ws(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var e=0;e<n.length;e++){var r=n[e];if(O(r))return r}return null}function ie(n){if(n&&n.length)return n[n.length-1]}function _t(n,t,e){return null==n&&null==t||null!=n&&null!=t&&n.length===t.length&&n.every(function(r,o){return e?e(r,t[o]):t[o]===r})}function Vs(n){return n.sort(function(t,e){return t-e})}function De(n,t){var e=n.indexOf(t);e>=0&&n.splice(e,1)}function Pi(n,t){t.forEach(function(e){return De(n,e)})}function wr(n,t,e){n.splice(e,0,t)}
1function Ti(n,t,e){Pi(n,t),t.slice().reverse().forEach(function(r){return wr(n,r,e)})}function Be(n,t){return n.indexOf(t)>-1}function Bs(n){return[].concat.apply([],n)}function Di(n,t){null==t||null==n||t.forEach(function(e){return n.push(e)})}var wu=Object.freeze({__proto__:null,firstExistingValue:Ws,existsAndNotEmpty:function hu(n){return null!=n&&n.length>0},last:ie,areEqual:_t,compareArrays:function fu(n,t){return _t(n,t)},shallowCompare:function gu(n,t){return _t(n,t)},sortNumerically:Vs,removeRepeatsFromArray:function vu(n,t){if(n)for(var e=n.length-2;e>=0;e--)n[e]===t&&n[e+1]===t&&n.splice(e+1,1)},removeFromArray:De,removeAllFromArray:Pi,insertIntoArray:wr,insertArrayIntoArray:function yu(n,t,e){if(null!=n&&null!=t)for(var r=t.length-1;r>=0;r--)wr(n,t[r],e)},moveInArray:Ti,includes:Be,flatten:Bs,pushAll:Di,toStrings:function Cu(n){return n.map(Pe)},forEachReverse:function mu(n,t){if(null!=n)for(var e=n.length-1;e>=0;e--)t(n[e],e)}}),Ae=function(){function n(t,e,r,o){this.displayedChildren=[],this.localEventService=new Et,this.groupId=e,this.instanceId=r,this.providedColumnGroup=t,this.pinned=o}return n.createUniqueId=function(t,e){return t+"_"+e},n.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},n.prototype.getParent=function(){return this.parent},n.prototype.setParent=function(t){this.parent=t},n.prototype.getUniqueId=function(){return n.createUniqueId(this.groupId,this.instanceId)},n.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},n.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!(!t||0===t.length)&&t.every(function(e){return e.isMoving()})},n.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(o){o instanceof n&&o.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var e=ie(this.displayedChildren).getLeft();this.setLeft(e)}else{var r=this.displayedChildren[0].getLeft();this.setLeft(r)}else this.setLeft(null)},n.prototype.getLeft=function(){return this.left},n.prototype.getOldLeft=function(){return this.oldLeft},n.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_LEFT_CHANGED)))},n.prototype.getPinned=function(){return this.pinned},n.prototype.createAgEvent=function(t){return{type:t}},n.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},n.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},n.prototype.getGroupId=function(){return this.groupId},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.isChildInThisGroupDeepSearch=function(t){var e=!1;return this.children.forEach(function(r){t===r&&(e=!0),r instanceof n&&r.isChildInThisGroupDeepSearch(t)&&(e=!0)}),e},n.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach(function(e){t+=e.getActualWidth()}),t},n.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach(function(e){e.isResizable()&&(t=!0)}),t},n.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach(function(e){t+=e.getMinWidth()||0}),t},n.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},n.prototype.getDisplayedChildren=function(){return this.displayedChildren},n.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},n.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},n.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},n.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},n.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},n.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},n.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},n.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},n.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEac
1h(function(e){e instanceof X?t.push(e):e instanceof n&&e.addDisplayedLeafColumns(t)})},n.prototype.addLeafColumns=function(t){this.children.forEach(function(e){e instanceof X?t.push(e):e instanceof n&&e.addLeafColumns(t)})},n.prototype.getChildren=function(){return this.children},n.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},n.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},n.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},n.prototype.getPaddingLevel=function(){var t=this.getParent();return this.isPadding()&&t&&t.isPadding()?1+t.getPaddingLevel():0},n.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var e=this;null!=e&&e.isPadding();)e=e.getParent();if(!e||!e.providedColumnGroup.isExpandable())return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach(function(o){if(!(o instanceof n)||o.displayedChildren&&o.displayedChildren.length)switch(o.getColumnGroupShow()){case n.HEADER_GROUP_SHOW_OPEN:e.providedColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case n.HEADER_GROUP_SHOW_CLOSED:e.providedColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o)}}),this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_DISPLAYED_CHILDREN_CHANGED))},n.HEADER_GROUP_SHOW_OPEN="open",n.HEADER_GROUP_SHOW_CLOSED="closed",n.EVENT_LEFT_CHANGED="leftChanged",n.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([h("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),n}(),pe=function(){function n(t,e,r,o){this.localEventService=new Et,this.expandable=!1,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=r,this.level=o}return n.prototype.reset=function(t,e){this.colGroupDef=t,this.level=e,this.originalParent=null,this.children=void 0,this.expandable=void 0},n.prototype.setOriginalParent=function(t){this.originalParent=t},n.prototype.getOriginalParent=function(){return this.originalParent},n.prototype.getLevel=function(){return this.level},n.prototype.isVisible=function(){return!!this.children&&this.children.some(function(t){return t.isVisible()})},n.prototype.isPadding=function(){return this.padding},n.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t,this.localEventService.dispatchEvent({type:n.EVENT_EXPANDED_CHANGED})},n.prototype.isExpandable=function(){return this.expandable},n.prototype.isExpanded=function(){return this.expanded},n.prototype.getGroupId=function(){return this.groupId},n.prototype.getId=function(){return this.getGroupId()},n.prototype.setChildren=function(t){this.children=t},n.prototype.getChildren=function(){return this.children},n.prototype.getColGroupDef=function(){return this.colGroupDef},n.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},n.prototype.addLeafColumns=function(t){this.children&&this.children.forEach(function(e){e instanceof X?t.push(e):e instanceof n&&e.addLeafColumns(t)})},n.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},n.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.getLeafColumns().forEach(function(e){return e.addEventListener(X.EVENT_VISIBLE_CHANGED,t.onColumnVisibilityChanged.bind(t))})},n.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,e=!1,r=!1,o=this.findChildrenRemovingPadding(),i=0,s=o.length;i<s;i++){var a=o[i];if(a.isVisible()){var l=a.getColumnGroupShow();l===Ae.HEADER_GROUP_SHOW_OPEN?(t=!0,r=!0):l===Ae.HEADER_GROUP_SHOW_CLOSED?(e=!0,r=!0):(t=!0,e=!0)}}var u=t&&e&&r;this.expandable!==u&&(this.expandable=u,this.localEventService.dispatchEvent({type:n.EVENT_EXPANDABLE_CHANGED}))}},n.prototype.findChildrenRemovingPadding=function(){var t=[],e=function(r){r.forEach(function(o){o instanceof n&&o.isPadding()?e(o.children):t.push(o)})};return e(this.children),t},n.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},n.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},n.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},n.EVENT_EXPANDED_CHANGED="expandedChanged",n.EVENT_EXPANDABLE_CHANGED="expandableChanged",n}(),Eu={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},ks="__ag_Grid_Stop_Propagation",_u=["touchstart","touchend","touchmove","touchcancel"],Ai={};function ir(n){n[ks]=!0}function ot(n){return!0===n[ks]}var bi=function(){var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(e){if("boolean"==typeof Ai[e])return Ai[e];var r=document.createElement(n[e]||"div");return Ai[e="on"+e]=e in r}}();function go(n,t,e){for(var r=t.target;r;){var o=n.getDomData(r,e);if(o)return o;r=r.parentElement}return null}function vo(n,t){return!(!t||!n)&&Fi(t).indexOf(n)>=0}function Us(n){for(var t=[],e=n.target;e;)t.push(e),e=e.parentElement;return t}function Fi(n){var t=n;return t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:Us(n)}function js(n,t,e,r){var o=Be(_u,e);n&&n.addEventListener&&n.addEventListener(t,e,r,o?{passive:!0}:void 0)}var Pu=Object.freeze({__proto__:null,stopPropagationForAgGrid:ir,isStopPropagationForAgGrid:ot,isEventSupported:bi,getCtrlForEvent:go,addChangeListener:function Su(n,t){n.addEventListener("changed",t),n.addEventListener("paste",t),n.addEventListener("input",t)},isElementInEventPath:vo,createEventPath:Us,addAgGridEventPath:function Ou(n){n.__agGridEventPath=Fi(n)},getEventPath:Fi,addSafePassiveEventListener:js}),Rr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},F=function(){function n(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!t.destroyed}}return n.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},n.prototype.getContext=function(){return this.context},n.prototype.destroy=function(){this.destroyFunctions.forEach(function(t){return t()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:n.EVENT_DESTROYED})},n.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new Et),this.localEventService.addEventListener(t,e)},n.prototype.removeEventListener=function(t,e){this.localEventService&&this.localEventService.removeEventListener(t,e)},n.prototype.dispatchEventAsync=function(t){var e=this;window.setTimeout(function(){return e.dispatchEvent(t)},0)},n.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},n.prototype.addManagedListener=function(t,e,r){var o=this;if(!this.destroyed){t instanceof HTMLElement?js(this.getFrameworkOverrides(),t,e,r):t.addEventListener(e,r);var i=function(){return t.removeEventListener(e,r),o.destroyFunctions=o.destroyFunctions.filter(function(s){return s!==i}),null};return this.destroyFunctions.push(i),i}},n.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},n.prototype.createManagedBean=function(t,e){var r=this.createBean(t,e);return this.addDestroyFunc(this.destroyBean.bind(this,t,e)),r},n.prototype.createBean=function(t,e,r){return(e||this.getContext()).createBean(t,r)},n.prototype.destroyBean=function(t,e){return(e||this.getContext()).destroyBean(t)},n.prototype.destroyBeans=function(t,e){var r=this;return t&&t.forEach(function(o){return r.destroyBean(o,e)}),[]},n.EVENT_DESTROYED="destroyed",Rr([h("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),Rr([h("context")],n.prototype,"context",void 0),Rr([h("eventService")],n.prototype,"eventService",void 0),Rr([h("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Rr([Ee],n.prototype,"destroy",null),n}
1(),Tu=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ii=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Du=function(n,t){return function(e,r){t(e,r,n)}},Au=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Tu(t,n),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,r,o){var i=new rr,s=this.extractExistingTreeData(o),a=s.existingCols,l=s.existingGroups;i.addExistingKeys(s.existingColKeys);var p=this.recursivelyCreateColumns(e,0,r,a,i,l),c=this.findMaxDept(p,0);this.logger.log("Number of levels for grouped columns is "+c);var d=this.balanceColumnTree(p,0,c,i);return this.columnUtils.depthFirstOriginalTreeSearch(null,d,function(v,y){v instanceof pe&&v.setupExpandable(),v.setOriginalParent(y)}),{columnTree:d,treeDept:c}},t.prototype.extractExistingTreeData=function(e){var r=[],o=[],i=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(s){if(s instanceof pe)o.push(s);else{var l=s;i.push(l.getId()),r.push(l)}}),{existingCols:r,existingGroups:o,existingColKeys:i}},t.prototype.createForAutoGroups=function(e,r){var o=this;return e.map(function(i){return o.createAutoGroupTreeItem(r,i)})},t.prototype.createAutoGroupTreeItem=function(e,r){for(var i=r,s=this.findDepth(e)-1;s>=0;s--){var a=new pe(null,"FAKE_PATH_"+r.getId()+"}_"+s,!0,s);this.context.createBean(a),a.setChildren([i]),i.setOriginalParent(a),i=a}return i},t.prototype.findDepth=function(e){for(var r=0,o=e;o&&o[0]&&o[0]instanceof pe;)r++,o=o[0].getChildren();return r},t.prototype.balanceColumnTree=function(e,r,o,i){for(var s=[],a=0;a<e.length;a++){var l=e[a];if(l instanceof pe){var u=l,p=this.balanceColumnTree(u.getChildren(),r+1,o,i);u.setChildren(p),s.push(u)}else{for(var c=void 0,d=void 0,f=o-1;f>=r;f--){var v=i.getUniqueKey(null,null),y=this.createMergedColGroupDef(null),C=new pe(y,v,!0,r);this.context.createBean(C),d&&d.setChildren([C]),d=C,c||(c=d)}if(c&&d){if(s.push(c),e.some(function(w){return w instanceof pe})){d.setChildren([l]);continue}d.setChildren(e);break}s.push(l)}}return s},t.prototype.findMaxDept=function(e,r){for(var o=r,i=0;i<e.length;i++){var s=e[i];if(s instanceof pe){var l=this.findMaxDept(s.getChildren(),r+1);o<l&&(o=l)}}return o},t.prototype.recursivelyCreateColumns=function(e,r,o,i,s,a){var l=this;return(e||[]).map(function(u){return l.isColumnGroup(u)?l.createColumnGroup(o,u,r,i,s,a):l.createColumn(o,u,i,s)})},t.prototype.createColumnGroup=function(e,r,o,i,s,a){var c,l=this.createMergedColGroupDef(r),u=s.getUniqueKey(l.groupId||null,null),p=this.findExistingGroup(r,a);p?((c=p).reset(l,o),De(a,p)):(c=new pe(l,u,!1,o),this.context.createBean(c));var d=this.recursivelyCreateColumns(l.children,o+1,e,i,s,a);return c.setChildren(d),c},t.prototype.createMergedColGroupDef=function(e){var r={};return Object.assign(r,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(r,e),this.checkForDeprecatedItems(r),r},t.prototype.createColumn=function(e,r,o,i){var s=this.mergeColDefs(r);this.checkForDeprecatedItems(s);var a=this.findExistingColumn(r,o);if(o&&a&&De(o,a),a)a.setColDef(s,r),this.applyColumnState(a,s);else{var l=i.getUniqueKey(s.colId,s.field);a=new X(s,r,l,e),this.context.createBean(a)}return a},t.prototype.applyColumnState=function(e,r){var o=fe(r.flex);if(void 0!==o&&e.setFlex(o),e.getFlex()<=0){var s=fe(r.width);if(null!=s)e.setActualWidth(s);else{var a=e.getActualWidth();e.setActualWidth(a)}}void 0!==r.sort&&e.setSort(r.sort==m.SORT_ASC||r.sort==m.SORT_DESC?r.sort:void 0);var l=fe(r.sortIndex);void 0!==l&&e.setSortIndex(l);var u=Re(r.hide);void 0!==u&&e.setVisible(!u),void 0!==r.pinned&&e.setPinned(r.pinned)},t.prototype.findExistingColumn=function(e,r){return(r||[]).find(function(o){var i=o.getUserProvidedColDef();if(!i)return!1;
1var a=null!=e.field;return null!=e.colId?o.getId()===e.colId:a?i.field===e.field:i===e})},t.prototype.findExistingGroup=function(e,r){return r.find(function(o){return!(!o.getColGroupDef()||null==e.groupId||o.getId()!==e.groupId)})},t.prototype.mergeColDefs=function(e){var r={},o=this.gridOptionsWrapper.getDefaultColDef();Ve(r,o,!1,!0);var i=e.type;i||(i=o&&o.type),i&&this.assignColumnTypes(i,r),Ve(r,e,!1,!0);var s=this.gridOptionsWrapper.getAutoGroupColumnDef(),a=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();return e.rowGroup&&s&&a&&Ve(r,{sort:s.sort,initialSort:s.initialSort},!1,!0),r},t.prototype.assignColumnTypes=function(e,r){var o=[];if(e instanceof Array)e.some(function(l){return"string"!=typeof l})?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e;else{if("string"!=typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");o=e.split(",")}var s=Object.assign({},Eu);re(this.gridOptionsWrapper.getColumnTypes()||{},function(l,u){l in s?console.warn("AG Grid: the column type '"+l+"' is a default column type and cannot be overridden."):s[l]=u}),o.forEach(function(l){var u=s[l.trim()];u?Ve(r,u,!1,!0):console.warn("AG Grid: colDef.type '"+l+"' does not correspond to defined gridOptions.columnTypes")})},t.prototype.checkForDeprecatedItems=function(e){if(e){var r=e;void 0!==r.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!==r.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!==r.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!==r.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==r.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(r.suppressRowGroup||r.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),r.displayName&&(console.warn("AG Grid: Found displayName "+r.displayName+", please use headerName instead, displayName is deprecated."),r.headerName=r.displayName)}},t.prototype.isColumnGroup=function(e){return void 0!==e.children},Ii([h("columnUtils")],t.prototype,"columnUtils",void 0),Ii([Du(0,Fe("loggerFactory"))],t.prototype,"setBeans",null),Ii([L("columnFactory")],t)}(F),g=function(){function n(){}return n.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",n.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",n.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",n.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",n.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",n.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",n.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",n.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",n.EVENT_COLUMN_MOVED="columnMoved",n.EVENT_COLUMN_VISIBLE="columnVisible",n.EVENT_COLUMN_PINNED="columnPinned",n.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",n.EVENT_COLUMN_RESIZED="columnResized",n.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",n.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",n.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",n.EVENT_ROW_GROUP_OPENED="rowGroupOpened",n.EVENT_ROW_DATA_CHANGED="rowDataChanged",n.EVENT_ROW_DATA_UPDATED="rowDataUpdated",n.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",n.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",n.EVENT_CHART_CREATED="chartCreated",n.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",n.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",n.EVENT_CHART_DESTROYED="chartDestroyed",n.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",n.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",n.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",n.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",n.EVENT_MODEL_UPDATED="modelUpdated",n.EVENT_PASTE_START="pasteStart",n.EVENT_PASTE_END="pasteEnd",n.EVENT_FILL_START="fillStart",n.EVENT_FILL_END="fillEnd",n.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",n.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",n.EVENT_CELL_CLICKED="cellClicked",n.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",n.EVENT_CELL_MOUSE_DOWN="cellMouseDown",n.EVENT_CELL_CONTEXT_MENU="cellContextMenu",n.EVENT_CELL_VALUE_CHANGED="cellValueChanged",n.EVENT_CELL_EDIT_REQUEST="cellEditRequest",n.EVENT_ROW_VALUE_CHANGED="rowValueChanged",n.EVENT_CELL_FOCUSED="cellFocused",n.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",n.EVENT_ROW_SELECTED="rowSelected",n.EVENT_SELECTION_CHANGED="selectionChanged",n.EVENT_CELL_KEY_DOWN="cellKeyDown",n.EVENT_CELL_KEY_PRESS="cellKeyPress",n.EVENT_CELL_MOUSE_OVER="cellMouseOver",n.EVENT_CELL_MOUSE_OUT="cellMouseOut",n.EVENT_FILTER_CHANGED="filterChanged",n.EVENT_FILTER_MODIFIED="filterModified",n.EVENT_FILTER_OPENED="filterOpened",n.EVENT_SORT_CHANGED="sortChanged",n.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",n.EVENT_ROW_CLICKED="rowClicked",n.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",n.EVENT_GRID_READY="gridReady",n.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",n.EVENT_VIEWPORT_CHANGED="viewportChanged",n.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",n.EVENT_FIRST_DATA_RENDERED="firstDataRendered",n.EVENT_DRAG_STARTED="dragStarted",n.EVENT_DRAG_STOPPED="dragStopped",n.EVENT_CHECKBOX_CHANGED="checkboxChanged",n.EVENT_ROW_EDITING_STARTED="rowEditingStarted",n.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",n.EVENT_CELL_EDITING_STARTED="cellEditingStarted",n.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",n.EVENT_BODY_SCROLL="bodyScroll",n.EVENT_BODY_SCROLL_END="bodyScrollEnd",n.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",n.EVENT_PAGINATION_CHANGED="paginationChanged",n.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",n.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",n.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",n.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",n.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",n.EVENT_FLASH_CELLS="flashCells",n.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOff
1setChanged",n.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",n.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",n.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",n.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",n.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",n.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",n.EVENT_ROW_DRAG_ENTER="rowDragEnter",n.EVENT_ROW_DRAG_MOVE="rowDragMove",n.EVENT_ROW_DRAG_LEAVE="rowDragLeave",n.EVENT_ROW_DRAG_END="rowDragEnd",n.EVENT_POPUP_TO_FRONT="popupToFront",n.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",n.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",n.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",n.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",n.EVENT_KEYBOARD_FOCUS="keyboardFocus",n.EVENT_MOUSE_FOCUS="mouseFocus",n.EVENT_STORE_UPDATED="storeUpdated",n}(),zs=function(){function n(){this.existingIds={}}return n.prototype.getInstanceIdForKey=function(t){var r,e=this.existingIds[t];return this.existingIds[t]=r="number"!=typeof e?0:e+1,r},n}(),bu=/[&<>"']/g,Fu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ks(n){return null==n?null:n.replace(/([A-Z])/g,function(t){return"-"+t[0].toLowerCase()})}function $s(n){return null==n?null:n.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}function Gi(n){return n[0].toUpperCase()+n.substr(1).toLowerCase()}function it(n,t){if(null==n)return null;var e=n.toString().toString();return t?e:e.replace(bu,function(r){return Fu[r]})}function xi(n){return n&&null!=n?n.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map(function(r){return r.substring(0,1).toUpperCase()+(r.length>1?r.substring(1,r.length):"")}).join(" "):null}var Gu=Object.freeze({__proto__:null,utf8_encode:function Iu(n){var t=String.fromCharCode;function o(c,d){return t(c>>d&63|128)}function i(c){if(c>=0&&c<=31&&10!==c)return"_x"+c.toString(16).toUpperCase().padStart(4,"0")+"_";if(!(4294967168&c))return t(c);var v="";return 4294965248&c?4294901760&c?!(4292870144&c)&&(v=t(c>>18&7|240),v+=o(c,12),v+=o(c,6)):(function r(c){if(c>=55296&&c<=57343)throw Error("Lone surrogate U+"+c.toString(16).toUpperCase()+" is not a scalar value")}(c),v=t(c>>12&15|224),v+=o(c,6)):v=t(c>>6&31|192),v+t(63&c|128)}for(var s=function e(c){var d=[];if(!c)return[];for(var y,C,f=c.length,v=0;v<f;)(y=c.charCodeAt(v++))>=55296&&y<=56319&&v<f?56320==(64512&(C=c.charCodeAt(v++)))?d.push(((1023&y)<<10)+(1023&C)+65536):(d.push(y),v--):d.push(y);return d}(n),a=s.length,l=-1,p="";++l<a;)p+=i(s[l]);return p},camelCaseToHyphen:Ks,hyphenToCamelCase:$s,capitalise:Gi,escapeString:it,camelCaseToHumanText:xi});function ut(n){var t=new Map;return n.forEach(function(e){return t.set(e[0],e[1])}),t}var Mu=Object.freeze({__proto__:null,convertToMap:ut,mapById:function xu(n,t){var e=new Map;return n.forEach(function(r){return e.set(t(r),r)}),e},keys:function Lu(n){var t=[];return n.forEach(function(e,r){return t.push(r)}),t}}),Nu=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Ys=function(){function n(){}return n.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"],n.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],n.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],n.NUM
vendor: 8,795 bytes, line 1
1BER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],n.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","showDisabledCheckboxes","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","wrapHeaderText","autoHeaderHeight"],n.ALL_PROPERTIES=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Nu(arguments[t]));return n}(n.ARRAY_PROPERTIES,n.OBJECT_PROPERTIES,n.STRING_PROPERTIES,n.NUMBER_PROPERTIES,n.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"],n.BOOLEAN_PROPERTIES),n.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],n}(),Wu=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},qs=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Wu(arguments[t]));return n},pt=function(){function n(){}return n.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault"],n.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","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef"],n.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],n.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","serverSideInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],n.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","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","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","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","enableChartToolPanelsButton","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideFilterAllLevels","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","groupRowsSticky","serverSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter"],n.FUNCTION_PROPERTIES=qs(n.FUNCTIONAL_PROPERTIES=["localeTextFunc","doesExternalFilterPass","groupRowAggNodes","isFullWidthCell","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","postSort","defaultGroupSortComparator","defaultGroupOrderComparator","rowDragText","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","fullWidthCellRenderer","fullWidthCellRendererFramework","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework"],n.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","getRowNodeId","isFullWidthRow","
1sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"]),n.ALL_PROPERTIES=qs(n.ARRAY_PROPERTIES,n.OBJECT_PROPERTIES,n.STRING_PROPERTIES,n.NUMBER_PROPERTIES,n.FUNCTION_PROPERTIES,n.BOOLEAN_PROPERTIES),n.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],n}(),Li=function(){return Li=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Li.apply(this,arguments)},Vu=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Xs=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Vu(arguments[t]));return n},ct=function(){function n(){}return n.getEventCallbacks=function(){return n.EVENT_CALLBACKS||(n.EVENT_CALLBACKS=n.EVENTS.map(function(t){return n.getCallbackForEvent(t)})),n.EVENT_CALLBACKS},n.copyAttributesToGridOptions=function(t,e,r){"object"!=typeof t&&(t={});var o=t,i=function(s){return typeof e[s]<"u"};return i("groupAggFiltering")&&"function"!=typeof e.groupAggFiltering&&(o.groupAggFiltering=n.toBoolean(e.groupAggFiltering),delete e.groupAggFiltering),Xs(n.ARRAY_PROPERTIES,n.STRING_PROPERTIES,n.OBJECT_PROPERTIES,n.FUNCTION_PROPERTIES,n.getEventCallbacks()).filter(i).forEach(function(s){return o[s]=e[s]}),n.BOOLEAN_PROPERTIES.filter(i).forEach(function(s){return o[s]=n.toBoolean(e[s])}),n.NUMBER_PROPERTIES.filter(i).forEach(function(s){return o[s]=n.toNumber(e[s])}),t},n.getCallbackForEvent=function(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substr(1)},n.processOnChange=function(t,e,r,o){if(t){var i=Li({},t),s=e,a=function(p){return i[p]};a("groupAggFiltering")&&(s.groupAggFiltering="function"==typeof i.groupAggFiltering?i.groupAggFiltering:n.toBoolean(i.groupAggFiltering),delete i.groupAggFiltering),a("groupDisplayType")&&"string"==typeof i.groupDisplayType.currentValue&&(r.setGroupDisplayType(i.groupDisplayType.currentValue),delete i.groupDisplayType),i.domLayout&&(r.setDomLayout(i.domLayout.currentValue),delete i.domLayout),i.rowClass&&(r.setRowClass(i.rowClass.currentValue),delete i.rowClass),i.paginationPageSize&&(r.paginationSetPageSize(n.toNumber(i.paginationPageSize.currentValue)),delete i.paginationPageSize),i.rowGroupPanelShow&&(r.setRowGroupPanelShow(i.rowGroupPanelShow.currentValue),delete i.rowGroupPanelShow),i.groupRemoveSingleChildren&&(r.setGroupRemoveSingleChildren(n.toBoolean(i.groupRemoveSingleChildren.currentValue)),delete i.groupRemoveSingleChildren),i.groupRemoveLowestSingleChildren&&(r.setGroupRemoveLowestSingleChildren(n.toBoolean(i.groupRemoveLowestSingleChildren.currentValue)),delete i.groupRemoveLowestSingleChildren),i.suppressRowDrag&&(r.setSuppressRowDrag(n.toBoolean(i.suppressRowDrag.currentValue)),delete i.suppressRowDrag),i.suppressMoveWhenRowDragging&&(r.setSuppressMoveWhenRowDragging(n.toBoolean(i.suppressMoveWhenRowDragging.currentValue)),delete i.suppressMoveWhenRowDragging),i.suppressRowClickSelection&&(r.setSuppressRowClickSelection(n.toBoolean(i.suppressRowClickSelection.currentValue)),delete i.suppressRowClickSelection),i.suppressClipboardPaste&&(r.setSuppressClipboardPaste(n.toBoolean(i.suppressClipboardPaste.currentValue)),delete i.suppressClipboardPaste),i.headerHeight&&(r.setHeaderHeight(n.toNumber(i.headerHeight.currentValue)),delete i.headerHeight),i.pivotHeaderHeight&&(r.setPivotHeaderHeight(n.toNumber(i.pivotHeaderHeight.currentValue)),delete i.pivotHeaderHeight),i.groupHeaderHeight&&(r.setGroupHeaderHeight(n.toNumber(i.groupHeaderHeight.currentValue)),delete i.groupHeaderHeight),i.pivotGroupHeaderHeight&&(r.setPivotGroupHeaderHeight(n.toNumber(i.pivotGroupHeaderHeight.currentValue)),delete i.pivotGroupHeaderHeight),i.floatingFiltersHeight&&(r.setFloatingFiltersHeight(n.toNumber(i.floatingFiltersHeight.currentValue)),delete i.floatingFiltersHeight),i.functionsReadOnly&&(r.setFu
1nctionsReadOnly(n.toBoolean(i.functionsReadOnly.currentValue)),delete i.functionsReadOnly),Xs(n.ARRAY_PROPERTIES,n.OBJECT_PROPERTIES,n.STRING_PROPERTIES,n.getEventCallbacks()).filter(a).forEach(function(p){return s[p]=i[p].currentValue}),n.BOOLEAN_PROPERTIES.filter(a).forEach(function(p){return s[p]=n.toBoolean(i[p].currentValue)}),n.NUMBER_PROPERTIES.filter(a).forEach(function(p){return s[p]=n.toNumber(i[p].currentValue)}),i.enableCellTextSelection&&(r.setEnableCellTextSelection(n.toBoolean(i.enableCellTextSelection.currentValue)),delete i.enableCellTextSelection),i.quickFilterText&&(r.setQuickFilter(i.quickFilterText.currentValue),delete i.quickFilterText),i.autoGroupColumnDef&&(r.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.columnDefs&&(r.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs),i.defaultColDef&&(r.setDefaultColDef(i.defaultColDef.currentValue,"gridOptionsChanged"),delete i.defaultColDef),i.pivotMode&&(o.setPivotMode(n.toBoolean(i.pivotMode.currentValue)),delete i.pivotMode);var l=r;
1Object.keys(i).forEach(function(p){var c="set"+p.charAt(0).toUpperCase()+p.substring(1);l[c]&&l[c](t[p].currentValue)});var u={type:g.EVENT_COMPONENT_STATE_CHANGED};re(t,function(p,c){u[p]=c}),r.dispatchEvent(u)}},n.toBoolean=function(t){return"boolean"==typeof t?t:"string"==typeof t&&("TRUE"===t.toUpperCase()||""==t)},n.toNumber=function(t){return"number"==typeof t?t:"string"==typeof t?Number(t):void 0},n.EVENTS=[],n.PUBLIC_EVENTS=[],n.EXCLUDED_INTERNAL_EVENTS=[],n.STRING_PROPERTIES=pt.STRING_PROPERTIES,n.OBJECT_PROPERTIES=pt.OBJECT_PROPERTIES,n.ARRAY_PROPERTIES=pt.ARRAY_PROPERTIES,n.NUMBER_PROPERTIES=pt.NUMBER_PROPERTIES,n.BOOLEAN_PROPERTIES=pt.BOOLEAN_PROPERTIES,n.FUNCTION_PROPERTIES=pt.FUNCTION_PROPERTIES,n.ALL_PROPERTIES=pt.ALL_PROPERTIES,n}();ct.EVENTS=Ce(g),ct.EXCLUDED_INTERNAL_EVENTS=[g.EVENT_SCROLLBAR_WIDTH_CHANGED,g.EVENT_CHECKBOX_CHANGED,g.EVENT_HEIGHT_SCALE_CHANGED,g.EVENT_BODY_HEIGHT_CHANGED,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,g.EVENT_SCROLL_VISIBILITY_CHANGED,g.EVENT_COLUMN_HOVER_CHANGED,g.EVENT_FLASH_CELLS,g.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,g.EVENT_DISPLAYED_ROWS_CHANGED,g.EVENT_LEFT_PINNED_WIDTH_CHANGED,g.EVENT_RIGHT_PINNED_WIDTH_CHANGED,g.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,g.EVENT_POPUP_TO_FRONT,g.EVENT_KEYBOARD_FOCUS,g.EVENT_MOUSE_FOCUS,g.EVENT_STORE_UPDATED,g.EVENT_COLUMN_PANEL_ITEM_DRAG_START,g.EVENT_COLUMN_PANEL_ITEM_DRAG_END,g.EVENT_FILL_START,g.EVENT_FILL_END,g.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,g.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,g.EVENT_FULL_WIDTH_ROW_FOCUSED,g.EVENT_HEADER_HEIGHT_CHANGED,g.EVENT_COLUMN_HEADER_HEIGHT_CHANGED],ct.PUBLIC_EVENTS=ct.EVENTS.filter(function(n){return!Be(ct.EXCLUDED_INTERNAL_EVENTS,n)});var Mi,Ni,Hi,Wi,Vi,Bi,ki,Ui,ji,yo,Qs=function(){function n(){}return n.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[n.DEFAULT_COLUMN_COMP,n.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return n.parse([t]);if(Array.isArray(t)){var e=[];return t.forEach(function(o){var i=n.DEFAULT_BY_KEY[o];i?e.push(i):console.warn("AG Grid: the key "+o+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(n.DEFAULT_BY_KEY).join(","))}),0===e.length?null:{toolPanels:e,defaultToolPanel:e[0].id}}return{toolPanels:n.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}},n.parseComponents=function(t){var e=[];return t&&t.forEach(function(r){var o=null;if("string"==typeof r){var i=n.DEFAULT_BY_KEY[r];if(!i)return void console.warn("AG Grid: the key "+r+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(n.DEFAULT_BY_KEY).join(","));o=i}else o=r;e.push(o)}),e},n.DEFAULT_BY_KEY={columns:n.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},filters:n.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"}},n}();function Zs(){if(yo)return yo;var e,r,n=navigator.userAgent,t=n.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(t[1]))return{name:"IE",version:r=null!=(e=/\brv[ :]+(\d+)/g.exec(n)||[])[1]?parseFloat(e[1]):0};if("Chrome"===t[1]&&null!=(e=n.match(/\bOPR|Edge\/(\d+)/)))return{name:"Opera",version:r=null!=e[1]?parseFloat(e[1]):0};t=t[2]?[t[1],t[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=n.match(/version\/(\d+)/i))&&t.splice(1,1,e[1]);var o=t[0];return r=null!=t[1]?parseFloat(t[1]):0,yo={name:o,version:r}}function Co(){return void 0===Hi&&(Hi=!function ku(){return void 0===Ni&&(Ni=/*@cc_on!@*/
2!!document.documentMode),Ni}()&&!!window.StyleMedia),Hi}function Nt(){return void 0===Mi&&(Mi=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Mi}function Er(){if(void 0===Wi){var n=window;Wi=!!n.chrome&&(!!n.chrome.webstore||!!n.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Wi}function zi(){if(void 0===Vi){var n=window;Vi=typeof n.InstallTrigger<"u"}return Vi}function Ki(){return void 0===Bi&&(Bi=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Bi}function St(){return void 0===ki&&(ki=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),ki}
2function mo(){return!Nt()||Zs().version>=15}function wo(n){if(!n)return null;var t=n.tabIndex,e=n.getAttribute("tabIndex");return-1!==t||null!==e&&(""!==e||zi())?t.toString():null}function Js(){if(!document.body)return-1;var n=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,e=document.createElement("div");for(document.body.appendChild(e);;){var r=2*n;if(e.style.height=r+"px",r>t||e.clientHeight!==r)break;n=r}return document.body.removeChild(e),n}function ea(){return null==ji&&ta(),ji}function ta(){var n=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",n.appendChild(t);var e=t.offsetWidth-t.clientWidth;0===e&&0===t.clientWidth&&(e=null),t.parentNode&&t.parentNode.removeChild(t),null!=e&&(ji=e,Ui=0===e)}function ra(){return null==Ui&&ta(),Ui}function oa(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function ia(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var ju=Object.freeze({__proto__:null,getBrowserInfo:Zs,isBrowserEdge:Co,isBrowserSafari:Nt,isBrowserChrome:Er,isBrowserFirefox:zi,isMacOsUserAgent:Ki,isIOSUserAgent:St,browserSupportsPreventScroll:mo,getTabIndex:wo,getMaxDivHeight:Js,getScrollbarWidth:ea,isInvisibleScrollbar:ra,hasOverflowScrolling:function Uu(){var n,t,e=["webkit","moz","o","ms"],r=document.createElement("div"),i=!1;document.getElementsByTagName("body")[0].appendChild(r),r.setAttribute("style",e.map(function(p){return"-"+p+"-overflow-scrolling: touch"}).concat("overflow-scrolling: touch").join(";"));var a=window.getComputedStyle(r);if("touch"===a.overflowScrolling&&(i=!0),!i)try{for(var l=function(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),u=l.next();!u.done;u=l.next())if("touch"===a[u.value+"OverflowScrolling"]){i=!0;break}}catch(p){n={error:p}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}return r.parentNode&&r.parentNode.removeChild(r),i},getBodyWidth:oa,getBodyHeight:ia});function na(n,t,e){var r={},o=n.filter(function(i){return!t.some(function(s){return s===i})});return o.length>0&&o.forEach(function(i){return r[i]=sa(i,e)}),r}function sa(n,t,e,r){var o=r?la:aa,i=t.map(function(s){return{value:s,relevance:o(n.toLowerCase(),s.toLocaleLowerCase())}});return i.sort(function(s,a){return a.relevance-s.relevance}),e&&(i=i.filter(function(s){return 0!==s.relevance})),i.map(function(s){return s.value})}function $i(n){var r,o,i,t=n.toLowerCase(),e=new Array(t.length-1);for(r=o=0,i=e.length;o<=i;r=o+=1)e[r]=t.slice(r,r+2);return e}function aa(n,t){if(0===n.length&&0===t.length)return 0;var s,a,e=$i(n),r=$i(t),o=e.length+r.length,i=0;for(s=0,a=e.length;s<a;s++){var p,l=e[s],u=void 0;for(u=0,p=r.length;u<p;u++)l===r[u]&&i++}return i>0?2*i/o:0}function la(n,t){for(var e=n.replace(/\s/g,""),r=t.replace(/\s/g,""),o=0,i=0,s=0;s<e.length;s++){var a=r.indexOf(e[s],i);-1!==a&&(o+=100-100*(i=a)/1e4*100)}return o}var zu=Object.freeze({__proto__:null,fuzzyCheckStrings:na,fuzzySuggestions:sa,get_bigrams:$i,string_distances:aa,string_weighted_distances:la});function nr(n,t){return n.toString().padStart(t,"0")}function ua(n,t){for(var e=[],r=n;r<=t;r++)e.push(r);return e}function Ro(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function Yi(n,t,e){return"number"!=typeof n?"":n.toString().replace(".",e).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}var Xu=Object.freeze({__proto__:null,padStartWidthZeros:nr,createArrayOfNumbers:ua,isNumeric:Ro,cleanNumber:function Ku(n){return"string"==typeof n&&(n=parseInt(n,10)),"number"==typeof n?Math.floor(n):null},decToHex:function $u(n,t){for(var e="",r=0;r<t;r++)e+=String.fromCharCode(255&n),n>>>=8;return e},formatNumberTwoDecimalPlacesAndCommas:function Yu(n,t,e){return"number"!=typeof n?"":Yi(Math.round(100*n)/100,t,e)},formatNumberCommas:Yi,sum:function qu(n){return null==n?null:n.reduce(function(t,e){return t+e},0)}}),Eo=function(){return Eo=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o
2]);return n},Eo.apply(this,arguments)},Ot=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pa=function(n,t){return function(e,r){t(e,r,n)}},Qu=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},qi=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Qu(arguments[t]));return n};function E(n){return!0===n||"true"===n}function Xi(n){return"number"==typeof n?n:"string"==typeof n?parseInt(n,10):void 0}function ca(n,t){var e=parseInt(n,10);return Ro(e)&&e>0?e:t}var _o,G=function(){function n(){this.propertyEventService=new Et,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var t;return t=n,n.prototype.agWire=function(e,r){this.gridOptions.api=e,this.gridOptions.columnApi=r,this.checkForDeprecated(),this.checkForViolations()},n.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},n.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=Qs.parse(this.gridOptions.sideBar));var r=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),r),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 use these together on our support forum either, you will get the same answer!"),this.isRowModelServerSide()){var o=function(s){return"AG Grid: '"+s+"' is not supported on the Server-Side Row Model"};O(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupDefaultExpanded")),O(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeFooter")),O(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeTotalFooter"))}E(this.gridOptions.enableRangeSelection)?k.assertRegistered(W.RangeSelectionModule,"enableRangeSelection"):(this.isEnableRangeHandle()||this.isEnableFillHandle())&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true"),this.isGroupRowsSticky()&&(this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one."),this.isMasterDetail()&&console.warn("AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one."),this.isPagination()&&console.warn("AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one."));var i=function(s){e.gridOptions.icons&&e.gridOptions.icons[s]&&console.warn("gridOptions.icons."+s+" 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.get
2ScrollbarWidth()},n.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach(function(r){var o=Object.getOwnPropertyNames(r),i=qi(Ys.ALL_PROPERTIES,Ys.FRAMEWORK_PROPERTIES);e.checkProperties(o,i,i,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")})},n.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),r=qi(pt.ALL_PROPERTIES,pt.FRAMEWORK_PROPERTIES,Ce(g).map(function(i){return ct.getCallbackForEvent(i)})),o=qi(r,["api","columnApi"]);this.checkProperties(e,o,r,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},n.prototype.checkProperties=function(e,r,o,i,s){var a=na(e,r,o);re(a,function(l,u){console.warn("ag-grid: invalid "+i+" property '"+l+"' did you mean any of these: "+u.slice(0,8).join(", "))}),Object.keys(a).length>0&&console.warn("ag-grid: to see all the valid "+i+" properties please check: "+s)},n.prototype.mergeGridCommonParams=function(e){var r=this;return e?function(i){var s=Eo(Eo({},i),{api:r.getApi(),columnApi:r.getColumnApi(),context:r.getContext()});return e(s)}:e},n.prototype.getDomDataKey=function(){return this.domDataKey},n.prototype.getDomData=function(e,r){var o=e[this.getDomDataKey()];return o?o[r]:void 0},n.prototype.setDomData=function(e,r,o){var i=this.getDomDataKey(),s=e[i];M(s)&&(e[i]=s={}),s[r]=o},n.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},n.prototype.isSuppressRowDeselection=function(){return E(this.gridOptions.suppressRowDeselection)},n.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},n.prototype.isRowMultiSelectWithClick=function(){return E(this.gridOptions.rowMultiSelectWithClick)},n.prototype.getContext=function(){return this.gridOptions.context},n.prototype.isPivotMode=function(){return E(this.gridOptions.pivotMode)},n.prototype.isSuppressExpandablePivotGroups=function(){return E(this.gridOptions.suppressExpandablePivotGroups)},n.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},n.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},n.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===m.ROW_MODEL_TYPE_INFINITE},n.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===m.ROW_MODEL_TYPE_VIEWPORT},n.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===m.ROW_MODEL_TYPE_SERVER_SIDE},n.prototype.isRowModelDefault=function(){return M(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===m.ROW_MODEL_TYPE_CLIENT_SIDE},n.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},n.prototype.isSuppressFocusAfterRefresh=function(){return E(this.gridOptions.suppressFocusAfterRefresh)},n.prototype.isSuppressBrowserResizeObserver=function(){return E(this.gridOptions.suppressBrowserResizeObserver)},n.prototype.isSuppressMaintainUnsortedOrder=function(){return E(this.gridOptions.suppressMaintainUnsortedOrder)},n.prototype.isSuppressClearOnFillReduction=function(){return E(this.gridOptions.suppressClearOnFillReduction)},n.prototype.isShowToolPanel=function(){return E(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},n.prototype.getSideBar=function(){return this.gridOptions.sideBar},n.prototype.isSuppressTouch=function(){return E(this.gridOptions.suppressTouch)},n.prototype.isMaintainColumnOrder=function(){return E(this.gridOptions.maintainColumnOrder)},n.prototype.isSuppressRowTransform=function(){return E(this.gridOptions.suppressRowTransform)},n.prototype.isSuppressColumnStateEvents=function(){return E(this.gridOptions.suppressColumnStateEvents)},n.prototype.isAllowDragFromColumnsToolPanel=function(){return E(this.gridOptions.allowDragFromColumnsToolPanel)},n.prototype.useAsyncEvents=function(){return!E(this.gridOptions.suppressAsyncEvents)},n.prototype.isEnableCellChangeFlash=function(){return E(this.gridOptions.enableCellChangeFlash)},n.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},n.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},n.prototype.isGroupSelectsChildren=function(){return E(this.gridOptions.groupSelectsChildren)},n.prototype.isSuppressRowHoverHighlight=function(){return E(this.gridOptions.suppressRowHoverHighlight)},n.prototype.isColumnHoverHighlight=function(){return E(this.gridOptions.columnHoverHighlight)},n.prototype.isGroupSelectsFiltered=function(){return E(this.gridOptions.groupSelectsFiltered)},n.prototype.isGroupHideOpenParents=function(){return E(this.gridOptions.groupHideOpenParents)},n.prototype.isGroupMaintainOrder=function(){return E(this.gridOptions.groupMaintainOrder)},n.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},n.prototype.isColumnsSortingCoupledToGroup=function(){var e,r=this.getAutoGroupColumnDef();return this.isRowModelDefault()&&!(null!==(e=r)&&void 0!==e&&e.comparator)},n.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):E(this.gridOptions.groupHideOpenParents)},n.prototype.isGroupUseEntireRow=function(e){return!e&&!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType)},n.prototype.isRowGroupPanelSuppressSort=function(){return E(this.gridOptions.rowGroupPanelSuppressSort)},n.prototype.isGroupRowsSticky=function(){return E(this.gridOptions.groupRowsSticky)},n.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("
2custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},n.prototype.isGroupRemoveSingleChildren=function(){return E(this.gridOptions.groupRemoveSingleChildren)},n.prototype.isGroupRemoveLowestSingleChildren=function(){return E(this.gridOptions.groupRemoveLowestSingleChildren)},n.prototype.isGroupIncludeFooter=function(){return E(this.gridOptions.groupIncludeFooter)},n.prototype.isGroupIncludeTotalFooter=function(){return E(this.gridOptions.groupIncludeTotalFooter)},n.prototype.isGroupSuppressBlankHeader=function(){return E(this.gridOptions.groupSuppressBlankHeader)},n.prototype.isSuppressRowClickSelection=function(){return E(this.gridOptions.suppressRowClickSelection)},n.prototype.isSuppressCellFocus=function(){return E(this.gridOptions.suppressCellFocus)},n.prototype.isSuppressMultiSort=function(){return E(this.gridOptions.suppressMultiSort)},n.prototype.isAlwaysMultiSort=function(){return E(this.gridOptions.alwaysMultiSort)},n.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},n.prototype.isPivotSuppressAutoColumn=function(){return E(this.gridOptions.pivotSuppressAutoColumn)},n.prototype.isSuppressDragLeaveHidesColumns=function(){return E(this.gridOptions.suppressDragLeaveHidesColumns)},n.prototype.isSuppressRowGroupHidesColumns=function(){return E(this.gridOptions.suppressRowGroupHidesColumns)},n.prototype.isSuppressScrollOnNewData=function(){return E(this.gridOptions.suppressScrollOnNewData)},n.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return E(this.gridOptions.suppressScrollWhenPopupsAreOpen)},n.prototype.isRowDragEntireRow=function(){return E(this.gridOptions.rowDragEntireRow)},n.prototype.getRowDragText=function(e){if(e){var r=e.getColDef();if(r.rowDragText)return r.rowDragText}return this.gridOptions.rowDragText},n.prototype.isSuppressRowDrag=function(){return E(this.gridOptions.suppressRowDrag)},n.prototype.isRowDragManaged=function(){return E(this.gridOptions.rowDragManaged)},n.prototype.isSuppressMoveWhenRowDragging=function(){return E(this.gridOptions.suppressMoveWhenRowDragging)},n.prototype.isRowDragMultiRow=function(){return E(this.gridOptions.rowDragMultiRow)},n.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||m.DOM_LAYOUT_NORMAL;return-1===[m.DOM_LAYOUT_PRINT,m.DOM_LAYOUT_AUTO_HEIGHT,m.DOM_LAYOUT_NORMAL].indexOf(e)?(q(function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+m.DOM_LAYOUT_NORMAL+", "+m.DOM_LAYOUT_AUTO_HEIGHT+" and "+m.DOM_LAYOUT_PRINT)},"warn about dom layout values"),m.DOM_LAYOUT_NORMAL):e},n.prototype.isSuppressHorizontalScroll=function(){return E(this.gridOptions.suppressHorizontalScroll)},n.prototype.isSuppressMaxRenderedRowRestriction=function(){return E(this.gridOptions.suppressMaxRenderedRowRestriction)},n.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return E(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},n.prototype.isAlwaysShowHorizontalScroll=function(){return E(this.gridOptions.alwaysShowHorizontalScroll)},n.prototype.isAlwaysShowVerticalScroll=function(){return E(this.gridOptions.alwaysShowVerticalScroll)},n.prototype.isDebounceVerticalScrollbar=function(){return E(this.gridOptions.debounceVerticalScrollbar)},n.prototype.isSuppressLoadingOverlay=function(){return E(this.gridOptions.suppressLoadingOverlay)},n.prototype.isSuppressNoRowsOverlay=function(){return E(this.gridOptions.suppressNoRowsOverlay)},n.prototype.isSuppressFieldDotNotation=function(){return E(this.gridOptions.suppressFieldDotNotation)},n.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},n.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},n.prototype.isFunctionsPassive=function(){return E(this.gridOptions.functionsPassive)},n.prototype.isSuppressChangeDetection=function(){return E(this.gridOptions.suppressChangeDetection)},n.prototype.isSuppressAnimationFrame=function(){return E(this.gridOptions.suppressAnimationFrame)},n.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},n.prototype.isCacheQuickFilter=function(){return E(this.gridOptions.cacheQuickFilter)},n.prototype.isUnSortIcon=function(){return E(this.gridOptions.unSortIcon)},n.prototype.isSuppressMenuHide=function(){return E(this.gridOptions.suppressMenuHide)},n.prototype.isEnterMovesDownAfterEdit=function(){return E(this.gridOptions.enterMovesDownAfterEdit)},n.prototype.isEnterMovesDown=function(){return E(this.gridOptions.enterMovesDown)},n.prototype.isUndoRedoCellEditing=function(){return E(this.gridOptions.undoRedoCellEditing)},n.prototype.getUndoRedoCellEditingLimit=function(){return Xi(this.gridOptions.undoRedoCellEditingLimit)},n.prototype.isEnableCellEditingOnBackspace=function(){return E(this.gridOptions.enableCellEditingOnBackspace)},n.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},n.prototype.getRowClass=function(){return this.gridOptions.rowClass},n.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},n.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},n.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},n.prototype.isServerSideInfiniteScroll=function(){return E(this.gridOptions.serverSideInfiniteScroll)},n.prototype.getServerSideGroupLevelParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideGroupLevelParams)},n.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},n.prototype.getPopupParent=function(){return this.gridOptions.popupParent},n.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},n.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},n.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},n.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},n.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},n.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptions,r=e.initialGroupOrderComparator,o=e.defaultGroupOrderComparator;return r?this.mergeGridCommonParams(r):o?function(i){return o(i.nodeA,i.nodeB)}:void 0},n.prototype.getIsFullWidthCellFunc=function(){var e=this.gridOptions,r=e.isFullWidthRow,o=e.isFullWidthCell;return r?this.mergeGridCommonParams(r):o?function(i){return o(i.rowNode)}:void 0},n.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},n.prototype.isEmbedFullWidthRows=function(){return E(this.gridOptions.embedFullWidthRows)||E(this.gridOptions.deprecatedEmbedFullWidthRows)},n.prototype.isDetailRowAutoHeight=function(){return E(this.gridOptions.detailRowAutoHeight)},n.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},n.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},n.prototype.getApi=function(){return this.gridOptions.api},n.prototype.getColumnApi=function(){return this.gridOptions.columnApi},n.prototype.isReadOnlyEdit=function(){return E(this.gridOptions.readOnlyEdit)},n.prototype.isImmutableData=function(){var e=null!=this.gridOptions.getRowId,r
2=E(this.gridOptions.immutableData);return!E(this.gridOptions.resetRowDataOnUpdate)&&(e||r)},n.prototype.isEnsureDomOrder=function(){return E(this.gridOptions.ensureDomOrder)},n.prototype.isEnableCharts=function(){return!!E(this.gridOptions.enableCharts)&&k.assertRegistered(W.GridChartsModule,"enableCharts")},n.prototype.isEnableChartToolPanelsButton=function(){return E(this.gridOptions.enableChartToolPanelsButton)},n.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},n.prototype.isSingleClickEdit=function(){return E(this.gridOptions.singleClickEdit)},n.prototype.isSuppressClickEdit=function(){return E(this.gridOptions.suppressClickEdit)},n.prototype.isStopEditingWhenCellsLoseFocus=function(){return E(this.gridOptions.stopEditingWhenCellsLoseFocus)},n.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},n.prototype.getMaxConcurrentDatasourceRequests=function(){var e=Xi(this.gridOptions.maxConcurrentDatasourceRequests);return null==e?2:e<=0?void 0:e},n.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},n.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},n.prototype.getPaginationPageSize=function(){return Xi(this.gridOptions.paginationPageSize)},n.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||E(this.gridOptions.paginateChildRows)},n.prototype.getCacheBlockSize=function(){return ca(this.gridOptions.cacheBlockSize)},n.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},n.prototype.getServerSideInitialRowCount=function(){var e=this.gridOptions.serverSideInitialRowCount;return"number"==typeof e&&e>0?e:1},n.prototype.isPurgeClosedRowNodes=function(){return E(this.gridOptions.purgeClosedRowNodes)},n.prototype.isSuppressPaginationPanel=function(){return E(this.gridOptions.suppressPaginationPanel)},n.prototype.getRowData=function(){return this.gridOptions.rowData},n.prototype.isEnableRtl=function(){return E(this.gridOptions.enableRtl)},n.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},n.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},n.prototype.isAngularCompileRows=function(){return E(this.gridOptions.angularCompileRows)},n.prototype.isAngularCompileFilters=function(){return E(this.gridOptions.angularCompileFilters)},n.prototype.isDebug=function(){return E(this.gridOptions.debug)},n.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},n.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},n.prototype.getDatasource=function(){return this.gridOptions.datasource},n.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},n.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},n.prototype.isAccentedSort=function(){return E(this.gridOptions.accentedSort)},n.prototype.isEnableBrowserTooltips=function(){return E(this.gridOptions.enableBrowserTooltips)},n.prototype.isEnableCellExpressions=function(){return E(this.gridOptions.enableCellExpressions)},n.prototype.isEnableGroupEdit=function(){return E(this.gridOptions.enableGroupEdit)},n.prototype.isSuppressMiddleClickScrolls=function(){return E(this.gridOptions.suppressMiddleClickScrolls)},n.prototype.isPreventDefaultOnContextMenu=function(){return E(this.gridOptions.preventDefaultOnContextMenu)},n.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return E(this.gridOptions.suppressPreventDefaultOnMouseWheel)},n.prototype.isSuppressColumnVirtualisation=function(){return E(this.gridOptions.suppressColumnVirtualisation)},n.prototype.isSuppressRowVirtualisation=function(){return E(this.gridOptions.suppressRowVirtualisation)},n.prototype.isSuppressContextMenu=function(){return E(this.gridOptions.suppressContextMenu)},n.prototype.isAllowContextMenuWithControlKey=function(){return E(this.gridOptions.allowContextMenuWithControlKey)},n.prototype.isSuppressCopyRowsToClipboard=function(){return E(this.gridOptions.suppressCopyRowsToClipboard)},n.prototype.isSuppressCopySingleCellRanges=function(){return E(this.gridOptions.suppressCopySingleCellRanges)},n.prototype.isCopyHeadersToClipboard=function(){return E(this.gridOptions.copyHeadersToClipboard)},n.prototype.isCopyGroupHeadersToClipboard=function(){return E(this.gridOptions.copyGroupHeadersToClipboard)},n.prototype.isSuppressClipboardPaste=function(){return E(this.gridOptions.suppressClipboardPaste)},n.prototype.isSuppressLastEmptyLineOnPaste=function(){return E(this.gridOptions.suppressLastEmptyLineOnPaste)},n.prototype.isPagination=function(){return E(this.gridOptions.pagination)},n.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return E(this.gridOptions.suppressEnterpriseResetOnNewColumns)},n.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},n.prototype.getAsyncTransactionWaitMillis=function(){return O(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:m.BATCH_WAIT_MILLIS},n.prototype.isSuppressMovableColumns=function(){return E(this.gridOptions.suppressMovableColumns)},n.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&E(this.gridOptions.animateRows)},n.prototype.isSuppressColumnMoveAnimation=function(){return E(this.gridOptions.suppressColumnMoveAnimation)},n.prototype.isSuppressAggFuncInHeader=function(){return E(this.gridOptions.suppressAggFuncInHeader)},n.prototype.isSuppressAggAtRootLevel=function(){return E(this.gridOptions.suppressAggAtRootLevel)},n.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||E(this.gridOptions.suppressAggFilteredOnly)},n.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return E(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},n.prototype.isShowOpenedGroup=function(){return E(this.gridOptions.showOpenedGroup)},n.prototype.isReactUi=function(){return E(this.gridOptions.reactUi)},n.prototype.isSuppressReactUi=function(){return E(this.gridOptions.suppressReactUi)},n.prototype.isEnableRangeSelection=function(){return k.isRegistered(W.RangeSelectionModule)&&E(this.gridOptions.enableRangeSelection)},n.prototype.isEnableRangeHandle=function(){return E(this.gridOptions.enableRangeHandle)},n.prototype.isEnableFillHandle=function(){return E(this.gridOptions.enableFillHandle)},n.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(q(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"},n.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},n.prototype.isSuppressMultiRangeSelection=function(){return E(this.gridOptions.suppressMultiRangeSelection)},n.prototype.isPaginationAutoPageSize=function(){return E(this.gridOptions.paginationAutoPageSize)},n.prototype.isRememberGroupStateWhenNewData=function(){return E(this.gridOptions.rememberGroupStateWhenNewData)},n.prototype.getIcons=function(){return this.gridOptions.icons},n.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"==typeof e?this.mergeGridCommonParams(e):E(e)?function(){return!0}:void 0},n.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},n.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},n.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},n.prototype.isMasterDetail=function(){return!!E(this.gridOptions.masterDetail)&&k.assertRegistered(W.MasterDetailModule,"masterDetail")},n.prototype.isKeepDetailRows=function(){return E(this.gridOptions.keepDetailRows)},n.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return O(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},n.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},n.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},n.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},n.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},n.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},n.prototype.isSuppressAutoSize=function(){return E(this.gridOptions.suppressAutoSize)},n.prototype.isEnableCellTextSelection=function(){return E(this.gridOptions.enableCellTextSelection)},n.prototype.isSuppressParentsInRowNodes=function(){return E(this.gridOptions.suppressParentsInRowNodes
2)},n.prototype.isSuppressClipboardApi=function(){return E(this.gridOptions.suppressClipboardApi)},n.prototype.isFunctionsReadOnly=function(){return E(this.gridOptions.functionsReadOnly)},n.prototype.isEnableCellTextSelect=function(){return E(this.gridOptions.enableCellTextSelection)},n.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},n.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},n.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams`  has been replaced by `default"+Gi(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},n.prototype.isSuppressCsvExport=function(){return E(this.gridOptions.suppressCsvExport)},n.prototype.isAllowShowChangeAfterFilter=function(){return E(this.gridOptions.allowShowChangeAfterFilter)},n.prototype.isSuppressExcelExport=function(){return E(this.gridOptions.suppressExcelExport)},n.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return E(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},n.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},n.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},n.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},n.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},n.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},n.prototype.getGroupRowAggFunc=function(){var e=this.gridOptions,r=e.getGroupRowAgg,o=e.groupRowAggNodes;return r?this.mergeGridCommonParams(r):o?function(i){return o(i.nodes)}:void 0},n.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},n.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},n.prototype.getRowIdFunc=function(){var e=this.gridOptions,r=e.getRowId,o=e.getRowNodeId;return r?this.mergeGridCommonParams(r):o?function(i){return o(i.data)}:void 0},n.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},n.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},n.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},n.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},n.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},n.prototype.isTreeData=function(){return!!E(this.gridOptions.treeData)&&k.assertRegistered(W.RowGroupingModule,"Tree Data")},n.prototype.isValueCache=function(){return E(this.gridOptions.valueCache)},n.prototype.isValueCacheNeverExpires=function(){return E(this.gridOptions.valueCacheNeverExpires)},n.prototype.isDeltaSort=function(){return E(this.gridOptions.deltaSort)},n.prototype.isAggregateOnlyChangedColumns=function(){return E(this.gridOptions.aggregateOnlyChangedColumns)},n.prototype.getProcessPivotResultColDefFunc=function(){return this.gridOptions.processPivotResultColDef||this.gridOptions.processSecondaryColDef},n.prototype.getProcessPivotResultColGroupDefFunc=function(){return this.gridOptions.processPivotResultColGroupDef||this.gridOptions.processSecondaryColGroupDef},n.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},n.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},n.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},n.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},n.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},n.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},n.prototype.getViewportRowModelPageSize=function(){return ca(this.gridOptions.viewportRowModelPageSize,5)},n.prototype.getViewportRowModelBufferSize=function(){return function op(n,t){return n>=0?n:t}(this.gridOptions.viewportRowModelBufferSize,5)},n.prototype.isServerSideSortAllLevels=function(){var e=E(this.gridOptions.serverSideSortAllLevels);return!this.isRowModelServerSide()&&e?(q(function(){return console.warn("AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.")},"serverSideSortAllLevels"),!1):e},n.prototype.isServerSideFilterAllLevels=function(){var e=E(this.gridOptions.serverSideFilterAllLevels);return!this.isRowModelServerSide()&&e?(q(function(){return console.warn("AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.")},"serverSideFilterAllLevels"),!1):e},n.prototype.isServerSideSortOnServer=function(){var e=E(this.gridOptions.serverSideSortOnServer);return!this.isRowModelServerSide()&&e?(q(function(){return console.warn("AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.")},"serverSideSortOnServerRowModel"),!1):this.isTreeData()&&e?(q(function(){return console.warn("AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.")},"serverSideSortOnServerTreeData"),!1):e},n.prototype.isServerSideFilterOnServer=function(){var e=E(this.gridOptions.serverSideFilterOnServer);return!this.isRowModelServerSide()&&e?(q(function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.")},"serverSideFilterOnServerRowModel"),!1):this.isTreeData()&&e?(q(function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.")},"serverSideFilterOnServerTreeData"),!1):e},n.prototype.getPostSortFunc=function(){var e=this.gridOptions,r=e.postSortRows,o=e.postSort;return r?this.mergeGridCommonParams(r):o?function(i){return o(i.nodes)}:void 0},n.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},n.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},n.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},n.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},n.prototype.getChartToolPanelsDef=function(){return this.gridOptions.chartToolPanelsDef},n.prototype.getClipboardDelimiter=function(){return O(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},n.prototype.setProperty=function(e,r,o){void 0===o&&(o=!1);var i=this.gridOptions[e];(o||i!==r)&&(this.gridOptions[e]=r,this.propertyEventService.dispatchEvent({type:e,currentValue:r,previousValue:i}))},n.prototype.addEventListener=function(e,r){this.propertyEventService.addEventListener(e,r)},n.prototype.removeEventListener=function(e,r){this.propertyEventService.removeEventListener(e,r)},n.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},n.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},n.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},n.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},n.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},n.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},n.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},n.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},n.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},n.prototype.getTooltipDelay=function(e){var r=this.gridOptions,s="show"===e?r.tooltipShowDelay:r.tooltipHideDelay,a=Gi(e);return O(s)?(s<0&&q(function(){return console.warn("ag-grid: tooltip"+a+"Delay 
2should not be lower than 0")},"tooltip"+a+"DelayWarn"),Math.max(200,s)):null},n.prototype.isTooltipMouseTrack=function(){return E(this.gridOptions.tooltipMouseTrack)},n.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return E(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},n.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&O(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&O(e)?e:document},n.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(O(e)&&e>t.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var r=this.getFromTheme(null,"headerCellMinWidth");return O(r)?Math.max(r,t.MIN_COL_WIDTH):t.MIN_COL_WIDTH},n.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},n.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<t.MIN_COL_WIDTH?200:this.gridOptions.colWidth},n.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"==typeof e?e<0&&(q(function(){return console.warn("AG Grid: rowBuffer should not be negative")},"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=m.ROW_BUFFER_SIZE,e},n.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},n.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var r="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:ea();null!=r&&(this.scrollbarWidth=r,this.eventService.dispatchEvent({type:g.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},n.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 r=function(s,a,l){null!=e[s]&&(console.warn("AG Grid: since version "+l+", '"+s+"' is deprecated / renamed, please use the new property name '"+a+"' instead."),null==e[a]&&(e[a]=e[s]))};if(r("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),r("deltaRowDataMode","immutableData","23.1.x"),r("serverSideFilteringAlwaysResets","serverSideFilterAllLevels","28.0.0"),r("serverSideSortingAlwaysResets","serverSideSortAllLevels","28.0.0"),(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"),r("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 o=e.groupRowRendererParams;e.groupRowInnerRenderer&&(o.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(o.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&
2(o.innerRendererFramework=e.groupRowInnerRendererFramework)}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&&(console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+(e.treeData?"treeDataDisplayType":"groupDisplayType")+" = '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),r("processSecondaryColDef","processPivotResultColDef","28.0.x"),r("processSecondaryColGroupDef","processPivotResultColGroupDef","28.0.x"),e.serverSideStoreType&&(console.warn("AG Grid: since v28.0, `serverSideStoreType` has been replaced by `serverSideInfiniteScroll`. Set to true to use Partial Store, and false to use Full Store."),e.serverSideInfiniteScroll="partial"===e.serverSideStoreType),r("getServerSideStoreParams","getServerSideGroupLevelParams","28.0.x")},n.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},n.prototype.treeDataViolations=function(){this.isRowModelDefault()&&M(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()&&(M(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."),M(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."))},n.prototype.getLocaleTextFunc=function(){var e=this,r=this.gridOptions,o=r.localeText,i=r.getLocaleText;
2return i?function(a,l,u){var p={key:a,defaultValue:l,variableValues:u,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()};return i(p)}:r.localeTextFunc||function(a,l,u){var p=o&&o[a];if(p&&u&&u.length)for(var c=0;!(c>=u.length)&&-1!==p.indexOf("${variable}");)p=p.replace("${variable}",u[c++]);return p??l}},n.prototype.globalEventHandler=function(e,r){if(!this.destroyed){var o=ct.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](r)}},n.prototype.setRowHeightVariable=function(e){var o=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=o&&this.eGridDiv.style.setProperty("--ag-line-height",o)},n.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||M(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())},n.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},n.prototype.getRowHeightForNode=function(e,r,o){if(void 0===r&&(r=!1),null==o&&(o=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(r)return{height:o,estimated:!0};var i={node:e,data:e.data},s=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(i);if(this.isNumeric(s))return 0===s&&q(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,s),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:o,estimated:!1}},n.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},n.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},n.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},n.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)},n.prototype.getFromTheme=function(e,r){var o=this.environment.getTheme().theme;return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,r):e},n.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},n.prototype.matchesGroupDisplayType=function(e,r){var o=["groupRows","multipleColumns","custom","singleColumn"];return o.indexOf(r)<0?(console.warn("AG Grid: '"+r+"' is not a valid groupDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):r===e},n.prototype.matchesTreeDataDisplayType=function(e,r){var o=["auto","custom"];return o.indexOf(r)<0?(console.warn("AG Grid: '"+r+"' is not a valid treeDataDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):r===e},n.MIN_COL_WIDTH=10,n.PROP_HEADER_HEIGHT="headerHeight",n.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",n.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",n.PROP_GROUP_DISPLAY_TYPE="groupDisplayType",n.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",n.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",n.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",n.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",n.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",n.PROP_TAB_TO_NEXT_CELL="tabToNextCell",n.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",n.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",n.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",n.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",n.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",n.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",n.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",n.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",n.PROP_GET_ROW_CLASS="getRowClass",n.PROP_GET_ROW_STYLE="getRowStyle",n.PROP_GET_ROW_HEIGHT="getRowHeight",n.PROP_POPUP_PARENT="popupParent",n.PROP_DOM_LAYOUT="domLayout",n.PROP_ROW_CLASS="rowClass",n.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",n.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",n.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",n.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",n.PROP_GET_CHILD_COUNT="getChildCount",n.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",n.PROP_GET_ROW_NODE_ID="getRowNodeId",n.PROP_GET_ROW_ID="getRowId",n.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",n.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",n.PROP_IS_ROW_SELECTABLE="isRowSelectable",n.PROP_IS_ROW_MASTER="isRowMaster",n.PROP_PO
vendor: 12,004 bytes, line 2
2ST_SORT="postSort",n.PROP_POST_SORT_ROWS="postSortRows",n.PROP_GET_DOCUMENT="getDocument",n.PROP_POST_PROCESS_POPUP="postProcessPopup",n.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",n.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",n.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",n.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",n.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",n.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",n.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",n.PROP_SEND_TO_CLIPBOARD="sendToClipboard",n.PROP_PROCESS_PIVOT_RESULT_COL_DEF="processPivotResultColDef",n.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF="processPivotResultColGroupDef",n.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",n.PROP_GET_SERVER_SIDE_GROUP_PARAMS="getServerSideGroupLevelParams",n.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",n.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",n.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",n.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",n.PROP_AUTO_GROUP_COLUMN_DEF="autoGroupColumnDef",n.PROP_DEFAULT_COL_DEF="defaultColDef",Ot([h("gridOptions")],n.prototype,"gridOptions",void 0),Ot([h("eventService")],n.prototype,"eventService",void 0),Ot([h("environment")],n.prototype,"environment",void 0),Ot([h("eGridDiv")],n.prototype,"eGridDiv",void 0),Ot([pa(0,Fe("gridApi")),pa(1,Fe("columnApi"))],n.prototype,"agWire",null),Ot([Ee],n.prototype,"destroy",null),Ot([I],n.prototype,"init",null),t=Ot([L("gridOptionsWrapper")],n)}(),ip=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),_e=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},np=function(n,t){return function(e,r){t(e,r,n)}},da=function(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ap=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Ht=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(ap(arguments[t]));return n},lp=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsHash="",e.headerViewportColumns=[],e.viewportColumnsCenter=[],e.headerViewportColumnsCenter=[],e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.flexColsCalculatedAtLestOnce=!1,e}return ip(t,n),t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var r=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(r)&&(this.pivotMode=r),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,G.PROP_GROUP_DISPLAY_TYPE,function(){return e.onAutoGroupColumnDefChanged()}),this.addManagedListener(this.gridOptionsWrapper,G.PROP_AUTO_GROUP_COLUMN_DEF,function(){return e.onAutoGroupColumnDefChanged()}),this.addManagedListener(this.gridOptionsWrapper,G.PROP_DEFAULT_COL_DEF,function(){return e.onDefaultColDefChanged()})},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.onDefaultColDefChanged=function(){this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},t.prototype.setColumnDefs=function(e,r){void 0===r&&(r="api");var o=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(o,r)},t.prototype.createColumnsFromColumnDefs=function(e,r){var o=this;void 0===r&&(r="api");var i=e?this.compareColumnStatesAndRaiseEvents(r):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var s=this.primaryColumns,l=this.columnFactory.createColumnTree(this.columnDefs,!0,this.primaryColumnTree);this.primaryColumnTree=l.columnTree,this.primaryHeaderRowCount=l.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(c){return o.primaryColumnsMap[c.getId()]=c}),this.extractRowGroupColumns(r,s),this.extractPivotColumns(r,s),this.extractValueColumns(r,s),this.ready=!0,(this.gridColsArePrimary||void 0===this.gridColsArePrimary)&&(this.updateGridColumns(),e&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(r),this.checkViewportColumns()),this.dispatchEverythingChanged(r),i&&i(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){this.eventService.dispatchEvent({type:g.EVENT_NEW_COLUMNS_LOADED})},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api"),this.eventService.dispatchEvent({type:g.EVENT_COLUMN_EVERYTHING_CHANGED,source:e})},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,r=this.primaryColumns;r&&(this.gridColumns.sort(function(o,i){var s=r.indexOf(o),a=r.indexOf(i),l=s>=0,u=a>=0;return l&&u?s-a:l?1:u?-1:e.gridColumns.indexOf(o)-e.gridColumns.indexOf(i)}),this.gridColumns=this.placeLockedColumns(this.gridColumns))},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 r=e,o=[];null!=r;)o.push(r),r=this.getDisplayedColAfter(r);return o},t.prototype.checkViewportColumns=function(){null!=this.displayedColumnsCenter&&this.extractViewport()&&this.eventService.dispatchEvent({type:g.EVENT_VIRTUAL_COLUMNS_CHANGED})},t.prototype.setViewportPosition=function(e,r){(e!==this.scrollWidth||r!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=r,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,r){void 0===r&&(r="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)&&(this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(r),this.eventService.dispatchEvent({type:g.EVENT_COLUMN_PIVOT_MODE_CHANGED}))},t.prototype.getSecondaryPivotColumn=function(e,r){if(M(this.secondaryColumns))return null;var o=this.getPrimaryColumn(r),i=null;return this.secondaryColumns.forEach(function(s){var a=s.getColDef().pivotKeys,l=s.getColDef().pivotValueColumn;_t(a,e)&&l===o&&(i=s)}),i},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var r,o;this.gridOptionsWrapper.isEnableRtl()?(r=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?ie(this.displayedColumnsRight):null):(r=this.displayedColumnsLeft?ie(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(i){i.setLastLeftPinned(i===r,e),i.setFirstRightPinned(i===o,e)})},t.prototype.autoSizeColumns=function(e){var r=this,o=e.columns,i=e.skipHeader,s=e.skipHeaderGroups,a=e.stopAtGroup,l=e.source,u=void 0===l?"api":l;this.animationFrameService.flushAllFrames();for(var p=[],c=-1,d=i??this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),f=s??d;0!==c;)c=0,this.actionOnGridColumns(o,function(v){if(p.indexOf(v)>=0)return!1;var y=r.autoWidthCalculator.getPreferredWidthForColumn(v,d);if(y>0){var C=r.normaliseColumnWidth(v,y);v.setActualWidth(C,u),p.push(v),c++}return!0},u);f||this.autoSizeColumnGroupsByColumns(o,a),this.fireColumnResizedEvent(p,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,r,o,i){void 0===i&&(i=null),e&&e.length&&this.eventService.dispatchEvent({type:g.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:i,finished:r,source:o})},t.prototype.autoSizeColumn=function(e,r,o){void 0===o&&(o="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:r,skipHeaderGroups:!0,source:o})},t.prototype.autoSizeColumnGroupsByColumns=function(e,r){var o,i,s,a,p,l=new Set;this.getGridColumns(e).forEach(function(w){for(var A=w.getParent();A&&A!=r;)A.isPadding()||l.add(A),A=A.getParent()});try{for(var d=da(l),f=d.next();!f.done;f=d.next()){var v=f.value;try{for(var y=(s=void 0,da(this.ctrlsService.getHeaderRowContainerCtrls())),C=y.next();!C.done&&!(p=C.value.getHeaderCtrlForColumn(v));C=y.next());}catch(w){s={error:w}}finally{try{C&&!C.done&&(a=y.return)&&a.call(y)}finally{if(s)throw s.error}}p&&p.resizeLeafColumnsToFit()}}catch(w){o={error:w}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}return[]},t.prototype.autoSizeAllColumns=function(e,r){void 0===r&&(r="api");var o=this.getAllDisplayedColumns();this.autoSizeColumns({columns:o,skipHeader:e,source:r})},t.prototype.getColumnsFromTree=function(e){var r=[],o=function(i){for(var s=0;s<i.length;s++){var a=i[s];a instanceof X?r.push(a):a instanceof pe&&o(a.getChildren())}};return o(e),r},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,r,o,i){for(var u,s=[],a=null,l=function(c){var w,d=r[c],f=r.length-c,v=Math.min(d.getColSpan(e),f),y=[d];if(v>1){for(var C=v-1,R=1;R<=C;R++)y.push(r[c+R]);c+=C}
2o?(w=!1,y.forEach(function(b){o(b)&&(w=!0)})):w=!0,w&&(0===s.length&&a&&i&&i(d)&&s.push(a),s.push(d)),a=d,u=c},p=0;p<r.length;p++)l(p),p=u;return s},t.prototype.getViewportCenterColumnsForRow=function(e){var r=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var i=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,i,function(s){var a=s.getLeft();return O(a)&&a>r.viewportLeft})},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInHeaderViewport=function(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)},t.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var r=e.getLeft()||0,o=r+e.getActualWidth(),i=this.viewportLeft-200,s=this.viewportRight+200;return!(r<i&&o<i||r>s&&o>s)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,r,o,i,s,a){var l=this;if(void 0===a&&(a="api"),e&&!ae(e)){var u=!1;e.forEach(function(c){var d=l.getPrimaryColumn(c);if(d){if(o){if(r.indexOf(d)>=0)return;r.push(d)}else{if(r.indexOf(d)<0)return;De(r,d)}i(d),u=!0}}),u&&(this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a),this.eventService.dispatchEvent({type:s,columns:r,column:1===r.length?r[0]:null,source:a}))}},t.prototype.setRowGroupColumns=function(e,r){void 0===r&&(r="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,g.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),r)},t.prototype.setRowGroupActive=function(e,r,o){e!==r.isRowGroupActive()&&(r.setRowGroupActive(e,o),e&&!this.gridOptionsWrapper.isSuppressRowGroupHidesColumns()&&this.setColumnVisible(r,!1,o),!e&&!this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()&&this.setColumnVisible(r,!0,o))},t.prototype.addRowGroupColumn=function(e,r){void 0===r&&(r="api"),e&&this.addRowGroupColumns([e],r)},t.prototype.addRowGroupColumns=function(e,r){void 0===r&&(r="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),g.EVENT_COLUMN_ROW_GROUP_CHANGED,r)},t.prototype.removeRowGroupColumns=function(e,r){void 0===r&&(r="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),g.EVENT_COLUMN_ROW_GROUP_CHANGED,r)},t.prototype.removeRowGroupColumn=function(e,r){void 0===r&&(r="api"),e&&this.removeRowGroupColumns([e],r)},t.prototype.addPivotColumns=function(e,r){void 0===r&&(r="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(o){return o.setPivotActive(!0,r)},g.EVENT_COLUMN_PIVOT_CHANGED,r)},t.prototype.setPivotColumns=function(e,r){void 0===r&&(r="api"),this.setPrimaryColumnList(e,this.pivotColumns,g.EVENT_COLUMN_PIVOT_CHANGED,function(o,i){i.setPivotActive(o,r)},r)},t.prototype.addPivotColumn=function(e,r){void 0===r&&(r="api"),this.addPivotColumns([e],r)},t.prototype.removePivotColumns=function(e,r){void 0===r&&(r="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(o){return o.setPivotActive(!1,r)},g.EVENT_COLUMN_PIVOT_CHANGED,r)},t.prototype.removePivotColumn=function(e,r){void 0===r&&(r="api"),this.removePivotColumns([e],r)},t.prototype.setPrimaryColumnList=function(e,r,o,i,s){var a=this;r.length=0,O(e)&&e.forEach(function(l){var u=a.getPrimaryColumn(l);u&&r.push(u)}),(this.primaryColumns||[]).forEach(function(l){var u=r.indexOf(l)>=0;i(u,l)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s),this.fireColumnEvent(o,r,s)},t.prototype.setValueColumns=function(e,r){void 0===r&&(r="api"),this.setPrimaryColumnList(e,this.valueColumns,g.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),r)},t.prototype.setValueActive=function(e,r,o){if(e!==r.isValueActive()&&(r.setValueActive(e,o),e&&!r.getAggFunc())){var i=this.aggFuncService.getDefaultAggFunc(r);r.setAggFunc(i)}},t.prototype.addValueColumns=function(e,r){void 0===r&&(r="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),g.EVENT_COLUMN_VALUE_CHANGED,r)},t.prototype.addValueColumn=function(e,r){void 0===r&&(r="api"),e&&this.addValueColumns([e],r)},t.prototype.removeValueColumn=function(e,r){void 0===r&&(r="api"),this.removeValueColumns([e],r)},t.prototype.removeValueColumns=function(e,r){void 0===r&&(r="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),g.EVENT_COLUMN_VALUE_CHANGED,r)},t.prototype.normaliseColumnWidth=function(e,r){var o=e.getMinWidth();O(o)&&r<o&&(r=o);var i=e.getMaxWidth();return O(i)&&e.isGreaterThanMax(r)&&(r=i),r},t.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,r,o,i){var s=this;void 0===i&&(i="api");var a=[];e.forEach(function(l){var u=s.getPrimaryOrGridColumn(l.key);if(u&&(a.push({width:l.newWidth,ratios:[1],columns:[u]}),"shift"===s.gridOptionsWrapper.getColResizeDefault()&&(r=!r),r)){var c=s.getDisplayedColAfter(u);
2if(!c)return;var d=u.getActualWidth()-l.newWidth,f=c.getActualWidth()+d;a.push({width:f,ratios:[1],columns:[c]})}}),0!==a.length&&this.resizeColumnSets({resizeSets:a,finished:o,source:i})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var o=e.width,i=0,s=0,a=!0;return e.columns.forEach(function(p){var c=p.getMinWidth();i+=c||0;var d=p.getMaxWidth();O(d)&&d>0?s+=d:a=!1}),o>=i&&(!a||o<=s)},t.prototype.resizeColumnSets=function(e){var r=this,o=e.resizeSets,i=e.finished,s=e.source;if(!o||o.every(function(v){return r.checkMinAndMaxWidthsForSet(v)})){var u=[],p=[];o.forEach(function(v){var y=v.width,C=v.columns,R=v.ratios,w={},A={};C.forEach(function(N){return p.push(N)});for(var b=!0,x=0,V=function(){if(++x>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";b=!1;var N=[],B=0,$=y;C.forEach(function(Q,ue){A[Q.getId()]?$-=w[Q.getId()]:(N.push(Q),B+=R[ue])});var ne=1/B;N.forEach(function(Q,ue){var ye;ue===N.length-1?ye=$:(ye=Math.round(R[ue]*y*ne),$-=ye);var xe=Q.getMinWidth(),mt=Q.getMaxWidth();O(xe)&&ye<xe?(ye=xe,A[Q.getId()]=!0,b=!0):O(mt)&&mt>0&&ye>mt&&(ye=mt,A[Q.getId()]=!0,b=!0),w[Q.getId()]=ye})};b&&"break"!==V(););C.forEach(function(N){var B=w[N.getId()];N.getActualWidth()!==B&&(N.setActualWidth(B,s),u.push(N))})});var c=u.length>0,d=[];c&&(d=this.refreshFlexedColumns({resizingCols:p,skipSetLeft:!0}),this.setLeftValues(s),this.updateBodyWidths(),this.checkViewportColumns());var f=p.concat(d);(c||i)&&this.fireColumnResizedEvent(f,i,s,d)}else i&&this.fireColumnResizedEvent(o&&o.length>0?o[0].columns:null,i,s)},t.prototype.setColumnAggFunc=function(e,r,o){if(void 0===o&&(o="api"),e){var i=this.getPrimaryColumn(e);i&&(i.setAggFunc(r),this.fireColumnEvent(g.EVENT_COLUMN_VALUE_CHANGED,[i],o))}},t.prototype.fireColumnEvent=function(e,r,o){this.eventService.dispatchEvent({type:e,columns:r,column:r&&1==r.length?r[0]:null,source:o})},t.prototype.moveRowGroupColumn=function(e,r,o){void 0===o&&(o="api");var i=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(r,0,i),this.eventService.dispatchEvent({type:g.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:o})},t.prototype.moveColumns=function(e,r,o){if(void 0===o&&(o="api"),this.columnAnimationService.start(),r>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+r),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var i=this.getGridColumns(e);!this.doesMovePassRules(i,r)||(Ti(this.gridColumns,i,r),this.updateDisplayedColumns(o),this.eventService.dispatchEvent({type:g.EVENT_COLUMN_MOVED,columns:i,column:1===i.length?i[0]:null,toIndex:r,source:o}),this.columnAnimationService.finish())},t.prototype.doesMovePassRules=function(e,r){var o=this.getProposedColumnOrder(e,r);return this.doesOrderPassRules(o)},t.prototype.doesOrderPassRules=function(e){return!(!this.doesMovePassMarryChildren(e)||!this.doesMovePassLockedPositions(e))},t.prototype.getProposedColumnOrder=function(e,r){var o=this.gridColumns.slice();return Ti(o,e,r),o},t.prototype.sortColumnsLikeGridColumns=function(e){var r=this;!e||e.length<=1||e.filter(function(i){return r.gridColumns.indexOf(i)<0}).length>0||e.sort(function(i,s){return r.gridColumns.indexOf(i)-r.gridColumns.indexOf(s)})},t.prototype.doesMovePassLockedPositions=function(e){var r=0,o=!0;return e.forEach(function(s){var a=function(s){return s?!0===s||"left"===s?0:2:1}(s.getColDef().lockPosition);a<r&&(o=!1),r=a}),o},t.prototype.doesMovePassMarryChildren=function(e){var r=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){if(o instanceof pe){var i=o,s=i.getColGroupDef();if(s&&s.marryChildren){var l=[];i.getLeafColumns().forEach(function(f){var v=e.indexOf(f);l.push(v)}),Math.max.apply(Math,l)-Math.min.apply(Math,l)>i.getLeafColumns().length-1&&(r=!1)}}}),r},t.prototype.moveColumn=function(e,r,o){void 0===o&&(o="api"),this.moveColumns([e],r,o)},t.prototype.moveColumnByIndex=function(e,r,o){void 0===o&&(o="api"),this.moveColumn(this.gridColumns[e],r,o)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var r=this.primaryColumns.slice();return this.gridColsArePrimary?r.sort(function(o,i){return e.gridColumns.indexOf(o)-e.gridColumns.indexOf(i)}):this.lastPrimaryOrder&&r.sort(function(o,i){return e.lastPrimaryOrder.indexOf(o)-e.lastPrimaryOrder.indexOf(i)}),this.columnDefFactory.buildColumnDefs(r,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case m.PINNED_LE
2FT:return this.leftWidth;case m.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),r=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==r||this.rightWidth!==o)&&(this.bodyWidth=e,this.leftWidth=r,this.rightWidth=o,this.eventService.dispatchEvent({type:g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED}))},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 m.PINNED_LEFT:return this.getDisplayedLeftColumns();case m.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 ae(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return ae(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,r,o){void 0===o&&(o="api"),this.setColumnsVisible([e],r,o)},t.prototype.setColumnsVisible=function(e,r,o){void 0===r&&(r=!1),void 0===o&&(o="api"),this.applyColumnState({state:e.map(function(i){return{colId:"string"==typeof i?i:i.getColId(),hide:!r}})},o)},t.prototype.setColumnPinned=function(e,r,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],r,o)},t.prototype.setColumnsPinned=function(e,r,o){var i;void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout()?(this.columnAnimationService.start(),i=!0===r||r===m.PINNED_LEFT?m.PINNED_LEFT:r===m.PINNED_RIGHT?m.PINNED_RIGHT:null,this.actionOnGridColumns(e,function(s){return s.getPinned()!==i&&(s.setPinned(i),!0)},o,function(){return{type:g.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,source:o}}),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},t.prototype.actionOnGridColumns=function(e,r,o,i){var s=this;if(!ae(e)){var a=[];if(e.forEach(function(u){var p=s.getGridColumn(u);p&&!1!==r(p)&&a.push(p)}),a.length&&(this.updateDisplayedColumns(o),O(i)&&i)){var l=i();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var r=this.getAllDisplayedColumns(),o=r.indexOf(e);return o>0?r[o-1]:null},t.prototype.getDisplayedColAfter=function(e){var r=this.getAllDisplayedColumns(),o=r.indexOf(e);return o<r.length-1?r[o+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,r){for(var o=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),i=e.getDisplayedLeafColumns(),s="After"===r?ie(i):i[0],a="getDisplayedCol"+r;;){var l=this[a](s);if(!l)return null;var u=this.getColumnGroupAtLevel(l,o);if(u!==e)return u}},t.prototype.getColumnGroupAtLevel=function(e,r){for(var o=e.getParent();!(o.getProvidedColumnGroup().getLevel()+o.getPaddingLevel()<=r);)o=o.getParent();return o},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,Ht([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},t.prototype.getPrimaryAndAutoGroupCols=function(){var e;return(e=[]).concat.apply(e,Ht([this.primaryColumns||[],this.groupAutoColumns||[]]))},t.prototype.getPrimaryAndSecondaryColumns=function(){var e;return(e=[]).concat.apply(e,Ht([this.primaryColumns||[],this.secondaryColumns||[]]))},t.prototype.createStateItemFromColumn=function(e){var r=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null,s=null!=e.getSort()?e.getSort():null,a=null!=e.getSortIndex()?e.getSortIndex():null,l=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:s,sortIndex:a,aggFunc:i,rowGroup:e.isRowGroupActive(),rowGroupIndex:r,pivot:e.isPivotActive(),pivotIndex:o,flex:l}},t.prototype.getColumnState=function(){if(M(this.primaryColumns)||!this.isAlive())return[];var r=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(r),r},t.prototype.orderColumnStateList=function(e){var r=ut(this.gridColumns.map(function(o,i){return[o.getColId(),i]}));e.sort(function(o,i){return(r.has(o.colId)?r.get(o.colId):-1)-(r.has(i.colId)?r.get(i.colId):-1)})},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var r=this.getColumnsFromTree(this.primaryColumnTree),o=[],i=1e3,s=1e3,a=[];this.groupAutoColumns&&(a=a.concat(this.groupAutoColumns)),r&&(a=a.concat(r)),a.forEach(function(l){var u=function(U,N){return U??N??null},p=l.getColDef(),c=u(p.sort,p.initialSort),d=u(p.sortIndex,p.initialSortIndex),f=u(p.hide,p.initialHide),v=u(p.pinned,p.initialPinned),y=u(p.width,p.initialWidth),C=u(p.flex,p.initialFlex),R=u(p.rowGroupIndex,p.initialRowGroupIndex),w=u(p.rowGroup,p.initialRowGroup);null==R&&(null==w||0==w)&&(R=null,w=null);var A=u(p.pivotIndex,p.initialPivotIndex),b=u(p.pivot,p.initialPivot);null==A&&(null==b||0==b)&&(A=null,b=null);var x=u(p.aggFunc,p.initialAggFunc),V={colId:l.getColId(),sort:c,sortIndex:d,hide:f,pinned:v,width:y,flex:C,rowGroup:w,rowGroupIndex:R,pivot:b,pivotIndex:A,aggFunc:x};M(R)&&w&&(V.rowGroupIndex=i++),M(A)&&b&&(V.pivotIndex=s++),o.push(V)}),this.applyColumnState({state:o,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,r){var o=this;if(ae(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var i=function(u,p,c){var d=o.compareColumnStatesAndRaiseEvents(r);o.autoGroupsNeedBuilding=!0;var f=p.slice(),v={},y={},C=[],R=[],w=0,A=o.rowGroupColumns.slice(),b=o.pivotColumns.slice();u.forEach(function(N){var B=N.colId||"";if(B.startsWith(m.GROUP_AUTO_COLUMN_ID))return C.push(N),void R.push(N);var ne=c(B);ne?(o.syncColumnWithStateItem(ne,N,e.defaultState,v,y,!1,r),De(f,ne)):(R.push(N),w+=1)});var x=function(N){return o.syncColumnWithStateItem(N,null,e.defaultState,v,y,!1,r)};f.forEach(x);var V=function(N,B,$,ne){var Q=N[$.getId()],ue=N[ne.getId()],Ye=null!=Q,ye=null!=ue;if(Ye&&ye)return Q-ue;if(Ye)return-1;if(ye)return 1;var xe=B.indexOf($),mt=B.indexOf(ne),Ci=xe>=0;return Ci&&mt>=0?xe-mt:Ci?-1:1};o.rowGroupColumns.sort(V.bind(o,v,A)),o.pivotColumns.sort(V.bind(o,y,b)),o.updateGridColumns();var U=o.groupAutoColumns?o.groupAutoColumns.slice():[];
2return C.forEach(function(N){var B=o.getAutoColumn(N.colId);De(U,B),o.syncColumnWithStateItem(B,N,e.defaultState,null,null,!0,r)}),U.forEach(x),o.applyOrderAfterApplyState(e),o.updateDisplayedColumns(r),o.dispatchEverythingChanged(r),d(),{unmatchedAndAutoStates:R,unmatchedCount:w}};this.columnAnimationService.start();var s=i(e.state||[],this.primaryColumns||[],function(u){return o.getPrimaryColumn(u)}),a=s.unmatchedAndAutoStates,l=s.unmatchedCount;return(a.length>0||O(e.defaultState))&&(l=i(a,this.secondaryColumns||[],function(u){return o.getSecondaryColumn(u)}).unmatchedCount),this.columnAnimationService.finish(),0===l},t.prototype.applyOrderAfterApplyState=function(e){var r=this;if(e.applyOrder&&e.state){var o=[],i={};e.state.forEach(function(a){if(a.colId&&!i[a.colId]){var l=r.gridColumnsMap[a.colId];l&&(o.push(l),i[a.colId]=!0)}});var s=0;if(this.gridColumns.forEach(function(a){var l=a.getColId();null!=i[l]||(l.startsWith(m.GROUP_AUTO_COLUMN_ID)?wr(o,a,s++):o.push(a))}),o=this.placeLockedColumns(o),!this.doesMovePassMarryChildren(o))return void console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.");this.gridColumns=o}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var r=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},i=this.getColumnState(),s={};return i.forEach(function(a){s[a.colId]=a}),function(){if(!r.gridOptionsWrapper.isSuppressColumnStateEvents()){var a=r.getPrimaryAndSecondaryAndAutoColumns(),l=function(R,w,A,b){_t(w.map(b),A.map(b))||r.eventService.dispatchEvent({type:R,columns:A,column:1===A.length?A[0]:null,source:e})},u=function(R){var w=[];return a.forEach(function(A){var b=s[A.getColId()];b&&R(b,A)&&w.push(A)}),w},p=function(R){return R.getColId()};l(g.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,r.rowGroupColumns,p),l(g.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,r.pivotColumns,p),u(function(R,w){var A=null!=R.aggFunc,b=A!=w.isValueActive(),x=A&&R.aggFunc!=w.getAggFunc();return b||x}).length>0&&r.fireColumnEvent(g.EVENT_COLUMN_VALUE_CHANGED,r.valueColumns,e),r.fireColumnResizedEvent(u(function(R,w){return R.width!=w.getActualWidth()}),!0,e),r.raiseColumnPinnedEvent(u(function(R,w){return R.pinned!=w.getPinned()}),e),r.raiseColumnVisibleEvent(u(function(R,w){return R.hide==w.isVisible()}),e),u(function(R,w){return R.sort!=w.getSort()||R.sortIndex!=w.getSortIndex()}).length>0&&r.sortController.dispatchSortChangedEvents(e),r.raiseColumnMovedEvent(i,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,r){if(e.length){var o=1===e.length?e[0]:null,i=this.getCommonValue(e,function(a){return a.getPinned()});this.eventService.dispatchEvent({type:g.EVENT_COLUMN_PINNED,pinned:i??null,columns:e,column:o,source:r})}},t.prototype.getCommonValue=function(e,r){if(e&&0!=e.length){for(var o=r(e[0]),i=1;i<e.length;i++)if(o!==r(e[i]))return;return o}},t.prototype.raiseColumnVisibleEvent=function(e,r){if(e.length){var o=1===e.length?e[0]:null,i=this.getCommonValue(e,function(a){return a.isVisible()});this.eventService.dispatchEvent({type:g.EVENT_COLUMN_VISIBLE,visible:i,columns:e,column:o,source:r})}},t.prototype.raiseColumnMovedEvent=function(e,r){var o=this,i=this.getColumnState(),s={};i.forEach(function(d){return s[d.colId]=d});var a={};e.forEach(function(d){s[d.colId]&&(a[d.colId]=!0)});var l=e.filter(function(d){return a[d.colId]}),u=i.filter(function(d){return a[d.colId]}),p=[];u.forEach(function(d,f){var v=l&&l[f];if(v&&v.colId!==d.colId){var y=o.getGridColumn(v.colId);y&&p.push(y)}}),p.length&&this.eventService.dispatchEvent({type:g.EVENT_COLUMN_MOVED,columns:p,column:null,source:r})},t.prototype.syncColumnWithStateItem=function(e,r,o,i,s,a,l){if(e){var u=function(B,$){var ne={value1:void 0,value2:void 0},Q=!1;return r&&(void 0!==r[B]&&(ne.value1=r[B],Q=!0),O($)&&void 0!==r[$]&&(ne.value2=r[$],Q=!0)),!Q&&o&&(void 0!==o[B]&&(ne.value1=o[B]),O($)&&void 0!==o[$]&&(ne.value2=o[$])),ne},p=u("hide").value1;void 0!==p&&e.setVisible(!p,l);var c=u("pinned").value1;void 0!==c&&e.setPinned(c);var d=this.columnUtils.calculateColMinWidth(e.getColDef()),f=u("flex").value1;if(void 0!==f&&e.setFlex(f),e.getFlex()<=0){var y=u("width").value1;null!=y&&null!=d&&y>=d&&e.setActualWidth(y,l)}var C=u("sort").value1;void 0!==C&&e.setSort(C===m.SORT_DESC||C===m.SORT_ASC?C:void 0,l);var R=u("sortIndex").value1;if(void 0!==R&&e.setSortIndex(R),!a&&e.isPrimary()){var w=u("aggFunc").value1;void 0!==w&&("string"==typeof w?(e.setAggFunc(w),e.isValueActive()||(e.setValueActive(!0,l),this.valueColumns.push(e))):(O(w)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,l),De(this.valueColumns,e))));var A=u("rowGroup","rowGroupIndex"),b=A.value1,x=A.value2;(void 0!==b||void 0!==x)&&("number"==typeof x||b?(e.isRowGroupActive()||(e.setRowGroupActive(!0,l),this.rowGroupColumns.push(e)),i&&"number"==typeof x&&(i[e.getId()]=x)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,l),De(this.rowGroupColumns,e)));var V=u("pivot","pivotIndex"),U=V.value1,N=V.value2;(void 0!==U||void 0!==N)&&("number"==typeof N||U?(e.isPivotActive()||(e.setPivotActive(!0,l),this.pivotColumns.push(e)),s&&"number"==typeof N&&(s[e.getId()]=N)):e.isPivotActive()&&(e.setPivotActive(!1,l),De(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,r){var o=[];return e&&e.forEach(function(i){var s=r(i);s&&o.push(s)}),o},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var r=this.getGridColumn(e);return r||console.warn("AG Grid: could not find column "+e),r},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,r,o){if(!e)return null;if("string"==typeof e&&o[e])return o[e];for(var i=0;i<r.length;i++)if(this.columnsMatch(r[i],e))return r[i];return this.getAutoColumn(e)},t.prototype.getSourceColumnsForGroupColumn=function(e){var r=e.getColDef().showRowGroup;if(!r)return null;if(!0===r)return this.rowGroupColumns.slice(0);var o=this.getPrimaryColumn(r);return o?[o]:null},t.prototype.getAutoColumn=function(e){var r=this;return this.groupAutoColumns&&O(this.groupAutoColumns)&&!M(this.groupAutoColumns)&&this.groupAutoColumns.find(function(o){return r.columnsMatch(o,e)})||null},t.prototype.columnsMatch=function(e,r){var o=e===r,i=e.getColDef()===r,s=e.getColId()==r;return o||i||s},t.prototype.getDisplayNameForColumn=function(e,r,o){if(void 0===o&&(o=!1),!e)return null;var i=this.getHeaderName(e.getColDef(),e,null,null,r);return o?this.wrapHeaderNameWithAggFunc(e,i):i},t.prototype.getDisplayNameForProvidedColumnGroup=function(e,r,o){var i=r?r.getColGroupDef():null;return i?this.getHeaderName(i,null,e,r,o):null},t.prototype.getDisplayNameForColumnGroup=function(e,r){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),r)},t.prototype.getHeaderName=function(e,r,o,i,s){var a=e.headerValueGetter;if(a){var l={colDef:e,column:r,columnGroup:o,providedColumnGroup:i,location:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof a?a(l):"string"==typeof a?this.expressionService.evaluate(a,l):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?xi(e.field):""},t.prototype.wrapHeaderNameWithAggFunc=function(e,r){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return r;var a,o=e.getColDef().pivotValueColumn,s=null;if(O(o)){var l=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,u=void 0!==e.getColDef().pivotTotalColumnIds;if(l&&!u)return r;s=o?o.getAggFunc():null,a=!0}else{var p=e.isValueActive(),c=this.pivotMode||!this.isRowGroupEmpty();p&&c?(s=e.getAggFunc(),a=!0):a=!1}if(a){var d="string"==typeof s?s:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(d,d)+"("+r+")"}return r},t.prototype.getColumnGroup=function(e,r){if(!e)return null;if(e instanceof Ae)return e;var o=this.getAllDisplayedTrees(),i="number"==typeof r,s=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,function(a){if
2(a instanceof Ae){var l=a;(i?e===l.getGroupId()&&r===l.getInstanceId():e===l.getGroupId())&&(s=l)}}),s},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,r){this.valueColumns=this.extractColumns(r,this.valueColumns,function(o,i){return o.setValueActive(i,e)},function(){},function(){},function(o){var i=o.aggFunc;return null===i||""===i?null:void 0!==i?!!i:void 0},function(o){return null!=o.initialAggFunc&&""!=o.initialAggFunc}),this.valueColumns.forEach(function(o){var i=o.getColDef();null!=i.aggFunc&&""!=i.aggFunc?o.setAggFunc(i.aggFunc):o.getAggFunc()||o.setAggFunc(i.initialAggFunc)})},t.prototype.extractRowGroupColumns=function(e,r){this.rowGroupColumns=this.extractColumns(r,this.rowGroupColumns,function(o,i){return o.setRowGroupActive(i,e)},function(o){return o.rowGroupIndex},function(o){return o.initialRowGroupIndex},function(o){return o.rowGroup},function(o){return o.initialRowGroup})},t.prototype.extractColumns=function(e,r,o,i,s,a,l){void 0===e&&(e=[]),void 0===r&&(r=[]);var u=[],p=[];(this.primaryColumns||[]).forEach(function(f){var v=e.indexOf(f)<0,y=f.getColDef(),C=Re(a(y)),R=Re(l(y)),w=fe(i(y)),A=fe(s(y));(void 0!==C?C:void 0!==w?null!==w&&w>=0:v?void 0!==R?R:void 0!==A&&null!=A&&A>=0:r.indexOf(f)>=0)&&((v?null!=w||null!=A:null!=w)?u.push(f):p.push(f))});var c=function(f){var v=i(f.getColDef()),y=s(f.getColDef());return v??y};u.sort(function(f,v){var y=c(f),C=c(v);return y===C?0:y<C?-1:1});var d=[].concat(u);return r.forEach(function(f){p.indexOf(f)>=0&&d.push(f)}),p.forEach(function(f){d.indexOf(f)<0&&d.push(f)}),r.forEach(function(f){d.indexOf(f)<0&&o(f,!1)}),d.forEach(function(f){r.indexOf(f)<0&&o(f,!0)}),d},t.prototype.extractPivotColumns=function(e,r){this.pivotColumns=this.extractColumns(r,this.pivotColumns,function(o,i){return o.setPivotActive(i,e)},function(o){return o.pivotIndex},function(o){return o.initialPivotIndex},function(o){return o.pivot},function(o){return o.initialPivot})},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var r=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(o){if(o instanceof pe){var i=o.getColGroupDef(),s={groupId:o.getGroupId(),open:i?i.openByDefault:void 0};r.push(s)}}),this.setColumnGroupState(r,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(r){r instanceof pe&&e.push({groupId:r.getGroupId(),open:r.isExpanded()})}),e},t.prototype.setColumnGroupState=function(e,r){var o=this;void 0===r&&(r="api"),this.columnAnimationService.start();var i=[];e.forEach(function(s){var l=s.open,u=o.getProvidedColumnGroup(s.groupId);u&&u.isExpanded()!==l&&(o.logger.log("columnGroupOpened("+u.getGroupId()+","+l+")"),u.setExpanded(l),i.push(u))}),this.updateGroupsAndDisplayedColumns(r),this.setFirstRightAndLastLeftPinned(r),i.forEach(function(s){o.eventService.dispatchEvent({type:g.EVENT_COLUMN_GROUP_OPENED,columnGroup:s})}),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,r,o){var i;void 0===o&&(o="api"),i=e instanceof pe?e.getId():e||"",this.setColumnGroupState([{groupId:i,open:r}],o)},t.prototype.getProvidedColumnGroup=function(e){"string"!=typeof e&&console.error("AG Grid: group key must be a string");var r=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){o instanceof pe&&o.getId()===e&&(r=o)}),r},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&M(this.secondaryColumns)?this.gridColumns.filter(function(o){var i=e.groupAutoColumns&&Be(e.groupAutoColumns,o),s=e.valueColumns&&Be(e.valueColumns,o);return i||s}):this.gridColumns.filter(function(o){return e.groupAutoColumns&&Be(e.groupAutoColumns,o)||o.isVisible()})},t.prototype.checkColSpanActiveInCols=function(e){var r=!1;return e.forEach(function(o){O(o.getColDef().colSpan)&&(r=!0)}),r},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var r=function(o){var i=o.getColDef(),s=i.showRowGroup;i&&O(s)&&(e.groupDisplayColumns.push(o),"string"==typeof s?e.groupDisplayColumnsMap[s]=o:!0===s&&e.getRowGroupColumns().forEac
2h(function(a){e.groupDisplayColumnsMap[a.getId()]=o}))};this.gridColumns.forEach(r),this.groupAutoColumns&&this.groupAutoColumns.forEach(r)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},t.prototype.updateDisplayedColumns=function(e){var r=this.calculateColumnsForDisplay();this.buildDisplayedTrees(r),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return O(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,r){var o=this;void 0===r&&(r="api");var i=e&&e.length>0;if(i||!M(this.secondaryColumns)){if(i){this.processSecondaryColumnDefinitions(e);var s=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=s.columnTree,this.secondaryHeaderRowCount=s.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach(function(a){return o.secondaryColumnsMap[a.getId()]=a}),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(r)}},t.prototype.processSecondaryColumnDefinitions=function(e){var r=this.gridOptionsWrapper.getProcessPivotResultColDefFunc(),o=this.gridOptionsWrapper.getProcessPivotResultColGroupDefFunc();if(r||o){var i=function(s){s.forEach(function(a){if(O(a.children)){var u=a;o&&o(u),i(u.children)}else r&&r(a)})};e&&i(e)}},t.prototype.updateGridColumns=function(){var e=this,r=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var o=void 0;if(this.secondaryColumns&&this.secondaryBalancedTree){var i=this.secondaryColumns.every(function(u){return void 0!==e.gridColumnsMap[u.getColId()]});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,i&&(o=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,o=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&o){var a=ut(this.groupAutoColumns.map(function(u){return[u,!0]}));o=o.filter(function(u){return!a.has(u)}),o=Ht(this.groupAutoColumns,o)}this.addAutoGroupToGridColumns(),this.orderGridColsLike(o),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(u){return e.gridColumnsMap[u.getId()]=u}),this.setAutoHeightActive(),_t(r,this.gridBalancedTree)||this.eventService.dispatchEvent({type:g.EVENT_GRID_COLUMNS_CHANGED})},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter(function(i){return i.isAutoHeight()}).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();e!==m.ROW_MODEL_TYPE_CLIENT_SIDE&&e!==m.ROW_MODEL_TYPE_SERVER_SIDE&&q(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(!M(e)){var r=ut(e.map(function(p,c){return[p,c]})),o=!0;if(this.gridColumns.forEach(function(p){r.has(p)&&(o=!1)}),!o){var i=ut(this.gridColumns.map(function(p){return[p,!0]})),s=e.filter(function(p){return i.has(p)}),a=ut(s.map(function(p){return[p,!0]})),l=this.gridColumns.filter(function(p){return!a.has(p)}),u=s.slice();l.forEach(function(p){var c=p.getOriginalParent();if(c){for(var d=[];!d.length&&c;
2)c.getLeafColumns().forEach(function(C){var R=u.indexOf(C)>=0,w=d.indexOf(C)<0;R&&w&&d.push(C)}),c=c.getOriginalParent();if(d.length){var v=d.map(function(C){return u.indexOf(C)}),y=Math.max.apply(Math,Ht(v));wr(u,p,y+1)}else u.push(p)}else u.push(p)}),this.gridColumns=u}}},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 r=[],o=[],i=[];return e.forEach(function(s){var a=s.getColDef().lockPosition;"right"===a?i.push(s):"left"===a||!0===a?r.push(s):o.push(s)}),Ht(r,o,i)},t.prototype.addAutoGroupToGridColumns=function(){if(!M(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.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths(),this.eventService.dispatchEvent({type:g.EVENT_DISPLAYED_COLUMNS_CHANGED})},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(r){return r.isAutoHeight()})},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.displayedColumns=this.gridOptionsWrapper.isEnableRtl()?this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var r=this;if(this.primaryColumns){var o=this.primaryColumns.slice(0),i=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(s){if(i){var a=r.getWidthOfColsInList(s);s.forEach(function(u){a-=u.getActualWidth(),u.setLeft(a,e)})}else{var l=0;s.forEach(function(u){u.setLeft(l,e),l+=u.getActualWidth()})}Pi(o,s)}),o.forEach(function(s){s.setLeft(null,e)})}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(r){r instanceof Ae&&r.checkLeft()})})},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,r){r.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(o){o instanceof X&&r.push(o)})},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,r){var o;
2switch(e){case m.PINNED_LEFT:o=this.viewportRowLeft[r];break;case m.PINNED_RIGHT:o=this.viewportRowRight[r];break;default:o=this.viewportRowCenter[r]}return M(o)&&(o=[]),o},t.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach(function(o){return e[o.getId()]=!0});var r=function(o,i,s){for(var a=!1,l=0;l<o.length;l++){var u=o[l],p=!1;if(u instanceof X)p=!0===e[u.getId()];else{var d=u.getDisplayedChildren();d&&(p=r(d,i,s+1))}p&&(a=!0,i[s]||(i[s]=[]),i[s].push(u))}return a};r(this.displayedTreeLeft,this.viewportRowLeft,0),r(this.displayedTreeRight,this.viewportRowRight,0),r(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){this.extractViewportColumns();var r=this.viewportColumns.map(function(i){return i.getId()+"-"+(i.getPinned()||"normal")}).join("#"),o=this.viewportColumnsHash!==r;return o&&(this.viewportColumnsHash=r,this.calculateHeaderRows()),o},t.prototype.refreshFlexedColumns=function(e){var r=this;void 0===e&&(e={});var o=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var i=-1;e.resizingCols&&e.resizingCols.forEach(function(b){var x=r.displayedColumnsCenter.indexOf(b);i<x&&(i=x)});var s=function(b){var x=r.displayedColumnsCenter.indexOf(b)>i;return b.getFlex()&&x},a=this.displayedColumnsCenter.filter(function(b){return!s(b)}),l=this.displayedColumnsCenter.filter(function(b){return s(b)}),u=[];if(!l.length)return[];var c,p=[];e:for(;;){var d=l.reduce(function(b,x){return b+x.getFlex()},0);c=this.flexViewportWidth-this.getWidthOfColsInList(a);for(var f=0;f<l.length;f++){var v=l[f],y=c*v.getFlex()/d,C=0,R=v.getMinWidth(),w=v.getMaxWidth();if(O(R)&&y<R?C=R:O(w)&&y>w&&(C=w),C){v.setActualWidth(C,o),De(l,v),u.push(v),a.push(v);continue e}p[f]=Math.round(y)}break}var A=c;return l.forEach(function(b,x){b.setActualWidth(Math.min(p[x],A),o),u.push(b),A-=p[x]}),e.skipSetLeft||this.setLeftValues(o),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(u,!0,o,l),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),l},t.prototype.sizeColumnsToFit=function(e,r,o,i){void 0===r&&(r="sizeColumnsToFit");var s,a,l,u,c,d,v,R={};i&&(null===(a=null===(s=i)||void 0===s?void 0:s.columnLimits)||void 0===a||a.forEach(function(Oe){var tr=Oe.key,so=function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(n);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(e[r[o]]=n[r[o]])}return e}(Oe,["key"]);R["string"==typeof tr?tr:tr.getColId()]=so}));var w=this.getAllDisplayedColumns(),A=e===this.getWidthOfColsInList(w);if(!(e<=0||!w.length||A)){var b=[],x=[];w.forEach(function(Oe){!0===Oe.getColDef().suppressSizeToFit?x.push(Oe):b.push(Oe)});var V=b.slice(0),U=!1,N=function(Oe){De(b,Oe),x.push(Oe)};for(b.forEach(function(Oe){return Oe.resetActualWidth(r)});!U;){U=!0;var B=e-this.getWidthOfColsInList(x);if(B<=0)b.forEach(function(Oe){var tr,so,Ss,tu=(null===(so=null===(tr=R)||void 0===tr?void 0:tr[Oe.getId()])||void 0===so?void 0:so.minWidth)??(null===(Ss=i)||void 0===Ss?void 0:Ss.defaultMinWidth);"number"!=typeof tu?Oe.setMinimum(r):Oe.setActualWidth(tu)});else for(var $=B/this.getWidthOfColsInList(b),ne=B,Q=b.length-1;Q>=0;Q--){var ue=b[Q],Ye=null===(l=R)||void 0===l?void 0:l[ue.getId()],ye=(null===(u=Ye)||void 0===u?void 0:u.minWidth)??(null===(c=i)||void 0===c?void 0:c.defaultMinWidth),xe=(null===(d=Ye)||void 0===d?void 0:d.maxWidth)??(null===(v=i)||void 0===v?void 0:v.defaultMaxWidth),mt=ue.getMinWidth()??0,Ci=ue.getMaxWidth()??Number.MAX_VALUE,no="number"==typeof ye&&ye>mt?ye:ue.getMinWidth(),_s="number"==typeof xe&&xe<Ci?xe:ue.getMaxWidth(),er=Math.round(ue.getActualWidth()*$);O(no)&&er<no?(er=no,N(ue),U=!1):O(_s)&&er>_s?(er=_s,N(ue),U=!1):0===Q&&(er=ne),ue.setActualWidth(er,r,!0),ne-=er}}V.forEach(function(Oe){Oe.fireColumnWidthChangedEvent(r)}),this.setLeftValues(r),this.updateBodyWidths(),!o&&this.fireColumnResizedEvent(V,!0,r)}},t.prototype.buildDisplayedTrees=function(e){var r=[],o=[],i=[];e.forEach(function(a){switch(a.getPinned()){case"left":r.push(a);break;case"right":o.push(a);break;default:i.push(a)}});var s=new zs;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(r,this.gridBalancedTree,s,m.PINNED_LE
2FT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,s,m.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,s,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var r=function(o){e.displayedColumnsAndGroupsMap[o.getUniqueId()]=o};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,r),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,r),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,r)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(r){r instanceof Ae&&r.calculateDisplayedColumns()})},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),r=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if(!(this.rowGroupColumns.length>0||this.usingTreeData)||r||e)this.groupAutoColumns=null;else{var a=this.autoGroupColService.createAutoGroupColumns(this.groupAutoColumns||[],this.rowGroupColumns);if(!this.autoColsEqual(a,this.groupAutoColumns)||this.forceRecreateAutoGroups)return this.groupAutoColumns=a,!0}return!1},t.prototype.autoColsEqual=function(e,r){return _t(e,r,function(o,i){return o.getColId()===i.getColId()})},t.prototype.getWidthOfColsInList=function(e){return e.reduce(function(r,o){return r+o.getActualWidth()},0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some(function(r){return r.getColDef().floatingFilter})},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),r=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&r.reverse();for(var o=0;o<r.length;o++){var i=this[r[o]]();if(i.length)return e?ie(i):i[0]}return null},t.prototype.setColumnHeaderHeight=function(e,r){e.setAutoHeaderHeight(r)&&this.eventService.dispatchEvent({type:g.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:"autosizeColumnHeaderHeight"})},t.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.gridOptionsWrapper.getPivotGroupHeaderHeight():this.gridOptionsWrapper.getGroupHeaderHeight()},t.prototype.getColumnHeaderRowHeight=function(){var e=this.isPivotMode()?this.gridOptionsWrapper.getPivotHeaderHeight():this.gridOptionsWrapper.getHeaderHeight(),r=this.getAllDisplayedColumns().filter(function(o){return o.isAutoHeaderHeight()}).map(function(o){return o.getAutoHeaderHeight()||0});return Math.max.apply(Math,Ht([e],r))},_e([h("expressionService")],t.prototype,"expressionService",void 0),_e([h("columnFactory")],t.prototype,"columnFactory",void 0),_e([h("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),_e([h("ctrlsService")],t.prototype,"ctrlsService",void 0),_e([h("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),_e([h("columnUtils")],t.prototype,"columnUtils",void 0),_e([h("columnAnimationService")],t.prototype,"columnAnimationService",void 0),_e([h("autoGroupColService")],t.prototype,"autoGroupColService",void 0),_e([J("aggFuncService")],t.prototype,"aggFuncService",void 0),_e([J("valueCache")],t.prototype,"valueCache",void 0),_e([J("animationFrameService")],t.prototype,"animationFrameService",void 0),_e([h("rowModel")],t.prototype,"rowModel",void 0),_e([h("sortController")],t.prototype,"sortController",void 0),_e([h("columnDefFactory")],t.prototype,"columnDefFactory",void 0),_e([I],t.prototype,"init",null),_e([np(0,Fe("loggerFactory"))],t.prototype,"setBeans",null),_e([L("columnModel")],t)}
2(F),up=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),cp=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return up(t,n),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 i,r=this.calculateColMinWidth(e),o=this.calculateColMaxWidth(e),s=fe(e.width),a=fe(e.initialWidth);return i=null!=s?s:null!=a?a:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(i,o),r)},t.prototype.getOriginalPathForColumn=function(e,r){var o=[],i=!1,s=function(a,l){for(var u=0;u<a.length;u++){if(i)return;var p=a[u];p instanceof pe?(s(p.getChildren(),l+1),o[l]=p):p===e&&(i=!0)}};return s(r,0),i?o:null},t.prototype.depthFirstOriginalTreeSearch=function(e,r,o){var i=this;r&&r.forEach(function(s){s instanceof pe&&i.depthFirstOriginalTreeSearch(s,s.getChildren(),o),o(s,e)})},t.prototype.depthFirstAllColumnTreeSearch=function(e,r){var o=this;e&&e.forEach(function(i){i instanceof Ae&&o.depthFirstAllColumnTreeSearch(i.getChildren(),r),r(i)})},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,r){var o=this;e&&e.forEach(function(i){i instanceof Ae&&o.depthFirstDisplayedColumnTreeSearch(i.getDisplayedChildren(),r),r(i)})},t=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}([L("columnUtils")],t),t}(F),dp=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),fp=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dp(t,n),t.prototype.createDisplayedGroups=function(e,r,o,i,s){var u,p,a=this,l=[],c=this.mapOldGroupsById(s);return e.forEach(function(d){for(var f=a.getOriginalPathForColumn(r,d),v=[],y=!p,C=0;C<f.length;C++)if(y||f[C]!==p[C]){var R=a.createColumnGroup(f[C],o,c,i);v[C]=R,0==C?l.push(R):v[C-1].addChild(R)}else v[C]=u[C];0===v.length?l.push(d):ie(v).addChild(d),u=v,p=f}),this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,r,o,i){var s=e.getGroupId(),a=r.getInstanceIdForKey(s),u=o[Ae.createUniqueId(s,a)];return u&&u.getProvidedColumnGroup()!==e&&(u=null),O(u)?u.reset():(u=new Ae(e,s,a,i),this.context.createBean(u)),u},t.prototype.mapOldGroupsById=function(e){var r={},o=function(i){i.forEach(function(s){if(s instanceof Ae){var a=s;r[s.getUniqueId()]=a,o(a.getChildren())}})};return e&&o(e),r},t.prototype.setupParentsIntoColumns=function(e,r){var o=this;e.forEach(function(i){if(i.setParent(r),i instanceof Ae){var s=i;o.setupParentsIntoColumns(s.getChildren(),s)}})},t.prototype.getOriginalPathForColumn=function(e,r){var o=[],i=!1,s=function(a,l){for(var u=0;u<a.length;u++){if(i)return;var p=a[u];p instanceof pe?(s(p.getChildren(),l+1),o[l]=p):p===r&&(i=!0)}};return s(e,0),i?o:(console.warn("AG Grid: could not get path"),null)},t=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}([L("displayedGroupCreator")],t),t}
2(F),gp=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),yp=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.componentsMappedByName={},e}return gp(t,n),t.prototype.setupComponents=function(e){var r=this;e&&e.forEach(function(o){return r.addComponent(o)})},t.prototype.addComponent=function(e){var o=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[o]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}([L("agStackComponentsRegistry")],t),t}(F),ha=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},_r=function(){function n(t,e,r,o){void 0===o&&(o=1),this.r=Math.min(1,Math.max(0,t||0)),this.g=Math.min(1,Math.max(0,e||0)),this.b=Math.min(1,Math.max(0,r||0)),this.a=Math.min(1,Math.max(0,o||0))}return n.fromString=function(t){if(t.indexOf("#")>=0)return n.fromHexString(t);var e=n.nameToHex[t];if(e)return n.fromHexString(e);if(t.indexOf("rgb")>=0)return n.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},n.parseHex=function(t){var e;switch((t=t.replace(/ /g,"").slice(1)).length){case 6:case 8:e=[];for(var r=0;r<t.length;r+=2)e.push(parseInt(""+t[r]+t[r+1],16));break;case 3:case 4:e=t.split("").map(function(o){return parseInt(o,16)}).map(function(o){return o+16*o})}if(e.length>=3&&e.every(function(o){return o>=0}))return 3===e.length&&e.push(255),e},n.fromHexString=function(t){var e=n.parseHex(t);if(e){var r=ha(e,4);return new n(r[0]/255,r[1]/255,r[2]/255,r[3]/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},n.stringToRgba=function(t){for(var e=ha([NaN,NaN],2),r=e[0],o=e[1],i=0;i<t.length;i++){var s=t[i];if(r||"("!==s){if(")"===s){o=i;break}}else r=i}var a=r&&o&&t.substring(r+1,o);if(a){var l=a.split(","),u=[];for(i=0;i<l.length;i++){var p=l[i],c=parseFloat(p);if(isNaN(c))return;p.indexOf("%")>=0?(c=Math.max(0,Math.min(100,c)),c/=100):3===i?c=Math.max(0,Math.min(1,c)):(c=Math.max(0,Math.min(255,c)),c/=255),u.push(c)}return u}},n.fromRgbaString=function(t){var e=n.stringToRgba(t);if(e){if(3===e.length)return new n(e[0],e[1],e[2]);if(4===e.length)return new n(e[0],e[1],e[2],e[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},n.fromArray=function(t){if(4===t.length)return new n(t[0],t[1],t[2],t[3]);if(3===t.length)return new n(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},n.fromHSB=function(t,e,r,o){void 0===o&&(o=1);var i=n.HSBtoRGB(t,e,r);return new n(i[0],i[1],i[2],o)},n.padHex=function(t){return 1===t.length?"0"+t:t},n.prototype.toHexString=function(){var t="#"+n.padHex(Math.round(255*this.r).toString(16))+n.padHex(Math.round(255*this.g).toString(16))+n.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=n.padHex(Math.round(255*this.a).toString(16))),t},n.prototype.toRgbaString=function(t){void 0===t&&(t=3);var e=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],r=Math.pow(10,t);return 1!==this.a?(e.push(Math.round(this.a*r)/r),"rgba("+e.join(", ")+")"):"rgb("+e.join(", ")+")"},n.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},n.prototype.toHSB=function(){return n.RGBtoHSB(this.r,this.g,this.b)},n.RGBtoHSB=function(t,e,r){var o=Math.min(t,e,r),i=Math.max(t,e,r),a=NaN;if(o!==i){var l=i-o,u=(i-t)/l,p=(i-e)/l,c=(i-r)/l;
2a=t===i?c-p:e===i?2+u-c:4+p-u,(a/=6)<0&&(a+=1)}return[360*a,0!==i?(i-o)/i:0,i]},n.HSBtoRGB=function(t,e,r){isNaN(t)&&(t=0),t=(t%360+360)%360/360;var o=0,i=0,s=0;if(0===e)o=i=s=r;else{var a=6*(t-Math.floor(t)),l=a-Math.floor(a),u=r*(1-e),p=r*(1-e*l),c=r*(1-e*(1-l));switch(0|a){case 0:o=r,i=c,s=u;break;case 1:o=p,i=r,s=u;break;case 2:o=u,i=r,s=c;break;case 3:o=u,i=p,s=r;break;case 4:o=c,i=u,s=r;break;case 5:o=r,i=u,s=p}}return[o,i,s]},n.prototype.derive=function(t,e,r,o){var i=n.RGBtoHSB(this.r,this.g,this.b),s=i[2];0==s&&r>1&&(s=.05);var a=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*e,1),0);s=Math.max(Math.min(s*r,1),0);var u=Math.max(Math.min(this.a*o,1),0),p=n.HSBtoRGB(a,l,s);return p.push(u),n.fromArray(p)},n.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},n.prototype.darker=function(){return this.derive(0,1,.7,1)},n.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"}),n}(),mp=Object.freeze({__proto__:null,stringToArray:function Cp(n,t){void 0===t&&(t=",");var e=[],r=function(d){return"\r"===d||"\n"===d},o=!1;if(""===n)return[[""]];for(var s,a,l,i=function(d,f,v){var y=n[v-1],C=n[v],R=n[v+1],w=function(){e[d]||(e[d]=[]),e[d][f]||(e[d][f]="")};if(w(),'"'===C){if(o)return'"'===R?(e[d][f]+='"',v++):o=!1,s=d,a=f,l=v,"continue";if(void 0===y||y===t||r(y))return o=!0,s=d,a=f,l=v,"continue"}if(!o){if(C===t)return f++,w(),s=d,a=f,l=v,"continue";if(r(C))return f=0,d++,w(),"\r"===C&&"\n"===R&&v++,s=d,a=f,l=v,"continue"}e[d][f]+=C,s=d,a=f,l=v},u=0,p=0,c=0;c<n.length;c++)i(u,p,c),u=s,p=a,c=l;return e}});function Qi(n){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,e=t.call(n,m.INPUT_SELECTOR),r=t.call(n,m.FOCUSABLE_EXCLUDE),o=ar(n);return e&&!r&&o}function se(n,t){n.classList.toggle("ag-hidden",!t)}function fa(n,t){n.classList.toggle("ag-invisible",!t)}function sr(n,t){var e="disabled",r=t?function(o){return o.setAttribute(e,"")}:function(o){return o.removeAttribute(e)};r(n),an(n.querySelectorAll("input"),function(o){return r(o)})}function Wt(n,t,e){for(var r=0;n;){if(n.classList.contains(t))return!0;
2if(n=n.parentElement,"number"==typeof e){if(++r>e)break}else if(n===e)break}return!1}function Vt(n){var t=window.getComputedStyle(n),r=t.width,o=t.paddingTop,i=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,l=t.marginTop,u=t.marginRight,p=t.marginBottom,c=t.marginLeft,d=t.boxSizing;return{height:parseFloat(t.height),width:parseFloat(r),paddingTop:parseFloat(o),paddingRight:parseFloat(i),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(u),marginBottom:parseFloat(p),marginLeft:parseFloat(c),boxSizing:d}}function Sr(n){var t=Vt(n);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function So(n){var t=Vt(n);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function Zi(n){var t=Vt(n);return Math.ceil(n.offsetHeight+(t.marginBottom+t.marginTop))}function Oo(n){var t=Vt(n);return Math.ceil(n.offsetWidth+(t.marginLeft+t.marginRight))}function Or(){if("boolean"==typeof _o)return _o;var n=document.createElement("div");return n.style.direction="rtl",n.style.width="1px",n.style.height="1px",n.style.position="fixed",n.style.top="0px",n.style.overflow="hidden",n.dir="rtl",n.innerHTML='<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(n),n.scrollLeft=1,_o=0===Math.floor(n.scrollLeft),document.body.removeChild(n),_o}function Pr(n,t){var e=n.scrollLeft;return t&&(e=Math.abs(e),Er()&&!Or()&&(e=n.scrollWidth-n.clientWidth-e)),e}function Po(n,t,e){e&&(Or()?t*=-1:(Nt()||Er())&&(t=n.scrollWidth-n.clientWidth-t)),n.scrollLeft=t}function ke(n){for(;n&&n.firstChild;)n.removeChild(n.firstChild)}function Bt(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function ar(n){return null!==n.offsetParent}function me(n){var t=document.createElement("div");return t.innerHTML=(n||"").trim(),t.firstChild}function Ji(n){return n&&n.clientHeight?n.clientHeight:0}function en(n){return n&&n.clientWidth?n.clientWidth:0}function tn(n,t,e){if(!e||e.nextSibling!==t){var r=document.activeElement,o=t.contains(r);e?e.nextSibling?n.insertBefore(t,e.nextSibling):n.appendChild(t):n.firstChild&&n.firstChild!==t&&n.insertAdjacentElement("afterbegin",t),o&&r&&mo()&&r.focus({preventScroll:!0})}}function rn(n,t){for(var e=0;e<t.length;e++){var r=t[e],o=n.children[e];o!==r&&n.insertBefore(r,o)}}function ga(n,t,e){e?e.insertAdjacentElement("afterend",t):n.firstChild?n.insertAdjacentElement("afterbegin",t):n.appendChild(t)}function on(n,t){t&&Object.keys(t).forEach(function(e){var r=$s(e);r&&(n.style[r]=t[e])})}function nn(n){return n.clientWidth<n.scrollWidth}function va(n){return n.clientHeight<n.scrollHeight}function Tr(n,t){"flex"===t?(n.style.removeProperty("width"),n.style.removeProperty("minWidth"),n.style.removeProperty("maxWidth"),n.style.flex="1 1 auto"):nt(n,t)}function nt(n,t){t=sn(t),n.style.width=t.toString(),n.style.maxWidth=t.toString(),n.style.minWidth=t.toString()}function kt(n,t){t=sn(t),n.style.height=t.toString(),n.style.maxHeight=t.toString(),n.style.minHeight=t.toString()}function sn(n){return"number"==typeof n?n+"px":n}function ya(n){return"function"==typeof Node?n instanceof Node:n&&"object"==typeof n&&"number"==typeof n.nodeType&&"string"==typeof n.nodeName}function Ca(n){return"function"==typeof HTMLElement?n instanceof HTMLElement:n&&or(n)&&1===n.nodeType&&"string"==typeof n.nodeName}function Dr(n){return ya(n)||Ca(n)}function ma(n){if(null==n)return[];var t=[];return an(n,function(e){return t.push(e)}),t}function wa(n,t){if(n)for(var e=0;e<n.length;e++){var r=n[e];t(r.name,r.value)}}function Ar(n,t,e){null==e?n.removeAttribute(t):n.setAttribute(t,e.toString())}function an(n,t){if(null!=n)for(var e=0;e<n.length;e++)t(n[e])}var Tp=Object.freeze({__proto__:null,radioCssClass:function wp(n,t,e){for(var r=n.parentElement,o=r&&r.firstChild;o;)t&&o.classList.toggle(t,o===n),e&&o.classList.toggle(e,o!==n),o=o.nextSibling},isFocusableFormField:Qi,setDisplayed:se,setVisible:fa,setDisabled:sr,isElementChildOfClass:Wt,getElementSize:Vt,getInnerHeight:Sr,getInnerWidth:So,getAbsoluteHeight:Zi,getAbsoluteWidth:Oo,isRtlNegativeScroll:Or,getScrollLeft:Pr,setScrollLeft:Po,clearElement:ke,removeElement:function Rp(n,t){Bt(n.querySelector(t))},removeFromParent:Bt,isVisible:ar,loadTemplate:me,appendHtml:function Ep(n,t){n.lastChild?n.insertAdjacentHTML("afterbegin",t):n.innerHTML=t},getElementAttribute:function _p(n,t){return n.attributes&&n.attributes[t]?n.attributes[t].value:null},offsetHeight:Ji,offsetWidth:en,ensureDomOrder:tn,setDomChildOrder:rn,insertWithDomOrder:ga,prependDC:function Sp(n,t){O(n.firstChild)?n.insertBefore(t,n.firstChild):n.appendChild(t)},addStylesToElement:on,isHorizontalScrollShowing:nn,isVerticalScrollShowing:va,setElementWidth:Tr,setFixedWidth:nt,
2setElementHeight:function Op(n,t){"flex"===t?(n.style.removeProperty("height"),n.style.removeProperty("minHeight"),n.style.removeProperty("maxHeight"),n.style.flex="1 1 auto"):kt(n,t)},setFixedHeight:kt,formatSize:sn,isNode:ya,isElement:Ca,isNodeOrElement:Dr,copyNodeList:ma,iterateNamedNodeMap:wa,setCheckboxState:function Pp(n,t){"boolean"==typeof t?(n.checked=t,n.indeterminate=!1):n.indeterminate=!0},addOrRemoveAttribute:Ar,nodeListForEach:an}),Gp=Object.freeze({__proto__:null,getNameOfClass:function Dp(n){var e=n.toString(),r=/function (.{1,})\(/.exec(e);return r&&r.length>1?r[1]:""},findLineByLeastSquares:function Ap(n){var t=n.length,e=0;if(t<=1)return n;for(var r=0;r<n.length;r++){var o=n[r],i=o.toString().split("e-");i.length>1?e=Math.max(e,parseInt(i[1],10)):Math.floor(o)!==o&&(e=Math.max(e,o.toString().split(".")[1].length))}for(var s=0,a=0,l=0,u=0,p=0,c=0;c<t;c++)s+=c,a+=p=n[c],u+=c*c,l+=c*p;var d=(t*l-s*a)/(t*u-s*s),f=a/t-d*s/t,v=[];for(c=0;c<=t;c++)v.push(parseFloat((c*d+f).toFixed(e)));return v},cssStyleObjectToMarkup:function bp(n){if(!n)return"";var t=[];return re(n,function(e,r){var o=Ks(e);t.push(o+": "+r+";")}),t.join(" ")},message:function Fp(n){var t=document.createElement("div"),e=document.querySelector("#__ag__message");t.innerHTML=n,e||(e=me('<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(e)),e.insertBefore(t,e.children[0])},bindCellRendererToHtmlElement:function Ip(n,t){n.then(function(e){var r=e.getGui();null!=r&&("object"==typeof r?t.appendChild(r):t.innerHTML=r)})}});function ge(n,t,e){n.setAttribute(Ra(t),e.toString())}function Pt(n,t){n.removeAttribute(Ra(t))}function Ra(n){return"aria-"+n}function be(n,t){t?n.setAttribute("role",t):n.removeAttribute("role")}function Ea(n){return n.isSortAscending()?"ascending":n.isSortDescending()?"descending":"none"}function _a(n){return parseInt(n.getAttribute("aria-level"),10)}function Sa(n){return parseInt(n.getAttribute("aria-posinset"),10)}function Ut(n,t){var e="label";null!=t&&""!==t?ge(n,e,t):Pt(n,e)}function ln(n,t){var e="labelledby";t?ge(n,e,t):Pt(n,e)}function Oa(n,t){var e="description";t?ge(n,e,t):Pt(n,e)}function un(n,t){var e="describedby";t?ge(n,e,t):Pt(n,e)}function Pa(n,t){ge(n,"level",t)}function pn(n,t){ge(n,"disabled",t)}function cn(n,t){t?ge(n,"hidden",!0):Pt(n,"hidden")}function Ue(n,t){ge(n,"expanded",t)}function Ta(n){Pt(n,"expanded")}function dn(n,t){ge(n,"setsize",t)}function hn(n,t){ge(n,"posinset",t)}function Da(n,t){ge(n,"multiselectable",t)}function Aa(n,t){ge(n,"rowcount",t)}function fn(n,t){ge(n,"rowindex",t)}function ba(n,t){ge(n,"colcount",t)}function gn(n,t){ge(n,"colindex",t)}function Fa(n,t){ge(n,"colspan",t)}function Ia(n,t){ge(n,"sort",t)}function Ga(n){Pt(n,"sort")}function lr(n,t){var e="selected";t?ge(n,e,t):Pt(n,e)}function xa(n,t){ge(n,"checked",void 0===t?"mixed":t)}var Lp=Object.freeze({__proto__:null,setAriaRole:be,getAriaSortState:Ea,getAriaLevel:_a,getAriaPosInSet:Sa,getAriaDescribedBy:function xp(n){return n.getAttribute("aria-describedby")||""},setAriaLabel:Ut,setAriaLabelledBy:ln,setAriaDescription:Oa,setAriaDescribedBy:un,setAriaLevel:Pa,setAriaDisabled:pn,setAriaHidden:cn,setAriaExpanded:Ue,removeAriaExpanded:Ta,setAriaSetSize:dn,setAriaPosInSet:hn,setAriaMultiSelectable:Da,setAriaRowCount:Aa,setAriaRowIndex:fn,setAriaColCount:ba,setAriaColIndex:gn,setAriaColSpan:Fa,setAriaSort:Ia,removeAriaSort:Ga,setAriaSelected:lr,setAriaChecked:xa}),vn=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i};function br(n,t,e){if(void 0===t&&(t=!0),void 0===e&&(e="-"),!n)return null;var r=[n.getFullYear(),n.getMonth()+1,n.getDate()].map(function(o){return nr(o,2)}).join(e);return t&&(r+=" "+[n.getHours(),n.getMinutes(),n.getSeconds()].map(function(o){return nr(o,2)}).join(":")),r}var yn=function(n){if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function To(n,t){void 0===t&&(t="YYYY-MM-DD");var e=nr(n.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"],i={YYYY:function(){return e.slice(e.length-4,e.length)},YY:function(){return e.slice(e.length-2,e.length)},Y:function(){return""+n.getFullYear()},MMMM:function(){return r[n.getMonth()]},MMM:function(){return r[n.getMonth()].slice(0,3)},MM:function(){return nr(n.getMonth()+1,2)},Mo:function(){return""+(n.getMonth()+1)+yn(n.getMonth()+1)},M:function(){return""+(n.getMonth()+1)},Do:function(){return""+n.getDate()+yn(n.getDate())},DD:function(){return nr(n.getDate(),2)},D:function(){return""+n.getDate()},dddd:function(){return o[n.getDay()]},ddd:function(){return o[n.getDay()].slice(0,3)},dd:function(){return o[n.getDay()].slice(0,2)},do:function(){return""+n.getDay()+yn(n.getDay())},d:function(){return""+n.getDay()}},s=new RegExp(Object.keys(i).join("|"),"g");return t.replace(s,function(a){return a in i?i[a]():a})}function Tt(n){if(!n)return null;var t=vn(n.split(" "),2),e=t[0],r=t[1];if(!e)return null;var o=e.split("-").map(function(v){return parseInt(v,10)});if(3!==o.filter(function(v){return!isNaN(v)}).length)return null;var i=vn(o,3),s=i[0],a=i[1],l=i[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!r||"00:00:00"===r)return u;var p=vn(r.split(":").map(function(v){return parseInt(v,10)}),3),c=p[0],d=p[1],f=p[2];return c>=0&&c<24&&u.setHours(c),d>=0&&d<60&&u.setMinutes(d),f>=0&&f<60&&u.setSeconds(f),u}var Mp=Object.freeze({__proto__:null,serialiseDate:br,dateToFormattedString:To,parseDateTimeFromString:Tt}),La={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 qe(n,t,e){var r=he(n,t,e);if(r&&r.className.indexOf("ag-icon")>-1)return r;var o=document.createElement("span");return o.appendChild(r),o}function he(n,t,e,r){var o=null,i=e&&e.getColDef().icons;if(i&&(o=i[n]),t&&!o){var s=t.getIcons();s&&(o=s[n])}if(!o){var l=document.createElement("span"),u=La[n];return u||(r?u=n:(console.warn("AG Grid: Did not find icon "+n),u="")),l.setAttribute("class","ag-icon ag-icon-"+u),l.setAttribute("unselectable","on"),be(l,"presentation"),l}var a=void 0;if("function"==typeof o)a=o();else{if("string"!=typeof o)throw new Error("icon from grid options needs to be a string or a function");a=o}return"string"==typeof a?me(a):Dr(a)?a:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Np=Object.freeze({__proto__:null,iconNameClassMap:La,createIcon:qe,createIconNoSpan:he}),P=function(){function n(){}return n.BACKSPACE="Backspace",n.TAB="Tab",n.ENTER="Enter",n.ESCAPE="Escape",n.SPACE=" ",n.LEFT="ArrowLeft",n.UP="ArrowUp",n.RIGHT="ArrowRight",n.DOWN="ArrowDown",n.DELETE="Delete",n.F2="F2",n.PAGE_UP="PageUp",n.PAGE_DOWN="PageDown",n.PAGE_HOME="Home",n.PAGE_END="End",n.A="KeyA",n.C="KeyC",n.V="KeyV",n.D="KeyD",n.Z="KeyZ",n.Y="KeyY",n}();function Ma(n){if(n.altKey||n.ctrlKey||n.metaKey)return!1;var t=1===n.key.length,e=function Kp(n){return Co()&&"Del"===n.key&&46===n.charCode}(n);return t||e}function Do(n,t,e,r,o){var i=n.getSuppressKeyboardEventFunc(),s=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i&&!s)return!1;
2var a={event:t,editing:o,column:r,api:n.getApi(),node:e,data:e.data,colDef:r.getColDef(),context:n.getContext(),columnApi:n.getColumnApi()};return!(!s||!s(a))||!!i&&i(a)}function Na(n,t,e,r){var o=r.getDefinition(),i=o&&o.suppressHeaderKeyboardEvent;return!!O(i)&&!!i({api:n.getApi(),columnApi:n.getColumnApi(),context:n.getContext(),colDef:o,column:r,headerRowIndex:e,event:t})}function Ha(n){var e;switch(n.keyCode){case 65:e=P.A;break;case 67:e=P.C;break;case 86:e=P.V;break;case 68:e=P.D;break;case 90:e=P.Z;break;case 89:e=P.Y;break;default:e=n.code}return e}function Wa(n,t){return void 0===t&&(t=!1),n===P.DELETE||!t&&n===P.BACKSPACE&&Ki()}var $p=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Ma,isUserSuppressingKeyboardEvent:Do,isUserSuppressingHeaderKeyboardEvent:Na,normaliseQwertyAzerty:Ha,isDeleteKey:Wa});function Cn(n,t,e){if(0===e)return!1;var r=Math.abs(n.clientX-t.clientX),o=Math.abs(n.clientY-t.clientY);return Math.max(r,o)<=e}var Yp=Object.freeze({__proto__:null,areEventsNear:Cn}),Qp=Object.freeze({__proto__:null,sortRowNodesByOrder:function qp(n,t){if(!n)return!1;for(var e=function(a,l){var u=t[a.id],p=t[l.id],c=void 0!==u,d=void 0!==p;return c&&d?u-p:c||d?c?1:-1:a.__objectId-l.__objectId},i=!1,s=0;s<n.length-1;s++)if(e(n[s],n[s+1])>0){i=!0;break}return!!i&&(n.sort(e),!0)},traverseNodesWithKey:function Xp(n,t){var e=[];!function r(o){o&&o.forEach(function(i){if(i.group||i.hasChildren()){e.push(i.key);var s=e.join("|");t(i,s),r(i.childrenAfterGroup),e.pop()}})}(n)}});function mn(n){var t=new Set;return n.forEach(function(e){return t.add(e)}),t}var Zp=Object.freeze({__proto__:null,convertToSet:mn}),ce=function(){return ce=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},ce.apply(this,arguments)},H=ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce({},Gp),Lp),wu),ju),mp),Mp),Tp),Pu),uu),zu),Te),Np),$p),Mu),Yp),Xu),su),Qp),Zp),Gu),ur=function(){function n(t,e){void 0===t&&(t=0),void 0===e&&(e=1),this.nextValue=t,this.step=e}return n.prototype.next=function(){var t=this.nextValue;return this.nextValue+=this.step,t},n.prototype.peek=function(){return this.nextValue},n.prototype.skip=function(t){this.nextValue+=t},n}(),Fr=function(n){return n[n.IN_PROGRESS=0]="IN_PROGRESS",n[n.RESOLVED=1]="RESOLVED",n}(Fr||{}),Ie=function(){function n(t){var e=this;this.status=Fr.IN_PROGRESS,this.resolution=null,this.waiters=[],t(function(r){return e.onDone(r)},function(r){return e.onReject(r)})}return n.all=function(t){return new n(function(e){var r=t.length,o=new Array(r);t.forEach(function(i,s){i.then(function(a){o[s]=a,0==--r&&e(o)})})})},n.resolve=function(t){return void 0===t&&(t=null),new n(function(e){return e(t)})},n.prototype.then=function(t){var e=this;return new n(function(r){e.status===Fr.RESOLVED?r(t(e.resolution)):e.waiters.push(function(o){return r(t(o))})})},n.prototype.resolveNow=function(t,e){return this.status===Fr.RESOLVED?e(this.resolution):t},n.prototype.onDone=function(t){this.status=Fr.RESOLVED,this.resolution=t,this.waiters.forEach(function(e){return e(t)})},n.prototype.onReject=function(t){console.warn("TBI")},n}(),ec=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),wn=function(){return wn=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},wn.apply(this,arguments)},Ir=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},st=function(n){return n[n.NOTHING=0]="NOTHING",n[n.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",n[n.SHOWING=2]="SHOWING",n}(st||{}),Rn=function(n){function t(e){var r=n.call(this)||this;return r.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,r.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,r.SHOW_QUICK_TOOLTIP_DIFF=1e3,r.FADE_OUT_TOOLTIP_TIMEOUT=1e3,r.state=st.NOTHING,r.tooltipInstanceCount=0,r.tooltipMouseTrack=!1,r.parentComp=e,r}return ec(t,n),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(),n.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!St()&&this.state==st.NOTHING){var r=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),r),this.lastMouseEvent=e,this.state=st.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===st.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=st.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===st.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=st.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var r=this.tooltipPopupDestroyFunc,o=this.tooltipComp;window.setTimeout(function(){r(),e.getContext().destroyBean(o)},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=wn({},this.parentComp.getTooltipParams());if(O(e.value)){this.state=st.SHOWING,this.tooltipInstanceCount++;var r=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);
vendor: 4,147 bytes, line 2
2this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(r)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,r){if(this.state!==st.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(r);else{var i=r.getGui();this.tooltipComp=r,i.classList.contains("ag-tooltip")||i.classList.add("ag-tooltip-custom");var s=this.gridOptionsWrapper.getLocaleTextFunc(),a=this.popupService.addPopup({eChild:i,ariaLabel:s("ariaLabelTooltip","Tooltip")});a&&(this.tooltipPopupDestroyFunc=a.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,skipObserver:this.tooltipMouseTrack})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Ir([h("popupService")],t.prototype,"popupService",void 0),Ir([h("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ir([h("columnApi")],t.prototype,"columnApi",void 0),Ir([h("gridApi")],t.prototype,"gridApi",void 0),Ir([I],t.prototype,"postConstruct",null),t}(F),tc=function(){function n(t){this.cssClassStates={},this.getGui=t}return n.prototype.addCssClass=function(t){var e=this,r=(t||"").split(" ");if(r.length>1)r.forEach(function(s){return e.addCssClass(s)});else if(!0!==this.cssClassStates[t]&&t.length){var i=this.getGui();i&&i.classList.add(t),this.cssClassStates[t]=!0}},n.prototype.removeCssClass=function(t){var e=this,r=(t||"").split(" ");if(r.length>1)r.forEach(function(s){return e.removeCssClass(s)});else if(!1!==this.cssClassStates[t]&&t.length){var i=this.getGui();i&&i.classList.remove(t),this.cssClassStates[t]=!1}},n.prototype.containsCssClass=function(t){var e=this.getGui();return!!e&&e.classList.contains(t)},n.prototype.addOrRemoveCssClass=function(t,e){var r=this;if(t){if(t.indexOf(" ")>=0){var o=(t||"").split(" ");if(o.length>1)return void o.forEach(function(a){return r.addOrRemoveCssClass(a,e)})}if(this.cssClassStates[t]!==e&&t.length){var s=this.getGui();s&&s.classList.toggle(t,e),this.cssClassStates[t]=e}}},n}(),rc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),En=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},oc=new ur,j=function(n){function t(e){var r=n.call(this)||this;return r.displayed=!0,r.visible=!0,r.compId=oc.next(),r.cssClassManager=new tc(function(){return r.eGui}),e&&r.setTemplate(e),r}return rc(t,n),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 r=this;this.tooltipText!=e&&(this.tooltipText&&(r.usingBrowserTooltips?r.getGui().removeAttribute("title"):r.tooltipFeature=r.destroyBean(r.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(r.usingBrowserTooltips?r.getGui().setAttribute("title",r.tooltipText):r.tooltipFeature=r.createBean(new Rn(r)))))},t.prototype.createChildComponentsFromTags=function(e,r){var o=this;ma(e.childNodes).forEach(function(s){if(s instanceof HTMLElement){var a=o.createComponentFromElement(s,function(u){u.getGui()&&o.copyAttributesFromN
2ode(s,u.getGui())},r);if(a){if(a.addItems&&s.children.length){o.createChildComponentsFromTags(s,r);var l=Array.prototype.slice.call(s.children);a.addItems(l)}o.swapComponentForNode(a,e,s)}else s.childNodes&&o.createChildComponentsFromTags(s,r)}})},t.prototype.createComponentFromElement=function(e,r,o){var i=e.nodeName,s=o?o[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(i);if(a){t.elementGettingCreated=e;var l=new a(s);return l.setParentComponent(this),this.createBean(l,null,r),l}return null},t.prototype.copyAttributesFromNode=function(e,r){wa(e.attributes,function(o,i){return r.setAttribute(o,i)})},t.prototype.swapComponentForNode=function(e,r,o){var i=e.getGui();r.replaceChild(i,o),r.insertBefore(document.createComment(o.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,r){var o=this;this.iterateOverQuerySelectors(function(i){o[i.attributeName]===r&&(o[i.attributeName]=e)})},t.prototype.iterateOverQuerySelectors=function(e){for(var r=Object.getPrototypeOf(this);null!=r;){var o=r.__agComponentMetaData,i=po(r.constructor);o&&o[i]&&o[i].querySelectors&&o[i].querySelectors.forEach(function(s){return e(s)}),r=Object.getPrototypeOf(r)}},t.prototype.setTemplate=function(e,r){var o=me(e);this.setTemplateFromElement(o,r)},t.prototype.setTemplateFromElement=function(e,r){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),r)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var r=this;this.iterateOverQuerySelectors(function(o){var i=function(l){return r[o.attributeName]=l};if(o.refSelector&&e.eGui.getAttribute("ref")===o.refSelector)i(e.eGui);else{var a=e.eGui.querySelector(o.querySelector);a&&i(a.__agComponent||a)}})}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,r){null!=e&&(r||(r=this.eGui),Dr(e)?r.appendChild(e):r.appendChild(e.getGui()))},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,fa(this.eGui,e))},t.prototype.setDisplayed=function(e){e!==this.displayed&&(this.displayed=e,se(this.eGui,e),this.dispatchEvent({type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed}))},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),n.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,r){var o=this;this.eGui.addEventListener(e,r),this.addDestroyFunc(function(){return o.eGui.removeEventListener(e,r)})},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,r){this.cssClassManager.addOrRemoveCssClass(e,r)},t.prototype.getAttribute=function(e){var r=this.eGui;return r?r.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",En([h("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),En([Ms],t.prototype,"preConstructOnComponent",null),En([Ms],t.prototype,"createChildComponentsPreConstruct",null),t}(F);function T(n){return Va.bind(this,"[ref="+n+"]",n)}function Va(n,t,e,r,o){null!==n?"number"!=typeof o?function ic(n,t,e){var r=function nc(n,t){return n.__agComponentMetaData||(n.__agComponentMetaData={}),n.__agComponentMetaData[t]||(n.__agComponentMetaData[t]={}),n.__agComponentMetaData[t]}(n,po(n.constructor));r[t]||(r[t]=[]),r[t].push(e)}(e,"querySelectors",{attributeName:r,querySelector:n,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}
2var sc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ba=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ac=function(n){function t(){return n.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 sc(t,n),t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var r=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(r+" "+o("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var r=this;e?this.params.parentFilterInstance(function(o){if(o.getModelAsString){var i=o.getModelAsString(e);r.eFloatingFilterText.setValue(i)}}):this.eFloatingFilterText.setValue("")},Ba([T("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),Ba([h("columnModel")],t.prototype,"columnModel",void 0),t}(j),ka=function(){function n(t,e,r,o){var i=this;this.alive=!0,this.context=t,this.eParent=o,e.getDateCompDetails(r).newAgStackInstance().then(function(l){i.alive?(i.dateComp=l,l&&(o.appendChild(l.getGui()),l.afterGuiAttached&&l.afterGuiAttached(),i.tempValue&&l.setDate(i.tempValue),null!=i.disabled&&i.setDateCompDisabled(i.disabled))):t.destroyBean(l)})}return n.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},n.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},n.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},n.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},n.prototype.setDisplayed=function(t){se(this.eParent,t)},n.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},n.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},n.prototype.afterGuiAttached=function(t){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(t)},n.prototype.setDateCompDisabled=function(t){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(t)},n}(),_n=function(){return _n=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},_n.apply(this,arguments)},Ua=function(){function n(){this.customFilterOptions={}}return n.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t),this.checkForDeprecatedParams()},n.prototype.checkForDeprecatedParams=function(){this.filterOptions.some(function(t){return"string"!=typeof t&&null!=t.test})&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some(function(t){return"string"!=typeof t&&null!=t.hideFilterInput})&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},n.prototype.getFilterOptions=function(){return this.filterOptions},n.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach(function(e){if("string"!=typeof e){if(![["displayKey"],["displayName"],["predicate","test"]].every(function(a){return!!a.some(function(l){return null!=e[l]})||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+a+"'"),!1)}))return void(t.filterOptions=t.filterOptions.filter(function(a){return a===e})||[]);var i=e.test,s=_n({},e);null!=i&&null==e.predicate&&(s.predicate=function(a,l){return i(a[0],l)},delete s.test),s.hideFilterInput&&null==s.numberOfInputs&&(s.numberOfInputs=0,delete s.hideFilterInput),t.customFilterOptions[e.displayKey]=s}})},n.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];"string"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invali
2d FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},n.prototype.getDefaultOption=function(){return this.defaultOption},n.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},n}(),lc={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"},uc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sn=function(){return Sn=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Sn.apply(this,arguments)},ja=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Dt=function(n){function t(e,r){void 0===r&&(r={});var o=n.call(this)||this;return o.eFocusableElement=e,o.callbacks=r,o.callbacks=Sn({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(i){if(!i.defaultPrevented){var s=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,i.shiftKey);s&&(s.focus(),i.preventDefault())}}},r),o}return uc(t,n),t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var r=this;this.addManagedListener(e,"keydown",function(o){if(!o.defaultPrevented&&!ot(o)){if(r.callbacks.shouldStopEventPropagation(o))return void ir(o);o.key===P.TAB?r.callbacks.onTabKeyDown(o):r.callbacks.handleKeyDown&&r.callbacks.handleKeyDown(o)}})},t.FOCUS_MANAGED_CLASS="ag-focus-managed",ja([h("focusService")],t.prototype,"focusService",void 0),ja([I],t.prototype,"postConstruct",null),t}(F),pc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),za=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ao=function(n){function t(e){var r=n.call(this)||this;return r.filterNameKey=e,r.applyActive=!1,r.hidePopup=null,r.appliedModel=null,r}return pc(t,n),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new Dt(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 r=this.getGui();r&&r.removeEventListener("submit",this.onFormSubmit);var o='\n            <form class="ag-filter-wrapper">\n                <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n                    '+this.createBodyTemplate()+"\n                </div>\n            </form>";this.setTemplate(o,e),(r=this.getGui())&&r.addEventListener("submit",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var r=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){r.updateUiVisibility(),r.setupOnBtApplyDebounce()})},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,r=this.providedFilterParams.buttons;if(!(!r||r.length<1||this.isReadOnly())){var o=document.createElement("div");
vendor: 6,283 bytes, line 2
2o.classList.add("ag-filter-apply-panel"),mn(r).forEach(function(s){return function(s){var a,l;switch(s){case"apply":a=e.translate("applyFilter"),l=function(c){return e.onBtApply(!1,!1,c)};break;case"clear":a=e.translate("clearFilter"),l=function(){return e.onBtClear()};break;case"reset":a=e.translate("resetFilter"),l=function(){return e.onBtReset()};break;case"cancel":a=e.translate("cancelFilter"),l=function(c){e.onBtCancel(c)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var p=me('<button\n                    type="'+("apply"===s?"submit":"button")+'"\n                    ref="'+s+'FilterButton"\n                    class="ag-standard-button ag-filter-apply-panel-button"\n                >'+a+"\n                </button>");o.appendChild(p),e.addManagedListener(p,"click",l)}(s)}),this.getGui().appendChild(o)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=Rt(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var r=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then(function(){r.updateUiVisibility(),r.applyModel()})},t.prototype.onBtCancel=function(e){var r=this,o=this.getModel(),i=function(){r.onUiChanged(!1,"prevent"),r.providedFilterParams.closeOnApply&&r.close(e)};null!=o?this.setModelIntoUi(o).then(i):this.resetUiToDefaults().then(i)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var r=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(r,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,r,o){void 0===e&&(e=!1),void 0===r&&(r=!1),o&&o.preventDefault(),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:r}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!r&&this.close(o)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var i,o=e&&e.key;("Enter"===o||"Space"===o)&&(i={keyboardEvent:e}),this.hidePopup(i),this.hidePopup=null}},t.prototype.onUiChanged=function(e,r){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var o=this.isModelValid(this.getModelFromUi());sr(this.getRefElement("applyFilterButton"),!o)}e&&!r||"immediately"===r?this.onBtApply(e):(!this.applyActive&&!r||"debounce"===r)&&this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,r){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:r},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,n.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,lc[e])},t.prototype.getCellValue=function(e){var r=this.providedFilterParams;return this.providedFilterParams.valueGetter({api:r.api,colDef:r.colDef,column:r.column,columnApi:r.columnApi,context:r.context,data:e.data,getValue:function(u){return e.data[u]},node:e})},za([h("rowModel")],t.prototype,"rowModel",void 0),za([I],t.prototype,"postConstruct",null),t}(j),cc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),On=function(n){function t(e,r){var o=n.call(this,r)||this;return o.labelSeparator="",o.labelAlignment="left",o.disabled=!1,o.label="",o.config=e||{},o}return cc(t,n),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,r=e.labelSeparator,o=e.label,i=e.labelWidth,s=e.labelAlignment;null!=r&&this.setLabelSeparator(r),null!=o&&this.setLabel(o),null!=i&&this.setLabelWidth(i),this.setLabelAlignment(s||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){ke(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"),be(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),be(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 o=this.getGui().classList;return o.toggle("ag-label-align-left","left"===e),o.toggle("ag-label-align-right","right"===e),o.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Tr(this.eLabel,e),this},t.prototype.setDisabled=function(e){e=!!e;var r=this.getGui();return sr(r,e),r.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([I],t.prototype,"postConstruct",null),t}
2(j),hc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),dt=function(n){function t(e,r,o){var i=n.call(this,e,r)||this;return i.className=o,i}return hc(t,n),t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var r=this;return this.addManagedListener(this,t.EVENT_CHANGED,function(){return e(r.getValue())}),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return nt(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,r){return this.value===e||(this.previousValue=this.value,this.value=e,r||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.EVENT_CHANGED="valueChange",t}(On),fc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),bo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ka=function(n){function t(e,r,o,i){var s=n.call(this,e,'<div class="ag-picker-field" role="presentation">\n                <div ref="eLabel"></div>\n                <div ref="eWrapper"\n                    class="ag-wrapper ag-picker-field-wrapper"\n                    tabIndex="-1"\n                    aria-expanded="false"\n                    '+(i?'role="'+i+'"':"")+'\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>',r)||this;return s.pickerIcon=o,s.isPickerDisplayed=!1,s.isDestroyingPicker=!1,s.skipClick=!1,s}return fc(t,n),t.prototype.postConstruct=function(){var e=this;n.prototype.postConstruct.call(this);var r=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",r),un(this.eWrapper,r);var o=function(){e.skipClick?e.skipClick=!1:e.isDisabled()||(e.pickerComponent=e.showPicker())},i=this.getGui();if(this.addManagedListener(i,"mousedown",function(a){!e.skipClick&&e.pickerComponent&&e.pickerComponent.isAlive()&&ar(e.pickerComponent.getGui())&&i.contains(a.target)&&(e.skipClick=!0)}),this.addManagedListener(i,"keydown",function(a){switch(a.key){case P.UP:case P.DOWN:case P.ENTER:case P.SPACE:o();case P.ESCAPE:e.isPickerDisplayed&&a.preventDefault()}}),this.addManagedListener(this.eWrapper,"click",o),this.addManagedListener(this.eLabel,"click",o),this.pickerIcon){var s=he(this.pickerIcon,this.gridOptionsWrapper);s&&this.eIcon.appendChild(s)}},t.prototype.refreshLabel=function(){O(this.getLabel())?ln(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),n.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return Ut(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return Tr(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},bo([T("eLabel")],t.prototype,"eLabel",void 0),bo([T("eWrapper")],t.prototype,"eWrapper",void 0),bo([T("eDisplayField")],t.prototype,"eDisplayField",void 0),bo([T("eIcon")],t.prototype,"eIcon",void 0),t}(dt),gc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),$a=function(n){function t(e){void 0===e&&(e="default");var r=n.call(this,'<div class="ag-list ag-'+e+'-list" role="listbox"></div>')||this;return r.cssIdentifier=e,r.options=[],r.itemEls=[],r}return gc(t,n),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var r=e.key;switch(r){case P.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case P.DOWN:case P.UP:var i=r===P.DOWN,s=void 0;if(e.preventDefault(),this.highlightedEl){var l=this.itemEls.indexOf(this.highlightedEl)+(i?1:-1);l=Math.min(Math.max(l,0),this.itemEls.length-1),s=this.itemEls[l]}else s=this.itemEls[i?0:this.itemEls.length-1];this.highlightItem(s)}},t.prototype.addOptions=function(e){var r=this;return e.forEach(function(o){return r.addOption(o)}),this},t.prototype.addOption=function(e){var r=e.value,i=it(e.text||r);return this.options.push({value:r,text:i}),this.renderOption(r,i),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach(function(r,o){hn(r,o+1),dn(r,e.length)})},t.prototype.renderOption=function(e,r){var o=this,i=document.createElement("div");be(i,"option"),i.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),i.innerHTML="<span>"+r+"</span>",i.tabIndex=-1,this.itemEls.push(i),this.addManagedListener(i,"mouseover",function(){return o.highlightItem(i)}),this.addManagedListener(i,"mouseleave",function(){return o.clearHighlighted()}),this.addManagedListener(i,"click",function(){return o.setValue(e)}),this.getGui().appendChild(i)},t.prototype.setValue=function(e,r){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var o=this.options.findIndex(function(s){return s.value===e});if(-1!==o){var i=this.options[o];this.value=i.value,this.displayValue=null!=i.text?i.text:i.value,this.highlightItem(this.itemEls[o]),r||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var r=this.options.findIndex(function(o){return o.value===e.value});-1!==r&&this.highlightItem(this.itemEls[r])},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),lr(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){!this.highlightedEl||!this.highlightedEl.offsetParent||(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),lr(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:dt.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",function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([I],t.prototype,"init",null),t}
vendor: 10,486 bytes, line 2
2(j),yc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ya=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},qa=function(n){function t(e){return n.call(this,e,"ag-select","smallDown","listbox")||this}return yc(t,n),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new $a("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,$a.EVENT_ITEM_SELECTED,function(){e.hideList&&e.hideList()}),this.listComponent.addManagedListener(this.listComponent,dt.EVENT_CHANGED,function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()})},t.prototype.showPicker=function(){var e=this,r=this.listComponent.getGui(),o=this.gridOptionsWrapper.getDocument(),i=this.addManagedListener(o.body,"wheel",function(u){!r.contains(u.target)&&e.hideList&&e.hideList()}),s=this.addManagedListener(r,"focusout",function(u){!r.contains(u.relatedTarget)&&e.hideList&&e.hideList()}),a=this.gridOptionsWrapper.getLocaleTextFunc(),l=this.popupService.addPopup({modal:!0,eChild:r,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,s(),i(),e.isAlive()&&(Ue(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:a("ariaLabelSelectField","Select Field")});return l&&(this.hideList=l.hideFunc),this.isPickerDisplayed=!0,Tr(r,Oo(this.eWrapper)),Ue(this.eWrapper,!0),r.style.maxHeight=Sr(this.popupService.getPopupParent())+"px",r.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:r,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var r=this;return e.forEach(function(o){return r.addOption(o)}),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(e,r,o){return this.value===e?this:(o||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),n.prototype.setValue.call(this,e,r)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),n.prototype.destroy.call(this)},Ya([h("popupService")],t.prototype,"popupService",void 0),Ya([I],t.prototype,"init",null),t}(Ka),Cc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Pn=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ht=function(n){function t(e,r,o,i){void 0===o&&(o="text"),void 0===i&&(i="input");var s=n.call(this,e,'\n            <div role="presentation">\n                <div ref="eLabel" class="ag-input-field-label"></div>\n                <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n                    <'+i+' ref="eInput" class="ag-input-field-input"></'+i+">\n                </div>\n            </div>",r)||this;return s.inputType=o,s.displayFieldTag=i,s}return Cc(t,n),t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var e=this.config,r=e.width,o=e.value;null!=r&&this.setWidth(r),null!=o&&this.setValue(o),this.addInputListeners()},t.prototype.refreshLabel=function(){O(this.getLabel())?ln(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),n.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(r){return e.setValue(r.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 Tr(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 Ar(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Ut(this.eInput,e),this},t.prototype.setDisabled=function(e){return sr(this.eInput,e),n.prototype.setDisabled.call(this,e)},Pn([T("eLabel")],t.prototype,"eLabel",void 0),Pn([T("eWrapper")],t.prototype,"eWrapper",void 0),Pn([T("eInput")],t.prototype,"eInput",void 0),t}(dt),mc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),jt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ge=function(n){return n[n.One=0]="One",n[n.Two=1]="Two",n}(Ge||{}),le=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return mc(t,n),t.prototype.getNumberOfInputs=function(e){var r=this.optionsFactory.getCustomOption(e);return r?r.numberOfInputs??1:e&&[t.EMPTY,t.NOT_BLANK,t.BLANK].indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,r){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(r),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){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(Ge.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(Ge.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(Ge.One),condition2:this.createCondition(Ge.Two)}:this.createCondition(Ge.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,r){if(!e&&!r)return!0;if(!e&&r||e&&!r)return!1;var a,o=!e.operator,i=!r.operator;if(!o&&i||o&&!i)return!1;if(o)a=this.areSimpleModelsEqual(e,r);else{var p=e,c=r;a=p.operator===c.operator&&this.areSimpleModelsEqual(p.condition1,c.condition1)&&this.areSimpleModelsEqual(p.condition2,c.condition2)}return a},t.prototype.setModelIntoUi=function(e){if(e.operator){var o=e,i="OR"===o.operator;this.eJoinOperatorAnd.setValue(!i),this.eJoinOperatorOr.setValue(i),this.eType1.setValue(o.condition1.type),this.eType2.setValue(o.condition2.type),this.setConditionIntoUi(o.condition1,Ge.One),this.setConditionIntoUi(o.condition2,Ge.Two)}else{var s=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(s.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(s,Ge.One),this.setConditionIntoUi(null,Ge.Two)}return Ie.resolve()},t.prototype.doesFilterPass=function(e){var r=this,o=this.getModel();if(null==o)return!0;var i=o.operator,s=[];return i?s.push(o.condition1,o.condition2):s.push(o),s[i&&"OR"===i?"some":"every"](function(u){return r.individualConditionPasses(e,u)})},t.prototype.setParams=function(e){n.prototype.setParams.call(this,e),this.optionsFactory=new Ua,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.allowTwoConditions=!e.suppressAndOrCondition,this.alwaysShowBothConditions=!!e.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return Be(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,r=this.optionsFactory.getFilterOptions(),o=[this.eType1,this.eType2];r.forEach(function(i){var s="string"==typeof i?e.createBoilerplateListOption(i):e.createCustomListOption(i);o.forEach(function(a){return a.addOption(s)})}),o.forEach(function(i){return i.setDisabled(r.length<=1)})},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var r=e.displayKey,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:r,text:o?this.gridOptionsWrapper.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(r)}},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(Ge.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>
2\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(Ge.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,o=[this.eCondition1Body,this.eCondition2Body];[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]].forEach(function(i,s){var a=e.isConditionVisible(s),l=e.isConditionDisabled(s);i.forEach(function(u){u instanceof ht||u instanceof qa?(u.setDisabled(l),u.setDisplayed(a)):(sr(u,l),se(u,a))})}),o.forEach(function(i,s){se(i,e.isConditionBodyVisible(s))}),this.forEachInput(function(i,s,a,l){e.setElementDisplayed(i,s<l),e.setElementDisabled(i,e.isConditionDisabled(a))}),this.resetPlaceholder()},t.prototype.afterGuiAttached=function(e){if(n.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!e||!e.suppressFocus&&!this.isReadOnly()){var r=this.getInputs()[0][0];if(!r)return;r instanceof ht&&r.getInputElement().focus()}},t.prototype.getPlaceholderText=function(e,r){var o=this.translate(e);if(co(this.filterPlaceholder)){var i=this.filterPlaceholder,s=0===r?this.eType1.getValue():this.eType2.getValue();o=i({filterOptionKey:s,filterOption:this.translate(s),placeholder:o})}else"string"==typeof this.filterPlaceholder&&(o=this.filterPlaceholder);return o},t.prototype.resetPlaceholder=function(){var e=this,r=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput(function(o,i,s,a){if(o instanceof ht){var l=0===i&&a>1?"inRangeStart":0===i?"filterOoo":"inRangeEnd",u=0===i&&a>1?r("ariaFilterFromValue","Filter from value"):0===i?r("ariaFilterValue","Filter Value"):r("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(e.getPlaceholderText(l,s)),o.setInputAriaLabel(u)}})},t.prototype.setElementValue=function(e,r,o){e instanceof ht&&e.setValue(null!=r?String(r):null,o)},t.prototype.setElementDisplayed=function(e,r){e instanceof j&&se(e.getGui(),r)},t.prototype.setElementDisabled=function(e,r){e instanceof j&&sr(e.getGui(),r)},t.prototype.attachElementOnChange=function(e,r){e instanceof ht&&e.onValueChange(r)},t.prototype.forEachInput=function(e){var r=this,o=this.getInputs();this.getConditionTypes().forEach(function(i,s){for(var a=r.getNumberOfInputs(i),l=0;l<o[s].length;l++){var u=o[s][l];null!=u&&e(u,l,s,a)}})},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 r=this.getConditionTypes()[e];return this.getNumberOfInputs(r)>0},t.prototype.isConditionUiComplete=function(e){return!(this.getConditionTypes()[e]===t.EMPTY||this.getValues(e).some(function(o){return null==o}))},t.prototype.resetUiToDefaults=function(e){var r=this,i=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),s="ag-simple-filter-and-or-"+this.getCompId(),a=this.optionsFactory.getDefaultOption();return this.eType1.setValue(a,e).setAriaLabel(i).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(i).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(s).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(s).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput(function(l){r.setElementValue(l,null,e),r.setElementDisabled(l,r.isReadOnly())}),this.resetPlaceholder(),Ie.resolve()},t.prototype.setConditionIntoUi=function(e,r){var o=this,i=this.mapValuesFromModel(e);this.forEachInput(function(s,a,l,u){l===r&&o.setElementValue(s,null!=i[a]?i[a]:null)})},t.prototype.setValueFromFloatingFilter=function(e){var r=this;this.forEachInput(function(o,i,s,a){r.setElementValue(o,0===i&&0===s?e:null)})},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var r=function(){return e.onUiChanged()};this.eType1.onValueChange(r),this.eType2.onValueChange(r),this.eJoinOperatorOr.onValueChange(r),this.eJoinOperatorAnd.onValueChange(r),this.forEachInput(function(o){e.attachElementOnChange(o,r)})}},t.prototype.individualConditionPasses=function(e,r){var o=this.getCellValue(e.node),i=this.mapValuesFromModel(r),s=this.optionsFactory.getCustomOption(r.type);return this.evaluateCustomFilter(s,i,o)??(null==o?this.evaluateNullV
vendor: 5,235 bytes, line 2
2alue(r.type):this.evaluateNonNullValue(i,o,r,e))},t.prototype.evaluateCustomFilter=function(e,r,o){if(null!=e){var i=e.predicate;if(null!=i&&!r.some(function(s){return null==s}))return i(r,o)}},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",jt([T("eOptions1")],t.prototype,"eType1",void 0),jt([T("eOptions2")],t.prototype,"eType2",void 0),jt([T("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),jt([T("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),jt([T("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),jt([T("eCondition1Body")],t.prototype,"eCondition1Body",void 0),jt([T("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(Ao),wc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),we=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return wc(t,n),t.prototype.setParams=function(e){n.prototype.setParams.call(this,e),this.scalarFilterParams=e},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,r,o){var i=this.comparator(),s=null!=e[0]?i(e[0],r):0;switch(o.type){case t.EQUALS:return 0===s;case t.NOT_EQUAL:return 0!==s;case t.GREATER_THAN:return s>0;case t.GREATER_THAN_OR_EQUAL:return s>=0;case t.LESS_THAN:return s<0;case t.LESS_THAN_OR_EQUAL:return s<=0;case t.IN_RANGE:var a=i(e[1],r);return this.scalarFilterParams.inRangeInclusive?s>=0&&a<=0:s>0&&a<0;case t.BLANK:return this.isBlank(r);case t.NOT_BLANK:return!this.isBlank(r);default:return console.warn('AG Grid: Unexpected type of filter "'+o.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(le),Rc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Tn=function(){return Tn=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Tn.apply(this,arguments)},Gr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Qa=1/0,Za=function(n){function t(){var e=n.call(this,"dateFilter")||this;return e.minValidYear=1e3,e.maxValidYear=Qa,e}return Rc(t,n),t.prototype.afterGuiAttached=function(e){n.prototype.afterGuiAttached.call(this,e),this.dateCondition1FromComp.afterGuiAttached(e)},t.prototype.mapValuesFromModel=function(e){var r=e||{},o=r.dateFrom,i=r.dateTo,s=r.type;return[o&&Tt(o)||null,i&&Tt(i)||null].slice(0,this.getNumberOfInputs(s))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,r){return null==r||r<e?-1:r>e?1:0},t.prototype.setParams=function(e){n.prototype.setParams.call(this,e),this.dateFilterParams=e;var r=function(o,i){if(null!=e[o]){if(!isNaN(e[o]))return null==e[o]?i:Number(e[o]);console.warn("AG Grid: DateFilter "+o+" is not a number")}return i};this.minValidYear=r("minValidYear",1e3),this.maxValidYear=r("maxValidYear",Qa),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,r=function(o){return new ka(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},o)};this.dateCondition1FromComp=r(this.eCondition1PanelFrom),this.dateCondition1ToComp=r(this.eCondition1PanelTo),this.dateCondition2FromComp=r(this.eCondition2PanelFrom),this.dateCondition2ToComp=r(this.eCondition2PanelTo),this.addDestroyFunc(function(){e.forEachInput(function(o){return o.destroy()})})}
2,t.prototype.setElementValue=function(e,r,o){e.setDate(r)},t.prototype.setElementDisplayed=function(e,r){e.setDisplayed(r)},t.prototype.setElementDisabled=function(e,r){e.setDisabled(r)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var r=e===Ge.One?"1":"2";return'\n            <div class="ag-filter-body" ref="eCondition'+r+'Body">\n                <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+r+'PanelFrom"></div>\n                <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+r+'PanelTo"></div>\n            </div>'},t.prototype.isConditionUiComplete=function(e){var r=this;if(!n.prototype.isConditionUiComplete.call(this,e))return!1;var i=!0;return this.forEachInput(function(s,a,l,u){l!==e||!i||a>=u||(i=i&&function(s){return null!=s&&s.getUTCFullYear()>=r.minValidYear&&s.getUTCFullYear()<=r.maxValidYear}(s.getDate()))}),i},t.prototype.areSimpleModelsEqual=function(e,r){return e.dateFrom===r.dateFrom&&e.dateTo===r.dateTo&&e.type===r.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var r=this.getConditionTypes()[e],o={},i=this.getValues(e);return i.length>0&&(o.dateFrom=br(i[0])),i.length>1&&(o.dateTo=br(i[1])),Tn({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:r},o)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),r=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput(function(i){i.setInputPlaceholder(r),i.setInputAriaLabel(o)})},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var r=[];return this.forEachInput(function(o,i,s,a){e===s&&i<a&&r.push(o.getDate())}),r},t.DEFAULT_FILTER_OPTIONS=[we.EQUALS,we.GREATER_THAN,we.LESS_THAN,we.NOT_EQUAL,we.IN_RANGE,we.BLANK,we.NOT_BLANK],Gr([T("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),Gr([T("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),Gr([T("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),Gr([T("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),Gr([h("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(we),Ec=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ja=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ec(t,n),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.getTextFromModel=function(e){if(!e)return null;if(null!=e.operator){var o=e,i=o||{},a=i.condition2,l=this.getTextFromModel(i.condition1),u=this.getTextFromModel(a);return[l,o.operator,u].join(" ")}if(e.type===le.BLANK||e.type===le.NOT_BLANK)return this.gridOptionsWrapper.getLocaleTextFunc()(e.type,e.type);var c=e,d=this.optionsFactory.getCustomOption(c.type),f=d||{},v=f.displayKey,y=f.displayName;return v&&y&&0===f.numberOfInputs?(this.gridOptionsWrapper.getLocaleTextFunc()(v,y),y):this.conditionToString(c,d)},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){e?this.lastType=(e.operator?e.condition1:e).type:this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){return e?!e.operator&&this.isTypeEditable(e.type):this.isTypeEditable(this.lastType)},t.prototype.init=function(e){this.optionsFactory=new Ua,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var r=this.isTypeEditable(this.lastType);this.setEditable(r)},t.prototype.doesFilterHaveSingleInput=function(e){var o=(this.optionsFactory.getCustomOption(e)||{}).numberOfInputs;return null==o||1==o},t.prototype.isTypeEditable=function(e){var r=[le.IN_RANGE,le.EMPTY,le.BLANK,le.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&r.indexOf(e)<0},t}
2(j),_c=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Dn=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Sc=function(n){function t(){return n.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 _c(t,n),t.prototype.getDefaultFilterOptions=function(){return Za.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e,r){var o=e.type,s=o==le.IN_RANGE||2===(r||{}).numberOfInputs,a=Tt(e.dateFrom),l=Tt(e.dateTo),u=this.filterParams.inRangeFloatingFilterDateFormat;return s?(null!==a?To(a,u):"null")+"-"+(null!==l?To(l,u):"null"):null!=a?To(a,u):""+o},t.prototype.init=function(e){n.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent();var r=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(r("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){se(this.eDateWrapper,e),se(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(e,r){if(!this.isEventFromFloatingFilter(r)){n.prototype.setLastTypeFromModel.call(this,e);var o=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);this.setEditable(o),o?(this.dateComp.setDate(e?Tt(e.dateFrom):null),this.eReadOnlyText.setValue("")):(this.eReadOnlyText.setValue(this.getTextFromModel(e)),this.dateComp.setDate(null))}},t.prototype.onDateChanged=function(){var e=this,o=br(this.dateComp.getDate());this.params.parentFilterInstance(function(i){if(i){var s=Tt(o);i.onFloatingFilterChanged(e.getLastType()||null,s)}})},t.prototype.createDateComponent=function(){var e=this,r=Ao.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:Rt(this.onDateChanged.bind(this),r),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new ka(this.getContext(),this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},Dn([h("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Dn([T("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Dn([T("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Ja),Oc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Tc=function(n){function t(){return n.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 Oc(t,n),t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this,o=this.gridOptionsWrapper.getDocument(),i=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(i.type="date"),this.addManagedListener(i,"mousedown",function(){r.eDateInput.isDisabled()||i.focus()}),this.addManagedListener(i,"input",function(u){u.target===o.activeElement&&(r.eDateInput.isDisabled()||e.onDateChanged())});var s=e.filterParams||{},a=s.minValidYear,l=s.maxValidYear;a&&(i.min=a+"-01-01"),l&&(i.max=l+"-12-31")},t.prototype.getDate=function(){return Tt(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(br(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.f
vendor: 4,185 bytes, line 2
2ilterParams.browserDatePicker?e.filterParams.browserDatePicker:Er()||zi()},function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([T("eDateInput")],t.prototype,"eDateInput",void 0),t}(j),Dc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Fo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},el=function(n){function t(){return n.call(this,"numberFilter")||this}return Dc(t,n),t.prototype.mapValuesFromModel=function(e){var r=e||{};return[r.filter??null,r.filterTo??null].slice(0,this.getNumberOfInputs(r.type))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,r){return e===r?0:e<r?1:-1}},t.prototype.setParams=function(e){this.numberFilterParams=e;var r=this.getAllowedCharPattern();if(r){var o={allowedCharPattern:r};this.resetTemplate({"eValue-index0-1":o,"eValue-index1-1":o,"eValue-index0-2":o,"eValue-index1-2":o})}n.prototype.setParams.call(this,e)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var r=e===Ge.One?"1":"2",i=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n            <div class="ag-filter-body" ref="eCondition'+r+'Body" role="presentation">\n                <'+i+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+r+'"></'+i+">\n                <"+i+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+r+'"></'+i+">\n            </div>"},t.prototype.getValues=function(e){var r=this,o=[];return this.forEachInput(function(i,s,a,l){e===a&&s<l&&o.push(r.stringToFloat(i.getValue()))}),o},t.prototype.areSimpleModelsEqual=function(e,r){return e.filter===r.filter&&e.filterTo===r.filterTo&&e.type===r.type},t.prototype.getFilterType=function(){return"number"},t.prototype.stringToFloat=function(e){if("number"==typeof e)return e;var r=de(e);return null!=r&&""===r.trim()&&(r=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(r):null==r||"-"===r.trim()?null:parseFloat(r)},t.prototype.createCondition=function(e){var r=this.getConditionTypes()[e],o={filterType:this.getFilterType(),type:r},i=this.getValues(e);return i.length>0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){return(this.numberFilterParams||{}).allowedCharPattern||(Er()||Co()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[we.EQUALS,we.NOT_EQUAL,we.LESS_THAN,we.LESS_THAN_OR_EQUAL,we.GREATER_THAN,we.GREATER_THAN_OR_EQUAL,we.IN_RANGE,we.BLANK,we.NOT_BLANK],Fo([T("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),Fo([T("eValue-index1-1")],t.prototype,"eValueTo1",void 0),Fo([T("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),Fo([T("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(we),Ac=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Io=function(){return Io=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o
2]);return n},Io.apply(this,arguments)},Go=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},An=function(n){function t(){return n.call(this,"textFilter")||this}return Ac(t,n),t.trimInput=function(e){var r=e&&e.trim();return""===r?e:r},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(e){n.prototype.setParams.call(this,e),this.textFilterParams=e,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?(H.doOnce(function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")},"textCustomComparator.deprecated"),function(r){return e(r.filterOption,r.value,r.filterText)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var r=this.getConditionTypes()[e],o={filterType:this.getFilterType(),type:r},i=this.getValues(e);return i.length>0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,r){return e.filter===r.filter&&e.filterTo===r.filterTo&&e.type===r.type},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var r=this,o=[];return this.forEachInput(function(i,s,a,l){if(e===a&&s<l){var u=de(i.getValue()),p=(r.textFilterParams.trimInput?t.trimInput(u):u)||null;o.push(p),i.setValue(p,!0)}}),o},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var r=e===Ge.One?"1":"2";return'\n            <div class="ag-filter-body" ref="eCondition'+r+'Body" role="presentation">\n                <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+r+'"></ag-input-text-field>\n                <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+r+'"></ag-input-text-field>\n            </div>'},t.prototype.mapValuesFromModel=function(e){var r=e||{};return[r.filter||null,r.filterTo||null].slice(0,this.getNumberOfInputs(r.type))},t.prototype.evaluateNullValue=function(e){return!!e&&[le.NOT_EQUAL,le.NOT_CONTAINS,le.BLANK].indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,r,o,i){var s=this,a=e.map(function(R){return s.formatter(R)})||[],l=this.formatter(r),u=this.textFilterParams,p=u.api,c=u.colDef,d=u.column,f=u.columnApi,v=u.context,y=u.textFormatter;if(o.type===le.BLANK)return this.isBlank(r);if(o.type===le.NOT_BLANK)return!this.isBlank(r);var C={api:p,colDef:c,column:d,columnApi:f,context:v,node:i.node,data:i.data,filterOption:o.type,value:l,textFormatter:y};return a.some(function(R){return s.matcher(Io(Io({},C),{filterText:R}))})},t.DEFAULT_FILTER_OPTIONS=[le.CONTAINS,le.NOT_CONTAINS,le.EQUALS,le.NOT_EQUAL,le.STARTS_WITH,le.ENDS_WITH,le.BLANK,le.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 o=e.value,i=e.filterText;if(null==i)return!1;switch(e.filterOption){case t.CONTAINS:return o.indexOf(i)>=0;case t.NOT_CONTAINS:return o.indexOf(i)<0;case t.EQUALS:return o===i;case t.NOT_EQUAL:return o!=i;case t.STARTS_WITH:return 0===o.indexOf(i);case t.ENDS_WITH:var s=o.lastIndexOf(i);return s>=0&&s===o.length-i.length;default:return!1}},Go([T("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),Go([T("eValue-index1-1")],t.prototype,"eValueTo1",void 0),Go([T("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),Go([T("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}
vendor: 6,273 bytes, line 2
2(le),bc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),bn=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tl=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return bc(t,n),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,r){this.isEventFromFloatingFilter(r)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(e){n.prototype.init.call(this,e),this.params=e,this.applyActive=Ao.isUseApplyButton(this.params.filterParams);var r=this.params.filterParams.allowedCharPattern;if(null!=r&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:r}}),!this.isReadOnly()){var o=Ao.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),i=Rt(this.syncUpWithParentFilter.bind(this),o),s=this.eFloatingFilterInput.getGui();this.addManagedListener(s,"input",i),this.addManagedListener(s,"keypress",i),this.addManagedListener(s,"keydown",i)}var a=e.column.getDefinition();(this.isReadOnly()||a.filterParams&&a.filterParams.filterOptions&&1===a.filterParams.filterOptions.length&&"inRange"===a.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var l=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),u=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(l+" "+u("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var r=this;if(!this.applyActive||e.key===P.ENTER){var i=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(i=An.trimInput(i),this.eFloatingFilterInput.setValue(i,!0)),this.params.parentFilterInstance(function(s){s&&s.onFloatingFilterChanged(r.getLastType()||null,i||null)})}},t.prototype.conditionToString=function(e,r){return e.type==le.IN_RANGE||2===(r||{}).numberOfInputs?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},bn([h("columnModel")],t.prototype,"columnModel",void 0),bn([T("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),bn([I],t.prototype,"postConstruct",null),t}(Ja),Fc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ic=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Fc(t,n),t.prototype.getDefaultFilterOptions=function(){return el.DEFAULT_FILTER_OPTIONS},t}(tl),Gc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),xc=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Gc(t,n),t.prototype.getDefaultFilterOptions=function(){return An.DEFAULT_FILTER_OPTIONS},t}(tl),je=function(){function n(t,e){var r=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Et,this.eElement=t,this.preventMouseClick=e;var o=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push(function(){r.eElement.removeEventListener("touchstart",o,{passive:!0}),r.eElement.removeEventListener("touchmove",i,{passive:!0}),r.eElement.removeEventListener("touchend",s,{passive:!1})})}return n.prototype.getActiveTouch=function(t){for(var e=0;e<t.length;e++)if(t[e].identifier===this.touchStart.identifier)return t[e];return null},n.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},n.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},n.prototype.onTouchStart=function(t){var e=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var r=this.touchStart;window.setTimeout(function(){e.touching&&e.touchStart===r&&!e.moved&&(e.moved=!0,e.eventService.dispatchEvent({type:n.EVENT_LONG_TAP,touchStart:e.touchStart,touchEvent:t}))},500)}},n.prototype.onTouchMove=function(t){if(this.touching){var e=this.getActiveTouch(t.touches);e&&!Cn(e,this.touchStart,4)&&(this.moved=!0)}},n.prototype.onTouchEnd=function(t){this.touching&&(this.moved||(this.eventService.dispatchEvent({type:n.EVENT_TAP,touchStart:this.touchStart}),this.checkForDoubleTap()),this.preventMouseClick&&t.cancelable&&t.preventDefault(),this.touching=!1)},n.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();this.lastTapTime&&this.lastTapTime>0&&t-this.lastTapTime>n.DOUBLE_TAP_MILLIS?(this.eventService.dispatchEvent({type:n.EVENT_DOUBLE_TAP,touchStart:this.touchStart}),this.lastTapTime=null):this.lastTapTime=t},n.prototype.destroy=function(){this.destroyFuncs.forEach(function(t){return t()})},n.EVENT_TAP="tap",n.EVENT_DOUBLE_TAP="doubleTap",n.EVENT_LONG_TAP="longTap",n.DOUBLE_TAP_MILLIS=500,n}
2(),Lc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),zt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Fn=function(n){function t(e){var r=n.call(this)||this;return e||r.setTemplate(t.TEMPLATE),r}return Lc(t,n),t.prototype.attachCustomElements=function(e,r,o,i,s){this.eSortOrder=e,this.eSortAsc=r,this.eSortDesc=o,this.eSortMixed=i,this.eSortNone=s},t.prototype.setupSort=function(e,r){var o=this;void 0===r&&(r=!1),this.column=e,this.suppressOrder=r,this.setupMultiSortIndicator(),this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,function(){return o.onSortChanged()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return o.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,r,o){if(null!=r){var i=he(e,this.gridOptionsWrapper,o);i&&r.appendChild(i)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!("asc"===e)),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!("desc"===e)),this.eSortNone){var i=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",i||!(null==e))}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var r=this.column.getColDef().showRowGroup;this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&r&&(this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e="mixed"===this.sortController.getDisplaySortForColumn(this.column);this.eSortMixed.classList.toggle("ag-hidden",!e)}},t.prototype.updateSortOrder=function(){var e=this;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),i=this.sortController.getDisplaySortIndexForColumn(this.column)??-1,s=o.some(function(l){return e.sortController.getDisplaySortIndexForColumn(l)??!1});se(this.eSortOrder,i>=0&&s),i>=0?this.eSortOrder.innerHTML=(i+1).toString():ke(this.eSortOrder)}},t.TEMPLATE='<span class="ag-sort-indicator-container">\n            <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>\n        </span>',zt([T("eSortOrder")],t.prototype,"eSortOrder",void 0),zt([T("eSortAsc")],t.prototype,"eSortAsc",void 0),zt([T("eSortDesc")],t.prototype,"eSortDesc",void 0),zt([T("eSortMixed")],t.prototype,"eSortMixed",void 0),zt([T("eSortNone")],t.prototype,"eSortNone",void 0),zt([h("columnModel")],t.prototype,"columnModel",void 0),zt([h("sortController")],t.prototype,"sortController",void 0),t}
2(j),Mc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ze=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Nc=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return Mc(t,n),t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)},t.prototype.workOutTemplate=function(){var e=Ws(this.params.template,t.TEMPLATE);return 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 r=it(this.currentDisplayName);this.eText&&(this.eText.innerHTML=r)}},t.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,r,o){if(null!=r){var i=he(e,this.gridOptionsWrapper,o);i&&r.appendChild(i)}},t.prototype.setupTap=function(){var e=this,r=this.gridOptionsWrapper;if(!r.isSuppressTouch()){var o=new je(this.getGui(),!0),i=r.isSuppressMenuHide(),s=i&&O(this.eMenu),a=s?new je(this.eMenu,!0):o;this.params.enableMenu&&this.addManagedListener(a,je[s?"EVENT_TAP":"EVENT_LONG_TAP"],function(c){r.getApi().showColumnMenuAfterMouseClick(e.params.column,c.touchStart)}),this.params.enableSorting&&this.addManagedListener(o,je.EVENT_TAP,function(c){i&&e.eMenu.contains(c.touchStart.target)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}),this.addDestroyFunc(function(){return o.destroy()}),s&&this.addDestroyFunc(function(){return a.destroy()})}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),r=St()&&e;return this.params.enableMenu&&!r},t.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return void Bt(this.eMenu);var r=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",function(){return e.showMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",r)}},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new Fn(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var r=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,X.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=(new Date).getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(i){var s=e.params.column.isMoving(),a=(new Date).getTime();s||a-e.lastMovingChanged<50||e.params.progressSort(r?i.ctrlKey||i.metaKey:i.shiftKey)});var o=function(){var i;if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var a=null===(i=e.columnModel.getSourceColumnsForGroupColumn(e.params.column))||void 0===i?void 0:i.every(function(u){return e.params.column.getSort()==u.getSort()});e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",!a)}};this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,X.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">
2\n            <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n            <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n                <span ref="eText" class="ag-header-cell-text"></span>\n                <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n                <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n            </div>\n        </div>',ze([h("sortController")],t.prototype,"sortController",void 0),ze([h("menuFactory")],t.prototype,"menuFactory",void 0),ze([h("columnModel")],t.prototype,"columnModel",void 0),ze([T("eFilter")],t.prototype,"eFilter",void 0),ze([T("eSortIndicator")],t.prototype,"eSortIndicator",void 0),ze([T("eMenu")],t.prototype,"eMenu",void 0),ze([T("eLabel")],t.prototype,"eLabel",void 0),ze([T("eText")],t.prototype,"eText",void 0),ze([T("eSortOrder")],t.prototype,"eSortOrder",void 0),ze([T("eSortAsc")],t.prototype,"eSortAsc",void 0),ze([T("eSortDesc")],t.prototype,"eSortDesc",void 0),ze([T("eSortMixed")],t.prototype,"eSortMixed",void 0),ze([T("eSortNone")],t.prototype,"eSortNone",void 0),t}(j),Hc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),In=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Wc=function(n){function t(){return n.call(this,t.TEMPLATE)||this}return Hc(t,n),t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){this.params.template&&q(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 r=function(s){if(!ot(s)){var a=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),a,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,r),this.addTouchAndClickListeners(this.eOpenIcon,r);var o=function(s){ir(s)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",r),this.updateIconVisibility();var i=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(i,pe.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(i,pe.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,r){var o=new je(e,!0);this.addManagedListener(o,je.EVENT_TAP,r),this.addDestroyFunc(function(){return o.destroy()}),this.addManagedListener(e,"click",r)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var r=this.params.columnGroup.isExpanded();se(this.eOpenIcon,r),se(this.eCloseIcon,!r)}else se(this.eOpenIcon,!1),se(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,r){var o=he(e,this.gridOptionsWrapper,null);o&&this.getRefElement(r).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return se(this.eOpenIcon,!1),void se(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(O(e)){var r=it(e);this.getRefElement("agLabel").innerHTML=r}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">
2\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>',In([h("columnModel")],t.prototype,"columnModel",void 0),In([T("agOpened")],t.prototype,"eOpenIcon",void 0),In([T("agClosed")],t.prototype,"eCloseIcon",void 0),t}(j),Vc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),xr=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Vc(t,n),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),n.prototype.setParentComponent.call(this,e)},t.prototype.destroy=function(){var e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),n.prototype.destroy.call(this)},t}(j),Bc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Uc=function(n){function t(){return n.call(this,t.TEMPLATE)||this}return Bc(t,n),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),O(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var r=e.key;(r===P.LEFT||r===P.UP||r===P.RIGHT||r===P.DOWN||e.shiftKey&&r===P.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>',function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([T("eTextArea")],t.prototype,"eTextArea",void 0),t}(xr),jc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),rl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ol=function(n){function t(){var e=n.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return e.startedByEnter=!1,e}return jc(t,n),t.prototype.init=function(e){var r=this;if(this.focusAfterAttached=e.cellStartedEdit,M(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===P.ENTER;var o=!1;e.values.forEach(function(i){var s={value:i},a=r.valueFormatterService.formatValue(e.column,null,i);s.text=null!=a?a:i,r.eSelect.addOption(s),o=o||e.value===i}),o?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()}
2,t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},rl([h("valueFormatterService")],t.prototype,"valueFormatterService",void 0),rl([T("eSelect")],t.prototype,"eSelect",void 0),t}(xr),zc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Kc=function(n){function t(){var e=n.call(this)||this;return q(function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')},"PopupSelectCellEditor.deprecated"),e}return zc(t,n),t.prototype.isPopup=function(){return!0},t}(ol),$c=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Gn=function(n){function t(){return n.call(this,t.TEMPLATE)||this}return $c(t,n),t.prototype.init=function(e){this.params=e;var o,r=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===P.BACKSPACE||e.eventKey===P.DELETE?o="":e.charPress?o=e.charPress:(o=this.getStartValue(e),e.eventKey!==P.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,o=this.getStartValue(e)),null!=o&&r.setValue(o,!0),null!=e.maxLength&&r.setMaxLength(e.maxLength),this.addManagedListener(r.getGui(),"keydown",function(i){var s=i.key;(s===P.PAGE_UP||s===P.PAGE_DOWN)&&i.preventDefault()})},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),r=this.eInput;if(r.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){Nt()||r.getFocusableElement().focus();var o=r.getInputElement();if(this.highlightAllOnFocus)o.select();else{var i=r.getValue(),s=O(i)&&i.length||0;s&&o.setSelectionRange(s,s)}}},t.prototype.focusIn=function(){var e=this.eInput,r=e.getFocusableElement(),o=e.getInputElement();r.focus(),o.select()},t.prototype.getValue=function(){return this.params.parseValue(this.eInput.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">\n            <ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>\n        </div>',function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([T("eInput")],t.prototype,"eInput",void 0),t}(xr),qc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xc=function(n){function t(){var e=n.call(this)||this;return q(function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')},"PopupTextCellEditor.deprecated"),e}return qc(t,n),t.prototype.isPopup=function(){return!0},t}(Gn),Qc=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),td=function(n){function t(){var e=n.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e}return Qc(t,n),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,r){var o=Math.abs(r),i=e.formatValue(o),s=O(i)?i:o,a=r>=0;this.eDelta.innerHTML=a?"\u2191"+s:"\u2193"+s,this.eDelta.classList.toggle("ag-value-change-delta-up",a),this.eDelta.classList.toggle("ag-value-change-delta-down",!a)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var r=this.refreshCount;window.setTimeout(function(){r===e.refreshCount&&e.hideDeltaValue()},2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),ke(this.eDelta)},t.prototype.refresh=function(e){var r=e.value;return r!==this.lastValue&&(O(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:O(e.value)?this.eValue.innerHTML=r:ke(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())&&
2("number"==typeof r&&"number"==typeof this.lastValue&&this.showDelta(e,r-this.lastValue),this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=r,!0)},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([h("filterManager")],t.prototype,"filterManager",void 0),t}(j),rd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),id=function(n){function t(){var e=n.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return rd(t,n),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var r=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=me('<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(){r===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(function(){r===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)},t.prototype.refresh=function(e){var r=e.value;return M(r)&&(r=""),r!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=r,O(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:O(e.value)?this.eCurrent.innerHTML=r:ke(this.eCurrent),!0)},t.TEMPLATE='<span>\n            <span class="ag-value-slide-current"></span>\n        </span>',function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([h("filterManager")],t.prototype,"filterManager",void 0),t}(j),At=function(n){return n[n.Above=0]="Above",n[n.Below=1]="Below",n}(At||{}),K=function(){function n(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=n.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=t}return n.prototype.setData=function(t){this.setDataCommon(t,!1)},n.prototype.updateData=function(t){this.setDataCommon(t,!0)},n.prototype.setDataCommon=function(t,e){var r=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(t,r,e);this.dispatchLocalEvent(o)},n.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},n.prototype.createDataChangedEvent=function(t,e,r){return{type:n.EVENT_DATA_CHANGED,node:this,oldData:e,newData:t,update:r}},n.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},n.prototype.getRowIndexString=function(){return this.rowPinned===m.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===m.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},n.prototype.createDaemonNode=function(){var t=new n(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},n.prototype.setDataAndId=function(t,e){var r=O(this.id)?this.createDaemonNode():null,o=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(e),this.beans.selectionService.syncInRowNode(this,r),this.checkRowSelectable();var i=this.createDataChangedEvent(t,o,!1);this.dispatchLocalEvent(i)},n.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!t||t(this))},n.prototype.setRowSelectable=function(t){if(this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsWrapper.isGroupSelectsChildren())){var r=this.calculateSelectedFromChildren();this.setSelected(r??!1)}},n.prototype.setId=function(t){var e=this.beans.gridOptionsWrapper.getRowIdFunc();if(e)if(this.data){var r=this.getGroupKeys(!0);this.id=e({data:this.data,parentKeys:r.length>0?r:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(n.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+n.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
2)}else this.id=void 0;else this.id=t},n.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var e=[],r=this;for(t&&(r=r.parent);r&&r.level>=0;)e.push(r.key),r=r.parent;return e.reverse(),e},n.prototype.isPixelInRange=function(t){return!(!O(this.rowTop)||!O(this.rowHeight))&&t>=this.rowTop&&t<this.rowTop+this.rowHeight},n.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_FIRST_CHILD_CHANGED)))},n.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_LAST_CHILD_CHANGED)))},n.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_CHILD_INDEX_CHANGED)))},n.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},n.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},n.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_DISPLAYED_CHANGED)))},n.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_DRAGGING_CHANGED)))},n.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_HIGHLIGHT_CHANGED)))},n.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},n.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_MASTER_CHANGED)))},n.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(n.EVENT_GROUP_CHANGED)))},n.prototype.setRowHeight=function(t,e){void 0===e&&(e=!1),this.rowHeight=t,this.rowHeightEstimated=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_HEIGHT_CHANGED))},n.prototype.setRowAutoHeight=function(t,e){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[e.getId()]=t,null!=t&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=Rt(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},n.prototype.checkAutoHeights=function(){var t=!1,e=!0,r=0,o=this.__autoHeights;if(null!=o&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach(function(a){var l=o[a.getId()];null!=l?(e=!1,l>r&&(r=l)):t=!0}),!t&&((e||r<10)&&(r=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),r!=this.rowHeight))){this.setRowHeight(r);var s=this.beans.rowModel;s.onRowHeightChangedDebounced&&s.onRowHeightChangedDebounced()}},n.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_ROW_INDEX_CHANGED)))},n.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_UI_LEVEL_CHANGED)))},n.prototype.setExpanded=function(t,e){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_EXPANDED_CHANGED));var r=Object.assign({},this.createGlobalRowEvent(g.EVENT_ROW_GROUP_OPENED),{expanded:t,event:e||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},n.prototype.createGlobalRowEvent=function(t){return{type:t,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()}},n.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},n.prototype.setDataValue=function(t,e,r){var o=this.beans.columnModel.getPrimaryColumn(t),i=this.beans.valueService.getValue(o,this),s=this.beans.valueService.setValue(this,o,e,r);return this.dispatchCellChangedEvent(o,e,i),this.checkRowSelectable(),s},n.prototype.setGroupValue=function(t,e){var r=this.beans.columnModel.getGridColumn(t);M(this.groupData)&&(this.groupData={});var o=r.getColId(),i=this.groupData[o];i!==e&&(this.groupData[o]=e,this.dispatchCellChangedEvent(r,e,i))},n.prototype.setAggData=function(t){var e=this,r=Ds([this.aggData,t]),o=this.aggData;this.aggData=t,this.eventService&&r.forEach(function(i){var s=e.beans.columnModel.getGridColumn(i);e.dispatchCellChangedEvent(s,e.aggData?e.aggData[i]:void 0,o?o[i]:void 0)})},n.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(n.EVENT_HAS_CHILDREN_CHANGED)))},n.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},n.prototype.isEmptyRowGroupNode=function(){return this.group&&ae(this.childrenAfterGroup)},n.prototype.dispatchCellChangedEvent=function(t,e,r){this.dispatchLocalEvent({type:n.EVENT_CELL_CHANGED,node:this,column:t,newValue:e,oldValue:r})},n.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},n.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},n.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},n.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(e){return e.depthFirstSearch(t)}),t(this)},n.prototype.calculateSelectedFromChildren=function(){var t,e=!1,r=!1,o=!1;if(null===(t=this.childrenAfterGroup)||void 0===t||!t.length)return this.selectable?this.selected:null;for(var i=0;i<this.childrenAfterGroup.length;i++){var s=this.childrenAfterGroup[i],a=s.isSelected();if(!s.selectable){var l=s.calculateSelectedFromChildren();if(null===l)continue;a=l}switch(a){case!0:e=!0;break;case!1:r=!0;break;default:o=!0}}return o||e&&r?void 0:!!e||!r&&(this.selectable?this.selected:null)},n.prototype.setSelectedInitialValue=function(t){this.selected=t},n.prototype.setSelected=function(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1),this.setSelectedParams({newValue:t,clearSelection:e,suppressFinishActions:r,rangeSelect:!1})},n.prototype.isRowPinned=function(){return this.rowPinned===m.PINNED_TOP||this.rowPinned===m.PINNED_BOTTOM},n.prototype.setSelectedParams=function(t){var e,r=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===t.newValue,i=!0===t.clearSelection,s=!0===t.suppressFinishActions,a=!0===t.rangeSelect,l=r&&!0===t.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(t);if(a&&this.beans.selectionService.getLastSelectedNode()){var u=this.beans.selectionService.getLastSelectedNode()!==this,p=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(u&&p){var c=this.doRowRangeSelection(t.newValue);return this.beans.selectionService.setLastSelectedNode(this),c}}var d=0;return l&&this.group||this.selectThisNode(o,t.event)&&d++,r&&!(null===(e=this.childrenAfterGroup)||void 0===e)&&e.length&&(d+=this.selectChildNodes(o,l)),s||(o&&(i||!this.beans.gridOptionsWrapper.isRowSelectionMulti())&&(d+=this.beans.selectionService.clearOtherNodes(this)),d>0&&(this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:g.EVENT_SELECTION_CHANGED})),o&&this.beans.selectionService.setLastSelectedNode(this)),d},n.prototype.doRowRangeSelection=function(t){var e=this;void 0===t&&(t=!0);var r=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=this.beans.selectionService.getLastSelectedNode(),i=this.beans.rowModel.getNodesInRangeForSelection(this,o),s=0;
2return i.forEach(function(l){l.group&&r||!1===t&&e===l||l.selectThisNode(t)&&s++}),this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:g.EVENT_SELECTION_CHANGED}),s},n.prototype.isParentOfNode=function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1},n.prototype.selectThisNode=function(t,e){if(!this.selectable&&t||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(n.EVENT_ROW_SELECTED));var i=Object.assign({},this.createGlobalRowEvent(g.EVENT_ROW_SELECTED),{event:e||null});return this.beans.eventService.dispatchEvent(i),!0},n.prototype.selectChildNodes=function(t,e){var r=e?this.childrenAfterAggFilter:this.childrenAfterGroup;if(M(r))return 0;for(var o=0,i=0;i<r.length;i++)o+=r[i].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:e});return o},n.prototype.addEventListener=function(t,e){this.eventService||(this.eventService=new Et),this.eventService.addEventListener(t,e)},n.prototype.removeEventListener=function(t,e){this.eventService&&(this.eventService.removeEventListener(t,e),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},n.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(n.EVENT_MOUSE_ENTER))},n.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(n.EVENT_MOUSE_LEAVE))},n.prototype.getFirstChildOfFirstChild=function(t){for(var e=this,r=!0,o=!1,i=null;r&&!o;){var s=e.parent;O(s)&&e.firstChild?s.rowGroupColumn===t&&(o=!0,i=s):r=!1,e=s}return o?i:null},n.prototype.isFullWidthCell=function(){var t=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!t&&t({rowNode:this})},n.prototype.getRoute=function(){if(null!=this.key){for(var t=[],e=this;null!=e.key;)t.push(e.key),e=e.parent;return t.reverse()}},n.ID_PREFIX_ROW_GROUP="row-group-",n.ID_PREFIX_TOP_PINNED="t-",n.ID_PREFIX_BOTTOM_PINNED="b-",n.OBJECT_ID_SEQUENCE=0,n.EVENT_ROW_SELECTED="rowSelected",n.EVENT_DATA_CHANGED="dataChanged",n.EVENT_CELL_CHANGED="cellChanged",n.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",n.EVENT_MASTER_CHANGED="masterChanged",n.EVENT_GROUP_CHANGED="groupChanged",n.EVENT_MOUSE_ENTER="mouseEnter",n.EVENT_MOUSE_LEAVE="mouseLeave",n.EVENT_HEIGHT_CHANGED="heightChanged",n.EVENT_TOP_CHANGED="topChanged",n.EVENT_DISPLAYED_CHANGED="displayedChanged",n.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",n.EVENT_LAST_CHILD_CHANGED="lastChildChanged",n.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",n.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",n.EVENT_EXPANDED_CHANGED="expandedChanged",n.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",n.EVENT_SELECTABLE_CHANGED="selectableChanged",n.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",n.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",n.EVENT_DRAGGING_CHANGED="draggingChanged",n}(),nd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),xo=function(){return xo=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},xo.apply(this,arguments)},il=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},nl=function(n){function t(){return n.call(this,'\n            <div class="ag-selection-checkbox" role="presentation">\n                <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n            </div>')||this}return nd(t,n),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(),r=this.rowNode.isSelected(),o=void 0===r?e("ariaIndeterminate","indeterminate"):!0===r?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),i=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(r,!0),this.eCheckbox.setInputAriaLabel(i+" ("+o+")")},t.prototype.onCheckedClicked=function(e){var r=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:r})},t.prototype.onUncheckedClicked=function(e){var r=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:r})},t.prototype.init=function(e){var r=this;if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(a){ir(a)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(a){ir(a);var l=r.eCheckbox.getValue();void 0===r.eCheckbox.getPreviousValue()||void 0===l?0===r.onUncheckedClicked(a||{})&&r.onCheckedClicked(a):l?r.onCheckedClicked(a):r.onUncheckedClicked(a||{})}),this.addManagedListener(this.rowNode,K.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||"function"==typeof this.getIsVisible()){var s=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,s),this.addManagedListener(this.rowNode,K.EVENT_DATA_CHANGED,s),this.addManagedListener(this.rowNode,K.EVENT_CELL_CHANGED,s),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e,r,o,i,s=this.rowNode.selectable,a=this.getIsVisible();if(s)if("function"==typeof a){var l=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,u=null===(r=this.column)||void 0===r?void 0:r.createColumnFunctionCallbackParams(this.rowNode);s=!!u&&a(xo(xo({},l),u))}else s=a??!1;if(null===(o=this.column)||void 0===o?void 0:o.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!s),this.setVisible(!0),void this.setDisplayed(!0);null!==(i=this.overrides)&&void 0!==i&&i.removeHidden?this.setDisplayed(s):this.setVisible(s)},t.prototype.getIsVisible=function(){var e,r;return this.overrides?this.overrides.isVisible:null===(r=null===(e=this.column)||void 0===e?void 0:e.getColDef())||void 0===r?void 0:r.checkboxSelection},il([T("eCheckbox")],t.prototype,"eCheckbox",void 0),il([I],t.prototype,"postConstruct",null),t}
2(j),sd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),bt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Lo=function(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Me=function(n){return n[n.ToolPanel=0]="ToolPanel",n[n.HeaderCell=1]="HeaderCell",n[n.RowDrag=2]="RowDrag",n[n.ChartPanel=3]="ChartPanel",n}(Me||{}),Lr=function(n){return n[n.Up=0]="Up",n[n.Down=1]="Down",n}(Lr||{}),ft=function(n){return n[n.Left=0]="Left",n[n.Right=1]="Right",n}(ft||{}),Se=function(n){function t(){var r=null!==n&&n.apply(this,arguments)||this;return r.dragSourceAndParamsList=[],r.dropTargets=[],r}var e;return sd(t,n),e=t,t.prototype.init=function(){this.ePinnedIcon=qe("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=qe("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=qe("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=qe("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=qe("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=qe("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=qe("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=qe("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=qe("dropNotAllowed",this.gridOptionsWrapper,null)},t.prototype.addDragSource=function(r,o){void 0===o&&(o=!1);var i={eElement:r.eElement,dragStartPixels:r.dragStartPixels,onDragStart:this.onDragStart.bind(this,r),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:i,dragSource:r}),this.dragService.addDragSource(i,o)},t.prototype.removeDragSource=function(r){var o=this.dragSourceAndParamsList.find(function(i){return i.dragSource===r});o&&(this.dragService.removeDragSource(o.params),De(this.dragSourceAndParamsList,o))},t.prototype.clearDragSourceParamsList=function(){var r=this;this.dragSourceAndParamsList.forEach(function(o){return r.dragService.removeDragSource(o.params)}),this.dragSourceAndParamsList.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(r,o){this.dragging=!0,this.dragSource=r,this.eventLastTime=o,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(r){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var o=this.createDropTargetEvent(this.lastDropTarget,r,null,null,!1);this.lastDropTarget.onDragStop(o)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(r,o){var s,a,l,u,i=this,p=this.getHorizontalDirection(r),c=this.getVerticalDirection(r);this.eventLastTime=r,this.positionGhost(r);var d=this.dropTargets.filter(function(y){return i.isMouseOnDropTarget(r,y)}),f=this.findCurrentDropTarget(r,d);if(f!==this.lastDropTarget)this.leaveLastTargetIfExists(r,p,c,o),null!==this.lastDropTarget&&null===f&&(null===(a=(s=this.dragSource).onGridExit)||void 0===a||a.call(s,this.dragItem)),null===this.lastDropTarget&&null!==f&&(null===(u=(l=this.dragSource).onGridEnter)||void 0===u||u.call(l,this.dragItem)),this.enterDragTargetIfExists(f,r,p,c,o),this.lastDropTarget=f;else if(f&&f.onDragging){var v=this.createDropTargetEvent(f,r,p,c,o);f.onDragging(v)}},t.prototype.getAllContainersFromDropTarget=function(r){var o=r.getSecondaryContainers?r.getSecondaryContainers():null,i=[[r.getContainer()]];return o?i.concat(o):i},t.prototype.allContainersIntersect=function(r,o){var i,s;try{for(var a=Lo(o),l=a.next();!l.done;l=a.next()){var p=l.value.getBoundingClientRect();if(0===p.width||0===p.height)return!1;if(!(r.clientX>=p.left&&r.clientX<p.right&&r.clientY>
vendor: 5,128 bytes, line 2
2=p.top&&r.clientY<p.bottom))return!1}}catch(f){i={error:f}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(i)throw i.error}}return!0},t.prototype.isMouseOnDropTarget=function(r,o){var i,s,a=this.getAllContainersFromDropTarget(o),l=!1;try{for(var u=Lo(a),p=u.next();!p.done;p=u.next())if(this.allContainersIntersect(r,p.value)){l=!0;break}}catch(d){i={error:d}}finally{try{p&&!p.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return!(o.targetContainsSource&&!o.getContainer().contains(this.dragSource.eElement))&&l&&o.isInterestedIn(this.dragSource.type,this.dragSource.eElement)},t.prototype.findCurrentDropTarget=function(r,o){var i,s,a,l,u=o.length;if(0===u)return null;if(1===u)return o[0];var c=this.gridOptionsWrapper.getDocument().elementsFromPoint(r.clientX,r.clientY);try{for(var d=Lo(c),f=d.next();!f.done;f=d.next()){var v=f.value;try{for(var y=(a=void 0,Lo(o)),C=y.next();!C.done;C=y.next()){var R=C.value;if(-1!==Bs(this.getAllContainersFromDropTarget(R)).indexOf(v))return R}}catch(A){a={error:A}}finally{try{C&&!C.done&&(l=y.return)&&l.call(y)}finally{if(a)throw a.error}}}}catch(A){i={error:A}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}return null},t.prototype.enterDragTargetIfExists=function(r,o,i,s,a){if(r){if(r.onDragEnter){var l=this.createDropTargetEvent(r,o,i,s,a);r.onDragEnter(l)}this.setGhostIcon(r.getIconName?r.getIconName():null)}},t.prototype.leaveLastTargetIfExists=function(r,o,i,s){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var a=this.createDropTargetEvent(this.lastDropTarget,r,o,i,s);this.lastDropTarget.onDragLeave(a)}this.setGhostIcon(null)}},t.prototype.addDropTarget=function(r){this.dropTargets.push(r)},t.prototype.removeDropTarget=function(r){this.dropTargets=this.dropTargets.filter(function(o){return o.getContainer()!==r.getContainer()})},t.prototype.hasExternalDropZones=function(){return this.dropTargets.some(function(r){return r.external})},t.prototype.findExternalZone=function(r){return this.dropTargets.filter(function(i){return i.external}).find(function(i){return i.getContainer()===r.getContainer()})||null},t.prototype.getHorizontalDirection=function(r){var o=this.eventLastTime&&this.eventLastTime.clientX,i=r.clientX;return o===i?null:o>i?ft.Left:ft.Right},t.prototype.getVerticalDirection=function(r){var o=this.eventLastTime&&this.eventLastTime.clientY,i=r.clientY;return o===i?null:o>i?Lr.Up:Lr.Down},t.prototype.createDropTargetEvent=function(r,o,i,s,a){var l=r.getContainer(),u=l.getBoundingClientRect(),p=this;return{event:o,x:o.clientX-u.left,y:o.clientY-u.top,vDirection:s,hDirection:i,dragSource:p.dragSource,fromNudge:a,dragItem:p.dragItem,api:p.gridApi,columnApi:p.columnApi,dropZoneTarget:l}},t.prototype.positionGhost=function(r){var o=this.eGhost;if(o){var s=o.getBoundingClientRect().height,a=oa()-2,l=ia()-2,u=r.pageY-s/2,p=r.pageX-10,c=this.gridOptionsWrapper.getDocument(),d=c.defaultView||window,f=d.pageYOffset||c.documentElement.scrollTop,v=d.pageXOffset||c.documentElement.scrollLeft;a>0&&p+o.clientWidth>a+v&&(p=a+v-o.clientWidth),p<0&&(p=0),l>0&&u+o.clientHeight>l+f&&(u=l+f-o.clientHeight),u<0&&(u=0),o.style.left=p+"px",o.style.top=u+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=me(e.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var r=this.environment.getTheme().theme;r&&this.eGhost.classList.add(r),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var o=this.eGhost.querySelector(".ag-dnd-ghost-label"),i=this.dragSource.dragItemName;co(i)&&(i=i()),o.innerHTML=it(i)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var s=this.gridOptionsWrapper.getDocument(),a=null;try{a=s.fullscreenElement}catch{}finally{a||(a=s.querySelector("body"))}this.eGhostParent=a,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(r,o){void 0===o&&(o=!1),ke(this.eGhostIcon);var i=null;switch(r||(r=this.dragSource.defaultIconName||e.ICON_NOT_ALLOWED),r){case e.ICON_PINNED:i=this.ePinnedIcon;break;case e.ICON_MOVE:i=this.eMoveIcon;break;case e.ICON_LEFT:i=this.eLeftIcon;break;case e.ICON_RIGHT:i=this.eRightIcon;break;case e.ICON_GROUP:i=this.eGroupIcon;break;case e.ICON_AGGREGATE:i=this.eAggregateIcon;break;case e.ICON_PIVOT:i=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:i=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",o),(i!==this.eHideIcon||!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns())&&i&&this.eGhostIcon.appendChild(i)},t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">
2\n            <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n            <div class="ag-dnd-ghost-label"></div>\n        </div>',bt([h("dragService")],t.prototype,"dragService",void 0),bt([h("mouseEventService")],t.prototype,"mouseEventService",void 0),bt([h("environment")],t.prototype,"environment",void 0),bt([h("columnApi")],t.prototype,"columnApi",void 0),bt([h("gridApi")],t.prototype,"gridApi",void 0),bt([I],t.prototype,"init",null),bt([Ee],t.prototype,"clearDragSourceParamsList",null),e=bt([L("dragAndDropService")],t)}(F),Mo=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Mr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},No=function(n){function t(e,r,o,i,s,a){var l=n.call(this)||this;return l.cellValueFn=e,l.rowNode=r,l.column=o,l.customGui=i,l.dragStartPixels=s,l.suppressVisibilityChange=a,l.dragSource=null,l}return Mo(t,n),t.prototype.isCustomGui=function(){return null!=this.customGui},t.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(he("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new ld(this,this.beans,this.rowNode,this.column):new ad(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,r){this.setTemplateFromElement(e),this.addDragSource(r)},t.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return[this.rowNode];var r=this.beans.selectionService.getSelectedNodes();return-1!==r.indexOf(this.rowNode)?r:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&q(function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")},"RowDragComp.managedAndTreeData")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.addDragSource=function(e){var r=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var o=this.gridOptionsWrapper.getRowDragText(this.column),i=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:Me.RowDrag,eElement:this.getGui(),dragItemName:function(){var s,a=r.getDragItem(),l=(null===(s=a.rowNodes)||void 0===s?void 0:s.length)||1;return o?o(a,l):1===l?r.cellValueFn():l+" "+i("rowDragRows","rows")},getDragItem:function(){return r.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},Mr([h("beans")],t.prototype,"beans",void 0),Mr([I],t.prototype,"postConstruct",null),Mr([Ee],t.prototype,"removeDragSource",null),t}(j),sl=function(n){function t(e,r,o){var i=n.call(this)||this;return i.parent=e,i.rowNode=r,i.column=o,i}return Mo(t,n),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var r=!0,o=!1;this.column&&(r=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),o=co(this.column.getColDef().rowDrag)),o?(this.parent.setDisplayed(!0),this.parent.setVisible(r)):(this.parent.setDisplayed(r),this.parent.setVisible(!0))}},t}(F),ad=function(n){function t(e,r,o,i){var s=n.call(this,e,o,i)||this;return s.beans=r,s}
2return Mo(t,n),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},Mr([I],t.prototype,"postConstruct",null),t}(sl),ld=function(n){function t(e,r,o,i){var s=n.call(this,e,o,i)||this;return s.beans=r,s}return Mo(t,n),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,g.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,K.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 r=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),o=r&&r.shouldPreventRowMove(),i=this.beans.gridOptionsWrapper.isSuppressRowDrag(),s=this.beans.dragAndDropService.hasExternalDropZones();this.setDisplayedOrVisible(o&&!s||i)},Mr([I],t.prototype,"postConstruct",null),t}(sl),ud=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ho=function(){return Ho=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Ho.apply(this,arguments)},pr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pd=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ud(t,n),t.prototype.init=function(e,r,o,i,s,a,l){this.params=l,this.eGui=r,this.eCheckbox=o,this.eExpanded=i,this.eContracted=s,this.comp=e,this.compClass=a;var u=this.isTopLevelFooter(),p=this.isEmbeddedRowMismatch(),c=null==l.value,d=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var f=l.node;f.footer&&(d=(l.colDef&&l.colDef.showRowGroup)!==(f.rowGroupColumn&&f.rowGroupColumn.getColId()))}this.cellIsBlank=!u&&(p||c||d),!this.cellIsBlank&&(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,r=e.node,o=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var i=function(){Ue(o,!!r.expanded)};this.expandListener=this.addManagedListener(r,K.EVENT_EXPANDED_CHANGED,i)||null,i()}else Ta(o)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter()||null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e||!0===e.showRowGroup)return!0;var o=this.columnModel.getRowGroupColumns();return!o||0===o.length||o[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;
vendor: 4,828 bytes, line 2
2var e=this.params.pinned===m.PINNED_LEFT,r=this.params.pinned===m.PINNED_RIGHT,o=!e&&!r;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!r:!o:this.columnModel.isPinningLeft()?!e:!o},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,r=this.params.node;if(this.showingValueForOpenedParent)for(var o=r.parent;null!=o;){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroupNode=o;break}o=o.parent}M(this.displayedGroupNode)&&(this.displayedGroupNode=r)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,r=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var i=e.rowGroupColumn.getId();if(r.isRowGroupDisplayed(i))return void(this.showingValueForOpenedParent=!1)}var a=null!=e.groupData[r.getId()];this.showingValueForOpenedParent=a}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(),r=this.getInnerCompDetails(e);this.comp.setInnerRenderer(r,e.valueFormatted??e.value)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,r=this.params.column;if(!e)return this.params;if(null!=r&&!r.isRowGroupDisplayed(e.getId()))return this.params;var s=this.params,a=this.params,p=this.valueFormatterService.formatValue(e,a.node,a.value);return Ho(Ho({},s),{valueFormatted:p})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,r="";if(e){var o=ao(this.params);o.value=this.params.value,"function"==typeof e?r=e(o):"string"==typeof e?r=this.expressionService.evaluate(e,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else r="Total "+(null!=this.params.value?this.params.value:"");var i=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(i,r)},t.prototype.getInnerCompDetails=function(e){var r=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var o=this.userComponentFactory.getInnerRendererDetails(e,e),i=function(p){return p&&p.componentClass==r.compClass};if(o&&!i(o))return o;var s=this.displayedGroupNode.rowGroupColumn,a=s?s.getColDef():void 0;if(a){var l=this.userComponentFactory.getCellRendererDetails(a,e);if(l&&!i(l))return l;if(i(l)&&a.cellRendererParams&&a.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(a.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,K.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,r=this.isShowRowGroupForThisRow();this.comp.setChildCount(r&&null!=e&&e>=0?"("+e+")":"")},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var r=this.params.column;return null==r||r.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,r=he("groupExpanded",this.gridOptionsWrapper,null),o=he("groupContracted",this.gridOptionsWrapper,null);r&&this.eExpanded.appendChild(r),o&&this.eContracted.appendChild(o);var i=e.eGridCell;!this.gridOptionsWrapper.isEnableGroupEdit()&&this.isExpandable()&&!e.suppressDoubleClickExpand&&this.addManagedListener(i,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(i,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,K.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var s=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,K.EVENT_ALL_CHILDREN_COUNT_CHANGED,s),this.addManagedListener(this.displayedGroupNode,K.EVENT_MASTER_CHANGED,s),this.addManagedListener(this.displayedGroupNode,K.EVENT_GROUP_CHANGED,s),this.addManagedListener(this.displayedGroupNode,K.EVENT_HAS_CHILDREN_CHANGED,s)},t.prototype.onExpandClicked=function(e){ot(e)||(ir(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var r=this.displayedGroupNode,o=!r.expanded;!o&&r.sticky&&this.scrollToStickyNode(r),r.setExpanded(o,e)},t.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature
2().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,r=this.columnModel.isPivotMode()&&e.leafGroup;if(!e.isExpandable()||e.footer||r)return!1;var i=this.params.column;return null==i||"string"!=typeof i.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,o=e.displayedGroupNode,i=e.columnModel,s=e.params.node,a=this.isExpandable();if(a){var l=!!this.showingValueForOpenedParent||s.expanded;this.comp.setExpandedDisplayed(l),this.comp.setContractedDisplayed(!l)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var u=i.isPivotMode(),p=u&&o.leafGroup,c=a&&!p,d=s.footer&&-1===s.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",c),this.comp.addOrRemoveCssClass("ag-row-group",c),u?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",p):d||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!c)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){this.params.suppressPadding||(this.addManagedListener(this.params.node,K.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,r=e.node,o=!!e.colDef,i=this.gridOptionsWrapper.isTreeData(),a=!o||i||!0===e.colDef.showRowGroup?r.uiLevel:0;e.padding>=0&&q(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-"+a,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var r=new No(function(){return e.params.value},this.params.node);this.createManagedBean(r,this.context),this.eGui.insertAdjacentElement("afterbegin",r.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e||!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,r=this.displayedGroupNode,o=this.isUserWantsSelected()&&!r.footer&&!r.rowPinned&&!r.detail;if(o){var i=new nl;this.getContext().createBean(i),i.init({rowNode:r,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(i.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(i)})}this.comp.setCheckboxVisible(o)},t.prototype.onKeyDown=function(e){e.key!==P.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)},t.prototype.onCellDblClicked=function(e){ot(e)||vo(this.eExpanded,e)||vo(this.eContracted,e)||this.onExpandOrContract(e)},pr([h("expressionService")],t.prototype,"expressionService",void 0),pr([h("valueFormatterService")],t.prototype,"valueFormatterService",void 0),pr([h("columnModel")],t.prototype,"columnModel",void 0),pr([h("userComponentFactory")],t.prototype,"userComponentFactory",void 0),pr([h("gridOptions")],t.prototype,"gridOptions",void 0),pr([h("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(F),cd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Nr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},al=function(n){function t(){return n.call(this,t.TEMPLATE)||this}return cd(t,n),t.prototype.init=function(e){var r=this,o={setInnerRenderer:function(l,u){return r.setRenderDetails(l,u)},setChildCount:function(l){return r.eChildCount.innerHTML=l},addOrRemoveCssClass:function(l,u){return r.addOrRemoveCssClass(l,u)}
vendor: 4,841 bytes, line 2
2,setContractedDisplayed:function(l){return se(r.eContracted,l)},setExpandedDisplayed:function(l){return se(r.eExpanded,l)},setCheckboxVisible:function(l){return r.eCheckbox.classList.toggle("ag-invisible",!l)}},i=this.createManagedBean(new pd),s=!e.colDef,a=this.getGui();i.init(o,a,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),s&&be(a,"gridcell")},t.prototype.setRenderDetails=function(e,r){var o=this;if(e){var i=e.newAgStackInstance();if(!i)return;i.then(function(s){if(s){var a=function(){return o.context.destroyBean(s)};o.isAlive()?(o.eValue.appendChild(s.getGui()),o.addDestroyFunc(a)):a()}})}else this.eValue.innerText=r},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),n.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<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>',Nr([T("eExpanded")],t.prototype,"eExpanded",void 0),Nr([T("eContracted")],t.prototype,"eContracted",void 0),Nr([T("eCheckbox")],t.prototype,"eCheckbox",void 0),Nr([T("eValue")],t.prototype,"eValue",void 0),Nr([T("eChildCount")],t.prototype,"eChildCount",void 0),t}(j),dd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ll=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},hd=function(n){function t(){return n.call(this,t.TEMPLATE)||this}return dd(t,n),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=he("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var r=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=r("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-loading">\n            <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n            <span class="ag-loading-text" ref="eLoadingText"></span>\n        </div>',ll([T("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),ll([T("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(j),fd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),gd=function(n){function t(){return n.call(this)||this}return fd(t,n),t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),i=r.replace("[LOADING...]",o("loadingOoo","Loading..."));this.setTemplate(i)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(j),vd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),yd=function(n){function t(){return n.call(this)||this}return vd(t,n),t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),i=r.replace("[NO_ROWS_TO_SHOW]",o("noRowsToShow","No Rows To Show"));this.setTemplate(i)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}
2(j),Cd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),md=function(n){function t(){return n.call(this,'<div class="ag-tooltip"></div>')||this}return Cd(t,n),t.prototype.init=function(e){var r=e.value;this.getGui().innerHTML=it(r)},t}(xr),wd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Rd=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:Tc,agColumnHeader:Nc,agColumnGroupHeader:Wc,agSortIndicator:Fn,agTextColumnFloatingFilter:xc,agNumberColumnFloatingFilter:Ic,agDateColumnFloatingFilter:Sc,agReadOnlyFloatingFilter:ac,agAnimateShowChangeCellRenderer:td,agAnimateSlideCellRenderer:id,agGroupCellRenderer:al,agGroupRowRenderer:al,agLoadingCellRenderer:hd,agCellEditor:Gn,agTextCellEditor:Gn,agSelectCellEditor:ol,agPopupTextCellEditor:Xc,agPopupSelectCellEditor:Kc,agLargeTextCellEditor:Uc,agTextColumnFilter:An,agNumberColumnFilter:el,agDateColumnFilter:Za,agLoadingOverlay:gd,agNoRowsOverlay:yd,agTooltipComponent:md},e.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},e.jsComps={},e.fwComps={},e}return wd(t,n),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&re(this.gridOptions.components,function(r,o){return e.registerJsComponent(r,o)}),null!=this.gridOptions.frameworkComponents&&re(this.gridOptions.frameworkComponents,function(r,o){return e.registerFwComponent(r,o)})},t.prototype.registerDefaultComponent=function(e,r){var o=this.translateIfDeprecated(e);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=r},t.prototype.registerJsComponent=function(e,r){var o=this.translateIfDeprecated(e);this.fwComps[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComps[o]=r},t.prototype.registerFwComponent=function(e,r){q(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 i=this.translateIfDeprecated(e);this.fwComps[i]=r},t.prototype.retrieve=function(e){var r=this.translateIfDeprecated(e),o=function(p,c){return{componentFromFramework:c,component:p}},i=this.getFrameworkOverrides().frameworkComponent(r,this.gridOptions.components);if(null!=i)return o(i,!0);var s=this.fwComps[r];if(s)return o(s,!0);var a=this.jsComps[r];if(a)return o(a,this.getFrameworkOverrides().isFrameworkComponent(a));var u=this.agGridDefaults[r];return u?o(u,!1):(Object.keys(this.agGridDefaults).indexOf(r)<0&&console.warn("AG Grid: Looking for component ["+r+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var r=this.agDeprecatedNames[e];return null!=r?(q(function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+r.propertyHolder+":"+e+" to "+r.propertyHolder+":"+r.newComponentName)},"DEPRECATE_COMPONENT_"+e),r.newComponentName):e},Wo([h("gridOptions")],t.prototype,"gridOptions",void 0),Wo([h("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Wo([I],t.prototype,"init",null),Wo([L("userComponentRegistry")],t)}(F),Ed={propertyName:"dateComponent",cellRenderer:!1},_d={propertyName:"headerComponent",cellRenderer:!1},Sd={propertyName:"headerGroupComponent",cellRenderer:!1},ul={propertyName:"cellRenderer",cellRenderer:!0},Od={propertyName:"cellEditor",cellRenderer:!1},pl={propertyName:"innerRenderer",cellRenderer:!0},Pd={propertyName:"loadingOverlayComponent",cellRenderer:!1},Td={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Dd={propertyName:"tooltipComponent",cellRenderer:!1},xn={propertyName:"filter",cellRenderer:!1},Ad={propertyName:"floatingFilterComponent",cellRenderer:!1},bd={propertyName:"toolPanel",cellRenderer:!1},Fd={propertyName:"statusPanel",cellRenderer:!1},Id={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Gd={propertyName:"loadingCellRenderer",cellRenderer:!0},xd={propertyName:"groupRowRenderer",cellRenderer:!0},Ld={propertyName:"detailCellRenderer",cellRenderer:!0},Md=function(){function n(){}return n.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},n.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},n}
vendor: 11,916 bytes, line 2
2(),Nd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),cr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Hd=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Nd(t,n),t.prototype.getHeaderCompDetails=function(e,r){return this.getCompDetails(e,_d,"agColumnHeader",r)},t.prototype.getHeaderGroupCompDetails=function(e){var r=e.columnGroup.getColGroupDef();return this.getCompDetails(r,Sd,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Id,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Gd,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,xd,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ld,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,r){return this.getCompDetails(e,pl,null,r)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,r){return this.getCompDetails(e,pl,null,r)},t.prototype.getCellRendererDetails=function(e,r){return this.getCompDetails(e,ul,null,r)},t.prototype.getCellEditorDetails=function(e,r){return this.getCompDetails(e,Od,"agCellEditor",r,!0)},t.prototype.getFilterDetails=function(e,r,o){return this.getCompDetails(e,xn,o,r,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ed,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Pd,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Td,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Dd,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,r){return this.getCompDetails(e,ul,null,r)},t.prototype.getFloatingFilterCompDetails=function(e,r,o){return this.getCompDetails(e,Ad,o,r)},t.prototype.getToolPanelCompDetails=function(e,r){return this.getCompDetails(e,bd,null,r,!0)},t.prototype.getStatusPanelCompDetails=function(e,r){return this.getCompDetails(e,Fd,null,r,!0)},t.prototype.getCompDetails=function(e,r,o,i,s){var a=this;void 0===s&&(s=!1);var l=r.propertyName,u=r.cellRenderer,p=this.getCompKeys(e,r,i),c=p.compName,d=p.jsComp,f=p.fwComp,v=p.paramsFromSelector,y=p.popupFromSelector,C=p.popupPositionFromSelector,R=function(x){var V=a.userComponentRegistry.retrieve(x);V&&(d=V.componentFromFramework?void 0:V.component,f=V.componentFromFramework?V.component:void 0)};if(null!=c&&R(c),null==d&&null==f&&null!=o&&R(o),d&&u&&!this.agComponentUtils.doesImplementIComponent(d)&&(d=this.agComponentUtils.adaptFunction(l,d)),d||f){var w=this.mergeParamsWithApplicationProvidedParams(e,r,i,v),A=null==d,b=d||f;return{componentFromFramework:A,componentClass:b,params:w,type:r,popupFromSelector:y,popupPositionFromSelector:C,newAgStackInstance:function(){return a.newAgStackInstance(b,A,w,r)}}}s&&console.error("Could not find component "+c+", did you forget to configure this component?")},t.prototype.getCompKeys=function(e,r,o){var a,l,u,p,c,d,i=this,s=r.propertyName;if(e){var f=e,v=f[s+"Selector"],y=v?v(o):null,C=function(w,A){var b=function(){var V="AG Grid: As of v27, the property "+s+"Framework is deprecated. The property "+s+" can now be used for JavaScript AND Framework Components.";q(function(){return console.warn(V)},"UserComponentFactory."+s+"FrameworkDeprecated")};"string"==typeof w?a=w:"string"==typeof A?(b(),a=A):null!=w&&!0!==w?i.getFrameworkOverrides().isFrameworkComponent(w)?u=w:l=w:null!=A&&(b(),u=A)};if(y){if(null!=y.frameworkComponent){var R="AG Grid: As of v27, the return for "+s+"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.";q(function(){return console.warn(R)},"UserComponentFactory."+s+"FrameworkSelectorDeprecated"),C(y.frameworkComponent,void 0)}else C(y.component,void 0);p=y.params,c=y.popup,d=y.popupPosition}else C(f[s],f[s+"Framework"])}return{compName:a,jsComp:l,fwComp:u,paramsFromSelector:p,popupFromSelector:c,popupPositionFromSelector:d}},t.prototype.newAgStackInstance=function(e,r,o,i){var l;if(r){var u=this.componentMetadataProvider.retrieve(i.propertyName);l=this.frameworkComponentWrapper.wrap(e,u.mandatoryMethodList,u.optionalMethodList,i)}else l=new e;var p=this.initComponent(l,o);return null==p?Ie.resolve(l):p.then(function(){return l})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,r,o,i){void 0===i&&(i=null);var s={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};Ve(s,o);var l=e&&e[r.propertyName+"Params"];return"function"==typeof l?Ve(s,l(o)):"object"==typeof l&&Ve(s,l),Ve(s,i),s},t.prototype.initComponent=function(e,r){if(this.context.createBean(e),null!=e.init)return e.init(r)},t.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var r=null,o=this.getCompKeys(e,xn),i=o.compName,s=o.jsComp,a=o.fwComp;return i?r=Md.getFloatingFilterType(i):null==s&&null==a&&!0===e.filter&&(r=k.isRegistered(W.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"),r},cr([h("gridOptions")],t.prototype,"gridOptions",void 0),cr([h("agComponentUtils")],t.prototype,"agComponentUtils",void 0),cr([h("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),cr([h("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),cr([J("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),cr([L("userComponentFactory")],t)}(F),Vo=function(n){return n[n.SINGLE_SHEET=0]="SINGLE_SHEET",n[n.MULTI_SHEET=1]="MULTI_SHEET",n}(Vo||{}),Wd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Hr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Vd=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return Wd(t,n),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 r=e.dragSource.eElement;r.removeEventListener("mousedown",e.mouseDownListener),e.touchEnabled&&r.removeEventListener("touchstart",e.touchStartListener,{passive:!0})},t.prototype.removeDragSource=function(e){var r=this.dragSources.find(function(o){return o.dragSource===e});r&&(this.removeListener(r),De(this.dragSources,r))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,r){var o=this;void 0===r&&(r=!1);var i=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",i);var s=null,a=this.gridOptionsWrapper.isSuppressTouch();r&&!a&&e.eElement.addEventListener("touchstart",s=function(l){Qi(l.target)||(l.cancelable&&l.preventDefault(),o.onTouchStart(e,l))},{passive:!1}),this.dragSources.push({dragSource:e,mouseDownListener:i,touchStartListener:s,touchEnabled:r})},t.prototype.onTouchStart=function(e,r){var o=this;this.currentDragParams=e,this.dragging=!1;var i=r.touches[0];this.touchLastTime=i,this.touchStart=i;var a=function(c){return o.onTouchUp(c,e.eElement)},u=r.target,p=[{target:document,type:"touchmove",listener:function(c){c.cancelable&&c.preventDefault()},options:{passive:!1}},{target:u,type:"touchmove",listener:function(c){return o.onTouchMove(c,e.eElement)},options:{passive:!0}},{target:u,type:"touchend",listener:a,options:{passive:!0}},{target:u,type:"touchcancel",listener:a,options:{passive:!0}}];this.addTemporaryEvents(p),0===e.dragStartPixels&&this.onCommonMove(i,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,r){var o=this,i=r;if(!(e.skipMouseEvent&&e.skipMouseEvent(r)||i._alreadyProcessedByDragService||(i._alreadyProcessedByDragService=!0,0!==r.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=r;var s=this.gridOptionsWrapper.getDocument();this.addTemporaryEvents([{target:s,type:"mousemove",listener:function(d){return o.onMouseMove(d,e.eElement)}},{target:s,type:"mouseup",listener:function(d){return o.onMouseUp(d,e.eElement)}},{target:s,type:"contextmenu",listener:function(d){return d.preventDefault()}}]),0===e.dragStartPixels&&this.onMouseMove(r,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(r){r.target.addEventListener(r.type,r.listener,r.options)}),this.dragEndFunctions.push(function(){e.forEach(function(r){r.target.removeEventListener(r.type,r.listener,r.options)})})},t.prototype.isEventNearStartEvent=function(e,r){var o=this.currentDragParams.dragStartPixels;return Cn(e,r,O(o)?o:4)},t.prototype.getFirstActiveTouch=function(e){for(var r=0;r<e.length;r++)if(e[r].identifier===this.touchStart.identifier)return e[r];return null},t.prototype.onCommonMove=function(e,r,o){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,r))return;this.dragging=!0,this.eventService.dispatchEvent({type:g.EVENT_DRAG_STARTED,target:o}),this.currentDragParams.onDragStart(r),this.currentDragParams.onDragging(r)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,r){var o=this.getFirstActiveTouch(e.touches);o&&this.onCommonMove(o,this.touchStart,r)},t.prototype.onMouseMove=function(e,r){(this.gridOptionsWrapper.isEnableCellTextSelect()||Nt())&&"mousemove"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,r)},t.prototype.isOverFormFieldElement=function(e){var r,o;return!(null===(o=null===(r=e.target)||void 0===r?void 0:r.tagName.toLocaleLowerCase())||void 0===o||!o.match("^a$|textarea|input|select|button"))},t.prototype.onTouchUp=function(e,r){var o=this.getFirstActiveTouch(e.changedTouches);o||(o=this.touchLastTime),this.onUpCommon(o,r)},t.prototype.onMouseUp=function(e,r){this.onUpCommon(e,r)},t.prototype.onUpCommon=function(e,r){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventService.dispatchEvent({type:g.EVENT_DRAG_STOPPED,target:r})),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(i){return i()}),this.dragEndFunctions.length=0},Hr([h("loggerFactory")],t.prototype,"loggerFactory",void 0),Hr([h("mouseEventService")],t.prototype,"mouseEventService",void 0),Hr([I],t.prototype,"init",null),Hr([Ee],t.prototype,"removeAllListeners",null),Hr([L("dragService")],t)}
2(F),Bd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Bo=function(){return Bo=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Bo.apply(this,arguments)},Ft=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},kd=function(n){function t(){var r=null!==n&&n.apply(this,arguments)||this;return r.allColumnFilters=new Map,r.activeAggregateFilters=[],r.activeColumnFilters=[],r.quickFilter=null,r.quickFilterParts=null,r.processingFilterChange=!1,r}var e;return Bd(t,n),e=t,t.prototype.init=function(){var r=this;this.addManagedListener(this.eventService,g.EVENT_GRID_COLUMNS_CHANGED,function(){return r.onColumnsChanged()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VALUE_CHANGED,function(){return r.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_CHANGED,function(){return r.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return r.refreshFiltersForAggregations()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},t.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},t.prototype.setFilterModel=function(r){var o=this,i=[],s=this.getFilterModel();if(r){var a=mn(Object.keys(r));this.allColumnFilters.forEach(function(l,u){i.push(o.setModelOnFilterWrapper(l.filterPromise,r[u])),a.delete(u)}),a.forEach(function(l){var u=o.columnModel.getPrimaryColumn(l)||o.columnModel.getGridColumn(l);if(u)if(u.isFilterAllowed()){var p=o.getOrCreateFilterWrapper(u,"NO_UI");p?i.push(o.setModelOnFilterWrapper(p.filterPromise,r[l])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+l)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+l);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+l)})}else this.allColumnFilters.forEach(function(l){i.push(o.setModelOnFilterWrapper(l.filterPromise,null))});Ie.all(i).then(function(){var l=o.getFilterModel(),u=[];o.allColumnFilters.forEach(function(p,c){H.jsonEquals(s?s[c]:null,l?l[c]:null)||u.push(p.column)}),u.length>0&&o.onFilterChanged({columns:u})})},t.prototype.setModelOnFilterWrapper=function(r,o){return new Ie(function(i){r.then(function(s){"function"!=typeof s.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),i()),(s.setModel(o)||Ie.resolve()).then(function(){return i()})})})},t.prototype.getFilterModel=function(){var r={};return this.allColumnFilters.forEach(function(o,i){var a=o.filterPromise.resolveNow(null,function(u){return u});if(null==a)return null;if("function"==typeof a.getModel){var l=a.getModel();O(l)&&(r[i]=l)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")}),r},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.doAggregateFiltersPass=function(r,o){return this.doColumnFiltersPass(r,o,!0)},t.prototype.updateActiveFilters=function(){var r=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var o=function(a){return!!a&&(a.isFilterActive?a.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},i=!!this.gridOptionsWrapper.getGroupAggFiltering();
2this.allColumnFilters.forEach(function(a){if(a.filterPromise.resolveNow(!1,o)){var l=a.filterPromise.resolveNow(null,function(u){return u});!function(a){if(!a.isPrimary())return!0;var u=!r.columnModel.isPivotActive();return!(!a.isValueActive()||!u)&&(!!r.columnModel.isPivotMode()||i)}(a.column)?r.activeColumnFilters.push(l):r.activeAggregateFilters.push(l)}})},t.prototype.updateFilterFlagInColumns=function(r,o){this.allColumnFilters.forEach(function(i){var s=i.filterPromise.resolveNow(!1,function(a){return a.isFilterActive()});i.column.setFilterActive(s,r,o)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},t.prototype.doColumnFiltersPass=function(r,o,i){for(var l=i?this.activeAggregateFilters:this.activeColumnFilters,u=i?r.aggData:r.data,p=0;p<l.length;p++){var c=l[p];if(null!=c&&c!==o){if("function"!=typeof c.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!c.doesFilterPass({node:r,data:u}))return!1}}return!0},t.prototype.parseQuickFilter=function(r){return O(r)?this.gridOptionsWrapper.isRowModelDefault()?r.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},t.prototype.setQuickFilter=function(r){if(null==r||"string"==typeof r){var o=this.parseQuickFilter(r);this.quickFilter!==o&&(this.quickFilter=o,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof r)},t.prototype.refreshFiltersForAggregations=function(){this.gridOptionsWrapper.getGroupAggFiltering()&&this.onFilterChanged()},t.prototype.callOnFilterChangedOutsideRenderCycle=function(r){var o=this;void 0===r&&(r={});var i=function(){return o.onFilterChanged(r)};this.rowRenderer.isRefreshInProgress()?setTimeout(i,0):i()},t.prototype.onFilterChanged=function(r){void 0===r&&(r={});var o=r.filterInstance,i=r.additionalEventAttributes,s=r.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",i),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent(),this.allColumnFilters.forEach(function(l){l.filterPromise&&l.filterPromise.then(function(u){u&&u!==o&&u.onAnyFilterChanged&&u.onAnyFilterChanged()})});var a={type:g.EVENT_FILTER_CHANGED,columns:s||[]};i&&Ve(a,i),this.processingFilterChange=!0,this.eventService.dispatchEvent(a),this.processingFilterChange=!1},t.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},t.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},t.prototype.doesRowPassOtherFilters=function(r,o){return this.doesRowPassFilter({rowNode:o,filterInstanceToSkip:r})},t.prototype.doesRowPassQuickFilterNoCache=function(r,o){var i=this;return this.columnModel.getAllColumnsForQuickFilter().some(function(a){var l=i.getQuickFilterTextForColumn(a,r);return O(l)&&l.indexOf(o)>=0})},t.prototype.doesRowPassQuickFilterCache=function(r,o){return r.quickFilterAggregateText||this.aggregateRowForQuickFilter(r),r.quickFilterAggregateText.indexOf(o)>=0},t.prototype.doesRowPassQuickFilter=function(r){var o=this,i=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every(function(s){return i?o.doesRowPassQuickFilterCache(r,s):o.doesRowPassQuickFilterNoCache(r,s)})},t.prototype.doesRowPassAggregateFilters=function(r){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(r.rowNode,r.filterInstanceToSkip))},t.prototype.doesRowPassFilter=function(r){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(r.rowNode)||this.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(r.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(r.rowNode,r.filterInstanceToSkip))},t.prototype.getQuickFilterTextForColumn=function(r,o){var i=this.valueService.getValue(r,o,!0),s=r.getColDef();if(s.getQuickFilterText){var a={value:i,node:o,data:o.data,column:r,colDef:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};i=s.getQuickFilterText(a)}return O(i)?i.toString().toUpperCase():null},t.prototype.aggregateRowForQuickFilter=function(r){var o=this,i=[];
2this.columnModel.getAllColumnsForQuickFilter().forEach(function(a){var l=o.getQuickFilterTextForColumn(a,r);O(l)&&i.push(l)}),r.quickFilterAggregateText=i.join(e.QUICK_FILTER_SEPARATOR)},t.prototype.onNewRowsLoaded=function(r){this.allColumnFilters.forEach(function(o){o.filterPromise.then(function(i){i.onNewRowsLoaded&&i.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(r),this.updateActiveFilters()},t.prototype.createValueGetter=function(r){var o=this;return function(i){return o.valueService.getValue(r,i.node,!0)}},t.prototype.getFilterComponent=function(r,o,i){var s;if(void 0===i&&(i=!0),i)return(null===(s=this.getOrCreateFilterWrapper(r,o))||void 0===s?void 0:s.filterPromise)||null;var a=this.cachedFilter(r);return a?a.filterPromise:null},t.prototype.isFilterActive=function(r){var o=this.cachedFilter(r);return!!o&&o.filterPromise.resolveNow(!1,function(i){return i.isFilterActive()})},t.prototype.getOrCreateFilterWrapper=function(r,o){if(!r.isFilterAllowed())return null;var i=this.cachedFilter(r);return i?"NO_UI"!==o&&this.putIntoGui(i,o):(i=this.createFilterWrapper(r,o),this.allColumnFilters.set(r.getColId(),i)),i},t.prototype.cachedFilter=function(r){return this.allColumnFilters.get(r.getColId())},t.prototype.createFilterInstance=function(r){var a,o=this,i=k.isRegistered(W.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",s=r.getColDef(),l=Bo(Bo({},this.createFilterParams(r,s)),{filterModifiedCallback:function(){o.eventService.dispatchEvent({type:g.EVENT_FILTER_MODIFIED,column:r,filterInstance:a})},filterChangedCallback:function(c){o.callOnFilterChangedOutsideRenderCycle({filterInstance:a,additionalEventAttributes:c,columns:[r]})},doesRowPassOtherFilter:function(c){return o.doesRowPassOtherFilters(a,c)}}),u=this.userComponentFactory.getFilterDetails(s,l,i);if(!u)return null;var p=u.newAgStackInstance();return p&&p.then(function(c){return a=c}),p},t.prototype.createFilterParams=function(r,o){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:r,colDef:ao(o),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(r),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},t.prototype.createFilterWrapper=function(r,o){var i={column:r,filterPromise:null,compiledElement:null,guiPromise:Ie.resolve(null)};return i.filterPromise=this.createFilterInstance(r),i.filterPromise&&this.putIntoGui(i,o),i},t.prototype.putIntoGui=function(r,o){var i=this,s=document.createElement("div");s.className="ag-filter",r.guiPromise=new Ie(function(a){r.filterPromise.then(function(l){var u=l.getGui();O(u)||console.warn("AG Grid: getGui method from filter returned "+u+", it should be a DOM element or an HTML template string."),"string"==typeof u&&(u=me(u)),s.appendChild(u),a(s),i.eventService.dispatchEvent({type:g.EVENT_FILTER_OPENED,column:r.column,source:o,eGui:s})})})},t.prototype.onColumnsChanged=function(){var r=this,o=[];this.allColumnFilters.forEach(function(i,s){!(i.column.isPrimary()?r.columnModel.getPrimaryColumn(s):r.columnModel.getGridColumn(s))&&(o.push(i.column),r.disposeFilterWrapper(i,"filterDestroyed"))}),o.length>0&&this.onFilterChanged({columns:o})},t.prototype.destroyFilter=function(r,o){void 0===o&&(o="api");var i=this.allColumnFilters.get(r.getColId());i&&(this.disposeFilterWrapper(i,o),this.onFilterChanged({columns:[r]}))},t.prototype.disposeFilterWrapper=function(r,o){var i=this;r.filterPromise.then(function(s){(s.setModel(null)||Ie.resolve()).then(function(){i.getContext().destroyBean(s),r.column.setFilterActive(!1,o),i.allColumnFilters.delete(r.column.getColId())})})},t.prototype.destroy=function(){var r=this;n.prototype.destroy.call(this),this.allColumnFilters.forEach(function(o){return r.disposeFilterWrapper(o,"filterDestroyed")})},t.QUICK_FILTER_SEPARATOR="\n",Ft([h("valueService")],t.prototype,"valueService",void 0),Ft([h("columnModel")],t.prototype,"columnModel",void 0),Ft([h("rowModel")],t.prototype,"rowModel",void 0),Ft([h("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ft([h("rowRenderer")],t.prototype,"rowRenderer",void 0),Ft([I],t.prototype,"init",null),Ft([Ee],t.prototype,"destroy",null),e=Ft([L("filterManager")],t)}
2(F),Ud=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ln=function(n){function t(e,r){var o=n.call(this,e)||this;return o.ctrl=r,o}return Ud(t,n),t.prototype.getCtrl=function(){return this.ctrl},t}(j),jd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ko=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},zd=function(n){function t(e){return n.call(this,t.TEMPLATE,e)||this}return jd(t,n),t.prototype.postConstruct=function(){var e=this,r=this.getGui();this.ctrl.setComp({addOrRemoveCssClass:function(i,s){return e.addOrRemoveCssClass(i,s)},addOrRemoveBodyCssClass:function(i,s){return e.eFloatingFilterBody.classList.toggle(i,s)},addOrRemoveButtonWrapperCssClass:function(i,s){return e.eButtonWrapper.classList.toggle(i,s)},setCompDetails:function(i){return e.setCompDetails(i)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(i){return r.style.width=i},setMenuIcon:function(i){return e.eButtonShowMainFilter.appendChild(i)}},r,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var r=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(o){return r.afterCompCreated(o)})},t.prototype.afterCompCreated=function(e){var r=this;e&&(this.addDestroyFunc(function(){return r.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>',ko([T("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),ko([T("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),ko([T("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),ko([I],t.prototype,"postConstruct",null),t}(Ln),Kd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),cl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ve=function(n){return n.AUTO_HEIGHT="ag-layout-auto-height",n.NORMAL="ag-layout-normal",n.PRINT="ag-layout-print",n}(ve||{}),Mn=function(n){function t(e){var r=n.call(this)||this;return r.view=e,r}return Kd(t,n),t.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,G.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),r={autoHeight:e===m.DOM_LAYOUT_AUTO_HEIGHT,normal:e===m.DOM_LAYOUT_NORMAL,print:e===m.DOM_LAYOUT_PRINT};this.view.updateLayoutClasses(r.autoHeight?ve.AUTO_HEIGHT:r.print?ve.PRINT:ve.NORMAL,r)},cl([h("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),cl([I],t.prototype,"postConstruct",null),t}
2(F),$d=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),It=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Yd=function(n){function t(e){var r=n.call(this)||this;return r.scrollLeft=-1,r.nextScrollTop=-1,r.scrollTop=-1,r.eBodyViewport=e,r.resetLastHorizontalScrollElementDebounced=Rt(r.resetLastHorizontalScrollElement.bind(r),500),r}return $d(t,n),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(r){e.centerRowContainerCtrl=r.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var r=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?Rt(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",r)},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 o=this.enableRtl?e:-e,i=this.ctrlsService.getTopCenterRowContainerCtrl(),s=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),a=this.ctrlsService.getBottomCenterRowContainerCtrl(),l=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(o),a.setContainerTranslateX(o),i.setContainerTranslateX(o),s.setContainerTranslateX(o);var p=this.centerRowContainerCtrl.getViewportElement();Po(this.lastHorizontalScrollElement===p?l.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 r=this.centerRowContainerCtrl.getViewportElement();this.shouldBlockScrollUpdate("horizontal",r.scrollLeft,!0)||(this.doHorizontalScroll(Math.round(Pr(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 o=Pr(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===e&&e===o||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloating
vendor: 12,758 bytes, line 2
2Center(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var r=this,o={type:g.EVENT_BODY_SCROLL,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var i=Object.assign({},o,{type:g.EVENT_BODY_SCROLL_END});r.eventService.dispatchEvent(i)},100)},t.prototype.shouldBlockScrollUpdate=function(e,r,o){if(void 0===o&&(o=!1),o&&!St())return!1;if("vertical"===e){var i=Sr(this.eBodyViewport);if(r<0||r+i>this.eBodyViewport.scrollHeight)return!0}if("horizontal"===e){var a=this.centerRowContainerCtrl.getCenterWidth(),l=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Or()){if(r>0)return!0}else if(r<0)return!0;if(Math.abs(r)+a>l)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 o=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&Or()?e>0?0:o:Math.min(Math.max(e,0),o)),Po(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 r=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(r+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-r},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,r){void 0===r&&(r=null);for(var o=this.rowModel.getRowCount(),i=-1,s=0;s<o;s++){var a=this.rowModel.getRow(s);if("function"==typeof e){if(a&&e(a)){i=s;break}}else if(e===a||e===a.data){i=s;break}}i>=0&&this.ensureIndexVisible(i,r)},t.prototype.ensureIndexVisible=function(e,r){if(this.gridOptionsWrapper.getDomLayout()!==m.DOM_LAYOUT_PRINT){var o=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=o)return void console.warn("invalid row index for ensureIndexVisible: "+e);this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var p,l=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),u=this.paginationProxy.getRow(e);do{var c=u.rowTop,d=u.rowHeight,f=this.paginationProxy.getPixelOffset(),v=u.rowTop-f,y=v+u.rowHeight,C=this.getVScrollPosition(),R=this.heightScaler.getDivStretchOffset(),w=C.top+R,A=C.bottom+R,b=A-w,x=this.heightScaler.getScrollPositionForPixel(v),V=this.heightScaler.getScrollPositionForPixel(y-b),U=Math.min((x+V)/2,v),$=null;"top"===r?$=x:"bottom"===r?$=V:"middle"===r?$=U:w+l>v?$=x-l:A<y&&($=V),null!==$&&(this.eBodyViewport.scrollTop=$,this.rowRenderer.redrawAfterScroll()),p=c!==u.rowTop||d!==u.rowHeight}while(p);this.animationFrameService.flushAllFrames()}},t.prototype.ensureColumnVisible=function(e,r){void 0===r&&(r="auto");var o=this.columnModel.getGridColumn(e);if(o&&!o.isPinned()&&this.columnModel.isColumnDisplayed(o)){var i=this.getPositionedHorizontalScroll(o,r);null!==i&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(i),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,r){var o=this.isColumnOutsideViewport(e),i=o.columnBeforeStart,s=o.columnAfterEnd,a=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),l=this.centerRowContainerCtrl.getCenterWidth(),u=this.enableRtl,p=(u?i:s)||a,c=u?s:i;"auto"!==r&&(p="start"===r,c="end"===r);var d="middle"===r;if(p||c||d){var f=this.getColumnBounds(e),v=f.colLeft,C=f.colRight;return d?f.colMiddle-l/2:p?u?C:v:u?v-l:C-l}return null},t.prototype.isColumnOutsideViewport=function(e){var r=this.getViewportBounds(),o=r.start,i=r.end,s=this.getColumnBounds(e),a=s.colLeft,l=s.colRight,u=this.enableRtl;return{columnBeforeStart:u?o>l:i<l,columnAfterEnd:u?i<a:o>a}},t.prototype.getColumnBounds=function(e){var r=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),i=e.getActualWidth(),s=e.getLeft(),a=r?-1:1,l=r?o-s:s;return{colLeft:l,colMiddle:l+i/2*a,colRight:l+i*a}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),r=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:r,end:e+r,width:e}},It([h("ctrlsService")],t.prototype,"ctrlsService",void 0),It([h("animationFrameService")],t.prototype,"animationFrameService",void 0),It([h("paginationProxy")],t.prototype,"paginationProxy",void 0),It([h("rowModel")],t.prototype,"rowModel",void 0),It([h("rowContainerHeightService")],t.prototype,"heightScaler",void 0),It([h("rowRenderer")],t.prototype,"rowRenderer",void 0),It([h("columnModel")],t.prototype,"columnModel",void 0),It([I],t.prototype,"postConstruct",null),t}(F),qd=function(){function n(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=-1!==t.scrollAxis.indexOf("x"),this.scrollVertically=-1!==t.scrollAxis.indexOf("y"),this.scrollByTick=null!=t.scrollByTick?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return n.prototype.check=function(t,e){void 0===e&&(e=!1);var r=e||this.shouldSkipVerticalScroll();if(!r||!this.shouldSkipHorizontalScroll()){var o=this.scrollContainer.getBoundingClientRect(),i=this.scrollByTick;this.tickLeft=t.clientX<o.left+i,this.tickRight=t.clientX>o.right-i,this.tickUp=t.clientY<o.top+i&&!r,this.tickDown=t.clientY>o.bottom-i&&!r,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},n.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},n.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var r=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(r-t),this.tickRight&&this.setHorizontalPosition(r+t)}this.onScrollCallback&&this.onScrollCallback()},n.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},n}(),Xd=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Nn=function(){return Nn=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Nn.apply(this,arguments)},Xe=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Qd=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Jd=function(n){function t(e){var r=n.call(this)||this;return r.isMultiRowDrag=!1,r.isGridSorted=!1,r.isGridFiltered=!1,r.isRowGroupActive=!1,r.eContainer=e,r}return Xd(t,n),t.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var r=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_MODEL_UPDATED,function(){r()}),r(),this.ctrlsService.whenReady(function(){var o=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new qd({scrollContainer:o.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return o.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(i){return o.getScrollFeature().setVerticalScrollPosition(i)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})})},t.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!ae(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===Me.RowDrag},t.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?Se.ICON_NOT_ALLOWED:Se.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){var r=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var o=this.gridOptionsWrapper.isRowDragMultiRow(),i=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Qd(arguments[t]));return n}(this.selectionService.getSelectedNodes()).sort(function(a,l){return null==a.rowIndex||null==l.rowIndex?0:r.getRowIndexNumber(a)-r.getRowIndexNumber(l)}),s=e.dragItem.rowNode;return o&&-1!==i.indexOf(s)?(this.isMultiRowDrag=!0,i):(this.isMultiRowDrag=!1,[s])},t.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(g.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach(function(r){r.setDragging(!0)}),this.onEnterOrDragging(e)},t.prototype.onDragging=function(e){this.onEnterOrDragging(e)},t.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsWrapper.getDomDataKey()},t.prototype.isDropZoneWithinThisGrid=function(e){return!this.ctrlsService.getGridBodyCtrl().getGui().contains(e.dropZoneTarget)},t.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(g.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var r=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,r),this.autoScrollService.check(e.event)},t.prototype.doManagedDrag=function(e,r){var o=this.isFromThisGrid(e),i=this.gridOptionsWrapper.isRowDragManaged(),s=e.dragItem.rowNodes;i&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!o?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(s[0],r):this.moveRows(s,r))},t.prototype.getRowIndexNumber=function(e){return parseInt(ie(e.getRowIndexString().split("-")),10)},t.prototype.moveRowAndClearHighlight=function(e){var r=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),i=o&&o.highlighted===At.Below,s=this.mouseEventService.getNormalisedPosition(e).y,a=e.dragItem.rowNodes,l=i?1:0;
2if(this.isFromThisGrid(e))a.forEach(function(c){c.rowTop<s&&(l-=1)}),this.moveRows(a,s,l);else{var u=this.gridOptionsWrapper.getRowIdFunc(),p=this.clientSideRowModel.getRowIndexAtPixel(s)+1;this.clientSideRowModel.getHighlightPosition(s)===At.Above&&p--,this.clientSideRowModel.updateRowData({add:a.map(function(c){return c.data}).filter(function(c){return!r.clientSideRowModel.getRowNode(u?u({data:c,level:0}):c.id)}),addIndex:p})}this.clearRowHighlight()},t.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},t.prototype.moveRows=function(e,r,o){void 0===o&&(o=0),this.clientSideRowModel.ensureRowsAtPixel(e,r,o)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},t.prototype.addRowDropZone=function(e){var r=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(i){e.onDragEnter(r.draggingToRowDragEvent(g.EVENT_ROW_DRAG_ENTER,i))}),e.onDragLeave&&(o.onDragLeave=function(i){e.onDragLeave(r.draggingToRowDragEvent(g.EVENT_ROW_DRAG_LEAVE,i))}),e.onDragging&&(o.onDragging=function(i){e.onDragging(r.draggingToRowDragEvent(g.EVENT_ROW_DRAG_MOVE,i))}),e.onDragStop&&(o.onDragStop=function(i){e.onDragStop(r.draggingToRowDragEvent(g.EVENT_ROW_DRAG_END,i))})),this.dragAndDropService.addDropTarget(Nn({isInterestedIn:function(i){return i===Me.RowDrag},getIconName:function(){return Se.ICON_MOVE},external:!0},o))}else q(function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")},"add-drop-zone-empty-target")},t.prototype.getRowDropZone=function(e){var r=this,o=this.getContainer.bind(this),i=this.onDragEnter.bind(this),s=this.onDragLeave.bind(this),a=this.onDragging.bind(this),l=this.onDragStop.bind(this);return e?{getContainer:o,onDragEnter:e.onDragEnter?function(u){i(u),e.onDragEnter(r.draggingToRowDragEvent(g.EVENT_ROW_DRAG_ENTER,u))}:i,onDragLeave:e.onDragLeave?function(u){s(u),e.onDragLeave(r.draggingToRowDragEvent(g.EVENT_ROW_DRAG_LEAVE,u))}:s,onDragging:e.onDragging?function(u){a(u),e.onDragging(r.draggingToRowDragEvent(g.EVENT_ROW_DRAG_MOVE,u))}:a,onDragStop:e.onDragStop?function(u){l(u),e.onDragStop(r.draggingToRowDragEvent(g.EVENT_ROW_DRAG_END,u))}:l,fromGrid:!0}:{getContainer:o,onDragEnter:i,onDragLeave:s,onDragging:a,onDragStop:l,fromGrid:!0}},t.prototype.draggingToRowDragEvent=function(e,r){var a,l,o=this.mouseEventService.getNormalisedPosition(r).y,s=-1;switch(o>this.paginationProxy.getCurrentPageHeight()||(s=this.rowModel.getRowIndexAtPixel(o),a=this.rowModel.getRow(s)),r.vDirection){case Lr.Down:l="down";break;case Lr.Up:l="up";break;default:l=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),event:r.event,node:r.dragItem.rowNode,nodes:r.dragItem.rowNodes,overIndex:s,overNode:a,y:o,vDirection:l}},t.prototype.dispatchGridEvent=function(e,r){var o=this.draggingToRowDragEvent(e,r);this.eventService.dispatchEvent(o)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(g.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(g.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(r){r.setDragging(!1)})},Xe([h("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Xe([h("rowModel")],t.prototype,"rowModel",void 0),Xe([h("paginationProxy")],t.prototype,"paginationProxy",void 0),Xe([h("columnModel")],t.prototype,"columnModel",void 0),Xe([h("focusService")],t.prototype,"focusService",void 0),Xe([h("sortController")],t.prototype,"sortController",void 0),Xe([h("filterManager")],t.prototype,"filterManager",void 0),Xe([h("selectionService")],t.prototype,"selectionService",void 0),Xe([h("mouseEventService")],t.prototype,"mouseEventService",void 0),Xe([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Xe([J("rangeService")],t.prototype,"rangeService",void 0),Xe([I],t.prototype,"postConstruct",null),t}
2(F),eh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qe=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Wr=function(n){return n.ANIMATION_ON="ag-row-animation",n.ANIMATION_OFF="ag-row-no-animation",n}(Wr||{}),dl="ag-selectable",hl="ag-force-vertical-scroll",fl="ag-column-moving",th=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return eh(t,n),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,r,o,i,s,a){this.comp=e,this.eGridBody=r,this.eBodyViewport=o,this.eTop=i,this.eBottom=s,this.eStickyTop=a,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new Mn(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Yd(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,o,s,a]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,g.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var r=this;e.forEach(function(o){r.addManagedListener(o,"focusin",function(i){var a=Wt(i.target,"ag-root",o);o.classList.toggle("ag-has-focus",!a)}),r.addManagedListener(o,"focusout",function(i){var s=i.target,a=i.relatedTarget,l=o.contains(a),u=Wt(a,"ag-root",o);Wt(s,"ag-root",o)||(!l||u)&&o.classList.remove("ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?fl:null,e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),this.comp.setCellSelectableCss(e?dl:null,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e)},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var r=function(i){var s=i.relatedTarget;if(null!==wo(s)){var a=o.some(function(u){return u.contains(s)})&&e.mouseEventService.isElementInThisGrid(s);if(!a){var l=e.popupService;a=l.getActivePopups().some(function(u){return u.contains(s)})||l.isElementWithinCustomPopup(s)}a||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach(function(i){return e.addManagedListener(i,"focusout",r)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),r=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1;this.comp.setRowCount(-1===r?-1:e+r)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){this.comp.setPinnedTopBottomOverflowY(e?"scroll":"hidden")},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),r=e?hl:null,o=this.gridOptionsWrapper.getDomLayout()===m.DOM_LAYOUT_NORMAL;return this.comp.setAlwaysVerticalScrollClass(r,e),e||o&&va(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,r=function(){var o=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching();e.comp.setRowAnimationCssOnBodyViewport(o?Wr.ANIMATION_ON:Wr.ANIMATION_OFF,o)};r(),this.addManagedListener(this.eventService,g.EVENT_HEIGHT_SCALE_CHANGED,r)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this,r=function(o,i,s){if(o||s){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&(o||s).preventDefault();var l=(o||i).target;(l===e.eBodyViewport||l===e.ctrlsService.getCenterRowContainerCtrl().getViewportElement())&&e.contextMenuFactory&&(o?e.contextMenuFactory.onContextMenu(o,null,null,null,null,e.eGridBody):s&&e.contextMenuFactory.onContextMenu(null,s,null,null,null,e.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",r),this.mockContextMenuForIPad(r),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},t.prototype.mockContextMenuForIPad=function(e){if(St()){var r=new je(this.eBodyViewport);this.addManagedListener(r,je.EVENT_LONG_TAP,function(i){e(void 0,i.touchStart,i.touchEvent)}),this.addDestroyFunc(function(){return r.destroy()})}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var r=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(r+e),this.eBodyViewport.scrollTop-r},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Jd(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,r=e.getPinnedTopTotalHeight();r&&(r+=1);var o=e.getPinnedBottomTotalHeight();o&&(o+=1),this.comp.setTopHeight(r),this.comp.setBottomHeight(o),this.comp.setTopDisplay(r?"inherit":"none"),this.comp.setBottomDisplay(o?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(e){var r=this.gridOptionsWrapper.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+r+"px)")}else this.comp.setStickyTopWidth("100%")}
2,t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var r=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),o=this.pinnedRowModel.getPinnedTopTotalHeight(),i=0;r>0&&(i+=r+1),o>0&&(i+=o+1),this.comp.setStickyTopTop(i+"px")},t.prototype.sizeColumnsToFit=function(e,r){var o=this,s=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,l=So(this.eBodyViewport)-s;l>0?this.columnModel.sizeColumnsToFit(l,"sizeColumnsToFit",!1,e):void 0===r?window.setTimeout(function(){o.sizeColumnsToFit(e,100)},0):100===r?window.setTimeout(function(){o.sizeColumnsToFit(e,500)},100):500===r?window.setTimeout(function(){o.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Qe([h("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Qe([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Qe([h("columnModel")],t.prototype,"columnModel",void 0),Qe([h("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Qe([J("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Qe([h("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Qe([h("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Qe([h("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Qe([h("rowRenderer")],t.prototype,"rowRenderer",void 0),Qe([h("popupService")],t.prototype,"popupService",void 0),Qe([h("mouseEventService")],t.prototype,"mouseEventService",void 0),Qe([h("rowModel")],t.prototype,"rowModel",void 0),t}(F),Hn=function(n){return n[n.FILL=0]="FILL",n[n.RANGE=1]="RANGE",n}(Hn||{}),Vr=function(n){return n[n.VALUE=0]="VALUE",n[n.DIMENSION=1]="DIMENSION",n}(Vr||{}),Br="ag-cell-range-selected",ph=function(){function n(t,e){this.beans=t,this.cellCtrl=e}return n.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},n.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Br,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(Br+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(Br+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(Br+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(Br+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),lr(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},n.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),o=!e&&t.right,i=!e&&t.bottom,s=!e&&t.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",!e&&t.top),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",i),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",s)},n.prototype.isSingleCell=function(){var t=this.beans.rangeService;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},n.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every(function(r){return Be([Vr.DIMENSION,Vr.VALUE],r.type)})},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.getRangeBorders=function(){var c,d,t=this,e=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,o=!1,i=!1,s=!1,a=this.cellCtrl.getCellPosition().column,l=this.beans,u=l.rangeService,p=l.columnModel;e?(c=p.getDisplayedColAfter(a),d=p.getDisplayedColBefore(a)):(c=p.getDisplayedColBefore(a),d=p.getDisplayedColAfter(a));var f=u.getCellRanges().filter(function(w){return u.isCellInSpecificRange(t.cellCtrl.getCellPosition(),w)});c||(s=!0),d||(o=!0);for(var v=0;v<f.length&&!(r&&o&&i&&s);v++){var y=f[v],C=u.getRangeStartRow(y),R=u.getRangeEndRow(y);!r&&this.beans.rowPositionUtils.sameRow(C,this.cellCtrl.getCellPosition())&&(r=!0),!i&&this.beans.rowPositionUtils.sameRow(R,this.cellCtrl.getCellPosition())&&(i=!0),!s&&c&&y.columns.indexOf(c)<0&&(s=!0),!o&&d&&y.columns.indexOf(d)<0&&(o=!0)}return{top:r,right:o,bottom:i,left:s}},n.prototype.refreshHandle=function(){if(this.beans.rangeService){var t=this.shouldHaveSelectionHandle();this.selectionHandle&&!t&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),t&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},n.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,e=t.gridOptionsWrapper,r=t.rangeService,o=r.getCellRanges(),i=o.length;if(this.rangeCount<1||i<1)return!1;var s=ie(o),a=this.cellCtrl.getCellPosition(),l=e.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),u=e.isEnableRangeHandle(),p=1===i&&!this.cellCtrl.isEditing()&&(l||u);if(this.hasChartRange){var d=o[0].type===Vr.DIMENSION&&r.isCellInSpecificRange(a,o[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",d),p=s.t
2ype===Vr.VALUE}return p&&null!=s.endRow&&r.isContiguousRange(s)&&r.isBottomRightCell(s,a)},n.prototype.addSelectionHandle=function(){var t=this.beans,e=t.gridOptionsWrapper,o=ie(t.rangeService.getCellRanges()).type,s=e.isEnableFillHandle()&&M(o)?Hn.FILL:Hn.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==s&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(s)),this.selectionHandle.refresh(this.cellCtrl)},n.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},n}(),ch=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),dh=function(n){function t(e,r){var o=n.call(this)||this;return o.cellCtrl=e,o.beans=r,o.column=e.getColumn(),o.rowNode=e.getRowNode(),o.setupColSpan(),o.setupRowSpan(),o}return ch(t,n),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();_t(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,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,g.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,r){return e+r.getActualWidth()},0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),r=[];if(1===e)r.push(this.column);else for(var o=this.column,i=this.column.getPinned(),s=0;o&&s<e&&(r.push(o),(o=this.beans.columnModel.getDisplayedColAfter(o))&&!M(o)&&i===o.getPinned());s++);return r},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?ie(this.colsSpanning):this.column).getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===m.PINNED_LEFT)return e;var r=this.beans.columnModel.getDisplayedColumnsLeftWidth();return this.column.getPinned()===m.PINNED_RIGHT?r+this.beans.columnModel.getBodyContainerWidth()+(e||0):r+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsWrapper.getRowHeightAsNumber();this.eGui.style.height=e*this.rowSpan+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(F),hh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),fh=function(n){function t(e,r){var o=n.call(this)||this;return o.staticClasses=[],o.cellCtrl=e,o.beans=r,o.column=e.getColumn(),o.rowNode=e.getRowNode(),o}return hh(t,n),t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,r=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:r,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(r.cellClassRules,o,function(i){return e.cellComp.addOrRemoveCssClass(i,!0)},function(i){return e.cellComp.addOrRemoveCssClass(i,!1)})},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var r;if("function"==typeof e.cellStyle){var o={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()};r=(0,e.cellStyle)(o)}else r=e.cellStyle;this.cellComp.setUserStyles(r)}},t.prototype.applyClassesFromColDef=function(){var e=this,r=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:r,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};
vendor: 10,835 bytes, line 2
2this.staticClasses.length&&this.staticClasses.forEach(function(i){return e.cellComp.addOrRemoveCssClass(i,!1)}),this.staticClasses=this.beans.stylingService.getStaticCellClasses(r,o),this.staticClasses.length&&this.staticClasses.forEach(function(i){return e.cellComp.addOrRemoveCssClass(i,!0)})},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(F),gh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wn=function(n){function t(e,r){var o=n.call(this)||this;return o.ctrl=e,o.beans=r,o}return gh(t,n),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;null==this.genericTooltipFeature&&(this.genericTooltipFeature=this.createManagedBean(new Rn({getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}}),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,r=e.getColumn?e.getColumn():void 0,o=e.getColDef?e.getColDef():void 0,i=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:o,column:r,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:i,data:i?i.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(F),z=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},gl=function(){function n(){}return n.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},z([h("resizeObserverService")],n.prototype,"resizeObserverService",void 0),z([h("paginationProxy")],n.prototype,"paginationProxy",void 0),z([h("context")],n.prototype,"context",void 0),z([h("columnApi")],n.prototype,"columnApi",void 0),z([h("gridApi")],n.prototype,"gridApi",void 0),z([h("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),z([h("expressionService")],n.prototype,"expressionService",void 0),z([h("rowRenderer")],n.prototype,"rowRenderer",void 0),z([h("templateService")],n.prototype,"templateService",void 0),z([h("valueService")],n.prototype,"valueService",void 0),z([h("eventService")],n.prototype,"eventService",void 0),z([h("columnModel")],n.prototype,"columnModel",void 0),z([h("headerNavigationService")],n.prototype,"headerNavigationService",void 0),z([h("navigationService")],n.prototype,"navigationService",void 0),z([h("columnAnimationService")],n.prototype,"columnAnimationService",void 0),z([J("rangeService")],n.prototype,"rangeService",void 0),z([h("focusService")],n.prototype,"focusService",void 0),z([J("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),z([h("popupService")],n.prototype,"popupService",void 0),z([h("valueFormatterService")],n.prototype,"valueFormatterService",void 0),z([h("stylingService")],n.prototype,"stylingService",void 0),z([h("columnHoverService")],n.prototype,"columnHoverService",void 0),z([h("userComponentFactory")],n.prototype,"userComponentFactory",void 0),z([h("userComponentRegistry")],n.prototype,"userComponentRegistry",void 0),z([h("animationFrameService")],n.prototype,"animationFrameService",void 0),z([h("dragAndDropService")],n.prototype,"dragAndDropService",void 0),z([h("sortController")],n.prototype,"sortController",void 0),z([h("filterManager")],n.prototype,"filterManager",void 0),z([h("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),z([h("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),z([h("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),z([h("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),z([h("selectionService")],n.prototype,"selectionService",void 0),z([J("selectionHandleFactory")],n.prototype,"selectionHandleFactory",void 0),z([h("rowCssClassCalculator")],n.prototype,"rowCssClassCalculator",void 0),z([h("rowModel")],n.prototype,"rowModel",void 0),z([h("ctrlsService")],n.prototype,"ctrlsService",void 0),z([h("ctrlsFactory")],n.prototype,"ctrlsFactory",void 0),z([h("agStackComponentsRegistry")],n.prototype,"agStackComponentsRegistry",void 0),z([h("valueCache")],n.prototype,"valueCache",void 0),z([h("rowNodeEventThrottle")],n.prototype,"rowNodeEventThrottle",void 0),z([I],n.prototype,"postConstruct",null),z([L("beans")],n)}(),vh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),yh=function(n){function t(e,r,o){var i=n.call(this)||this;return i.cellCtrl=e,i.beans=r,i.column=o,i}return vh(t,n),t.prototype.onMouseEvent=function(e,r){if(!ot(r))switch(e){case"click":this.onCellClicked(r);break;case"mousedown":case"touchstart":this.onMouseDown(r);break;case"dblclick":this.onCellDoubleClicked(r);break;case"mouseout":this.onMouseOut(r);break;case"mouseover":this.onMouseOver(r)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var r=this.beans,o=r.eventService,i=r.rangeService,s=r.gridOptionsWrapper;i&&(e.ctrlKey||e.metaKey)&&i.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&i.intersectLastRange(!0);var l=this.cellCtrl.createEvent(e,g.EVENT_CELL_CLICKED);o.dispatchEvent(l);var u=this.column.getColDef();u.onCellClicked&&window.setTimeout(function(){return u.onCellClicked(l)},0),(s.isSingleClickEdit()||u.singleClickEdit)&&!s.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!St()||bi("dblclick"))return!1;var e=(new Date).getTime(),r=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,r},t.prototype.onCellDoubleClicked=function(e){var r=this.column.getColDef(),o=this.cellCtrl.createEvent(e,g.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof r.onCellDoubleClicked&&window.setTimeout(function(){return r.onCellDoubleClicked(o)},0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var r=e.ctrlKey,o=e.metaKey,i=e.shiftKey,s=e.target,a=this.beans,l=a.eventService,u=a.rangeService;if(!this.isRightClickInExistingRange(e)){var p=u&&0!=u.getCellRanges().length;if(!i||!p){var c=(Co()||Nt())&&!this.cellCtrl.isEditing()&&!Qi(s);this.cellCtrl.focusCell(c)}if(i&&p&&e.preventDefault(),!this.containsWidget(s)){if(u){var d=this.cellCtrl.getCellPosition();i?u.extendLatestRangeToCell(d):u.setRangeToCell(d,r||o)}l.dispatchEvent(this.cellCtrl.createEvent(e,g.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var r=this.beans.rangeService;return!(!r||!r.isCellInAnyRange(this.cellCtrl.getCellPosition())||2!==e.button)},t.prototype.containsWidget=function(e){return Wt(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var r=this.cellCtrl.createEvent(e,g.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(r),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var r=this.cellCtrl.createEvent(e,g.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(r),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var r=this.cellCtrl.getGui(),o=r.contains(e.target),i=r.contains(e.relatedTarget);return o&&i},t.prototype.destroy=function(){},t}(gl),Ch=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),mh=function(n){function t(e,r,o,i,s){var a=n.call(this)||this;return a.cellCtrl=e,a.beans=r,a.rowNode=i,a.rowCtrl=s,a}return Ch(t,n),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var r=e.key;switch(r){case P.ENTER:this.onEnterKeyDown(e);break;case P.F2:this.onF2KeyDown(e);break;case P.ESCAPE:this.onEscapeKeyDown(e);break;case P.TAB:this.onTabKeyDown(e);break;case P.BACKSPACE:case P.DELETE:this.onBackspaceOrDeleteKeyPressed(r,e);break;case P.DOWN:case P.UP:case P.RIGHT:case P.LEFT:this.onNavigationKeyPressed(e,r)}},t.prototype.onNavigationKeyPressed=function(e,r){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,r,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var r=this.beans.rangeService.extendLatestRangeInDirection(e);r&&this.beans.navigationService.ensureCellVisible(r)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,r){var o=this,i=o.cellCtrl,s=o.beans,a=o.rowNode,l=s.gridOptionsWrapper,u=s.rangeService,p=s.eventService;i.isEditing()||(p.dispatchEvent({type:g.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Wa(e,l.isEnableCellEditingOnBackspace())?u&&l.isEnableRangeSelection()?u.clearCellRangeCellValues():i.isCellEditable()&&a.setDataValue(i.getColumn(),null,"cellKeyboardListenerFeature"):i.startRowOrCellEdit(e,void 0,r),p.dispatchEvent({type:g.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))}
2,t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,P.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(P.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(P.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 i=String.fromCharCode(e.charCode);" "===i?this.onSpaceKeyPressed(e):Ma(e)&&(this.cellCtrl.startRowOrCellEdit(null,i,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var r=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&r.isRowSelection()){var o=this.rowNode.isSelected(),i=!o;if(i||!r.isSuppressRowDeselection()){var s=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),a=this.rowNode.setSelectedParams({newValue:i,rangeSelect:e.shiftKey,groupSelectsFiltered:s});void 0===o&&0===a&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:s})}}e.preventDefault()},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(F),wh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Eh=function(n){function t(e,r,o,i){var s=n.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return s.rowNode=e,s.column=r,s.beans=o,s.eCell=i,s}return wh(t,n),t.prototype.postConstruct=function(){this.getGui().appendChild(he("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",function(r){r.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var r=this,o=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0),o?o({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var a=JSON.stringify(r.rowNode.data);e.dataTransfer.setData("application/json",a),e.dataTransfer.setData("text/plain",a)}catch{}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([I],t.prototype,"postConstruct",null),t}(j),_h=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Uo=function(){return Uo=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Uo.apply(this,arguments)},vl="ag-cell-not-inline-editing",xh=0,Kt=function(n){function t(e,r,o,i){var s=n.call(this)||this;return s.suppressRefreshCell=!1,s.onCellCompAttachedFuncs=[],s.column=e,s.rowNode=r,s.beans=o,s.rowCtrl=i,s.instanceId=e.getId()+"-"+xh++,s.createCellPosition(),s.addFeatures(),s}return _h(t,n),t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new dh(this,this.beans),this.addDestroyFunc(function(){return e.cellPositionFeature.destroy()}),this.cellCustomStyleFeature=new fh(this,this.beans),this.addDestroyFunc(function(){return e.cellCustomStyleFeature.destroy()}),this.cellMouseListenerFeature=new yh(this,this.beans,this.column),this.addDestroyFunc(function(){return e.cellMouseListenerFeature.destroy()}),this.cellKeyboardListenerFeature=new mh(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 ph(this.beans,this),this.addDestroyFunc(function(){return e.cellRangeFeature.destroy()})),this.addTooltipFeature()},t.prototype.addTooltipFeature=function(){var e=this;this.tooltipFeature=new Wn({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 i=e.column.getColDef(),s=e.rowNode.data;if(i.tooltipField&&O(s))return uo(s,i.tooltipField,e.column.isTooltipFieldContainsDots());var a=i.tooltipValueGetter;return a?a({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.beans),this.addDestroyFunc(function(){return e.tooltipFeature.destroy()})},t.prototype.setComp=function(e,r,o,i,s){this.cellComp=e,this.gow=this.beans.gridOptionsWrapper,this.eGui=r,this.printLayout=i,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasse
2s(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),o&&this.setupAutoHeight(o),this.setAriaColIndex(),this.gow.isSuppressCellFocus()||this.cellComp.setTabIndex(-1);var a=it(this.column.getId());this.cellComp.setColId(a),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(r),this.cellCustomStyleFeature.setComp(e),this.tooltipFeature.setComp(e),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,r),s&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach(function(l){return l()}),this.onCellCompAttachedFuncs=[])},t.prototype.setupAutoHeight=function(e){var r=this;if(this.column.isAutoHeight()){var o=e.parentElement,i=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,s=function(u){if(!r.editing&&r.isAlive()){var p=Vt(o),v=e.offsetHeight+p.paddingTop+p.paddingBottom;if(u<5){var y=r.beans.gridOptionsWrapper.getDocument();if(!y||!y.contains(e)||0==v)return void r.beans.frameworkOverrides.setTimeout(function(){return s(u+1)},0)}var w=Math.max(v,i);r.rowNode.setRowAutoHeight(w,r.column)}},a=function(){return s(0)};a();var l=this.beans.resizeObserverService.observeResize(e,a);this.addDestroyFunc(function(){l(),r.rowNode.setRowAutoHeight(void 0,r.column)})}},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.showValue=function(e){void 0===e&&(e=!1);var r=null!=this.valueFormatted?this.valueFormatted:this.value,o=this.createCellRendererParams(),i=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),o);this.cellComp.setRenderDetails(i,r,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(),r=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),o=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),i=this.includeDndSource!=this.isIncludeControl(e.dndSource);return r||o||i},t.prototype.startEditing=function(e,r,o,i){var a,l,s=this;if(void 0===e&&(e=null),void 0===r&&(r=null),void 0===o&&(o=!1),void 0===i&&(i=null),this.isCellEditable()&&!this.editing){if(!this.cellComp)return void this.onCellCompAttachedFuncs.push(function(){s.startEditing(e,r,o,i)});var u=this.createCellEditorParams(e,r,o),p=this.column.getColDef(),c=this.beans.userComponentFactory.getCellEditorDetails(p,u),d=null!=(null===(a=c)||void 0===a?void 0:a.popupFromSelector)?c.popupFromSelector:!!p.cellEditorPopup,f=null!=(null===(l=c)||void 0===l?void 0:l.popupPositionFromSelector)?c.popupPositionFromSelector:p.cellEditorPopupPosition;this.setEditing(!0,d),this.cellComp.setEditDetails(c,d,f);var v=this.createEvent(i,g.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(v)}},t.prototype.setEditing=function(e,r){void 0===r&&(r=!1),this.editing!==e&&(this.editing=e,this.editingInPopup=r,this.setInlineEditingClass(),this.refreshHandle())},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 r={newValueE
2xists:!1};if(e)return r;var o=this.cellComp.getCellEditor();return o?o.isCancelAfterEnd&&o.isCancelAfterEnd()?r:{newValue:o.getValue(),newValueExists:!0}:r},t.prototype.saveNewValue=function(e,r){if(r===e)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(e,r),!1;this.suppressRefreshCell=!0;var o=this.rowNode.setDataValue(this.column,r);return this.suppressRefreshCell=!1,o},t.prototype.dispatchEventForSaveValueReadOnly=function(e,r){var o=this.rowNode,i={type:g.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),data:o.data,node:o,oldValue:e,newValue:r,value:r,source:void 0};this.beans.eventService.dispatchEvent(i)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var r=this.takeValueFromCellEditor(e),o=r.newValue,i=r.newValueExists,s=this.getValueFromValueService(),a=!1;return i&&(a=this.saveNewValue(s,o)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(s,o,!e&&!!a),a},t.prototype.dispatchEditingStoppedEvent=function(e,r,o){var i=Uo(Uo({},this.createEvent(null,g.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:r,valueChanged:o});this.beans.eventService.dispatchEvent(i)},t.prototype.setInlineEditingClass=function(){var e=this;if(this.isAlive()){if(!this.cellComp)return void this.onCellCompAttachedFuncs.push(function(){e.setInlineEditingClass()});var r=this.editing&&!this.editingInPopup,o=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass("ag-cell-inline-editing",r),this.cellComp.addOrRemoveCssClass(vl,!r),this.cellComp.addOrRemoveCssClass("ag-cell-popup-editing",o),this.rowCtrl.setInlineEditingCss(this.editing)}},t.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},t.prototype.createCellEditorParams=function(e,r,o){return{value:this.getValueFromValueService(),key:e,eventKe
2y:e,charPress:r,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),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(i){return e.beans.valueService.setValue(e.rowNode,e.column,i)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.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(i,s,a,l){return e.registerRowDragger(i,s,l)},addRowCompListener:function(i,s){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(i,s)}}},t.prototype.parseValue=function(e){var r=this.column.getColDef(),o={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:r,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},i=r.valueParser;return O(i)?this.beans.expressionService.evaluate(i,o):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 r=this.column.getColDef(),o=null!=e&&!!e.newData,i=null!=e&&!!e.suppressFlash||!!r.suppressCellFlash,a=e&&e.forceRefresh||null==r.field&&null==r.valueGetter&&null==r.showRowGroup||o,l=this.updateAndFormatValue();if(a||l){this.showValue(o);var p=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!i&&!p&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||r.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,P.DOWN,this.getCellPosition(),!1)},t.prototype.flashCell=function(e){this.animateCell("data-changed",e&&e.flashDelay,e&&e.fadeDelay)},t.prototype.animateCell=function(e,r,o){var i=this,s="ag-cell-"+e,a="ag-cell-"+e+"-animation",l=this.beans.gridOptionsWrapper;r||(r=l.getCellFlashDelay()),O(o)||(o=l.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(s,!0),this.cellComp.addOrRemoveCssClass(a,!1),window.setTimeout(function(){i.isAlive()&&(i.cellComp.addOrRemoveCssClass(s,!1),i.cellComp.addOrRemoveCssClass(a,!0),i.eGui.style.transition="background-color "+o+"ms",window.setTimeout(function(){i.isAlive()&&(i.cellComp.addOrRemoveCssClass(a,!1),i.eGui.style.transition="")},o))},r)},t.prototype.onFlashCells=function(e){if(this.cellComp){var r=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[r]&&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){return this.callValueFormatter(e)??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 r=this.value,o=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!e||!this.valuesAreEqual(r,this.value)||this.valueFormatted!=o},t.prototype.valuesAreEqual=function(e,r){var o=this.column.getColDef();return o.equals?o.equals(e,r):e===r},t.prototype.getComp=function(){return this.cellComp},t.prototype.getValueFromValueService=function(){var e=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),r=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),i=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader();return this.beans.valueService.getValue(this.column,this.rowNode,!1,r&&o&&!i)},t.prototype.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,r=this.getGui();this.beans.gridOptionsWrapper.setDomData(r,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc(function(){return e.beans.gridOptionsWrapper.setDomData(r,t.DOM_DATA_KEY_CELL_CTRL,null)})},t.prototype.createEvent=function(e,r){return{type:r,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,r){this.cellMouseListenerFeature.onMouseEvent(e,r)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList(
2)},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);gn(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.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.isEditing=function(){return this.editing},t.prototype.startRowOrCellEdit=function(e,r,o){void 0===o&&(o=null),this.cellComp&&(this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(e,r,this):this.startEditing(e,r,!0,o))},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({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus: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 r=this.beans.focusService.isCellFocused(this.cellPosition);this.cellComp.addOrRemoveCssClass("ag-cell-focus",r),r&&e&&e.forceBrowserFocus&&this.cellComp.getFocusableElement().focus({preventScroll:!!e.preventScrollOnBrowserFocus});var i=this.beans.gridOptionsWrapper.isFullRowEdit();!r&&!i&&this.editing&&this.stopRowOrCellEdit()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:de(this.rowNode.rowPinned),column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass(vl,!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.onColDefChanged=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 r=this.column.getColDef(),o=this.createEvent(e,g.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),r.onCellContextMenu&&window.setTimeout(function(){return r.onCellContextMenu(o)},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(){this.onCellCompAttachedFuncs=[],n.prototype.destroy.call(this)},t.prototype.createSelectionCheckbox=function(){var e=new nl;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new Eh(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},t.prototype.registerRowDragger=function(e,r,o){var i=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,r);else{var s=this.createRowDragComp(e,r,o);s&&(this.customRowDragComp=s,this.addDestroyFunc(function(){return i.beans.context.destroyBean(s)}))}},t.prototype.createRowDragComp=function(e,r,o){var i=this,s=this.beans.gridOptionsWrapper.isPagination(),a=this.beans.gridOptionsWrapper.isRowDragManaged(),l=this.beans.gridOptionsWrapper.isRowModelDefault();if(a){if(!l)return void q(function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")},"CellComp.addRowDragging");if(s)return void q(function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")},"CellComp.addRowDragging")}var u=new No(function(){return i.value},this.rowNode,this.column,e,r,o);return this.beans.context.createBean(u),u},t.DOM_DATA_KEY_CELL_CTRL="cellCtrl",t}
2(F),Lh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Nh=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Ke=function(n){return n.Normal="Normal",n.FullWidth="FullWidth",n.FullWidthLoading="FullWidthLoading",n.FullWidthGroup="FullWidthGroup",n.FullWidthDetail="FullWidthDetail",n}(Ke||{}),Wh=0,$t=function(n){function t(e,r,o,i,s){var a=n.call(this)||this;return a.allRowGuis=[],a.active=!0,a.centerCellCtrls={list:[],map:{}},a.leftCellCtrls={list:[],map:{}},a.rightCellCtrls={list:[],map:{}},a.lastMouseDownOnDragger=!1,a.updateColumnListsPending=!1,a.beans=r,a.rowNode=e,a.paginationPage=a.beans.paginationProxy.getCurrentPage(),a.useAnimationFrameForCreate=i,a.printLayout=s,a.instanceId=e.id+"-"+Wh++,a.setAnimateFlags(o),a.rowFocused=a.beans.focusService.isRowFocused(a.rowNode.rowIndex,a.rowNode.rowPinned),a.rowLevel=a.beans.rowCssClassCalculator.calculateRowLevel(a.rowNode),a.setRowType(),a.addListeners(),a}return Lh(t,n),t.prototype.isSticky=function(){return this.rowNode.sticky},t.prototype.getBeans=function(){return this.beans},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,r,o){var i={rowComp:e,element:r,containerType:o};this.allRowGuis.push(i),o===Ze.LEFT?this.leftGui=i:o===Ze.RIGHT?this.rightGui=i:o===Ze.FULL_WIDTH?this.fullWidthGui=i:this.centerGui=i,(null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui||null!=this.fullWidthGui)&&this.initialiseRowComps(),"FullWidthLoading"!==this.rowType&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},t.prototype.isCacheable=function(){return this.rowType===Ke.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},t.prototype.setCached=function(e){var r=e?"none":"";this.allRowGuis.forEach(function(o){return o.element.style.display=r})},t.prototype.initialiseRowComps=function(){var e=this,r=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),r.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&_i(this.onTopChanged.bind(this)),this.fadeRowIn&&_i(function(){e.allRowGuis.forEach(function(a){return a.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})});var o=this.getRowBusinessKey(),i=it(this.rowNode.id),s=it(o);this.allRowGuis.forEach(function(a){var l=a.rowComp;l.setRole("row"),e.getInitialRowClasses(a.containerType).forEach(function(p){return l.addOrRemoveCssClass(p,!0)}),e.rowNode.group&&Ue(a.element,1==e.rowNode.expanded),null!=i&&l.setRowId(i),null!=s&&l.setRowBusinessKey(s),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&l.setTabIndex(-1),r.setDomData(a.element,t.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc(function(){return r.setDomData(a.element,t.DOM_DATA_KEY_ROW_CTRL,null)}),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,a.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(a.element),e.isFullWidth()&&e.setupFullWidth(a),r.isRowDragEntireRow()&&e.addRowDraggerToRow(a),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask(function(){e.isAlive()&&a.rowComp.addOrRemoveCssClass("ag-after-created",!0)})}),this.executeProcessRowPostCreateFunc()},t.prototype.addRowDraggerToRow=function(e){var r=this.beans.gridOptionsWrapper;if(r.isEnableRangeSelection())q(function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")},"rowDragAndRangeSelectionEnabled");else{var o=r.getLocaleTextFunc(),i=new No(function(){return"1 "+o("rowDragRow","row")},this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(i,this.beans.context)}},t.prototype.setupFullWidth=function(e){var r=this.getPinnedForContainer(e.containerType),o=this.createFullWidthParams(e.element,r),i=k.isRegistered(W.MasterDetailModule);if(this.rowType!=Ke.FullWidthDetail||i){var s;switch(this.rowType){case Ke.FullWidthDetail:s=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case Ke.FullWidthGroup:s=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case Ke.FullWidthLoading:s=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:s=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o)}e.rowComp.showFullWidth(s)}else k.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 "+W.MasterDetailModule)},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.getCellElement=function(e){var r=this.getCellCtrl(e);return r?r.getGui():null},t.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)})},t.prototype.setRowType=function(){var e=this.rowNode.stub,r=this.rowNode.isFullWidthCell(),o=this.beans.doingMasterDetail&&this.rowNode.detail,i=this.beans.columnModel.isPivotMode(),a=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(i);this.rowType=e?Ke.FullWidthLoading:o?Ke.FullWidthDetail:r?Ke.FullWidth:a?Ke.FullWidthGroup:Ke.Normal},t.prototype.updateColumnLists=function(e){var r=this;if(void 0===e&&(e=!1),!this.isFullWidth()){if(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)return void this.updateColumnListsImpl();this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){r.active&&r.updateColumnListsImpl()},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},t.prototype.createCellCtrls=function(e,r,o){var i=this;void 0===o&&(o=null);var s={list:[],map:{}},a=function(l,u){s.list.push(u),s.map[l]=u};return r.forEach(function(l){var u=l.getInstanceId(),p=e.map[u];p||(p=new Kt(l,i.rowNode,i.beans,i)),a(u,p)}),e.list.forEach(function(l){if(null==s.map[l.getColumn().getInstanceId()]){if(!i.isCellEligibleToBeRemoved(l,o))return void a(l.getColumn().getInstanceId(),l);l.destroy()}}),s},t.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var r=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,r.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var o=r.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);var i=r.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,i,m.PINNED_LE
2FT);var s=r.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,s,m.PINNED_RIGHT)}this.allRowGuis.forEach(function(a){a.rowComp.setCellCtrls((a.containerType===Ze.LEFT?e.leftCellCtrls:a.containerType===Ze.RIGHT?e.rightCellCtrls:e.centerCellCtrls).list)})},t.prototype.isCellEligibleToBeRemoved=function(e,r){var o=!0;if(e.getColumn().getPinned()!=r)return o;var a=e.isEditing(),l=this.beans.focusService.isCellFocused(e.getCellPosition());if(a||l){var p=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(p)>=0)&&o}return o},t.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var r=O(this.rowNode.oldRowTop);this.slideRowIn=r,this.fadeRowIn=!r}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==Ke.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,r=function(u,p){if(!u)return!0;var c=u.rowComp.getFullWidthCellRenderer();if(!c||!c.refresh)return!1;var d=e.createFullWidthParams(u.element,p);return c.refresh(d)},o=r(this.fullWidthGui,null),i=r(this.centerGui,null),s=r(this.leftGui,m.PINNED_LEFT),a=r(this.rightGui,m.PINNED_RIGHT);return o&&i&&s&&a},t.prototype.addListeners=function(){this.addManagedListener(this.rowNode,K.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,K.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,g.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,g.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,g.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,g.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,g.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,g.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,g.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,K.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(r){return r.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,K.EVENT_CELL_CHANGED,function(r){e.getAllCellCtrls().forEach(function(o){return o.onCellChanged(r)})})},t.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach(function(r){return r.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(r){var i=e===At.Below;r.rowComp.addOrRemoveCssClass("ag-row-highlight-above",e===At.Above),r.rowComp.addOrRemoveCssClass("ag-row-highlight-below",i)})},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),r=1==this.rowNode.expanded;this.allRowGuis.forEach(function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",e),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&r),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!r),Ue(o.element,e&&r)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},t.prototype.getRowPosition=function(){return{rowPinned:de(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var r=this.allRowGuis.find(function(u){return u.element.contains(e.target)});if((r?r.element:null)===e.target){var s=this.rowNode,a=this.beans.focusService.getFocusedCell();this.beans.navigationService.navigateToNextCell(e,e.key,{rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:a&&a.column},!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!ot(e)){var r=this.allRowGuis.find(function(a){return a.element.contains(e.target)}),o=r?r.element:null,i=o===e.target,s=null;i||(s=this.beans.focusService.findNextFocusableElement(o,!1,e.shiftKey)),(this.isFullWidth()&&i||!s)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var r,o=this.rowNode,i=this.isFullWidth()&&e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned,s=this.fullWidthGui?this.fullWidthGui.element:null===(r=this.centerGui)||void 0===r?void 0:r.element;s&&(s.classList.toggle("ag-full-width-focus",i),i&&s.focus({preventScroll:!0}))},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,r){var o={list:[],map:{}};return e.list.forEach(function(i){i!==r&&(o.list.push(i),o.map[i.getInstanceId()]=i)}),o},t.prototype.onMouseEvent=function(e,r){switch(e){case"dblclick":this.onRowDblClick(r);break;case"click":this.onRowClick(r);break;case"touchstart":case"mousedown":this.onRowMouseDown(r)}},t.prototype.createRowEvent=function(e,r){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:r}},t.prototype.createRowEventWithSource=function(e,r){var o=this.createRowEvent(e,r);return o.source=this,o},t.prototype.onRowDblClick=function(e){if(!ot(e)){var r=this.createRowEventWithSource(g.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(r)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=Wt(e.target,"ag-row-drag",3),this.isFullWidth()){var r=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:r.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:r.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){if(!ot(e)&&!this.lastMouseDownOnDragger){var o=this.createRowEventWithSource(g.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(o);var i=e.ctrlKey||e.metaKey,s=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 l=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),u=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();this.rowNode.isSelected()?l?this.rowNode.setSelectedParams({newValue:!1,event:e}):i?u&&this.rowNode.setSelectedParams({newValue:!1,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!s,rangeSelect:s,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!l&&!i,rangeSelect:s,event:e})}}},t.prototype.setupDetailRowAutoHeight=function(e){var r=this;if(this.rowType===Ke.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var o=function(){var s=e.clientHeight;null!=s&&s>0&&r.beans.frameworkOverrides.setTimeout(function(){r.rowNode.setRowHeight(s),r.beans.clientSideRowModel?r.beans.clientSideRowModel.onRowHeightChanged():r.beans.serverSideRowModel&&r.beans.serverSideRowModel.onRowHeightChanged()},0)},i=this.beans.resizeObserverService.observeResize(e,o);this.addDestroyFunc(i),o()}},t.prototype.createFullWidthParams=function(e,r){var o=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:r,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(s,a,l,u){return o.addFullWidthRowDragging(s,a,l,u)}}}
2,t.prototype.addFullWidthRowDragging=function(e,r,o,i){if(void 0===o&&(o=""),this.isFullWidth()){var s=new No(function(){return o},this.rowNode,void 0,e,r,i);this.createManagedBean(s,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var r="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(i){i.rowComp.addOrRemoveCssClass(r,!0),i.rowComp.addOrRemoveCssClass(o,!1)})}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},t.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),r=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==r&&(this.lastRowOnPage=r,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-last",r)}))},t.prototype.stopEditing=function(e){var r,o;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var i=this.getAllCellCtrls(),s=this.editingRow;this.stoppingRowEdit=!0;var a=!1;try{for(var l=function(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),u=l.next();!u.done;u=l.next()){var c=u.value.stopEditing(e);s&&!e&&!a&&c&&(a=!0)}}catch(f){r={error:f}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}if(a){var d=this.createRowEvent(g.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(d)}s&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),r.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var r=this.createRowEvent(e?g.EVENT_ROW_EDITING_STARTED:g.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(r)},t.prototype.startRowEditing=function(e,r,o,i){void 0===e&&(e=null),void 0===r&&(r=null),void 0===o&&(o=null),void 0===i&&(i=null),this.editingRow||this.getAllCellCtrls().reduce(function(a,l){var u=l===o;return u?l.startEditing(e,r,u,i):l.startEditing(null,null,u,i),!!a||l.isEditing()},!1)&&this.setEditingRow(!0)},t.prototype.getAllCellCtrls=function(){var e=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Nh(arguments[t]));return n}(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list);return e},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,r=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);!r||!r.length||r.forEach(function(o){e.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass(o,!0)})})},t.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,function(r){e.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass(r,!0)})},function(r){e.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass(r,!1)})})},t.prototype.setStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach(function(r){return r.rowComp.setUserStyles(e)})},t.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},t.prototype.getPinnedForContainer=function(e){return e===Ze.LEFT?m.PINNED_LEFT:e===Ze.RIGHT?m.PINNED_RIGHT:null},t.prototype.getInitialRowClasses=function(e){var r=this.getPinnedForContainer(e),o={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:r};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var o,r=this.beans.gridOptionsWrapper.getRowStyleFunc();return r&&(o=r({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex})),Object.assign({},e,o)}
2console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.onRowSelected=function(){var e=this,r=!!this.rowNode.isSelected();this.allRowGuis.forEach(function(o){o.rowComp.addOrRemoveCssClass("ag-row-selected",r),lr(o.element,!!r||void 0);var i=e.createAriaLabel();Ut(o.element,i??"")})},t.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.")},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.prototype.addHoverFunctionality=function(e){var r=this;this.active&&(this.addManagedListener(e,"mouseenter",function(){return r.rowNode.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return r.rowNode.onMouseLeave()}),this.addManagedListener(this.rowNode,K.EVENT_MOUSE_ENTER,function(){r.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||e.classList.add("ag-row-hover")}),this.addManagedListener(this.rowNode,K.EVENT_MOUSE_LEAVE,function(){e.classList.remove("ag-row-hover")}))},t.prototype.roundRowTopToBounds=function(e){var o=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),i=this.applyPaginationOffset(o.top,!0)-100,s=this.applyPaginationOffset(o.bottom,!0)+100;return Math.min(Math.max(i,e),s)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.onRowHeightChanged=function(){if(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,r=this.beans.gridOptionsWrapper.getDefaultRowHeight(),i=this.beans.gridOptionsWrapper.isGetRowHeightFunction()?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,s=i?Math.min(r,i)-2+"px":void 0;this.allRowGuis.forEach(function(a){a.element.style.height=e+"px",s&&a.element.style.setProperty("--ag-line-height",s)})}},t.prototype.addEventListener=function(e,r){("renderedRowRemoved"===e||"rowRemoved"===e)&&(e=g.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+g.EVENT_VIRTUAL_ROW_REMOVED)),n.prototype.addEventListener.call(this,e,r)},t.prototype.removeEventListener=function(e,r){("renderedRowRemoved"===e||"rowRemoved"===e)&&(e=g.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+g.EVENT_VIRTUAL_ROW_REMOVED)),n.prototype.removeEventListener.call(this,e,r)},t.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var e=this.createRowEvent(g.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(e),this.beans.eventService.dispatchEvent(e),n.prototype.destroy.call(this)},t.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var r=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(r)}else this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)})},t.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(r){return r.list.forEach(function(o){return o.destroy()}),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},t.prototype.setFocusedClasses=function(){var e=this;this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),r.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)})},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)}
2,t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,r){return void 0===r&&(r=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(r?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&O(e)){var r=this.applyPaginationOffset(e),o=this.rowNode.isRowPinned()?r:this.beans.rowContainerHeightService.getRealPixelPosition(r);this.setRowTopStyle(o+"px")}},t.prototype.getInitialRowTop=function(){return this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.getInitialRowTopShared():void 0},t.prototype.getInitialTransform=function(){return this.beans.gridOptionsWrapper.isSuppressRowTransform()?void 0:"translateY("+this.getInitialRowTopShared()+")"},t.prototype.getInitialRowTopShared=function(){if(this.printLayout)return"";var e;if(this.isSticky())e=this.rowNode.stickyRowTop;else{var r=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,o=this.applyPaginationOffset(r);e=this.rowNode.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o)}return e+"px"},t.prototype.setRowTopStyle=function(e){var r=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach(function(o){return r?o.rowComp.setTop(e):o.rowComp.setTransform("translateY("+e+")")})},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getCellCtrl=function(e){var r=null;return this.getAllCellCtrls().forEach(function(o){o.getColumn()==e&&(r=o)}),null!=r||this.getAllCellCtrls().forEach(function(o){o.getColSpanningList().indexOf(e)>=0&&(r=o)}),r},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),r=this.beans.headerNavigationService.getHeaderRowCount(),o=this.rowNode.rowIndex%2==0,i=r+this.rowNode.rowIndex+1;this.allRowGuis.forEach(function(s){s.rowComp.setRowIndex(e),s.rowComp.addOrRemoveCssClass("ag-row-even",o),s.rowComp.addOrRemoveCssClass("ag-row-odd",!o),fn(s.element,i)})},t.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},t.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},t.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},t.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(F),Vh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),$e=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},kh=function(n){function t(e){var r=n.call(this)||this;return r.element=e,r}return Vh(t,n),t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach(function(o){var i=e.processKeyboardEvent.bind(e,o);e.addManagedListener(e.element,o,i)})},t.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",bi("touchstart")?"touchstart":"mousedown"].forEach(function(i){var s=e.processMouseEvent.bind(e,i);e.addManagedListener(e.element,i,s)})},t.prototype.processMouseEvent=function(e,r){if(this.mouseEventService.isEventFromThisGrid(r)&&!ot(r)){var o=this.getRowForEvent(r),i=this.mouseEventService.getRenderedCellForEvent(r);"contextmenu"===e?this.handleContextMenuMouseEvent(r,null,o,i):(i&&i.onMouseEvent(e,r),o&&o.onMouseEvent(e,r))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(St()){var r=new je(this.element);this.addManagedListener(r,je.EVENT_LONG_TAP,function(i){var s=e.getRowForEvent(i.touchEvent),a=e.mouseEventService.getRenderedCellForEvent(i.touchEvent);e.handleContextMenuMouseEvent(null,i.touchEvent,s,a)}),this.addDestroyFunc(function(){return r.destroy()})}},t.prototype.getRowForEvent=function(e){for(var r=e.target;r;){var o=this.gridOptionsWrapper.getDomData(r,$t.DOM_DATA_KEY_ROW_CTRL);if(o)return o;r=r.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,r,o,i){var s=o?o.getRowNode():null,a=i?i.getColumn():null,l=null;a&&(i.dispatchCellContextMenuEvent(e||r),l=this.valueService.getValue(a,s));var p=this.ctrlsService.getGridBodyCtrl(),c=i?i.getGui():p.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,r,s,a,l,c)},t.prototype.processKeyboardEvent=function(e,r){var o=go(this.gridOptionsWrapper,r,Kt.DOM_DATA_KEY_CELL_CTRL),i=go(this.gridOptionsWrapper,r,$t.DOM_DATA_KEY_ROW_CTRL);r.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,r):i&&i.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,e,r))},t.prototype.processCellKeyboardEvent=function(e,r,o){var i=e.getRowNode(),s=e.getColumn(),a=e.isEditing();if(!Do(this.gridOptionsWrapper,o,i,s,a))switch(r){case"keydown":!a&&this.navigationService.handlePageScrollingKey(o)||e.onKeyDown(o),this.doGridOperations(o,e.isEditing());break;case"keypress":e.onKeyPress(o)}if("keydown"===r){var p=e.createEvent(o,g.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(p)}if("keypress"===r){var c=e.createEvent(o,g.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(c)}}
2,t.prototype.processFullWidthRowKeyboardEvent=function(e,r,o){var i=e.getRowNode(),s=this.focusService.getFocusedCell();if(!Do(this.gridOptionsWrapper,o,i,s&&s.column,!1)&&"keydown"===r)switch(o.key){case P.UP:case P.DOWN:e.onKeyboardNavigate(o);break;case P.TAB:e.onTabKeyDown(o)}if("keydown"===r){var p=e.createRowEvent(g.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(p)}if("keypress"===r){var c=e.createRowEvent(g.EVENT_CELL_KEY_PRESS,o);this.eventService.dispatchEvent(c)}},t.prototype.doGridOperations=function(e,r){if((e.ctrlKey||e.metaKey)&&!r&&this.mouseEventService.isEventFromThisGrid(e)){var o=Ha(e);if(o===P.A)return this.onCtrlAndA(e);if(o===P.C)return this.onCtrlAndC(e);if(o===P.V)return this.onCtrlAndV();if(o===P.D)return this.onCtrlAndD(e);if(o===P.Z)return this.onCtrlAndZ(e);if(o===P.Y)return this.onCtrlAndY()}},t.prototype.onCtrlAndA=function(e){var r=this,o=r.pinnedRowModel,s=r.rangeService,a=m.PINNED_BOTTOM,l=m.PINNED_TOP;if(s&&r.paginationProxy.isRowsToRender()){var u=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i}([o.isEmpty(l),o.isEmpty(a)],2),d=u[0]?null:l,f=void 0,v=void 0;u[1]?(f=null,v=this.paginationProxy.getRowCount()-1):(f=a,v=o.getPinnedBottomRowData().length-1);var y=this.columnModel.getAllDisplayedColumns();if(ae(y))return;s.setCellRange({rowStartIndex:0,rowStartPinned:d,rowEndIndex:v,rowEndPinned:f,columnStart:y[0],columnEnd:ie(y)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){!this.clipboardService||this.gridOptionsWrapper.isEnableCellTextSelection()||(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){k.isRegistered(W.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){k.isRegistered(W.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsWrapper.isUndoRedoCellEditing()&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo())},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo()},$e([h("mouseEventService")],t.prototype,"mouseEventService",void 0),$e([h("valueService")],t.prototype,"valueService",void 0),$e([J("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),$e([h("ctrlsService")],t.prototype,"ctrlsService",void 0),$e([h("navigationService")],t.prototype,"navigationService",void 0),$e([h("focusService")],t.prototype,"focusService",void 0),$e([h("undoRedoService")],t.prototype,"undoRedoService",void 0),$e([h("columnModel")],t.prototype,"columnModel",void 0),$e([h("paginationProxy")],t.prototype,"paginationProxy",void 0),$e([h("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),$e([J("rangeService")],t.prototype,"rangeService",void 0),$e([J("clipboardService")],t.prototype,"clipboardService",void 0),$e([I],t.prototype,"postConstruct",null),t}(F),Uh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),jo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},jh=function(n){function t(e){var r=n.call(this)||this;return r.centerContainerCtrl=e,r}return Uh(t,n),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,g.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,r=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(r),this.gridBodyCtrl.registerBodyViewportResizeListener(r)},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
vendor: 4,395 bytes, line 2
2().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var r=Sr(this.gridBodyCtrl.getBodyViewportElement());this.bodyHeight!==r&&(this.bodyHeight=r,this.eventService.dispatchEvent({type:g.EVENT_BODY_HEIGHT_CHANGED}))},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(),r=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,r)},jo([h("ctrlsService")],t.prototype,"ctrlsService",void 0),jo([h("columnModel")],t.prototype,"columnModel",void 0),jo([h("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),jo([I],t.prototype,"postConstruct",null),t}(F),zh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),yl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Kh=function(n){function t(e){var r=n.call(this)||this;return r.element=e,r}return zh(t,n),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),r=e>0;se(this.element,r),r&&nt(this.element,e)},yl([h("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),yl([I],t.prototype,"postConstruct",null),t}(F),$h=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Cl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Yh=function(n){function t(e){var r=n.call(this)||this;return r.element=e,r}return $h(t,n),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),r=e>0;se(this.element,r),r&&nt(this.element,e)},Cl([h("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Cl([I],t.prototype,"postConstruct",null),t}(F),qh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ml=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Xh=function(n){function t(e,r){var o=n.call(this)||this;
2return o.eContainer=e,o.eWrapper=r,o}return qh(t,n),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),r=null!=e?e+"px":"";this.eContainer.style.height=r,this.eWrapper&&(this.eWrapper.style.height=r)},ml([h("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),ml([I],t.prototype,"postConstruct",null),t}(F),Qh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Vn=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Zh=function(n){function t(e){var r=n.call(this)||this;return r.eContainer=e,r}return Qh(t,n),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!M(this.rangeService)){var r={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(r),this.addDestroyFunc(function(){return e.dragService.removeDragSource(r)})}},Vn([J("rangeService")],t.prototype,"rangeService",void 0),Vn([h("dragService")],t.prototype,"dragService",void 0),Vn([I],t.prototype,"postConstruct",null),t}(F),Jh=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),wl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Bn=function(n){function t(e){var r=n.call(this)||this;return r.callback=e,r}return Jh(t,n),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,G.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,r=this.gridOptionsWrapper.getDomLayout()===m.DOM_LAYOUT_PRINT,o=e.getBodyContainerWidth(),i=e.getDisplayedColumnsLeftWidth(),s=e.getDisplayedColumnsRightWidth();this.callback(r?o+i+s:o)},wl([h("columnModel")],t.prototype,"columnModel",void 0),wl([I],t.prototype,"postConstruct",null),t}(F),ef=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tf=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},S=function(n){return n.LEFT="left",n.RIGHT="right",n.CENTER="center",n.FULL_WIDTH="fullWidth",n.TOP_LEFT="topLeft",n.TOP_RIGHT="topRight",n.TOP_CENTER="topCenter",n.TOP_FULL_WIDTH="topFullWidth",n.STICKY_TOP_LEFT="stickyTopLeft",n.STICKY_TOP_RIGHT="stickyTopRight",n.STICKY_TOP_CENTER="stickyTopCenter",n.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",n.BOTTOM_LEFT="bottomLeft",n.BOTTOM_RIGHT="bottomRight",n.BOTTOM_CENTER="bottomCenter",n.BOTTOM_FULL_WIDTH="bottomFullWidth",n}(S||{}),Ze=function(n){return n.LEFT="left",n.RIGHT="right",n.CENTER="center",n.FULL_WIDTH="fullWidth",n}(Ze||{}),nf=ut([[S.CENTER,"ag-center-cols-container"],[S.LEFT,"ag-pinned-left-cols-container"],[S.RIGHT,"ag-pinned-right-cols-container"],[S.FULL_WIDTH,"ag-full-width-container"],[S.TOP_CENTER,"ag-floating-top-container"],[S.TOP_LEFT,"ag-pinned-left-floating-top"],[S.TOP_RIGHT,"ag-pinned-right-floating-top"],[S.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[S.STICKY_TOP_CENTER,"ag-sticky-top-container"],[S.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[S.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[S.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[S.BOTTOM_CENTER,"ag-floating-bottom-container"],[S.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[S.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[S.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),sf=ut([[S.CENTER,"ag-center-cols-viewport"],[S.TOP_CENTER,"ag-floating-top-viewport"],[S.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[S.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),af=ut([[S.CENTER,"ag-center-cols-clipper"]]),kn=function(n){function t(e){var r=n.call(this)||this;return r.name=e,r}
2return ef(t,n),t.getRowContainerCssClasses=function(e){return{container:nf.get(e),viewport:sf.get(e),wrapper:af.get(e)}},t.getPinned=function(e){switch(e){case S.BOTTOM_LEFT:case S.TOP_LEFT:case S.STICKY_TOP_LEFT:case S.LEFT:return m.PINNED_LEFT;case S.BOTTOM_RIGHT:case S.TOP_RIGHT:case S.STICKY_TOP_RIGHT:case S.RIGHT:return m.PINNED_RIGHT;default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([S.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new jh(e))})},t.prototype.registerWithCtrlsService=function(){switch(this.name){case S.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case S.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case S.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case S.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case S.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case S.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case S.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case S.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case S.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case S.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case S.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case S.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},t.prototype.forContainers=function(e,r){e.indexOf(this.name)>=0&&r()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,r,o,i){var s=this;this.comp=e,this.eContainer=r,this.eViewport=o,this.eWrapper=i,this.createManagedBean(new kh(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var c=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(tf(arguments[t]));return n}([S.TOP_CENTER,S.TOP_LEFT,S.TOP_RIGHT],[S.BOTTOM_CENTER,S.BOTTOM_LEFT,S.BOTTOM_RIGHT],[S.CENTER,S.LEFT,S.RIGHT],[S.STICKY_TOP_CENTER,S.STICKY_TOP_LEFT,S.STICKY_TOP_RIGHT]),d=[S.CENTER,S.LEFT,S.RIGHT,S.FULL_WIDTH],f=[S.CENTER,S.TOP_CENTER,S.STICKY_TOP_CENTER,S.BOTTOM_CENTER],y=[S.RIGHT,S.BOTTOM_RIGHT,S.TOP_RIGHT,S.STICKY_TOP_RIGHT];this.forContainers([S.LEFT,S.BOTTOM_LEFT,S.TOP_LEFT,S.STICKY_TOP_LEFT],function(){return s.createManagedBean(new Kh(s.eContainer))}),this.forContainers(y,function(){return s.createManagedBean(new Yh(s.eContainer))}),this.forContainers(d,function(){return s.createManagedBean(new Xh(s.eContainer,s.eWrapper))}),this.forContainers(c,function(){return s.createManagedBean(new Zh(s.eContainer))}),this.forContainers(f,function(){return s.createManagedBean(new Bn(function(C){return s.comp.setContainerWidth(C+"px")}))}),this.addListeners(),this.registerWithCtrlsService()},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_SCROLL_VISIBILITY_CHANGED,function(){return e.onScrollVisibilityChanged()}),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){return e.onDisplayedColumnsChanged()}),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){return e.onDisplayedColumnsWidthChanged()}),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_ROWS_CHANGED,function(){return e.onDisplayedRowsChanged()}),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this;if([S.STICKY_TOP_CENTER,S.STICKY_TOP_LEFT,S.STICKY_TOP_RIGHT,S.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var i=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,G.PROP_DOM_LAYOUT,i
2),i()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([S.TOP_CENTER,S.STICKY_TOP_CENTER,S.BOTTOM_CENTER],function(){e.addManagedListener(e.eViewport,"scroll",function(){return e.eViewport.scrollLeft=0})})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([S.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([S.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onScrollVisibilityChanged=function(){if(this.name===S.CENTER){var r=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0;this.comp.setViewportHeight(0==r?"100%":"calc(100% + "+r+"px)")}},t.prototype.addPreventScrollWhileDragging=function(){var e=this,r=function(o){e.dragService.isDragging()&&o.cancelable&&o.preventDefault()};this.eContainer.addEventListener("touchmove",r,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",r)})},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),r=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,r)},t.prototype.getCenterWidth=function(){return So(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return Pr(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var r=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return r()})},t.prototype.isViewportVisible=function(){return ar(this.eViewport)},t.prototype.isViewportHScrollShowing=function(){return nn(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return Pr(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||nn(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){Po(this.eViewport,e,this.enableRtl)},t.prototype.onDisplayedRowsChanged=function(){var e=this,r=this.name===S.TOP_FULL_WIDTH||this.name===S.STICKY_TOP_FULL_WIDTH||this.name===S.BOTTOM_FULL_WIDTH||this.name===S.FULL_WIDTH,s=this.getRowCtrls().filter(function(a){var l=a.isFullWidth(),u=e.gridOptionsWrapper.getDomLayout()===m.DOM_LAYOUT_PRINT,p=e.embedFullWidthRows||u;return r?!p&&l:p||!l});this.comp.setRowCtrls(s)},t.prototype.getRowCtrls=function(){switch(this.name){case S.TOP_CENTER:case S.TOP_LEFT:case S.TOP_RIGHT:case S.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case S.STICKY_TOP_CENTER:case S.STICKY_TOP_LEFT:case S.STICKY_TOP_RIGHT:case S.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case S.BOTTOM_CENTER:case S.BOTTOM_LEFT:case S.BOTTOM_RIGHT:case S.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},Yt([h("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Yt([h("dragService")],t.prototype,"dragService",void 0),Yt([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Yt([h("columnModel")],t.prototype,"columnModel",void 0),Yt([h("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Yt([h("rowRenderer")],t.prototype,"rowRenderer",void 0),Yt([I],t.prototype,"postConstruct",null),t}(F),lf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Gt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},uf='<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="'+S.TOP_LEFT+'"></ag-row-container>\n            <ag-row-container ref="topCenterContainer" name="'+S.TOP_CENTER+'"></ag-row-container>\n            <ag-row-container ref="topRightContainer" name="'+S.TOP_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="topFullWidthContainer" name="'+S.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="'+S.LEFT+'"></ag-row-container>\n            <ag-row-container ref="centerContainer" name="'+S.CENTER+'"></ag-row-container>
2\n            <ag-row-container ref="rightContainer" name="'+S.RIGHT+'"></ag-row-container>\n            <ag-row-container ref="fullWidthContainer" name="'+S.FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n            <ag-row-container ref="stickyTopLeftContainer" name="'+S.STICKY_TOP_LEFT+'"></ag-row-container>\n            <ag-row-container ref="stickyTopCenterContainer" name="'+S.STICKY_TOP_CENTER+'"></ag-row-container>\n            <ag-row-container ref="stickyTopRightContainer" name="'+S.STICKY_TOP_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="stickyTopFullWidthContainer" name="'+S.STICKY_TOP_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n            <ag-row-container ref="bottomLeftContainer" name="'+S.BOTTOM_LEFT+'"></ag-row-container>\n            <ag-row-container ref="bottomCenterContainer" name="'+S.BOTTOM_CENTER+'"></ag-row-container>\n            <ag-row-container ref="bottomRightContainer" name="'+S.BOTTOM_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="bottomFullWidthContainer" name="'+S.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>',pf=function(n){function t(){return n.call(this,uf)||this}return lf(t,n),t.prototype.init=function(){var e=this,r=function(i,s){var a=i+"px";s.style.minHeight=a,s.style.height=a},o={setRowAnimationCssOnBodyViewport:function(i,s){return e.setRowAnimationCssOnBodyViewport(i,s)},setColumnCount:function(i){return ba(e.getGui(),i)},setRowCount:function(i){return Aa(e.getGui(),i)},setTopHeight:function(i){return r(i,e.eTop)},setBottomHeight:function(i){return r(i,e.eBottom)},setTopDisplay:function(i){return e.eTop.style.display=i},setBottomDisplay:function(i){return e.eBottom.style.display=i},setStickyTopHeight:function(i){return e.eStickyTop.style.height=i},setStickyTopTop:function(i){return e.eStickyTop.style.top=i},setStickyTopWidth:function(i){return e.eStickyTop.style.width=i},setColumnMovingCss:function(i,s){return e.addOrRemoveCssClass(fl,s)},updateLayoutClasses:function(i,s){var a=e.eBodyViewport.classList;a.toggle(ve.AUTO_HEIGHT,s.autoHeight),a.toggle(ve.NORMAL,s.normal),a.toggle(ve.PRINT,s.print),e.addOrRemoveCssClass(ve.AUTO_HEIGHT,s.autoHeight),e.addOrRemoveCssClass(ve.NORMAL,s.normal),e.addOrRemoveCssClass(ve.PRINT,s.print)},setAlwaysVerticalScrollClass:function(i,s){return e.eBodyViewport.classList.toggle(hl,s)},registerBodyViewportResizeListener:function(i){var s=e.resizeObserverService.observeResize(e.eBodyViewport,i);e.addDestroyFunc(function(){return s()})},setPinnedTopBottomOverflowY:function(i){return e.eTop.style.overflowY=e.eBottom.style.overflowY=i},setCellSelectableCss:function(i,s){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(a){return a.classList.toggle(dl,s)})}};this.ctrl=this.createManagedBean(new th),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&Da(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,r){var o=this.eBodyViewport.classList;o.toggle(Wr.ANIMATION_ON,r),o.toggle(Wr.ANIMATION_OFF,!r)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Gt([h("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Gt([J("rangeService")],t.prototype,"rangeService",void 0),Gt([T("eBodyViewport")],t.prototype,"eBodyViewport",void 0),Gt([T("eStickyTop")],t.prototype,"eStickyTop",void 0),Gt([T("eTop")],t.prototype,"eTop",void 0),Gt([T("eBottom")],t.prototype,"eBottom",void 0),Gt([T("gridHeader")],t.prototype,"headerRootComp",void 0),Gt([I],t.prototype,"init",null),t}(j),cf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Un=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},df=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return cf(t,n),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var r={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(r)}},t.prototype.setScrollsVisible=function(e){this.horizontalScrollShowing===e.horizontalScrollShowing&&this.verticalScrollShowing===e.verticalScrollShowing||(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventService.dispatchEvent({type:g.EVENT_SCROLL_VISIBILITY_CHANGED}))},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Un([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Un([I],t.prototype,"postConstruct",null),Un([L("scrollVisibleService")],t)}
2(F),hf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ff=function(n){function t(){var r=null!==n&&n.apply(this,arguments)||this;return r.gridInstanceId=e.gridInstanceSequence.next(),r}var e;return hf(t,n),e=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(r){r[e.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(r){return go(this.gridOptionsWrapper,r,Kt.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(r){return this.isElementInThisGrid(r.target)},t.prototype.isElementInThisGrid=function(r){for(var o=r;o;){var i=o[e.GRID_DOM_KEY];if(O(i))return i===this.gridInstanceId;o=o.parentElement}return!1},t.prototype.getCellPositionForEvent=function(r){var o=this.getRenderedCellForEvent(r);return o?o.getCellPosition():null},t.prototype.getNormalisedPosition=function(r){var s,a,o=this.gridOptionsWrapper.getDomLayout()===m.DOM_LAYOUT_NORMAL;if(null!=r.clientX||null!=r.clientY?(s=r.clientX,a=r.clientY):(s=r.x,a=r.y),o){var l=this.ctrlsService.getGridBodyCtrl(),u=l.getScrollFeature().getVScrollPosition();s+=l.getScrollFeature().getHScrollPosition().left,a+=u.top}return{x:s,y:a}},t.gridInstanceSequence=new ur,t.GRID_DOM_KEY="__ag_grid_instance",Rl([h("ctrlsService")],t.prototype,"ctrlsService",void 0),e=Rl([L("mouseEventService")],t)}(F),gf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),zo=function(){return zo=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},zo.apply(this,arguments)},Ne=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vf=function(n){function t(){var e=n.call(this)||this;return e.onPageDown=Si(e.onPageDown,100),e.onPageUp=Si(e.onPageUp,100),e}return gf(t,n),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.gridBodyCon=r.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e){var r=e.key,o=e.altKey,i=e.ctrlKey||e.metaKey,s=!!this.rangeService&&e.shiftKey,a=this.mouseEventService.getCellPositionForEvent(e);if(!a)return!1;var l=!1;switch(r){case P.PAGE_HOME:case P.PAGE_END:!i&&!o&&(this.onHomeOrEndKey(r),l=!0);break;case P.LEFT:case P.RIGHT:case P.UP:case P.DOWN:i&&!o&&!s&&(this.onCtrlUpDownLeftRight(r,a),l=!0);break;case P.PAGE_DOWN:!i&&!o&&(this.onPageDown(a),l=!0);break;case P.PAGE_UP:!i&&!o&&(this.onPageUp(a),l=!0)}return l&&e.preventDefault(),l},t.prototype.navigateTo=function(e){var r=e.scrollIndex,o=e.scrollType,i=e.scrollColumn,s=e.focusIndex,a=e.focusColumn;O(i)&&!i.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(i),O(r)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(r,o),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(s),this.focusService.setFocusedCell({rowIndex:s,column:a,rowPinned:null,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:s,rowPinned:null,column:a})},t.prototype.onPageDown=function(e){var o=this.ctrlsService.getGridBodyCtrl().getScrollFeature
2().getVScrollPosition(),i=this.getViewportHeight(),s=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRowIndexAtPixel(o.top+i+s);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,l):this.navigateToNextPage(e,l)},t.prototype.onPageUp=function(e){var o=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),i=this.paginationProxy.getPixelOffset(),a=this.paginationProxy.getRowIndexAtPixel(o.top+i);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,a,!0):this.navigateToNextPage(e,a,!0)},t.prototype.navigateToNextPage=function(e,r,o){void 0===o&&(o=!1);var i,s,C,a=this.getViewportHeight(),l=this.paginationProxy.getPageFirstRow(),u=this.paginationProxy.getPageLastRow(),p=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getRow(e.rowIndex),d=o?(null===(i=c)||void 0===i?void 0:i.rowHeight)-a-p:a-p,f=(null===(s=c)||void 0===s?void 0:s.rowTop)+d,v=this.paginationProxy.getRowIndexAtPixel(f+p);v===e.rowIndex&&(r=v=e.rowIndex+(o?-1:1)),o?(C="bottom",v<l&&(v=l),r<l&&(r=l)):(C="top",v>u&&(v=u),r>u&&(r=u)),this.isRowTallerThanView(v)&&(r=v,C="top"),this.navigateTo({scrollIndex:r,scrollType:C,scrollColumn:null,focusIndex:v,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,r,o){var i=this;void 0===o&&(o=!1),this.navigateTo({scrollIndex:r,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column}),setTimeout(function(){var s=i.getNextFocusIndexForAutoHeight(e,o);i.navigateTo({scrollIndex:r,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:s,focusColumn:e.column,isAsync:!0})},50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,r){void 0===r&&(r=!1);for(var i=r?-1:1,s=this.getViewportHeight(),a=this.paginationProxy.getPageLastRow(),l=0,u=e.rowIndex;u>=0&&u<=a;){var p=this.paginationProxy.getRow(u);if(p){var c=p.rowHeight??0;if(l+c>s)break;l+=c}u+=i}return Math.max(0,Math.min(u,a))},t.prototype.getViewportHeight=function(){var r=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.gridOptionsWrapper.getScrollbarWidth(),i=r.bottom-r.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(i-=o),i},t.prototype.isRowTallerThanView=function(e){var r=this.paginationProxy.getRow(e);if(!r)return!1;var o=r.rowHeight;return"number"==typeof o&&o>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,r){var o=this.cellNavigationService.getNextCellToFocus(e,r,!0),i=o.rowIndex,s=o.column;this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:s,focusIndex:i,focusColumn:s})},t.prototype.onHomeOrEndKey=function(e){var r=e===P.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),i=r?o[0]:ie(o),s=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:i,focusIndex:s,focusColumn:i})},t.prototype.onTabKeyDown=function(e,r){var o=r.shiftKey;if(this.tabToNextCellCommon(e,o,r))r.preventDefault();else if(o){var s=e.getRowPosition(),a=s.rowIndex;(s.rowPinned?0===a:a===this.paginationProxy.getPageFirstRow())&&(r.preventDefault(),this.focusService.focusLastHeader(r))}else e instanceof Kt&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&r.preventDefault()},t.prototype.tabToNextCell=function(e,r){var o=this.focusService.getFocusedCell();if(!o)return!1;var i=this.getCellByPosition(o);return!!(i||(i=this.rowRenderer.getRowByPosition(o),i&&i.isFullWidth()))&&this.tabToNextCellCommon(i,e,r)},t.prototype.tabToNextCellCommon=function(e,r,o){var i=e.isEditing();if(!i&&e instanceof Kt){var a=e.getRowCtrl();a&&(i=a.isEditing())}return(i?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,r,o):this.moveToNextEditingCell(e,r,o):this.moveToNextCellNotEditing(e,r))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,r,o){void 0===o&&(o=null);var i=e.getCellPosition();e.getGui().focus(),e.stopEditing();var s=this.findNextCellToFocusOn(i,r,!0);return null!=s&&(s.startEditing(null,null,!0,o),s.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,r,o){void 0===o&&(o=null);var i=e.getCellPosition(),s=this.findNextCellToFocusOn(i,r,!0);if(null==s)return!1;var a=s.getCellPosition(),l=this.isCellEditable(i),u=this.isCellEditable(a),p=a&&i.rowIndex===a.rowIndex&&i.rowPinned===a.rowPinned;return l&&e.setFocusOutOnEditor(),p||(e.getRowCtrl().stopEditing(),s.getRowCtrl().startRowEditing(void 0,void 0,void 0,o)),u?(s.setFocusInOnEditor(),s.focusCell()):s.focusCell(!0),!0}
2,t.prototype.moveToNextCellNotEditing=function(e,r){var i,o=this.columnModel.getAllDisplayedColumns();i=e instanceof $t?zo(zo({},e.getRowPosition()),{column:r?o[0]:ie(o)}):e.getCellPosition();var s=this.findNextCellToFocusOn(i,r,!1);if(s instanceof Kt)s.focusCell(!0);else if(s)return this.tryToFocusFullWidthRow(s.getRowPosition(),r);return O(s)},t.prototype.findNextCellToFocusOn=function(e,r,o){for(var i=e;;){e!==i&&(e=i),r||(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextTabbedCell(i,r);var s=this.gridOptionsWrapper.getTabToNextCellFunc();if(O(s)){var l=s({backwards:r,editing:o,previousCellPosition:e,nextCellPosition:i||null});O(l)?(l.floating&&(q(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"),l.rowPinned=l.floating),i={rowIndex:l.rowIndex,column:l.column,rowPinned:l.rowPinned}):i=null}if(!i)return null;if(i.rowIndex<0){var u=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u+i.rowIndex,column:i.column}}),null}var p=this.gridOptionsWrapper.isFullRowEdit();if(!o||p||this.isCellEditable(i)){this.ensureCellVisible(i);var d=this.getCellByPosition(i);if(!d){var f=this.rowRenderer.getRowByPosition(i);if(!f||!f.isFullWidth())continue;return f}if(!d.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(i),d}}},t.prototype.isCellEditable=function(e){var r=this.lookupRowNodeForCell(e);return!!r&&e.column.isCellEditable(r)},t.prototype.getCellByPosition=function(e){var r=this.rowRenderer.getRowByPosition(e);return r?r.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===m.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===m.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,r,o,i){for(var s=o,a=!1;s&&(s===o||!this.isValidNavigateCell(s));)this.gridOptionsWrapper.isEnableRtl()?r===P.LEFT&&(s=this.getLastCellOfColSpan(s)):r===P.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=M(s=this.cellNavigationService.getNextCellToFocus(r,s));if(a&&e&&e.key===P.UP&&(s={rowIndex:-1,rowPinned:null,column:o.column}),i){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(O(l)){var p=l({key:r,previousCellPosition:o,nextCellPosition:s||null,event:e});O(p)?(p.floating&&(q(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),p.rowPinned=p.floating),s={rowPinned:p.rowPinned,rowIndex:p.rowIndex,column:p.column}):s=null}}if(s){if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();return void this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:o.column},event:e||void 0})}var d=this.getNormalisedPosition(s);d?this.focusPosition(d):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var r=this.getCellByPosition(e);return r?(e=r.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,r){void 0===r&&(r=!1);var o=this.columnModel.getAllDisplayedColumns(),i=this.rowRenderer.getRowByPosition(e);if(!i||!i.isFullWidth())return!1;var s=this.focusService.getFocusedCell(),a={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(r?ie(o):o[0])};this.focusPosition(a);var l=null!=s&&this.rowPositionUtils.before(a,s);return this.eventService.dispatchEvent({type:g.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:a.column,isFullWidthCell:!0,floating:a.rowPinned,fromBelow:l}),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var r=this.getCellByPosition(e);if(!r)return e;
vendor: 4,399 bytes, line 2
2var o=r.getColSpanningList();return 1===o.length?e:{rowIndex:e.rowIndex,column:ie(o),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var r,o=this.gridOptionsWrapper.isGroupRowsSticky(),i=this.rowModel.getRow(e.rowIndex);!(o&&(null===(r=i)||void 0===r?void 0:r.sticky))&&M(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},Ne([h("mouseEventService")],t.prototype,"mouseEventService",void 0),Ne([h("paginationProxy")],t.prototype,"paginationProxy",void 0),Ne([h("focusService")],t.prototype,"focusService",void 0),Ne([J("rangeService")],t.prototype,"rangeService",void 0),Ne([h("columnModel")],t.prototype,"columnModel",void 0),Ne([h("rowModel")],t.prototype,"rowModel",void 0),Ne([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Ne([h("rowRenderer")],t.prototype,"rowRenderer",void 0),Ne([h("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Ne([h("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Ne([h("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Ne([h("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ne([I],t.prototype,"postConstruct",null),Ne([L("navigationService")],t)}(F),yf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),mf=function(n){function t(e){var r=n.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return r.params=e,r}return yf(t,n),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,r=this.getGui(),o=this.params;this.addManagedListener(r,"keydown",function(s){Do(e.gridOptionsWrapper,s,o.node,o.column,!0)||o.onKeyDown(s)})},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([I],t.prototype,"postConstruct",null),t}(xr),wf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rf=function(n){function t(e,r,o,i,s){var a=n.call(this)||this;a.rendererVersion=0,a.editorVersion=0,a.beans=e,a.column=r.getColumn(),a.rowNode=r.getRowNode(),a.rowCtrl=r.getRowCtrl(),a.eRow=i,a.setTemplate('<div comp-id="'+a.getCompId()+'"/>');var l=a.getGui();a.forceWrapper=r.isForceWrapper(),a.refreshWrapper(!1);var u=function(c,d,f){var v=f||l;null!=d&&""!=d?v.setAttribute(c,d):v.removeAttribute(c)},p={addOrRemoveCssClass:function(c,d){return a.addOrRemoveCssClass(c,d)},setUserStyles:function(c){return on(l,c)},getFocusableElement:function(){return a.getFocusableElement()},setTabIndex:function(c){return u("tabindex",c.toString())},setRole:function(c){return be(l,c)},setColId:function(c){return u("col-id",c)},setTitle:function(c){return u("title",c)},setIncludeSelection:function(c){return a.includeSelection=c},setIncludeRowDrag:function(c){return a.includeRowDrag=c},setIncludeDndSource:function(c){return a.includeDndSource=c},setRenderDetails:function(c,d,f){return a.setRenderDetails(c,d,f)},setEditDetails:function(c,d,f){return a.setEditDetails(c,d,f)},getCellEditor:function(){return a.cellEditor||null},getCellRenderer:function(){return a.cellRenderer||null},getParentOfValue:function(){return a.getParentOfValue()}};return a.cellCtrl=r,r.setComp(p,a.getGui(),a.eCellWrapper,o,s),a}return wf(t,n),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,r,o){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRen
2der=null==this.firstRender;var s=this.refreshWrapper(!1);e?!o&&!s&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(r))}},t.prototype.setEditDetails=function(e,r,o){e?this.createCellEditorInstance(e,r,o):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var r=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=r||this.forceWrapper,i=o&&null==this.eCellWrapper;i&&(this.eCellWrapper=me('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var s=!o&&null!=this.eCellWrapper;s&&(Bt(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var a=!e&&o,l=a&&null==this.eCellValue;l&&(this.eCellValue=me('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var u=!a&&null!=this.eCellValue;u&&(Bt(this.eCellValue),this.eCellValue=void 0);var p=i||s||l||u;return p&&this.removeControls(),!e&&r&&this.addControls(),p},t.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),r=[];cn(this.eCellWrapper,!0),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)),r.push(this.checkboxSelectionComp.getCheckboxId())),r.push(e),un(this.getGui(),r.join(" "))},t.prototype.createCellEditorInstance=function(e,r,o){var i=this,s=this.editorVersion,a=e.newAgStackInstance();if(a){var l=e.params;a.then(function(p){return i.afterCellEditorCreated(s,p,l,r,o)}),M(this.cellEditor)&&l.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var r=this.getParentOfValue();ke(r);var o=null!=e?it(e):null;null!=o&&(r.innerHTML=o)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),Bt(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),Bt(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh||this.cellRendererClass!==e.componentClass)return!1;var r=this.cellRenderer.refresh(e.params);return!0===r||void 0===r},t.prototype.createCellRendererInstance=function(e){var r=this,o=this.beans.gridOptionsWrapper.isAngularCompileRows(),i=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),a=this.rendererVersion,l=e.componentClass,u=function(){if(r.rendererVersion===a&&r.isAlive()){var c=e.newAgStackInstance(),d=r.afterCellRendererCreated.bind(r,a,l);c&&c.then(d)}};o||i||!this.firstRender?u():this.beans.animationFrameService.createTask(u,this.rowNode.rowIndex,"createTasksP2")},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,r,o){if(this.isAlive()&&e===this.rendererVersion){if(this.cellRenderer=o,this.cellRendererClass=r,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var s=this.getParentOfValue();ke(s),s.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(o)},t.prototype.afterCellEditorCreated=function(e,r,o,i,s){if(e!==this.editorVersion)this.beans.context.destroyBean(r);else{if(r.isCancelBeforeStart&&r.isCancelBeforeStart())return this.beans.context.destroyBean(r),void this.cellCtrl.
2stopEditing();if(!r.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(r);this.cellEditor=r,this.cellEditorGui=r.getGui(),i||void 0!==r.isPopup&&r.isPopup()?(i||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(o,s)):this.addInCellEditor(),r.afterGuiAttached&&r.afterGuiAttached()}},t.prototype.addInCellEditor=function(){var e=this.getGui(),r=this.beans.gridOptionsWrapper.getDocument();e.contains(r.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,r){var o=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 i=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new mf(e));var s=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&s.appendChild(this.cellEditorGui);var a=this.beans.popupService,l=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),u=r??(i.getPopupPosition?i.getPopupPosition():"over"),p={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:s,keepWithinBounds:!0},c="under"===u?a.positionPopupUnderComponent.bind(a,p):a.positionPopupOverComponent.bind(a,p),d=this.beans.gridOptionsWrapper.getLocaleTextFunc(),f=a.addPopup({modal:l,eChild:s,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:d("ariaLabelCellEditor","Cell Editor")});f&&(this.hideEditorPopup=f.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),n.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),r=this.beans.gridOptionsWrapper.getDocument();e.contains(r.activeElement)&&mo()&&e.focus({preventScroll:!0}),ke(this.getParentOfValue())},t}(j),Ef=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),_f=function(n){function t(e,r,o){var i=n.call(this)||this;i.cellComps={},i.beans=r,i.rowCtrl=e,i.setTemplate('<div comp-id="'+i.getCompId()+'" style="'+i.getInitialStyle()+'"/>');var s=i.getGui(),a=s.style;return e.setComp({setDomOrder:function(u){return i.domOrder=u},setCellCtrls:function(u){return i.setCellCtrls(u)},showFullWidth:function(u){return i.showFullWidth(u)},getFullWidthCellRenderer:function(){return i.getFullWidthCellRenderer()},addOrRemoveCssClass:function(u,p){return i.addOrRemoveCssClass(u,p)},setUserStyles:function(u){return on(s,u)},setTop:function(u){return a.top=u},setTransform:function(u){return a.transform=u},setRowIndex:function(u){return s.setAttribute("row-index",u)},setRole:function(u){return be(s,u)},setRowId:function(u){return s.setAttribute("row-id",u)},setRowBusinessKey:function(u){return s.setAttribute("row-business-key",u)},setTabIndex:function(u){return s.setAttribute("tabindex",u.toString())}},i.getGui(),o),i}return Ef(t,n),t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),r=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+r},t.prototype.showFullWidth=function(e){var r=this,i=e.newAgStackInstance();i&&i.then(function(s){if(r.isAlive()){var a=s.getGui();r.getGui().appendChild(a),r.rowCtrl.setupDetailRowAutoHeight(a),r.setFullWidthRowComp(s)}else r.beans.context.destroyBean(s)})},t.prototype.setCellCtrls=function(e){var r=this,o=Object.assign({},this.cellComps);e.forEach(function(s){var a=s.getInstanceId();null==r.cellComps[a]?r.newCellComp(s):o[a]=null});var i=tt(o).filter(function(s){return null!=s});this.destroyCells(i),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var r=this;if(this.domOrder){var o=[];e.forEach(function(i){var s=r.cellComps[i.getInstanceId()];s&&o.push(s.getGui())}),rn(this.getGui(),o)}},t.prototype.newCellComp=function(e){var r=new Rf(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=r,this.getGui().appendChild(r.getGui())},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=tt(this.cellComps).filter(function(r){return null!=r});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var r=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){r.fullWidthCellRenderer=r.beans.context.destroyBean(r.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var r=this;
2e.forEach(function(o){if(o){var i=o.getCtrl().getInstanceId();r.cellComps[i]===o&&(o.detach(),o.destroy(),r.cellComps[i]=null)}})},t}(j),Sf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),jn=function(){return jn=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},jn.apply(this,arguments)},dr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Pf=function(n){function t(){var e=n.call(this,function Of(){var n=j.elementGettingCreated.getAttribute("name"),t=kn.getRowContainerCssClasses(n);return n===S.CENTER?'<div class="'+t.wrapper+'" ref="eWrapper" role="presentation">\n                <div class="'+t.viewport+'" ref="eViewport" role="presentation">\n                    <div class="'+t.container+'" ref="eContainer"></div>\n                </div>\n            </div>':n===S.TOP_CENTER||n===S.STICKY_TOP_CENTER||n===S.BOTTOM_CENTER?'<div class="'+t.viewport+'" ref="eViewport" role="presentation">\n                <div class="'+t.container+'" ref="eContainer"></div>\n            </div>':'<div class="'+t.container+'" ref="eContainer"></div>'}())||this;return e.rowComps={},e.name=j.elementGettingCreated.getAttribute("name"),e.type=function of(n){switch(n){case S.CENTER:case S.TOP_CENTER:case S.STICKY_TOP_CENTER:case S.BOTTOM_CENTER:return Ze.CENTER;case S.LEFT:case S.TOP_LEFT:case S.STICKY_TOP_LEFT:case S.BOTTOM_LEFT:return Ze.LEFT;case S.RIGHT:case S.TOP_RIGHT:case S.STICKY_TOP_RIGHT:case S.BOTTOM_RIGHT:return Ze.RIGHT;case S.FULL_WIDTH:case S.TOP_FULL_WIDTH:case S.STICKY_TOP_FULL_WIDTH:case S.BOTTOM_FULL_WIDTH:return Ze.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(e.name),e}return Sf(t,n),t.prototype.postConstruct=function(){var e=this,r={setViewportHeight:function(i){return e.eViewport.style.height=i},setRowCtrls:function(i){return e.setRowCtrls(i)},setDomOrder:function(i){e.domOrder=i},setContainerWidth:function(i){return e.eContainer.style.width=i}};this.createManagedBean(new kn(this.name)).setComp(r,this.eContainer,this.eViewport,this.eWrapper)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var r=this,o=jn({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,e.forEach(function(s){var a=s.getInstanceId(),l=o[a];if(l)r.rowComps[a]=l,delete o[a],r.ensureDomOrder(l.getGui());else{var u=r.newRowComp(s);r.rowComps[a]=u,r.appendRow(u.getGui())}}),tt(o).forEach(function(s){r.eContainer.removeChild(s.getGui()),s.destroy()}),be(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?ga(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(tn(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},t.prototype.newRowComp=function(e){return kn.getPinned(this.name),new _f(e,this.beans,this.type)},dr([h("beans")],t.prototype,"beans",void 0),dr([T("eViewport")],t.prototype,"eViewport",void 0),dr([T("eContainer")],t.prototype,"eContainer",void 0),dr([T("eWrapper")],t.prototype,"eWrapper",void 0),dr([I],t.prototype,"postConstruct",null),dr([Ee],t.prototype,"preDestroy",null),t}(j),El=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Tf=function(){function n(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return n.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var r=t.dragItem.columns;
2r&&r.forEach(function(o){o.isPrimary()&&(o.isAnyFunctionActive()||(o.isAllowValue()?e.columnsToAggregate.push(o):o.isAllowRowGroup()?e.columnsToGroup.push(o):o.isAllowPivot()&&e.columnsToPivot.push(o)))})}},n.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?Se.ICON_PINNED:Se.ICON_MOVE:null},n.prototype.onDragLeave=function(t){this.clearColumnsList()},n.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},n.prototype.onDragging=function(t){},n.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},El([h("columnModel")],n.prototype,"columnModel",void 0),El([h("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),n}(),kr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Af=function(){function n(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=t,this.eContainer=e,this.centerContainer=!O(t)}return n.prototype.init=function(){var t=this;this.ctrlsService.whenReady(function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()})},n.prototype.getIconName=function(){return this.pinned?Se.ICON_PINNED:Se.ICON_MOVE},n.prototype.onDragEnter=function(t){var e=t.dragItem.columns;if(t.dragSource.type===Me.ToolPanel)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var o=t.dragItem.visibleState,i=(e||[]).filter(function(s){return o[s.getId()]});this.setColumnsVisible(i,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},n.prototype.onDragLeave=function(t){this.ensureIntervalCleared()},n.prototype.setColumnsVisible=function(t,e,r){if(void 0===r&&(r="api"),t){var o=t.filter(function(i){return!i.getColDef().lockVisible});this.columnModel.setColumnsVisible(o,e,r)}},n.prototype.setColumnsPinned=function(t,e,r){if(void 0===r&&(r="api"),t){var o=t.filter(function(i){return!i.getColDef().lockPinned});this.columnModel.setColumnsPinned(o,e,r)}},n.prototype.onDragStop=function(){this.ensureIntervalCleared()},n.prototype.normaliseX=function(t){return this.gridOptionsWrapper.isEnableRtl()&&(t=this.eContainer.clientWidth-t),this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},n.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),r=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=t<e+50,this.needToMoveLeft=t>r-50):(this.needToMoveLeft=t<e+50,this.needToMoveRight=t>r-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},n.prototype.onDragging=function(t,e,r){var o=this;if(void 0===e&&(e=!1),void 0===r&&(r=!1),this.lastDraggingEvent=t,!M(t.hDirection)){var i=this.normaliseX(t.x);e||this.checkCenterForScrolling(i);var s=this.normaliseDirection(t.hDirection),a=t.dragSource.type,l=t.dragSource.getDragItem().columns;l=l.filter(function(u){return!u.getColDef().lockPinned||u.getPinned()==o.pinned}),this.attemptMoveColumns(a,l,s,i,e,r)}},n.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case ft.Left:return ft.Right;case ft.Right:return ft.Left;default:console.error("AG Grid: Unknown direction "+t)}},n.prototype.calculateOldIndex=function(t){var e=this.columnModel.getAllGridColumns(),r=Vs(t.map(function(l){return e.indexOf(l)})),o=r[0];return ie(r)-o!=r.length-1?null:o},n.prototype.attemptMoveColumns=function(t,e,r,o,i,s){var a=r===ft.Left,l=r===ft.Right;if(t===Me.HeaderCell){var u=[];e.forEach(function(N){for(var B=null,$=N.getParent();null!=$&&1===$.getDisplayedLeafColumns().length;)B=$,$=$.getParent();
2null!=B?B.getLeafColumns().forEach(function(ne){u.includes(ne)||u.push(ne)}):u.includes(N)||u.push(N)}),e=u}var p=e.slice();this.columnModel.sortColumnsLikeGridColumns(p);var c=this.calculateValidMoves(p,l,o),d=this.calculateOldIndex(p);if(0!==c.length){var f=c[0],v=null!==d&&!i;if(t==Me.HeaderCell&&(v=null!==d),!v||s||!(a&&f>=d||l&&f<=d)){for(var y=this.columnModel.getAllDisplayedColumns(),C=[],R=null,w=0;w<c.length;w++){var A=c[w],b=this.columnModel.getProposedColumnOrder(p,A);if(this.columnModel.doesOrderPassRules(b)){var x=b.filter(function(N){return y.includes(N)});if(null===R)R=x;else if(!H.areEqual(x,R))break;var V=this.groupFragCount(b);C.push({move:A,fragCount:V})}}0!==C.length&&(C.sort(function(N,B){return N.fragCount-B.fragCount}),this.columnModel.moveColumns(p,C[0].move,"uiColumnDragged"))}}},n.prototype.groupFragCount=function(t){function e(s){for(var a=[],l=s.getOriginalParent();null!=l;)a.push(l),l=l.getOriginalParent();return a}for(var r=0,o=function(s){var a,l=e(t[s]),u=e(t[s+1]);a=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i}(l.length>u.length?[l,u]:[u,l],2),u=a[1],(l=a[0]).forEach(function(p){-1===u.indexOf(p)&&r++})},i=0;i<t.length-1;i++)o(i);return r},n.prototype.calculateValidMoves=function(t,e,r){if(this.gridOptionsWrapper.isSuppressMovableColumns()||t.some(function(U){return U.getColDef().suppressMovable}))return[];var y,i=this.columnModel.getDisplayedColumns(this.pinned),s=this.columnModel.getAllGridColumns(),a=i.filter(function(U){return Be(t,U)}),l=i.filter(function(U){return!Be(t,U)}),u=s.filter(function(U){return!Be(t,U)}),p=0,c=r;if(e){var d=0;a.forEach(function(U){return d+=U.getActualWidth()}),c-=d}if(c>0){for(var f=0;f<l.length&&!((c-=l[f].getActualWidth())<0);f++)p++;e&&p++}p>0?y=u.indexOf(l[p-1])+1:-1===(y=u.indexOf(l[0]))&&(y=0);var R=[y],w=function(U,N){return U-N};if(e){for(var A=y+1,b=s.length-1;A<=b;)R.push(A),A++;R.sort(w)}else{b=s.length-1;for(var x=s[A=y];A<=b&&this.isColumnHidden(i,x);)A++,R.push(A),x=s[A];for(A=y-1;A>=0;)R.push(A),A--;R.sort(w).reverse()}return R},n.prototype.isColumnHidden=function(t,e){return t.indexOf(e)<0},n.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.dragAndDropService.setGhostIcon(this.needToMoveLeft?Se.ICON_LEFT:Se.ICON_RIGHT,!0))},n.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Se.ICON_MOVE))},n.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var e=null,r=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=r.scrollHorizontally(-t):this.needToMoveRight&&(e=r.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var i=this.lastDraggingEvent.dragItem.columns.filter(function(a){return!a.getColDef().lockPinned});i.length>0&&(this.dragAndDropService.setGhostIcon(Se.ICON_PINNED),this.failedMoveAttempts>7)&&(this.setColumnsPinned(i,this.needToMoveLeft?m.PINNED_LEFT:m.PINNED_RIGHT,"uiColumnDragged"),this.dragAndDropService.nudge())}},kr([h("columnModel")],n.prototype,"columnModel",void 0),kr([h("dragAndDropService")],n.prototype,"dragAndDropService",void 0),kr([h("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),kr([h("ctrlsService")],n.prototype,"ctrlsService",void 0),kr([I],n.prototype,"init",null),n}(),bf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ur=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ff=function(n){function t(e,r){var o=n.call(this)||this;return o.pinned=e,o.eContainer=r,o}return bf(t,n),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){switch(e.pinned){case m.PINNED_LE
vendor: 8,900 bytes, line 2
2FT:e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.leftRowContainerCtrl.getContainerElement()],[r.bottomLeftRowContainerCtrl.getContainerElement()],[r.topLeftRowContainerCtrl.getContainerElement()]];break;case m.PINNED_RIGHT:e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.rightRowContainerCtrl.getContainerElement()],[r.bottomRightRowContainerCtrl.getContainerElement()],[r.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.centerRowContainerCtrl.getViewportElement()],[r.bottomCenterRowContainerCtrl.getViewportElement()],[r.topCenterRowContainerCtrl.getViewportElement()]]}})},t.prototype.isInterestedIn=function(e){return e===Me.HeaderCell||e===Me.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new Af(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Tf(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===Me.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},Ur([h("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Ur([h("columnModel")],t.prototype,"columnModel",void 0),Ur([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Ur([I],t.prototype,"postConstruct",null),Ur([I],t.prototype,"init",null),t}(F),If=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},_l=function(){function n(){}return n.getHeaderClassesFromColDef=function(t,e,r,o){return M(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,r,o)},n.getToolPanelClassesFromColDef=function(t,e,r,o){return M(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,e,r,o)},n.getClassParams=function(t,e,r,o){return{colDef:t,column:r,columnGroup:o,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()}},n.getColumnClassesFromCollDef=function(t,e,r,o,i){return M(t)?[]:"string"==typeof(s="function"==typeof t?t(this.getClassParams(e,r,o,i)):t)?[s]:Array.isArray(s)?function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(If(arguments[t]));return n}(s):[];var s},n}(),xf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ko=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Lf=function(n){function t(e){var r=n.call(this,t.TEMPLATE,e)||this;return r.headerCompVersion=0,r.column=e.getColumnGroupChild(),r.pinned=e.getPinned(),r}return xf(t,n),t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=function(a,l,u){var p=u||r;null!=l&&""!=l?p.setAttribute(a,l):p.removeAttribute(a)};this.ctrl.setComp({setWidth:function(a){return r.style.width=a},addOrRemoveCssClass:function(a,l){return e.addOrRemoveCssClass(a,l)},setColId:function(a){return o("col-id",a)},setTitle:function(a){return o("title",a)},setAriaDescription:function(a){return Oa(r,a)},setAriaSort:function(a){return a?Ia(r,a):Ga(r)},setUserCompDetails:function(a){return e.setUserCompDetails(a)},getUserCompInstance:function(){return e.headerComp}},this.getGui(),this.eResize,this.eHeaderCompWrapper);var s=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",s)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var r=this;this.headerCompVersion++;var o=this.headerCompVersion;e.newAgStackInstance().then(function(i){return r.afterCompCreated(o,i)})},t.prototype.afterCompCreated=function(e,r){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=r,this.headerCompGui=r.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(r)},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 ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>\n        </div>',Ko([T("eResize")],t.prototype,"eResize",void 0),Ko([T("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),Ko([I],t.prototype,"postConstruct",null),Ko([Ee],t.prototype,"destroyHeaderComp",null),t}(Ln),Mf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),zn=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Nf=function(n){function t(e){return n.call(this,t.TEMPLATE,e)||this}return Mf(t,n),t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=function(s,a){return null!=a?r.setAttribute(s,a):r.removeAttribute(s)};this.ctrl.setComp({addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},addOrRemoveResizableCssClass:function(s,a){return e.eResize.classList.toggle(s,a)},setWidth:function(s){return r.style.width=s},setColId:function(s){return r.setAttribute("col-id",s)},setAriaExpanded:function(s){return o("aria-expanded",s)},setTitle:function(s){return o("title",s)},setUserCompDetails:function(s){return e.setUserCompDetails(s)}},r,this.eResize)},t.prototype.setUserCompDetails=function(e){var r=this;e.newAgStackInstance().then(function(o){return r.afterHeaderCompCreated(o)})},t.prototype.afterHeaderCompCreated=function(e){var r=this,o=function(){return r.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(o),this.ctrl.setDragSource(e.getGui())):o()},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>',zn([h("userComponentFactory")],t.prototype,"userComponentFactory",void 0),zn([T("eResize")],t.prototype,"eResize",void 0),zn([I],t.prototype,"postConstruct",null),t}(Ln),Hf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},He=function(n){return n.COLUMN_GROUP="group",n.COLUMN="column",n.FLOATING_FILTER="filter",n}(He||{}),Wf=function(n){function t(e){var r=n.call(this)||this;r.headerComps={};var o=e.getType()==He.COLUMN_GROUP?"ag-header-row-column-group":e.getType()==He.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return r.setTemplate('<div class="ag-header-row '+o+'" role="row"></div>'),r.ctrl=e,r}return Hf(t,n),t.prototype.init=function(){var e=this;
2this.ctrl.setComp({setTransform:function(o){return e.getGui().style.transform=o},setHeight:function(o){return e.getGui().style.height=o},setTop:function(o){return e.getGui().style.top=o},setHeaderCtrls:function(o){return e.setHeaderCtrls(o)},setWidth:function(o){return e.getGui().style.width=o},setAriaRowIndex:function(o){return fn(e.getGui(),o)}})},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var r=this;if(this.isAlive()){var o=this.headerComps;if(this.headerComps={},e.forEach(function(l){var u=l.getInstanceId(),p=o[u];delete o[u],null==p&&(p=r.createHeaderComp(l),r.getGui().appendChild(p.getGui())),r.headerComps[u]=p}),re(o,function(l,u){r.getGui().removeChild(u.getGui()),r.destroyBean(u)}),this.gridOptionsWrapper.isEnsureDomOrder()){var s=tt(this.headerComps);s.sort(function(l,u){return l.getCtrl().getColumnGroupChild().getLeft()-u.getCtrl().getColumnGroupChild().getLeft()});var a=s.map(function(l){return l.getGui()});rn(this.getGui(),a)}}},t.prototype.createHeaderComp=function(e){var r;switch(this.ctrl.getType()){case He.COLUMN_GROUP:r=new Nf(e);break;case He.FLOATING_FILTER:r=new zd(e);break;default:r=new Lf(e)}return this.createBean(r),r.setParentComponent(this),r},Sl([I],t.prototype,"init",null),Sl([Ee],t.prototype,"destroyHeaderCtrls",null),t}(j),Vf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Kn=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Bf=0,$o=function(n){function t(e,r){var o=n.call(this)||this;return o.lastFocusEvent=null,o.columnGroupChild=e,o.parentRowCtrl=r,o.instanceId=e.getUniqueId()+"-"+Bf++,o}return Vf(t,n),t.prototype.shouldStopEventPropagation=function(e){var r=this.focusService.getFocusedHeader();return Na(this.gridOptionsWrapper,e,r.headerRowIndex,r.column)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsWrapper.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var r=this.getWrapperHasFocus();switch(e.key){case P.PAGE_DOWN:case P.PAGE_UP:case P.PAGE_HOME:case P.PAGE_END:r&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,r=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,r,this),this.addDestroyFunc(function(){return e.gridOptionsWrapper.setDomData(e.eGui,r,null)})},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},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",Kn([h("focusService")],t.prototype,"focusService",void 0),Kn([h("beans")],t.prototype,"beans",void 0),Kn([h("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(F),ee=function(n){return n.EVERYTHING="group",n.FILTER="filter",n.SORT="sort",n.MAP="map",n.AGGREGATE="aggregate",n.FILTER_AGGREGATES="filter_aggregates",n.PIVOT="pivot",n.NOTHING="nothing",n}(ee||{}),Z=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};function qt(n){return null!=n&&null!=n.getFrameworkComponentInstance?n.getFrameworkComponentInstance():n}var kf=function(){function n(){this.detailGridInfoMap={},this.destroyCalled=!1}return n.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},n.prototype.registerSideBarComp=function(t){this.sideBarComp=t},n.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case m.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case m.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case m.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady(function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})},n.prototype.__getAlignedGridService=function(){return this.alignedGridsService},n.prototype.__getContext=function(){return this.context},n.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},n.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},n.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},n.prototype.forEachDetailGridInfo=function(t){var e=0;re(this.detailGridInfoMap,function(r,o){O(o)&&(t(o,e),e++)})}
2,n.prototype.getDataAsCsv=function(t){if(k.assertRegistered(W.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},n.prototype.exportDataAsCsv=function(t){k.assertRegistered(W.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},n.prototype.getExcelExportMode=function(t){var e=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},e,t).exportMode},n.prototype.getDataAsExcel=function(t){if(k.assertRegistered(W.ExcelExportModule,"api.getDataAsExcel")){var e=this.getExcelExportMode(t);return this.excelCreator.getFactoryMode(e)===Vo.MULTI_SHEET?void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`"):this.excelCreator.getDataAsExcel(t)}},n.prototype.exportDataAsExcel=function(t){if(k.assertRegistered(W.ExcelExportModule,"api.exportDataAsExcel")){var e=this.getExcelExportMode(t);if(this.excelCreator.getFactoryMode(e)===Vo.MULTI_SHEET)return void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`");this.excelCreator.exportDataAsExcel(t)}},n.prototype.getSheetDataForExcel=function(t){if(k.assertRegistered(W.ExcelExportModule,"api.getSheetDataForExcel")){var e=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(Vo.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},n.prototype.getMultipleSheetsAsExcel=function(t){if(k.assertRegistered(W.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},n.prototype.exportMultipleSheetsAsExcel=function(t){if(k.assertRegistered(W.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},n.prototype.setEnterpriseDatasource=function(t){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(t)},n.prototype.setGridAriaProperty=function(t,e){if(t){var r=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-"+t;null===e?r.removeAttribute(o):r.setAttribute(o,e)}},n.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+m.ROW_MODEL_TYPE_SERVER_SIDE+"'")},n.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gridOptionsWrapper.setProperty("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '"+m.ROW_MODEL_TYPE_SERVER_SIDE+"'")},n.prototype.setDatasource=function(t){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(t):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+m.ROW_MODEL_TYPE_INFINITE+"'")},n.prototype.setViewportDatasource=function(t){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(t):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+m.ROW_MODEL_TYPE_VIEWPORT+"'")},n.prototype.setRowData=function(t){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(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(t))},n.prototype.setFloatingTopRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(t)},n.prototype.setFloatingBottomRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(t)},n.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},n.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},n.prototype.getFloatingTopRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(t)},n.prototype.getFloatingBottomRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(t)},n.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},n.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},n.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},n.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},n.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},n.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},n.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api"),this.columnModel.setColumnDefs(t,e)},n.prototype.setAutoGroupColumnDef=function(t,e){this.gridOptionsWrapper.setProperty(G.PROP_AUTO_GROUP_COLUMN_DEF,t,!0)},n.prototype.setDefaultColDef=function(t,e){this.gridOptionsWrapper.setProperty(G.PROP_DEFAULT_COL_DEF,t,!0)},n.prototype.expireValueCache=function(){this.valueCache.expire()},n.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature
2().getVScrollPosition()},n.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},n.prototype.setAlwaysShowHorizontalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",t)},n.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},n.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},n.prototype.refreshCells=function(t){void 0===t&&(t={}),Array.isArray(t)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(t)},n.prototype.flashCells=function(t){void 0===t&&(t={}),this.rowRenderer.flashCells(t)},n.prototype.redrawRows=function(t){void 0===t&&(t={}),this.rowRenderer.redrawRows(t?t.rowNodes:void 0)},n.prototype.setFunctionsReadOnly=function(t){this.gridOptionsWrapper.setProperty("functionsReadOnly",t)},n.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(t){return t.refresh()})},n.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},n.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},n.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},n.prototype.getModel=function(){return this.rowModel},n.prototype.setRowNodeExpanded=function(t,e){t&&t.setExpanded(e)},n.prototype.onGroupExpandedOrCollapsed=function(t){M(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),O(t)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:ee.MAP})},n.prototype.refreshInMemoryRowModel=function(t){console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(t)},n.prototype.refreshClientSideRowModel=function(t){M(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var e=ee.EVERYTHING,r={everything:ee.EVERYTHING,group:ee.EVERYTHING,filter:ee.FILTER,map:ee.MAP,aggregate:ee.AGGREGATE,sort:ee.SORT,pivot:ee.PIVOT};if(O(t)&&(e=r[t]),M(e))console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(r).join(", "));else{var o=!this.gridOptionsWrapper.isSuppressAnimationFrame();this.clientSideRowModel.refreshModel({step:e,keepRenderedRows:!0,keepEditingRows:!0,animate:o})}},n.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},n.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},n.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},n.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},n.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")},n.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")},n.prototype.getToolPanelInstance=function(t){if(this.sideBarComp)return qt(this.sideBarComp.getToolPanelInstance(t));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},n.prototype.addVirtualRowListener=function(t,e,r){"string"!=typeof t&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(t,e,r)},n.prototype.addRenderedRowListener=function(t,e,r){"virtualRowSelected"===t&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n                selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(t,e,r)},n.prototype.setQuickFilter=function(t){this.filterManager.setQuickFilter(t)},n.prototype.selectIndex=function(t,e,r){console.warn("AG Grid: do n
2ot use api for selection, call rowNode.setSelected(value) instead"),r&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(t,e)},n.prototype.deselectIndex=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(t)},n.prototype.selectNode=function(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),r&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!0,clearSelection:!e})},n.prototype.deselectNode=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!1})},n.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},n.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},n.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},n.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},n.prototype.recomputeAggregates=function(){M(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:ee.AGGREGATE})},n.prototype.sizeColumnsToFit=function(t){this.gridBodyCtrl.sizeColumnsToFit(t)},n.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},n.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},n.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},n.prototype.isNodeSelected=function(t){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),t.isSelected()},n.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},n.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},n.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},n.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},n.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},n.prototype.ensureColIndexVisible=function(t){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},n.prototype.ensureColumnVisible=function(t,e){void 0===e&&(e="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,e)},n.prototype.ensureIndexVisible=function(t,e){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,e)},n.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,e)},n.prototype.forEachLeafNode=function(t){M(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(t)},n.prototype.forEachNode=function(t){this.rowModel.forEachNode(t)},n.prototype.forEachNodeAfterFilter=function(t){M(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(t)},n.prototype.forEachNodeAfterFilterAndSort=function(t){M(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},n.prototype.getFilterInstance=function(t,e){var r=this.getFilterInstanceImpl(t,function(i){if(e){var s=qt(i);e(s)}});return qt(r)},n.prototype.getFilterInstanceImpl=function(t,e){var r=this.columnModel.getPrimaryColumn(t);if(r){var o=this.filterManager.getFilterComponent(r,"NO_UI"),i=o&&o.resolveNow(null,function(s){return s});return i?setTimeout(e,0,i):o&&o.then(function(s){e(s)}),i}},n.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"filterDestroyed")},n.prototype.getStatusPanel=function(t){if(this.statusBarService)return qt(this.statusBarService.getStatusPanel(t))},n.prototype.getColumnDef=function(t){var e=this.columnModel.getPrimaryColumn(t);return e?e.getColDef():null},n.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},n.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},n.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},n.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},n.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},n.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},n.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},n.prototype.setFocusedCell=function(t,e,r){this.focusService.setFocusedCell({rowIndex:t,column:e,rowPinned:r,forceBrowserFocus:!0})},n.prototype.setSuppressRowDrag=function(t){this.gridOptionsWrapper.setProperty(G.PROP_SUPPRESS_ROW_DRAG,t)},n.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsWrapper.setProperty(G.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,t)},n.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsWrapper.setProperty(G.PROP_SUPPRESS_ROW_CLICK_SELECTION,t)},n.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature
2().addRowDropZone(t)},n.prototype.removeRowDropZone=function(t){var e=this.dragAndDropService.findExternalZone(t);e&&this.dragAndDropService.removeDropTarget(e)},n.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},n.prototype.setHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(G.PROP_HEADER_HEIGHT,t)},n.prototype.setDomLayout=function(t){this.gridOptionsWrapper.setProperty(G.PROP_DOM_LAYOUT,t)},n.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},n.prototype.setFillHandleDirection=function(t){this.gridOptionsWrapper.setProperty(G.PROP_FILL_HANDLE_DIRECTION,t)},n.prototype.setGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GROUP_HEADER_HEIGHT,t)},n.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsWrapper.setProperty(G.PROP_FLOATING_FILTERS_HEIGHT,t)},n.prototype.setPivotHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(G.PROP_PIVOT_HEADER_HEIGHT,t)},n.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(G.PROP_PIVOT_GROUP_HEADER_HEIGHT,t)},n.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsWrapper.setProperty(G.PROP_IS_EXTERNAL_FILTER_PRESENT,t)},n.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsWrapper.setProperty(G.PROP_DOES_EXTERNAL_FILTER_PASS,t)},n.prototype.setNavigateToNextCell=function(t){this.gridOptionsWrapper.setProperty(G.PROP_NAVIGATE_TO_NEXT_CELL,t)},n.prototype.setTabToNextCell=function(t){this.gridOptionsWrapper.setProperty(G.PROP_TAB_TO_NEXT_CELL,t)},n.prototype.setTabToNextHeader=function(t){this.gridOptionsWrapper.setProperty(G.PROP_TAB_TO_NEXT_HEADER,t)},n.prototype.setNavigateToNextHeader=function(t){this.gridOptionsWrapper.setProperty(G.PROP_NAVIGATE_TO_NEXT_HEADER,t)},n.prototype.setRowGroupPanelShow=function(t){this.gridOptionsWrapper.setProperty("rowGroupPanelShow",t)},n.prototype.setGroupRowAggNodes=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GROUP_ROW_AGG_NODES,t)},n.prototype.setGetGroupRowAgg=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_GROUP_ROW_AGG,t)},n.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_BUSINESS_KEY_FOR_NODE,t)},n.prototype.setGetChildCount=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_CHILD_COUNT,t)},n.prototype.setProcessRowPostCreate=function(t){this.gridOptionsWrapper.setProperty(G.PROP_PROCESS_ROW_POST_CREATE,t)},n.prototype.setGetRowNodeId=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_ROW_NODE_ID,t)},n.prototype.setGetRowId=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_ROW_ID,t)},n.prototype.setGetRowClass=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_ROW_CLASS,t)},n.prototype.setIsFullWidthCell=function(t){this.gridOptionsWrapper.setProperty(G.PROP_IS_FULL_WIDTH_CELL,t)},n.prototype.setIsFullWidthRow=function(t){this.gridOptionsWrapper.setProperty(G.PROP_IS_FULL_WIDTH_ROW,t)},n.prototype.setIsRowSelectable=function(t){this.gridOptionsWrapper.setProperty(G.PROP_IS_ROW_SELECTABLE,t)},n.prototype.setIsRowMaster=function(t){this.gridOptionsWrapper.setProperty(G.PROP_IS_ROW_MASTER,t)},n.prototype.setPostSort=function(t){this.gridOptionsWrapper.setProperty(G.PROP_POST_SORT,t)},n.prototype.setPostSortRows=function(t){this.gridOptionsWrapper.setProperty(G.PROP_POST_SORT_ROWS,t)},n.prototype.setGetDocument=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_DOCUMENT,t)},n.prototype.setGetContextMenuItems=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_CONTEXT_MENU_ITEMS,t)},n.prototype.setGetMainMenuItems=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_MAIN_MENU_ITEMS,t)},n.prototype.setProcessCellForClipboard=function(t){this.gridOptionsWrapper.setProperty(G.PROP_PROCESS_CELL_FOR_CLIPBOARD,t)},n.prototype.setSendToClipboard=function(t){this.gridOptionsWrapper.setProperty(G.PROP_SEND_TO_CLIPBOARD,t)},n.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsWrapper.setProperty(G.PROP_PROCESS_CELL_FROM_CLIPBOARD,t)},n.prototype.setProcessSecondaryColDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead"),this.setProcessPivotResultColDef(t)},n.prototype.setProcessSecondaryColGroupDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead"),this.setProcessPivotResultColGroupDef(t)},n.prototype.setProcessPivotResultColDef=function(t){this.gridOptionsWrapper.setProperty(G.PROP_PROCESS_PIVOT_RESULT_COL_DEF,t)},n.prototype.setProcessPivotResultColGroupDef=function(t){this.gridOptionsWrapper.setProperty(G.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF,t)},n.prototype.setPostProcessPopup=function(t){this.gridOptionsWrapper.setProperty(G.PROP_POST_PROCESS_POPUP,t)},n.prototype.setDefaultGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(G.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,t)},n.prototype.setInitialGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(G.PROP_INITIAL_GROUP_ORDER_COMPARATOR,t)},n.prototype.setGetChartToolbarItems=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_CHART_TOOLBAR_ITEMS,t)},n.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsWrapper.setProperty(G.PROP_PAGINATION_NUMBER_FORMATTER,t)},n.prototype.setGetServerSideStoreParams=function(t){this.setGetServerSideGroupLevelParams(t)},n.prototype.setGetServerSideGroupLevelParams=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_SERVER_SIDE_GROUP_PARAMS,t)},n.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsWrapper.setProperty(G.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,t)},n.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsWrapper.setProperty(G.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,t)},n.prototype.setIsServerSideGroup=function(t){this.gridOptionsWrapper.setProperty(G.PROP_IS_SERVER_SIDE_GROUP,t)},n.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_SERVER_SIDE_GROUP_KEY,t)},n.prototype.setGetRowStyle=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_ROW_STYLE,t)},n.prototype.setGetRowHeight=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GET_ROW_HEIGHT,t)},n.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},n.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("AG Grid: sideBar is not loaded")},n.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("AG Grid: sideBar is not loaded")},n.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},n.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},n.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},n.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},n.prototype.setSideBar=function(t){this.gridOptionsWrapper.setProperty("sideBar",Qs.parse(t))},n.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsWrapper.setProperty(G.PROP_SUPPRESS_CLIPBOARD_PASTE,t)},n.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},n.prototype.doLayout=function(){q(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")},n.prototype.resetRowHeights=function(){if(O(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()}},n.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GROUP_REMOVE_SINGLE_CHILDREN,t)},n.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,t)},n.prototype.setGroupDisplayType=function(t){this.gridOptionsWrapper.setProperty(G.PROP_GROUP_DISPLAY_TYPE,t)},n.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},n.prototype.getValue=function(t,e){var r=this.columnModel.getPrimaryColumn(t);return M(r)&&(r=this.columnModel.getGridColumn(t)),M(r)?null:this.valueService.getValue(r,e)},n.prototype.addEventListener=function(t,e){var r=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(t,e,r)},n.prototype.addGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(t,e)},n.prototype.removeEventListener=function(t,e){var r=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(t,e,r)},n.prototype.removeGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(t,e)},n.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},n.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},n.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(bs.bind(window,this,"Grid API"),100)},n.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},n.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode(function(t){return t.quickFilterAggregateText=null})},n.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},n.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},n.prototype.camelCaseToHumanReadable=function(t){return xi(t)},n.prototype.addRangeSelection=function(t){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},n.prototype.addCellRange=function(t){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(t)},n.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},n.prototype.undoCellEditing=function(){this.undoRedoService.undo()},n.prototype.redoCellEditing=function(){this.undoRedoService.redo()},n.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},n.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},n.prototype.getChartModels=function(){if(k.assertRegistered(W.RangeSelectionModule,"api.getChartModels")&&k.assertRegistered(W.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},n.prototype.getChartRef=function(t){if(k.assertRegistered(W.RangeSelectionModule,"api.getChartRef")&&k.assertRegistered(W.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},n.prototype.getChartImageDataURL=function(t){if(k.assertRegistered(W.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},n.prototype.downloadChart=function(t){if(k.assertRegistered(W.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(t)},n.prototype.openChartToolPanel=function(t){if(k.assertRegistered(W.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(t)},n.prototype.closeChartToolPanel=function(t){if(k.assertRegistered(W.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(t.chartId)},n.prototype.createRangeChart=function(t){if(k.assertRegistered(W.RangeSelectionModule,"api.createRangeChart")&&k.assertRegistered(W.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},n.prototype.createCrossFilterChart=function(t){if(k.assertRegistered(W.RangeSelectionModule,"api.createCrossFilterChart")&&k.assertRegistered(W.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},n.prototype.restoreChart=function(t,e){if(k.assertRegistered(W.RangeSelectionModule,"api.restoreChart")&&k.assertRegistered(W.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,e)},n.prototype.createPivotChart=function(t){if(k.assertRegistered(W.RangeSelectionModule,"api.createPivotChart")&&k.assertRegistered(W.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},n.prototype.copyToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyToClipboard(t)},n.prototype.copySelectedRowsToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(t)},n.prototype.copySelectedRangeToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(t)},n.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},n.prototype.showColumnMenuAfterButtonClick=function(t,e){var r=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(r,e,"columnMenu")},n.prototype.showColumnMenuAfterMouseClick=function(t,e){var r=this.columnModel.getGridColumn(t);r||(r=this.columnModel.getPrimaryColumn(t)),r?this.menuFactory.showMenuAfterMouseEvent(r,e):console.error("AG Grid: column '"+t+"' not found")},n.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},n.prototype.setPopupParent=function(t){this.gridOptionsWrapper.setProperty(G.PROP_POPUP_PARENT,t)},n.prototype.tabToNextCell=function(t){return this.navigationService.tabToNextCell(!1,t)},n.prototype.tabToPreviousCell=function(t){return this.navigationService.tabToNextCell(!0,t)},n.prototype.getCellRendererInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellRendererInstances(t).map(qt)},n.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t).map(qt)},n.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},n.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.rowRenderer.stopEditing(t)},n.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(e){var r={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e};
2null==t.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var i=this.navigationService.getCellByPosition(r);i&&i.startRowOrCellEdit(t.key,t.charPress)}else console.warn("AG Grid: no column found for "+t.colKey)},n.prototype.addAggFunc=function(t,e){this.aggFuncService&&this.aggFuncService.addAggFunc(t,e)},n.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},n.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},n.prototype.applyServerSideTransaction=function(t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},n.prototype.applyServerSideTransactionAsync=function(t,e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},n.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},n.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.")},n.prototype.applyTransaction=function(t){if(this.clientSideRowModel){var e=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(e.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),e}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},n.prototype.setDeltaSort=function(t){this.gridOptionsWrapper.setProperty("deltaSort",t)},n.prototype.updateRowData=function(t){return q(function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")},"updateRowData deprecated"),this.applyTransaction(t)},n.prototype.applyTransactionAsync=function(t,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,e):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},n.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},n.prototype.batchUpdateRowData=function(t,e){q(function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")},"batchUpdateRowData deprecated"),this.applyTransactionAsync(t,e)},n.prototype.insertItemsAtIndex=function(t,e,r){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:t,update:null,remove:null})},n.prototype.removeItems=function(t,e){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var r=t.map(function(o){return o.data});this.updateRowData({add:null,addIndex:null,update:null,remove:r})},n.prototype.addItems=function(t,e){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:null,update:null,remove:null})},n.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},n.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},n.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},n.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},n.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},n.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},n.prototype.purgeEnterpriseCache=function(t){console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})"),this.purgeServerSideCache(t)},n.prototype.purgeServerSideCache=function(t){void 0===t&&(t=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead."),this.refreshServerSide({route:t,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},n.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.")},n.prototype.refreshServerSideStore=function(t){return q(function(){return console.warn("AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0")},"refreshServerSideStore-renamed"),this.refreshServerSide(t)},n.prototype.getServerSideStoreState=function(){return q(function(){return console.warn("AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0")}
2,"getServerSideStoreState-renamed"),this.getServerSideGroupLevelState()},n.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'."),[])},n.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},n.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},n.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},n.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},n.prototype.setVirtualRowCount=function(t,e){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(t,e)},n.prototype.setInfiniteRowCount=function(t,e){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(t,e)},n.prototype.setRowCount=function(t,e){this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,e):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},n.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},n.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},n.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},n.prototype.checkGridSize=function(){console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.")},n.prototype.getFirstRenderedRow=function(){return console.warn("In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},n.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},n.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},n.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},n.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},n.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},n.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},n.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},n.prototype.paginationSetPageSize=function(t){this.gridOptionsWrapper.setProperty("paginationPageSize",t)},n.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},n.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},n.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},n.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},n.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},n.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},n.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},n.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},n.prototype.setRowClass=function(t){this.gridOptionsWrapper.setProperty(G.PROP_ROW_CLASS,t)},Z([J("immutableService")],n.prototype,"immutableService",void 0),Z([J("csvCreator")],n.prototype,"csvCreator",void 0),Z([J("excelCreator")],n.prototype,"excelCreator",void 0),Z([h("rowRenderer")],n.prototype,"rowRenderer",void 0),Z([h("navigationService")],n.prototype,"navigationService",void 0),Z([h("filterManager")],n.prototype,"filterManager",void 0),Z([h("columnModel")],n.prototype,"columnModel",void 0),Z([h("selectionService")],n.prototype,"selectionService",void 0),Z([h("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Z([h("valueService")],n.prototype,"valueService",void 0),Z([h("alignedGridsService")],n.prototype,"alignedGridsService",void 0),Z([h("eventService")],n.prototype,"eventService",void 0),Z([h("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Z([h("context")],n.prototype,"context",void 0),Z([h("rowModel")],n.prototype,"rowModel",void 0),Z([h("sortController")],n.prototype,"sortController",void 0),Z([h("paginationProxy")],n.prototype,"paginationProxy",void 0),Z([h("focusService")],n.prototype,"focusService",void 0),Z([h("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Z([J("rangeService")],n.prototype,"rangeService",void 0),Z([J("clipboardService")],n.prototype,"clipboardService",void 0),Z([J("aggFuncService")],n.prototype,"aggFuncService",void 0),Z([h("menuFactory")],n.prototype,"menuFactory",void 0),Z([J("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Z([h("valueCache")],n.prototype,"valueCache",void 0),Z([h("animationFrameService")],n.prototype,"animationFrameService",void 0),Z([J("statusBarService")],n.prototype,"statusBarService",void 0),Z([J("chartService")],n.prototype,"chartService",void 0),Z([J("undoRedoService")],n.prototype,"undoRedoService",void 0),Z([J("rowNodeBlockLoader")],n.prototype,"rowNodeBlockLoader",void 0),Z([J("ssrmTransactionManager")],n.prototype,"serverSideTransactionManager",void 0),Z([h("ctrlsService")],n.prototype,"ctrlsService",void 0),Z([J("frameworkComponentWrapper")],n.prototype,"frameworkComponentWrapper",void 0),Z([I],n.prototype,"init",null),Z([Ee],n.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),Z([L("gridApi")],n)}
2(),Uf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),$n=function(n){function t(e,r,o,i){var s=n.call(this)||this;return s.columnOrGroup=e,s.eCell=r,s.ariaEl=s.eCell.querySelector("[role=columnheader]")||s.eCell,s.colsSpanning=i,s.beans=o,s}return Uf(t,n),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?ie(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,X.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,G.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),r=O(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&r&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,r=this.getColumnOrGroup(),o=r.getLeft(),i=r.getOldLeft(),s=this.modifyLeftForPrintLayout(r,i),a=this.modifyLeftForPrintLayout(r,o);this.setLeft(s),this.actualLeft=a,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===a&&e.setLeft(a)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),r=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,r),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,r){if(this.beans.gridOptionsWrapper.getDomLayout()!==m.DOM_LAYOUT_PRINT||e.getPinned()===m.PINNED_LEFT)return r;var i=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===m.PINNED_RIGHT?i+this.beans.columnModel.getBodyContainerWidth()+r:i+r},t.prototype.setLeft=function(e){var r;if(O(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof X)r=this.columnOrGroup;else{var i=this.columnOrGroup.getLeafColumns();if(!i.length)return;i.length>1&&Fa(this.ariaEl,i.length),r=i[0]}var s=this.beans.columnModel.getAriaColumnIndex(r);gn(this.ariaEl,s)},function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([I],t.prototype,"postConstruct",null),t}(F),zf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ol=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Yn=function(n){function t(e,r){var o=n.call(this)||this;return o.columns=e,o.element=r,o}return zf(t,n),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)},Ol([h("columnHoverService")],t.prototype,"columnHoverService",void 0),Ol
vendor: 4,107 bytes, line 2
2([I],t.prototype,"postConstruct",null),t}(F),Kf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),qn=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$f=function(n){function t(e,r){var o=n.call(this,e,r)||this;return o.column=e,o}return Kf(t,n),t.prototype.setComp=function(e,r,o,i){n.prototype.setGui.call(this,r),this.comp=e,this.eButtonShowMainFilter=o,this.eFloatingFilterBody=i;var s=this.column.getColDef();this.active=!(!s.filter&&!s.filterFramework||!s.floatingFilter),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=he("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new Dt(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 s=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(s)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void s.focus();var a=this.findNextColumnWithFloatingFilter(e.shiftKey);a&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:a},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var r=this.beans.columnModel,o=this.column;do{if(!(o=e?r.getDisplayedColBefore(o):r.getDisplayedColAfter(o)))break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},t.prototype.handleKeyDown=function(e){n.prototype.handleKeyDown.call(this,e);var r=this.getWrapperHasFocus();switch(e.key){case P.UP:case P.DOWN:r||e.preventDefault();case P.LEFT:case P.RIGHT:if(r)return;e.stopPropagation();case P.ENTER:r&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case P.ESCAPE:r||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var o=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),i=!!e.relatedTarget&&Wt(e.relatedTarget,"ag-floating-filter");if(o&&i&&e.target===this.eGui){var s=this.lastFocusEvent;s&&s&&s.key===P.TAB&&this.focusService.focusInto(this.eGui,s.shiftKey)}var u=this.getRowIndex();this.beans.focusService.setFocusedHeader(u,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Yn([this.column],this.eGui));var r=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var o=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",o)}};this.addManagedListener(this.eventService,g.EVENT_COLUMN_HOVER_CHANGED,r),r()},t.prototype.setupLeft=function(){var e=new $n(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var r=this.column.getColDef(),o=this.filterManager.createFilterParams(this.column,r),i=this.userComponentFactory.mergeParam
2sWithApplicationProvidedParams(r,xn,o),s=this.userComponentFactory.getDefaultFloatingFilterType(r);null==s&&(s="agReadOnlyFloatingFilter");var a={column:this.column,filterParams:i,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(u){return e.parentFilterInstance(u)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!r.floatingFilterComponentParams&&!!r.floatingFilterComponentParams.suppressFilterButton;var l=this.userComponentFactory.getFloatingFilterCompDetails(r,a,s);l&&this.comp.setCompDetails(l)}},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,function(r){return r&&r.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 r=this.getFilterComponent();r?.then(function(o){e(qt(o))})},t.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var r=function(o){var i=e.comp.getFloatingFilterComp();if(i){var s=e.currentParentModel();i.then(function(a){a&&a.onParentModelChanged(s,o)})}};this.addManagedListener(this.column,X.EVENT_FILTER_CHANGED,r),this.filterManager.isFilterActive(this.column)&&r(null)}},t.prototype.setupWidth=function(){var e=this,r=function(){var o=e.column.getActualWidth()+"px";e.comp.setWidth(o)};this.addManagedListener(this.column,X.EVENT_WIDTH_CHANGED,r),r()},qn([h("filterManager")],t.prototype,"filterManager",void 0),qn([h("columnHoverService")],t.prototype,"columnHoverService",void 0),qn([h("menuFactory")],t.prototype,"menuFactory",void 0),t}($o),Yf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xn=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},qf=function(n){function t(e,r,o,i,s){var a=n.call(this)||this;return a.pinned=e,a.column=r,a.eResize=o,a.comp=i,a.ctrl=s,a}return Yf(t,n),t.prototype.postConstruct=function(){var i,s,e=this,r=this.column.getColDef(),o=[],l=function(){o.forEach(function(p){return p()}),o.length=0},u=function(){var p=e.column.isResizable(),c=!e.gridOptionsWrapper.isSuppressAutoSize()&&!r.suppressAutoSize;(p!==i||c!==s)&&(i=p,s=c,l(),function(){if(se(e.eResize,i),i){var p=e.horizontalResizeService.addResizeBar({eResizeBar:e.eResize,onResizeStart:e.onResizeStart.bind(e),onResizing:e.onResizing.bind(e,!1),onResizeEnd:e.onResizing.bind(e,!0)});if(o.push(p),s){var c=e.gridOptionsWrapper.isSkipHeaderOnAutoSize(),d=function(){e.columnModel.autoSizeColumn(e.column,c,"uiColumnResized")};e.eResize.addEventListener("dblclick",d);var f=new je(e.eResize);f.addEventListener(je.EVENT_DOUBLE_TAP,d),e.addDestroyFunc(function(){e.eResize.removeEventListener("dblclick",d),f.removeEventListener(je.EVENT_DOUBLE_TAP,d),f.destroy()})}}}())};u(),this.addDestroyFunc(l),this.ctrl.addRefreshFunction(u)},t.prototype.onResizing=function(e,r){var o=this.normaliseResizeAmount(r);this.columnModel.setColumnWidths([{key:this.column,newWidth:this.resizeStartWidth+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 r=e,o=this.pinned!==m.PINNED_LE
vendor: 5,970 bytes, line 2
2FT,i=this.pinned===m.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?o&&(r*=-1):i&&(r*=-1),r},Xn([h("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),Xn([h("columnModel")],t.prototype,"columnModel",void 0),Xn([I],t.prototype,"postConstruct",null),t}(F),Xf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),jr=function(n){function t(e,r,o){void 0===r&&(r="ag-checkbox"),void 0===o&&(o="checkbox");var i=n.call(this,e,r,o)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return Xf(t,n),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(e){return this.eWrapper.classList.toggle("ag-disabled",e),n.prototype.setDisabled.call(this,e)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),r=this.getNextValue();this.passive?this.dispatchChange(r,e):this.setValue(r)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,r){return this.refreshSelectedClass(e),this.setSelected(e,r),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,r){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,r||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,r,o){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:r,event:o});var i=this.getInputElement();this.eventService.dispatchEvent({type:g.EVENT_CHECKBOX_CHANGED,id:i.id,name:i.name,selected:e,previousValue:r})},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var r=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,r,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(ht),Qf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Zf=function(n){function t(e){var r=n.call(this)||this;r.cbSelectAllVisible=!1,r.processingEventFromCheckbox=!1,r.column=e;var o=e.getColDef();return r.filteredOnly=!!o&&!!o.headerCheckboxSelectionFilteredOnly,r}return Qf(t,n),t.prototype.onSpaceKeyPressed=function(e){var r=this.cbSelectAll,o=this.gridOptionsWrapper.getDocument();r.isDisplayed()&&!r.getGui().contains(o.activeElement)&&(e.preventDefault(),r.setValue(!r.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new jr),this.cbSelectAll.addCssClass("ag-header-select-all"),be(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,g.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,jr.EVENT_CHANGED,this.onCbSelectAll.bind(this)),cn(this.cbSelectAll.getGui(),!0),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(),r=this.getNextCheckboxState(e);this.cbSelectAll.setValue(r),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),i=e("ariaRowSelectAll","Press Space to toggle all rows selection");
2this.headerCellCtrl.setAriaDescriptionProperty("selectAll",i+" ("+o+")"),this.cbSelectAll.setInputAriaLabel(i+" ("+o+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.getSelectionCount=function(){var e=this,r=0,o=0,i=function(s){e.gridOptionsWrapper.isGroupSelectsChildren()&&s.group||(s.isSelected()?r++:s.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(i):this.gridApi.forEachNode(i),{notSelected:o,selected:r}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===m.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;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()})),!(!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)))},Yo([h("gridApi")],t.prototype,"gridApi",void 0),Yo([h("columnApi")],t.prototype,"columnApi",void 0),Yo([h("rowModel")],t.prototype,"rowModel",void 0),Yo([h("selectionService")],t.prototype,"selectionService",void 0),t}(F),Jf=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),gt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},eg=function(n){function t(e,r){var o=n.call(this,e,r)||this;return o.refreshFunctions=[],o.userHeaderClasses=new Set,o.ariaDescriptionProperties=new Map,o.column=e,o}return Jf(t,n),t.prototype.setComp=function(e,r,o,i){var s=this;n.prototype.setGui.call(this,r),this.comp=e,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.setupAutoHeight(i),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new qf(this.getPinned(),this.column,o,e,this)),this.createManagedBean(new Yn([this.column],r)),this.createManagedBean(new $n(this.column,r,this.beans)),this.createManagedBean(new Dt(r,{shouldStopEventPropagation:function(a){return s.shouldStopEventPropagation(a)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,X.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetail
2s();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),r=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(r,e)},t.prototype.createParams=function(){var e=this,r=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:r.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(i){e.gridApi.showColumnMenuAfterButtonClick(e.column,i)},progressSort:function(i){e.sortController.progressSort(e.column,!!i,"uiColumnSorted")},setSort:function(i,s){e.sortController.setSortForColumn(e.column,i,!!s,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new Zf(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(e){n.prototype.handleKeyDown.call(this,e),e.key===P.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===P.ENTER&&this.onEnterKeyPressed(e)},t.prototype.onEnterKeyPressed=function(e){var r=this.comp.getUserCompInstance();r&&(e.ctrlKey||e.metaKey?this.menuEnabled&&r.showMenu&&(e.preventDefault(),r.showMenu()):this.sortable&&this.sortController.progressSort(this.column,e.shiftKey,"uiColumnSorted"))},t.prototype.isMenuEnabled=function(){return this.menuEnabled},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var r=this.getRowIndex();this.focusService.setFocusedHeader(r,this.column)}this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,o=this.createManagedBean(new Wn({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}},this.beans));o.setComp(this.comp),this.refreshFunctions.push(function(){return o.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,r=function(){var o=e.column.getColDef(),s=_l.getHeaderClassesFromColDef(o,e.gridOptionsWrapper,e.column,null),a=e.userHeaderClasses;e.userHeaderClasses=new Set(s),s.forEach(function(l){a.has(l)?a.delete(l):e.comp.addOrRemoveCssClass(l,!0)}),a.forEach(function(l){return e.comp.addOrRemoveCssClass(l,!1)})};this.refreshFunctions.push(r),r()},t.prototype.setDragSource=function(e){var r=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var o=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();this.moveDragSource={type:Me.HeaderCell,eElement:e,defaultIconName:o?Se.ICON_HIDE:Se.ICON_NOT_ALLOWED,getDragItem:function(){return r.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return r.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return r.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(i){var s,a;if(o){var l=(null===(a=null===(s=i)||void 0===s?void 0:s.columns)||void 0===a?void 0:a.filter(function(u){return!u.getColDef().lockVisible}))||[];r.columnModel.setColumnsVisible(l,!0,"uiColumnMoved")}},onGridExit:function(i){var s,a;if(o){var l=(null===(a=null===(s=i)||void 0===s?void 0:s.columns)||void 0===a?void 0:a.filter(function(u){return!u.getColDef().lockVisible}))||[];r.columnModel.setColumnsVisible(l,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},t.prototype.onColDefChanged=function(){this.refresh()},t.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()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetail
2s();null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var r=this.comp.getUserCompInstance();return!(!r||!r.refresh)&&r.refresh(e)},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!(this.gridOptionsWrapper.isSuppressMovableColumns()||e.suppressMovable||e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,r=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,X.EVENT_WIDTH_CHANGED,r),r()},t.prototype.setupMovingCss=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,X.EVENT_MOVING_CHANGED,r),r()},t.prototype.setupMenuClass=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,X.EVENT_MENU_VISIBLE_CHANGED,r),r()},t.prototype.setupSortableClass=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};r(),this.addRefreshFunction(r),this.addManagedListener(this.column,X.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupWrapTextClass=function(){var e=this,r=function(){var o=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",o)};r(),this.addRefreshFunction(r)},t.prototype.setupAutoHeight=function(e){var s,r=this,o=function(p){if(r.isAlive()){var c=Vt(r.getGui()),y=e.offsetHeight+c.paddingTop+c.paddingBottom;if(p<5){var C=r.beans.gridOptionsWrapper.getDocument();if(!C||!C.contains(e)||0==y)return void r.beans.frameworkOverrides.setTimeout(function(){return o(p+1)},0)}r.columnModel.setColumnHeaderHeight(r.column,y)}},i=!1,a=function(){var p=r.column.isAutoHeaderHeight();p&&!i&&l(),!p&&i&&u()},l=function(){i=!0,o(0),r.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),s=r.resizeObserverService.observeResize(e,function(){return o(0)})},u=function(){i=!1,s&&s(),r.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),s=void 0};a(),this.addDestroyFunc(function(){return u()}),this.addManagedListener(this.column,X.EVENT_WIDTH_CHANGED,function(){return i&&o(0)}),this.addManagedListener(this.column,X.EVENT_SORT_CHANGED,function(){i&&r.beans.frameworkOverrides.setTimeout(function(){return o(0)})}),this.addRefreshFunction(a)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(Ea(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.setAriaDescriptionProperty=function(e,r){null!=r?this.ariaDescriptionProperties.set(e,r):this.ariaDescriptionProperties.delete(e)},t.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},t.prototype.addColumnHoverListener=function(){var e=this,r=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var o=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",o)}};this.addManagedListener(this.eventService,g.EVENT_COLUMN_HOVER_CHANGED,r),r()},t.prototype.setupFilterCss=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,X.EVENT_FILTER_ACTIVE_CHANGED,r),r()},t.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,r=function(o){return e.setActiveHeader("mouseenter"
2===o.type)};this.addManagedListener(this.getGui(),"mouseenter",r),this.addManagedListener(this.getGui(),"mouseleave",r)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},gt([h("columnModel")],t.prototype,"columnModel",void 0),gt([h("columnHoverService")],t.prototype,"columnHoverService",void 0),gt([h("sortController")],t.prototype,"sortController",void 0),gt([h("menuFactory")],t.prototype,"menuFactory",void 0),gt([h("dragAndDropService")],t.prototype,"dragAndDropService",void 0),gt([h("resizeObserverService")],t.prototype,"resizeObserverService",void 0),gt([h("gridApi")],t.prototype,"gridApi",void 0),gt([h("columnApi")],t.prototype,"columnApi",void 0),gt([Ee],t.prototype,"removeDragSource",null),t}($o),tg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),qo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},rg=function(n){function t(e,r,o,i){var s=n.call(this)||this;return s.eResize=r,s.comp=e,s.pinned=o,s.columnGroup=i,s}return tg(t,n),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var r=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(r),!this.gridOptionsWrapper.isSuppressAutoSize()){var o=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",function(){var i=[];e.columnGroup.getDisplayedLeafColumns().forEach(function(a){a.getColDef().suppressAutoSize||i.push(a.getColId())}),i.length>0&&e.columnModel.autoSizeColumns({columns:i,skipHeader:o,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()})}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var r=this;this.calculateInitialValues();var o=null;if(e&&(o=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),o){var i=o.getDisplayedLeafColumns();this.resizeTakeFromCols=i.filter(function(s){return s.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(s){return r.resizeTakeFromStartWidth+=s.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(s){return r.resizeTakeFromRatios.push(s.getActualWidth()/r.resizeTakeFromStartWidth)})}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,r){var o=this.normaliseDragChange(r);this.resizeColumns(this.resizeStartWidth+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,r){void 0===r&&(r=!0);var o=[];o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols&&o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-(e-this.resizeStartWidth)}),this.columnModel.resizeColumnSets({resizeSets:o,finished:r,source:"uiColumnDragged"}),r&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,r=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=r.filter(function(o){return o.isResizable()}),this.resizeStartWidth=0,this.resizeCols.forEach(function(o){return e.resizeStartWidth+=o.getActualWidth()}
2),this.resizeRatios=[],this.resizeCols.forEach(function(o){return e.resizeRatios.push(o.getActualWidth()/e.resizeStartWidth)})},t.prototype.normaliseDragChange=function(e){var r=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==m.PINNED_LEFT&&(r*=-1):this.pinned===m.PINNED_RIGHT&&(r*=-1),r},qo([h("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),qo([h("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),qo([h("columnModel")],t.prototype,"columnModel",void 0),qo([I],t.prototype,"postConstruct",null),t}(F),og=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ng=function(n){function t(e,r){var o=n.call(this)||this;return o.removeChildListenersFuncs=[],o.columnGroup=r,o.comp=e,o}return og(t,n),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,Ae.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var r=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(o){o.addEventListener(X.EVENT_WIDTH_CHANGED,r),o.addEventListener(X.EVENT_VISIBLE_CHANGED,r),e.removeChildListenersFuncs.push(function(){o.removeEventListener(X.EVENT_WIDTH_CHANGED,r),o.removeEventListener(X.EVENT_VISIBLE_CHANGED,r)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([I],t.prototype,"postConstruct",null),t}(F),sg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ag=function(n){function t(e,r){var o=n.call(this,e,r)||this;return o.columnGroup=e,o}return sg(t,n),t.prototype.setComp=function(e,r,o){n.prototype.setGui.call(this,r),this.comp=e,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var i=this.getParentRowCtrl().getPinned(),s=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Yn(s,r)),this.createManagedBean(new $n(this.columnGroup,r,this.beans)),this.createManagedBean(new ng(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new rg(e,o,i,this.columnGroup)),this.createManagedBean(new Dt(r,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},t.prototype.setupUserComp=function(){var e=this,r=this.displayName,o={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(u){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),u,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!r){for(var i=this.columnGroup,s=i.getLeafColumns();i.getParent()&&i.getParent().getLeafColumns().length===s.length;)i=i.getParent();var a=i.getColGroupDef();a&&(r=a.headerName),r||(r=s?this.columnModel.getDisplayNameForColumn(s[0],"header",!0):"")}
2var l=this.userComponentFactory.getHeaderGroupCompDetails(o);this.comp.setUserCompDetails(l)},t.prototype.setupTooltip=function(){var e=this,r=this.columnGroup.getColGroupDef(),o={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return r&&r.headerTooltip}};r&&(o.getColDef=function(){return r}),this.createManagedBean(new Wn(o,this.beans)).setComp(this.comp)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,pe.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,pe.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var r=e.isExpanded();this.comp.setAriaExpanded(this.expandable?r?"true":"false":void 0)},t.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},t.prototype.addClasses=function(){var e=this,r=this.columnGroup.getColGroupDef(),o=_l.getHeaderClassesFromColDef(r,this.gridOptionsWrapper,null,this.columnGroup);o.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),o.forEach(function(i){return e.comp.addOrRemoveCssClass(i,!0)})},t.prototype.setupMovingCss=function(){var e=this,o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};o.forEach(function(s){e.addManagedListener(s,X.EVENT_MOVING_CHANGED,i)}),i()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var r=this.getRowIndex();this.beans.focusService.setFocusedHeader(r,this.columnGroup)}},t.prototype.handleKeyDown=function(e){n.prototype.handleKeyDown.call(this,e);var r=this.getWrapperHasFocus();if(this.expandable&&r&&e.key===P.ENTER){var o=this.columnGroup,i=!o.isExpanded();this.columnModel.setColumnGroupOpened(o.getProvidedColumnGroup(),i,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var r=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),s={type:Me.HeaderCell,eElement:e,defaultIconName:i?Se.ICON_HIDE:Se.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach(function(a){return a.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return o.forEach(function(a){return a.setMoving(!1,"uiColumnDragged")})},onGridEnter:function(a){var l,u;if(i){var p=(null===(u=null===(l=a)||void 0===l?void 0:l.columns)||void 0===u?void 0:u.filter(function(c){return!c.getColDef().lockVisible}))||[];r.columnModel.setColumnsVisible(p,!0,"uiColumnMoved")}},onGridExit:function(a){var l,u;if(i){var p=(null===(u=null===(l=a)||void 0===l?void 0:l.columns)||void 0===u?void 0:u.filter(function(c){return!c.getColDef().lockVisible}))||[];r.columnModel.setColumnsVisible(p,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(s,!0),this.addDestroyFunc(function(){return r.dragAndDropService.removeDragSource(s)})}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r={};e.forEach(function(i){return r[i.getId()]=i.isVisible()});var o=[];return this.columnModel.getAllDisplayedColumns().forEach(function(i){e.indexOf(i)>=0&&(o.push(i),De(e,i))}),e.forEach(function(i){return o.push(i)}),{columns:o,visibleState:r}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach(function(o){(o.getColDef().suppressMovable||o.getColDef().lockPosition)&&(e=!0)}),e||this.gridOptionsWrapper.isSuppressMovableColumns()},Xo([h("columnModel")],t.prototype,"columnModel",void 0),Xo([h("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Xo([h("gridApi")],t.prototype,"gridApi",void 0),Xo([h("columnApi")],t.prototype,"columnApi",void 0),t}
2($o),lg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qn=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ug=0,Zn=function(n){function t(e,r,o){var i=n.call(this)||this;return i.instanceId=ug++,i.headerCellCtrls={},i.rowIndex=e,i.pinned=r,i.type=o,i}return lg(t,n),t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),Nt()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,g.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,G.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,G.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,G.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,G.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,G.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,G.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return Ce(this.headerCellCtrls).find(function(r){return r.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===m.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(m.PINNED_RIGHT)+this.columnModel.getContainerWidth(m.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),r=[],o=0;this.columnModel.hasFloatingFilters()&&(e++,o=1);for(var i=this.columnModel.getColumnGroupHeaderRowHeight(),s=this.columnModel.getColumnHeaderRowHeight(),l=e-(1+o),u=0;u<l;u++)r.push(i);for(r.push(s),u=0;u<o;u++)r.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var p=0;for(u=0;u<this.rowIndex;u++)p+=r[u];var c=r[this.rowIndex]+"px";this.comp.setTop(p+"px"),this.comp.setHeight(c)},t.prototype.getPinned=function(){return this.pinned},t.prototype.getRowIndex=function(){return this.rowIndex},t.prototype.onVirtualColumnsChanged=function(){var e=this,r=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach(function(a){if(!a.isEmptyGroup()){var l=a.getUniqueId(),u=r[l];if(delete r[l],u&&u.getColumnGroupChild()!=a&&(e.destroyBean(u),u=void 0),null==u)switch(e.type){case He.FLOATING_FILTER:u=e.createBean(new $f(a,e));break;case He.COLUMN_GROUP:u=e.createBean(new ag(a,e));break;default:u=e.createBean(new eg(a,e))}e.headerCellCtrls[l]=u}}),re(r,function(a,l){var u=function(a){return!!e.focusService.isHeaderWrapperFocused(a)&&e.columnModel.isDisplayed(a.getColumnGroupChild())}(l);u?e.headerCellCtrls[a]=l:e.destroyBean(l)});var s=tt(this.headerCellCtrls);this.comp.setHeaderCtrls(s)},t.prototype.destroyCtrls=function(){var e=this;re(this.headerCellCtrls,function(r,o){e.destroyBean(o)}),this.headerCellCtrls={}}
2,t.prototype.getColumnsInViewport=function(){return this.gridOptionsWrapper.getDomLayout()===m.DOM_LAYOUT_PRINT?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},t.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var r=[],o=this.getActualDepth();return[m.PINNED_LEFT,null,m.PINNED_RIGHT].forEach(function(i){var s=e.columnModel.getVirtualHeaderGroupRow(i,o);r=r.concat(s)}),r},t.prototype.getActualDepth=function(){return this.type==He.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},t.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},t.prototype.focusHeader=function(e,r){var i=tt(this.headerCellCtrls).find(function(s){return s.getColumnGroupChild()==e});return!!i&&(i.focus(r),!0)},Qn([h("columnModel")],t.prototype,"columnModel",void 0),Qn([h("focusService")],t.prototype,"focusService",void 0),Qn([Ee],t.prototype,"destroyCtrls",null),t}(F),pg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),zr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},cg=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},hg=function(n){function t(e){var r=n.call(this)||this;return r.groupsRowCtrls=[],r.pinned=e,r}return pg(t,n),t.prototype.setComp=function(e,r){this.comp=e,this.eViewport=r,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,g.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eViewport,"scroll",this.resetScrollLeft.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var r=new Ff(this.pinned,e);this.createManagedBean(r)},t.prototype.refresh=function(e){var r=this;void 0===e&&(e=!1);var p,o=new ur,i=this.focusService.getFocusHeaderToUseAfterRefresh();(function(){var p=r.columnModel.getHeaderRowCount()-1;r.groupsRowCtrls=r.destroyBeans(r.groupsRowCtrls);for(var c=0;c<p;c++){var d=r.createBean(new Zn(o.next(),r.pinned,He.COLUMN_GROUP));r.groupsRowCtrls.push(d)}})(),p=o.next(),(null==r.columnsRowCtrl||!e||r.columnsRowCtrl.getRowIndex()!==p)&&(r.destroyBean(r.columnsRowCtrl),r.columnsRowCtrl=r.createBean(new Zn(p,r.pinned,He.COLUMN))),function(){var c=function(){r.filtersRowCtrl=r.destroyBean(r.filtersRowCtrl)};if(r.columnModel.hasFloatingFilters()){var d=o.next();if(r.filtersRowCtrl){var f=r.filtersRowCtrl.getRowIndex()!==d;(!e||f)&&c()}r.filtersRowCtrl||(r.filtersRowCtrl=r.createBean(new Zn(d,r.pinned,He.FLOATING_FILTER)))}else c()}();var u=this.getAllCtrls();this.comp.setCtrls(u),this.restoreFocusOnHeader(i)},t.prototype.restoreFocusOnHeader=function(e){null==e||e.column.getPinned()!=this.pinned||this.focusService.focusHeaderPosition({headerPosition:e})},t.prototype.getAllCtrls=function(){var e=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(cg(arguments[t]));return n}(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new Bn(function(r){return e.comp.setCenterWidth(r+"px")}))},t.prototype.setHorizontalScroll=function(e){this.comp.setContainerTransform("translateX("+e+"px)")},t.prototype.resetScrollLeft=function(){this.eViewport.scrollLeft=0},t.prototype.setupPinnedWidth=function(){var e=this;
2if(null!=this.pinned){var r=this.pinned===m.PINNED_LEFT,o=this.pinned===m.PINNED_RIGHT,i=function(){var s=r?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=s){var a=0==s,l=e.gridOptionsWrapper.isEnableRtl(),u=e.gridOptionsWrapper.getScrollbarWidth(),p=e.scrollVisibleService.isVerticalScrollShowing()&&(l&&r||!l&&o);e.comp.setPinnedContainerWidth((p?s+u:s)+"px"),e.comp.addOrRemoveCssClass("ag-hidden",a)}};this.addManagedListener(this.eventService,g.EVENT_LEFT_PINNED_WIDTH_CHANGED,i),this.addManagedListener(this.eventService,g.EVENT_RIGHT_PINNED_WIDTH_CHANGED,i),this.addManagedListener(this.eventService,g.EVENT_SCROLL_VISIBILITY_CHANGED,i),this.addManagedListener(this.eventService,g.EVENT_SCROLLBAR_WIDTH_CHANGED,i)}},t.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof X)return this.columnsRowCtrl?this.columnsRowCtrl.getHeaderCellCtrl(e):void 0;if(0!==this.groupsRowCtrls.length)for(var r=0;r<this.groupsRowCtrls.length;r++){var o=this.groupsRowCtrls[r].getHeaderCellCtrl(e);if(o)return o}},t.prototype.getHtmlElementForColumnHeader=function(e){var r=this.getHeaderCtrlForColumn(e);return r?r.getGui():null},t.prototype.getRowType=function(e){var o=this.getAllCtrls()[e];return o?o.getType():void 0},t.prototype.focusHeader=function(e,r,o){var s=this.getAllCtrls()[e];return!!s&&s.focusHeader(r,o)},t.prototype.getRowCount=function(){return this.getAllCtrls().length},zr([h("ctrlsService")],t.prototype,"ctrlsService",void 0),zr([h("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),zr([h("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),zr([h("columnModel")],t.prototype,"columnModel",void 0),zr([h("focusService")],t.prototype,"focusService",void 0),t}(F),fg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jn=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},es=function(n){function t(e){var r=n.call(this)||this;return r.headerRowComps={},r.rowCompsList=[],r.pinned=e,r}return fg(t,n),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var r={addOrRemoveCssClass:function(i,s){return e.addOrRemoveCssClass(i,s)},setCtrls:function(i){return e.setCtrls(i)},setCenterWidth:function(i){return e.eCenterContainer.style.width=i},setContainerTransform:function(i){return e.eCenterContainer.style.transform=i},setPinnedContainerWidth:function(i){var s=e.getGui();s.style.width=i,s.style.maxWidth=i,s.style.minWidth=i}};this.createManagedBean(new hg(this.pinned)).setComp(r,this.getGui())},t.prototype.selectAndSetTemplate=function(){this.setTemplate(this.pinned==m.PINNED_LEFT?t.PINNED_LEFT_TEMPLATE:this.pinned==m.PINNED_RIGHT?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE),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 i,r=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],e.forEach(function(a){var l=a.getInstanceId(),u=o[l];delete o[l];var p=u||r.createBean(new Wf(a));r.headerRowComps[l]=p,r.rowCompsList.push(p),function(a){var l=a.getGui();l.parentElement!=r.eRowContainer&&r.eRowContainer.appendChild(l),i&&tn(r.eRowContainer,l,i),i=l}(p)}),tt(o).forEach(function(a){return r.destroyRowComp(a)})},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>',Jn([T("eCenterContainer")],t.prototype,"eCenterContainer",void 0),Jn([I],t.prototype,"init",null),Jn([Ee],t.prototype,"destroyRowComps",null),t}
2(j),gg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),hr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vt=function(n){return n[n.UP=0]="UP",n[n.DOWN=1]="DOWN",n[n.LEFT=2]="LEFT",n[n.RIGHT=3]="RIGHT",n}(vt||{}),vg=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return gg(t,n),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.gridBodyCon=r.gridBodyCtrl})},t.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},t.prototype.getHeaderRowType=function(e){var r=this.ctrlsService.getHeaderRowContainerCtrl();if(r)return r.getRowType(e)},t.prototype.navigateVertically=function(e,r,o){if(r||(r=this.focusService.getFocusedHeader()),!r)return!1;var i=r.headerRowIndex,s=r.column,a=this.getHeaderRowCount(),l=e===vt.UP,u=l?i-1:i+1,p=null,c=!1;u<0&&(u=0,p=s,c=!0),u>=a&&(u=-1);var d=this.getHeaderRowType(i);if(!c){if(d===He.COLUMN_GROUP){var f=s;p=l?s.getParent():f.getDisplayedChildren()[0]}else d===He.FLOATING_FILTER?p=s:(f=s,p=l?f.getParent():f);if(!p)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u,column:p},allowUserOverride:!0,event:o})},t.prototype.navigateHorizontally=function(e,r,o){void 0===r&&(r=!1);var l,u,i=this.focusService.getFocusedHeader();return(l=e===vt.LEFT!==this.gridOptionsWrapper.isEnableRtl()?this.headerPositionUtils.findHeader(i,u="Before"):this.headerPositionUtils.findHeader(i,u="After"))||!r?this.focusService.focusHeaderPosition({headerPosition:l,direction:u,fromTab:r,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(i,u,o)},t.prototype.focusNextHeaderRow=function(e,r,o){var i=e.headerRowIndex,s=null;return"Before"===r?i>0&&(s=this.headerPositionUtils.findColAtEdgeForHeaderRow(i-1,"end")):s=this.headerPositionUtils.findColAtEdgeForHeaderRow(i+1,"start"),this.focusService.focusHeaderPosition({headerPosition:s,direction:r,fromTab:!0,allowUserOverride:!0,event:o})},t.prototype.scrollToColumn=function(e,r){if(void 0===r&&(r="After"),!e.getPinned()){var o;if(e instanceof Ae){var i=e.getDisplayedLeafColumns();o="Before"===r?ie(i):i[0]}else o=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},hr([h("focusService")],t.prototype,"focusService",void 0),hr([h("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),hr([h("animationFrameService")],t.prototype,"animationFrameService",void 0),hr([h("ctrlsService")],t.prototype,"ctrlsService",void 0),hr([I],t.prototype,"postConstruct",null),hr([L("headerNavigationService")],t)}(F),yg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Cg=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return yg(t,n),t.prototype.setComp=function(e,r,o){this.comp=e,this.eGui=r,this.createManagedBean(new Dt(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},t.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,G.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,G.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,G.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,G.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,G.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e)},t.prototype.getHeaderHeight=function(){return this.headerHeight},t.prototype.setHeaderHeight=function(){var a,r=this.columnModel,o=this.gridOptionsWrapper,i=0,s=r.getHeaderRowCount();r.hasFloatingFilters()&&(s++,i=1);var u=this.columnModel.getColumnGroupHeaderRowHeight(),p=this.columnModel.getColumnHeaderRowHeight(),d=s-(1+i);a=i*o.getFloatingFiltersHeight(),a+=d*u,this.headerHeight!==(a+=p)&&
vendor: 10,844 bytes, line 2
2(this.headerHeight=a,this.comp.setHeightAndMinHeight(a+1+"px"),this.eventService.dispatchEvent({type:g.EVENT_HEADER_HEIGHT_CHANGED}))},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},t.prototype.onTabKeyDown=function(e){var r=this.gridOptionsWrapper.isEnableRtl();(this.headerNavigationService.navigateHorizontally(e.shiftKey!==r?vt.LEFT:vt.RIGHT,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},t.prototype.handleKeyDown=function(e){var r=null;switch(e.key){case P.LEFT:r=vt.LEFT;case P.RIGHT:O(r)||(r=vt.RIGHT),this.headerNavigationService.navigateHorizontally(r,!1,e);break;case P.UP:r=vt.UP;case P.DOWN:O(r)||(r=vt.DOWN),this.headerNavigationService.navigateVertically(r,null,e)&&e.preventDefault();break;default:return}},t.prototype.onFocusOut=function(e){var r=this.gridOptionsWrapper.getDocument(),o=e.relatedTarget;!o&&this.eGui.contains(r.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},Qo([h("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Qo([h("focusService")],t.prototype,"focusService",void 0),Qo([h("columnModel")],t.prototype,"columnModel",void 0),Qo([h("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(F),mg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rg=function(n){function t(){return n.call(this,t.TEMPLATE)||this}return mg(t,n),t.prototype.postConstruct=function(){var e=this,r={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setHeightAndMinHeight:function(s){e.getGui().style.height=s,e.getGui().style.minHeight=s}};this.createManagedBean(new Cg).setComp(r,this.getGui(),this.getFocusableElement());var i=function(s){e.createManagedBean(s),e.appendChild(s)};i(new es(m.PINNED_LEFT)),i(new es(null)),i(new es(m.PINNED_RIGHT))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([I],t.prototype,"postConstruct",null),t}(j),Eg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ts=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_g=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Eg(t,n),t.prototype.addResizeBar=function(e){var r=this,o={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)};return this.dragService.addDragSource(o,!0),function(){return r.dragService.removeDragSource(o)}},t.prototype.onDragStart=function(e,r){this.dragStartX=r.clientX,this.setResizeIcons();var o=r instanceof MouseEvent&&!0===r.shiftKey;e.onResizeStart(o)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,r){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,r){this.resizeAmount=r.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},ts([h("dragService")],t.prototype,"dragService",void 0),ts([h("ctrlsService")],t.prototype,"ctrlsService",void 0),ts([L("horizontalResizeService")],t)}(F),Sg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Kr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Og=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Sg(t,n),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,r){var o=this;this.showPopup(e,function(i){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:r,ePopup:i})},r.target)},t.prototype.showMenuAfterButtonClick=function(e,r,o){var i=this;this.showPopup(e,function(s){i.popupService.positionPopupUnderComponent({type:o,eventSource:r,ePopup:s,keepWithinBounds:!0,column:e})},r)},t.prototype.showPopup=function(e,r,o){var i=this,s=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!s)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var a=document.createElement("div");be(a,"presentation"),a.classList.add("ag-menu"),this.tabListener=this.addManagedListener(a,"keydown",function(f){return i.trapFocusWithin(f,a)}),s.guiPromise.then(function(f){return a.appendChild(f)});var l,u=o||this.ctrlsService.getGridBodyCtrl().getGui(),c=this.gridOptionsWrapper.getLocaleTextFunc(),d=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:function(f){e.setMenuVisible(!1,"contextMenu");var v=f instanceof KeyboardEvent;if(i.tabListener&&(i.tabListener=i.tabListener()),v&&o&&ar(o)){var y=i.focusService.findTabbableParent(o);y&&y.focus()}},positionCallback:function(){return r(a)},anchorToElement:u,ariaLabel:c("ariaLabelColumnMenu","Column Menu")});d&&(this.hidePopup=l=d.hideFunc),s.filterPromise.then(function(f){r(a),f.afterGuiAttached&&f.afterGuiAttached({container:"columnMenu",hidePopup:l})}),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,r){e.key!==P.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(r,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(r,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},Kr([h("filterManager")],t.prototype,"filterManager",void 0),Kr([h("popupService")],t.prototype,"popupService",void 0),Kr([h("focusService")],t.prototype,"focusService",void 0),Kr([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Kr([L("menuFactory")],t)}(F),Pg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};!function(n){function t(e){var r=n.call(this,t.getTemplate(e.cssClass))||this;return r.items=[],r.tabbedItemScrollMap=new Map,r.params=e,e.items&&e.items.forEach(function(o){return r.addItem(o)}),r}Pg(t,n),t.prototype.postConstruct=function(){this.createManagedBean(new Dt(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 r=this.gridOptionsWrapper.getDocument();switch(e.key){case P.RIGHT:case P.LEFT:if(!this.eHeader.contains(r.activeElement))return;var o=e.key===P.RIGHT,i=this.gridOptionsWrapper.isEnableRtl(),s=this.items.indexOf(this.activeItem),a=o!==i?Math.min(s+1,this.items.length-1):Math.max(s-1,0);if(s===a)return;e.preventDefault();var l=this.items[a];this.showItemWrapper(l),l.eHeaderButton.focus();break;case P.UP:case P.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var r=this,o=r.focusService,i=r.eHeader,s=r.eBody,a=r.activeItem,u=this.gridOptionsWrapper.getDocument().activeElement;if(e.preventDefault(),i.contains(u))o.focusInto(s,e.shiftKey);else if(o.isFocusUnderManagedComponent(s))a.eHeaderButton.focus();else{var p=o.findNextFocusableElement(s,!1,e.shiftKey);p?p.focus():a.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 r=document.createElement("span");be(r,"tab"),r.setAttribute("tabIndex","-1"),r.appendChild(e.title),r.classList.add("ag-tab"),this.eHeader.appendChild(r),Ut(r,e.titleLabel);var o={tabbedItem:e,eHeaderButton:r};this.items.push(o),r.addEventListener("click",this.showItemWrapper.bind(this,o))},t.prototype.showItem=function(e){var r=this.items.find(function(o){return o.tabbedItem===e});r&&this.showItemWrapper(r)},t.prototype.showItemWrapper=function(e){var r=this,o=e.tabbedItem,i=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:o}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),ke(this.eBody),o.bodyPromise.then(function(s){r.eBody.appendChild(s);var a=!r.focusService.isKeyboardMode();if(r.focusService.focusInto(r.eBody,!1,a),o.afterAttachedCallback&&o.afterAttachedCallback(r.afterAttachedParams),r.params.keepScrollPosition){var l=o.getScrollableContainer&&o.getScrollableContainer()||s;r.lastScrollListener=r.addManagedListener(l,"scroll",function(){r.tabbedItemScrollMap.set(o.name,l.scrollTop)});var u=r.tabbedItemScrollMap.get(o.name);
2void 0!==u&&setTimeout(function(){l.scrollTop=u},0)}}),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),i.classList.add("ag-tab-selected"),this.activeItem=e):Ls(this.params.onActiveItemClicked)},Zo([h("focusService")],t.prototype,"focusService",void 0),Zo([T("eHeader")],t.prototype,"eHeader",void 0),Zo([T("eBody")],t.prototype,"eBody",void 0),Zo([I],t.prototype,"postConstruct",null)}(j);var Tg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ag=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return Tg(t,n),t.prototype.observeResize=function(e,r){var d,o=this,s=this.gridOptionsWrapper.getDocument().defaultView||window,a=Rt(r,50),p=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return s.ResizeObserver&&!p?((d=new s.ResizeObserver(a)).observe(e),function(){return d.disconnect()}):function(){var d=en(e),f=Ji(e),v=!0,y=function(){if(v){var C=en(e),R=Ji(e);(C!==d||R!==f)&&(d=C,f=R,r()),o.doNextPolyfillTurn(y)}};return y(),function(){return v=!1}}()},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;this.polyfillScheduled||(this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout(function(){var o=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],o.forEach(function(i){return i()})},50))},t=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}([L("resizeObserverService")],t),t}(F),bg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),rs=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Fg=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.createTasksP1={list:[],sorted:!1},e.createTasksP2={list:[],sorted:!1},e.destroyTasks=[],e.ticking=!1,e.scrollGoingDown=!0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return bg(t,n),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,r,o){this.verifyAnimationFrameOn(o);var i={task:e,index:r,createOrder:++this.taskCount};this.addTaskToList(this[o],i),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,r){e.list.push(r),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var r=this.scrollGoingDown?1:-1;e.list.sort(function(o,i){return o.index!==i.index?r*(i.index-o.index):i.createOrder-o.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 r=this.createTasksP1,o=r.list,i=this.createTasksP2,s=i.list,a=this.destroyTasks,l=(new Date).getTime(),u=(new Date).getTime()-l,p=e<=0,c=this.ctrlsService.getGridBodyCtrl();p||u<e;
vendor: 13,861 bytes, line 2
2){if(!c.getScrollFeature().executeAnimationFrameScroll()){var f=void 0;if(o.length)this.sortTaskList(r),f=o.pop().task;else if(s.length)this.sortTaskList(i),f=s.pop().task;else{if(!a.length){this.cancelledTasks.clear();break}f=a.pop()}this.cancelledTasks.has(f)||f()}u=(new Date).getTime()-l}o.length||s.length||a.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),o=this.gridOptionsWrapper.getDocument().defaultView||window;o.requestAnimationFrame?o.requestAnimationFrame(e):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(e):o.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var r=this,o=!1;return function(){r.isOn()?o||(o=!0,r.addDestroyTask(function(){o=!1,e()})):r.getFrameworkOverrides().setTimeout(e,0)}},rs([h("ctrlsService")],t.prototype,"ctrlsService",void 0),rs([I],t.prototype,"init",null),rs([L("animationFrameService")],t)}(F),Ig=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Tl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Dl="ag-resizer-wrapper",Gg='<div class="'+Dl+'">\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>',xg=function(n){function t(e,r){var o=n.call(this)||this;return o.element=e,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.lastSize={width:-1,height:-1},o.positioned=!1,o.resizersAdded=!1,o.resizeListeners=[],o.boundaryEl=null,o.isResizing=!1,o.isMoving=!1,o.resizable={},o.movable=!1,o.currentResizer=null,o.config=Object.assign({},{popup:!1},r),o}return Ig(t,n),t.prototype.center=function(){var e=this.offsetParent,r=e.clientHeight,i=e.clientWidth/2-this.getWidth()/2,s=r/2-this.getHeight()/2;this.offsetElement(i,s)},t.prototype.initialisePosition=function(){var e=this.config,r=e.centered,o=e.forcePopupParentAsOffsetParent,i=e.minWidth,s=e.width,a=e.minHeight,l=e.height,u=e.x,p=e.y;this.offsetParent||this.setOffsetParent();var c=0,d=0,f=!!this.element.offsetParent;if(f){var v=this.findBoundaryElement(),y=window.getComputedStyle(v);if(null!=y.minWidth){var C=v.offsetWidth-this.element.offsetWidth;d=parseInt(y.minWidth,10)-C}if(null!=y.minHeight){var R=v.offsetHeight-this.element.offsetHeight;c=parseInt(y.minHeight,10)-R}}if(this.minHeight=a||c,this.minWidth=i||d,s&&this.setWidth(s),l&&this.setHeight(l),(!s||!l)&&this.refreshSize(),r)this.center();else if(u||p)this.offsetElement(u,p);else if(f&&o&&this.boundaryEl){var w=parseFloat(this.boundaryEl.style.top),A=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(A)?0:A,isNaN(w)?0:w)}this.positioned=!!this.offsetParent},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,r){if(this.config.popup&&e!==this.movable){this.movable=e;var o=this.moveElementDragListener||{eElement:r,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var r=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"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(o){var s=!!e[o],a=r.getResizerElement(o),l={dragStartPixels:0,eElement:a,onDragStart:function(u){return r.onResizeStart(u,o)},onDragging:r.onResize.bind(r),onDragStop:function(u){return r.onResizeEnd(u,o)}};(!!r.resizable[o]!==s||!r.isAlive()&&!s)&&(s?(r.dragService.addDragSource(l),r.resizeListeners.push(l),a.style.pointerEvents="all"):a.style.pointerEvents="none",r.resizable[o]=s)})},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,r=e.height,o=e.width;-1!==o&&(this.element.style.width=o+"px"),-1!==r&&(this.element.style.height=r+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var r=this.config.popup,o=this.element,i=!1;if("string"==typeof e&&-1!==e.indexOf("%"))kt(o,e),e=Zi(o),i=!0;else if(this.positioned){var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var l=this.offsetParent.clientHeight,u=r?this.position.y:s.top;l&&e+u>l+(r?0:a.top)&&(e=l-u)}this.getHeight()!==e&&(i?(o.style.maxHeight="unset",o.style.minHeight="unset"):r?kt(o,e):(o.style.height=e+"px",o.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 r=this.element,o=this.config.popup,i=!1;if("string"==typeof e&&-1!==e.indexOf("%"))nt(r,e),e=Oo(r),i=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var s=this.offsetParent.clientWidth,a=o?this.position.x:this.element.getBoundingClientRect().left;s&&e+a>s&&(e=s-a)}this.getWidth()!==e&&(i?(r.style.maxWidth="unset",r.style.minWidth="unset"):this.config.popup?nt(r,e):(r.style.width=e+"px",r.style.flex=" unset",this.lastSize.width="number"==typeof e?e:parseFloat(e)))},t.prototype.offsetElement=function(e,r){void 0===e&&(e=0),void 0===r&&(r=0);var o=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:o,x:e,y:r,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable()}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top))},t.prototype.setPosition=function(e,r){this.position.x=e,this.position.y=r},t.prototype.updateDragStartPosition=function(e,r){this.dragStartPosition={x:e,y:r}},t.prototype.calculateMouseMovement=function(e){var r=e.e,i=e.isTop,a=e.topBuffer,l=r.clientX-this.dragStartPosition.x,u=r.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(r,!!e.isLeft,!!e.anywhereWithin,l)?0:l,movementY:this.shouldSkipY(r,!!i,a,u)?0:u}},t.prototype.shouldSkipX=function(e,r,o,i){var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.x:s.left,p=u<=0&&a.left>=e.clientX||a.right<=e.clientX&&a.right<=l.right;return!!p||(r?i<0&&e.clientX>u+a.left||i>0&&e.clientX<u+a.left:o?i<0&&e.clientX>l.right||i>0&&e.clientX<u+a.left:i<0&&e.clientX>l.right||i>0&&e.clientX<l.right)},t.prototype.shouldSkipY=function(e,r,o,i){void 0===o&&(o=0);var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.y:s.top,p=u<=0&&a.top>=e.clientY||a.bottom<=e.clientY&&a.bottom<=l.bottom;return!!p||(r?i<0&&e.clientY>u+a.top+o||i>0&&e.clientY<u+a.top:i<0&&e.clientY>l.bottom||i>0&&e.clientY<l.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 o=(new DOMParser).parseFromString(Gg,"text/html").body;e.appendChild(o.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector("."+Dl);e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,r){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!r.match(/top/i),isRight:!!r.match(/right/i),isBottom:!!r.match(/bottom/i),isLeft:!!r.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[r].element.classList.add("ag-active");var o=this.config;!o.popup&&!o.forcePopupParentAsOffsetParent&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var r=this.element.parentElement;return r?Array.prototype.slice.call(r.children).filter(function(o){return!o.classList.contains("ag-hidden")}):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],r=0,o=0,i=0;i<e.length;i++){var s=e[i];if(s!==this.element){var l=this.minHeight||0,u=this.minWidth||0;if(s.style.flex&&"0 0 auto"!==s.style.flex){var p=window.getComputedStyle(s);p.minHeight&&(l=parseInt(p.minHeight,10)),p.minWidth&&(u=parseInt(p.minWidth,10))}else l=s.offsetHeight,u=s.offsetWidth;r+=l,o+=u}}return{height:r,width:o}},t.prototype.applySizeToSiblings=function(e){var r=null,o=this.getSiblings();if(o){for(var i=0;i<o.length;i++){var s=o[i];s!==r&&(e?s.style.height=s.offsetHeight+"px":s.style.width=s.offsetWidth+"px",s.style.flex="0 0 auto",s===this.element&&(r=o[i+1]))}r&&(r.style.removeProperty("height"),r.style.removeProperty("min-height"),r.style.removeProperty("max-height"),r.style.flex="1 1 auto")}},t.prototype.isResizable=function(){return Object.values(this.resizable).some(function(e){return e})},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var r=this.config,o=r.popup,i=r.forcePopupParentAsOffsetParent,s=this.currentResizer,a=s.isTop,p=s.isLeft,c=s.isRight||p,d=s.isBottom||a,f=this.calculateMouseMovement({e,isLeft:p,isTop:a}),v=f.movementX,y=f.movementY,C=this.position.x,R=this.position.y,w=0,A=0;if(c&&v){var b=p?-1:1,x=this.getWidth(),V=x+v*b,U=!1;p&&(C+(w=x-V)<=0||V<=this.minWidth)&&(U=!0,w=0),U||this.setWidth(V)}if(d&&y){b=a?-1:1;var N=this.getHeight(),B=N+y*b,$=!1;a?(R+(A=N-B)<=0||B<=this.minHeight)&&($=!0,A=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&N<B&&this.getMinSizeOfSiblings().height+B>this.element.parentElement.offsetHeight&&($=!0),$||this.setHeight(B)}this.updateDragStartPosition(e.clientX,e.clientY),((o||i)&&w||A)&&this.offsetElement(C+w,R+A)}},t.prototype.onResizeEnd=function(e,r){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.element.classList.remove("ag-resizing"),this.resizerMap[r].element.classList.remove("ag-active"),this.dispatchEvent(o)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var s,r=this.position,o=r.x,i=r.y;this.config.calculateTopBuffer&&(s=this.config.calculateTopBuffer());var a=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:s});this.offsetElement(o+a.movementX,i+a.movementY),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.offsetParent=this.config.forcePopupParentAsOffsetParent?this.popupService.getPopupParent():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(){n.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},Tl([h("popupService")],t.prototype,"popupService",void 0),Tl([h("dragService")],t.prototype,"dragService",void 0),t}
2(F),Lg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),$r=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Mg=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Lg(t,n),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.centerRowContainerCtrl=r.centerRowContainerCtrl})},t.prototype.getPreferredWidthForColumn=function(e,r){var o=this.getHeaderCellForColumn(e);if(!o)return-1;var i=this.rowRenderer.getAllCellsForColumn(e);return r||i.push(o),this.addElementsToContainerAndGetWidth(i)},t.prototype.getPreferredWidthForColumnGroup=function(e){var r=this.getHeaderCellForColumn(e);return r?this.addElementsToContainerAndGetWidth([r]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var r=this,o=document.createElement("form");o.style.position="fixed";var i=this.centerRowContainerCtrl.getContainerElement();i.appendChild(o),e.forEach(function(l){return r.cloneItemIntoDummy(l,o)});var s=o.offsetWidth;return i.removeChild(o),s+this.gridOptionsWrapper.getAutoSizePadding()},t.prototype.getHeaderCellForColumn=function(e){var r=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(o){var i=o.getHtmlElementForColumnHeader(e);null!=i&&(r=i)}),r},t.prototype.cloneItemIntoDummy=function(e,r){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var i=document.createElement("div"),s=i.classList;["ag-header-cell","ag-header-group-cell"].some(function(d){return o.classList.contains(d)})?(s.add("ag-header","ag-header-row"),i.style.position="static"):s.add("ag-row");for(var l=e.parentElement;l;){if(["ag-header-row","ag-row"].some(function(d){return l.classList.contains(d)})){for(var p=0;p<l.classList.length;p++){var c=l.classList[p];"ag-row-position-absolute"!=c&&s.add(c)}break}l=l.parentElement}i.appendChild(o),r.appendChild(i)},$r([h("rowRenderer")],t.prototype,"rowRenderer",void 0),$r([h("ctrlsService")],t.prototype,"ctrlsService",void 0),$r([h("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),$r([I],t.prototype,"postConstruct",null),$r([L("autoWidthCalculator")],t)}(F),Ng=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Wg=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Bg=function(n){function t(e,r){var o=n.call(this)||this;return o.createRowCon=e,o.destroyRowCtrls=r,o.stickyRowCtrls=[],o.containerHeight=0,o}return Ng(t,n),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.gridBodyCtrl=r.gridBodyCtrl})},t.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},t.prototype.checkStickyRows=function(){var e=0;if(this.gridOptionsWrapper.isGroupRowsSticky()){for(var r=[],o=this.rowRenderer.getFirstVisibleVerticalPixel(),i=function(d){r.push(d);for(var f=d;f.expanded;)f=ie(f.childrenAfterSort);var v=f.rowTop+f.rowHeight,y=o+e+d.rowHeight;d.stickyRowTop=v<y?e+(v-y):e,e=0,r.forEach(function(C){var R=C.stickyRowTop+C.rowHeight;
2e<R&&(e=R)})};;){var s=o+e,a=this.rowModel.getRowIndexAtPixel(s),l=this.rowModel.getRow(a);if(null==l||l.level<0)break;for(var u=[],p=l.parent;p.level>=0;)u.push(p),p=p.parent;var c=u.reverse().find(function(d){return r.indexOf(d)<0&&d.displayed});if(c)i(c);else{if(!(l.group&&l.expanded&&!l.footer&&l.rowTop<s))break;i(l)}}this.refreshNodesAndContainerHeight(r,e)}else this.refreshNodesAndContainerHeight([],e)},t.prototype.refreshNodesAndContainerHeight=function(e,r){var o,i,s,a=this,l=this.stickyRowCtrls.filter(function(y){return-1===e.indexOf(y.getRowNode())}),u=e.filter(function(y){return-1===a.stickyRowCtrls.findIndex(function(C){return C.getRowNode()===y})}),p={};l.forEach(function(y){p[y.getRowNode().id]=y,a.stickyRowCtrls=a.stickyRowCtrls.filter(function(C){return C!==y})});try{for(var c=function(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.values(p)),d=c.next();!d.done;d=c.next())d.value.getRowNode().sticky=!1}catch(y){o={error:y}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}this.destroyRowCtrls(p,!1);var v=u.map(function(y){return y.sticky=!0,a.createRowCon(y,!1,!1)});(s=this.stickyRowCtrls).push.apply(s,function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Wg(arguments[t]));return n}(v)),this.stickyRowCtrls.forEach(function(y){return y.setRowTop(y.getRowNode().stickyRowTop)}),this.stickyRowCtrls.sort(function(y,C){return C.getRowNode().rowIndex-y.getRowNode().rowIndex}),this.containerHeight!==r&&(this.containerHeight=r,this.gridBodyCtrl.setStickyTopHeight(r))},Jo([h("rowModel")],t.prototype,"rowModel",void 0),Jo([h("rowRenderer")],t.prototype,"rowRenderer",void 0),Jo([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Jo([I],t.prototype,"postConstruct",null),t}(F),kg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),rt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ug=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Al=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Ug(arguments[t]));return n},jg=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.destroyFuncsForColumnListeners=[],e.rowCtrlsByRowIndex={},e.zombieRowCtrls={},e.allRowCtrls=[],e.topRowCtrls=[],e.bottomRowCtrls=[],e.refreshInProgress=!1,e.dataFirstRenderedFired=!1,e}return kg(t,n),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,g.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,g.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,g.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,G.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,G.PROP_ROW_CLASS,this.redrawRows.bind(this)),this.gridOptionsWrapper.isGroupRowsSticky()&&(this.rowModel.getType()!=m.ROW_MODEL_TYPE_CLIENT_SIDE?q(function(){return console.warn("AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model")},"rowRenderer.stickyWorksWithCsrmOnly"):this.gridOptionsWrapper.isTreeData()?q(function(){return console.warn("AG Grid: The feature Sticky Row Groups does not work with Tree Data.")},"rowRenderer.stickyDoesNotWorkWithTreeData"):this.stickyRowFeature=this.createManagedBean(new Bg(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===m.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();this.cachedRowCtrls=new zg(e??3)}},t.prototype.getRowCtrls=function(){return this.allRowCtrls},t.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},t.prototype.updateAllRowCtrls=function(){var e=tt(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&e.sort(function(i,s){return i.getRowNode().rowIndex-s.getRowNode.rowIndex});var r=tt(this.zombieRowCtrls),o=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=Al(e,r,o)},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_CELL_FOCUSED,function(o){e.getAllCellCtrls().forEac
2h(function(i){return i.onCellFocused(o)}),e.getFullWidthRowCtrls().forEach(function(i){i.onFullWidthRowFocused(o)})}),this.addManagedListener(this.eventService,g.EVENT_FLASH_CELLS,function(o){e.getAllCellCtrls().forEach(function(i){return i.onFlashCells(o)})}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_HOVER_CHANGED,function(){e.getAllCellCtrls().forEach(function(o){return o.onColumnHover()})}),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){e.getAllCellCtrls().forEach(function(o){return o.onDisplayedColumnsChanged()})}),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){e.printLayout&&e.getAllCellCtrls().forEach(function(o){return o.onLeftChanged()})}),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,g.EVENT_RANGE_SELECTION_CHANGED,function(){e.getAllCellCtrls().forEach(function(o){return o.onRangeSelectionChanged()})}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_MOVED,function(){e.getAllCellCtrls().forEach(function(o){return o.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PINNED,function(){e.getAllCellCtrls().forEach(function(o){return o.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,function(){e.getAllCellCtrls().forEach(function(o){return o.updateRangeBordersIfRangeCount()})})),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,g.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 r=this.columnModel.getAllGridColumns();r&&r.forEach(function(o){var i=function(c){e.getAllCellCtrls().forEach(function(d){d.getColumn()===o&&c(d)})},s=function(){i(function(c){return c.onLeftChanged()})},a=function(){i(function(c){return c.onWidthChanged()})},l=function(){i(function(c){return c.onFirstRightPinnedChanged()})},u=function(){i(function(c){return c.onLastLeftPinnedChanged()})},p=function(){i(function(c){return c.onColDefChanged()})};o.addEventListener(X.EVENT_LEFT_CHANGED,s),o.addEventListener(X.EVENT_WIDTH_CHANGED,a),o.addEventListener(X.EVENT_FIRST_RIGHT_PINNED_CHANGED,l),o.addEventListener(X.EVENT_LAST_LEFT_PINNED_CHANGED,u),o.addEventListener(X.EVENT_COL_DEF_CHANGED,p),e.destroyFuncsForColumnListeners.push(function(){o.removeEventListener(X.EVENT_LEFT_CHANGED,s),o.removeEventListener(X.EVENT_WIDTH_CHANGED,a),o.removeEventListener(X.EVENT_FIRST_RIGHT_PINNED_CHANGED,l),o.removeEventListener(X.EVENT_LAST_LEFT_PINNED_CHANGED,u),o.removeEventListener(X.EVENT_COL_DEF_CHANGED,p)})})},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===m.DOM_LAYOUT_PRINT,r=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=r!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=r,o&&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){this.redrawAfterModelUpdate({recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0})},t.prototype.getAllCellsForColumn=function(e){var r=[];return this.getAllRowCtrls().forEach(function(o){var i=o.getCellElement(e);i&&r.push(i)}),r},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,r){var o=this;e.forEach(function(i){i.destroyFirstPass(),i.destroySecondPass()}),e.length=0,r&&r.forEach(function(i){var s=new $t(i,o.beans,!1,!1,o.printLayout);e.push(s)})},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.getRenderedIndexesForRowNodes=function(e){var r=[];return M(e)||re(this.rowCtrlsByRowIndex,function(o,i){var s=i.getRowNode();e.indexOf(s)>=0&&r.push(o)}),r},t.prototype.redrawRows=function(e){var r=null!=e&&e.length>0;if(r){var o=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(o)}this.redrawAfterModelUpdate({recycleRows:r})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var r,o=null!==(r=e)&&void 0!==r&&r.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==o)return null;var s=this.gridOptionsWrapper.getDocument().activeElement,a=this.gridOptionsWrapper.getDomData(s,Kt.DOM_DATA_KEY_CELL_CTRL),l=this.gridOptionsWrapper.getDomData(s,$t.DOM_DATA_KEY_ROW_CTRL);return a||l?o:null},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var r=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var o=!this.printLayout&&!!e.recycleRows,i=e.animate&&this.gridOptionsWrapper.isAnimateRows(),s=o?this.recycleRows():null;o||this.removeAllRowComps();var l=function(){if(null==r||null==s)return!1;var u=!1;return re(s,function(p,c){var d=c.getRowNode();d.rowIndex==r.rowIndex&&d.rowPinned==r.rowPinned&&(u=!0)}),u}();this.redraw(s,i),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),l||this.restoreFocusedCell(r),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var r=e.newData||e.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();
2r&&!o&&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({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach(function(r){r.stopEditing(e)})},t.prototype.getAllCellCtrls=function(){var e=[];return this.getAllRowCtrls().forEach(function(r){return e=e.concat(r.getAllCellCtrls())}),e},t.prototype.getAllRowCtrls=function(){var e=this,r=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],o=Al(this.topRowCtrls,this.bottomRowCtrls,r);return Object.keys(this.rowCtrlsByRowIndex).forEach(function(i){return o.push(e.rowCtrlsByRowIndex[i])}),o},t.prototype.addRenderedRowListener=function(e,r,o){var i=this.rowCtrlsByRowIndex[r];i&&i.addEventListener(e,o)},t.prototype.flashCells=function(e){void 0===e&&(e={});var r=e.flashDelay,o=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach(function(i){return i.flashCell({flashDelay:r,fadeDelay:o})})},t.prototype.refreshCells=function(e){void 0===e&&(e={});var r={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach(function(o){if(o.refreshShouldDestroy()){var i=o.getRowCtrl();i&&i.refreshCell(o)}else o.refreshCell(r)}),this.getFullWidthRowCtrls(e.rowNodes).forEach(function(o){o.refreshFullWidth()})},t.prototype.getCellRendererInstances=function(e){return this.getCellCtrls(e.rowNodes,e.columns).map(function(o){return o.getCellRenderer()}).filter(function(o){return null!=o})},t.prototype.getCellEditorInstances=function(e){var r=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach(function(o){var i=o.getCellEditor();i&&r.push(i)}),r},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach(function(r){if(r.isEditing()){var o=r.getCellPosition();e.push(o)}}),e},t.prototype.mapRowNodes=function(e){if(e){var r={top:{},bottom:{},normal:{}};return e.forEach(function(o){var i=o.id;o.rowPinned===m.PINNED_TOP?r.top[i]=o:o.rowPinned===m.PINNED_BOTTOM?r.bottom[i]=o:r.normal[i]=o}),r}},t.prototype.isRowInMap=function(e,r){var o=e.id,i=e.rowPinned;return i===m.PINNED_BOTTOM?null!=r.bottom[o]:i===m.PINNED_TOP?null!=r.top[o]:null!=r.normal[o]},t.prototype.getCellCtrls=function(e,r){var a,o=this,i=this.mapRowNodes(e),s=[];O(r)&&(a={},r.forEach(function(u){var p=o.columnModel.getGridColumn(u);O(p)&&(a[p.getId()]=!0)}));var l=function(u){var p=u.getRowNode();null!=i&&!o.isRowInMap(p,i)||u.getAllCellCtrls().forEach(function(c){var d=c.getColumn().getId();a&&!a[d]||s.push(c)})};return re(this.rowCtrlsByRowIndex,function(u,p){l(p)}),this.topRowCtrls&&this.topRowCtrls.forEach(l),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(l),s},t.prototype.destroy=function(){this.removeAllRowComps(),n.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];re(this.rowCtrlsByRowIndex,function(o,i){null==i.getRowNode().id&&e.push(o)}),this.removeRowCtrls(e);var r={};return re(this.rowCtrlsByRowIndex,function(o,i){var s=i.getRowNode();r[s.id]=i}),this.rowCtrlsByRowIndex={},r},t.prototype.removeRowCtrls=function(e){var r=this;e.forEach(function(o){var i=r.rowCtrlsByRowIndex[o];i&&(i.destroyFirstPass(),i.destroySecondPass()),delete r.rowCtrlsByRowIndex[o]})},t.prototype.redrawAfterScroll=function(){var e;if(this.stickyRowFeature&&mo()&&(e=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(),null!=e){var r=this.getCellToRestoreFocusToAfterRefresh();null!=e&&null==r&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(e))}},t.prototype.removeRowCompsNotToDraw=function(e){var r={};e.forEach(function(s){return r[s]=!0});var i=Object.keys(this.rowCtrlsByRowIndex).filter(function(s){return!r[s]});this.removeRowCtrls(i)},t.prototype.calculateIndexesToDraw=function(e){var r=this,o=ua(this.firstRen
2deredRow,this.lastRenderedRow),i=function(s,a){var l=a.getRowNode().rowIndex;null!=l&&(l<r.firstRenderedRow||l>r.lastRenderedRow)&&r.doNotUnVirtualiseRow(a)&&o.push(l)};return re(this.rowCtrlsByRowIndex,i),re(e,i),o.sort(function(s,a){return s-a}),o=o.filter(function(s){var a=r.paginationProxy.getRow(s);return a&&!a.sticky})},t.prototype.redraw=function(e,r,o){var i=this;void 0===r&&(r=!1),void 0===o&&(o=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var s=this.calculateIndexesToDraw(e);this.removeRowCompsNotToDraw(s),this.printLayout&&(r=!1),s.forEach(function(l){O(i.createOrUpdateRowCtrl(l,e,r,o))}),e&&(!o||this.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.destroyRowCtrls(e,r):this.beans.animationFrameService.addDestroyTask(function(){i.destroyRowCtrls(e,r),i.updateAllRowCtrls(),i.dispatchDisplayedRowsChanged()})),this.updateAllRowCtrls()},t.prototype.dispatchDisplayedRowsChanged=function(){this.eventService.dispatchEvent({type:g.EVENT_DISPLAYED_ROWS_CHANGED})},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),r=this.columnModel.isPinningRight();(this.pinningLeft!==e||r!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=r,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach(function(r){var o=r.getRowNode().rowIndex;e.push(o.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.getFullWidthRowCtrls=function(e){var r=this,o=this.mapRowNodes(e);return tt(this.rowCtrlsByRowIndex).filter(function(i){if(!i.isFullWidth())return!1;var s=i.getRowNode();return!(null!=o&&!r.isRowInMap(s,o))})},t.prototype.refreshFullWidthRows=function(e){var r=[],o=!!e,i=o?{}:void 0;o&&i&&e.forEach(function(s){return i[s.id]=!0}),this.getFullWidthRowCtrls().forEach(function(s){var a=s.getRowNode();if((!o||!i||i[a.id]||i[a.level>0&&a.parent?a.parent.id:void 0])&&!s.refreshFullWidth()){var c=s.getRowNode().rowIndex;r.push(c.toString())}}),this.removeRowCtrls(r),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCtrl=function(e,r,o,i){var s,a=this.rowCtrlsByRowIndex[e];if(a||O(s=this.paginationProxy.getRow(e))&&O(r)&&r[s.id]&&s.alreadyRendered&&(a=r[s.id],r[s.id]=null),!a){if(s||(s=this.paginationProxy.getRow(e)),!O(s))return;a=this.createRowCon(s,o,i)}return s&&(s.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=a,a},t.prototype.destroyRowCtrls=function(e,r){var o=this,i=[];re(e,function(s,a){if(a){if(o.cachedRowCtrls&&a.isCacheable())return void o.cachedRowCtrls.addRow(a);a.destroyFirstPass(),r?(o.zombieRowCtrls[a.getInstanceId()]=a,i.push(function(){a.destroySecondPass(),delete o.zombieRowCtrls[a.getInstanceId()]})):a.destroySecondPass()}}),r&&(i.push(function(){o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()}),Is(i))},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,r;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),r=this.paginationProxy.getPageLastRow();else{var o=this.gridOptionsWrapper.getRowBufferInPixels(),i=this.ctrlsService.getGridBodyCtrl(),s=this.gridOptionsWrapper.isSuppressRowVirtualisation(),a=!1,l=void 0,u=void 0;do{var p=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),d=c.pageFirstPixel,f=c.pageLastPixel,v=this.rowContainerHeightService.getDivStretchOffset(),y=i.getScrollFeature().getVScrollPosition(),C=y.top,R=y.bottom;s?(l=d+v,u=f+v):(l=Math.max(C+p-o,d)+v,u=Math.min(R+p+o,f)+v),this.firstVisibleVPixel=Math.max(C+p,d)+v,a=this.ensureAllRowsInRangeHaveHeightsCalculated(l,u)}while(a);var w=this.paginationProxy.getRowIndexAtPixel(l),A=this.paginationProxy.getRowIndexAtPixel(u),b=this.paginationProxy.getPageFirstRow(),x=this.paginationProxy.getPageLastRow();w<b&&(w=b),A>x&&(A=x),e=w,r=A}else e=0,r=-1;var V=this.gridOptionsWrapper.getDomLayout()===m.DOM_LAYOUT_NORMAL,U=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),N=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);V&&!U&&r-e>
2N&&(r=e+N),(e!==this.firstRenderedRow||r!==this.lastRenderedRow)&&(this.firstRenderedRow=e,this.lastRenderedRow=r,this.eventService.dispatchEvent({type:g.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:r}))},t.prototype.dispatchFirstDataRenderedEvent=function(){var e=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var r={type:g.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame(function(){e.beans.eventService.dispatchEvent(r)})}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,r){var o=this.paginationProxy.ensureRowHeightsValid(e,r,-1,-1);return o&&this.updateContainerHeights(),o},t.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var i=e.getRowNode(),s=this.focusService.isRowNodeFocused(i),a=e.isEditing();return(s||a||i.detail)&&!!this.paginationProxy.isRowPresent(i)||!1},t.prototype.createRowCon=function(e,r,o){var i=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(i)return i;var s=this.gridOptionsWrapper.isSuppressAnimationFrame();return new $t(e,this.beans,r,o&&!s&&!this.printLayout,this.printLayout)},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map(function(r){return e[r].getRowNode()})},t.prototype.getRowByPosition=function(e){var r,o=e.rowIndex;switch(e.rowPinned){case m.PINNED_TOP:r=this.topRowCtrls[o];break;case m.PINNED_BOTTOM:r=this.bottomRowCtrls[o];break;default:(r=this.rowCtrlsByRowIndex[o])||(r=this.getStickyTopRowCtrls().find(function(i){return i.getRowNode().rowIndex===o})||null)}return r},t.prototype.getRowNode=function(e){switch(e.rowPinned){case m.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case m.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,r){return!(null==e||null==r||r<this.firstRenderedRow||e>this.lastRenderedRow)},rt([h("animationFrameService")],t.prototype,"animationFrameService",void 0),rt([h("paginationProxy")],t.prototype,"paginationProxy",void 0),rt([h("columnModel")],t.prototype,"columnModel",void 0),rt([h("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),rt([h("rowModel")],t.prototype,"rowModel",void 0),rt([h("focusService")],t.prototype,"focusService",void 0),rt([h("beans")],t.prototype,"beans",void 0),rt([h("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),rt([h("ctrlsService")],t.prototype,"ctrlsService",void 0),rt([I],t.prototype,"postConstruct",null),rt([L("rowRenderer")],t)}(F),zg=function(){function n(t){this.entriesMap={},this.entriesList=[],this.maxCount=t}return n.prototype.addRow=function(t){if(this.entriesMap[t.getRowNode().id]=t,this.entriesList.push(t),t.setCached(!0),this.entriesList.length>this.maxCount){var e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}},n.prototype.getRow=function(t){if(null==t||null==t.id)return null;var e=this.entriesMap[t.id];return e?(this.removeFromCache(e),e.setCached(!1),e.getRowNode()!=t?null:e):null},n.prototype.removeFromCache=function(t){var e=t.getRowNode().id;delete this.entriesMap[e],De(this.entriesList,t)},n.prototype.getEntries=function(){return this.entriesList},n}(),Kg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),bl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$g=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Kg(t,n),t.prototype.formatValue=function(e,r,o,i,s){void 0===s&&(s=!0);var l,a=null,u=e.getColDef();if(i?l=i:s&&(l=r&&r.rowPinned&&u.pinnedRowValueFormatter?u.pinnedRowValueFormatter:u.valueFormatter),l){var p={value:o,node:r,data:r?r.data:null,colDef:u,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};a=this.expressionService.evaluate(l,p)}else if(u.refData)return u.refData[o]||"";return null==a&&Array.isArray(o)&&(a=o.join(", ")),a},bl([h("expressionService")],t.prototype,"expressionService",void 0),bl([L("valueFormatterService")],t)}
vendor: 5,296 bytes, line 2
2(F),Yg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),os=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},qg=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Yg(t,n),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){return ae(e===m.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,r){var o=r===m.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(ae(o))return 0;for(var i=0;i<o.length;i++){var s=o[i];if(s.rowTop+s.rowHeight-1>=e)return i}return o.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0),this.eventService.dispatchEvent({type:g.EVENT_PINNED_ROW_DATA_CHANGED})},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1),this.eventService.dispatchEvent({type:g.EVENT_PINNED_ROW_DATA_CHANGED})},t.prototype.createNodesFromData=function(e,r){var o=this,i=[];if(e){var s=0;e.forEach(function(a,l){var u=new K(o.beans);u.data=a,u.id=(r?K.ID_PREFIX_TOP_PINNED:K.ID_PREFIX_BOTTOM_PINNED)+l,u.rowPinned=r?m.PINNED_TOP:m.PINNED_BOTTOM,u.setRowTop(s),u.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(u).height),u.setRowIndex(l),s+=u.rowHeight,i.push(u)})}return i},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){ae(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){ae(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 r=ie(e);return r.rowTop+r.rowHeight},os([h("beans")],t.prototype,"beans",void 0),os([I],t.prototype,"init",null),os([L("pinnedRowModel")],t)}(F),is=function(){function n(t,e){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=t,this.pathRoot={rowNode:e,children:null},this.mapToItems[e.id]=this.pathRoot}return n.prototype.setInactive=function(){this.active=!1},n.prototype.isActive=function(){return this.active},n.prototype.depthFirstSearchChangedPath=function(t,e){if(t.children)for(var r=0;r<t.children.length;r++)this.depthFirstSearchChangedPath(t.children[r],e);e(t.rowNode)},n.prototype.depthFirstSearchEverything=function(t,e,r){if(t.childrenAfterGroup)for(var o=0;o<t.childrenAfterGroup.length;o++){var i=t.childrenAfterGroup[o];i.childrenAfterGroup?this.depthFirstSearchEverything(t.childrenAfterGroup[o],e,r):r&&e(i)}e(t)},n.prototype.forEachChangedNodeDepthFirst=function(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1),this.active&&!r?this.depthFirstSearchChangedPath(this.pathRoot,t):this.depthFirstSearchEverything(this.pathRoot.rowNode,t,e)},n.prototype.executeFromRootNode=function(t){t(this.pathRoot.rowNode)},n.prototype.createPathItems=function(t){for(var e=t,r=0;!this.mapToItems[e.id];)this.mapToItems[e.id]={rowNode:e,children:null},r++,e=e.parent;return r},n.prototype.populateColumnsMap=function(t,e){var r=this;if(this.keepingColumns&&e)for(var o=t;o;)this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={}),e.forEach(function(i){return r.nodeIdsToColumns[o.id][i.getId()]=!0}),o=o.parent},n.prototype.linkPathItems=function(t,e){for(var r=t,o=0;o<e;o++){var i=this.mapToItems[r.id],s=this.mapToItems[r.parent.id];s.children||(s.children=[]),s.children.push(i),r=r.parent}},n.prototype.addParentNode=function(t,e){if(t&&!t.isRowPinned()){var r=this.createPathItems(t);this.linkPathItems(t,r),this.populateColumnsMap(t,e)}},n.prototype.canSkip=function(t){return this.active&&!this.mapToItems[t.id]},n.prototype.getValueColumnsForNode=function(t,e){if(!this.keepingColumns)return e;var r=this.nodeIdsToColumns[t.id];return e.filter(function(i){return r[i.getId()]})},n.prototype.getNotValueColumnsForNode=function(t,e){if(!this.keepingColumns)return null;var r=this.nodeIdsToColumns[t.id];return e.filter(function(i){return!r[i.getId()]})},n}
2(),Qg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ns=function(n){function t(e){var r=n.call(this)||this;return r.state=t.STATE_WAITING_TO_LOAD,r.version=0,r.id=e,r}return Qg(t,n),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,r){this.successCommon(e,r)},t.prototype.pageLoaded=function(e,r,o){this.successCommon(e,{rowData:r,rowCount:o})},t.prototype.isRequestMostRecentAndLive=function(e){var r=e===this.version,o=this.isAlive();return r&&o},t.prototype.successCommon=function(e,r){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(r))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0),this.dispatchEvent({type:t.EVENT_LOAD_COMPLETE,success:e,block:this})},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(F),Zg=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ss=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Jg=function(n,t){return function(e,r){t(e,r,n)}},ev=function(n){function t(){var r=null!==n&&n.apply(this,arguments)||this;return r.activeBlockLoadsCount=0,r.blocks=[],r.active=!0,r}var e;return Zg(t,n),e=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var r=this.gridOptionsWrapper.getBlockLoadDebounceMillis();r&&r>0&&(this.checkBlockToLoadDebounce=H.debounce(this.performCheckBlocksToLoad.bind(this),r))},t.prototype.setBeans=function(r){this.logger=r.create("RowNodeBlockLoader")},t.prototype.addBlock=function(r){this.blocks.push(r),r.addEventListener(ns.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(r){H.removeFromArray(this.blocks,r)},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:e.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)return void this.logger.log("checkBlockToLoad: max loads exceeded");var r=void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0,o=this.blocks.filter(function(i){return i.getState()===ns.STATE_WAITING_TO_LOAD}).slice(0,r);this.activeBlockLoadsCount+=o.length,o.forEach(function(i){return i.load()}),this.printCacheStatus()}},t.prototype.getBlockState=function(){var r={};return this.blocks.forEach(function(o){var i=o.getBlockStateJson();r[i.id]=i.state}),r},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}
vendor: 5,277 bytes, line 2
2,t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",ss([I],t.prototype,"postConstruct",null),ss([Jg(0,Fe("loggerFactory"))],t.prototype,"setBeans",null),e=ss([L("rowNodeBlockLoader")],t)}(F),tv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),as=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},rv=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return tv(t,n),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,g.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,r,o,i){var s=this.rowModel.ensureRowHeightsValid(e,r,this.getPageFirstRow(),this.getPageLastRow());return s&&this.calculatePages(),s},t.prototype.onModelUpdated=function(e){this.calculatePages(),this.eventService.dispatchEvent({type:g.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows})},t.prototype.onPaginationPageSizeChanged=function(){this.calculatePages(),this.eventService.dispatchEvent({type:g.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0})},t.prototype.goToPage=function(e){this.active&&this.currentPage!==e&&(this.currentPage=e,this.onModelUpdated({type:g.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0}))},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 M(this.topRowBounds)||M(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,r){return this.rowModel.getNodesInRangeForSelection(e,r)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var r=this.rowModel.getRowBounds(e);return r.rowIndex=e,r},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 r=this.getPageForIndex(e);this.goToPage(r)}},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(),r=Math.floor(e/this.pageSize);this.goToPage(r)},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.bottomDis
2playedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(O(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:g.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),(!Ro(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var o=this.pageSize*(this.currentPage+1)-1;if(o>e&&(o=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(this.pageSize*this.currentPage),o===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var i=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=i-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),(!Ro(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},as([h("rowModel")],t.prototype,"rowModel",void 0),as([I],t.prototype,"postConstruct",null),as([L("paginationProxy")],t)}(F),ov=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Fl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},iv=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ov(t,n),t.prototype.processAllCellClasses=function(e,r,o,i){this.processClassRules(e.cellClassRules,r,o,i),this.processStaticCellClasses(e,r,o)},t.prototype.processClassRules=function(e,r,o,i){if(null!=e){for(var s=Object.keys(e),a={},l={},u=function(d){var y,f=s[d],v=e[f];"string"==typeof v?y=p.expressionService.evaluate(v,r):"function"==typeof v&&(y=v(r)),f.split(" ").forEach(function(C){null==C||""==C.trim()||(y?a[C]=!0:l[C]=!0)})},p=this,c=0;c<s.length;c++)u(c);i&&Object.keys(l).forEach(i),Object.keys(a).forEach(o)}},t.prototype.getStaticCellClasses=function(e,r){var i,o=e.cellClass;return o?("string"==typeof(i="function"==typeof o?o(r):o)&&(i=[i]),i||[]):[]},t.prototype.processStaticCellClasses=function(e,r,o){this.getStaticCellClasses(e,r).forEach(function(s){o(s)})},Fl([h("expressionService")],t.prototype,"expressionService",void 0),Fl([L("stylingService")],t)}(F),nv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),sv=function(n){function t(e){return n.call(this,e,"ag-radio-button","radio")||this}return nv(t,n),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){n.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,g.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}
2(jr),av=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),lv=function(n){function t(e){return n.call(this,e,"ag-toggle-button")||this}return av(t,n),t.prototype.setValue=function(e,r){return n.prototype.setValue.call(this,e,r),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(jr),uv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Il=function(n){function t(e,r,o){return void 0===r&&(r="ag-text-field"),void 0===o&&(o="text"),n.call(this,e,r,o)||this}return uv(t,n),t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(e,r){var o=n.prototype.setValue.call(this,e,r);return this.eInput.value!==e&&(this.eInput.value=O(e)?e:""),o},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",function(o){o.key&&!e.test(o.key)&&o.preventDefault()}),this.addManagedListener(this.eInput,"paste",function(o){var i,s=null===(i=o.clipboardData)||void 0===i?void 0:i.getData("text");s&&s.split("").some(function(a){return!e.test(a)})&&o.preventDefault()})},t}(ht),pv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),cv=function(n){function t(e){return n.call(this,e,"ag-text-area",null,"textarea")||this}return pv(t,n),t.prototype.setValue=function(e,r){var o=n.prototype.setValue.call(this,e,r);return this.eInput.value=e,o},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(ht),dv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),hv=function(n){function t(e){return n.call(this,e,"ag-number-field","number")||this}return dv(t,n),t.prototype.postConstruct=function(){var e=this;n.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",function(){var r=parseFloat(e.eInput.value),o=isNaN(r)?"":e.normalizeValue(r.toString());e.value!==o&&e.setValue(o)}),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var r=parseFloat(e);return null!=this.min&&r<this.min?e=this.min.toString():null!=this.max&&r>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var r=parseFloat(e).toFixed(this.precision);e=parseFloat(r).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Ar(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Ar(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,Ar(this.eInput,"step",e)),this},t.prototype.setValue=function(e,r){return(e=this.adjustPrecision(e))!=this.normalizeValue(e)?this:n.prototype.setValue.call(this,e,r)},t}
vendor: 4,374 bytes, line 2
2(Il),fv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),gv=function(n){function t(e){return n.call(this,e,"ag-range-field","range")||this}return fv(t,n),t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this);var e=this.config,r=e.min,o=e.max,i=e.step;null!=r&&this.setMinValue(r),null!=o&&this.setMaxValue(o),this.setStep(i||1)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(r){e.setValue(r.target.value)})},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(e,r){null!=this.min&&(e=Math.max(parseFloat(e),this.min).toString()),null!=this.max&&(e=Math.min(parseFloat(e),this.max).toString());var o=n.prototype.setValue.call(this,e,r);return this.eInput.value=e,o},t}(ht),vv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ei=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},yv=function(n){function t(e){var r=n.call(this,e,t.TEMPLATE)||this;return r.labelAlignment="top",r}return vv(t,n),t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var r=this,o=dt.EVENT_CHANGED;return this.addManagedListener(this.eText,o,function(){var i=parseFloat(r.eText.getValue());r.eSlider.setValue(i.toString(),!0),e(i||0)}),this.addManagedListener(this.eSlider,o,function(){var i=r.eSlider.getValue();r.eText.setValue(i,!0),e(parseFloat(i))}),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:dt.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>',ei([T("eLabel")],t.prototype,"eLabel",void 0),ei([T("eSlider")],t.prototype,"eSlider",void 0),ei([T("eText")],t.prototype,"eText",void 0),ei([I],t.prototype,"init",null),t}(On),Cv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},mv=function(n){function t(e){var r=n.call(this,e,t.TEMPLATE)||this;
2return r.radius=0,r.offsetX=0,r.offsetY=0,r}return Cv(t,n),t.prototype.postConstruct=function(){var e=this;n.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(r){e.parentCircleRect=e.eParentCircle.getBoundingClientRect()},onDragging:function(r){return e.calculateAngleDrag(r)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange(function(r){(null==r||""===r)&&(r="0"),r=e.eAngleValue.normalizeValue(r);var o=parseFloat(r);o>180&&(o-=360),e.setValue(o)}),this.updateNumberInput(),O(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,dt.EVENT_CHANGED,function(){var r=e.gridOptionsWrapper.getDocument();e.eAngleValue.getInputElement().contains(r.activeElement)||e.updateNumberInput()})},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var r=this.parentCircleRect||{width:24,height:24},o=this.eChildCircle,s=r.height/2;o.style.left=r.width/2+8*Math.cos(e)+"px",o.style.top=s+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,r=this.offsetY,o=Math.atan2(r,e);this.degrees=this.toDegrees(o),this.radius=Math.sqrt(e*e+r*r),this.positionChildCircle(o)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),r=this.getRadius();this.setOffsetX(Math.cos(e)*r).setOffsetY(Math.sin(e)*r)},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 r=this.parentCircleRect,p=Math.atan2(e.clientY-r.top-r.height/2,e.clientX-r.left-r.width/2);this.setValue(p,!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 r=this;return this.addManagedListener(this,dt.EVENT_CHANGED,function(){e(r.degrees)}),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,r){var o;return o=r?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(o),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(o),this.dispatchEvent({type:dt.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return nt(this.getGui(),e),this},t.prototype.setDisabled=function(e){return n.prototype.setDisabled.call(this,e),this.eAngleValue.setDisabled(e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),n.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>',Yr([T("eLabel")],t.prototype,"eLabel",void 0),Yr([T("eParentCircle")],t.prototype,"eParentCircle",void 0),Yr([T("eChildCircle")],t.prototype,"eChildCircle",void 0),Yr([T("eAngleValue")],t.prototype,"eAngleValue",void 0),Yr([h("dragService")],t.prototype,"dragService",void 0),t}
2(On),wv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),yt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ev=function(n){function t(e){var r=n.call(this,t.TEMPLATE)||this;return r.H=1,r.S=1,r.B=1,r.A=1,r.isSpectrumDragging=!1,r.isSpectrumHueDragging=!1,r.isSpectrumAlphaDragging=!1,r.colorChanged=!1,r.picker=e.picker,r}return wv(t,n),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 r=this.spectrumValRect;if(r){var o=e.clientX-r.left,i=e.clientY-r.top;o=Math.max(o,0),o=Math.min(o,r.width),i=Math.max(i,0),i=Math.min(i,r.height),this.setSpectrumValue(o/r.width,1-i/r.height)}},t.prototype.moveHueSlider=function(e){var r=this.spectrumHueRect;if(r){var o=this.spectrumHueSlider,i=o.getBoundingClientRect(),s=e.clientX-r.left;s=Math.max(s,0),s=Math.min(s,r.width),this.H=1-s/r.width,o.style.left=s+i.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var r=this.spectrumAlphaRect;if(r){var o=this.spectrumAlphaSlider,i=o.getBoundingClientRect(),s=e.clientX-r.left;s=Math.max(s,0),s=Math.min(s,r.width),this.A=s/r.width,o.style.left=s+i.width/2+"px",this.update()}},t.prototype.update=function(){var e=_r.fromHSB(360*this.H,this.S,this.B,this.A),r=_r.fromHSB(360*this.H,1,1),o=e.toRgbaString(),i=this.picker;_r.fromString(i.getValue()).toRgbaString()!==o&&(this.colorChanged=!0),i.setValue(o),this.spectrumColor.style.backgroundColor=r.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},t.prototype.setSpectrumValue=function(e,r){var o=this.spectrumValRect||this.refreshSpectrumRect();if(o){var i=this.spectrumDragger,s=i.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),r=Math.max(0,r),r=Math.min(1,r),this.S=e,this.B=r,
2i.style.left=e*o.width-s.width/2+"px",i.style.top=(1-r)*o.height-s.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var r=t.recentColors.map(function(o,i){return'<div class="ag-recent-color" id='+i+' style="background-color: '+o+'; width: 15px; height: 15px;" recent-color="'+o+'"></div>'});this.recentColors.innerHTML=r.join("")},t.prototype.setValue=function(e){var r=_r.fromString(e),o=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i}(r.toHSB(),3),i=o[0],s=o[1],a=o[2];this.H=(isNaN(i)?0:i)/360,this.A=r.a;var l=this.spectrumHueRect||this.refreshHueRect(),u=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-l.width+"px",this.spectrumAlphaSlider.style.left=this.A*u.width+"px",this.setSpectrumValue(s,a)},t.prototype.onRecentColorClick=function(e){var r=e.target;if(O(r.id)){var o=parseInt(r.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var r=_r.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),o=t.recentColors;!this.colorChanged||o[0]===r||(o=o.filter(function(i){return i!=r}),(o=[r].concat(o)).length>t.maxRecentColors&&(o=o.slice(0,t.maxRecentColors)),t.recentColors=o)},t.prototype.destroy=function(){this.addRecentColor(),n.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>',yt([T("spectrumColor")],t.prototype,"spectrumColor",void 0),yt([T("spectrumVal")],t.prototype,"spectrumVal",void 0),yt([T("spectrumDragger")],t.prototype,"spectrumDragger",void 0),yt([T("spectrumHue")],t.prototype,"spectrumHue",void 0),yt([T("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),yt([T("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),yt([T("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),yt([T("recentColors")],t.prototype,"recentColors",void 0),yt([I],t.prototype,"postConstruct",null),t}(j),_v=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),qr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Gl=function(n){function t(e){var r=n.call(this,t.getTemplate(e))||this;return r.closable=!0,r.config=e,r}return _v(t,n),t.getTemplate=function(e){var r=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+r+'-panel" tabindex="-1">\n            <div ref="eTitleBar" class="ag-panel-title-bar ag-'+r+'-panel-title-bar ag-unselectable">
2\n                <span ref="eTitle" class="ag-panel-title-bar-title ag-'+r+'-panel-title-bar-title"></span>\n                <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+r+'-panel-title-bar-buttons"></div>\n            </div>\n            <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+r+'-panel-content-wrapper"></div>\n        </div>'},t.prototype.postConstruct=function(){var e=this,r=this.config,o=r.component,i=r.closable,s=r.hideTitleBar,a=r.title,l=r.minWidth,u=void 0===l?250:l,p=r.width,c=r.minHeight,d=void 0===c?250:c,f=r.height,v=r.centered,y=r.popup,C=r.x,R=r.y;this.positionableFeature=new xg(this.getGui(),{minWidth:u,width:p,minHeight:d,height:f,centered:v,x:C,y:R,popup:y,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var w=this.getGui();o&&this.setBodyComponent(o),s?this.eTitleBar.classList.add("ag-hidden"):(a&&this.setTitle(a),this.setClosable(i??this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(A){var b=e.gridOptionsWrapper.getDocument();if(w.contains(A.relatedTarget)||w.contains(b.activeElement)||e.eTitleBarButtons.contains(A.target))A.preventDefault();else{var x=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");x&&x.focus()}}),(!y||!this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,r=this.getGui();r.focus(),this.close=function(){r.parentElement.removeChild(r),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var r=this.closeButtonComp=new j(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(r);var o=r.getGui(),i=he("close",this.gridOptionsWrapper);i.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(i),this.addTitleBarButton(r),r.addManagedListener(o,"click",this.onBtClose.bind(this))}else 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,r){var o=this.eTitleBarButtons,i=o.children,s=i.length;null==r&&(r=s),r=Math.max(0,Math.min(r,s)),e.addCssClass("ag-panel-title-bar-button");var a=e.getGui();0===r?o.insertAdjacentElement("afterbegin",a):r===s?o.insertAdjacentElement("beforeend",a):i[r-1].insertAdjacentElement("afterend",a),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return Sr(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return So(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&e.offsetParent&&this.close(),n.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',qr([T("eContentWrapper")],t.prototype,"eContentWrapper",void 0),qr([T("eTitleBar")],t.prototype,"eTitleBar",void 0),qr([T("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),qr([T("eTitle")],t.prototype,"eTitle",void 0),qr([I],t.prototype,"postConstruct",null),t}(j),Sv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ti=function(){return ti=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o
2]);return n},ti.apply(this,arguments)},xl=function(n){function t(e){var r=n.call(this,ti(ti({},e),{popup:!0}))||this;return r.isMaximizable=!1,r.isMaximized=!1,r.maximizeListeners=[],r.resizeListenerDestroy=null,r.lastPosition={x:0,y:0,width:0,height:0},r}return Sv(t,n),t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=this.config,i=o.movable,s=o.resizable,a=o.maximizable;this.addCssClass("ag-dialog"),n.prototype.postConstruct.call(this),this.addManagedListener(r,"focusin",function(l){r.contains(l.relatedTarget)||e.popupService.bringPopupToFront(r)}),i&&this.setMovable(i),a&&this.setMaximizable(a),s&&this.setResizable(s)},t.prototype.renderComponent=function(){var e=this.getGui(),r=this.config,o=r.alwaysOnTop,i=r.modal,s=r.title,a=this.gridOptionsWrapper.getLocaleTextFunc(),l=this.popupService.addPopup({modal:i,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:o,ariaLabel:s||a("ariaLabelDialog","Dialog")});l&&(this.close=l.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var r=this.lastPosition,o=r.x,i=r.y,a=r.height;this.setWidth(r.width),this.setHeight(a),this.positionableFeature.offsetElement(o,i)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){se(this.maximizeIcon,!this.isMaximized),se(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),n.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var r=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&e!==this.isMaximizable){var i=this.maximizeButtonComp=this.createBean(new j('<div class="ag-dialog-button"></span>')),s=i.getGui();s.appendChild(this.maximizeIcon=he("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),s.appendChild(this.minimizeIcon=he("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","ag-hidden"),i.addManagedListener(s,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(i,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",function(){r.isMaximized=!1,r.refreshMaximizeIcon()})}},function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([h("popupService")],t.prototype,"popupService",void 0),t}(Gl),Pv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Tv=function(n){function t(e){var r=n.call(this,e,"ag-color-picker","colorPicker")||this;return e&&e.color&&(r.value=e.color),r}return Pv(t,n),t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,r=this.getGui().getBoundingClientRect(),o=this.createBean(new xl({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:r.right-190,y:r.top-250}));this.isPickerDisplayed=!0,o.addCssClass("ag-color-dialog"),Ue(this.eWrapper,!0);var i=this.createBean(new Ev({picker:this}));return i.addDestroyFunc(function(){o.isAlive()&&e.destroyBean(o)}),o.setParentComponent(this),o.setBodyComponent(i),i.setValue(this.getValue()),o.addDestroyFunc(function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,i.isAlive()&&e.destroyBean(i)),e.
2isAlive()&&(Ue(e.eWrapper,!1),e.getFocusableElement().focus()),e.isPickerDisplayed=!1}),o},t.prototype.setValue=function(e){return this.value===e?this:(this.eDisplayField.style.backgroundColor=e,n.prototype.setValue.call(this,e))},t.prototype.getValue=function(){return this.value},t}(Ka),Dv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),xt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Av=function(n){function t(e){void 0===e&&(e={});var r=n.call(this,t.getTemplate(e))||this;r.suppressEnabledCheckbox=!0,r.suppressOpenCloseIcons=!1;var i=e.enabled,s=e.items,a=e.suppressEnabledCheckbox,l=e.suppressOpenCloseIcons;return r.title=e.title,r.cssIdentifier=e.cssIdentifier||"default",r.enabled=i??!0,r.items=s||[],r.alignItems=e.alignItems||"center",null!=a&&(r.suppressEnabledCheckbox=a),null!=l&&(r.suppressOpenCloseIcons=l),r}return Dv(t,n),t.getTemplate=function(e){var r=e.cssIdentifier||"default";return'<div class="ag-group ag-'+r+'-group" role="presentation">\n            <div class="ag-group-title-bar ag-'+r+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n                <span class="ag-group-title-bar-icon ag-'+r+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n                <span class="ag-group-title-bar-icon ag-'+r+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n                <span ref="eTitle" class="ag-group-title ag-'+r+'-group-title"></span>\n            </div>\n            <div ref="eToolbar" class="ag-group-toolbar ag-'+r+'-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-"+r+'-group-container"></div>\n        </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var r=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(r("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(qe("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(qe("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,"keydown",function(r){switch(r.key){case P.ENTER:case P.SPACE:r.preventDefault(),e.toggleGroupExpand();break;case P.RIGHT:case P.LEFT:r.preventDefault(),e.toggleGroupExpand(r.key===P.RIGHT)}})},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Ue(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;se(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),se(this.eGroupOpenedIcon,e&&this.expanded),se(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){return this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=e,this.addCssClass("ag-group-item-alignment-"+this.alignItems),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),se(this.eContainer,!0),this):(this.expanded===(e=e??!this.expanded)||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),se(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),this)},t.prototype.addItems=function(e){var r=this;e.forEach(function(o){return r.addItem(o)})},t.prototype.addItem=function(e){var r=this.eContainer,o=e instanceof j?e.getGui():e;o.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),r.appendChild(o),this.items.push(o)},t.prototype.hideItem=function(e,r){this.items[r].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,r){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),r||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var r=this;return this.cbGroupEnabled.onValueChange(function(o){r.setEnabled(o,!0),e(o)}),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",xt([T("eTitleBar")],t.prototype,"eTitleBar",void 0),xt([T("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),xt([T("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),xt([T("eToolbar")],t.prototype,"eToolbar",void 0),xt([T("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),xt([T("eTitle")],t.prototype,"eTitle",void 0),xt([T("eContainer")],t.prototype,"eContainer",void 0),xt([I],t.prototype,"postConstruct",null),t}
vendor: 5,001 bytes, line 2
2(j),bv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ll=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Fv=function(n){function t(e){var r=n.call(this)||this;r.skipTabGuardFocus=!1;var i=e.eTopGuard,s=e.eBottomGuard,a=e.focusInnerElement,l=e.onFocusIn,u=e.onFocusOut,p=e.shouldStopEventPropagation,c=e.onTabKeyDown,d=e.handleKeyDown,f=e.eFocusableElement;return r.comp=e.comp,r.eTopGuard=i,r.eBottomGuard=s,r.providedFocusInnerElement=a,r.eFocusableElement=f,r.providedFocusIn=l,r.providedFocusOut=u,r.providedShouldStopEventPropagation=p,r.providedOnTabKeyDown=c,r.providedHandleKeyDown=d,r}return bv(t,n),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new Dt(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(r){return e.onTabKeyDown(r)},handleKeyDown:function(r){return e.handleKeyDown(r)},onFocusIn:function(r){return e.onFocusIn(r)},onFocusOut:function(r){return e.onFocusOut(r)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(function(r){return e.addManagedListener(r,"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 r=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(r):this.focusInnerElement(r)}},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 r=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();var i=this.getNextFocusableElement(e.shiftKey);o&&setTimeout(function(){return r.activateTabGuards()},0),i&&(i.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var r=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(r.splice(0,1),r.splice(r.length-1,1)),r.length&&r[e?r.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 r=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,r.focus()},Ll([h("focusService")],t.prototype,"focusService",void 0),Ll([I],t.prototype,"postConstruct",null),t}(F),Iv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Gv=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},ri=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Iv(t,n),t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var r=[this.eTopGuard,this.eBottomGuard],o={setTabIndex:function(i){r.forEach(function(s){return null!=i?s.setAttribute("tabIndex",i):s.removeAttribute("tabIndex")})}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new Fv({comp:o,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onF
2ocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var r=document.createElement("div");return r.classList.add("ag-tab-guard","ag-tab-guard-"+e),be(r,"presentation"),r},t.prototype.addTabGuards=function(e,r){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",r)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];ke(this.getFocusableElement()),this.addTabGuards.apply(this,function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Gv(arguments[t]));return n}(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(e,r){Dr(e)||(e=e.getGui());var o=this.eBottomGuard;o?o.insertAdjacentElement("beforebegin",e):n.prototype.appendChild.call(this,e,r)},t}(j),Lv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),oi=function(){return oi=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},oi.apply(this,arguments)},Ml=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Mv=function(n){function t(e){void 0===e&&(e=1);var r=n.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return r.level=e,r.menuItems=[],r}return Lv(t,n),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(r){return e.onTabKeyDown(r)},handleKeyDown:function(r){return e.handleKeyDown(r)}})},t.prototype.onTabKeyDown=function(e){var r=this.getParentComponent(),o=r&&r.getGui();o&&o.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case P.UP:case P.RIGHT:case P.DOWN:case P.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case P.ESCAPE:var r=this.findTopMenu();r&&this.focusService.focusInto(r.getGui())}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var r=this;e?.forEach(function(o){"separator"===o?r.addSeparator():"string"==typeof o?console.warn("AG Grid: unrecognised menu item "+o):r.addItem(o)})},t.prototype.addItem=function(e){var r=this,o=this.createManagedBean(new Xr(oi(oi({},e),{isAnotherSubMenuOpen:function(){return r.menuItems.some(function(i){return i.isSubMenuOpen()})}})));o.setParentComponent(this),Pa(o.getGui(),this.level),this.menuItems.push(o),this.appendChild(o.getGui()),this.addManagedListener(o,Xr.EVENT_MENU_ITEM_SELECTED,function(i){r.dispatchEvent(i)}),this.addManagedListener(o,Xr.EVENT_MENU_ITEM_ACTIVATED,function(i){r.activeMenuItem&&r.activeMenuItem!==i.menuItem&&r.activeMenuItem.deactivate(),r.activeMenuItem=i.menuItem})},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter(function(r){return!r.isDisabled()})[0];e&&e.activate()},t.prototype.addSeparator=function(){this.appendChild(me('\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 r=e&&e.getParentComponent&&e.getParentComponent();if(!r||!(r instanceof t||r instanceof Xr))break;e=r}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case P.UP:case P.DOWN:var r=this.findNextItem(e===P.UP);return void(r&&r!==this.activeMenuItem&&r.activate())}e===(this.gridOptionsWrapper.isEnableRtl()?P.RIGHT:P.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var r=this.getParentComponent();r&&r instanceof Xr&&(e&&e.preventDefault(),r.closeSubMenu(),r.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var r=this.menuItems.filter(function(l){return!l.isDisabled()});if(r.length){if(!this.activeMenuItem)return e?ie(r):r[0];e&&r.reverse();for(var o,i=!1,s=0;s<r.length;s++){var a=r[s];if(i){o=a;break}a===this.activeMenuItem&&(i=!0)}return o||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),n.prototype.destroy.call(this)},Ml([h("focusService")],t.prototype,"focusService",void 0),Ml([I],t.prototype,"postConstruct",null),t}
2(ri),Nv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wv=function(n){function t(e){var r=n.call(this)||this;return r.wrappedComponent=e,r.setTemplateFromElement(e.getGui()),r}return Nv(t,n),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(r){return e.onTabKeyDown(r)},handleKeyDown:function(r){return e.handleKeyDown(r)}})},t.prototype.handleKeyDown=function(e){e.key===P.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)},function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)}([I],t.prototype,"postConstruct",null),t}(ri),Vv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Nl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Xr=function(n){function t(e){var r=n.call(this)||this;return r.params=e,r.isActive=!1,r.subMenuIsOpen=!1,r.setTemplate('<div class="'+r.getClassName()+'" tabindex="-1" role="treeitem"></div>'),r}return Vv(t,n),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var r=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),pn(r,!0)):(this.addGuiEventListener("click",function(o){return e.onItemSelected(o)}),this.addGuiEventListener("keydown",function(o){(o.key===P.ENTER||o.key===P.SPACE)&&(o.preventDefault(),e.onItemSelected(o))}),this.addGuiEventListener("mousedown",function(o){o.stopPropagation(),o.preventDefault()}),this.addGuiEventListener("mouseenter",function(){return e.onMouseEnter()}),this.addGuiEventListener("mouseleave",function(){return e.onMouseLeave()})),this.params.cssClasses&&this.params.cssClasses.forEach(function(o){return e.addCssClass(o)})},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var r=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var i,o=me('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var s=_a(this.getGui()),a=isNaN(s)?1:s+1,l=this.createBean(new Mv(a));l.setParentComponent(this),l.addMenuItems(this.params.subMenu),o.appendChild(l.getGui()),this.addManagedListener(l,t.EVENT_MENU_ITEM_SELECTED,function(w){return r.dispatchEvent(w)}),l.addGuiEventListener("mouseenter",function(){return r.cancelDeactivate()}),i=function(){return r.destroyBean(l)},e&&setTimeout(function(){return l.activateFirstItem()},0)}else{var u=this.params.subMenu,p=this.createBean(new Wv(u));p.setParentComponent(this);var c=p.getGui(),d="mouseenter",f=function(){return r.cancelDeactivate()};c.addEventListener(d,f),i=function(){return c.removeEventListener(d,f)},o.appendChild(c),u.afterGuiAttached&&setTimeout(function(){return u.afterGuiAttached()},0)}var v=this.getGui(),y=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:v,ePopup:o}),C=this.gridOptionsWrapper.getLocaleTextFunc(),R=this.popupService.addPopup({modal:!0,e
2Child:o,positionCallback:y,anchorToElement:v,ariaLabel:C("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,Ue(v,!0),this.hideSubMenu=function(){R&&R.hideFunc(),r.subMenuIsOpen=!1,Ue(v,!1),i()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Ue(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var r=this;this.cancelActivate(),!this.params.disabled&&(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout(function(){r.isAlive()&&r.isActive&&r.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=me('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(he("check",this.gridOptionsWrapper)):this.params.icon&&(Dr(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=me('<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 Rn(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=me('<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=me('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),r=this.getGui();if(this.params.subMenu){var o=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";Ue(r,!1),e.appendChild(he(o,this.gridOptionsWrapper))}r.appendChild(e)}},t.prototype.onItemSelected=function(e){this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),(!this.params.subMenu||this.params.action)&&this.dispatchEvent({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})},t.prototype.onItemActivated=function(){this.dispatchEvent({type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this})},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 r=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?r+"-"+e:r},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,Nl([h("popupService")],t.prototype,"popupService",void 0),Nl([I],t.prototype,"init",null),t}
2(j),Bv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),at=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},kv=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Qr=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}var e;return Bv(t,n),e=t,t.addKeyboardModeEvents=function(r,o){var i=e.instancesMonitored.get(r);i&&i.length>0?-1===i.indexOf(o)&&i.push(o):(e.instancesMonitored.set(r,[o]),r.addEventListener("keydown",e.toggleKeyboardMode),r.addEventListener("mousedown",e.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(r,o){var i=e.instancesMonitored.get(r),s=[];i&&i.length&&(s=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(kv(arguments[t]));return n}(i).filter(function(a){return a!==o}),e.instancesMonitored.set(r,s)),0===s.length&&(r.removeEventListener("keydown",e.toggleKeyboardMode),r.removeEventListener("mousedown",e.toggleKeyboardMode))},t.toggleKeyboardMode=function(r){var o=e.keyboardModeActive,i="keydown"===r.type;if(!(i&&(r.ctrlKey||r.metaKey||r.altKey)||o&&i||!o&&!i)){e.keyboardModeActive=i;var s=r.target.ownerDocument;if(s){var a=e.instancesMonitored.get(s);a&&a.forEach(function(l){l.dispatchEvent({type:i?g.EVENT_KEYBOARD_FOCUS:g.EVENT_MOUSE_FOCUS})})}}},t.prototype.init=function(){var r=this,o=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,o),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_GROUP_OPENED,o),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,o),this.ctrlsService.whenReady(function(i){r.gridCtrl=i.gridCtrl;var s=r.gridOptionsWrapper.getDocument();e.addKeyboardModeEvents(s,r.gridCtrl),r.addDestroyFunc(function(){return r.unregisterGridCompController(r.gridCtrl)})})},t.prototype.unregisterGridCompController=function(r){var o=this.gridOptionsWrapper.getDocument();e.removeKeyboardModeEvents(o,r)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var r=this.focusedCellPosition.column,o=this.columnModel.getGridColumn(r.getId());r!==o&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return e.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){var r=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(r.activeElement,$t.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var r=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(r.activeElement,$o.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(r,o){for(var i=r;i;){if(this.gridOptionsWrapper.getDomData(i,o))return!1;i=i.parentNode}return!0},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1,!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(r){var i=r.rowIndex,s=r.rowPinned,a=r.forceBrowserFocus,l=void 0!==a&&a,u=r.preventScrollOnBrowserFocus,p=void 0!==u&&u,c=this.columnModel.getGridColumn(r.column);c?(this.focusedCellPosition=c?{rowIndex:i,rowPinned:de(s),column:c}
vendor: 4,564 bytes, line 2
2:null,this.onCellFocused(l,p)):this.focusedCellPosition=null},t.prototype.isCellFocused=function(r){return null!=this.focusedCellPosition&&this.focusedCellPosition.column===r.column&&this.isRowFocused(r.rowIndex,r.rowPinned)},t.prototype.isRowNodeFocused=function(r){return this.isRowFocused(r.rowIndex,r.rowPinned)},t.prototype.isHeaderWrapperFocused=function(r){if(null==this.focusedHeaderPosition)return!1;var o=r.getColumnGroupChild(),i=r.getRowIndex(),s=r.getPinned(),a=this.focusedHeaderPosition,l=a.column;return o===l&&i===a.headerRowIndex&&s==l.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(r,o){this.focusedHeaderPosition={headerRowIndex:r,column:o}},t.prototype.focusHeaderPosition=function(r){var o=r.direction,i=r.fromTab,a=r.event,l=r.headerPosition;if(r.allowUserOverride){var d,u=this.gridOptionsWrapper,p=this.getFocusedHeader(),c=this.headerNavigationService.getHeaderRowCount();i?(d=u.getTabToNextHeaderFunc())&&(l=d({backwards:"Before"===o,previousHeaderPosition:p,nextHeaderPosition:l,headerRowCount:c})):(d=u.getNavigateToNextHeaderFunc())&&a&&(l=d({key:a.key,previousHeaderPosition:p,nextHeaderPosition:l,headerRowCount:c,event:a}))}return!!l&&(-1===l.headerRowIndex?this.focusGridView(l.column):(this.headerNavigationService.scrollToColumn(l.column,o),this.ctrlsService.getHeaderRowContainerCtrl(l.column.getPinned()).focusHeader(l.headerRowIndex,l.column,a)))},t.prototype.focusFirstHeader=function(){var r=this.columnModel.getAllDisplayedColumns()[0];return!!r&&(r.getParent()&&(r=this.columnModel.getColumnGroupAtLevel(r,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:r}}))},t.prototype.focusLastHeader=function(r){var o=this.headerNavigationService.getHeaderRowCount()-1,i=ie(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:o,column:i},event:r})},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(r,o){return null!=this.focusedCellPosition&&this.focusedCellPosition.rowIndex===r&&this.focusedCellPosition.rowPinned===de(o)},t.prototype.findFocusableElements=function(r,o,i){void 0===i&&(i=!1);var a=m.FOCUSABLE_EXCLUDE;o&&(a+=", "+o),i&&(a+=', [tabindex="-1"]');var d,l=Array.prototype.slice.apply(r.querySelectorAll(m.FOCUSABLE_SELECTOR)),u=Array.prototype.slice.apply(r.querySelectorAll(a));return u.length?(d=u,l.filter(function(f){return-1===d.indexOf(f)})):l},t.prototype.focusInto=function(r,o,i){void 0===o&&(o=!1),void 0===i&&(i=!1);var s=this.findFocusableElements(r,null,i),a=o?ie(s):s[0];return!!a&&(a.focus(),!0)},t.prototype.findNextFocusableElement=function(r,o,i){void 0===r&&(r=this.eGridDiv);var s=this.findFocusableElements(r,o?':not([tabindex="-1"])':null),l=this.gridOptionsWrapper.getDocument().activeElement,p=(o?s.findIndex(function(c){return c.contains(l)}):s.indexOf(l))+(i?-1:1);return p<0||p>=s.length?null:s[p]},t.prototype.isFocusUnderManagedComponent=function(r){var o=this.gridOptionsWrapper.getDocument(),i=r.querySelectorAll("."+Dt.FOCUS_MANAGED_CLASS);if(!i.length)return!1;for(var s=0;s<i.length;s++)if(i[s].contains(o.activeElement))return!0;return!1},t.prototype.findTabbableParent=function(r,o){void 0===o&&(o=5);for(var i=0;r&&null===wo(r)&&++i<=o;)r=r.parentElement;return null===wo(r)?null:r},t.prototype.onCellFocused=function(r,o){var i={type:g.EVENT_CELL_FOCUSED,forceBrowserFocus:r,preventScrollOnBrowserFocus:o,rowIndex:null,column:null,floating:null,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var s=i.rowIndex=this.focusedCellPosition.rowIndex,a=i.rowPinned=this.focusedCellPosition.rowPinned;i.column=this.focusedCellPosition.column;var l=this.rowRenderer.getRowByPosition({rowIndex:s,rowPinned:a});l&&(i.isFullWidthCell=l.isFullWidth())}this.eventService.dispatchEvent(i)},t.prototype.focusGridView=function(r,o){if(this.gridOptionsWrapper.isSuppressCellFocus())return o?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var i=o?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!i)return!1;var s=i.rowIndex,a=i.rowPinned,l=this.getFocusedHeader();return!r&&l&&(r=l.column),!(null==s||!r)&&(this.navigationService.ensureCellVisible({rowIndex:s,column:r,rowPinned:a}),this.setFocusedCell({rowIndex:s,column:r,rowPinned:de(a),forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:s,rowPinned:a,column:r}),!0)}
2,t.prototype.focusNextGridCoreContainer=function(r){return!!this.gridCtrl.focusNextInnerContainer(r)||(!r&&!this.gridCtrl.isDetailGrid()&&this.gridCtrl.forceFocusOutOfContainer(),!1)},t.AG_KEYBOARD_FOCUS="ag-keyboard-focus",t.keyboardModeActive=!1,t.instancesMonitored=new Map,at([h("eGridDiv")],t.prototype,"eGridDiv",void 0),at([h("columnModel")],t.prototype,"columnModel",void 0),at([h("headerNavigationService")],t.prototype,"headerNavigationService",void 0),at([h("rowRenderer")],t.prototype,"rowRenderer",void 0),at([h("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),at([J("rangeService")],t.prototype,"rangeService",void 0),at([h("navigationService")],t.prototype,"navigationService",void 0),at([h("ctrlsService")],t.prototype,"ctrlsService",void 0),at([I],t.prototype,"init",null),e=at([L("focusService")],t)}(F),jv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},zv=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Qt=function(n){return n[n.vertical=0]="vertical",n[n.horizontal=1]="horizontal",n}(Qt||{}),$v=0,Yv=function(n){function t(){var r=null!==n&&n.apply(this,arguments)||this;return r.popupList=[],r}var e;return jv(t,n),e=t,t.prototype.postConstruct=function(){var r=this;this.ctrlsService.whenReady(function(o){r.gridCtrl=o.gridCtrl,r.addManagedListener(r.gridCtrl,g.EVENT_KEYBOARD_FOCUS,function(){r.popupList.forEach(function(i){return i.element.classList.add(Qr.AG_KEYBOARD_FOCUS)})}),r.addManagedListener(r.gridCtrl,g.EVENT_MOUSE_FOCUS,function(){r.popupList.forEach(function(i){return i.element.classList.remove(Qr.AG_KEYBOARD_FOCUS)})})})},t.prototype.getPopupParent=function(){return this.gridOptionsWrapper.getPopupParent()||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(r){var o=r.eventSource.getBoundingClientRect(),i=this.getParentRect(),s=this.keepXYWithinBounds(r.ePopup,o.top-i.top,Qt.vertical),a=r.ePopup.clientWidth>0?r.ePopup.clientWidth:200;r.ePopup.style.minWidth=a+"px";var p,u=i.right-i.left-a;function c(){return o.right-i.left-2}function d(){return o.left-i.left-a}this.gridOptionsWrapper.isEnableRtl()?((p=d())<0&&(p=c()),p>u&&(p=0)):((p=c())>u&&(p=d()),p<0&&(p=0)),r.ePopup.style.left=p+"px",r.ePopup.style.top=s+"px"},t.prototype.positionPopupUnderMouseEvent=function(r){var o=r.ePopup,i=r.nudgeX,s=r.nudgeY,a=r.skipObserver,l=this.calculatePointerAlign(r.mouseEvent);this.positionPopup({ePopup:o,x:l.x,y:l.y,nudgeX:i,nudgeY:s,keepWithinBounds:!0,skipObserver:a}),this.callPostProcessPopup(r.type,r.ePopup,null,r.mouseEvent,r.column,r.rowNode)},t.prototype.calculatePointerAlign=function(r){var o=this.getParentRect();return{x:r.clientX-o.left,y:r.clientY-o.top}},t.prototype.positionPopupUnderComponent=function(r){var o=r.eventSource.getBoundingClientRect(),i=r.alignSide||"left",s=this.getParentRect(),a=o.left-s.left;"right"===i&&(a-=r.ePopup.offsetWidth-o.width),this.positionPopup({ePopup:r.ePopup,nudgeX:r.nudgeX,nudgeY:r.nudgeY,x:a,y:o.top-s.top+o.height,keepWithinBounds:r.keepWithinBounds}),this.callPostProcessPopup(r.type,r.ePopup,r.eventSource,null,r.column,r.rowNode)},t.prototype.positionPopupOverComponent=function(r){var o=r.eventSource.getBoundingClientRect(),i=this.getParentRect();this.positionPopup({ePopup:r.ePopup,nudgeX:r.nudgeX,nudgeY:r.nudgeY,x:o.left-i.left,y:o.top-i.top,keepWithinBounds:r.keepWithinBounds}
2),this.callPostProcessPopup(r.type,r.ePopup,r.eventSource,null,r.column,r.rowNode)},t.prototype.callPostProcessPopup=function(r,o,i,s,a,l){var u=this.gridOptionsWrapper.getPostProcessPopupFunc();u&&u({column:a,rowNode:l,ePopup:o,type:r,eventSource:i,mouseEvent:s})},t.prototype.positionPopup=function(r){var o=this,a=r.ePopup,l=r.keepWithinBounds,u=r.nudgeX,p=r.nudgeY,c=r.skipObserver,d=r.x,f=r.y;u&&(d+=u),p&&(f+=p);var v=function(){l&&(d=o.keepXYWithinBounds(a,d,Qt.horizontal),f=o.keepXYWithinBounds(a,f,Qt.vertical)),a.style.left=d+"px",a.style.top=f+"px"};if(v(),!c){var y=this.resizeObserverService.observeResize(a,v);setTimeout(function(){return y()},e.WAIT_FOR_POPUP_CONTENT_RESIZE)}},t.prototype.getActivePopups=function(){return this.popupList.map(function(r){return r.element})},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var r=this.gridOptionsWrapper.getDocument(),o=this.getPopupParent();o===r.body?o=r.documentElement:"static"===getComputedStyle(o).position&&(o=o.offsetParent);var i=getComputedStyle(o),s=o.getBoundingClientRect();return{top:s.top+parseFloat(i.borderTopWidth)||0,left:s.left+parseFloat(i.borderLeftWidth)||0,right:s.right+parseFloat(i.borderRightWidth)||0,bottom:s.bottom+parseFloat(i.borderBottomWidth)||0}},t.prototype.keepXYWithinBounds=function(r,o,i){var s=i===Qt.vertical,a=s?"clientHeight":"clientWidth",l=s?"top":"left",u=s?"offsetHeight":"offsetWidth",p=s?"scrollTop":"scrollLeft",c=this.gridOptionsWrapper.getDocument(),d=c.documentElement,f=this.getPopupParent(),v=f.getBoundingClientRect(),y=c.documentElement.getBoundingClientRect(),C=f===c.body,R=r[u],A=C?(s?Zi:Oo)(d)+d[p]:f[a];C&&(A-=Math.abs(y[l]-v[l]));var b=A-R;return Math.min(Math.max(o,0),Math.abs(b))},t.prototype.keepPopupPositionedRelativeTo=function(r){var o=this,i=this.getPopupParent(),s=i.getBoundingClientRect(),a=r.element.getBoundingClientRect(),l=s.top-a.top,u=s.left-a.left,p=l,c=u,d=r.ePopup.style.top,f=parseInt(d.substring(0,d.length-1),10),v=r.ePopup.style.left,y=parseInt(v.substring(0,v.length-1),10);return new Ie(function(C){o.getFrameworkOverrides().setInterval(function(){var R=i.getBoundingClientRect(),w=r.element.getBoundingClientRect();if(0==w.top&&0==w.left&&0==w.height&&0==w.width)r.hidePopup();else{var b=R.top-w.top;if(b!=p){var x=o.keepXYWithinBounds(r.ePopup,f+l-b,Qt.vertical);r.ePopup.style.top=x+"px"}p=b;var V=R.left-w.left;if(V!=c){var U=o.keepXYWithinBounds(r.ePopup,y+u-V,Qt.horizontal);r.ePopup.style.left=U+"px"}c=V}},200).then(function(R){C(function(){null!=R&&window.clearInterval(R)})})})},t.prototype.addPopup=function(r){var o,i=this,s=r.modal,a=r.eChild,l=r.closeOnEsc,u=r.closedCallback,p=r.click,c=r.alwaysOnTop,d=r.afterGuiAttached,f=r.positionCallback,v=r.anchorToElement,y=r.ariaLabel,C=this.gridOptionsWrapper.getDocument(),R=new Ie(function(Q){return Q(function(){})});if(!C)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:R};var w=this.popupList.findIndex(function(Q){return Q.element===a});if(-1!==w){var A=this.popupList[w];return{hideFunc:A.hideFunc,stopAnchoringPromise:A.stopAnchoringPromise}}var b=this.getPopupParent();null==a.style.top&&(a.style.top="0px"),null==a.style.left&&(a.style.left="0px");var x=document.createElement("div"),V=this.environment.getTheme().allThemes;V.length&&(o=x.classList).add.apply(o,function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(zv(arguments[t]));return n}(V)),x.classList.add("ag-popup"),a.classList.add(this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr","ag-popup-child"),a.hasAttribute("role")||be(a,"dialog"),Ut(a,y),this.focusService.isKeyboardMode()&&a.classList.add(Qr.AG_KEYBOARD_FOCUS),x.appendChild(a),b.appendChild(x),c?this.setAlwaysOnTop(x,!0):this.bringPopupToFront(x);var U=!1,N=function(Q){x.contains(C.activeElement)&&Q.key===P.ESCAPE&&ne({keyboardEvent:Q})},B=function(Q){return ne({mouseEvent:Q})},$=function(Q){return ne({touchEvent:Q})},ne=function(Q){void 0===Q&&(Q={});var ue=Q.mouseEvent,Ye=Q.touchEvent,ye=Q.keyboardEvent;i.isEventFromCurrentPopup({mouseEvent:ue,touchEvent:Ye},a)||i.isEventSameChainAsOriginalEvent({originalMouseEvent:p,mouseEvent:ue,touchEvent:Ye})||U||(U=!0,b.removeChild(x),C.removeEventListener("keydown",N),C.removeEventListener("mousedown",B),C.removeEventListener("touchstart",$),C.removeEventListener("contextmenu",B),i.eventService.removeEventListener(g.EVENT_DRAG_STARTED,B),u&&u(ue||Ye||ye),i.popupList=i.popupList.filter(function(xe){return xe.element!==a}),R&&R.then(function(xe){return xe&&xe()}))};return d&&d({hidePopup:ne}),window.setTimeout(function(){l&&C.addEventListener("keydown",N),s&&(C.addEventListener("mousedown",B),i.eventService.addEventListener(g.EVENT_DRAG_STARTED,B),C.addEventListener("touchstart",$),C.addEventListener("contextmenu",B))},0),f&&f(),v&&(R=this.keepPopupPositionedRelativeTo({element:v,ePopup:a,hidePopup:ne})),this.popupList.push({element:a,wrapper:x,hideFunc:ne,stopAnchoringPromise:R,instanceId:$v++,isAnchored:!!v}),{hideFunc:ne,stopAnchoringPromise:R}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some(function(r){return r.isAnchored})},t.prototype.isEventFromCurrentPopup=function(r,o){var a=r.mouseEvent||r.touchEvent;if(!a)return!1;var l=this.popupList.findIndex(function(c){return c.element===o});if(-1===l)return!1;for(var u=l;u<this.popupList.length;u++)if(vo(this.popupList[u].element,a))return!0;return this.isElementWithinCustomPopup(a.target)},t.prototype.isElementWithinCustomPopup=function(r){for(var o=this.gridOptionsWrapper.getDocument();r&&r!==o.body;){if(r.classList.contains("ag-custom-component-popup")||null===r.parentElement)return!0;r=r.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(r){var o=r.originalMouseEvent,i=r.mouseEvent,s=r.touchEvent,a=null;if(i?a=i:s&&(a=s.touches[0]),a&&o){var u=i?i.screenY:0,p=Math.abs(o.screenX-(i?i.screenX:0))<5,c=Math.abs(o.screenY-u)<
vendor: 4,124 bytes, line 2
25;if(p&&c)return!0}return!1},t.prototype.getWrapper=function(r){for(;!r.classList.contains("ag-popup")&&r.parentElement;)r=r.parentElement;return r.classList.contains("ag-popup")?r:null},t.prototype.setAlwaysOnTop=function(r,o){var i=this.getWrapper(r);i&&(i.classList.toggle("ag-always-on-top",!!o),o&&this.bringPopupToFront(i))},t.prototype.bringPopupToFront=function(r){var o=this.getPopupParent(),i=Array.prototype.slice.call(o.querySelectorAll(".ag-popup")),s=i.length,a=Array.prototype.slice.call(o.querySelectorAll(".ag-popup.ag-always-on-top")),l=a.length,u=this.getWrapper(r);if(u&&!(s<=1)&&o.contains(r)){var p=i.indexOf(u),c=u.querySelectorAll("div"),d=[];for(c.forEach(function(C){0!==C.scrollTop&&d.push([C,C.scrollTop])}),l?u.classList.contains("ag-always-on-top")?p!==s-1&&ie(a).insertAdjacentElement("afterend",u):p!==s-l-1&&a[0].insertAdjacentElement("beforebegin",u):p!==s-1&&ie(i).insertAdjacentElement("afterend",u);d.length;){var v=d.pop();v[0].scrollTop=v[1]}var y={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:u};this.eventService.dispatchEvent(y)}},t.WAIT_FOR_POPUP_CONTENT_RESIZE=200,Xt([h("environment")],t.prototype,"environment",void 0),Xt([h("focusService")],t.prototype,"focusService",void 0),Xt([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Xt([h("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Xt([h("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Xt([I],t.prototype,"postConstruct",null),e=Xt([L("popupService")],t)}(F),qv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ii=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Xv=(function(n){function t(e,r,o){void 0===e&&(e="default"),void 0===r&&(r="listbox");var i=n.call(this,t.getTemplate(e))||this;return i.cssIdentifier=e,i.ariaRole=r,i.listName=o,i.renderedRows=new Map,i.rowHeight=20,i}qv(t,n),t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(r){return e.onFocusIn(r)},onFocusOut:function(r){return e.onFocusOut(r)},focusInnerElement:function(r){return e.focusInnerElement(r)},onTabKeyDown:function(r){return e.onTabKeyDown(r)},handleKeyDown:function(r){return e.handleKeyDown(r)}}),this.setAriaProperties()},t.prototype.setAriaProperties=function(){var r=this.gridOptionsWrapper.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),o=this.eContainer;be(o,this.ariaRole),Ut(o,r)},t.prototype.addResizeObserver=function(){var e=this.drawVirtualRows.bind(this),r=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(r)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var r=e.target;return r.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=Sa(r)-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 P.UP:case P.DOWN:this.navigate(e.key===P.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 r=this.lastFocusedRowIndex+(e?-1:1);return!(r<0||r>=this.model.getRowCount()||(this.focusRow(r),0))},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex}
2,t.prototype.focusRow=function(e){var r=this;this.ensureIndexVisible(e),window.setTimeout(function(){if(r.isAlive()){var o=r.renderedRows.get(e);o&&o.eDiv.focus()}},10)},t.prototype.getComponentAt=function(e){var r=this.renderedRows.get(e);return r&&r.rowComponent},t.prototype.forEachRenderedRow=function(e){this.renderedRows.forEach(function(r,o){return e(r.rowComponent,o)})},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 r=this.model.getRowCount();if("number"!=typeof e||e<0||e>=r)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var o=e*this.rowHeight,i=o+this.rowHeight,s=this.getGui(),a=s.scrollTop,l=s.offsetHeight,c=a+l<i;a>o?s.scrollTop=o:c&&(s.scrollTop=i-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.isAlive()){var r=this.model.getRowCount();this.eContainer.style.height=r*this.rowHeight+"px",xs(function(){return e.eContainer.clientHeight>=r*e.rowHeight},function(){e.isAlive()&&(e.clearVirtualRows(),e.drawVirtualRows())})}},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach(function(r,o){return e.removeRow(o)})},t.prototype.drawVirtualRows=function(){if(this.isAlive()){var e=this.getGui(),r=e.scrollTop,o=r+e.offsetHeight,i=Math.floor(r/this.rowHeight),s=Math.floor(o/this.rowHeight);this.ensureRowsRendered(i,s)}},t.prototype.ensureRowsRendered=function(e,r){var o=this;this.renderedRows.forEach(function(s,a){(a<e||a>r)&&a!==o.lastFocusedRowIndex&&o.removeRow(a)});for(var i=e;i<=r;i++)this.renderedRows.has(i)||i<this.model.getRowCount()&&this.insertRow(i)},t.prototype.insertRow=function(e){var r=this,o=this.model.getRow(e),i=document.createElement("div");if(i.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),be(i,"tree"===this.ariaRole?"treeitem":"option"),dn(i,this.model.getRowCount()),hn(i,e+1),i.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var s=this.model.isRowSelected(e);lr(i,!!s),xa(i,s)}i.style.height=this.rowHeight+"px",i.style.top=this.rowHeight*e+"px";var a=this.componentCreator(o,i);a.addGuiEventListener("focusin",function(){return r.lastFocusedRowIndex=e}),i.appendChild(a.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",i):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",i):this.eContainer.appendChild(i),this.renderedRows.set(e,{rowComponent:a,eDiv:i})},t.prototype.removeRow=function(e){var r=this.renderedRows.get(e);this.eContainer.removeChild(r.eDiv),this.destroyBean(r.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.isAlive()&&(this.clearVirtualRows(),n.prototype.destroy.call(this))},ii([h("resizeObserverService")],t.prototype,"resizeObserverService",void 0),ii([h("focusService")],t.prototype,"focusService",void 0),ii([T("eContainer")],t.prototype,"eContainer",void 0),ii([I],t.prototype,"postConstruct",null)}(ri),["mouseover","mouseout","mouseenter","mouseleave"]),Qv=["touchstart","touchend","touchmove","touchcancel"],Hl=function(){function n(){this.isOutsideAngular=function(t){return Be(Xv,t)}}return n.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},n.prototype.setInterval=function(t,e){return new Ie(function(r){r(window.setInterval(t,e))})},n.prototype.addEventListener=function(t,e,r,o){var i=Be(Qv,e);t.addEventListener(e,r,{capture:!!o,passive:i})},n.prototype.dispatchEvent=function(t,e,r){e()},n.prototype.frameworkComponent=function(t){return null},n.prototype.isFrameworkComponent=function(t){return!1},n}
2(),Zv=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),fr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Jv=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},ty=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Zv(t,n),t.prototype.getNextCellToFocus=function(e,r,o){return void 0===o&&(o=!1),o?this.getNextCellToFocusWithCtrlPressed(e,r):this.getNextCellToFocusWithoutCtrlPressed(e,r)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,r){var a,l,o=e===P.UP,s=e===P.LEFT;if(o||e===P.DOWN)l=o?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),a=r.column;else{var u=this.columnModel.getAllDisplayedColumns(),p=this.gridOptionsWrapper.isEnableRtl();l=r.rowIndex,a=s!==p?u[0]:ie(u)}return{rowIndex:l,rowPinned:null,column:a}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,r){for(var o=r,i=!1;!i;){switch(e){case P.UP:o=this.getCellAbove(o);break;case P.DOWN:o=this.getCellBelow(o);break;case P.RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case P.LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("AG Grid: unknown key for navigation "+e)}i=!o||this.isCellGoodToFocusOn(o)}return o},t.prototype.isCellGoodToFocusOn=function(e){var o,r=e.column;switch(e.rowPinned){case m.PINNED_TOP:o=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case m.PINNED_BOTTOM:o=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:o=this.rowModel.getRow(e.rowIndex)}return!!o&&!r.isSuppressNavigable(o)},t.prototype.getCellToLeft=function(e){if(!e)return null;var r=this.columnModel.getDisplayedColBefore(e.column);return r?{rowIndex:e.rowIndex,column:r,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var r=this.columnModel.getDisplayedColAfter(e.column);return r?{rowIndex:e.rowIndex,column:r,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var r=e.rowIndex,o=e.rowPinned;if(this.isLastRowInContainer(e))switch(o){case m.PINNED_BOTTOM:return null;case m.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(m.PINNED_BOTTOM)?{rowIndex:0,rowPinned:m.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(m.PINNED_BOTTOM)?{rowIndex:0,rowPinned:m.PINNED_BOTTOM}:null}var i=this.rowModel.getRow(e.rowIndex);return this.getNextStickyPosition(i)||{rowIndex:r+1,rowPinned:o}},t.prototype.getNextStickyPosition=function(e,r){if(this.gridOptionsWrapper.isGroupRowsSticky()&&e&&e.sticky){var o=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Jv(arguments[t]));return n}(this.rowRenderer.getStickyTopRowCtrls()).sort(function(l,u){return l.getRowNode().rowIndex-u.getRowNode().rowIndex}),i=r?-1:1,s=o.findIndex(function(l){return l.getRowNode().rowIndex===e.rowIndex}),a=o[s+i];if(a)return{rowIndex:a.getRowNode().rowIndex,rowPinned:null}}},t.prototype.getCellBelow=function(e){if(!e)return null;var r=this.getRowBelow(e);return r?{rowIndex:r.rowIndex,column:e.column,rowPinned:r.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var r=e.rowPinned,o=e.rowIndex;return r===m.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:r===m.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.paginationProxy.getPageLastRow()<=o},t.prototype.getRowAbove=function(e){var r=e.rowIndex,o=e.rowPinned;if(o?0===r:r===this.paginationProxy.getPageFirstRow())return o===m.PINNED_TOP?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(m.PINNED_TOP)?this.getLastFloatingTopRow():null;var s=this.rowModel.getRow(e.rowIndex);return this.getNextStickyPosition(s,!0)||{rowIndex:r-1,rowPinned:o}},t.prototype.getCellAbove=function(e){if(!e)return null;var r=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return r?{rowIndex:r.rowIndex,column:e.column,rowPinned:r.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:m.PINNED_TOP}},t.prototype.getNextTabbedCell=function(e,r){return r?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var r=this.columnModel.getAllDisplayedColumns(),o=e.rowIndex,i=e.rowPinned,s=this.columnModel.getDisplayedColAfter(e.column);if(!s){s=r[0];var a=this.getRowBelow(e);if(M(a)||!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;o=a?a.rowIndex:null,i=a?a.rowPinned:null}return{rowIndex:o,column:s,rowPinned:i}},t.prototype.getNextTabbedCellBackwards=function(e){var r=this.columnModel.getAllDisplayedColumns(),o=e.rowIndex,i=e.rowPinned,s=this.columnModel.getDisplayedColBefore(e.column);if(!s){s=ie(r);var a=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(M(a)||!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;o=a?a.rowIndex:null,i=a?a.rowPinned:null}return{rowIndex:o,column:s,rowPinned:i}},fr([h("columnModel")],t.prototype,"columnModel",void 0),fr([h("rowModel")],t.prototype,"rowModel",void 0),fr([h("rowRenderer")],t.prototype,"rowRenderer",void 0),fr([h("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),fr([h("paginationProxy")],t.prototype,"paginationProxy",void 0),fr([L("cellNavigationService")],t)}
2(F),ry=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},oy=function(n,t){return function(e,r){t(e,r,n)}},iy=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.consuming=!1,e}return ry(t,n),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,g.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var r=this.gridOptionsWrapper.getAlignedGrids();r&&r.forEach(function(o){if(o.api){var i=o.api.__getAlignedGridService();e(i)}})}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent(function(r){r.onColumnEvent(e)})},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent(function(r){r.onScrollEvent(e)})},t.prototype.onScrollEvent=function(e){var r=this;this.onEvent(function(){r.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left)})},t.prototype.getMasterColumns=function(e){var r=[];return e.columns?e.columns.forEach(function(o){r.push(o)}):e.column&&r.push(e.column),r},t.prototype.getColumnIds=function(e){var r=[];return e.columns?e.columns.forEach(function(o){r.push(o.getColId())}):e.column&&r.push(e.column.getColId()),r},t.prototype.onColumnEvent=function(e){var r=this;this.onEvent(function(){switch(e.type){case g.EVENT_COLUMN_MOVED:case g.EVENT_COLUMN_VISIBLE:case g.EVENT_COLUMN_PINNED:case g.EVENT_COLUMN_RESIZED:r.processColumnEvent(e);break;case g.EVENT_COLUMN_GROUP_OPENED:r.processGroupOpenedEvent(e);break;case g.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}})},t.prototype.processGroupOpenedEvent=function(e){var r=e.columnGroup,o=null;if(r){var i=r.getGroupId();o=this.columnModel.getProvidedColumnGroup(i)}r&&!o||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+r.isExpanded()),this.columnModel.setColumnGroupOpened(o,r.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var o,r=this,i=e.column,s=null;if(i&&(s=this.columnModel.getPrimaryColumn(i.getColId())),!i||s){var a=this.getMasterColumns(e);switch(e.type){case g.EVENT_COLUMN_MOVED:var l=e,p=e.columnApi.getColumnState().map(function(w){return{colId:w.colId}});this.columnModel.applyColumnState({state:p,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+l.toIndex);break;case g.EVENT_COLUMN_VISIBLE:var c=e;p=e.columnApi.getColumnState().map(function(b){return{colId:b.colId,hide:b.hide}}),this.columnModel.applyColumnState({state:p},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+c.visible);break;case g.EVENT_COLUMN_PINNED:var d=e;p=e.columnApi.getColumnState().map(function(b){return{colId:b.colId,pinned:b.pinned}}),this.columnModel.applyColumnState({state:p},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+d.pinned);break;case g.EVENT_COLUMN_RESIZED:var f=e,v={};a.forEach(function(w){r.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+w.getActualWidth()),v[w.getId()]={key:w.getColId(),newWidth:w.getActualWidth()}}),null===(o=f.flexColumns)||void 0===o||o.forEach(function(w){v[w.getId()]&&delete v[w.getId()]}),this.columnModel.setColumnWidths(Object.values(v),!1,f.finished,"alignedGridChanged")}var C=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),R=this.gridOptionsWrapper.getAlignedGrids();
2R&&R.forEach(function(w){w.api&&w.api.setAlwaysShowVerticalScroll(C)})}},Zr([h("columnModel")],t.prototype,"columnModel",void 0),Zr([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Zr([oy(0,Fe("loggerFactory"))],t.prototype,"setBeans",null),Zr([I],t.prototype,"init",null),Zr([L("alignedGridsService")],t)}(F),ny=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ni=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},sy=function(n,t){return function(e,r){t(e,r,n)}},ay=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ny(t,n),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,g.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 re(this.selectedNodes,function(r,o){o&&e.push(o)}),e},t.prototype.getSelectedRows=function(){var e=[];return re(this.selectedNodes,function(r,o){o&&o.data&&e.push(o.data)}),e},t.prototype.removeGroupsFromSelection=function(){var e=this;re(this.selectedNodes,function(r,o){o&&o.group&&(e.selectedNodes[o.id]=void 0)})},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===m.ROW_MODEL_TYPE_CLIENT_SIDE){var o=this.rowModel.getRootNode();e||(e=new is(!0,o)).setInactive(),e.forEachChangedNodeDepthFirst(function(i){if(i!==o){var s=i.calculateSelectedFromChildren();i.selectThisNode(null!==s&&s)}})}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var r=this,o={},i=0;return re(this.selectedNodes,function(s,a){a&&a.id!==e.id&&(i+=r.selectedNodes[a.id].setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),r.groupSelectsChildren&&a.parent&&(o[a.parent.id]=a.parent))}),re(o,function(s,a){var l=a.calculateSelectedFromChildren();a.selectThisNode(null!==l&&l)}),i},t.prototype.onRowSelected=function(e){var r=e.node;this.groupSelectsChildren&&r.group||(this.selectedNodes[r.id]=r.isSelected()?r:void 0)},t.prototype.syncInRowNode=function(e,r){this.syncInOldRowNode(e,r),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,r){O(r)&&e.id!==r.id&&r&&this.selectedNodes[r.id]==e&&(this.selectedNodes[r.id]=r)},t.prototype.syncInNewRowNode=function(e){O(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()===m.ROW_MODEL_TYPE_CLIENT_SIDE){var r=this.rowModel.getTopLevelNodes();if(null!==r){var o=[];return function i(s){for(var a=0,l=s.length;a<l;a++){var u=s[a];u.isSelected()?o.push(u):u.group&&u.children&&i(u.children)}}(r),o}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 re(this.selectedNodes,function(r,o){o&&e++}),0===e},t.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var r=function(a){return a.selectThisNode(!1)},o=this.rowModel.getType()===m.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!o)return void console.error("AG Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(r)}else re(this.selectedNodes,function(a,l){l&&r(l)}),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:g.EVENT_SELECTION_CHANGED})},t.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==m.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var r=this.rowModel,o=function(s){return s.selectThisNode(!0)};
2e?r.forEachNodeAfterFilter(o):r.forEachNode(o),this.rowModel.getType()===m.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:g.EVENT_SELECTION_CHANGED})},t.prototype.selectNode=function(e,r){e&&e.setSelectedParams({newValue:!0,clearSelection:!r})},t.prototype.deselectIndex=function(e){var r=this.rowModel.getRow(e);this.deselectNode(r)},t.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},t.prototype.selectIndex=function(e,r){var o=this.rowModel.getRow(e);this.selectNode(o,r)},ni([h("rowModel")],t.prototype,"rowModel",void 0),ni([sy(0,Fe("loggerFactory"))],t.prototype,"setBeans",null),ni([I],t.prototype,"init",null),ni([L("selectionService")],t)}(F),ls=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ly=function(){function n(){}return n.prototype.sizeColumnsToFit=function(t){typeof t>"u"&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(t,"api")},n.prototype.setColumnGroupOpened=function(t,e){this.columnModel.setColumnGroupOpened(t,e,"api")},n.prototype.getColumnGroup=function(t,e){return this.columnModel.getColumnGroup(t,e)},n.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},n.prototype.getDisplayNameForColumn=function(t,e){return this.columnModel.getDisplayNameForColumn(t,e)||""},n.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnModel.getDisplayNameForColumnGroup(t,e)||""},n.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},n.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},n.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},n.prototype.getColumnState=function(){return this.columnModel.getColumnState()},n.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},n.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},n.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},n.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},n.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},n.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},n.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},n.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},n.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},n.prototype.setColumnVisible=function(t,e){this.columnModel.setColumnVisible(t,e,"api")},n.prototype.setColumnsVisible=function(t,e){this.columnModel.setColumnsVisible(t,e,"api")},n.prototype.setColumnPinned=function(t,e){this.columnModel.setColumnPinned(t,e,"api")},n.prototype.setColumnsPinned=function(t,e){this.columnModel.setColumnsPinned(t,e,"api")},n.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},n.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},n.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},n.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},n.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},n.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},n.prototype.moveColumn=function(t,e){"number"==typeof t?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not tw
2o indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(t,e,"api")):this.columnModel.moveColumn(t,e,"api")},n.prototype.moveColumnByIndex=function(t,e){this.columnModel.moveColumnByIndex(t,e,"api")},n.prototype.moveColumns=function(t,e){this.columnModel.moveColumns(t,e,"api")},n.prototype.moveRowGroupColumn=function(t,e){this.columnModel.moveRowGroupColumn(t,e)},n.prototype.setColumnAggFunc=function(t,e){this.columnModel.setColumnAggFunc(t,e)},n.prototype.setColumnWidth=function(t,e,r,o){void 0===r&&(r=!0),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,r,o)},n.prototype.setColumnWidths=function(t,e,r){void 0===e&&(e=!0),this.columnModel.setColumnWidths(t,!1,e,r)},n.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},n.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},n.prototype.getSecondaryPivotColumn=function(t,e){return console.warn("AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead"),this.getPivotResultColumn(t,e)},n.prototype.getPivotResultColumn=function(t,e){return this.columnModel.getSecondaryPivotColumn(t,e)},n.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},n.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},n.prototype.removeValueColumn=function(t){this.columnModel.removeValueColumn(t,"api")},n.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},n.prototype.addValueColumn=function(t){this.columnModel.addValueColumn(t,"api")},n.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},n.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},n.prototype.removeRowGroupColumn=function(t){this.columnModel.removeRowGroupColumn(t,"api")},n.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},n.prototype.addRowGroupColumn=function(t){this.columnModel.addRowGroupColumn(t,"api")},n.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},n.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},n.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},n.prototype.removePivotColumn=function(t){this.columnModel.removePivotColumn(t,"api")},n.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},n.prototype.addPivotColumn=function(t){this.columnModel.addPivotColumn(t,"api")},n.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},n.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},n.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},n.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},n.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},n.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},n.prototype.autoSizeColumn=function(t,e){return this.columnModel.autoSizeColumn(t,e,"api")},n.prototype.autoSizeColumns=function(t,e){this.columnModel.autoSizeColumns({columns:t,skipHeader:e})},n.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns(t,"api")},n.prototype.setSecondaryColumns=function(t){console.warn("AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead"),this.setPivotResultColumns(t)},n.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},n.prototype.getSecondaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead"),this.getPivotResultColumns()},n.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},n.prototype.getPrimaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead"),this.getColumns()},n.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(H.removeAllReferences.bind(window,this,"Column API"),100)},n.prototype.getAllColumns=function(){return console.warn("AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead"),this.getColumns()},n.prototype.columnGroupOpened=function(t,e){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(t,e)},n.prototype.hideColumns=function(t,e){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(t,!e,"api")},n.prototype.hideColumn=function(t,e){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(t,!e,"api")},n.prototype.setState=function(t){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(t)},n.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},n.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},n.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},n.prototype.removeAggregationColumn=function(t){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(t,"api")},n.prototype.removeAggregationColumns=function(t){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(t,"api")},n.prototype.addAggregationColumn=function(t){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(t,"api")},n.prototype.addAggregationColumns=function(t){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(t,"api")}
2,n.prototype.setColumnAggFunction=function(t,e){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(t,e,"api")},n.prototype.getDisplayNameForCol=function(t){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(t,null)},n.prototype.setColumnState=function(t){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:t,applyOrder:!0},"api")},n.prototype.getOriginalColumnGroup=function(t){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(t)},ls([h("columnModel")],n.prototype,"columnModel",void 0),ls([Ee],n.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),ls([L("columnApi")],n)}(),uy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},py=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.initialised=!1,e}return uy(t,n),t.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(g.EVENT_CELL_VALUE_CHANGED,function(r){return e.callColumnCellValueChangedHandler(r)},this.gridOptionsWrapper.useAsyncEvents())},t.prototype.getValue=function(e,r,o,i){if(void 0===o&&(o=!1),void 0===i&&(i=!1),this.initialised||this.init(),r){var p,s=e.getColDef(),a=s.field,l=e.getId(),u=r.data,c=r.groupData&&void 0!==r.groupData[l],d=!i&&r.aggData&&void 0!==r.aggData[l];if(o&&s.filterValueGetter?p=this.executeFilterValueGetter(s.filterValueGetter,u,e,r):this.gridOptionsWrapper.isTreeData()&&d?p=r.aggData[l]:this.gridOptionsWrapper.isTreeData()&&s.valueGetter?p=this.executeValueGetter(s.valueGetter,u,e,r):this.gridOptionsWrapper.isTreeData()&&a&&u?p=uo(u,a,e.isFieldContainsDots()):c?p=r.groupData[l]:d?p=r.aggData[l]:s.valueGetter?p=this.executeValueGetter(s.valueGetter,u,e,r):a&&u&&(p=uo(u,a,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof p&&0===p.indexOf("=")){var f=p.substring(1);p=this.executeValueGetter(f,u,e,r)}if(null==p){var v=this.getOpenedGroup(r,e);if(null!=v)return v}return p}},t.prototype.getOpenedGroup=function(e,r){if(this.gridOptionsWrapper.isShowOpenedGroup()&&r.getColDef().showRowGroup)for(var i=r.getColDef().showRowGroup,s=e.parent;null!=s;){if(s.rowGroupColumn&&(!0===i||i===s.rowGroupColumn.getId()))return s.key;s=s.parent}},t.prototype.setValue=function(e,r,o,i){var s=this.columnModel.getPrimaryColumn(r);if(!e||!s)return!1;M(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.newValueHandler,p=a.valueSetter;if(M(l)&&M(u)&&M(p))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var d,c={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:o,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return c.newValue=o,void 0===(d=u&&O(u)?u(c):O(p)?this.expressionService.evaluate(p,c):this.setValueUsingField(e.data,l,o,s.isFieldContainsDots()))&&(d=!0),!!d&&(e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(s,e),this.eventService.dispatchEvent({type:g.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,columnApi:c.columnApi,colDef:c.colDef,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue,
vendor: 4,291 bytes, line 2
2source:i}),!0)},t.prototype.callColumnCellValueChangedHandler=function(e){var r=e.colDef.onCellValueChanged;"function"==typeof r&&r({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},t.prototype.setValueUsingField=function(e,r,o,i){if(!r)return!1;var s=!1;if(i)for(var a=r.split("."),l=e;a.length>0&&l;){var u=a.shift();0===a.length?(s=l[u]==o)||(l[u]=o):l=l[u]}else(s=e[r]==o)||(e[r]=o);return!s},t.prototype.executeFilterValueGetter=function(e,r,o,i){var s={data:r,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)};return this.expressionService.evaluate(e,s)},t.prototype.executeValueGetter=function(e,r,o,i){var s=o.getId(),a=this.valueCache.getValue(i,s);if(void 0!==a)return a;var l={data:r,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)},u=this.expressionService.evaluate(e,l);return this.valueCache.setValue(i,s,u),u},t.prototype.getValueCallback=function(e,r){var o=this.columnModel.getPrimaryColumn(r);return o?this.getValue(o,e):null},t.prototype.getKeyForNode=function(e,r){var o=this.getValue(e,r),i=e.getColDef().keyCreator,s=o;return i&&(s=i({value:o,colDef:e.getColDef(),column:e,node:r,data:r.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),"string"==typeof s||null==s||"[object Object]"===(s=String(s))&&q(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]"),s},Jr([h("expressionService")],t.prototype,"expressionService",void 0),Jr([h("columnModel")],t.prototype,"columnModel",void 0),Jr([h("valueCache")],t.prototype,"valueCache",void 0),Jr([I],t.prototype,"init",null),Jr([L("valueService")],t)}(F),cy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},dy=function(n,t){return function(e,r){t(e,r,n)}},hy=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return cy(t,n),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,r){return"function"==typeof e?e(r):"string"==typeof e?this.evaluateExpression(e,r):void console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,r){try{return this.createExpressionFunction(e)(r.value,r.context,r.oldValue,r.newValue,r.value,r.node,r.data,r.colDef,r.rowIndex,r.api,r.columnApi,r.getValue,r.column,r.columnGroup)}catch(s){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",r),console.log("Exception = "+s),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var r=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",r);return this.expressionToFunctionCache[e]=o,o},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Wl([dy(0,Fe("loggerFactory"))],t.prototype,"setBeans",null),Wl([L("expressionService")],t)}
2(F),fy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),vy=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return fy(t,n),t.prototype.getTemplate=function(e,r){var o=this.templateCache[e];if(o)return o;var i=this.waitingCallbacks[e],s=this;if(!i){this.waitingCallbacks[e]=i=[];var a=new XMLHttpRequest;a.onload=function(){s.handleHttpResult(this,e)},a.open("GET",e),a.send()}return r&&i.push(r),null},t.prototype.handleHttpResult=function(e,r){if(200===e.status&&null!==e.response){this.templateCache[r]=e.response||e.responseText;for(var o=this.waitingCallbacks[r],i=0;i<o.length;i++)(0,o[i])()}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+r)},t=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}([L("templateService")],t),t}(F),yy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Vl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Cy=function(n,t){return function(e,r){t(e,r,n)}},my=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return yy(t,n),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new us(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Vl([Cy(0,Fe("gridOptionsWrapper"))],t.prototype,"setBeans",null),Vl([L("loggerFactory")],t)}(F),us=function(){function n(t,e){this.name=t,this.isLoggingFunc=e}return n.prototype.isLogging=function(){return this.isLoggingFunc()},n.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},n}(),wy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),gr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ry=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return wy(t,n),t.prototype.setComp=function(e,r,o){var i=this;this.view=e,this.eGridHostDiv=r,this.eGui=o,this.dragAndDropService.addDropTarget({getContainer:function(){return i.eGui},isInterestedIn:function(a){return a===Me.HeaderCell||a===Me.ToolPanel},getIconName:function(){return Se.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(r),this.createManagedBean(new Mn(this.view)),this.addRtlSupport(),this.addManagedListener(this,g.EVENT_KEYBOARD_FOCUS,function(){i.view.addOrRemoveKeyboardFocusClass(!0)}),this.addManagedListener(this,g.EVENT_MOUSE_FOCUS,function(){i.view.addOrRemoveKeyboardFocusClass(!1)});var s=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return s()}),this.ctrlsService.registerGridCtrl(this)},t.prototype.isDetailGrid=function(){var e,r;return(null===(r=null===(e=this.focusService.findTabbableParent(this.getGui()))||void 0===e?void 0:e.getAttribute("row-id"))||void 0===r?void 0:r.startsWith("detail"))||!1},t.prototype.showDropZones=function(){return k.isRegistered(W.RowGroupingModule)},t.prototype.showSideBar=function(){return k.isRegistered(W.SideBarModule)},t.prototype.showStatusBar=function(){return k.isRegistered(W.StatusBarModule)},t.prototype.showWatermark=function(){return k.isRegistered(W.EnterpriseCoreModule)},t.prototype.onGridSizeChanged=function(){this.eventService.dispatchEvent({type:g.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})},t.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)}
2,t.prototype.focusNextInnerContainer=function(e){var r=this.gridOptionsWrapper.getDocument(),o=this.view.getFocusableContainers(),s=o.findIndex(function(a){return a.contains(r.activeElement)})+(e?-1:1);return!(s<=0||s>=o.length)&&this.focusService.focusInto(o[s])},t.prototype.focusInnerElement=function(e){var r=this.view.getFocusableContainers();if(e){if(r.length>1)return this.focusService.focusInto(ie(r),!0);var o=ie(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(o,!0))return!0}return this.focusService.focusFirstHeader()},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},gr([h("focusService")],t.prototype,"focusService",void 0),gr([h("resizeObserverService")],t.prototype,"resizeObserverService",void 0),gr([h("columnModel")],t.prototype,"columnModel",void 0),gr([h("ctrlsService")],t.prototype,"ctrlsService",void 0),gr([h("mouseEventService")],t.prototype,"mouseEventService",void 0),gr([h("dragAndDropService")],t.prototype,"dragAndDropService",void 0),t}(F),Ey=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),eo=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_y=function(n){function t(e){var r=n.call(this,void 0)||this;return r.eGridDiv=e,r}return Ey(t,n),t.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var r={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(i){return e.addCssClass(i)},addOrRemoveKeyboardFocusClass:function(i){return e.addOrRemoveCssClass(Qr.AG_KEYBOARD_FOCUS,i)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(i){e.getGui().style.userSelect=i??"",e.getGui().style.webkitUserSelect=i??""},setCursor:function(i){e.getGui().style.cursor=i??""}};this.ctrl=this.createManagedBean(new Ry);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(r,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(i){return e.ctrl.focusInnerElement(i)}})},t.prototype.insertGridIntoDom=function(){var e=this,r=this.getGui();this.eGridDiv.appendChild(r),this.addDestroyFunc(function(){e.eGridDiv.removeChild(r),e.logger.log("Grid removed from DOM")})},t.prototype.updateLayoutClasses=function(e,r){var o=this.eRootWrapperBody.classList;o.toggle(ve.AUTO_HEIGHT,r.autoHeight),o.toggle(ve.NORMAL,r.normal),o.toggle(ve.PRINT,r.print),this.addOrRemoveCssClass(ve.AUTO_HEIGHT,r.autoHeight),this.addOrRemoveCssClass(ve.NORMAL,r.normal),this.addOrRemoveCssClass(ve.PRINT,r.print)},t.prototype.createTemplate=function(){return'<div class="ag-root-wrapper" role="presentation">\n                '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n                <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">\n                    <ag-grid-body ref="gridBody"></ag-grid-body>\n                    '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n                </div>\n                "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n                <ag-pagination></ag-pagination>\n                "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n            </div>"},t.prototype.getFocusableElement=function(){return this.eRootWrapperBody},t.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter(function(r){return ar(r)})},eo([h("loggerFactory")],t.prototype,"loggerFactory",void 0),eo([T("gridBody")],t.prototype,"gridBodyComp",void 0),eo([T("sideBar")],t.prototype,"sideBarComp",void 0),eo([T("rootWrapperBody")],t.prototype,"eRootWrapperBody",void 0),eo([I],t.prototype,"postConstruct",null),t}
2(ri),Sy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Bl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Oy=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},ps=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(Oy(arguments[t]));return n},Py=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}var e;return Sy(t,n),e=t,t.prototype.progressSort=function(r,o,i){var s=this.getNextSortDirection(r);this.setSortForColumn(r,s,o,i)},t.prototype.setSortForColumn=function(r,o,i,s){var a;o!==m.SORT_ASC&&o!==m.SORT_DESC&&(o=null);var u=[r];if(this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&r.getColDef().showRowGroup){var c=null===(a=this.columnModel.getSourceColumnsForGroupColumn(r))||void 0===a?void 0:a.filter(function(f){return f.getColDef().sortable});c&&(u=ps([r],c))}u.forEach(function(f){return f.setSort(o,s)}),(i||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarTheseColumns(u,s),this.updateSortIndex(r),this.dispatchSortChangedEvents(s)},t.prototype.updateSortIndex=function(r){var o=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),i=this.columnModel.getGroupDisplayColumnForGroup(r.getId()),s=o&&i||r,a=this.getIndexableColumnsOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(p){return p.setSortIndex(null)});var l=a.filter(function(p){return p!==s});(s.getSort()?ps(l,[s]):l).forEach(function(p,c){return p.setSortIndex(c)})},t.prototype.onSortChanged=function(r){this.dispatchSortChangedEvents(r)},t.prototype.isSortActive=function(){var o=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(i){return!!i.getSort()});return o&&o.length>0},t.prototype.dispatchSortChangedEvents=function(r){this.eventService.dispatchEvent({type:g.EVENT_SORT_CHANGED,source:r})},t.prototype.clearSortBarTheseColumns=function(r,o){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(i){r.includes(i)||i.setSort(void 0,o)})},t.prototype.getNextSortDirection=function(r){var o;if(o=r.getColDef().sortingOrder?r.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():e.DEFAULT_SORTING_ORDER,!Array.isArray(o)||o.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+o),null;var l,i=o.indexOf(r.getSort());return e.DEFAULT_SORTING_ORDER.indexOf(l=i<0||i==o.length-1?o[0]:o[i+1])<0?(console.warn("AG Grid: invalid sort type "+l),null):l},t.prototype.getColumnsOrderedForSort=function(){var r=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),o={};return r.forEach(function(i,s){return o[i.getId()]=s}),r.sort(function(i,s){var a=i.getSortIndex(),l=s.getSortIndex();return null!=a&&null!=l?a-l:null==a&&null==l?o[i.getId()]>o[s.getId()]?1:-1:null==l?-1:1}),r},t.prototype.getIndexableColumnsOrdered=function(){var r=this;return this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()?this.getColumnsOrderedForSort().filter(function(o){var i;return o.getColDef().showRowGroup?!(!o.getColDef().field||!o.getSort())||(null===(i=r.columnModel.getSourceColumnsForGroupColumn(o))||void 0===i?void 0:i.some(function(a){return!!a.getSort()})):!!o.getSort()}):this.getColumnsWithSortingOrdered()},t.prototype.getColumnsWithSortingOrdered=function(){return this.getColumnsOrderedForSort().filter(function(o){return!!o.getSort()})},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map(function(r){return{sort:r.getSort(),colId:r.getId()}})},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map(function(r){return{sort:r.getSort(),column:r}})},t.prototype.canColumnDisplayMixedSort=function(r){var o=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),i=!!r.getColDef().showRowGroup;return o&&i},t.prototype.getDisplaySortForColumn=function(r){var o,i=this.columnModel.getSourceColumnsForGroupColumn(r);if(!this.canColumnDisplayMixedSort(r)||null===(o=i)||void 0===o||!o.length)return r.getSort();var a=r.getColDef().field?ps([r],i):i,l=a[0].getSort();return a.every(function(p){return p.getSort()==l})?l:"mixed"},t.prototype.getDisplaySortIndexForColumn=function(r){var o=this;if(!this.gridOptionsWrapper.isColumnsSortingCoupledToGroup())return this.getColumnsWithSortingOrdered().indexOf(r);var s=this.columnModel.getGroupDisplayColumnForGroup(r.getId());return s?r.getSort()?this.getDisplaySortIndexForColumn(s):null:this.getIndexableColumnsOrdered().filter(function(l){return!o.columnModel.getGroupDisplayColumnForGroup(l.getId())}).indexOf(r)},t.DEFAULT_SORTING_ORDER=[m.SORT_ASC,m.SORT_DESC,null],Bl([h("columnModel")],t.prototype,"columnModel",void 0),e=Bl([L("sortController")],t)}
2(F),Ty=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ay=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ty(t,n),t.prototype.setMouseOver=function(e){this.selectedColumns=e,this.eventService.dispatchEvent({type:g.EVENT_COLUMN_HOVER_CHANGED})},t.prototype.clearMouseOver=function(){this.selectedColumns=null,this.eventService.dispatchEvent({type:g.EVENT_COLUMN_HOVER_CHANGED})},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},t=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}([L("columnHoverService")],t),t}(F),by=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),cs=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Fy=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.executeNextFuncs=[],e.executeLaterFuncs=[],e.active=!1,e.animationThreadCount=0,e}return by(t,n),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){return e.gridBodyCtrl=r.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 r=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push(function(){e.animationThreadCount===r&&e.gridBodyCtrl.setColumnMovingCss(!1)})},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var r=this.executeLaterFuncs;this.executeLaterFuncs=[],(0!==e.length||0!==r.length)&&(window.setTimeout(function(){return e.forEach(function(o){return o()})},0),window.setTimeout(function(){return r.forEach(function(o){return o()})},300))},cs([h("ctrlsService")],t.prototype,"ctrlsService",void 0),cs([I],t.prototype,"postConstruct",null),cs([L("columnAnimationService")],t)}(F),Iy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ds=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Gy=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}var e;return Iy(t,n),e=t,t.prototype.createAutoGroupColumns=function(r,o){var i=this,s=[],a=this.gridOptionsWrapper.isTreeData(),l=this.gridOptionsWrapper.isGroupMultiAutoColumn();return a&&l&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),l=!1),l?o.forEach(function(u,p){s.push(i.createOneAutoGroupColumn(r,u,p))}):s.push(this.createOneAutoGroupColumn(r)),s},t.prototype.createOneAutoGroupColumn=function(r,o,i){var a,s=this.generateDefaultColDef(o);a=o?m.GROUP_AUTO_COLUMN_ID+"-"+o.getId():e.GROUP_AUTO_COLUMN_BUNDLE_ID,Ve(s,this.gridOptionsWrapper.getAutoGroupColumnDef()),(s=this.columnFactory.mergeColDefs(s)).colId=a,this.gridOptionsWrapper.isTreeData()||M(s.field)&&M(s.valueGetter)&&M(s.filterValueGetter)&&(s.filter=!1),i&&i>0&&(s.headerCheckboxSelection=!1);var p=r.find(function(d){return d.getId()==a});if(p)return p.setColDef(s,null),this.columnFactory.applyColumnState(p,s),p;
vendor: 4,099 bytes, line 2
2var c=new X(s,null,a,!0);return this.context.createBean(c),c},t.prototype.generateDefaultColDef=function(r){var o=this.gridOptionsWrapper.getAutoGroupColumnDef(),s={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(o&&(o.cellRenderer||o.cellRendererFramework||o.cellRendererSelector)||(s.cellRenderer="agGroupCellRenderer"),r){var l=r.getColDef();Object.assign(s,{headerName:this.columnModel.getDisplayNameForColumn(r,"header"),headerValueGetter:l.headerValueGetter}),(l.cellRenderer||l.cellRendererFramework)&&Object.assign(s,{cellRendererParams:{innerRenderer:l.cellRenderer,innerRendererFramework:l.cellRendererFramework,innerRendererParams:l.cellRendererParams}}),s.showRowGroup=r.getColId()}else s.showRowGroup=!0;return s},t.GROUP_AUTO_COLUMN_BUNDLE_ID=m.GROUP_AUTO_COLUMN_ID,ds([h("columnModel")],t.prototype,"columnModel",void 0),ds([h("columnFactory")],t.prototype,"columnFactory",void 0),e=ds([L("autoGroupColService")],t)}(F),xy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),hs=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ly=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return xy(t,n),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.centerRowContainerCon=r.centerRowContainerCtrl,e.addManagedListener(e.eventService,g.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,g.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(),r=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(r>0){var o=Math.floor(r/e);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},hs([h("ctrlsService")],t.prototype,"ctrlsService",void 0),hs([I],t.prototype,"postConstruct",null),hs([L("paginationAutoPageSizeService")],t)}(F),My=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),kl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ny=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.cacheVersion=0,e}return My(t,n),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,r,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[r]=o)},t.prototype.getValue=function(e,r){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[r]},kl([I],t.prototype,"init",null),kl([L("valueCache")],t)}
2(F),Hy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),si=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Wy=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Hy(t,n),t.prototype.init=function(){this.rowModel.getType()===m.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,g.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==m.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,r){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if
vendor: 5,494 bytes, line 2
2(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),i=new is(o,this.clientSideRowModel.getRootNode());i.addParentNode(e.parent,[r]),this.clientSideRowModel.doAggregate(i)}this.rowRenderer.refreshCells()}},si([h("rowModel")],t.prototype,"rowModel",void 0),si([h("rowRenderer")],t.prototype,"rowRenderer",void 0),si([I],t.prototype,"init",null),si([L("changeDetectionService")],t)}(F),Vy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ul=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},By=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Vy(t,n),t.prototype.adaptFunction=function(e,r){var o=this.componentMetadataProvider.retrieve(e);return o&&o.functionAdapter?o.functionAdapter(r):null},t.prototype.adaptCellRendererFunction=function(e){return function(){function o(){}return o.prototype.refresh=function(i){return!1},o.prototype.getGui=function(){return this.eGui},o.prototype.init=function(i){var s=e(i),a=typeof s;this.eGui="string"!==a&&"number"!==a&&"boolean"!==a?null!=s?s:me("<span></span>"):me("<span>"+s+"</span>")},o}()},t.prototype.doesImplementIComponent=function(e){return!!e&&e.prototype&&"getGui"in e.prototype},Ul([h("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),Ul([L("agComponentUtils")],t)}(F),ky=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),fs=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Uy=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ky(t,n),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","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},fs([h("agComponentUtils")],t.prototype,"agComponentUtils",void 0),fs([I],t.prototype,"postConstruct",null),fs([L("componentMetadataProvider")],t)}
2(F),jy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),jl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ky={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},zl={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},to={},$y=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return jy(t,n),t.prototype.getSassVariable=function(e,r){var o="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),i=Ky[o][r],s=0;to[e]||(to[e]={});var a=to[e][r];if(null!=a)return a;if(zl[r]){var l=zl[r],u=document.createElement("div");u.classList.add(e),u.style.position="absolute";var p=l.reduce(function(d,f){var v=document.createElement("div");return v.style.position="static",v.classList.add(f),d.appendChild(v),v},u);if(document.body){document.body.appendChild(u);var c=-1!==r.toLowerCase().indexOf("height")?"height":"width";s=parseInt(window.getComputedStyle(p)[c],10),document.body.removeChild(u)}}return to[e][r]=s||i,to[e][r]},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/g,r=this.eGridDiv,o=null,i=[];r;){if(o=e.exec(r.className)){var s=r.className.match(e);s&&(i=s);break}r=r.parentElement||void 0}if(!o)return{allThemes:i};var a=o[0];if(void 0===o[2]){var u=a.replace("ag-","ag-theme-");q(function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+a+" with "+u+".")},"using-old-theme")}return{theme:a,el:r,themeFamily:a.replace(/-dark$/,""),allThemes:i}},jl([h("eGridDiv")],t.prototype,"eGridDiv",void 0),jl([L("environment")],t)}(F),Yy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ai=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},qy=function(n,t){return function(e,r){t(e,r,n)}},Xy=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return Yy(t,n),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Js(),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 r=this.ctrlsService.getGridBodyCtrl().getScrollFeature
2().getVScrollPosition().top,o=this.getUiBodyHeight();(r!==this.scrollY||o!==this.uiBodyHeight)&&(this.scrollY=r,this.uiBodyHeight=o,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,r=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+r+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(r)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:g.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 r="number"==typeof e?Math.floor(e):null;this.divStretchOffset!==r&&(this.divStretchOffset=r,this.eventService.dispatchEvent({type:g.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 r=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return r.bottom-r.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var r=this.modelHeight-this.getUiBodyHeight();return this.maxScrollY*(e/r)},ai([h("ctrlsService")],t.prototype,"ctrlsService",void 0),ai([qy(0,Fe("loggerFactory"))],t.prototype,"agWire",null),ai([I],t.prototype,"postConstruct",null),ai([L("rowContainerHeightService")],t)}(F),Qy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Kl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Zy=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Qy(t,n),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},t.prototype.updateSelectableAfterGrouping=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,function(o){return o.childrenAfterGroup})},t.prototype.recurseDown=function(e,r){var o=this;e&&e.forEach(function(i){var s;i.group&&(i.hasChildren()&&o.recurseDown(r(i),r),s=o.groupSelectsChildren?O((r(i)||[]).find(function(l){return!0===l.selectable})):!!o.isRowSelectableFunc&&o.isRowSelectableFunc(i),i.setRowSelectable(s))})},Kl([I],t.prototype,"init",null),Kl([L("selectableService")],t)}(F),Jy=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Je=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},eC=function(n){function t(){var e=n.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e}return Jy(t,n),t.prototype.postConstruct=function(){var e=this,r=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",he(r?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",he(r?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",he(r?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",he(r?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&
vendor: 6,346 bytes, line 2
2!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,g.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(s){var a=s.el,l=s.fn;e.addManagedListener(a,"click",l),e.addManagedListener(a,"keydown",function(u){(u.key===P.ENTER||u.key===P.SPACE)&&(u.preventDefault(),l())})}),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,r=this.paginationProxy.getCurrentPage();this.lbCurrent.innerHTML=this.formatNumber(e?r+1:0)},t.prototype.formatNumber=function(e){var r=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(r)return r({value:e});var i=this.gridOptionsWrapper.getLocaleTextFunc();return Yi(e,i("thousandSeparator",","),i("decimalSeparator","."))},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),r=e("page","Page"),o=e("to","to"),i=e("of","of"),s=e("firstPage","First Page"),a=e("previousPage","Previous Page"),l=e("nextPage","Next Page"),u=e("lastPage","Last Page"),p=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+p+'">\n                <span class="ag-paging-row-summary-panel" role="status">\n                    <span id="ag-'+p+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+p+'-to">'+o+'</span>\n                    <span id="ag-'+p+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+p+'-of">'+i+'</span>\n                    <span id="ag-'+p+'-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="'+s+'"></div>\n                    <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n                    <span class="ag-paging-description" role="status">\n                        <span id="ag-'+p+'-start-page">'+r+'</span>\n                        <span id="ag-'+p+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n                        <span id="ag-'+p+'-of-page">'+i+'</span>\n                        <span id="ag-'+p+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n                    </span>\n                    <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+l+'"></div>\n                    <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+u+'"></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(),r=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var i=this.isZeroPagesToDisplay();this.nextButtonDisabled=r&&e===o-1||i,this.lastButtonDisabled=!r||i||e===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,r){pn(e,r),e.classList.toggle("ag-disabled",r),r?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},t.prototype.updateRowLabels=function(){var s,a,e=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),o=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?s=a=0:(a=(s=r*e+1)+r-1,o&&a>i&&(a=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(s),this.lbLastRowOnPage.innerHTML=this.rowNodeBlockLoader.isLoading()?"?":this.formatNumber(a)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.getTotalPages();return e&&0===r},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.getTotalPages(),o=e?this.paginationProxy.getMasterRowCount():null;if(1===o){var i=this.paginationProxy.getRow(0);if(i&&i.group&&!i.groupData&&!i.aggData)return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(r),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var a=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=a,this.lbRecordCount.innerHTML=a}},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)},Je([h("paginationProxy")],t.prototype,"paginationProxy",void 0),Je([h("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Je([T("btFirst")],t.prototype,"btFirst",void 0),Je([T("btPrevious")],t.prototype,"btPrevious",void 0),Je([T("btNext")],t.prototype,"btNext",void 0),Je([T("btLast")],t.prototype,"btLast",void 0),Je([T("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Je([T("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Je([T("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Je([T("lbCurrent")],t.prototype,"lbCurrent",void 0),Je([T("lbTotal")],t.prototype,"lbTotal",void 0),Je([I],t.prototype,"postConstruct",null),t}
2(j),tC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),vr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ro=function(n){return n[n.Loading=0]="Loading",n[n.NoRows=1]="NoRows",n}(ro||{}),rC=function(n){function t(){var e=n.call(this,t.TEMPLATE)||this;return e.inProgress=!1,e.destroyRequested=!1,e.manuallyDisplayed=!1,e}return tC(t,n),t.prototype.updateLayoutClasses=function(e,r){var o=this.eOverlayWrapper.classList;o.toggle(ve.AUTO_HEIGHT,r.autoHeight),o.toggle(ve.NORMAL,r.normal),o.toggle(ve.PRINT,r.print)},t.prototype.postConstruct=function(){this.createManagedBean(new Mn(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,g.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},t.prototype.setWrapperTypeClass=function(e){var r=this.eOverlayWrapper.classList;r.toggle("ag-overlay-loading-wrapper",e===ro.Loading),r.toggle("ag-overlay-no-rows-wrapper",e===ro.NoRows)},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var o=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(o,ro.Loading)}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var o=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(o,ro.NoRows)}},t.prototype.showOverlay=function(e,r){var o=this;this.inProgress||(this.setWrapperTypeClass(r),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then(function(i){o.inProgress=!1,o.eOverlayWrapper.appendChild(i.getGui()),o.activeOverlay=i,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())}),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),ke(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},t.prototype.destroy=function(){this.destroyActiveOverlay(),n.prototype.destroy.call(this)},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),r=this.gridOptionsWrapper.isSuppressNoRowsOverlay();e&&!r?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){this.columnModel.isReady()&&!this.paginationProxy.isEmpty()&&!this.manuallyDisplayed&&this.hideOverlay()},t.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>',vr([h("userComponentFactory")],t.prototype,"userComponentFactory",void 0),vr([h("paginationProxy")],t.prototype,"paginationProxy",void 0),vr([h("gridApi")],t.prototype,"gridApi",void 0),vr([h("columnModel")],t.prototype,"columnModel",void 0),vr([T("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),vr([I],t.prototype,"postConstruct",null),t}(j),oC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),li=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},iC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return oC(t,n),t.prototype.getFirstRow=function(){var r,e=0;return this.pinnedRowModel.getPinnedTopRowCount()?r=m.PINNED_TOP:this.rowModel.getRowCount()?(r=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(r=m.PINNED_BOTTOM),void 0===r?null:{rowIndex:e,rowPinned:r}},t.prototype.getLastRow=function(){var e,r=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),i=this.pinnedRowModel.getPinnedTopRowCount();return o?(r=m.PINNED_BOTTOM,e=o-1):this.rowModel.getRowCount()?(r=null,e=this.paginationProxy.getPageLastRow()):i&&(r=m.PINNED_TOP,e=i-1),void 0===e?null:{rowIndex:e,rowPinned:r}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case m.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case m.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,r){return!e&&!r||!(e&&!r||!e&&r)&&e.rowIndex===r.rowIndex&&e.rowPinned==r.rowPinned},t.prototype.before=function(e,r){switch(e.rowPinned){case m.PINNED_TOP:if(r.rowPinned!==m.PINNED_TOP)return!0;break;case m.PINNED_BOTTOM:if(r.rowPinned!==m.PINNED_BOTTOM)return!1;break;default:if(O(r.rowPinned))return r.rowPinned!==m.PINNED_TOP}return e.rowIndex<r.rowIndex},t.prototype.rowMax=function(e){var o,r=this;return e.forEach(function(i){(void 0===o||r.before(o,i))&&(o=i)}),o},t.prototype.rowMin=function(e){var o,r=this;return e.forEach(function(i){(void 0===o||r.before(i,o))&&(o=i)}),o},li([h("rowModel")],t.prototype,"rowModel",void 0),li([h("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),li([h("paginationProxy")],t.prototype,"paginationProxy",void 0),li([L("rowPositionUtils")],t)}
2(F),nC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),aC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return nC(t,n),t.prototype.createId=function(e){return this.createIdFromValues(e.rowIndex,e.column,e.rowPinned)},t.prototype.createIdFromValues=function(e,r,o){return e+"."+(o??"null")+"."+r.getId()},t.prototype.equals=function(e,r){return e.column===r.column&&e.rowPinned===r.rowPinned&&e.rowIndex===r.rowIndex},t=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}([L("cellPositionUtils")],t),t}(F),lC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),oo=function(){return function n(t){this.cellValueChanges=t}}(),ui=function(n){function t(e,r,o,i){var s=n.call(this,e)||this;return s.initialRange=r,s.finalRange=o,s.ranges=i,s}return lC(t,n),t}(oo),$l=function(){function n(t){this.actionStack=[],this.maxStackSize=t||n.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return n.prototype.pop=function(){return this.actionStack.pop()},n.prototype.push=function(t){t.cellValueChanges&&t.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},n.prototype.clear=function(){this.actionStack=[]},n.prototype.getCurrentStackSize=function(){return this.actionStack.length},n.DEFAULT_STACK_SIZE=10,n}(),uC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),pi=function(){return pi=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},pi.apply(this,arguments)},lt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pC=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},dC=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.cellValueChanges=[],e.activeCellEdit=null,e.activeRowEdit=null,e.isPasting=!1,e.isRangeInAction=!1,e.onCellValueChanged=function(r){var o={column:r.column,rowIndex:r.rowIndex,rowPinned:r.rowPinned},i=null!==e.activeCellEdit&&e.cellPositionUtils.equals(e.activeCellEdit,o),s=null!==e.activeRowEdit&&e.rowPositionUtils.sameRow(e.activeRowEdit,o);if(i||s||e.isPasting||e.isRangeInAction){var c=r.oldValue,d=r.value,f={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:r.column.getColId(),newValue:d,oldValue:c};e.cellValueChanges.push(f)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return uC(t,n),t.prototype.init=function(){var e=this;if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var r=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();r<=0||(this.undoStack=new $l(r),this.redoStack=new $l(r),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,g.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,g.EVENT_MODEL_UPDATED,function(o){o.keepUndoRedoStack||e.clearStacks()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,g.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,g.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,g.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))}},t.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},t.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},t.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();!e||!e.cellValueChanges||(this.processAction(e,function(r){return r.oldValue}),e instanceof ui?this.processRange(e.ranges||[e.initialRange]):this.processCell(e.cellValueChanges),this.redoStack.push(e))}},t.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();!e||!e.cellValueChanges||(this.processAction(e,function(r){return r.newValue}),e instanceof ui?this.processRange(e.ranges||[e.finalRange]):this.processCell(e.cellValueChanges),this.undoStack.push(e))}},t.prototype.processAction=function(e,r){var o=this;
2e.cellValueChanges.forEach(function(i){var s,u=i.columnId,c=o.getRowNode({rowIndex:i.rowIndex,rowPinned:i.rowPinned});if(c.displayed){var d=r(i),f="function"==typeof(null===(s=d)||void 0===s?void 0:s.toString)?d.toString():d;c.setDataValue(u,f)}})},t.prototype.processRange=function(e){var o,r=this;this.rangeService.removeAllCellRanges(!0),e.forEach(function(i,s){if(i){var a=i.startRow,l=i.endRow;s===e.length-1&&(o={rowPinned:a.rowPinned,rowIndex:a.rowIndex,columnId:i.startColumn.getColId()},r.setLastFocusedCell(o)),r.rangeService.addCellRange({rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,rowEndIndex:l.rowIndex,rowEndPinned:l.rowPinned,columnStart:i.startColumn,columns:i.columns})}})},t.prototype.processCell=function(e){var r=e[0],a=this.getRowNode({rowIndex:r.rowIndex,rowPinned:r.rowPinned});this.setLastFocusedCell({rowPinned:r.rowPinned,rowIndex:a.rowIndex,columnId:r.columnId},!0)},t.prototype.setLastFocusedCell=function(e,r){var o=e.rowIndex,i=e.columnId,s=e.rowPinned,a=this.gridBodyCtrl.getScrollFeature(),l=this.columnModel.getGridColumn(i);if(l){a.ensureIndexVisible(o),a.ensureColumnVisible(l);var u={rowIndex:o,column:l,rowPinned:s};this.focusService.setFocusedCell(pi(pi({},u),{forceBrowserFocus:!0})),r&&this.rangeService.setRangeToCell(u)}},t.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_ROW_EDITING_STARTED,function(r){e.activeRowEdit={rowIndex:r.rowIndex,rowPinned:r.rowPinned}}),this.addManagedListener(this.eventService,g.EVENT_ROW_EDITING_STOPPED,function(){var r=new oo(e.cellValueChanges);e.pushActionsToUndoStack(r),e.activeRowEdit=null})},t.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_CELL_EDITING_STARTED,function(r){e.activeCellEdit={column:r.column,rowIndex:r.rowIndex,rowPinned:r.rowPinned}}),this.addManagedListener(this.eventService,g.EVENT_CELL_EDITING_STOPPED,function(r){if(e.activeCellEdit=null,r.valueChanged&&!e.activeRowEdit&&!e.isPasting&&!e.isRangeInAction){var i=new oo(e.cellValueChanges);e.pushActionsToUndoStack(i)}})},t.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_PASTE_START,function(){e.isPasting=!0}),this.addManagedListener(this.eventService,g.EVENT_PASTE_END,function(){var r=new oo(e.cellValueChanges);e.pushActionsToUndoStack(r),e.isPasting=!1})},t.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_FILL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,g.EVENT_FILL_END,function(r){var o=new ui(e.cellValueChanges,r.initialRange,r.finalRange);e.pushActionsToUndoStack(o),e.isRangeInAction=!1})},t.prototype.addCellKeyListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,g.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,function(){var r;r=e.rangeService&&e.gridOptionsWrapper.isEnableRangeSelection()?new ui(e.cellValueChanges,void 0,void 0,function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(pC(arguments[t]));return n}(e.rangeService.getCellRanges())):new oo(e.cellValueChanges),e.pushActionsToUndoStack(r),e.isRangeInAction=!1})},t.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},t.prototype.getRowNode=function(e){switch(e.rowPinned){case m.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case m.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},lt([h("focusService")],t.prototype,"focusService",void 0),lt([h("ctrlsService")],t.prototype,"ctrlsService",void 0),lt([h("rowModel")],t.prototype,"rowModel",void 0),lt([h("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),lt([h("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),lt([h("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),lt([h("columnModel")],t.prototype,"columnModel",void 0),lt([J("rangeService")],t.prototype,"rangeService",void 0),lt([I],t.prototype,"init",null),lt([L("undoRedoService")],t)}
vendor: 4,228 bytes, line 2
2(F),hC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Cs=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},fC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return hC(t,n),t.prototype.findHeader=function(e,r){var o;if(o=e.column instanceof Ae?this.columnModel["getDisplayedGroup"+r](e.column):this.columnModel["getDisplayedCol"+r](e.column))return{column:o,headerRowIndex:e.headerRowIndex}},t.prototype.findColAtEdgeForHeaderRow=function(e,r){var o=this.columnModel.getAllDisplayedColumns(),i=o["start"===r?0:o.length-1];if(i){var a=this.ctrlsService.getHeaderRowContainerCtrl(i.getPinned()).getRowType(e);return a==He.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(i,e)}:{headerRowIndex:null==a?-1:e,column:i}}},Cs([h("columnModel")],t.prototype,"columnModel",void 0),Cs([h("ctrlsService")],t.prototype,"ctrlsService",void 0),Cs([L("headerPositionUtils")],t)}(F),vC=function(){function n(){}return n.prototype.buildColumnDefs=function(t,e,r){var o=this,i=[],s={};return t.forEach(function(a){for(var u=!0,p=o.createDefFromColumn(a,e,r),c=a.getOriginalParent();c;){var d=null;if(c.isPadding())c=c.getOriginalParent();else{var f=s[c.getGroupId()];if(f){f.children.push(p),u=!1;break}(d=o.createDefFromGroup(c))&&(d.children=[p],s[d.groupId]=d,p=d,c=c.getOriginalParent())}}u&&i.push(p)}),i},n.prototype.createDefFromGroup=function(t){var e=lo(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e},n.prototype.createDefFromColumn=function(t,e,r){var o=lo(t.getColDef());return o.colId=t.getColId(),o.width=t.getActualWidth(),o.rowGroup=t.isRowGroupActive(),o.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,o.pivot=t.isPivotActive(),o.pivotIndex=t.isPivotActive()?r.indexOf(t):null,o.aggFunc=t.isValueActive()?t.getAggFunc():null,o.hide=!t.isVisible()||void 0,o.pinned=t.isPinned()?t.getPinned():null,o.sort=t.getSort()?t.getSort():null,o.sortIndex=null!=t.getSortIndex()?t.getSortIndex():null,o},n=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}([L("columnDefFactory")],n),n}(),ms=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},yC=function(){function n(){}return n.prototype.getInitialRowClasses=function(t){var e=[];return O(t.extraCssClass)&&e.push(t.extraCssClass),e.push("ag-row"),e.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&e.push("ag-opacity-zero"),e.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&e.push("ag-row-pinned"),t.rowNode.isSelected()&&e.push("ag-row-selected"),t.rowNode.footer&&e.push("ag-row-footer"),e.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&e.push("ag-row-loading"),t.fullWidthRow&&e.push("ag-full-width-row"),t.expandable&&(e.push("ag-row-group"),e.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&e.push("ag-row-dragging"),Di(e,this.processClassesFromGridOptions(t.rowNode)),Di(e,this.preProcessRowClassRules(t.rowNode)),e.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&e.push("ag-row-first"),t.lastRowOnPage&&e.push("ag-row-last"),t.fullWidthRow&&(t.pinned===m.PINNED_LE
2FT&&e.push("ag-cell-last-left-pinned"),t.pinned===m.PINNED_RIGHT&&e.push("ag-cell-first-right-pinned")),e},n.prototype.processClassesFromGridOptions=function(t){var e=[],r=function(l){"string"==typeof l?e.push(l):Array.isArray(l)&&l.forEach(function(u){return e.push(u)})},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"),[];r(o)}var i=this.gridOptionsWrapper.getRowClassFunc();return i&&r(i({data:t.data,node:t,rowIndex:t.rowIndex})),e},n.prototype.preProcessRowClassRules=function(t){var e=[];return this.processRowClassRules(t,function(r){e.push(r)},function(r){}),e},n.prototype.processRowClassRules=function(t,e,r){var o={data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),o,e,r)},n.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},ms([h("stylingService")],n.prototype,"stylingService",void 0),ms([h("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ms([L("rowCssClassCalculator")],n)}(),ci=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},CC=function(){function n(){}return n.prototype.doFullSort=function(t,e){var o=t.map(function(i,s){return{currentPos:s,rowNode:i}});return o.sort(this.compareRowNodes.bind(this,e)),o.map(function(i){return i.rowNode})},n.prototype.compareRowNodes=function(t,e,r){for(var o=e.rowNode,i=r.rowNode,s=0,a=t.length;s<a;s++){var d,l=t[s],u=l.sort===m.SORT_DESC,p=this.getValue(o,l.column),c=this.getValue(i,l.column),f=this.getComparator(l,o);if(d=f?f(p,c,o,i,u):H.defaultComparator(p,c,this.gridOptionsWrapper.isAccentedSort()),!isNaN(d)&&0!==d)return l.sort===m.SORT_ASC?d:-1*d}return e.currentPos-r.currentPos},n.prototype.getComparator=function(t,e){var r=t.column,o=r.getColDef().comparator;if(null!=o)return o;if(r.getColDef().showRowGroup){var i=!e.group&&r.getColDef().field;if(i){var s=this.columnModel.getPrimaryColumn(i);if(s)return s.getColDef().comparator}}},n.prototype.getValue=function(t,e){var r,o;if(!this.gridOptionsWrapper.isColumnsSortingCoupledToGroup())return this.valueService.getValue(e,t,!1,!1);if(t.rowGroupColumn===e){if(this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotActive())){if(e.getColDef().keyCreator)return t.key;var u=null===(r=t.allLeafChildren)||void 0===r?void 0:r[0];return u?this.valueService.getValue(e,u,!1,!1):void 0}var p=this.columnModel.getGroupDisplayColumnForGroup(e.getId());return p?null===(o=t.groupData)||void 0===o?void 0:o[p.getId()]:void 0}return t.group&&e.getColDef().showRowGroup?void 0:this.valueService.getValue(e,t,!1,!1)},ci([h("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ci([h("valueService")],n.prototype,"valueService",void 0),ci([h("columnModel")],n.prototype,"columnModel",void 0),ci([L("rowNodeSorter")],n)}(),mC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),RC=function(n){function t(){var r=null!==n&&n.apply(this,arguments)||this;return r.ready=!1,r.readyCallbacks=[],r}var e;return mC(t,n),e=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.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollCtrl&&null!=this.gridHeaderCtrl,this.ready){var r=this.createReadyParams();this.readyCallbacks.forEach(function(o){return o(r)}),this.readyCallbacks.length=0}},t.prototype.whenReady=function(r){this.ready?r(this.createReadyParams()):this.readyCallbacks.push(r)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollCtrl=function(r){this.fakeHScrollCtrl=r,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(r){this.gridHeaderCtrl=r,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(r){this.centerRowContainerCtrl=r,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(r){this.leftRowContainerCtrl=r,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(r){this.rightRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(r){this.topCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(r){this.topLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(r){this.topRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopCenterRowContainerCtrl=function(r){this.stickyTopCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopLeftRowContainerCon=function(r){this.stickyTopLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopRightRowContainerCtrl=function(r){this.stickyTopRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(r){this.bottomCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(r){this.bottomLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(r){this.bottomRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerHeaderContainer=function(r,o){switch(o){case m.PINNED_LE
2FT:this.leftHeaderRowContainerCtrl=r;break;case m.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=r;break;default:this.centerHeaderRowContainerCtrl=r}this.checkReady()},t.prototype.registerGridBodyCtrl=function(r){this.gridBodyCtrl=r,this.checkReady()},t.prototype.registerGridCtrl=function(r){this.gridCtrl=r,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.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(r){switch(r){case m.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case m.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME="ctrlsService",t=e=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}([L(e.NAME)],t),t}(F),EC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),SC=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.registry={},e}return EC(t,n),t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var r=this.registry[e];if(null!=r)return new r},t=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}([L("ctrlsFactory")],t),t}(F),OC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),di=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},PC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return OC(t,n),t.prototype.setComp=function(e,r,o,i){this.view=e,this.eViewport=o,this.eContainer=i,this.eGui=r,this.addManagedListener(this.eventService,g.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this));var s=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,s),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,s),this.addManagedListener(this.gridOptionsWrapper,G.PROP_DOM_LAYOUT,s),this.addManagedListener(this.eventService,g.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.onScrollVisibilityChanged(),this.ctrlsService.registerFakeHScrollCtrl(this),this.view.addOrRemoveCssClass("ag-apple-scrollbar",Ki()||St())},t.prototype.addActiveListenerToggles=function(){var e=this;["mouseenter","mousedown","touchstart"].forEach(function(i){return e.addManagedListener(e.eGui,i,function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!0)})}),["mouseleave","touchend"].forEach(function(i){return e.addManagedListener(e.eGui,i,function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!1)})})},t.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=ra(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles(),this.refreshCompBottom()))},t.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},t.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.view.setBottom(e)}},t.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL,function(r){"horizontal"===r.direction&&e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)}),this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL_END,function(){return e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)})},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),r=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&e,i=this.gridOptionsWrapper.getScrollbarWidth();o&&(r+=i),this.view.setRightSpacerFixedWidth(r),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",r<=i);var s=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(s+=i),this.view.setLeftSpacerFixedWidth(s),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",s<=i)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),r=this.invisibleScrollbar,o=this.gridOptionsWrapper.isSuppressHorizontalScroll(),i=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,a=o?0:0===i&&r?15:i;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",r),this.view.setHeight(a),this.view.setVie
2wportHeight(a),this.view.setContainerHeight(a),this.view.addOrRemoveCssClass("ag-hidden",!e)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},di([h("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),di([h("columnModel")],t.prototype,"columnModel",void 0),di([h("ctrlsService")],t.prototype,"ctrlsService",void 0),di([h("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),t}(F),TC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),io=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},DC=function(n){function t(){return n.call(this,t.TEMPLATE)||this}return TC(t,n),t.prototype.postConstruct=function(){var e=this,r={addOrRemoveCssClass:function(i,s){return e.addOrRemoveCssClass(i,s)},setHeight:function(i){return kt(e.getGui(),i)},setBottom:function(i){return e.getGui().style.bottom=i+"px"},setContainerHeight:function(i){return kt(e.eContainer,i)},setViewportHeight:function(i){return kt(e.eViewport,i)},setRightSpacerFixedWidth:function(i){return nt(e.eRightSpacer,i)},setLeftSpacerFixedWidth:function(i){return nt(e.eLeftSpacer,i)},includeLeftSpacerScrollerCss:function(i,s){return e.eLeftSpacer.classList.toggle(i,s)},includeRightSpacerScrollerCss:function(i,s){return e.eRightSpacer.classList.toggle(i,s)}};this.createManagedBean(new PC).setComp(r,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new Bn(function(i){return e.eContainer.style.width=i+"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>',io([T("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),io([T("eRightSpacer")],t.prototype,"eRightSpacer",void 0),io([T("eViewport")],t.prototype,"eViewport",void 0),io([T("eContainer")],t.prototype,"eContainer",void 0),io([I],t.prototype,"postConstruct",null),t}(j),AC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ws=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},bC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return AC(t,n),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,G.PROP_DOM_LAYOUT,e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===m.DOM_LAYOUT_PRINT,r=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=e?0:this.columnModel.getDisplayedColumnsRightWidth();r!=this.leftWidth&&(this.leftWidth=r,this.eventService.dispatchEvent({type:g.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:g.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},ws([h("columnModel")],t.prototype,"columnModel",void 0),ws([I],t.prototype,"postConstruct",null),ws([L("pinnedWidthService")],t)}
2(F),FC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),hi=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},IC=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.events=[],e}return FC(t,n),t.prototype.postConstruct=function(){this.rowModel.getType()==m.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var r=this;null!=this.clientSideRowModel?(this.events.push(e),null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(function(){r.clientSideRowModel&&r.clientSideRowModel.onRowGroupOpened(),r.events.forEach(function(i){return r.eventService.dispatchEvent(i)}),r.events=[]})),this.dispatchExpandedDebounced()):this.eventService.dispatchEvent(e)},hi([h("animationFrameService")],t.prototype,"animationFrameService",void 0),hi([h("rowModel")],t.prototype,"rowModel",void 0),hi([I],t.prototype,"postConstruct",null),hi([L("rowNodeEventThrottle")],t)}(F),GC=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Yl=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(GC(arguments[t]));return n},xC=function(){function n(t,e,r){e?(this.gridOptions=e,(new LC).create(t,e,function(o){var i=new _y(t);o.createBean(i)},void 0,r)):console.error("AG Grid: no gridOptions provided to the grid")}return n.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},n}(),LC=function(){function n(){}return n.prototype.create=function(t,e,r,o,i){var s=this,a=!!e.debug,l=this.getRegisteredModules(i),u=this.createBeansList(e.rowModelType,l),p=this.createProvidedBeans(t,e,i);if(u){var c={providedBeanInstances:p,beanClasses:u,debug:a},d=new us("AG Grid",function(){return e.debug}),f=new us("Context",function(){return c.debug}),v=new pu(c,f),y=v.getBean("beans");this.registerModuleUserComponents(y,l),this.registerStackComponents(y,l),this.registerControllers(y,l),r(v),y.ctrlsService.whenReady(function(){s.setColumnsAndData(y),s.dispatchGridReadyEvent(y);var C=k.isRegistered(W.EnterpriseCoreModule);d.log("initialised successfully, enterprise = "+C)}),o&&o(v)}},n.prototype.registerControllers=function(t,e){e.forEach(function(r){r.controllers&&r.controllers.forEach(function(o){return t.ctrlsFactory.register(o)})})},n.prototype.registerStackComponents=function(t,e){var r=this.createAgStackComponentsList(e);t.agStackComponentsRegistry.setupComponents(r)},n.prototype.getRegisteredModules=function(t){var e=t?t.modules:null,r=k.getRegisteredModules(),o=[],i={};function s(a,l){(function u(p){i[p.moduleName]||(i[p.moduleName]=!0,o.push(p),k.register(p,a))})(l),l.dependantModules&&l.dependantModules.forEach(s.bind(null,a))}return e&&e.forEach(s.bind(null,!0)),r&&r.forEach(s.bind(null,!k.isPackageBased())),o},n.prototype.registerModuleUserComponents=function(t,e){this.extractModuleEntity(e,function(o){return o.userComponents?o.userComponents:[]}).forEach(function(o){t.userComponentRegistry.registerDefaultComponent(o.componentName,o.componentClass)})},n.prototype.createProvidedBeans=function(t,e,r){var o=r?r.frameworkOverrides:null;M(o)&&(o=new Hl);var i={gridOptions:e,eGridDiv:t,globalEventListener:r?r.globalEventListener:null,frameworkOverrides:o};return r&&r.providedBeanInstances&&Object.assign(i,r.providedBeanInstances),i},n.prototype.createAgStackComponentsList=function(t){var e=[{componentName:"AgCheckbox",componentClass:jr},{componentName:"AgRadioButton",componentClass:sv},{componentName:"AgToggleButton",componentClass:lv},{componentName:"AgInputTextField",componentClass:Il},{componentName:"AgInputTextArea",componentClass:cv},{componentName:"AgInputNumberField",componentClass:hv},{componentName:"AgInputRange",componentClass:gv},{componentName:"AgSelect",componentClass:qa},{componentName:"AgSlider",componentClass:yv},{componentName:"AgAngleSelect",componentClass:mv},{componentName:"AgColorPicker",componentClass:Tv},{componentName:"AgGridBody",componentClass:pf},{componentName:"AgHeaderRoot",componentClass:Rg},{componentName:"AgSortIndicator",componentClass:Fn},{componentName:"AgPagination",componentClass:eC},{componentName:"AgOverlayWrapper",componentClass:rC},{componentName:"AgGroupComponent",componentClass:Av},{componentName:"AgPanel",componentClass:Gl},{componentName:"AgDialog",componentClass:xl},{componentName:"AgRowContainer",componentClass:Pf},{componentName:"AgFakeHorizontalScroll",componentClass:DC}],r=this.extractModuleEntity(t,function(o){return o.agStackComponents?o.agStackComponents:[]});return e.concat(r)},n.prototype.createBeansList=function(t,e){var r=this.getRowModelClass(t,e);if(r){var o=[r,gl,iC,aC,fC,Ly,kf,Rd,By,Uy,Ag,Hd,Xy,_g,qg,Vd,fp,Et,G,Yv,ay,kd,lp,vg,rv,jg,hy,Au,vy,iy,vf,Ny,py,my,cp,Mg,Og,Se,ly,Qr,ff,$y,ty,$g,iv,df,Py,Ay,Fy,Zy,Gy,Wy,Fg,dC,yp,vC,yC,ev,CC,RC,bC,IC,SC],i=this.extractModuleEntity(e,function(a){return a.beans?a.beans:[]});o.push.apply(o,Yl(i));var s=[];return o.forEach(function(a){s.indexOf(a)<0&&s.push(a)}),s}},n.prototype.extractModuleEntity=function(t,e){return[].concat.apply([],Yl(t.map(e)))},n.prototype.setColumnsAndData=function(t){var e=t.gridOptionsWrapper.getColumnDefs();t.columnModel.setColumnDefs(e||[],"gridInitializing"),t.rowModel.start()},n.prototype.dispatchGridReadyEvent=function(t){t.eventService.dispatchEvent({type:g.EVENT_GRID_READY})},n.prototype.getRowModelClass=function(t,e){t||(t=m.ROW_MODEL_TYPE_CLIENT_SIDE);var r={};e.forEach(function(i){re(i.rowModels,function(s,a){r[s]=a})});var o=r[t];if(O(o))return o;k.isPackageBased()?[m.ROW_MODEL_TYPE_VIEWPORT,m.ROW_MODEL_TYPE_SERVER_SIDE].includes(t)?console.error('AG Grid: Row Model "'+t+"\" 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 "+t):t===m.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+W.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===m.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+W.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===m.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+W.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===m.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+W.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 "+t)},n}(),MC=function(){function n(){}return n.prototype.wrap=function(t,e,r,o){var i=this;void 0===r&&(r=[]);var s=this.createWrapper(t,o);return e.forEach(function(a){i.createMethod(s,a,!0)}),r.forEach(function(a){i.createMethod(s,a,!1)}),s},n.prototype.unwrap=function(t){return t},n.prototype.createMethod=function(t,e,r){t.addMethod(e,this.createMethodProxy(t,e,r))},n.prototype.createMethodProxy=function(t,e,r){return function(){return t.hasMethod(e)?t.callMethod(e,arguments):(r&&console.warn("AG Grid: Framework component is missing the method "+e+"()"),null)}},n}(),yr=typeof global>"u"?{}:global;yr.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement,yr.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement,yr.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement,yr.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement,yr.Node=typeof Node>"u"?{}:Node,yr.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var HC=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},VC=function(){function n(t,e,r,o,i,s){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=e,this.eventService=r,this.columnModel=o,this.beans=s,this.selectionService=i,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=n.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return n.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},n.prototype.getCopyOfNodesMap=function(){return H.cloneObject(this.allNodesMap)},n.prototype.getRowNode=function(t){return this.allNodesMap[t]},n.prototype.setRowData=function(t){var e=this;if("string"!=typeof t){var r=this.rootNode,o=this.rootNode.sibling;r.childrenAfterFilter=null,r.childrenAfterGroup=null,r.childrenAfterAggFilter=null,r.childrenAfterSort=null,r.childrenMapped=null,r.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?r.allLeafChildren=t.map(function(i){return e.createNode(i,e.rootNode,n.TOP_LEVEL)}):(r.allLeafChildren=[],r.childrenAfterGroup=[]),o&&(o.childrenAfterFilter=r.childrenAfterFilter,o.childrenAfterGroup=r.childrenAfterGroup,o.childrenAfterAggFilter=r.childrenAfterAggFilter,o.childrenAfterSort=r.childrenAfterSort,o.childrenMapped=r.childrenMapped,o.allLeafChildren=r.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 f
2irst")},n.prototype.updateRowData=function(t,e){var r={remove:[],update:[],add:[]},o=[];return this.executeRemove(t,r,o),this.executeUpdate(t,r,o),this.executeAdd(t,r),this.updateSelection(o),e&&H.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),r},n.prototype.updateSelection=function(t){var e=t.length>0;e&&t.forEach(function(o){o.setSelected(!1,!1,!0)}),this.selectionService.updateGroupsFromChildrenSelections(),e&&this.eventService.dispatchEvent({type:g.EVENT_SELECTION_CHANGED})},n.prototype.executeAdd=function(t,e){var r=this,o=t.add,i=t.addIndex;if(!H.missingOrEmpty(o)){var l,u,s=o.map(function(d){return r.createNode(d,r.rootNode,n.TOP_LEVEL)});if("number"==typeof i&&i>=0){var p=this.rootNode.allLeafChildren,c=0===i?0:p.reduce(function(d,f,v){var y,C=f.rowIndex,R=null===(y=p[d])||void 0===y?void 0:y.rowIndex;return null!=C&&null!=R&&C<i&&C>R?v:d},0)+1;l=p.slice(0,c),u=p.slice(c,p.length)}else l=this.rootNode.allLeafChildren,u=[];this.rootNode.allLeafChildren=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(HC(arguments[t]));return n}(l,s,u),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),e.add=s}},n.prototype.executeRemove=function(t,e,r){var o=this,i=t.remove;if(!H.missingOrEmpty(i)){var s={};i.forEach(function(a){var l=o.lookupRowNode(a);l&&(l.isSelected()&&r.push(l),l.clearRowTopAndRowIndex(),s[l.id]=!0,delete o.allNodesMap[l.id],e.remove.push(l))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(a){return!s[a.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},n.prototype.executeUpdate=function(t,e,r){var o=this,i=t.update;H.missingOrEmpty(i)||i.forEach(function(s){var a=o.lookupRowNode(s);a&&(a.updateData(s),!a.selectable&&a.isSelected()&&r.push(a),o.setMasterForRow(a,s,n.TOP_LEVEL,!1),e.update.push(a))})},n.prototype.lookupRowNode=function(t){var r,e=this.gridOptionsWrapper.getRowIdFunc();if(e){var o=e({data:t,level:0});if(!(r=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(!(r=this.rootNode.allLeafChildren.find(function(i){return i.data===t})))return console.error("AG Grid: could not find data item as object was not found",t),console.error("Consider using getRowId to help the Grid find matching row data"),null;return r||null},n.prototype.createNode=function(t,e,r){var o=new K(this.beans);return o.group=!1,this.setMasterForRow(o,t,r,!0),e&&!this.suppressParentsInRowNodes&&(o.parent=e),o.level=r,o.setDataAndId(t,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},n.prototype.setMasterForRow=function(t,e,r,o){if(this.doingTreeData)t.
2setMaster(!1),o&&(t.expanded=!1);else if(t.setMaster(!!this.doingMasterDetail&&(!this.isRowMasterFunc||this.isRowMasterFunc(e))),o){var i=this.columnModel.getRowGroupColumns();t.expanded=!!t.master&&this.isExpanded(r+(i?i.length:0))}},n.prototype.isExpanded=function(t){var e=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===e||t<e},n.TOP_LEVEL=0,n.ROOT_NODE_ID="ROOT_NODE_ID",n}(),BC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),We=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ct=function(n){return n[n.Normal=0]="Normal",n[n.AfterFilter=1]="AfterFilter",n[n.AfterFilterAndSort=2]="AfterFilterAndSort",n[n.PivotNodes=3]="PivotNodes",n}(Ct||{}),kC=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.onRowHeightChanged_debounced=H.debounce(e.onRowHeightChanged.bind(e),100),e.rowsToDisplay=[],e}return BC(t,n),t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:ee.EVERYTHING}),r=!this.gridOptionsWrapper.isSuppressAnimationFrame(),o=this.refreshModel.bind(this,{step:ee.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:r});this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:ee.PIVOT})),this.addManagedListener(this.eventService,g.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var i=this.refreshModel.bind(this,{step:ee.MAP,keepRenderedRows:!0,animate:r});this.addManagedListener(this.gridOptionsWrapper,G.PROP_GROUP_REMOVE_SINGLE_CHILDREN,i),this.addManagedListener(this.gridOptionsWrapper,G.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,i),this.rootNode=new K(this.beans),this.nodeManager=new VC(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.selectionService,this.beans)},t.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,r,o,i){var s,a=!1;do{s=!1;for(var l=this.getRowIndexAtPixel(e),u=this.getRowIndexAtPixel(r),p=Math.max(l,o),c=Math.min(u,i),d=p;d<=c;d++){var f=this.getRow(d);if(f.rowHeightEstimated){var v=this.gridOptionsWrapper.getRowHeightForNode(f);f.setRowHeight(v.height),s=!0,a=!0}}s&&this.setRowTopAndRowIndex()}while(s);return a},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),r=0,o=new Set,i=this.gridOptionsWrapper.getDomLayout()===m.DOM_LAYOUT_NORMAL,s=0;s<this.rowsToDisplay.length;s++){var a=this.rowsToDisplay[s];if(null!=a.id&&o.add(a.id),null==a.rowHeight){var l=this.gridOptionsWrapper.getRowHeightForNode(a,i,e);a.setRowHeight(l.height,l.estimated)}a.setRowTop(r),a.setRowIndex(s),r+=a.rowHeight}return o},t.prototype.clearRowTopAndRowIndex=function(e,r){var o=e.isActive(),i=function(a){a&&null!=a.id&&!r.has(a.id)&&a.clearRowTopAndRowIndex()},s=function(a){i(a),i(a.detailNode),i(a.sibling),a.hasChildren()&&a.childrenAfterGroup&&(o&&-1!=a.level&&!a.expanded||a.childrenAfterGroup.forEach(s))};s(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,r,o){var i=this;void 0===o&&(o=0);var s=this.getRowIndexAtPixel(r),a=this.getRow(s),l=!this.gridOptionsWrapper.isSuppressAnimationFrame();return a!==e[0]&&(e.forEach(function(u){H.removeFromArray(i.rootNode.allLeafChildren,u)}),e.forEach(function(u,p){H.insertIntoArray(i.rootNode.allLeafChildren,u,Math.max(s+o,0)+p)}),this.refreshModel({step:ee.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:l}),!0)},t.prototype.highlightRowAtPixel=function(e,r){var o=null!=r?this.getRowIndexAtPixel(r):null,i=null!=o?this.getRow(o):null;if(i&&e&&i!==e&&null!=r){var s=this.getHighlightPosition(r,i);this.lastHighlightedRow&&this.lastHighlightedRow!==i&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),i.setHighlighted(s),this.lastHighlightedRow=i}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},t.prototype.getHighlightPosition=function(e,r){if(!r){var o=this.getRowIndexAtPixel(e);
2if(!(r=this.getRow(o||0)))return At.Below}return e-r.rowTop<r.rowHeight/2?At.Above:At.Below},t.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},t.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var r=this.rootNode.childrenAfterAggFilter;return r?r.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var o=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;o.expanded&&o.childrenAfterSort&&o.childrenAfterSort.length>0;)o=o.childrenAfterSort[0];return o.rowIndex},t.prototype.getRowBounds=function(e){if(H.missing(this.rowsToDisplay))return null;var r=this.rowsToDisplay[e];return r?{rowTop:r.rowTop,rowHeight:r.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ee.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var r=this.gridOptionsWrapper.isAnimateRows(),o=0===e.columns.length||e.columns.some(function(s){return s.isPrimary()});this.refreshModel({step:o?ee.FILTER:ee.FILTER_AGGREGATES,keepRenderedRows:!0,animate:r})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ee.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return m.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:ee.PIVOT}):this.refreshModel({step:ee.AGGREGATE})},t.prototype.createChangePath=function(e){var r=H.missingOrEmpty(e),o=new is(!1,this.rootNode);return(r||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction()||null==e.rowNodeTransactions)return!1;var r=e.rowNodeTransactions.filter(function(i){return null!=i.add&&i.add.length>0||null!=i.remove&&i.remove.length>0});return null==r||0==r.length},t.prototype.refreshModel=function(e){if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var r=this.createChangePath(e.rowNodeTransactions);switch(e.step){case ee.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,r,!!e.afterColumnsChanged);case ee.FILTER:this.doFilter(r);case ee.PIVOT:this.doPivot(r);case ee.AGGREGATE:this.doAggregate(r);case ee.FILTER_AGGREGATES:this.doFilterAggregates(r);case ee.SORT:this.doSort(e.rowNodeTransactions,r);case ee.MAP:this.doRowsToDisplay()}var o=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(r,o),this.eventService.dispatchEvent({type:g.EVENT_MODEL_UPDATED,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}},t.prototype.isEmpty=function(){var e=H.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return H.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return H.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,r){var s,o=!r,i=!1,a=[],l=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort(function(u){var p=o&&!i;if(o||(u===r||u===e)&&(o=!0),!u.group||!l){var d=o&&!i,f=u.isParentOfNode(s);(d||f)&&a.push(u)}p&&(u===r||u===e)&&(i=!0,s=u===r?r:e)}),a},t.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var r=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(H.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(var s=-1,a=-1;;){var l=Math.floor((r+o)/2),u=this.rowsToDisplay[l];if(this.isRowInPixel(u,e))return l;if(u.rowTop<e?r=l+1:u.rowTop>e&&(o=l-1),s===r&&a===o)return l;s=r,a=o}},t.prototype.isRowInPixel=function(e,r){return e.rowTop<=r&&e.rowTop+e.rowHeight>r},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEac
2h(function(r,o){return e(r,o)})},t.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,Ct.Normal,0)},t.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter,e,Ct.AfterFilter,0)},t.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,Ct.AfterFilterAndSort,0)},t.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,Ct.PivotNodes,0)},t.prototype.recursivelyWalkNodesAndCallback=function(e,r,o,i){if(!e)return i;for(var s=0;s<e.length;s++){var a=e[s];if(r(a,i++),a.hasChildren()){var l=null;switch(o){case Ct.Normal:l=a.childrenAfterGroup;break;case Ct.AfterFilter:l=a.childrenAfterAggFilter;break;case Ct.AfterFilterAndSort:l=a.childrenAfterSort;break;case Ct.PivotNodes:l=a.leafGroup?null:a.childrenAfterSort}l&&(i=this.recursivelyWalkNodesAndCallback(l,r,o,i))}}return i},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},t.prototype.expandOrCollapseAll=function(e){var r=this.gridOptionsWrapper.isTreeData(),o=this.columnModel.isPivotActive(),i=function(l){l&&l.forEach(function(u){var p=function(){u.expanded=e,i(u.childrenAfterGroup)};r?H.exists(u.childrenAfterGroup)&&p():o?!u.leafGroup&&p():u.group&&p()})};this.rootNode&&i(this.rootNode.childrenAfterGroup),this.refreshModel({step:ee.MAP}),this.eventService.dispatchEvent({type:g.EVENT_EXPAND_COLLAPSE_ALL,source:e?"expandAll":"collapseAll"})},t.prototype.doSort=function(e,r){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:r})},t.prototype.doRowGrouping=function(e,r,o,i,s){this.groupStage?(r?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:r,rowNodeOrder:o,changedPath:i}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:s}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(i)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},t.prototype.restoreGroupState=function(e){e&&H.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(r,o){"boolean"==typeof e[o]&&(r.expanded=e[o])})},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return H.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(r,o){return e[o]=r.expanded}),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf(K.ID_PREFIX_ROW_GROUP)){var o=void 0;return this.forEachNode(function(i){i.id===e&&(o=i)}),o}return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var r=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated"),this.eventService.dispatchEvent({type:g.EVENT_ROW_DATA_UPDATED}),this.refreshModel({step:ee.EVERYTHING,groupState:r,newData:!0})},t.prototype.batchUpdateRowData=function(e,r){var o=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var i=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){o.executeBatchUpdateRowData()},i)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:r})},t.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var r=[],o=[],i=!1;this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEac
2h(function(a){var l=e.nodeManager.updateRowData(a.rowDataTransaction,void 0);o.push(l),a.callback&&r.push(a.callback.bind(null,l)),"number"==typeof a.rowDataTransaction.addIndex&&(i=!0)}),this.commonUpdateRowData(o,void 0,i),r.length>0&&window.setTimeout(function(){r.forEach(function(a){return a()})},0),o.length>0&&this.eventService.dispatchEvent({type:g.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,r){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,r);return this.commonUpdateRowData([o],r,"number"==typeof e.addIndex),o},t.prototype.createRowNodeOrder=function(){if(!this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()){var r={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var o=0;o<this.rootNode.allLeafChildren.length;o++)r[this.rootNode.allLeafChildren[o].id]=o;return r}},t.prototype.commonUpdateRowData=function(e,r,o){var i=!this.gridOptionsWrapper.isSuppressAnimationFrame();o&&(r=this.createRowNodeOrder()),this.refreshModel({step:ee.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:r,keepRenderedRows:!0,keepEditingRows:!0,animate:i}),this.filterManager.onNewRowsLoaded("rowDataUpdated"),this.eventService.dispatchEvent({type:g.EVENT_ROW_DATA_UPDATED})},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:ee.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},t.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},t.prototype.resetRowHeights=function(){var e=!1;this.forEachNode(function(r){r.setRowHeight(r.rowHeight,!0);var o=r.detailNode;o&&o.setRowHeight(o.rowHeight,!0),e=!0}),e&&this.onRowHeightChanged()},We([h("columnModel")],t.prototype,"columnModel",void 0),We([h("selectionService")],t.prototype,"selectionService",void 0),We([h("filterManager")],t.prototype,"filterManager",void 0),We([h("valueCache")],t.prototype,"valueCache",void 0),We([h("beans")],t.prototype,"beans",void 0),We([h("filterStage")],t.prototype,"filterStage",void 0),We([h("sortStage")],t.prototype,"sortStage",void 0),We([h("flattenStage")],t.prototype,"flattenStage",void 0),We([J("groupStage")],t.prototype,"groupStage",void 0),We([J("aggregationStage")],t.prototype,"aggregationStage",void 0),We([J("pivotStage")],t.prototype,"pivotStage",void 0),We([J("filterAggregatesStage")],t.prototype,"filterAggregatesStage",void 0),We([I],t.prototype,"init",null),We([L("rowModel")],t)}(F),UC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),ql=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},jC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return UC(t,n),t.prototype.execute=function(e){this.filterService.filter(e.changedPath)},ql([h("filterService")],t.prototype,"filterService",void 0),ql([L("filterStage")],t)}(F),zC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),fi=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},KC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return zC(t,n),t.prototype.execute=function(e){var r=this,o=this.sortController.getSortOptions(),i=H.exists(o)&&o.length>0,s=i&&H.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),a=o.some(function(l){return!!r.columnModel.getGroupDisplayColumnForGroup(l.column.getId())});this.sortService.sort(o,i,s,e.rowNodeTransactions,e.changedPath,a)},fi([h("sortService")],t.prototype,"sortService",void 0),fi([h("sortController")],t.prototype,"sortController",void 0),fi([h("columnModel")],t.prototype,"columnModel",void 0),fi([L("sortStage")],t)}
2(F),$C=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rs=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},YC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return $C(t,n),t.prototype.execute=function(e){var r=e.rowNode,o=[],i={value:0},s=this.columnModel.isPivotMode(),a=s&&r.leafGroup;return this.recursivelyAddToRowsToDisplay(a?[r]:r.childrenAfterSort,o,i,s,0),!a&&o.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(r),this.addRowNodeToRowsToDisplay(r.sibling,o,i,0)),o},t.prototype.recursivelyAddToRowsToDisplay=function(e,r,o,i,s){if(!H.missingOrEmpty(e))for(var a=this.gridOptionsWrapper.isGroupHideOpenParents(),l=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),u=!l&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),p=0;p<e.length;p++){var c=e[p],d=c.hasChildren(),v=l&&d&&1===c.childrenAfterGroup.length,y=u&&d&&c.leafGroup&&1===c.childrenAfterGroup.length;if(!(i&&!d||a&&c.expanded&&!c.master&&(!i||!c.leafGroup)||v||y)&&this.addRowNodeToRowsToDisplay(c,r,o,s),!i||!c.leafGroup)if(d){var A=v||y;(c.expanded||A)&&(this.recursivelyAddToRowsToDisplay(c.childrenAfterSort,r,o,i,A?s:s+1),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(c),this.addRowNodeToRowsToDisplay(c.sibling,r,o,s)))}else if(c.master&&c.expanded){var x=this.createDetailNode(c);this.addRowNodeToRowsToDisplay(x,r,o,s)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,r,o,i){var s=this.gridOptionsWrapper.isGroupMultiAutoColumn();r.push(e),e.setUiLevel(s?0:i)},t.prototype.ensureFooterNodeExists=function(e){if(!H.exists(e.sibling)){var r=new K(this.beans);Object.keys(e).forEach(function(o){r[o]=e[o]}),r.footer=!0,r.setRowTop(null),r.setRowIndex(null),r.oldRowTop=null,H.exists(r.id)&&(r.id="rowGroupFooter_"+r.id),r.sibling=e,e.sibling=r}},t.prototype.createDetailNode=function(e){if(H.exists(e.detailNode))return e.detailNode;var r=new K(this.beans);return r.detail=!0,r.selectable=!1,r.parent=e,H.exists(e.id)&&(r.id="detail_"+e.id),r.data=e.data,r.level=e.level+1,e.detailNode=r,r},Rs([h("columnModel")],t.prototype,"columnModel",void 0),Rs([h("beans")],t.prototype,"beans",void 0),Rs([L("flattenStage")],t)}(F),qC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),gi=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},XC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return qC(t,n),t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,r,o,i,s,a){var l=this,u=this.gridOptionsWrapper.isGroupMaintainOrder(),p=this.columnModel.getAllGridColumns().some(function(v){return v.isRowGroupActive()}),c={};o&&i&&(c=this.calculateDirtyNodes(i));var d=this.columnModel.isPivotMode();s&&s.forEachChangedNodeDepthFirst(function(v){if(l.pullDownGroupDataForHideOpenParents(v.childrenAfterAggFilter,!0),!r||u&&p&&!v.leafGroup&&!a||d&&v.leafGroup){var R=v.childrenAfterAggFilter.slice(0);if(u&&v.childrenAfterSort){var w=v.childrenAfterSort.reduce(function(b,x,V){return b[x.id]=V,b},{});R.sort(function(b,x){return(w[b.id]||0)-(w[x.id]||0)})}v.childrenAfterSort=R}else v.childrenAfterSort=o?l.doDeltaSort(v,c,s,e):l.rowNodeSorter.doFullSort(v.childrenAfterAggFilter,e);v.sibling&&(v.sibling.childrenAfterSort=v.childrenAfterSort),l.updateChildIndexes(v),l.postSortFunc&&l.postSortFunc({nodes:v.childrenAfterSort})}),this.updateGroupDataForHideOpenParents(s)},t.prototype.calculateDirtyNodes=function(e){var r={}
2,o=function(i){i&&i.forEach(function(s){return r[s.id]=!0})};return e&&e.forEach(function(i){o(i.add),o(i.update),o(i.remove)}),r},t.prototype.doDeltaSort=function(e,r,o,i){var s=this,a=e.childrenAfterAggFilter,l=e.childrenAfterSort;if(!l)return this.rowNodeSorter.doFullSort(a,i);var u={},p=[];a.forEach(function(v){r[v.id]||!o.canSkip(v)?p.push(v):u[v.id]=!0});var c=l.filter(function(v){return u[v.id]}),d=function(v,y){return{currentPos:y,rowNode:v}},f=p.map(d).sort(function(v,y){return s.rowNodeSorter.compareRowNodes(i,v,y)});return this.mergeSortedArrays(i,f,c.map(d)).map(function(v){return v.rowNode})},t.prototype.mergeSortedArrays=function(e,r,o){for(var i=[],s=0,a=0;s<r.length&&a<o.length;){var l=this.rowNodeSorter.compareRowNodes(e,r[s],o[a]);i.push(l<0?r[s++]:o[a++])}for(;s<r.length;)i.push(r[s++]);for(;a<o.length;)i.push(o[a++]);return i},t.prototype.updateChildIndexes=function(e){if(!H.missing(e.childrenAfterSort))for(var r=e.childrenAfterSort,o=0;o<r.length;o++){var i=r[o],a=o===e.childrenAfterSort.length-1;i.setFirstChild(0===o),i.setLastChild(a),i.setChildIndex(o)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var r=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData())return H.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 i=function(s){r.pullDownGroupDataForHideOpenParents(s.childrenAfterSort,!1),s.childrenAfterSort.forEach(function(a){a.hasChildren()&&i(a)})};e&&e.executeFromRootNode(function(s){return i(s)})}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,r){var o=this;!this.gridOptionsWrapper.isGroupHideOpenParents()||H.missing(e)||e.forEach(function(i){o.columnModel.getGroupDisplayColumns().forEach(function(a){var l=a.getColDef().showRowGroup;if("string"==typeof l){var p=o.columnModel.getPrimaryColumn(l);if(p!==i.rowGroupColumn)if(r)i.setGroupValue(a.getId(),void 0);else{var d=i.getFirstChildOfFirstChild(p);d&&i.setGroupValue(a.getId(),d.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")})})},gi([h("columnModel")],t.prototype,"columnModel",void 0),gi([h("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),gi([I],t.prototype,"init",null),gi([L("sortService")],t)}(F),QC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xl=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ZC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return QC(t,n),t.prototype.filter=function(e){var r=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.filterManager.isExternalFilterPresent();this.filterNodes(r,e)},t.prototype.filterNodes=function(e,r){var o=this,i=function(u,p){u.childrenAfterFilter=u.hasChildren()&&e&&!p?u.childrenAfterGroup.filter(function(c){var d=c.childrenAfterFilter&&c.childrenAfterFilter.length>0,f=c.data&&o.filterManager.doesRowPassFilter({rowNode:c});return d||f}):u.childrenAfterGroup,u.sibling&&(u.sibling.childrenAfterFilter=u.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var s=function(u,p){if(u.childrenAfterGroup)for(var c=0;c<u.childrenAfterGroup.length;c++){var d=u.childrenAfterGroup[c],f=p||o.filterManager.doesRowPassFilter({rowNode:d});d.childrenAfterGroup?s(u.childrenAfterGroup[c],f):i(d,f)}i(u,p)};r.executeFromRootNode(function(u){return s(u,!1)})}else r.forEachChangedNodeDepthFirst(function(u){return i(u,!1)},!0)},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&
2!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Xl([h("filterManager")],t.prototype,"filterManager",void 0),Xl([L("filterService")],t)}(F),JC=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tm=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return JC(t,n),t.prototype.postConstruct=function(){this.rowModel.getType()===m.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){return this.gridOptionsWrapper.isImmutableData()},t.prototype.setRowData=function(e){var r=this.createTransactionForRowData(e);if(r){var o=function(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,r=e.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i}(r,2),a=this.clientSideRowModel.updateRowData(o[0],o[1]);a&&this.rowRenderer.refreshFullWidthRows(a.update)}},t.prototype.createTransactionForRowData=function(e){if(H.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var r=this.gridOptionsWrapper.getRowIdFunc();if(null!=r){var o={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),a=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?void 0:{};return H.exists(e)&&e.forEach(function(l,u){var p=r({data:l,level:0}),c=i[p];a&&(a[p]=u),c?(c.data!==l&&o.update.push(l),i[p]=void 0):o.add.push(l)}),H.iterateObject(i,function(l,u){u&&o.remove.push(u.data)}),[o,a]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},Zt([h("rowModel")],t.prototype,"rowModel",void 0),Zt([h("rowRenderer")],t.prototype,"rowRenderer",void 0),Zt([h("columnApi")],t.prototype,"columnApi",void 0),Zt([h("gridApi")],t.prototype,"gridApi",void 0),Zt([h("filterManager")],t.prototype,"filterManager",void 0),Zt([I],t.prototype,"postConstruct",null),Zt([L("immutableService")],t)}(F),rm={moduleName:W.ClientSideRowModelModule,beans:[jC,KC,YC,XC,ZC,tm],rowModels:{clientSide:kC}},om=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Es=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ql=function(n){function t(e,r,o){var i=n.call(this,e)||this;return i.parentCache=r,i.params=o,i.startRow=e*o.blockSize,i.endRow=i.startRow+o.blockSize,i}return om(t,n),t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,r,o){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),H.exists(r)?e.setDataAndId(r,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,r=this.createLoadParams();H.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout(function(){e.params.datasource.getRows(r)},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,r,o){var i=this;
2this.rowNodes.forEach(function(s,a){i.startRow+a<o&&e(s,r.next())})},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,r){return void 0===r&&(r=!1),r||(this.lastAccessed=this.params.lastAccessedSequence.next()),this.rowNodes[e-this.startRow]},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 r=this.startRow+e,o=new K(this.beans);o.setRowHeight(this.params.rowHeight),o.uiLevel=0,o.setRowIndex(r),o.setRowTop(this.params.rowHeight*r),this.rowNodes.push(o)}},t.prototype.processServerResult=function(e){var r=this;this.rowNodes.forEach(function(i,s){r.setDataAndId(i,e.rowData?e.rowData[s]:void 0,r.startRow+s)}),this.parentCache.pageLoaded(this,null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},Es([h("beans")],t.prototype,"beans",void 0),Es([I],t.prototype,"postConstruct",null),Es([Ee],t.prototype,"destroyRowNodes",null),t}(ns),im=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),vi=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},nm=function(n,t){return function(e,r){t(e,r,n)}},sm=function(n){function t(e){var r=n.call(this)||this;return r.lastRowIndexKnown=!1,r.blocks={},r.blockCount=0,r.rowCount=e.initialRowCount,r.params=e,r}return im(t,n),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,r){void 0===r&&(r=!1);var o=Math.floor(e/this.params.blockSize),i=this.blocks[o];if(!i){if(r)return;i=this.createBlock(o)}return i.getRow(e)},t.prototype.createBlock=function(e){var r=this.createBean(new Ql(e,this,this.params));return this.blocks[r.getId()]=r,this.blockCount++,this.purgeBlocksIfNeeded(r),this.params.rowNodeBlockLoader.addBlock(r),r},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach(function(r){return r.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(r){return e.destroyBlock(r)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,r){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+r),this.checkRowCount(e,r),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var r=this,o=this.getBlocksInOrder().filter(function(u){return u!=e});o.sort(function(u,p){return p.getLastAccessed()-u.getLastAccessed()});var s=this.params.maxBlocksInCache>0,a=s?this.params.maxBlocksInCache-1:null,l=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach(function(u,p){if(u.getState()===Ql.STATE_WAITING_TO_LOAD&&p>=l||s&&p>=a){if(r.isBlockCurrentlyDisplayed(u)||r.isBlockFocused(u))return;r.removeBlockFromCache(u)}})},t.prototype.isBlockFocused=function(e){var r=this.focusService.getFocusCellToUseAfterRefresh();if(!r||null!=r.rowPinned)return!1;var o=e.getStartRow(),i=e.getEndRow();return r.rowIndex>=o&&r.rowIndex<i},t.prototype.isBlockCurrentlyDisplayed=function(e){var r=e.getStartRow(),o=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(r,o)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,r){if("number"==typeof r&&r>=0)this.rowCount=r,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var i=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<i&&(this.rowCount=i)}},t.prototype.setRowCount=function(e,r){this.rowCount=e,H.exists(r)&&(this.lastRowIndexKnown=r),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var r=this,o=new ur;
2this.getBlocksInOrder().forEach(function(i){return i.forEachNode(e,o,r.rowCount)})},t.prototype.getBlocksInOrder=function(){return H.getAllValuesInObject(this.blocks).sort(function(o,i){return o.getId()-i.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(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventService.dispatchEvent({type:g.EVENT_STORE_UPDATED}))},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,r=[];this.getBlocksInOrder().forEach(function(o){o.getId()*e.params.blockSize>=e.rowCount&&r.push(o)}),r.length>0&&r.forEach(function(o){return e.destroyBlock(o)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(r){return e.removeBlockFromCache(r)}),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,r){var o=this,i=[],s=-1,a=!1,l=new ur;H.missing(e)&&(a=!0);var u=!1;return this.getBlocksInOrder().forEach(function(c){if(!u){if(a&&s+1!==c.getId())return void(u=!0);s=c.getId(),c.forEachNode(function(d){var f=d===e||d===r;(a||f)&&i.push(d),f&&(a=!a)},l,o.rowCount)}}),u||a?[]:i},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,vi([h("rowRenderer")],t.prototype,"rowRenderer",void 0),vi([h("focusService")],t.prototype,"focusService",void 0),vi([nm(0,Fe("loggerFactory"))],t.prototype,"setBeans",null),vi([Ee],t.prototype,"destroyAllBlocks",null),t}(F),am=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Lt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},lm=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return am(t,n),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,r,o,i){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){null!=this.gridOptionsWrapper.getInitialGroupOrderComparator()&&H.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,g.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,g.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},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!H.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return m.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,r){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,r):[]},t.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsWrapper.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var o=this.createModelUpdatedEvent();this.eventService.dispatchEvent(o)}},t.prototype.createModelUpdatedEvent=function(){return{type:g.EVENT_MODEL_UPDATED,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 ur},this.infiniteCache=this.createBean(new sm(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,r){return e>0?e:r},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var r;return this.forEachNode(function(o){o.id===e&&(r=o)}),r},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var r=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return r>o?o:r}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){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,r){this.infiniteCache&&this.infiniteCache.setRowCount(e,r)},Lt([h("filterManager")],t.prototype,"filterManager",void 0),Lt([h("sortController")],t.prototype,"sortController",void 0),Lt([h("selectionService")],t.prototype,"selectionService",void 0),Lt([h("rowRenderer")],t.prototype,"rowRenderer",void 0),Lt([h("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Lt([I],t.prototype,"init",null),Lt([Ee],t.prototype,"destroyDatasource",null),Lt([L("rowModel")],t)}(F),um={moduleName:W.InfiniteRowModelModule,rowModels:{infinite:lm}},pm=function(){function n(){}return n.prototype.setBeans=function(t){this.beans=t},n.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return(null==t||!t.length)&&(t=this.getDefaultFileName()),-1===t.indexOf(".")?t+"."+e:t}
2,n.prototype.getData=function(t){var e=this.createSerializingSession(t);return this.beans.gridSerializer.serialize(e,t)},n}(),cm=function(){function n(t){this.groupColumns=[];var r=t.valueService,o=t.gridOptionsWrapper,i=t.processCellCallback,s=t.processHeaderCallback,a=t.processGroupHeaderCallback,l=t.processRowGroupCallback;this.columnModel=t.columnModel,this.valueService=r,this.gridOptionsWrapper=o,this.processCellCallback=i,this.processHeaderCallback=s,this.processGroupHeaderCallback=a,this.processRowGroupCallback=l}return n.prototype.prepare=function(t){this.groupColumns=t.filter(function(e){return!!e.getColDef().showRowGroup})},n.prototype.extractHeaderValue=function(t){return this.getHeaderName(this.processHeaderCallback,t)??""},n.prototype.extractRowCellValue=function(t,e,r,o,i){var a=!this.gridOptionsWrapper.isGroupHideOpenParents()&&this.shouldRenderGroupSummaryCell(i,t,e)?this.createValueForGroupNode(i):this.valueService.getValue(t,i);return this.processCell({accumulatedRowIndex:r,rowNode:i,column:t,value:a,processCellCallback:this.processCellCallback,type:o})??""},n.prototype.shouldRenderGroupSummaryCell=function(t,e,r){var o;if(!t||!t.group)return!1;if(-1!==this.groupColumns.indexOf(e)&&null!==(o=t.groupData)&&void 0!==o&&o[e.getId()])return!0;var a=this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===r&&a},n.prototype.getHeaderName=function(t,e){return t?t({column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},n.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var e=[t.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;t.parent;)e.push((t=t.parent).key);return e.reverse().join(" -> ")},n.prototype.processCell=function(t){var i=t.value,s=t.processCellCallback,a=t.type;return s?s({accumulatedRowIndex:t.accumulatedRowIndex,column:t.column,node:t.rowNode,value:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:a}):i??""},n}(),dm=function(){function n(){}return n.download=function(t,e){var r=document.defaultView||window;if(r){var o=document.createElement("a"),i=r.URL.createObjectURL(e);o.setAttribute("href",i),o.setAttribute("download",t),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:r})),document.body.removeChild(o),r.setTimeout(function(){r.URL.revokeObjectURL(i)},0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},n}(),hm=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),fm=function(n){function t(e){var r=n.call(this,e)||this;r.isFirstLine=!0,r.result="";var i=e.columnSeparator;return r.suppressQuotes=e.suppressQuotes,r.columnSeparator=i,r}return hm(t,n),t.prototype.addCustomContent=function(e){var r=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(o){r.beginNewLine(),o.forEach(function(i,s){0!==s&&(r.result+=r.columnSeparator),r.result+=r.putInQuotes(i.data.value||""),i.mergeAcross&&r.appendEmptyCells(i.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,r,o,i){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(r),this.appendEmptyCells(i)},t.prototype.appendEmptyCells=function(e){for(var r=1;r<=e;r++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,r){0!=r&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,r,o){0!=r&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,r,r,m.EXPORT_TYPE_CSV,o))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?r=e:"function"==typeof e.toString?r=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),r=""),'"'+r.replace(/"/g,'""')+'"');var r},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}
2(cm),gm=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Cr=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vm=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return gm(t,n),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getMergedParams=function(e){var r=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},r,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 r=this.getMergedParams(e),o=this.getData(r),i=new Blob(["\ufeff",o],{type:"text/plain"});return dm.download(this.getFileName(r.fileName),i),o},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,r){void 0===r&&(r=!1);var o=r?Object.assign({},e):this.getMergedParams(e);return this.getData(o)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var r=this;return new fm({columnModel:r.columnModel,valueService:r.valueService,gridOptionsWrapper:r.gridOptionsWrapper,processCellCallback:e.processCellCallback||void 0,processHeaderCallback:e.processHeaderCallback||void 0,processGroupHeaderCallback:e.processGroupHeaderCallback||void 0,processRowGroupCallback:e.processRowGroupCallback||void 0,suppressQuotes:e.suppressQuotes||!1,columnSeparator:e.columnSeparator||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},Cr([h("columnModel")],t.prototype,"columnModel",void 0),Cr([h("valueService")],t.prototype,"valueService",void 0),Cr([h("gridSerializer")],t.prototype,"gridSerializer",void 0),Cr([h("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Cr([I],t.prototype,"postConstruct",null),Cr([L("csvCreator")],t)}(pm),ym=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])})(t,e)};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jt=function(n,t,e,r){var s,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},mm=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ym(t,n),t.prototype.serialize=function(e,r){void 0===r&&(r={});var o=this.getColumnsToExport(r.allColumns,r.columnKeys);return H.compose(this.prepareSession(o),this.prependContent(r),this.exportColumnGroups(r,o),this.exportHeaders(r,o),this.processPinnedTopRows(r,o),this.processRows(r,o),this.processPinnedBottomRows(r,o),this.appendContent(r))(e).parse()},t.prototype.processRow=function(e,r,o,i){var s=r.shouldRowBeSkipped||function(){return!1},a=this.gridOptionsWrapper,l=a.getContext(),u=a.getApi(),p=a.getColumnApi(),c=a.isGroupRemoveSingleChildren(),d=a.isGroupRemoveLowestSingleChildren(),f=null!=r.rowPositions,v=f||!!r.onlySelected,y=a.isGroupHideOpenParents()&&!v,C=this.columnModel.isPivotMode()?i.leafGroup:!i.group,A=1===i.allChildrenCount&&(c||d&&i.leafGroup);if((r.skipGroups||r.skipRowGroups)&&r.skipGroups&&H.doOnce(function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")},"gridSerializer-skipGroups"),!(!C&&(r.skipRowGroups||A||y)||r.onlySelected&&!i.isSelected()||r.skipPinnedTop&&"top"===i.rowPinned||r.ski
2pPinnedBottom&&"bottom"===i.rowPinned)&&(-1!==i.level||i.leafGroup||i.footer&&f)&&!s({node:i,api:u,columnApi:p,context:l})){var V=e.onNewBodyRow();if(o.forEach(function(N,B){V.onColumn(N,B,i)}),r.getCustomContentBelowRow){var U=r.getCustomContentBelowRow({node:i,api:u,columnApi:p,context:l});U&&e.addCustomContent(U)}}},t.prototype.appendContent=function(e){return function(r){var o=e.customFooter||e.appendContent;return o&&(e.customFooter&&H.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")},"gridSerializer-customFooter"),r.addCustomContent(o)),r}},t.prototype.prependContent=function(e){return function(r){var o=e.customHeader||e.prependContent;return o&&(e.customHeader&&H.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")},"gridSerializer-customHeader"),r.addCustomContent(o)),r}},t.prototype.prepareSession=function(e){return function(r){return r.prepare(e),r}},t.prototype.exportColumnGroups=function(e,r){var o=this;return function(i){if(e.skipColumnGroupHeaders)e.columnGroups&&H.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 s=new zs,a=o.displayedGroupCreator.createDisplayedGroups(r,o.columnModel.getGridBalancedTree(),s,null);o.recursivelyAddHeaderGroups(a,i,e.processGroupHeaderCallback)}return i}},t.prototype.exportHeaders=function(e,r){return function(o){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&H.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")},"gridSerializer-skipHeader");else{var i=o.onNewHeaderRow();r.forEach(function(s,a){i.onColumn(s,a,void 0)})}return o}},t.prototype.processPinnedTopRows=function(e,r){var o=this;return function(i){var s=o.processRow.bind(o,i,e,r);return e.rowPositions?e.rowPositions.filter(function(a){return"top"===a.rowPinned}).sort(function(a,l){return a.rowIndex-l.rowIndex}).map(function(a){return o.pinnedRowModel.getPinnedTopRow(a.rowIndex)}).forEach(s):o.pinnedRowModel.forEachPinnedTopRow(s),i}},t.prototype.processRows=function(e,r){var o=this;return function(i){var s=o.rowModel,a=s.getType(),l=a===m.ROW_MODEL_TYPE_CLIENT_SIDE,u=a===m.ROW_MODEL_TYPE_SERVER_SIDE,p=!l&&e.onlySelected,c=o.processRow.bind(o,i,e,r),d=e.exportedRows,f=void 0===d?"filteredAndSorted":d;return e.rowPositions?e.rowPositions.filter(function(y){return null==y.rowPinned}).sort(function(y,C){return y.rowIndex-C.rowIndex}).map(function(y){return s.getRow(y.rowIndex)}).forEach(c):o.columnModel.isPivotMode()?l?s.forEachPivotNode(c):s.forEachNode(c):e.onlySelectedAllPages||p?o.selectionService.getSelectedNodes().forEach(c):"all"===f?s.forEachNode(c):l||u?s.forEac
2hNodeAfterFilterAndSort(c):s.forEachNode(c),i}},t.prototype.processPinnedBottomRows=function(e,r){var o=this;return function(i){var s=o.processRow.bind(o,i,e,r);return e.rowPositions?e.rowPositions.filter(function(a){return"bottom"===a.rowPinned}).sort(function(a,l){return a.rowIndex-l.rowIndex}).map(function(a){return o.pinnedRowModel.getPinnedBottomRow(a.rowIndex)}).forEach(s):o.pinnedRowModel.forEachPinnedBottomRow(s),i}},t.prototype.getColumnsToExport=function(e,r){void 0===e&&(e=!1);var o=this.columnModel.isPivotMode();return r&&r.length?this.columnModel.getGridColumns(r):e&&!o?(this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([m.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,r,o){var i=[];e.forEach(function(s){s.getChildren&&s.getChildren().forEach(function(l){return i.push(l)})}),e.length>0&&e[0]instanceof Ae&&this.doAddHeaderHeader(r,e,o),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,r,o)},t.prototype.doAddHeaderHeader=function(e,r,o){var i=this,s=e.onNewHeaderGroupingRow(),a=0;r.forEach(function(l){var p,u=l;p=o?o({columnGroup:u,api:i.gridOptionsWrapper.getApi(),columnApi:i.gridOptionsWrapper.getColumnApi(),context:i.gridOptionsWrapper.getContext()}):i.columnModel.getDisplayNameForColumnGroup(u,"header");var c=u.getLeafColumns().reduce(function(d,f,v,y){var C=H.last(d);return"open"===f.getColumnGroupShow()?(!C||null!=C[1])&&d.push(C=[v]):C&&null==C[1]&&(C[1]=v-1),v===y.length-1&&C&&null==C[1]&&(C[1]=v),d},[]);s.onColumn(u,p||"",a++,u.getLeafColumns().length-1,c)})},Jt([h("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Jt([h("columnModel")],t.prototype,"columnModel",void 0),Jt([h("rowModel")],t.prototype,"rowModel",void 0),Jt([h("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Jt([h("selectionService")],t.prototype,"selectionService",void 0),Jt([h("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Jt([L("gridSerializer")],t)}(F),wm={moduleName:W.CsvExportModule,beans:[vm,mm]},Em=(function(){function n(){}n.createHeader=function(t){void 0===t&&(t={});var o=["version"];return t.version||(t.version="1.0"),t.encoding&&o.push("encoding"),t.standalone&&o.push("standalone"),"<?xml "+o.map(function(s){return s+'="'+t[s]+'"'}).join(" ")+" ?>"},n.createXml=function(t,e){var r=this,o="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach(function(s){Object.keys(s.map).forEach(function(a){o+=r.returnAttributeIfPopulated(s.prefix+a,s.map[a],e)})}),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach(function(s){o+=r.returnAttributeIfPopulated(s,t.properties.rawMap[s],e)}));var i="<"+t.name+o;return t.children||null!=t.textNode?null!=t.textNode?i+">"+t.textNode+"</"+t.name+">\r\n":(i+=">\r\n",t.children&&t.children.forEach(function(s){i+=r.createXml(s,e)}),i+"</"+t.name+">\r\n"):i+"/>\r\n"},n.returnAttributeIfPopulated=function(t,e,r){if(!e&&""!==e&&0!==e)return"";var o=e;return"boolean"==typeof e&&r&&(o=r(e))," "+t+'="'+o+'"'}}(),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]));!function(){function n(){}n.addFolders=function(t){t.forEach(this.addFolder.bind(this))},n.addFolder=function(t){this.folders.push({path:t,created:new Date,isBase64:!1})},n.addFile=function(t,e,r){void 0===r&&(r=!1),this.files.push({path:t,created:new Date,content:e,isBase64:r})},n.getContent=function(t){void 0===t&&(t="application/zip");var e=this.buildFileStream(),r=this.buildUint8Array(e);return this.clearStream(),new Blob([r],{type:t})},n.clearStream=function(){this.folders=[],this.files=[]},n.buildFileStream=function(t){var e,r;void 0===t&&(t="");var o=this.folders.concat(this.files),i=o.length,s="",a=0,l=0;try{for(var u=function(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),p=u.next();!p.done;p=u.next()){var d=this.getHeader(p.value,a),f=d.fileHeader,v=d.folderHeader,y=d.content;a+=f.length+y.length,l+=v.length,t+=f+y,s+=v}}catch(R){e={error:R}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}return t+s+this.buildFolderEnd(i,l,a)},n.getHeader=function(t,e){var r=t.content,o=t.path,i=t.created,s=t.isBase64,l=H.decToHex,u=(0,H.utf8_encode)(o),p=u!==o,c=this.convertTime(i),d=this.convertDate(i),f="";if(p){var v=l(1,1)+l(this.getFromCrc32Table(u),4)+u;f="up"+l(v.length,2)+v}var y=r?this.getConvertedContent(r,s):{size:0,content:""},C=y.size,R=y.content,w="\n\0"+(p?"\0\b":"\0\0")+"\0\0"+l(c,2)+l(d,2)+l(C?this.getFromCrc32Table(R):0,4)+l(C,4)+l(C,4)+l(u.length,2)+l(f.length,2);return{fileHeader:"PK\x03\x04"+w+u+f,folderHeader:"PK\x01\x02\x14\0"+w+"\0\0\0\0\0\0"+(r?"\0\0\0\0":"\x10\0\0\0")+l(e,4)+u+f,content:R||""}},n.getConvertedContent=function(t,e){return void 0===e&&(e=!1),e&&(t=t.split(";base64,")[1]),{size:(t=e?atob(t):t).length,content:t}},n.buildFolderEnd=function(t,e,r){var o=H.decToHex;return"PK\x05\x06\0\0\0\0"+o(t,2)+o(t,2)+o(e,4)+o(r,4)+"\0\0"},n.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e},n.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,r=new Uint8Array(e),o=0;o<e;o++)r[o]=t.charCodeAt(o);var i=-1;for(o=0;o<e;o++)i=i>>>8^Em[255&(i^r[o])];return~i},n.convertTime=function(t){var e=t.getHours();return e<<=6,e|=t.getMinutes(),(e<<=5)|t.getSeconds()/2},n.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e|=t.getMonth()+1,(e<<=5)|t.getDate()},n.folders=[],n.files=[]}(),k.registerModules([rm,um,wm]);let Sm=(()=>{class n{hasChildColumns(){return!(!(this.childColumns&&this.childColumns.length>0)||1===this.childColumns.length&&this.childColumns.first===this)}toColDef(){let e=this.createColDefFromGridColumn(this);return this.hasChildColumns()&&(e.children=this.getChildColDefs(this.childColumns)),e}getChildColDefs(e){return e.filter(r=>!r.hasChildColumns()).map(r=>r.toColDef())}createColDefFromGridColumn(e){return(0,_.Tt)(e,["childColumns"])}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=D.VBU({type:n,selectors:[["ag-grid-column"]],contentQueries:function(e,r,o){if(1&e&&D.wni(o,n,4),2&e){let i;D.mGM(i=D.lsd())&&(r.childColumns=i)}},inputs:{filterFramework:"filterFramework",filterParams:"filterParams",floatingFilterComponent:"floatingFilterComponent",floatingFilterComponentParams:"floatingFilterComponentParams",floatingFilterComponentFramework:"floatingFilterComponentFramework",filter:"filter",headerName:"headerName",headerValueGetter:"headerValueGetter",headerTooltip:"headerTooltip",headerClass:"headerClass",suppressHeaderKeyboardEvent:"suppressHeaderKeyboardEvent",columnGroupShow:"columnGroupShow",toolPanelClass:"toolPanelClass",suppressColumnsToolPanel:"suppressColumnsToolPanel",suppressFiltersToolPanel:"suppressFiltersToolPanel",tooltipComponent:"tooltipComponent",tooltipComponentFramework:"tooltipComponentFramework",tooltipComponentParams:"tooltipComponentParams",children:"children",groupId:"groupId",openByDefault:"openByDefault",marryChildren:"marryChildren",headerGroupComponent:"headerGroupComponent",headerGroupComponentFramework:"headerGroupComponentFramework",headerGroupComponentParams:"headerGroupComponentParams",colId:"colId",field:"field",type:"type",valueGetter:"valueGetter",valueFormatter:"valueFormatter",refData:"refData",keyCreator:"keyCreator",equals:"equals",tooltipField:"tooltipField",tooltipValueGetter:"tooltipValueGetter",checkboxSelection:"checkboxSelection",showDisabledCheckboxes:"showDisabledCheckboxes",icons:"icons",suppressNavigable:"suppressNavigable",suppressKeyboardEvent:"suppressKeyboardEvent",suppressPaste:"suppressPaste",suppressFillHandle:"suppressFillHandle",hide:"hide",initialHide:"initialHide",lockVisible:"lockVisible",lockPosition:"lockPosition",suppressMovable:"suppressMovable",editable:"editable",valueSetter:"valueSetter",valueParser:"valueParser",cellEditor:"cellEditor",cellEditorFramework:"cellEditorFramework",cellEditorParams:"cellEditorParams",cellEditorSelector:"cellEditorSelector",singleClickEdit:"singleClickEdit",newValueHandler:"newValueHandler",cellEditorPopup:"cellEditorPopup",cellEditorPopupPosition:"cellEditorPopupPosition",onCellValueChanged:"onCellValueChanged",onCellClicked:"onCellClicked",onCellDoubleClicked:"onCellDoubleClicked",onCellContextMenu:"onCellContextMenu",getQuickFilterText:"getQuickFilterText",filterValueGetter:"filterValueGetter",floatingFilter:"floatingFilter",wrapHeaderText:"wrapHeaderText",autoHeaderHeight:"autoHeaderHeight",headerComponent:"headerComponent",headerComponentFramework:"headerComponentFramework",headerComponentParams:"headerComponentParams",menuTabs:"menuTabs",columnsMenuParams:"columnsMenuParams",suppressMenu:"suppressMenu",headerCheckboxSelection:"headerCheckboxSelection",headerCheckboxSelectionFilteredOnly:"headerCheckboxSelectionFilteredOnly",chartDataType:"chartDataType",pinned:"pinned",initialPinned:"initialPinned",lockPinned:"lockPinned",pinnedRowCellRenderer:"pinnedRowCellRenderer",pinnedRowCellRendererFramework:"pinnedRowCellRendererFramework",pinnedRowCellRendererParams:"pinnedRowCellRendererParams",pinnedRowValueFormatter:"pinnedRowValueFormatter",pivot:"pivot",initialPivot:"initialPivot",pivotIndex:"pivotIndex",initialPivotIndex:"initialPivotIndex",pivotComparator:"pivotComparator",enablePivot:"enablePivot",cellStyle:"cellStyle",cell
2Class:"cellClass",cellClassRules:"cellClassRules",cellRenderer:"cellRenderer",cellRendererFramework:"cellRendererFramework",cellRendererParams:"cellRendererParams",cellRendererSelector:"cellRendererSelector",autoHeight:"autoHeight",wrapText:"wrapText",enableCellChangeFlash:"enableCellChangeFlash",suppressCellFlash:"suppressCellFlash",rowDrag:"rowDrag",rowDragText:"rowDragText",dndSource:"dndSource",dndSourceOnRowDrag:"dndSourceOnRowDrag",rowGroup:"rowGroup",initialRowGroup:"initialRowGroup",rowGroupIndex:"rowGroupIndex",initialRowGroupIndex:"initialRowGroupIndex",enableRowGroup:"enableRowGroup",enableValue:"enableValue",aggFunc:"aggFunc",initialAggFunc:"initialAggFunc",defaultAggFunc:"defaultAggFunc",allowedAggFuncs:"allowedAggFuncs",showRowGroup:"showRowGroup",sortable:"sortable",sort:"sort",initialSort:"initialSort",sortIndex:"sortIndex",initialSortIndex:"initialSortIndex",sortingOrder:"sortingOrder",comparator:"comparator",unSortIcon:"unSortIcon",sortedAt:"sortedAt",colSpan:"colSpan",rowSpan:"rowSpan",width:"width",initialWidth:"initialWidth",minWidth:"minWidth",maxWidth:"maxWidth",flex:"flex",initialFlex:"initialFlex",resizable:"resizable",suppressSizeToFit:"suppressSizeToFit",suppressAutoSize:"suppressAutoSize"},standalone:!1,decls:0,vars:0,template:function(e,r){},encapsulation:2}),n})(),Jl=(()=>{class n extends Hl{constructor(e){super(),this._ngZone=e}setEmitterUsedCallback(e){this.isEmitterUsed=e}setTimeout(e,r){this._ngZone?this._ngZone.runOutsideAngular(()=>{window.setTimeout(()=>{e()},r)}):window.setTimeout(()=>{e()},r)}setInterval(e,r){return new Ie(o=>{this._ngZone?this._ngZone.runOutsideAngular(()=>{o(window.setInterval(()=>{e()},r))}):o(window.setInterval(()=>{e()},r))})}addEventListener(e,r,o,i){this.isOutsideAngular(r)&&this._ngZone?this._ngZone.runOutsideAngular(()=>{e.addEventListener(r,o,i)}):e.addEventListener(r,o,i)}dispatchEvent(e,r,o=!1){this.isOutsideAngular(e)?this._ngZone?this._ngZone.runOutsideAngular(r):r():(this.isEmitterUsed(e)||o)&&(!D.SKi.isInAngularZone()&&this._ngZone?this._ngZone.run(r):r())}isFrameworkComponent(e){if(!e)return!1;const r=e.prototype;return r&&"agInit"in r}}return n.\u0275fac=function(e){return new(e||n)(D.KVO(D.SKi))},n.\u0275prov=D.jDH({token:n,factory:n.\u0275fac}),n})(),eu=(()=>{class n extends MC{setViewContainerRef(e){this.viewContainerRef=e}setComponentFactoryResolver(e){this.componentFactoryResolver=e}createWrapper(e){let r=this,i=new class o extends Om{init(a){super.init(a),this._componentRef.changeDetectorRef.detectChanges()}createComponent(){return r.createComponent(e)}hasMethod(a){return null!=i.getFrameworkComponentInstance()[a]}callMethod(a,l){const u=this.getFrameworkComponentInstance();return i.getFrameworkComponentInstance()[a].apply(u,l)}addMethod(a,l){i[a]=l}};return i}createComponent(e){let r=this.componentFactoryResolver.resolveComponentFactory(e);return this.viewContainerRef.createComponent(r)}}return n.\u0275fac=(()=>{let t;return function(r){return(t||(t=D.xGo(n)))(r||n)}})(),n.\u0275prov=D.jDH({token:n,factory:n.\u0275fac}),n})();class Om{init(t){this._params=t,this._componentRef=this.createComponent(),this._agAwareComponent=this._componentRef.instance,this._frameworkComponentInstance=this._componentRef.instance,this._eGui=this._componentRef.location.nativeElement,this._agAwareComponent.agInit(this._params)}getGui(){return this._eGui}destroy(){this._frameworkComponentInstance&&"function"==typeof this._frameworkComponentInstance.destroy&&this._frameworkComponentInstance.destroy(),this._componentRef&&this._componentRef.destroy()}getFrameworkComponentInstance(){return this._frameworkComponentInstance}}let Pm=(()=>{class n{constructor(e,r,o,i,s){this.viewContainerRef=r,this.angularFrameworkOverrides=o,this.frameworkComponentWrapper=i,this.componentFactoryResolver=s,this._initialised=!1,this._destroyed=!1,this._fullyReady=Ie.resolve(!0),this.statusBar=void 0,this.sideBar=void 0,this.suppressContextMenu=void 0,this.preventDefaultOnContextMenu=void 0,this.allowContextMenuWithControlKey=void 0,this.suppressMenuHide=void 0,this.enableBrowserTooltips=void 0,this.tooltipShowDelay=void 0,this.tooltipHideDelay=void 0,this.tooltipMouseTrack=void 0,this.popupParent=void 0,this.copyHeadersToClipboard=void 0,this.copyGroupHeadersToClipboard=void 0,this.clipboardDelimiter=void 0,this.suppressCopyRowsToClipboard=void 0,this.suppressCopySingleCellRanges=void 0,this.suppressLastEmptyLineOnPaste=void 0,this.suppressClipboardPaste=void 0,this.suppressClipboardApi=void 0,this.columnDefs=void 0,this.defaultColDef=void 0,this.defaultColGroupDef=void 0,this.columnTypes=void 0,this.maintainColumnOrder=void 0,this.suppressFieldDotNotation=void 0,this.deltaColumnMode=void 0,this.applyColumnDefOrder=void 0,this.immutableColumns=void 0,this.suppressSetColumnStateEvents=void 0,this.suppressColumnStateEvents=void 0,this.colWidth=void 0,this.minColWidth=void 0,this.maxColWidth=void 0,this.headerHeight=void 0,this.groupHeaderHeight=void 0,this.floatingFiltersHeight=void 0,this.pivotHeaderHeight=void 0,this.pivotGroupHeaderHeight=void 0,this.allowDragFromColumnsToolPanel=void 0,this.suppressMovableColumns=void 0,this.suppressColumnMoveAnimation=void 0,this.suppressDragLeaveHidesColumns=void 0,this.suppressRowGroupHidesColumns=void 0,this.colResizeDefault=void 0,this.suppressAutoSize=void 0,this.autoSizePadding=void 0,this.skipHeaderOnAutoSize=void 0,this.components=void 0,this.frameworkComponents=void 0,this.editType=void 0,this.singleClickEdit=void 0,this.suppressClickEdit=void 0,this.readOnlyEdit=void 0,this.stopEditingWhenCellsLoseFocus=void 0,this.enterMovesDown=void 0,this.enterMovesDownAfterEdit=void 0,this.enableCellEditingOnBackspace=void 0,this.undoRedoCellEditing=void 0,this.undoRedoCellEditingLimit=void 0,this.stopEditingWhenGridLosesFocus=void 0,this.defaultCsvExportParams=void 0,this.suppressCsvExport=void 0,this.defaultExcelExportParams=void 0,this.suppressExcelExport=void 0,this.excelStyles=void 0,this.defaultExportParams=void 0,this.quickFilterText=void 0,this.cacheQuickFilter=void 0,this.excludeChildrenWhenTreeDataFiltering=void 0,this.enableCharts=void 0,this.chartThemes=void 0,this.customChartThemes=void 0,this.chartThemeOverrides=void 0,this.enableChartToolPanelsButton=void 0,this.chartToolPanelsDef=void 0,this.loadingCellRenderer=void 0,this.loadingCellRendererFramework=void 0,this.loadingCellRendererParams=void 0,this.loadingCellRendererSelector=void 0,this.localeText=void 0,this.masterDetail=void 0,this.keepDetailRows=void 0,this.keepDetailRowsCount=void 0,this.detailCellRenderer=void 0,this.detailCellRendererFramework=void 0,this.detailCellRendererParams=void 0,this.detailRowHeight=void 0,this.detailRowAutoHeight=void 0,this.context=void 0,this.alignedGrids=void 0,this.tabIndex=void 0,this.rowBuffer=void 0,this.valueCache=void 0,this.valueCacheNeverExpires=void 0,this.enableCellExpressions=void 0,this.suppressParentsInRowNodes=void 0,this.suppressTouch=void 0,this.suppressFocusAfterRefresh=void 0,this.suppressAsyncEvents=void 0,this.suppressBrowserResizeObserver=void 0,this.suppressPropertyNamesCheck=void 0,this.suppressChangeDetection=void 0,this.debug=void 0,this.overlayLoadingTemplate=void 0,this.loadingOverlayComponent=void 0,this.loadingOverlayComponentFramework=void 0,this.loadingOverlayComponentParams=void 0,this.suppressLoadingOverlay=void 0,this.overlayNoRowsTemplate=void 0,this.noRowsOverlayComponent=void 0,this.noRowsOverlayComponentFramework=void 0,this.noRowsOverlayComponentParams=void 0,this.suppressNoRowsOverlay=void 0,this.pagination=void 0,this.paginationPageSize=void 0,this.paginationAutoPageSize=void 0,this.paginateChildRows=void 0,this.suppressPaginationPanel=void 0,this.pivotMode=void 0,this.pivotPanelShow=void 0,this.pivotColumnGroupTotals=void 0,this.pivotRowTotals=void 0,this.pivotSuppressAutoColumn=void 0,this.suppressExpandablePivotGroups=void 0,this.functionsReadOnly=void 0,this.aggFuncs=void 0,this.suppressAggFuncInHeader=void 0,this.suppressAggAtRootLevel=void 0,this.aggregateOnlyChangedColumns=void 0,this.suppressAggFilteredOnly=void 0,this.removePivotHeaderRowWhenSingleValueColumn=void 0,this.animateRows=void 0,this.enableCellChangeFlash=void 0,this.cellFlashDelay=void 0,this.cellFadeDelay=void 0,this.allowShowChangeAfterFilter=void 0,this.domLayout=void 0,this.ensureDomOrder=void 0,this.enableRtl=void 0,this.suppressColumnVirtualisation=void 0,this.suppressMaxRenderedRowRestriction=void 0,this.suppressRowVirtualisation=void 0,this.rowDragManaged=void 0,this.suppressRowDrag=void 0,this.suppressMoveWhenRowDragging=void 0,this.rowDragEntireRow=void 0,this.rowDragMultiRow=void 0,this.rowDragText=void 0,this.fullWidthCellRenderer=void 0,this.fullWidthCellRendererFramework=void 0,this.fullWidthCellRendererParams=void 0,this.embedFullWidthRows=void 0,this.deprecatedEmbedFullWidthRows=void 0,this.groupDisplayType=void 0,this.groupDefaultExpanded=void 0,this.autoGroupColumnDef=void 0,this.groupMaintainOrder=void 0,this.groupSelectsChildren=void 0,this.groupAggFiltering=void 0,this.groupIncludeFooter=void 0,this.groupIncludeTotalFooter=void 0,this.groupSuppressBlankHeader=void 0,this.groupSelectsFiltered=void 0,this.showOpenedGroup=void 0,this.groupRemoveSingleChildren=void 0,this.groupRemoveLowestSingleChildren=void 0,this.groupHideOpenParents=void 0,this.rowGroupPanelShow=void 0,this.groupRowRenderer=void 0,this.groupRowRendererFramework=void 0,this.groupRowRendererParams=void 0,this.suppressMakeColumnVisibleAfterUnGroup=void 0,this.treeData=void 0,this.rowGroupPanelSuppressSort=void 0,this.groupRowsSticky=void 0,this.groupRowInnerRenderer=void 0,this.groupRowInnerRendererFramework=void 0,this.groupMultiAutoColumn=void 0,this.groupUseEntireRow=void 0,this.groupSuppressAutoColumn=void 0,this.rememberGroupStateWhenNewData=void 0,this.pinnedTopRowData=void 0,this.pinnedBottomRowData=void 0,this.rowModelType=void 0,this.rowData=void 0,this.immutableData=void 0,this.asyncTransactionWaitMillis=void 0,this.suppressModelUpdateAfterUpdateTransaction=void 0,this.deltaRowDataMode=void 0,this.batchUpdateWaitMillis=void 0,this.datasource=void 0,this.cacheOverflowSize=void 0,this.infiniteInitialRowCount=void 0,this.serverSideInitialRowCount=void 0,this.serverSideStoreType=void 0,this.serverSideInfiniteScroll=void 0,this.cacheBlockSize=void 0,this.maxBlocksInCache=void 0,this.maxConcurrentDatasourceRequests=void 0,this.blockLoadDebounceMillis=void 0,this.purgeClosedRowNodes=void 0,this.serverSideDatasource=void 0,this.serverSideSortAllLevels=void 0,this.serverSideFilterAllLevels=void 0,this.serverSideSortOnServer=void 0,this.serverSideFilterOnServer=void 0,this.serverSideSortingAlwaysResets=void 0,this.serverSideFilteringAlwaysResets=void 0,this.suppressEnterpriseResetOnNewColumns=void 0,this.viewportDatasource=void 0,this.viewportRowModelPageSize=void 0,this.viewportRowModelBufferSize=void 0,this.alwaysShowHorizontalScroll=void 0,this.alwaysShowVerticalScroll=void 0,this.debounceVerticalScrollbar=void 0,this.suppressHorizontalScroll=void 0,this.suppressScrollOnNewData=void 0,this.suppressScrollWhenPopupsAreOpen=void 0,this.suppressAnimationFrame=void 0,this.suppressMiddleClickScrolls=void 0,this.suppressPreventDefaultOnMouseWheel=void 0,this.scrollbarWidth=void 0,this.rowSelection=void 0,this.rowMultiSelectWithClick=void 0,this.suppressRowDeselection=void 0,this.suppressRowClickSelection=void 0,this.suppressCellSelection=void 0,this.suppressCellFocus=void 0,this.suppressMultiRangeSelection=void 0,this.enableCellTextSelection=void 0,this.enableRangeSelection=void 0,this.enableRangeHandle=void 0,this.enableFillHandle=void 0,this.fillHandleDirection=void 0,this.suppressClearOnFillReduction=void 0,this.sortingOrder=void 0,this.accentedSort=void 0,this.unSortIcon=void 0,this.suppressMultiSort=void 0,this.alwaysMultiSort=void 0,this.multiSortKey=void 0,this.suppressMaintainUnsortedOrder=void 0,this.icons=void 0,this.rowHeight=void 0,this.rowStyle=void 0,this.rowClass=void 0,this.rowClassRules=void 0,this.suppressRowHoverHighlight=void 0,this.suppressRowTransform=void 0,this.columnHoverHighlight=void 0,this.deltaSort=void 0,this.treeDataDisplayType=void 0,this.angularCompileRows=void 0,this.angularCompileFilters=void 0,this.functionsPassive=void 0,this.enableGroupEdit=void 0,this.getContextMenuItems=void 0,this.getMainMenuItems=void 0,this.postProcessPopup=void 0,this.processCellForClipboard=void 0,this.processHeaderForClipboard=void 0,this.processGroupHeaderForClipboard=void 0,this.processCellFromClipboard=void 0,this.sendToClipboard=void 0,this.processDataFromClipboard=void 0,this.isExternalFilterPresent=void 0,this.doesExternalFilterPass=void 0,this.getChartToolbarItems=void 0,this.createChartContainer=void 0,this.navigateToNextHeader=void 0,this.tabToNextHeader=void 0,this.navigateToNextCell=void 0,this.tabToNextCell=void 0,this.suppressKeyboardEvent=void 0,this.localeTextFunc=void 0,this.getLocaleText=void 0,this.getDocument=void 0,this.paginationNumberFormatter=void 0,this.groupRowAggNodes=void 0,this.getGroupRowAgg
2=void 0,this.isGroupOpenByDefault=void 0,this.initialGroupOrderComparator=void 0,this.defaultGroupOrderComparator=void 0,this.processSecondaryColDef=void 0,this.processSecondaryColGroupDef=void 0,this.processPivotResultColDef=void 0,this.processPivotResultColGroupDef=void 0,this.getDataPath=void 0,this.defaultGroupSortComparator=void 0,this.getChildCount=void 0,this.getServerSideGroupLevelParams=void 0,this.getServerSideStoreParams=void 0,this.isServerSideGroupOpenByDefault=void 0,this.isApplyServerSideTransaction=void 0,this.isServerSideGroup=void 0,this.getServerSideGroupKey=void 0,this.getBusinessKeyForNode=void 0,this.getRowNodeId=void 0,this.getRowId=void 0,this.resetRowDataOnUpdate=void 0,this.processRowPostCreate=void 0,this.isRowSelectable=void 0,this.isRowMaster=void 0,this.fillOperation=void 0,this.postSort=void 0,this.postSortRows=void 0,this.getRowStyle=void 0,this.getRowClass=void 0,this.getRowHeight=void 0,this.isFullWidthCell=void 0,this.isFullWidthRow=void 0,this.toolPanelVisibleChanged=new D.bkB,this.toolPanelSizeChanged=new D.bkB,this.pasteStart=new D.bkB,this.pasteEnd=new D.bkB,this.columnVisible=new D.bkB,this.columnPinned=new D.bkB,this.columnResized=new D.bkB,this.columnMoved=new D.bkB,this.columnValueChanged=new D.bkB,this.columnPivotModeChanged=new D.bkB,this.columnPivotChanged=new D.bkB,this.columnGroupOpened=new D.bkB,this.newColumnsLoaded=new D.bkB,this.gridColumnsChanged=new D.bkB,this.displayedColumnsChanged=new D.bkB,this.virtualColumnsChanged=new D.bkB,this.columnEverythingChanged=new D.bkB,this.componentStateChanged=new D.bkB,this.cellValueChanged=new D.bkB,this.cellEditRequest=new D.bkB,this.rowValueChanged=new D.bkB,this.cellEditingStarted=new D.bkB,this.cellEditingStopped=new D.bkB,this.rowEditingStarted=new D.bkB,this.rowEditingStopped=new D.bkB,this.filterOpened=new D.bkB,this.filterChanged=new D.bkB,this.filterModified=new D.bkB,this.chartCreated=new D.bkB,this.chartRangeSelectionChanged=new D.bkB,this.chartOptionsChanged=new D.bkB,this.chartDestroyed=new D.bkB,this.cellKeyDown=new D.bkB,this.cellKeyPress=new D.bkB,this.gridReady=new D.bkB,this.firstDataRendered=new D.bkB,this.gridSizeChanged=new D.bkB,this.modelUpdated=new D.bkB,this.virtualRowRemoved=new D.bkB,this.viewportChanged=new D.bkB,this.bodyScroll=new D.bkB,this.bodyScrollEnd=new D.bkB,this.dragStarted=new D.bkB,this.dragStopped=new D.bkB,this.paginationChanged=new D.bkB,this.rowDragEnter=new D.bkB,this.rowDragMove=new D.bkB,this.rowDragLeave=new D.bkB,this.rowDragEnd=new D.bkB,this.columnRowGroupChanged=new D.bkB,this.rowGroupOpened=new D.bkB,this.expandOrCollapseAll=new D.bkB,this.pinnedRowDataChanged=new D.bkB,this.rowDataChanged=new D.bkB,this.rowDataUpdated=new D.bkB,this.asyncTransactionsFlushed=new D.bkB,this.cellClicked=new D.bkB,this.cellDoubleClicked=new D.bkB,this.cellFocused=new D.bkB,this.cellMouseOver=new D.bkB,this.cellMouseOut=new D.bkB,this.cellMouseDown=new D.bkB,this.rowClicked=new D.bkB,this.rowDoubleClicked=new D.bkB,this.rowSelected=new D.bkB,this.selectionChanged=new D.bkB,this.cellContextMenu=new D.bkB,this.rangeSelectionChanged=new D.bkB,this.sortChanged=new D.bkB,this.columnRowGroupChangeRequest=new D.bkB,this.columnPivotChangeRequest=new D.bkB,this.columnValueChangeRequest=new D.bkB,this.columnAggFuncChangeRequest=new D.bkB,this._nativeElement=e.nativeElement}ngAfterViewInit(){this.frameworkComponentWrapper.setViewContainerRef(this.viewContainerRef),this.frameworkComponentWrapper.setComponentFactoryResolver(this.componentFactoryResolver),this.angularFrameworkOverrides.setEmitterUsedCallback(this.isEmitterUsed.bind(this)),this.gridOptions=ct.copyAttributesToGridOptions(this.gridOptions,this,!0),this.gridParams={globalEventListener:this.globalEventListener.bind(this),frameworkOverrides:this.angularFrameworkOverrides,providedBeanInstances:{frameworkComponentWrapper:this.frameworkComponentWrapper},modules:this.modules||[]},this.columns&&this.columns.length>0&&(this.gridOptions.columnDefs=this.columns.map(e=>e.toColDef())),new xC(this._nativeElement,this.gridOptions,this.gridParams),this.gridOptions.api&&(this.api=this.gridOptions.api),this.gridOptions.columnApi&&(this.columnApi=this.gridOptions.columnApi),this._initialised=!0,this._fullyReady.resolveNow(null,e=>e)}ngOnChanges(e){this._initialised&&ct.processOnChange(e,this.gridOptions,this.api,this.columnApi)}ngOnDestroy(){this._initialised&&(this._destroyed=!0,this.api&&this.api.destroy())}isEmitterUsed(e){const r=this[e],o=!!r&&r.observers&&r.observers.length>0,i=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;return o||!!this.gridOptions&&!!this.gridOptions[i]}globalEventListener(e,r){if(this._destroyed)return;const o=this[e];o&&this.isEmitterUsed(e)&&("gridReady"===e?this._fullyReady.then(i=>
2{o.emit(r)}):o.emit(r))}}return n.\u0275fac=function(e){return new(e||n)(D.rXU(D.aKT),D.rXU(D.c1b),D.rXU(Jl),D.rXU(eu),D.rXU(D.OM3))},n.\u0275cmp=D.VBU({type:n,selectors:[["ag-grid-angular"]],contentQueries:function(e,r,o){if(1&e&&D.wni(o,Sm,4),2&e){let i;D.mGM(i=D.lsd())&&(r.columns=i)}},inputs:{gridOptions:"gridOptions",modules:"modules",statusBar:"statusBar",sideBar:"sideBar",suppressContextMenu:"suppressContextMenu",preventDefaultOnContextMenu:"preventDefaultOnContextMenu",allowContextMenuWithControlKey:"allowContextMenuWithControlKey",suppressMenuHide:"suppressMenuHide",enableBrowserTooltips:"enableBrowserTooltips",tooltipShowDelay:"tooltipShowDelay",tooltipHideDelay:"tooltipHideDelay",tooltipMouseTrack:"tooltipMouseTrack",popupParent:"popupParent",copyHeadersToClipboard:"copyHeadersToClipboard",copyGroupHeadersToClipboard:"copyGroupHeadersToClipboard",clipboardDelimiter:"clipboardDelimiter",suppressCopyRowsToClipboard:"suppressCopyRowsToClipboard",suppressCopySingleCellRanges:"suppressCopySingleCellRanges",suppressLastEmptyLineOnPaste:"suppressLastEmptyLineOnPaste",suppressClipboardPaste:"suppressClipboardPaste",suppressClipboardApi:"suppressClipboardApi",columnDefs:"columnDefs",defaultColDef:"defaultColDef",defaultColGroupDef:"defaultColGroupDef",columnTypes:"columnTypes",maintainColumnOrder:"maintainColumnOrder",suppressFieldDotNotation:"suppressFieldDotNotation",deltaColumnMode:"deltaColumnMode",applyColumnDefOrder:"applyColumnDefOrder",immutableColumns:"immutableColumns",suppressSetColumnStateEvents:"suppressSetColumnStateEvents",suppressColumnStateEvents:"suppressColumnStateEvents",colWidth:"colWidth",minColWidth:"minColWidth",maxColWidth:"maxColWidth",headerHeight:"headerHeight",groupHeaderHeight:"groupHeaderHeight",floatingFiltersHeight:"floatingFiltersHeight",pivotHeaderHeight:"pivotHeaderHeight",pivotGroupHeaderHeight:"pivotGroupHeaderHeight",allowDragFromColumnsToolPanel:"allowDragFromColumnsToolPanel",suppressMovableColumns:"suppressMovableColumns",suppressColumnMoveAnimation:"suppressColumnMoveAnimation",suppressDragLeaveHidesColumns:"suppressDragLeaveHidesColumns",suppressRowGroupHidesColumns:"suppressRowGroupHidesColumns",colResizeDefault:"colResizeDefault",suppressAutoSize:"suppressAutoSize",autoSizePadding:"autoSizePadding",skipHeaderOnAutoSize:"skipHeaderOnAutoSize",components:"components",frameworkComponents:"frameworkComponents",editType:"editType",singleClickEdit:"singleClickEdit",suppressClickEdit:"suppressClickEdit",readOnlyEdit:"readOnlyEdit",stopEditingWhenCellsLoseFocus:"stopEditingWhenCellsLoseFocus",enterMovesDown:"enterMovesDown",enterMovesDownAfterEdit:"enterMovesDownAfterEdit",enableCellEditingOnBackspace:"enableCellEditingOnBackspace",undoRedoCellEditing:"undoRedoCellEditing",undoRedoCellEditingLimit:"undoRedoCellEditingLimit",stopEditingWhenGridLosesFocus:"stopEditingWhenGridLosesFocus",defaultCsvExportParams:"defaultCsvExportParams",suppressCsvExport:"suppressCsvExport",defaultExcelExportParams:"defaultExcelExportParams",suppressExcelExport:"suppressExcelExport",excelStyles:"excelStyles",defaultExportParams:"defaultExportParams",quickFilterText:"quickFilterText",cacheQuickFilter:"cacheQuickFilter",excludeChildrenWhenTreeDataFiltering:"excludeChildrenWhenTreeDataFiltering",enableCharts:"enableCharts",chartThemes:"chartThemes",customChartThemes:"customChartThemes",chartThemeOverrides:"chartThemeOverrides",enableChartToolPanelsButton:"enableChartToolPanelsButton",chartToolPanelsDef:"chartToolPanelsDef",loadingCellRenderer:"loadingCellRenderer",loadingCellRendererFramework:"loadingCellRendererFramework",loadingCellRendererParams:"loadingCellRendererParams",loadingCellRendererSelector:"loadingCellRendererSelector",localeText:"localeText",masterDetail:"masterDetail",keepDetailRows:"keepDetailRows",keepDetailRowsCount:"keepDetailRowsCount",detailCellRenderer:"detailCellRenderer",detailCellRendererFramework:"detailCellRendererFramework",detailCellRendererParams:"detailCellRendererParams",detailRowHeight:"detailRowHeight",detailRowAutoHeight:"detailRowAutoHeight",context:"context",alignedGrids:"al
2ignedGrids",tabIndex:"tabIndex",rowBuffer:"rowBuffer",valueCache:"valueCache",valueCacheNeverExpires:"valueCacheNeverExpires",enableCellExpressions:"enableCellExpressions",suppressParentsInRowNodes:"suppressParentsInRowNodes",suppressTouch:"suppressTouch",suppressFocusAfterRefresh:"suppressFocusAfterRefresh",suppressAsyncEvents:"suppressAsyncEvents",suppressBrowserResizeObserver:"suppressBrowserResizeObserver",suppressPropertyNamesCheck:"suppressPropertyNamesCheck",suppressChangeDetection:"suppressChangeDetection",debug:"debug",overlayLoadingTemplate:"overlayLoadingTemplate",loadingOverlayComponent:"loadingOverlayComponent",loadingOverlayComponentFramework:"loadingOverlayComponentFramework",loadingOverlayComponentParams:"loadingOverlayComponentParams",suppressLoadingOverlay:"suppressLoadingOverlay",overlayNoRowsTemplate:"overlayNoRowsTemplate",noRowsOverlayComponent:"noRowsOverlayComponent",noRowsOverlayComponentFramework:"noRowsOverlayComponentFramework",noRowsOverlayComponentParams:"noRowsOverlayComponentParams",suppressNoRowsOverlay:"suppressNoRowsOverlay",pagination:"pagination",paginationPageSize:"paginationPageSize",paginationAutoPageSize:"paginationAutoPageSize",paginateChildRows:"paginateChildRows",suppressPaginationPanel:"suppressPaginationPanel",pivotMode:"pivotMode",pivotPanelShow:"pivotPanelShow",pivotColumnGroupTotals:"pivotColumnGroupTotals",pivotRowTotals:"pivotRowTotals",pivotSuppressAutoColumn:"pivotSuppressAutoColumn",suppressExpandablePivotGroups:"suppressExpandablePivotGroups",functionsReadOnly:"functionsReadOnly",aggFuncs:"aggFuncs",suppressAggFuncInHeader:"suppressAggFuncInHeader",suppressAggAtRootLevel:"suppressAggAtRootLevel",aggregateOnlyChangedColumns:"aggregateOnlyChangedColumns",suppressAggFilteredOnly:"suppressAggFilteredOnly",removePivotHeaderRowWhenSingleValueColumn:"removePivotHeaderRowWhenSingleValueColumn",animateRows:"animateRows",enableCellChangeFlash:"enableCellChangeFlash",cellFlashDelay:"cellFlashDelay",cellFadeDelay:"cellFadeDelay",allowShowChangeAfterFilter:"allowShowChangeAfterFilter",domLayout:"domLayout",ensureDomOrder:"ensureDomOrder",enableRtl:"enableRtl",suppressColumnVirtualisation:"suppressColumnVirtualisation",suppressMaxRenderedRowRestriction:"suppressMaxRenderedRowRestriction",suppressRowVirtualisation:"suppressRowVirtualisation",rowDragManaged:"rowDragManaged",suppressRowDrag:"suppressRowDrag",suppressMoveWhenRowDragging:"suppressMoveWhenRowDragging",rowDragEntireRow:"rowDragEntireRow",rowDragMultiRow:"rowDragMultiRow",rowDragText:"rowDragText",fullWidthCellRenderer:"fullWidthCellRenderer",fullWidthCellRendererFramework:"fullWidthCellRendererFramework",fullWidthCellRendererParams:"fullWidthCellRendererParams",embedFullWidthRows:"embedFullWidthRows",deprecatedEmbedFullWidthRows:"deprecatedEmbedFullWidthRows",groupDisplayType:"groupDisplayType",groupDefaultExpanded:"groupDefaultExpanded",autoGroupColumnDef:"autoGroupColumnDef",groupMaintainOrder:"groupMaintainOrder",groupSelectsChildren:"groupSelectsChildren",groupAggFiltering:"groupAggFiltering",groupIncludeFooter:"groupIncludeFooter",groupIncludeTotalFooter:"groupIncludeTotalFooter",groupSuppressBlankHeader:"groupSuppressBlankHeader",groupSelectsFiltered:"groupSelectsFiltered",showOpenedGroup:"showOpenedGroup",groupRemoveSingleChildren:"groupRemoveSingleChildren",groupRemoveLowestSingleChildren:"groupRemoveLowestSingleChildren",groupHideOpenParents:"groupHideOpenParents",rowGroupPanelShow:"rowGroupPanelShow",groupRowRenderer:"groupRowRenderer",groupRowRendererFramework:"groupRowRendererFramework",groupRowRendererParams:"groupRowRendererParams",suppressMakeColumnVisibleAfterUnGroup:"suppressMakeColumnVisibleAfterUnGroup",treeData:"treeData",rowGroupPanelSuppressSort:"rowGroupPanelSuppressSort",groupRowsSticky:"groupRowsSticky",groupRowInnerRenderer:"groupRowInnerRenderer",groupRowInnerRendererFramework:"groupRowInnerRendererFramework",groupMultiAutoColumn:"groupMultiAutoColumn",groupUseEntireRow:"groupUseEntireRow",groupSuppressAutoColumn:"groupSuppressAutoColumn",rememberGroupStateWhenNewData:"rememberGroupStateWhenNewData",pinnedTopRowData:"pinnedTopRowData",pinnedBottomRowData:"pinnedBottomRowData",rowModelType:"rowModelType",rowData:"rowData",immutableData:"immutableData",asyncTransactionWaitMillis:"asyncTransactionWaitMillis",suppressModelUpdateAfterUpdateTransaction:"suppressModelUpdateAfterUpdateTransaction",deltaRowDataMode:"deltaRowDataMode",batchUpdateWaitMillis:"batchUpdateWaitMillis",datasource:"datasource",cac
2heOverflowSize:"cacheOverflowSize",infiniteInitialRowCount:"infiniteInitialRowCount",serverSideInitialRowCount:"serverSideInitialRowCount",serverSideStoreType:"serverSideStoreType",serverSideInfiniteScroll:"serverSideInfiniteScroll",cacheBlockSize:"cacheBlockSize",maxBlocksInCache:"maxBlocksInCache",maxConcurrentDatasourceRequests:"maxConcurrentDatasourceRequests",blockLoadDebounceMillis:"blockLoadDebounceMillis",purgeClosedRowNodes:"purgeClosedRowNodes",serverSideDatasource:"serverSideDatasource",serverSideSortAllLevels:"serverSideSortAllLevels",serverSideFilterAllLevels:"serverSideFilterAllLevels",serverSideSortOnServer:"serverSideSortOnServer",serverSideFilterOnServer:"serverSideFilterOnServer",serverSideSortingAlwaysResets:"serverSideSortingAlwaysResets",serverSideFilteringAlwaysResets:"serverSideFilteringAlwaysResets",suppressEnterpriseResetOnNewColumns:"suppressEnterpriseResetOnNewColumns",viewportDatasource:"viewportDatasource",viewportRowModelPageSize:"viewportRowModelPageSize",viewportRowModelBufferSize:"viewportRowModelBufferSize",alwaysShowHorizontalScroll:"alwaysShowHorizontalScroll",alwaysShowVerticalScroll:"alwaysShowVerticalScroll",debounceVerticalScrollbar:"debounceVerticalScrollbar",suppressHorizontalScroll:"suppressHorizontalScroll",suppressScrollOnNewData:"suppressScrollOnNewData",suppressScrollWhenPopupsAreOpen:"suppressScrollWhenPopupsAreOpen",suppressAnimationFrame:"suppressAnimationFrame",suppressMiddleClickScrolls:"suppressMiddleClickScrolls",suppressPreventDefaultOnMouseWheel:"suppressPreventDefaultOnMouseWheel",scrollbarWidth:"scrollbarWidth",rowSelection:"rowSelection",rowMultiSelectWithClick:"rowMultiSelectWithClick",suppressRowDeselection:"suppressRowDeselection",suppressRowClickSelection:"suppressRowClickSelection",suppressCellSelection:"suppressCellSelection",suppressCellFocus:"suppressCellFocus",suppressMultiRangeSelection:"suppressMultiRangeSelection",enableCellTextSelection:"enableCellTextSelection",enableRangeSelection:"enableRangeSelection",enableRangeHandle:"enableRangeHandle",enableFillHandle:"enableFillHandle",fillHandleDirection:"fillHandleDirection",suppressClearOnFillReduction:"suppressClearOnFillReduction",sortingOrder:"sortingOrder",accentedSort:"accentedSort",unSortIcon:"unSortIcon",suppressMultiSort:"suppressMultiSort",alwaysMultiSort:"alwaysMultiSort",multiSortKey:"multiSortKey",suppressMaintainUnsortedOrder:"suppressMaintainUnsortedOrder",icons:"icons",rowHeight:"rowHeight",rowStyle:"rowStyle",rowClass:"rowClass",rowClassRules:"rowClassRules",suppressRowHoverHighlight:"suppressRowHoverHighlight",suppressRowTransform:"suppressRowTransform",columnHoverHighlight:"columnHoverHighlight",deltaSort:"deltaSort",treeDataDisplayType:"treeDataDisplayType",angularCompileRows:"angularCompileRows",angularCompileFilters:"angularCompileFilters",functionsPassive:"functionsPassive",enableGroupEdit:"enableGroupEdit",getContextMenuItems:"getContextMenuItems",getMainMenuItems:"getMainMenuItems",postProcessPopup:"postProcessPopup",processCellForClipboard:"processCellForClipboard",processHeaderForClipboard:"processHeaderForClipboard",processGroupHeaderForClipboard:"processGroupHeaderForClipboard",processCellFromClipboard:"processCellFromClipboard",sendToClipboard:"sendToClipboard",processDataFromClipboard:"processDataFromClipboard",isExternalFilterPresent:"isExternalFilterPresent",doesExternalFilterPass:"doesExternalFilterPass",getChartToolbarItems:"getChartToolbarItems",createChartContainer:"createChartContainer",navigateToNextHeader:"navigateToNextHeader",tabToNextHeader:"tabToNextHeader",navigateToNextCell:"navigateToNextCell",tabToNextCell:"tabToNextCell",suppressKeyboardEvent:"suppressKeyboardEvent",localeTextFunc:"localeTextFunc",getLocaleText:"getLocaleText",getDocument:"getDocument",paginationNumberFormatter:"paginationNumberFormatter",groupRowAggNodes:"groupRowAggNodes",getGroupRowAgg:"getGroupRowAgg",isGroupOpenByDefault:"isGroupOpenByDefault",initialGroupOrderComparator:"initialGroupOrderComparator",defaultGroupOrderComparator:"defaultGroupOrderComparator",processSecondaryColDef:"processSecondaryColDef",processSecondaryColGroupDef:"processSecondaryColGroupDef",processPivotResultColDef:"processPivotResultColDef",processPivotResultColGroupDef:"processPivotResultColGroupDef",getDataPath:"getDataPath",defaultGroupSortComparator:"defaultGroupSortComparator",getChildCount:"getChildCount",getServerSideGroupLevelParams:"getServerSideGroupLevelParams",getServerSideStoreParams:"getServerSideStoreParams",isServerSideGroupOpenByDefault:"isServerSideGroupOpenByDefault",isApplyServerSideTransaction:"isApplyServerSideTransaction",isServerSideGroup:"isServerSideGroup",getServerSideGroupKey:"getServerSideGroupKey",getBusinessKeyForNode:"getBusinessKeyForNode",getRowNodeId:"getRowNodeId",getRowId:"getRowId",resetRowDataOnUpdate:"resetRowDataOnUpdate",processRowPostCreate:"processRowPostCreate",isRowSelectable:"isRowSelectable",isRowMaster:"isRowMaster",fillOperation:"fillOperation",postSort:"postSort",postSortRows:"postSortRows",getRowStyle:"getRowStyle",getRowClass:"getRowClass",getRowHeight:"getRowHeight",isFullWidthCell:"isFullWidthCell",isFullWidthRow:"isFullWidthRow"},outputs:{toolPanelVisibleChanged:"toolPanelVisibleChanged",toolPanelSizeChanged:"toolPanelSizeChanged",pasteStart:"pasteStart",pasteEnd:"pasteEnd",columnVisible:"columnVisible",columnPinned:"columnPinned",columnResized:"columnResized",columnMoved:"columnMoved",columnValueChanged:"columnValueChanged",columnPivotModeChanged:"columnPivotModeChanged",columnPivotChanged:"columnPivotChanged",columnGroupOpened:"columnGroupOpened",newColumnsLoaded:"newColumnsLoaded",gridColumnsChanged:"gridColumnsChanged",displayedColumnsChanged:"displayedColumnsChanged",virtualColumnsChanged:"virtualColumnsChanged",columnEverythingChanged:"columnEverythingChanged",componentStateChanged:"componentStateChanged",cellValueChanged:"cellV
2alueChanged",cellEditRequest:"cellEditRequest",rowValueChanged:"rowValueChanged",cellEditingStarted:"cellEditingStarted",cellEditingStopped:"cellEditingStopped",rowEditingStarted:"rowEditingStarted",rowEditingStopped:"rowEditingStopped",filterOpened:"filterOpened",filterChanged:"filterChanged",filterModified:"filterModified",chartCreated:"chartCreated",chartRangeSelectionChanged:"chartRangeSelectionChanged",chartOptionsChanged:"chartOptionsChanged",chartDestroyed:"chartDestroyed",cellKeyDown:"cellKeyDown",cellKeyPress:"cellKeyPress",gridReady:"gridReady",firstDataRendered:"firstDataRendered",gridSizeChanged:"gridSizeChanged",modelUpdated:"modelUpdated",virtualRowRemoved:"virtualRowRemoved",viewportChanged:"viewportChanged",bodyScroll:"bodyScroll",bodyScrollEnd:"bodyScrollEnd",dragStarted:"dragStarted",dragStopped:"dragStopped",paginationChanged:"paginationChanged",rowDragEnter:"rowDragEnter",rowDragMove:"rowDragMove",rowDragLeave:"rowDragLeave",rowDragEnd:"rowDragEnd",columnRowGroupChanged:"columnRowGroupChanged",rowGroupOpened:"rowGroupOpened",expandOrCollapseAll:"expandOrCollapseAll",pinnedRowDataChanged:"pinnedRowDataChanged",rowDataChanged:"rowDataChanged",rowDataUpdated:"rowDataUpdated",asyncTransactionsFlushed:"asyncTransactionsFlushed",cellClicked:"cellClicked",cellDoubleClicked:"cellDoubleClicked",cellFocused:"cellFocused",cellMouseOver:"cellMouseOver",cellMouseOut:"cellMouseOut",cellMouseDown:"cellMouseDown",rowClicked:"rowClicked",rowDoubleClicked:"rowDoubleClicked",rowSelected:"rowSelected",selectionChanged:"selectionChanged",cellContextMenu:"cellContextMenu",rangeSelectionChanged:"rangeSelectionChanged",sortChanged:"sortChanged",columnRowGroupChangeRequest:"columnRowGroupChangeRequest",columnPivotChangeRequest:"columnPivotChangeRequest",columnValueChangeRequest:"columnValueChangeRequest",columnAggFuncChangeRequest:"columnAggFuncChangeRequest"},standalone:!1,features:[D.Jv_([Jl,eu]),D.OA$],decls:0,vars:0,template:function(e,r){},encapsulation:2}),n})(),Tm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=D.$C({type:n}),n.\u0275inj=D.G2t({imports:[[]]}),n})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.