Files
StudyDiary/.obsidian/plugins/ravenhogwarts-toolkit/main.js
T
2026-07-23 20:36:13 +08:00

522 lines
1.6 MiB
Plaintext

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var sN=Object.create;var cu=Object.defineProperty;var lN=Object.getOwnPropertyDescriptor;var uN=Object.getOwnPropertyNames;var cN=Object.getPrototypeOf,dN=Object.prototype.hasOwnProperty;var fN=(n,t,e)=>t in n?cu(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var de=(n,t)=>()=>(n&&(t=n(n=0)),t);var z=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),Jv=(n,t)=>{for(var e in t)cu(n,e,{get:t[e],enumerable:!0})},SE=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of uN(t))!dN.call(n,o)&&o!==e&&cu(n,o,{get:()=>t[o],enumerable:!(r=lN(t,o))||r.enumerable});return n};var B=(n,t,e)=>(e=n!=null?sN(cN(n)):{},SE(t||!n||!n.__esModule?cu(e,"default",{value:n,enumerable:!0}):e,n)),pN=n=>SE(cu({},"__esModule",{value:!0}),n);var N=(n,t,e)=>(fN(n,typeof t!="symbol"?t+"":t,e),e);function _E(n,t="YYYY-MM-DD HH:mm:ss.SSS"){let e=n.getFullYear(),r=qs(n.getMonth()+1),o=qs(n.getDate()),i=qs(n.getHours()),a=qs(n.getMinutes()),s=qs(n.getSeconds()),l=qs(n.getMilliseconds(),3);return t.replace("YYYY",String(e)).replace("MM",r).replace("DD",o).replace("HH",i).replace("mm",a).replace("ss",s).replace("SSS",l)}function EE(n){return _E(new Date,n)}function No(n=new Date){return _E(n,"YYYY-MM-DDTHH:mm:ssZ")}var qs,$s=de(()=>{qs=(n,t=2)=>{let e=String(n);for(;e.length<t;)e="0"+e;return e}});var Zv,Bd,em,Ie,Hr,Qe,di=de(()=>{$s();Zv=require("obsidian"),Bd=(i=>(i[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.NONE=4]="NONE",i))(Bd||{}),em={level:1,showTimestamp:!0,showLevel:!0,console:!0,showNotifications:!0,noticeTimeout:5e3},Ie=class{constructor(t){this.name=t,Ie.initConfig&&!Ie.initialized&&(Ie.updateConfig(Ie.initConfig),Ie.initConfig=null,Ie.initialized=!0)}static initRootLogger(t){Ie.updateConfig(t),Ie.initialized=!0}static updateConfig(t){Ie.config={...Ie.config,...t},Ie.moduleLoggers.forEach(e=>{e.updateConfig(Ie.config)}),Ie.rootInstance&&Ie.rootInstance.updateConfig(Ie.config)}static getRootLogger(){return Ie.rootInstance||(Ie.rootInstance=new Ie("RavenHogwartsToolkit")),Ie.rootInstance}static getLogger(t){return this.moduleLoggers.has(t)||this.moduleLoggers.set(t,new Ie(t)),this.moduleLoggers.get(t)}formatMessage(t,e,r){let o=[];return Ie.config.showTimestamp&&o.push(`[${EE()}]`),Ie.config.showLevel&&o.push(`[${Bd[t]}]`),o.push(`[${this.name}]`),Ie.config.prefix&&o.push(Ie.config.prefix),o.push(e),o.join(" ")}log(t,e,r=[]){if(t>=Ie.config.level){let o=this.formatMessage(t,e,r);if(Ie.config.console)switch(t){case 0:console.debug(o,...r);break;case 1:console.info(o,...r);break;case 2:console.warn(o,...r);break;case 3:console.error(o,...r);break}Ie.config.showNotifications&&t>=2&&new Zv.Notice(o,Ie.config.noticeTimeout)}}debug(t,...e){this.log(0,t,e)}info(t,...e){this.log(1,t,e)}warn(t,...e){this.log(2,t,e)}error(t,...e){this.log(3,t,e)}notice(t,...e){let r=this.formatMessage(1,t,e);new Zv.Notice(r,Ie.config.noticeTimeout)}logError(t,e){return this.error(e||t.message,t),null}throwError(t,e){throw this.error(e||t.message,t),t}updateConfig(t){Ie.config=t}},Hr=Ie;Hr.moduleLoggers=new Map,Hr.initialized=!1,Hr.initConfig=null,Hr.config={...em};Qe=Hr.getRootLogger()});var ME=z(Ce=>{"use strict";var du=Symbol.for("react.element"),hN=Symbol.for("react.portal"),gN=Symbol.for("react.fragment"),vN=Symbol.for("react.strict_mode"),mN=Symbol.for("react.profiler"),yN=Symbol.for("react.provider"),CN=Symbol.for("react.context"),wN=Symbol.for("react.forward_ref"),SN=Symbol.for("react.suspense"),_N=Symbol.for("react.memo"),EN=Symbol.for("react.lazy"),RE=Symbol.iterator;function RN(n){return n===null||typeof n!="object"?null:(n=RE&&n[RE]||n["@@iterator"],typeof n=="function"?n:null)}var PE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},OE=Object.assign,LE={};function Ks(n,t,e){this.props=n,this.context=t,this.refs=LE,this.updater=e||PE}Ks.prototype.isReactComponent={};Ks.prototype.setState=function(n,t){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,t,"setState")};Ks.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function IE(){}IE.prototype=Ks.prototype;function rm(n,t,e){this.props=n,this.context=t,this.refs=LE,this.updater=e||PE}var nm=rm.prototype=new IE;nm.constructor=rm;OE(nm,Ks.prototype);nm.isPureReactComponent=!0;var TE=Array.isArray,DE=Object.prototype.hasOwnProperty,om={current:null},AE={key:!0,ref:!0,__self:!0,__source:!0};function FE(n,t,e){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)DE.call(t,r)&&!AE.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=e;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(n&&n.defaultProps)for(r in s=n.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:du,type:n,key:i,ref:a,props:o,_owner:om.current}}function TN(n,t){return{$$typeof:du,type:n.type,key:t,ref:n.ref,props:n.props,_owner:n._owner}}function im(n){return typeof n=="object"&&n!==null&&n.$$typeof===du}function xN(n){var t={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(e){return t[e]})}var xE=/\/+/g;function tm(n,t){return typeof n=="object"&&n!==null&&n.key!=null?xN(""+n.key):t.toString(36)}function Ud(n,t,e,r,o){var i=typeof n;(i==="undefined"||i==="boolean")&&(n=null);var a=!1;if(n===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(n.$$typeof){case du:case hN:a=!0}}if(a)return a=n,o=o(a),n=r===""?"."+tm(a,0):r,TE(o)?(e="",n!=null&&(e=n.replace(xE,"$&/")+"/"),Ud(o,t,e,"",function(u){return u})):o!=null&&(im(o)&&(o=TN(o,e+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(xE,"$&/")+"/")+n)),t.push(o)),1;if(a=0,r=r===""?".":r+":",TE(n))for(var s=0;s<n.length;s++){i=n[s];var l=r+tm(i,s);a+=Ud(i,t,e,l,o)}else if(l=RN(n),typeof l=="function")for(n=l.call(n),s=0;!(i=n.next()).done;)i=i.value,l=r+tm(i,s++),a+=Ud(i,t,e,l,o);else if(i==="object")throw t=String(n),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Wd(n,t,e){if(n==null)return n;var r=[],o=0;return Ud(n,r,"","",function(i){return t.call(e,i,o++)}),r}function PN(n){if(n._status===-1){var t=n._result;t=t(),t.then(function(e){(n._status===0||n._status===-1)&&(n._status=1,n._result=e)},function(e){(n._status===0||n._status===-1)&&(n._status=2,n._result=e)}),n._status===-1&&(n._status=0,n._result=t)}if(n._status===1)return n._result.default;throw n._result}var _r={current:null},jd={transition:null},ON={ReactCurrentDispatcher:_r,ReactCurrentBatchConfig:jd,ReactCurrentOwner:om};function bE(){throw Error("act(...) is not supported in production builds of React.")}Ce.Children={map:Wd,forEach:function(n,t,e){Wd(n,function(){t.apply(this,arguments)},e)},count:function(n){var t=0;return Wd(n,function(){t++}),t},toArray:function(n){return Wd(n,function(t){return t})||[]},only:function(n){if(!im(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Ce.Component=Ks;Ce.Fragment=gN;Ce.Profiler=mN;Ce.PureComponent=rm;Ce.StrictMode=vN;Ce.Suspense=SN;Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ON;Ce.act=bE;Ce.cloneElement=function(n,t,e){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var r=OE({},n.props),o=n.key,i=n.ref,a=n._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=om.current),t.key!==void 0&&(o=""+t.key),n.type&&n.type.defaultProps)var s=n.type.defaultProps;for(l in t)DE.call(t,l)&&!AE.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=e;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:du,type:n.type,key:o,ref:i,props:r,_owner:a}};Ce.createContext=function(n){return n={$$typeof:CN,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},n.Provider={$$typeof:yN,_context:n},n.Consumer=n};Ce.createElement=FE;Ce.createFactory=function(n){var t=FE.bind(null,n);return t.type=n,t};Ce.createRef=function(){return{current:null}};Ce.forwardRef=function(n){return{$$typeof:wN,render:n}};Ce.isValidElement=im;Ce.lazy=function(n){return{$$typeof:EN,_payload:{_status:-1,_result:n},_init:PN}};Ce.memo=function(n,t){return{$$typeof:_N,type:n,compare:t===void 0?null:t}};Ce.startTransition=function(n){var t=jd.transition;jd.transition={};try{n()}finally{jd.transition=t}};Ce.unstable_act=bE;Ce.useCallback=function(n,t){return _r.current.useCallback(n,t)};Ce.useContext=function(n){return _r.current.useContext(n)};Ce.useDebugValue=function(){};Ce.useDeferredValue=function(n){return _r.current.useDeferredValue(n)};Ce.useEffect=function(n,t){return _r.current.useEffect(n,t)};Ce.useId=function(){return _r.current.useId()};Ce.useImperativeHandle=function(n,t,e){return _r.current.useImperativeHandle(n,t,e)};Ce.useInsertionEffect=function(n,t){return _r.current.useInsertionEffect(n,t)};Ce.useLayoutEffect=function(n,t){return _r.current.useLayoutEffect(n,t)};Ce.useMemo=function(n,t){return _r.current.useMemo(n,t)};Ce.useReducer=function(n,t,e){return _r.current.useReducer(n,t,e)};Ce.useRef=function(n){return _r.current.useRef(n)};Ce.useState=function(n){return _r.current.useState(n)};Ce.useSyncExternalStore=function(n,t,e){return _r.current.useSyncExternalStore(n,t,e)};Ce.useTransition=function(){return _r.current.useTransition()};Ce.version="18.3.1"});var te=z((d8,NE)=>{"use strict";NE.exports=ME()});var qE=z(ze=>{"use strict";function um(n,t){var e=n.length;n.push(t);e:for(;0<e;){var r=e-1>>>1,o=n[r];if(0<zd(o,t))n[r]=t,n[e]=o,e=r;else break e}}function no(n){return n.length===0?null:n[0]}function $d(n){if(n.length===0)return null;var t=n[0],e=n.pop();if(e!==t){n[0]=e;e:for(var r=0,o=n.length,i=o>>>1;r<i;){var a=2*(r+1)-1,s=n[a],l=a+1,u=n[l];if(0>zd(s,e))l<o&&0>zd(u,s)?(n[r]=u,n[l]=e,r=l):(n[r]=s,n[a]=e,r=a);else if(l<o&&0>zd(u,e))n[r]=u,n[l]=e,r=l;else break e}}return t}function zd(n,t){var e=n.sortIndex-t.sortIndex;return e!==0?e:n.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(GE=performance,ze.unstable_now=function(){return GE.now()}):(am=Date,kE=am.now(),ze.unstable_now=function(){return am.now()-kE});var GE,am,kE,Go=[],Bi=[],LN=1,An=null,ur=3,Kd=!1,Ya=!1,pu=!1,BE=typeof setTimeout=="function"?setTimeout:null,WE=typeof clearTimeout=="function"?clearTimeout:null,HE=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function cm(n){for(var t=no(Bi);t!==null;){if(t.callback===null)$d(Bi);else if(t.startTime<=n)$d(Bi),t.sortIndex=t.expirationTime,um(Go,t);else break;t=no(Bi)}}function dm(n){if(pu=!1,cm(n),!Ya)if(no(Go)!==null)Ya=!0,pm(fm);else{var t=no(Bi);t!==null&&hm(dm,t.startTime-n)}}function fm(n,t){Ya=!1,pu&&(pu=!1,WE(hu),hu=-1),Kd=!0;var e=ur;try{for(cm(t),An=no(Go);An!==null&&(!(An.expirationTime>t)||n&&!zE());){var r=An.callback;if(typeof r=="function"){An.callback=null,ur=An.priorityLevel;var o=r(An.expirationTime<=t);t=ze.unstable_now(),typeof o=="function"?An.callback=o:An===no(Go)&&$d(Go),cm(t)}else $d(Go);An=no(Go)}if(An!==null)var i=!0;else{var a=no(Bi);a!==null&&hm(dm,a.startTime-t),i=!1}return i}finally{An=null,ur=e,Kd=!1}}var Yd=!1,qd=null,hu=-1,UE=5,jE=-1;function zE(){return!(ze.unstable_now()-jE<UE)}function sm(){if(qd!==null){var n=ze.unstable_now();jE=n;var t=!0;try{t=qd(!0,n)}finally{t?fu():(Yd=!1,qd=null)}}else Yd=!1}var fu;typeof HE=="function"?fu=function(){HE(sm)}:typeof MessageChannel<"u"?(lm=new MessageChannel,VE=lm.port2,lm.port1.onmessage=sm,fu=function(){VE.postMessage(null)}):fu=function(){BE(sm,0)};var lm,VE;function pm(n){qd=n,Yd||(Yd=!0,fu())}function hm(n,t){hu=BE(function(){n(ze.unstable_now())},t)}ze.unstable_IdlePriority=5;ze.unstable_ImmediatePriority=1;ze.unstable_LowPriority=4;ze.unstable_NormalPriority=3;ze.unstable_Profiling=null;ze.unstable_UserBlockingPriority=2;ze.unstable_cancelCallback=function(n){n.callback=null};ze.unstable_continueExecution=function(){Ya||Kd||(Ya=!0,pm(fm))};ze.unstable_forceFrameRate=function(n){0>n||125<n?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):UE=0<n?Math.floor(1e3/n):5};ze.unstable_getCurrentPriorityLevel=function(){return ur};ze.unstable_getFirstCallbackNode=function(){return no(Go)};ze.unstable_next=function(n){switch(ur){case 1:case 2:case 3:var t=3;break;default:t=ur}var e=ur;ur=t;try{return n()}finally{ur=e}};ze.unstable_pauseExecution=function(){};ze.unstable_requestPaint=function(){};ze.unstable_runWithPriority=function(n,t){switch(n){case 1:case 2:case 3:case 4:case 5:break;default:n=3}var e=ur;ur=n;try{return t()}finally{ur=e}};ze.unstable_scheduleCallback=function(n,t,e){var r=ze.unstable_now();switch(typeof e=="object"&&e!==null?(e=e.delay,e=typeof e=="number"&&0<e?r+e:r):e=r,n){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=e+o,n={id:LN++,callback:t,priorityLevel:n,startTime:e,expirationTime:o,sortIndex:-1},e>r?(n.sortIndex=e,um(Bi,n),no(Go)===null&&n===no(Bi)&&(pu?(WE(hu),hu=-1):pu=!0,hm(dm,e-r))):(n.sortIndex=o,um(Go,n),Ya||Kd||(Ya=!0,pm(fm))),n};ze.unstable_shouldYield=zE;ze.unstable_wrapCallback=function(n){var t=ur;return function(){var e=ur;ur=t;try{return n.apply(this,arguments)}finally{ur=e}}}});var KE=z((p8,$E)=>{"use strict";$E.exports=qE()});var Jx=z(dn=>{"use strict";var IN=te(),un=KE();function k(n){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+n,e=1;e<arguments.length;e++)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified React error #"+n+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var tT=new Set,Nu={};function ls(n,t){gl(n,t),gl(n+"Capture",t)}function gl(n,t){for(Nu[n]=t,n=0;n<t.length;n++)tT.add(t[n])}var mi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gm=Object.prototype.hasOwnProperty,DN=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,YE={},XE={};function AN(n){return Gm.call(XE,n)?!0:Gm.call(YE,n)?!1:DN.test(n)?XE[n]=!0:(YE[n]=!0,!1)}function FN(n,t,e,r){if(e!==null&&e.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:e!==null?!e.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function bN(n,t,e,r){if(t===null||typeof t>"u"||FN(n,t,e,r))return!0;if(r)return!1;if(e!==null)switch(e.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Tr(n,t,e,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=e,this.propertyName=n,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Kt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Kt[n]=new Tr(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var t=n[0];Kt[t]=new Tr(t,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Kt[n]=new Tr(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Kt[n]=new Tr(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Kt[n]=new Tr(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Kt[n]=new Tr(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Kt[n]=new Tr(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Kt[n]=new Tr(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Kt[n]=new Tr(n,5,!1,n.toLowerCase(),null,!1,!1)});var Ly=/[\-:]([a-z])/g;function Iy(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var t=n.replace(Ly,Iy);Kt[t]=new Tr(t,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var t=n.replace(Ly,Iy);Kt[t]=new Tr(t,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var t=n.replace(Ly,Iy);Kt[t]=new Tr(t,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Kt[n]=new Tr(n,1,!1,n.toLowerCase(),null,!1,!1)});Kt.xlinkHref=new Tr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Kt[n]=new Tr(n,1,!1,n.toLowerCase(),null,!0,!0)});function Dy(n,t,e,r){var o=Kt.hasOwnProperty(t)?Kt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(bN(t,e,o,r)&&(e=null),r||o===null?AN(t)&&(e===null?n.removeAttribute(t):n.setAttribute(t,""+e)):o.mustUseProperty?n[o.propertyName]=e===null?o.type===3?!1:"":e:(t=o.attributeName,r=o.attributeNamespace,e===null?n.removeAttribute(t):(o=o.type,e=o===3||o===4&&e===!0?"":""+e,r?n.setAttributeNS(r,t,e):n.setAttribute(t,e))))}var Si=IN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xd=Symbol.for("react.element"),Qs=Symbol.for("react.portal"),Js=Symbol.for("react.fragment"),Ay=Symbol.for("react.strict_mode"),km=Symbol.for("react.profiler"),rT=Symbol.for("react.provider"),nT=Symbol.for("react.context"),Fy=Symbol.for("react.forward_ref"),Hm=Symbol.for("react.suspense"),Vm=Symbol.for("react.suspense_list"),by=Symbol.for("react.memo"),Ui=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var oT=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var QE=Symbol.iterator;function gu(n){return n===null||typeof n!="object"?null:(n=QE&&n[QE]||n["@@iterator"],typeof n=="function"?n:null)}var dt=Object.assign,gm;function Eu(n){if(gm===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);gm=t&&t[1]||""}return`
`+gm+n}var vm=!1;function mm(n,t){if(!n||vm)return"";vm=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(n,[],t)}else{try{t.call()}catch(u){r=u}n.call(t.prototype)}else{try{throw Error()}catch(u){r=u}n()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=r.stack.split(`
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
`+o[a].replace(" at new "," at ");return n.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",n.displayName)),l}while(1<=a&&0<=s);break}}}finally{vm=!1,Error.prepareStackTrace=e}return(n=n?n.displayName||n.name:"")?Eu(n):""}function MN(n){switch(n.tag){case 5:return Eu(n.type);case 16:return Eu("Lazy");case 13:return Eu("Suspense");case 19:return Eu("SuspenseList");case 0:case 2:case 15:return n=mm(n.type,!1),n;case 11:return n=mm(n.type.render,!1),n;case 1:return n=mm(n.type,!0),n;default:return""}}function Bm(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Js:return"Fragment";case Qs:return"Portal";case km:return"Profiler";case Ay:return"StrictMode";case Hm:return"Suspense";case Vm:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case nT:return(n.displayName||"Context")+".Consumer";case rT:return(n._context.displayName||"Context")+".Provider";case Fy:var t=n.render;return n=n.displayName,n||(n=t.displayName||t.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case by:return t=n.displayName||null,t!==null?t:Bm(n.type)||"Memo";case Ui:t=n._payload,n=n._init;try{return Bm(n(t))}catch{}}return null}function NN(n){var t=n.type;switch(n.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=t.render,n=n.displayName||n.name||"",t.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Bm(t);case 8:return t===Ay?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function na(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function iT(n){var t=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GN(n){var t=iT(n)?"checked":"value",e=Object.getOwnPropertyDescriptor(n.constructor.prototype,t),r=""+n[t];if(!n.hasOwnProperty(t)&&typeof e<"u"&&typeof e.get=="function"&&typeof e.set=="function"){var o=e.get,i=e.set;return Object.defineProperty(n,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(n,t,{enumerable:e.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){n._valueTracker=null,delete n[t]}}}}function Qd(n){n._valueTracker||(n._valueTracker=GN(n))}function aT(n){if(!n)return!1;var t=n._valueTracker;if(!t)return!0;var e=t.getValue(),r="";return n&&(r=iT(n)?n.checked?"true":"false":n.value),n=r,n!==e?(t.setValue(n),!0):!1}function xf(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Wm(n,t){var e=t.checked;return dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:e??n._wrapperState.initialChecked})}function JE(n,t){var e=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;e=na(t.value!=null?t.value:e),n._wrapperState={initialChecked:r,initialValue:e,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sT(n,t){t=t.checked,t!=null&&Dy(n,"checked",t,!1)}function Um(n,t){sT(n,t);var e=na(t.value),r=t.type;if(e!=null)r==="number"?(e===0&&n.value===""||n.value!=e)&&(n.value=""+e):n.value!==""+e&&(n.value=""+e);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?jm(n,t.type,e):t.hasOwnProperty("defaultValue")&&jm(n,t.type,na(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function ZE(n,t,e){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+n._wrapperState.initialValue,e||t===n.value||(n.value=t),n.defaultValue=t}e=n.name,e!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,e!==""&&(n.name=e)}function jm(n,t,e){(t!=="number"||xf(n.ownerDocument)!==n)&&(e==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+e&&(n.defaultValue=""+e))}var Ru=Array.isArray;function ul(n,t,e,r){if(n=n.options,t){t={};for(var o=0;o<e.length;o++)t["$"+e[o]]=!0;for(e=0;e<n.length;e++)o=t.hasOwnProperty("$"+n[e].value),n[e].selected!==o&&(n[e].selected=o),o&&r&&(n[e].defaultSelected=!0)}else{for(e=""+na(e),t=null,o=0;o<n.length;o++){if(n[o].value===e){n[o].selected=!0,r&&(n[o].defaultSelected=!0);return}t!==null||n[o].disabled||(t=n[o])}t!==null&&(t.selected=!0)}}function zm(n,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return dt({},t,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function eR(n,t){var e=t.value;if(e==null){if(e=t.children,t=t.defaultValue,e!=null){if(t!=null)throw Error(k(92));if(Ru(e)){if(1<e.length)throw Error(k(93));e=e[0]}t=e}t==null&&(t=""),e=t}n._wrapperState={initialValue:na(e)}}function lT(n,t){var e=na(t.value),r=na(t.defaultValue);e!=null&&(e=""+e,e!==n.value&&(n.value=e),t.defaultValue==null&&n.defaultValue!==e&&(n.defaultValue=e)),r!=null&&(n.defaultValue=""+r)}function tR(n){var t=n.textContent;t===n._wrapperState.initialValue&&t!==""&&t!==null&&(n.value=t)}function uT(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qm(n,t){return n==null||n==="http://www.w3.org/1999/xhtml"?uT(t):n==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Jd,cT=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,e,r,o){MSApp.execUnsafeLocalFunction(function(){return n(t,e,r,o)})}:n}(function(n,t){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=t;else{for(Jd=Jd||document.createElement("div"),Jd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Jd.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;t.firstChild;)n.appendChild(t.firstChild)}});function Gu(n,t){if(t){var e=n.firstChild;if(e&&e===n.lastChild&&e.nodeType===3){e.nodeValue=t;return}}n.textContent=t}var Pu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kN=["Webkit","ms","Moz","O"];Object.keys(Pu).forEach(function(n){kN.forEach(function(t){t=t+n.charAt(0).toUpperCase()+n.substring(1),Pu[t]=Pu[n]})});function dT(n,t,e){return t==null||typeof t=="boolean"||t===""?"":e||typeof t!="number"||t===0||Pu.hasOwnProperty(n)&&Pu[n]?(""+t).trim():t+"px"}function fT(n,t){n=n.style;for(var e in t)if(t.hasOwnProperty(e)){var r=e.indexOf("--")===0,o=dT(e,t[e],r);e==="float"&&(e="cssFloat"),r?n.setProperty(e,o):n[e]=o}}var HN=dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $m(n,t){if(t){if(HN[n]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,n));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Km(n,t){if(n.indexOf("-")===-1)return typeof t.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ym=null;function My(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Xm=null,cl=null,dl=null;function rR(n){if(n=tc(n)){if(typeof Xm!="function")throw Error(k(280));var t=n.stateNode;t&&(t=ep(t),Xm(n.stateNode,n.type,t))}}function pT(n){cl?dl?dl.push(n):dl=[n]:cl=n}function hT(){if(cl){var n=cl,t=dl;if(dl=cl=null,rR(n),t)for(n=0;n<t.length;n++)rR(t[n])}}function gT(n,t){return n(t)}function vT(){}var ym=!1;function mT(n,t,e){if(ym)return n(t,e);ym=!0;try{return gT(n,t,e)}finally{ym=!1,(cl!==null||dl!==null)&&(vT(),hT())}}function ku(n,t){var e=n.stateNode;if(e===null)return null;var r=ep(e);if(r===null)return null;e=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(n=n.type,r=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!r;break e;default:n=!1}if(n)return null;if(e&&typeof e!="function")throw Error(k(231,t,typeof e));return e}var Qm=!1;if(mi)try{Ys={},Object.defineProperty(Ys,"passive",{get:function(){Qm=!0}}),window.addEventListener("test",Ys,Ys),window.removeEventListener("test",Ys,Ys)}catch{Qm=!1}var Ys;function VN(n,t,e,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(e,u)}catch(c){this.onError(c)}}var Ou=!1,Pf=null,Of=!1,Jm=null,BN={onError:function(n){Ou=!0,Pf=n}};function WN(n,t,e,r,o,i,a,s,l){Ou=!1,Pf=null,VN.apply(BN,arguments)}function UN(n,t,e,r,o,i,a,s,l){if(WN.apply(this,arguments),Ou){if(Ou){var u=Pf;Ou=!1,Pf=null}else throw Error(k(198));Of||(Of=!0,Jm=u)}}function us(n){var t=n,e=n;if(n.alternate)for(;t.return;)t=t.return;else{n=t;do t=n,t.flags&4098&&(e=t.return),n=t.return;while(n)}return t.tag===3?e:null}function yT(n){if(n.tag===13){var t=n.memoizedState;if(t===null&&(n=n.alternate,n!==null&&(t=n.memoizedState)),t!==null)return t.dehydrated}return null}function nR(n){if(us(n)!==n)throw Error(k(188))}function jN(n){var t=n.alternate;if(!t){if(t=us(n),t===null)throw Error(k(188));return t!==n?null:n}for(var e=n,r=t;;){var o=e.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){e=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===e)return nR(o),n;if(i===r)return nR(o),t;i=i.sibling}throw Error(k(188))}if(e.return!==r.return)e=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===e){a=!0,e=o,r=i;break}if(s===r){a=!0,r=o,e=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===e){a=!0,e=i,r=o;break}if(s===r){a=!0,r=i,e=o;break}s=s.sibling}if(!a)throw Error(k(189))}}if(e.alternate!==r)throw Error(k(190))}if(e.tag!==3)throw Error(k(188));return e.stateNode.current===e?n:t}function CT(n){return n=jN(n),n!==null?wT(n):null}function wT(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var t=wT(n);if(t!==null)return t;n=n.sibling}return null}var ST=un.unstable_scheduleCallback,oR=un.unstable_cancelCallback,zN=un.unstable_shouldYield,qN=un.unstable_requestPaint,St=un.unstable_now,$N=un.unstable_getCurrentPriorityLevel,Ny=un.unstable_ImmediatePriority,_T=un.unstable_UserBlockingPriority,Lf=un.unstable_NormalPriority,KN=un.unstable_LowPriority,ET=un.unstable_IdlePriority,Xf=null,Bo=null;function YN(n){if(Bo&&typeof Bo.onCommitFiberRoot=="function")try{Bo.onCommitFiberRoot(Xf,n,void 0,(n.current.flags&128)===128)}catch{}}var lo=Math.clz32?Math.clz32:JN,XN=Math.log,QN=Math.LN2;function JN(n){return n>>>=0,n===0?32:31-(XN(n)/QN|0)|0}var Zd=64,ef=4194304;function Tu(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function If(n,t){var e=n.pendingLanes;if(e===0)return 0;var r=0,o=n.suspendedLanes,i=n.pingedLanes,a=e&268435455;if(a!==0){var s=a&~o;s!==0?r=Tu(s):(i&=a,i!==0&&(r=Tu(i)))}else a=e&~o,a!==0?r=Tu(a):i!==0&&(r=Tu(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=e&16),t=n.entangledLanes,t!==0)for(n=n.entanglements,t&=r;0<t;)e=31-lo(t),o=1<<e,r|=n[e],t&=~o;return r}function ZN(n,t){switch(n){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function eG(n,t){for(var e=n.suspendedLanes,r=n.pingedLanes,o=n.expirationTimes,i=n.pendingLanes;0<i;){var a=31-lo(i),s=1<<a,l=o[a];l===-1?(!(s&e)||s&r)&&(o[a]=ZN(s,t)):l<=t&&(n.expiredLanes|=s),i&=~s}}function Zm(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function RT(){var n=Zd;return Zd<<=1,!(Zd&4194240)&&(Zd=64),n}function Cm(n){for(var t=[],e=0;31>e;e++)t.push(n);return t}function Zu(n,t,e){n.pendingLanes|=t,t!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,t=31-lo(t),n[t]=e}function tG(n,t){var e=n.pendingLanes&~t;n.pendingLanes=t,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=t,n.mutableReadLanes&=t,n.entangledLanes&=t,t=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0<e;){var o=31-lo(e),i=1<<o;t[o]=0,r[o]=-1,n[o]=-1,e&=~i}}function Gy(n,t){var e=n.entangledLanes|=t;for(n=n.entanglements;e;){var r=31-lo(e),o=1<<r;o&t|n[r]&t&&(n[r]|=t),e&=~o}}var ke=0;function TT(n){return n&=-n,1<n?4<n?n&268435455?16:536870912:4:1}var xT,ky,PT,OT,LT,ey=!1,tf=[],Yi=null,Xi=null,Qi=null,Hu=new Map,Vu=new Map,zi=[],rG="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function iR(n,t){switch(n){case"focusin":case"focusout":Yi=null;break;case"dragenter":case"dragleave":Xi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Hu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vu.delete(t.pointerId)}}function vu(n,t,e,r,o,i){return n===null||n.nativeEvent!==i?(n={blockedOn:t,domEventName:e,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=tc(t),t!==null&&ky(t)),n):(n.eventSystemFlags|=r,t=n.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),n)}function nG(n,t,e,r,o){switch(t){case"focusin":return Yi=vu(Yi,n,t,e,r,o),!0;case"dragenter":return Xi=vu(Xi,n,t,e,r,o),!0;case"mouseover":return Qi=vu(Qi,n,t,e,r,o),!0;case"pointerover":var i=o.pointerId;return Hu.set(i,vu(Hu.get(i)||null,n,t,e,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Vu.set(i,vu(Vu.get(i)||null,n,t,e,r,o)),!0}return!1}function IT(n){var t=Ja(n.target);if(t!==null){var e=us(t);if(e!==null){if(t=e.tag,t===13){if(t=yT(e),t!==null){n.blockedOn=t,LT(n.priority,function(){PT(e)});return}}else if(t===3&&e.stateNode.current.memoizedState.isDehydrated){n.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}n.blockedOn=null}function vf(n){if(n.blockedOn!==null)return!1;for(var t=n.targetContainers;0<t.length;){var e=ty(n.domEventName,n.eventSystemFlags,t[0],n.nativeEvent);if(e===null){e=n.nativeEvent;var r=new e.constructor(e.type,e);Ym=r,e.target.dispatchEvent(r),Ym=null}else return t=tc(e),t!==null&&ky(t),n.blockedOn=e,!1;t.shift()}return!0}function aR(n,t,e){vf(n)&&e.delete(t)}function oG(){ey=!1,Yi!==null&&vf(Yi)&&(Yi=null),Xi!==null&&vf(Xi)&&(Xi=null),Qi!==null&&vf(Qi)&&(Qi=null),Hu.forEach(aR),Vu.forEach(aR)}function mu(n,t){n.blockedOn===t&&(n.blockedOn=null,ey||(ey=!0,un.unstable_scheduleCallback(un.unstable_NormalPriority,oG)))}function Bu(n){function t(o){return mu(o,n)}if(0<tf.length){mu(tf[0],n);for(var e=1;e<tf.length;e++){var r=tf[e];r.blockedOn===n&&(r.blockedOn=null)}}for(Yi!==null&&mu(Yi,n),Xi!==null&&mu(Xi,n),Qi!==null&&mu(Qi,n),Hu.forEach(t),Vu.forEach(t),e=0;e<zi.length;e++)r=zi[e],r.blockedOn===n&&(r.blockedOn=null);for(;0<zi.length&&(e=zi[0],e.blockedOn===null);)IT(e),e.blockedOn===null&&zi.shift()}var fl=Si.ReactCurrentBatchConfig,Df=!0;function iG(n,t,e,r){var o=ke,i=fl.transition;fl.transition=null;try{ke=1,Hy(n,t,e,r)}finally{ke=o,fl.transition=i}}function aG(n,t,e,r){var o=ke,i=fl.transition;fl.transition=null;try{ke=4,Hy(n,t,e,r)}finally{ke=o,fl.transition=i}}function Hy(n,t,e,r){if(Df){var o=ty(n,t,e,r);if(o===null)xm(n,t,r,Af,e),iR(n,r);else if(nG(o,n,t,e,r))r.stopPropagation();else if(iR(n,r),t&4&&-1<rG.indexOf(n)){for(;o!==null;){var i=tc(o);if(i!==null&&xT(i),i=ty(n,t,e,r),i===null&&xm(n,t,r,Af,e),i===o)break;o=i}o!==null&&r.stopPropagation()}else xm(n,t,r,null,e)}}var Af=null;function ty(n,t,e,r){if(Af=null,n=My(r),n=Ja(n),n!==null)if(t=us(n),t===null)n=null;else if(e=t.tag,e===13){if(n=yT(t),n!==null)return n;n=null}else if(e===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;n=null}else t!==n&&(n=null);return Af=n,null}function DT(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($N()){case Ny:return 1;case _T:return 4;case Lf:case KN:return 16;case ET:return 536870912;default:return 16}default:return 16}}var $i=null,Vy=null,mf=null;function AT(){if(mf)return mf;var n,t=Vy,e=t.length,r,o="value"in $i?$i.value:$i.textContent,i=o.length;for(n=0;n<e&&t[n]===o[n];n++);var a=e-n;for(r=1;r<=a&&t[e-r]===o[i-r];r++);return mf=o.slice(n,1<r?1-r:void 0)}function yf(n){var t=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&t===13&&(n=13)):n=t,n===10&&(n=13),32<=n||n===13?n:0}function rf(){return!0}function sR(){return!1}function cn(n){function t(e,r,o,i,a){this._reactName=e,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in n)n.hasOwnProperty(s)&&(e=n[s],this[s]=e?e(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?rf:sR,this.isPropagationStopped=sR,this}return dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=rf)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=rf)},persist:function(){},isPersistent:rf}),t}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},By=cn(_l),ec=dt({},_l,{view:0,detail:0}),sG=cn(ec),wm,Sm,yu,Qf=dt({},ec,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wy,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==yu&&(yu&&n.type==="mousemove"?(wm=n.screenX-yu.screenX,Sm=n.screenY-yu.screenY):Sm=wm=0,yu=n),wm)},movementY:function(n){return"movementY"in n?n.movementY:Sm}}),lR=cn(Qf),lG=dt({},Qf,{dataTransfer:0}),uG=cn(lG),cG=dt({},ec,{relatedTarget:0}),_m=cn(cG),dG=dt({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),fG=cn(dG),pG=dt({},_l,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),hG=cn(pG),gG=dt({},_l,{data:0}),uR=cn(gG),vG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mG={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CG(n){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(n):(n=yG[n])?!!t[n]:!1}function Wy(){return CG}var wG=dt({},ec,{key:function(n){if(n.key){var t=vG[n.key]||n.key;if(t!=="Unidentified")return t}return n.type==="keypress"?(n=yf(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?mG[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wy,charCode:function(n){return n.type==="keypress"?yf(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?yf(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),SG=cn(wG),_G=dt({},Qf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cR=cn(_G),EG=dt({},ec,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wy}),RG=cn(EG),TG=dt({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),xG=cn(TG),PG=dt({},Qf,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),OG=cn(PG),LG=[9,13,27,32],Uy=mi&&"CompositionEvent"in window,Lu=null;mi&&"documentMode"in document&&(Lu=document.documentMode);var IG=mi&&"TextEvent"in window&&!Lu,FT=mi&&(!Uy||Lu&&8<Lu&&11>=Lu),dR=String.fromCharCode(32),fR=!1;function bT(n,t){switch(n){case"keyup":return LG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MT(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Zs=!1;function DG(n,t){switch(n){case"compositionend":return MT(t);case"keypress":return t.which!==32?null:(fR=!0,dR);case"textInput":return n=t.data,n===dR&&fR?null:n;default:return null}}function AG(n,t){if(Zs)return n==="compositionend"||!Uy&&bT(n,t)?(n=AT(),mf=Vy=$i=null,Zs=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return FT&&t.locale!=="ko"?null:t.data;default:return null}}var FG={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pR(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return t==="input"?!!FG[n.type]:t==="textarea"}function NT(n,t,e,r){pT(r),t=Ff(t,"onChange"),0<t.length&&(e=new By("onChange","change",null,e,r),n.push({event:e,listeners:t}))}var Iu=null,Wu=null;function bG(n){$T(n,0)}function Jf(n){var t=rl(n);if(aT(t))return n}function MG(n,t){if(n==="change")return t}var GT=!1;mi&&(mi?(of="oninput"in document,of||(Em=document.createElement("div"),Em.setAttribute("oninput","return;"),of=typeof Em.oninput=="function"),nf=of):nf=!1,GT=nf&&(!document.documentMode||9<document.documentMode));var nf,of,Em;function hR(){Iu&&(Iu.detachEvent("onpropertychange",kT),Wu=Iu=null)}function kT(n){if(n.propertyName==="value"&&Jf(Wu)){var t=[];NT(t,Wu,n,My(n)),mT(bG,t)}}function NG(n,t,e){n==="focusin"?(hR(),Iu=t,Wu=e,Iu.attachEvent("onpropertychange",kT)):n==="focusout"&&hR()}function GG(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Jf(Wu)}function kG(n,t){if(n==="click")return Jf(t)}function HG(n,t){if(n==="input"||n==="change")return Jf(t)}function VG(n,t){return n===t&&(n!==0||1/n===1/t)||n!==n&&t!==t}var co=typeof Object.is=="function"?Object.is:VG;function Uu(n,t){if(co(n,t))return!0;if(typeof n!="object"||n===null||typeof t!="object"||t===null)return!1;var e=Object.keys(n),r=Object.keys(t);if(e.length!==r.length)return!1;for(r=0;r<e.length;r++){var o=e[r];if(!Gm.call(t,o)||!co(n[o],t[o]))return!1}return!0}function gR(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function vR(n,t){var e=gR(n);n=0;for(var r;e;){if(e.nodeType===3){if(r=n+e.textContent.length,n<=t&&r>=t)return{node:e,offset:t-n};n=r}e:{for(;e;){if(e.nextSibling){e=e.nextSibling;break e}e=e.parentNode}e=void 0}e=gR(e)}}function HT(n,t){return n&&t?n===t?!0:n&&n.nodeType===3?!1:t&&t.nodeType===3?HT(n,t.parentNode):"contains"in n?n.contains(t):n.compareDocumentPosition?!!(n.compareDocumentPosition(t)&16):!1:!1}function VT(){for(var n=window,t=xf();t instanceof n.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)n=t.contentWindow;else break;t=xf(n.document)}return t}function jy(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return t&&(t==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||t==="textarea"||n.contentEditable==="true")}function BG(n){var t=VT(),e=n.focusedElem,r=n.selectionRange;if(t!==e&&e&&e.ownerDocument&&HT(e.ownerDocument.documentElement,e)){if(r!==null&&jy(e)){if(t=r.start,n=r.end,n===void 0&&(n=t),"selectionStart"in e)e.selectionStart=t,e.selectionEnd=Math.min(n,e.value.length);else if(n=(t=e.ownerDocument||document)&&t.defaultView||window,n.getSelection){n=n.getSelection();var o=e.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!n.extend&&i>r&&(o=r,r=i,i=o),o=vR(e,i);var a=vR(e,r);o&&a&&(n.rangeCount!==1||n.anchorNode!==o.node||n.anchorOffset!==o.offset||n.focusNode!==a.node||n.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),n.removeAllRanges(),i>r?(n.addRange(t),n.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),n.addRange(t)))}}for(t=[],n=e;n=n.parentNode;)n.nodeType===1&&t.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof e.focus=="function"&&e.focus(),e=0;e<t.length;e++)n=t[e],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var WG=mi&&"documentMode"in document&&11>=document.documentMode,el=null,ry=null,Du=null,ny=!1;function mR(n,t,e){var r=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;ny||el==null||el!==xf(r)||(r=el,"selectionStart"in r&&jy(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Du&&Uu(Du,r)||(Du=r,r=Ff(ry,"onSelect"),0<r.length&&(t=new By("onSelect","select",null,t,e),n.push({event:t,listeners:r}),t.target=el)))}function af(n,t){var e={};return e[n.toLowerCase()]=t.toLowerCase(),e["Webkit"+n]="webkit"+t,e["Moz"+n]="moz"+t,e}var tl={animationend:af("Animation","AnimationEnd"),animationiteration:af("Animation","AnimationIteration"),animationstart:af("Animation","AnimationStart"),transitionend:af("Transition","TransitionEnd")},Rm={},BT={};mi&&(BT=document.createElement("div").style,"AnimationEvent"in window||(delete tl.animationend.animation,delete tl.animationiteration.animation,delete tl.animationstart.animation),"TransitionEvent"in window||delete tl.transitionend.transition);function Zf(n){if(Rm[n])return Rm[n];if(!tl[n])return n;var t=tl[n],e;for(e in t)if(t.hasOwnProperty(e)&&e in BT)return Rm[n]=t[e];return n}var WT=Zf("animationend"),UT=Zf("animationiteration"),jT=Zf("animationstart"),zT=Zf("transitionend"),qT=new Map,yR="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ia(n,t){qT.set(n,t),ls(t,[n])}for(sf=0;sf<yR.length;sf++)lf=yR[sf],CR=lf.toLowerCase(),wR=lf[0].toUpperCase()+lf.slice(1),ia(CR,"on"+wR);var lf,CR,wR,sf;ia(WT,"onAnimationEnd");ia(UT,"onAnimationIteration");ia(jT,"onAnimationStart");ia("dblclick","onDoubleClick");ia("focusin","onFocus");ia("focusout","onBlur");ia(zT,"onTransitionEnd");gl("onMouseEnter",["mouseout","mouseover"]);gl("onMouseLeave",["mouseout","mouseover"]);gl("onPointerEnter",["pointerout","pointerover"]);gl("onPointerLeave",["pointerout","pointerover"]);ls("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ls("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ls("onBeforeInput",["compositionend","keypress","textInput","paste"]);ls("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ls("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ls("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),UG=new Set("cancel close invalid load scroll toggle".split(" ").concat(xu));function SR(n,t,e){var r=n.type||"unknown-event";n.currentTarget=e,UN(r,t,void 0,n),n.currentTarget=null}function $T(n,t){t=(t&4)!==0;for(var e=0;e<n.length;e++){var r=n[e],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;SR(o,s,u),i=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;SR(o,s,u),i=l}}}if(Of)throw n=Jm,Of=!1,Jm=null,n}function Je(n,t){var e=t[ly];e===void 0&&(e=t[ly]=new Set);var r=n+"__bubble";e.has(r)||(KT(t,n,2,!1),e.add(r))}function Tm(n,t,e){var r=0;t&&(r|=4),KT(e,n,r,t)}var uf="_reactListening"+Math.random().toString(36).slice(2);function ju(n){if(!n[uf]){n[uf]=!0,tT.forEach(function(e){e!=="selectionchange"&&(UG.has(e)||Tm(e,!1,n),Tm(e,!0,n))});var t=n.nodeType===9?n:n.ownerDocument;t===null||t[uf]||(t[uf]=!0,Tm("selectionchange",!1,t))}}function KT(n,t,e,r){switch(DT(t)){case 1:var o=iG;break;case 4:o=aG;break;default:o=Hy}e=o.bind(null,t,e,n),o=void 0,!Qm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?n.addEventListener(t,e,{capture:!0,passive:o}):n.addEventListener(t,e,!0):o!==void 0?n.addEventListener(t,e,{passive:o}):n.addEventListener(t,e,!1)}function xm(n,t,e,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=Ja(s),a===null)return;if(l=a.tag,l===5||l===6){r=i=a;continue e}s=s.parentNode}}r=r.return}mT(function(){var u=i,c=My(e),d=[];e:{var f=qT.get(n);if(f!==void 0){var p=By,h=n;switch(n){case"keypress":if(yf(e)===0)break e;case"keydown":case"keyup":p=SG;break;case"focusin":h="focus",p=_m;break;case"focusout":h="blur",p=_m;break;case"beforeblur":case"afterblur":p=_m;break;case"click":if(e.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=lR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=uG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=RG;break;case WT:case UT:case jT:p=fG;break;case zT:p=xG;break;case"scroll":p=sG;break;case"wheel":p=OG;break;case"copy":case"cut":case"paste":p=hG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=cR}var v=(t&4)!==0,C=!v&&n==="scroll",m=v?f!==null?f+"Capture":null:f;v=[];for(var y=u,S;y!==null;){S=y;var E=S.stateNode;if(S.tag===5&&E!==null&&(S=E,m!==null&&(E=ku(y,m),E!=null&&v.push(zu(y,E,S)))),C)break;y=y.return}0<v.length&&(f=new p(f,h,null,e,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=n==="mouseover"||n==="pointerover",p=n==="mouseout"||n==="pointerout",f&&e!==Ym&&(h=e.relatedTarget||e.fromElement)&&(Ja(h)||h[yi]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(h=e.relatedTarget||e.toElement,p=u,h=h?Ja(h):null,h!==null&&(C=us(h),h!==C||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=u),p!==h)){if(v=lR,E="onMouseLeave",m="onMouseEnter",y="mouse",(n==="pointerout"||n==="pointerover")&&(v=cR,E="onPointerLeave",m="onPointerEnter",y="pointer"),C=p==null?f:rl(p),S=h==null?f:rl(h),f=new v(E,y+"leave",p,e,c),f.target=C,f.relatedTarget=S,E=null,Ja(c)===u&&(v=new v(m,y+"enter",h,e,c),v.target=S,v.relatedTarget=C,E=v),C=E,p&&h)t:{for(v=p,m=h,y=0,S=v;S;S=Xs(S))y++;for(S=0,E=m;E;E=Xs(E))S++;for(;0<y-S;)v=Xs(v),y--;for(;0<S-y;)m=Xs(m),S--;for(;y--;){if(v===m||m!==null&&v===m.alternate)break t;v=Xs(v),m=Xs(m)}v=null}else v=null;p!==null&&_R(d,f,p,v,!1),h!==null&&C!==null&&_R(d,C,h,v,!0)}}e:{if(f=u?rl(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var R=MG;else if(pR(f))if(GT)R=HG;else{R=GG;var x=NG}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(R=kG);if(R&&(R=R(n,u))){NT(d,R,e,c);break e}x&&x(n,f,u),n==="focusout"&&(x=f._wrapperState)&&x.controlled&&f.type==="number"&&jm(f,"number",f.value)}switch(x=u?rl(u):window,n){case"focusin":(pR(x)||x.contentEditable==="true")&&(el=x,ry=u,Du=null);break;case"focusout":Du=ry=el=null;break;case"mousedown":ny=!0;break;case"contextmenu":case"mouseup":case"dragend":ny=!1,mR(d,e,c);break;case"selectionchange":if(WG)break;case"keydown":case"keyup":mR(d,e,c)}var P;if(Uy)e:{switch(n){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Zs?bT(n,e)&&(T="onCompositionEnd"):n==="keydown"&&e.keyCode===229&&(T="onCompositionStart");T&&(FT&&e.locale!=="ko"&&(Zs||T!=="onCompositionStart"?T==="onCompositionEnd"&&Zs&&(P=AT()):($i=c,Vy="value"in $i?$i.value:$i.textContent,Zs=!0)),x=Ff(u,T),0<x.length&&(T=new uR(T,n,null,e,c),d.push({event:T,listeners:x}),P?T.data=P:(P=MT(e),P!==null&&(T.data=P)))),(P=IG?DG(n,e):AG(n,e))&&(u=Ff(u,"onBeforeInput"),0<u.length&&(c=new uR("onBeforeInput","beforeinput",null,e,c),d.push({event:c,listeners:u}),c.data=P))}$T(d,t)})}function zu(n,t,e){return{instance:n,listener:t,currentTarget:e}}function Ff(n,t){for(var e=t+"Capture",r=[];n!==null;){var o=n,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=ku(n,e),i!=null&&r.unshift(zu(n,i,o)),i=ku(n,t),i!=null&&r.push(zu(n,i,o))),n=n.return}return r}function Xs(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function _R(n,t,e,r,o){for(var i=t._reactName,a=[];e!==null&&e!==r;){var s=e,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,o?(l=ku(e,i),l!=null&&a.unshift(zu(e,l,s))):o||(l=ku(e,i),l!=null&&a.push(zu(e,l,s)))),e=e.return}a.length!==0&&n.push({event:t,listeners:a})}var jG=/\r\n?/g,zG=/\u0000|\uFFFD/g;function ER(n){return(typeof n=="string"?n:""+n).replace(jG,`
`).replace(zG,"")}function cf(n,t,e){if(t=ER(t),ER(n)!==t&&e)throw Error(k(425))}function bf(){}var oy=null,iy=null;function ay(n,t){return n==="textarea"||n==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sy=typeof setTimeout=="function"?setTimeout:void 0,qG=typeof clearTimeout=="function"?clearTimeout:void 0,RR=typeof Promise=="function"?Promise:void 0,$G=typeof queueMicrotask=="function"?queueMicrotask:typeof RR<"u"?function(n){return RR.resolve(null).then(n).catch(KG)}:sy;function KG(n){setTimeout(function(){throw n})}function Pm(n,t){var e=t,r=0;do{var o=e.nextSibling;if(n.removeChild(e),o&&o.nodeType===8)if(e=o.data,e==="/$"){if(r===0){n.removeChild(o),Bu(t);return}r--}else e!=="$"&&e!=="$?"&&e!=="$!"||r++;e=o}while(e);Bu(t)}function Ji(n){for(;n!=null;n=n.nextSibling){var t=n.nodeType;if(t===1||t===3)break;if(t===8){if(t=n.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return n}function TR(n){n=n.previousSibling;for(var t=0;n;){if(n.nodeType===8){var e=n.data;if(e==="$"||e==="$!"||e==="$?"){if(t===0)return n;t--}else e==="/$"&&t++}n=n.previousSibling}return null}var El=Math.random().toString(36).slice(2),Vo="__reactFiber$"+El,qu="__reactProps$"+El,yi="__reactContainer$"+El,ly="__reactEvents$"+El,YG="__reactListeners$"+El,XG="__reactHandles$"+El;function Ja(n){var t=n[Vo];if(t)return t;for(var e=n.parentNode;e;){if(t=e[yi]||e[Vo]){if(e=t.alternate,t.child!==null||e!==null&&e.child!==null)for(n=TR(n);n!==null;){if(e=n[Vo])return e;n=TR(n)}return t}n=e,e=n.parentNode}return null}function tc(n){return n=n[Vo]||n[yi],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function rl(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(k(33))}function ep(n){return n[qu]||null}var uy=[],nl=-1;function aa(n){return{current:n}}function Ze(n){0>nl||(n.current=uy[nl],uy[nl]=null,nl--)}function qe(n,t){nl++,uy[nl]=n.current,n.current=t}var oa={},pr=aa(oa),Wr=aa(!1),ns=oa;function vl(n,t){var e=n.type.contextTypes;if(!e)return oa;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in e)o[i]=t[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=t,n.__reactInternalMemoizedMaskedChildContext=o),o}function Ur(n){return n=n.childContextTypes,n!=null}function Mf(){Ze(Wr),Ze(pr)}function xR(n,t,e){if(pr.current!==oa)throw Error(k(168));qe(pr,t),qe(Wr,e)}function YT(n,t,e){var r=n.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return e;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,NN(n)||"Unknown",o));return dt({},e,r)}function Nf(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||oa,ns=pr.current,qe(pr,n),qe(Wr,Wr.current),!0}function PR(n,t,e){var r=n.stateNode;if(!r)throw Error(k(169));e?(n=YT(n,t,ns),r.__reactInternalMemoizedMergedChildContext=n,Ze(Wr),Ze(pr),qe(pr,n)):Ze(Wr),qe(Wr,e)}var pi=null,tp=!1,Om=!1;function XT(n){pi===null?pi=[n]:pi.push(n)}function QG(n){tp=!0,XT(n)}function sa(){if(!Om&&pi!==null){Om=!0;var n=0,t=ke;try{var e=pi;for(ke=1;n<e.length;n++){var r=e[n];do r=r(!0);while(r!==null)}pi=null,tp=!1}catch(o){throw pi!==null&&(pi=pi.slice(n+1)),ST(Ny,sa),o}finally{ke=t,Om=!1}}return null}var ol=[],il=0,Gf=null,kf=0,Fn=[],bn=0,os=null,hi=1,gi="";function Xa(n,t){ol[il++]=kf,ol[il++]=Gf,Gf=n,kf=t}function QT(n,t,e){Fn[bn++]=hi,Fn[bn++]=gi,Fn[bn++]=os,os=n;var r=hi;n=gi;var o=32-lo(r)-1;r&=~(1<<o),e+=1;var i=32-lo(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,hi=1<<32-lo(t)+o|e<<o|r,gi=i+n}else hi=1<<i|e<<o|r,gi=n}function zy(n){n.return!==null&&(Xa(n,1),QT(n,1,0))}function qy(n){for(;n===Gf;)Gf=ol[--il],ol[il]=null,kf=ol[--il],ol[il]=null;for(;n===os;)os=Fn[--bn],Fn[bn]=null,gi=Fn[--bn],Fn[bn]=null,hi=Fn[--bn],Fn[bn]=null}var ln=null,sn=null,it=!1,so=null;function JT(n,t){var e=Mn(5,null,null,0);e.elementType="DELETED",e.stateNode=t,e.return=n,t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e)}function OR(n,t){switch(n.tag){case 5:var e=n.type;return t=t.nodeType!==1||e.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(n.stateNode=t,ln=n,sn=Ji(t.firstChild),!0):!1;case 6:return t=n.pendingProps===""||t.nodeType!==3?null:t,t!==null?(n.stateNode=t,ln=n,sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(e=os!==null?{id:hi,overflow:gi}:null,n.memoizedState={dehydrated:t,treeContext:e,retryLane:1073741824},e=Mn(18,null,null,0),e.stateNode=t,e.return=n,n.child=e,ln=n,sn=null,!0):!1;default:return!1}}function cy(n){return(n.mode&1)!==0&&(n.flags&128)===0}function dy(n){if(it){var t=sn;if(t){var e=t;if(!OR(n,t)){if(cy(n))throw Error(k(418));t=Ji(e.nextSibling);var r=ln;t&&OR(n,t)?JT(r,e):(n.flags=n.flags&-4097|2,it=!1,ln=n)}}else{if(cy(n))throw Error(k(418));n.flags=n.flags&-4097|2,it=!1,ln=n}}}function LR(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;ln=n}function df(n){if(n!==ln)return!1;if(!it)return LR(n),it=!0,!1;var t;if((t=n.tag!==3)&&!(t=n.tag!==5)&&(t=n.type,t=t!=="head"&&t!=="body"&&!ay(n.type,n.memoizedProps)),t&&(t=sn)){if(cy(n))throw ZT(),Error(k(418));for(;t;)JT(n,t),t=Ji(t.nextSibling)}if(LR(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(k(317));e:{for(n=n.nextSibling,t=0;n;){if(n.nodeType===8){var e=n.data;if(e==="/$"){if(t===0){sn=Ji(n.nextSibling);break e}t--}else e!=="$"&&e!=="$!"&&e!=="$?"||t++}n=n.nextSibling}sn=null}}else sn=ln?Ji(n.stateNode.nextSibling):null;return!0}function ZT(){for(var n=sn;n;)n=Ji(n.nextSibling)}function ml(){sn=ln=null,it=!1}function $y(n){so===null?so=[n]:so.push(n)}var JG=Si.ReactCurrentBatchConfig;function Cu(n,t,e){if(n=e.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(e._owner){if(e=e._owner,e){if(e.tag!==1)throw Error(k(309));var r=e.stateNode}if(!r)throw Error(k(147,n));var o=r,i=""+n;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof n!="string")throw Error(k(284));if(!e._owner)throw Error(k(290,n))}return n}function ff(n,t){throw n=Object.prototype.toString.call(t),Error(k(31,n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n))}function IR(n){var t=n._init;return t(n._payload)}function ex(n){function t(m,y){if(n){var S=m.deletions;S===null?(m.deletions=[y],m.flags|=16):S.push(y)}}function e(m,y){if(!n)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function o(m,y){return m=ra(m,y),m.index=0,m.sibling=null,m}function i(m,y,S){return m.index=S,n?(S=m.alternate,S!==null?(S=S.index,S<y?(m.flags|=2,y):S):(m.flags|=2,y)):(m.flags|=1048576,y)}function a(m){return n&&m.alternate===null&&(m.flags|=2),m}function s(m,y,S,E){return y===null||y.tag!==6?(y=Mm(S,m.mode,E),y.return=m,y):(y=o(y,S),y.return=m,y)}function l(m,y,S,E){var R=S.type;return R===Js?c(m,y,S.props.children,E,S.key):y!==null&&(y.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Ui&&IR(R)===y.type)?(E=o(y,S.props),E.ref=Cu(m,y,S),E.return=m,E):(E=Tf(S.type,S.key,S.props,null,m.mode,E),E.ref=Cu(m,y,S),E.return=m,E)}function u(m,y,S,E){return y===null||y.tag!==4||y.stateNode.containerInfo!==S.containerInfo||y.stateNode.implementation!==S.implementation?(y=Nm(S,m.mode,E),y.return=m,y):(y=o(y,S.children||[]),y.return=m,y)}function c(m,y,S,E,R){return y===null||y.tag!==7?(y=rs(S,m.mode,E,R),y.return=m,y):(y=o(y,S),y.return=m,y)}function d(m,y,S){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Mm(""+y,m.mode,S),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Xd:return S=Tf(y.type,y.key,y.props,null,m.mode,S),S.ref=Cu(m,null,y),S.return=m,S;case Qs:return y=Nm(y,m.mode,S),y.return=m,y;case Ui:var E=y._init;return d(m,E(y._payload),S)}if(Ru(y)||gu(y))return y=rs(y,m.mode,S,null),y.return=m,y;ff(m,y)}return null}function f(m,y,S,E){var R=y!==null?y.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return R!==null?null:s(m,y,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Xd:return S.key===R?l(m,y,S,E):null;case Qs:return S.key===R?u(m,y,S,E):null;case Ui:return R=S._init,f(m,y,R(S._payload),E)}if(Ru(S)||gu(S))return R!==null?null:c(m,y,S,E,null);ff(m,S)}return null}function p(m,y,S,E,R){if(typeof E=="string"&&E!==""||typeof E=="number")return m=m.get(S)||null,s(y,m,""+E,R);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Xd:return m=m.get(E.key===null?S:E.key)||null,l(y,m,E,R);case Qs:return m=m.get(E.key===null?S:E.key)||null,u(y,m,E,R);case Ui:var x=E._init;return p(m,y,S,x(E._payload),R)}if(Ru(E)||gu(E))return m=m.get(S)||null,c(y,m,E,R,null);ff(y,E)}return null}function h(m,y,S,E){for(var R=null,x=null,P=y,T=y=0,L=null;P!==null&&T<S.length;T++){P.index>T?(L=P,P=null):L=P.sibling;var I=f(m,P,S[T],E);if(I===null){P===null&&(P=L);break}n&&P&&I.alternate===null&&t(m,P),y=i(I,y,T),x===null?R=I:x.sibling=I,x=I,P=L}if(T===S.length)return e(m,P),it&&Xa(m,T),R;if(P===null){for(;T<S.length;T++)P=d(m,S[T],E),P!==null&&(y=i(P,y,T),x===null?R=P:x.sibling=P,x=P);return it&&Xa(m,T),R}for(P=r(m,P);T<S.length;T++)L=p(P,m,T,S[T],E),L!==null&&(n&&L.alternate!==null&&P.delete(L.key===null?T:L.key),y=i(L,y,T),x===null?R=L:x.sibling=L,x=L);return n&&P.forEach(function(b){return t(m,b)}),it&&Xa(m,T),R}function v(m,y,S,E){var R=gu(S);if(typeof R!="function")throw Error(k(150));if(S=R.call(S),S==null)throw Error(k(151));for(var x=R=null,P=y,T=y=0,L=null,I=S.next();P!==null&&!I.done;T++,I=S.next()){P.index>T?(L=P,P=null):L=P.sibling;var b=f(m,P,I.value,E);if(b===null){P===null&&(P=L);break}n&&P&&b.alternate===null&&t(m,P),y=i(b,y,T),x===null?R=b:x.sibling=b,x=b,P=L}if(I.done)return e(m,P),it&&Xa(m,T),R;if(P===null){for(;!I.done;T++,I=S.next())I=d(m,I.value,E),I!==null&&(y=i(I,y,T),x===null?R=I:x.sibling=I,x=I);return it&&Xa(m,T),R}for(P=r(m,P);!I.done;T++,I=S.next())I=p(P,m,T,I.value,E),I!==null&&(n&&I.alternate!==null&&P.delete(I.key===null?T:I.key),y=i(I,y,T),x===null?R=I:x.sibling=I,x=I);return n&&P.forEach(function(W){return t(m,W)}),it&&Xa(m,T),R}function C(m,y,S,E){if(typeof S=="object"&&S!==null&&S.type===Js&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Xd:e:{for(var R=S.key,x=y;x!==null;){if(x.key===R){if(R=S.type,R===Js){if(x.tag===7){e(m,x.sibling),y=o(x,S.props.children),y.return=m,m=y;break e}}else if(x.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Ui&&IR(R)===x.type){e(m,x.sibling),y=o(x,S.props),y.ref=Cu(m,x,S),y.return=m,m=y;break e}e(m,x);break}else t(m,x);x=x.sibling}S.type===Js?(y=rs(S.props.children,m.mode,E,S.key),y.return=m,m=y):(E=Tf(S.type,S.key,S.props,null,m.mode,E),E.ref=Cu(m,y,S),E.return=m,m=E)}return a(m);case Qs:e:{for(x=S.key;y!==null;){if(y.key===x)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){e(m,y.sibling),y=o(y,S.children||[]),y.return=m,m=y;break e}else{e(m,y);break}else t(m,y);y=y.sibling}y=Nm(S,m.mode,E),y.return=m,m=y}return a(m);case Ui:return x=S._init,C(m,y,x(S._payload),E)}if(Ru(S))return h(m,y,S,E);if(gu(S))return v(m,y,S,E);ff(m,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(e(m,y.sibling),y=o(y,S),y.return=m,m=y):(e(m,y),y=Mm(S,m.mode,E),y.return=m,m=y),a(m)):e(m,y)}return C}var yl=ex(!0),tx=ex(!1),Hf=aa(null),Vf=null,al=null,Ky=null;function Yy(){Ky=al=Vf=null}function Xy(n){var t=Hf.current;Ze(Hf),n._currentValue=t}function fy(n,t,e){for(;n!==null;){var r=n.alternate;if((n.childLanes&t)!==t?(n.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),n===e)break;n=n.return}}function pl(n,t){Vf=n,Ky=al=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&t&&(Br=!0),n.firstContext=null)}function Gn(n){var t=n._currentValue;if(Ky!==n)if(n={context:n,memoizedValue:t,next:null},al===null){if(Vf===null)throw Error(k(308));al=n,Vf.dependencies={lanes:0,firstContext:n}}else al=al.next=n;return t}var Za=null;function Qy(n){Za===null?Za=[n]:Za.push(n)}function rx(n,t,e,r){var o=t.interleaved;return o===null?(e.next=e,Qy(t)):(e.next=o.next,o.next=e),t.interleaved=e,Ci(n,r)}function Ci(n,t){n.lanes|=t;var e=n.alternate;for(e!==null&&(e.lanes|=t),e=n,n=n.return;n!==null;)n.childLanes|=t,e=n.alternate,e!==null&&(e.childLanes|=t),e=n,n=n.return;return e.tag===3?e.stateNode:null}var ji=!1;function Jy(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nx(n,t){n=n.updateQueue,t.updateQueue===n&&(t.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function vi(n,t){return{eventTime:n,lane:t,tag:0,payload:null,callback:null,next:null}}function Zi(n,t,e){var r=n.updateQueue;if(r===null)return null;if(r=r.shared,Pe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ci(n,e)}return o=r.interleaved,o===null?(t.next=t,Qy(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ci(n,e)}function Cf(n,t,e){if(t=t.updateQueue,t!==null&&(t=t.shared,(e&4194240)!==0)){var r=t.lanes;r&=n.pendingLanes,e|=r,t.lanes=e,Gy(n,e)}}function DR(n,t){var e=n.updateQueue,r=n.alternate;if(r!==null&&(r=r.updateQueue,e===r)){var o=null,i=null;if(e=e.firstBaseUpdate,e!==null){do{var a={eventTime:e.eventTime,lane:e.lane,tag:e.tag,payload:e.payload,callback:e.callback,next:null};i===null?o=i=a:i=i.next=a,e=e.next}while(e!==null);i===null?o=i=t:i=i.next=t}else o=i=t;e={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},n.updateQueue=e;return}n=e.lastBaseUpdate,n===null?e.firstBaseUpdate=t:n.next=t,e.lastBaseUpdate=t}function Bf(n,t,e,r){var o=n.updateQueue;ji=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var c=n.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,c=u=l=null,s=i;do{var f=s.lane,p=s.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=n,v=s;switch(f=t,p=e,v.tag){case 1:if(h=v.payload,typeof h=="function"){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,f=typeof h=="function"?h.call(p,d,f):h,f==null)break e;d=dt({},d,f);break e;case 2:ji=!0}}s.callback!==null&&s.lane!==0&&(n.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);as|=a,n.lanes=a,n.memoizedState=d}}function AR(n,t,e){if(n=t.effects,t.effects=null,n!==null)for(t=0;t<n.length;t++){var r=n[t],o=r.callback;if(o!==null){if(r.callback=null,r=e,typeof o!="function")throw Error(k(191,o));o.call(r)}}}var rc={},Wo=aa(rc),$u=aa(rc),Ku=aa(rc);function es(n){if(n===rc)throw Error(k(174));return n}function Zy(n,t){switch(qe(Ku,t),qe($u,n),qe(Wo,rc),n=t.nodeType,n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qm(null,"");break;default:n=n===8?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=qm(t,n)}Ze(Wo),qe(Wo,t)}function Cl(){Ze(Wo),Ze($u),Ze(Ku)}function ox(n){es(Ku.current);var t=es(Wo.current),e=qm(t,n.type);t!==e&&(qe($u,n),qe(Wo,e))}function eC(n){$u.current===n&&(Ze(Wo),Ze($u))}var ut=aa(0);function Wf(n){for(var t=n;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||e.data==="$?"||e.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lm=[];function tC(){for(var n=0;n<Lm.length;n++)Lm[n]._workInProgressVersionPrimary=null;Lm.length=0}var wf=Si.ReactCurrentDispatcher,Im=Si.ReactCurrentBatchConfig,is=0,ct=null,Lt=null,kt=null,Uf=!1,Au=!1,Yu=0,ZG=0;function cr(){throw Error(k(321))}function rC(n,t){if(t===null)return!1;for(var e=0;e<t.length&&e<n.length;e++)if(!co(n[e],t[e]))return!1;return!0}function nC(n,t,e,r,o,i){if(is=i,ct=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wf.current=n===null||n.memoizedState===null?nk:ok,n=e(r,o),Au){i=0;do{if(Au=!1,Yu=0,25<=i)throw Error(k(301));i+=1,kt=Lt=null,t.updateQueue=null,wf.current=ik,n=e(r,o)}while(Au)}if(wf.current=jf,t=Lt!==null&&Lt.next!==null,is=0,kt=Lt=ct=null,Uf=!1,t)throw Error(k(300));return n}function oC(){var n=Yu!==0;return Yu=0,n}function Ho(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?ct.memoizedState=kt=n:kt=kt.next=n,kt}function kn(){if(Lt===null){var n=ct.alternate;n=n!==null?n.memoizedState:null}else n=Lt.next;var t=kt===null?ct.memoizedState:kt.next;if(t!==null)kt=t,Lt=n;else{if(n===null)throw Error(k(310));Lt=n,n={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},kt===null?ct.memoizedState=kt=n:kt=kt.next=n}return kt}function Xu(n,t){return typeof t=="function"?t(n):t}function Dm(n){var t=kn(),e=t.queue;if(e===null)throw Error(k(311));e.lastRenderedReducer=n;var r=Lt,o=r.baseQueue,i=e.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,e.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=a=null,l=null,u=i;do{var c=u.lane;if((is&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:n(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,ct.lanes|=c,as|=c}u=u.next}while(u!==null&&u!==i);l===null?a=r:l.next=s,co(r,t.memoizedState)||(Br=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,e.lastRenderedState=r}if(n=e.interleaved,n!==null){o=n;do i=o.lane,ct.lanes|=i,as|=i,o=o.next;while(o!==n)}else o===null&&(e.lanes=0);return[t.memoizedState,e.dispatch]}function Am(n){var t=kn(),e=t.queue;if(e===null)throw Error(k(311));e.lastRenderedReducer=n;var r=e.dispatch,o=e.pending,i=t.memoizedState;if(o!==null){e.pending=null;var a=o=o.next;do i=n(i,a.action),a=a.next;while(a!==o);co(i,t.memoizedState)||(Br=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),e.lastRenderedState=i}return[i,r]}function ix(){}function ax(n,t){var e=ct,r=kn(),o=t(),i=!co(r.memoizedState,o);if(i&&(r.memoizedState=o,Br=!0),r=r.queue,iC(ux.bind(null,e,r,n),[n]),r.getSnapshot!==t||i||kt!==null&&kt.memoizedState.tag&1){if(e.flags|=2048,Qu(9,lx.bind(null,e,r,o,t),void 0,null),Ht===null)throw Error(k(349));is&30||sx(e,t,o)}return o}function sx(n,t,e){n.flags|=16384,n={getSnapshot:t,value:e},t=ct.updateQueue,t===null?(t={lastEffect:null,stores:null},ct.updateQueue=t,t.stores=[n]):(e=t.stores,e===null?t.stores=[n]:e.push(n))}function lx(n,t,e,r){t.value=e,t.getSnapshot=r,cx(t)&&dx(n)}function ux(n,t,e){return e(function(){cx(t)&&dx(n)})}function cx(n){var t=n.getSnapshot;n=n.value;try{var e=t();return!co(n,e)}catch{return!0}}function dx(n){var t=Ci(n,1);t!==null&&uo(t,n,1,-1)}function FR(n){var t=Ho();return typeof n=="function"&&(n=n()),t.memoizedState=t.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xu,lastRenderedState:n},t.queue=n,n=n.dispatch=rk.bind(null,ct,n),[t.memoizedState,n]}function Qu(n,t,e,r){return n={tag:n,create:t,destroy:e,deps:r,next:null},t=ct.updateQueue,t===null?(t={lastEffect:null,stores:null},ct.updateQueue=t,t.lastEffect=n.next=n):(e=t.lastEffect,e===null?t.lastEffect=n.next=n:(r=e.next,e.next=n,n.next=r,t.lastEffect=n)),n}function fx(){return kn().memoizedState}function Sf(n,t,e,r){var o=Ho();ct.flags|=n,o.memoizedState=Qu(1|t,e,void 0,r===void 0?null:r)}function rp(n,t,e,r){var o=kn();r=r===void 0?null:r;var i=void 0;if(Lt!==null){var a=Lt.memoizedState;if(i=a.destroy,r!==null&&rC(r,a.deps)){o.memoizedState=Qu(t,e,i,r);return}}ct.flags|=n,o.memoizedState=Qu(1|t,e,i,r)}function bR(n,t){return Sf(8390656,8,n,t)}function iC(n,t){return rp(2048,8,n,t)}function px(n,t){return rp(4,2,n,t)}function hx(n,t){return rp(4,4,n,t)}function gx(n,t){if(typeof t=="function")return n=n(),t(n),function(){t(null)};if(t!=null)return n=n(),t.current=n,function(){t.current=null}}function vx(n,t,e){return e=e!=null?e.concat([n]):null,rp(4,4,gx.bind(null,t,n),e)}function aC(){}function mx(n,t){var e=kn();t=t===void 0?null:t;var r=e.memoizedState;return r!==null&&t!==null&&rC(t,r[1])?r[0]:(e.memoizedState=[n,t],n)}function yx(n,t){var e=kn();t=t===void 0?null:t;var r=e.memoizedState;return r!==null&&t!==null&&rC(t,r[1])?r[0]:(n=n(),e.memoizedState=[n,t],n)}function Cx(n,t,e){return is&21?(co(e,t)||(e=RT(),ct.lanes|=e,as|=e,n.baseState=!0),t):(n.baseState&&(n.baseState=!1,Br=!0),n.memoizedState=e)}function ek(n,t){var e=ke;ke=e!==0&&4>e?e:4,n(!0);var r=Im.transition;Im.transition={};try{n(!1),t()}finally{ke=e,Im.transition=r}}function wx(){return kn().memoizedState}function tk(n,t,e){var r=ta(n);if(e={lane:r,action:e,hasEagerState:!1,eagerState:null,next:null},Sx(n))_x(t,e);else if(e=rx(n,t,e,r),e!==null){var o=Rr();uo(e,n,r,o),Ex(e,t,r)}}function rk(n,t,e){var r=ta(n),o={lane:r,action:e,hasEagerState:!1,eagerState:null,next:null};if(Sx(n))_x(t,o);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,e);if(o.hasEagerState=!0,o.eagerState=s,co(s,a)){var l=t.interleaved;l===null?(o.next=o,Qy(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}e=rx(n,t,o,r),e!==null&&(o=Rr(),uo(e,n,r,o),Ex(e,t,r))}}function Sx(n){var t=n.alternate;return n===ct||t!==null&&t===ct}function _x(n,t){Au=Uf=!0;var e=n.pending;e===null?t.next=t:(t.next=e.next,e.next=t),n.pending=t}function Ex(n,t,e){if(e&4194240){var r=t.lanes;r&=n.pendingLanes,e|=r,t.lanes=e,Gy(n,e)}}var jf={readContext:Gn,useCallback:cr,useContext:cr,useEffect:cr,useImperativeHandle:cr,useInsertionEffect:cr,useLayoutEffect:cr,useMemo:cr,useReducer:cr,useRef:cr,useState:cr,useDebugValue:cr,useDeferredValue:cr,useTransition:cr,useMutableSource:cr,useSyncExternalStore:cr,useId:cr,unstable_isNewReconciler:!1},nk={readContext:Gn,useCallback:function(n,t){return Ho().memoizedState=[n,t===void 0?null:t],n},useContext:Gn,useEffect:bR,useImperativeHandle:function(n,t,e){return e=e!=null?e.concat([n]):null,Sf(4194308,4,gx.bind(null,t,n),e)},useLayoutEffect:function(n,t){return Sf(4194308,4,n,t)},useInsertionEffect:function(n,t){return Sf(4,2,n,t)},useMemo:function(n,t){var e=Ho();return t=t===void 0?null:t,n=n(),e.memoizedState=[n,t],n},useReducer:function(n,t,e){var r=Ho();return t=e!==void 0?e(t):t,r.memoizedState=r.baseState=t,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:t},r.queue=n,n=n.dispatch=tk.bind(null,ct,n),[r.memoizedState,n]},useRef:function(n){var t=Ho();return n={current:n},t.memoizedState=n},useState:FR,useDebugValue:aC,useDeferredValue:function(n){return Ho().memoizedState=n},useTransition:function(){var n=FR(!1),t=n[0];return n=ek.bind(null,n[1]),Ho().memoizedState=n,[t,n]},useMutableSource:function(){},useSyncExternalStore:function(n,t,e){var r=ct,o=Ho();if(it){if(e===void 0)throw Error(k(407));e=e()}else{if(e=t(),Ht===null)throw Error(k(349));is&30||sx(r,t,e)}o.memoizedState=e;var i={value:e,getSnapshot:t};return o.queue=i,bR(ux.bind(null,r,i,n),[n]),r.flags|=2048,Qu(9,lx.bind(null,r,i,e,t),void 0,null),e},useId:function(){var n=Ho(),t=Ht.identifierPrefix;if(it){var e=gi,r=hi;e=(r&~(1<<32-lo(r)-1)).toString(32)+e,t=":"+t+"R"+e,e=Yu++,0<e&&(t+="H"+e.toString(32)),t+=":"}else e=ZG++,t=":"+t+"r"+e.toString(32)+":";return n.memoizedState=t},unstable_isNewReconciler:!1},ok={readContext:Gn,useCallback:mx,useContext:Gn,useEffect:iC,useImperativeHandle:vx,useInsertionEffect:px,useLayoutEffect:hx,useMemo:yx,useReducer:Dm,useRef:fx,useState:function(){return Dm(Xu)},useDebugValue:aC,useDeferredValue:function(n){var t=kn();return Cx(t,Lt.memoizedState,n)},useTransition:function(){var n=Dm(Xu)[0],t=kn().memoizedState;return[n,t]},useMutableSource:ix,useSyncExternalStore:ax,useId:wx,unstable_isNewReconciler:!1},ik={readContext:Gn,useCallback:mx,useContext:Gn,useEffect:iC,useImperativeHandle:vx,useInsertionEffect:px,useLayoutEffect:hx,useMemo:yx,useReducer:Am,useRef:fx,useState:function(){return Am(Xu)},useDebugValue:aC,useDeferredValue:function(n){var t=kn();return Lt===null?t.memoizedState=n:Cx(t,Lt.memoizedState,n)},useTransition:function(){var n=Am(Xu)[0],t=kn().memoizedState;return[n,t]},useMutableSource:ix,useSyncExternalStore:ax,useId:wx,unstable_isNewReconciler:!1};function io(n,t){if(n&&n.defaultProps){t=dt({},t),n=n.defaultProps;for(var e in n)t[e]===void 0&&(t[e]=n[e]);return t}return t}function py(n,t,e,r){t=n.memoizedState,e=e(r,t),e=e==null?t:dt({},t,e),n.memoizedState=e,n.lanes===0&&(n.updateQueue.baseState=e)}var np={isMounted:function(n){return(n=n._reactInternals)?us(n)===n:!1},enqueueSetState:function(n,t,e){n=n._reactInternals;var r=Rr(),o=ta(n),i=vi(r,o);i.payload=t,e!=null&&(i.callback=e),t=Zi(n,i,o),t!==null&&(uo(t,n,o,r),Cf(t,n,o))},enqueueReplaceState:function(n,t,e){n=n._reactInternals;var r=Rr(),o=ta(n),i=vi(r,o);i.tag=1,i.payload=t,e!=null&&(i.callback=e),t=Zi(n,i,o),t!==null&&(uo(t,n,o,r),Cf(t,n,o))},enqueueForceUpdate:function(n,t){n=n._reactInternals;var e=Rr(),r=ta(n),o=vi(e,r);o.tag=2,t!=null&&(o.callback=t),t=Zi(n,o,r),t!==null&&(uo(t,n,r,e),Cf(t,n,r))}};function MR(n,t,e,r,o,i,a){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Uu(e,r)||!Uu(o,i):!0}function Rx(n,t,e){var r=!1,o=oa,i=t.contextType;return typeof i=="object"&&i!==null?i=Gn(i):(o=Ur(t)?ns:pr.current,r=t.contextTypes,i=(r=r!=null)?vl(n,o):oa),t=new t(e,i),n.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=np,n.stateNode=t,t._reactInternals=n,r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=i),t}function NR(n,t,e,r){n=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(e,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(e,r),t.state!==n&&np.enqueueReplaceState(t,t.state,null)}function hy(n,t,e,r){var o=n.stateNode;o.props=e,o.state=n.memoizedState,o.refs={},Jy(n);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Gn(i):(i=Ur(t)?ns:pr.current,o.context=vl(n,i)),o.state=n.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(py(n,t,i,e),o.state=n.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&np.enqueueReplaceState(o,o.state,null),Bf(n,e,o,r),o.state=n.memoizedState),typeof o.componentDidMount=="function"&&(n.flags|=4194308)}function wl(n,t){try{var e="",r=t;do e+=MN(r),r=r.return;while(r);var o=e}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:n,source:t,stack:o,digest:null}}function Fm(n,t,e){return{value:n,source:null,stack:e??null,digest:t??null}}function gy(n,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ak=typeof WeakMap=="function"?WeakMap:Map;function Tx(n,t,e){e=vi(-1,e),e.tag=3,e.payload={element:null};var r=t.value;return e.callback=function(){qf||(qf=!0,Ty=r),gy(n,t)},e}function xx(n,t,e){e=vi(-1,e),e.tag=3;var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;e.payload=function(){return r(o)},e.callback=function(){gy(n,t)}}var i=n.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){gy(n,t),typeof r!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),e}function GR(n,t,e){var r=n.pingCache;if(r===null){r=n.pingCache=new ak;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(e)||(o.add(e),n=wk.bind(null,n,t,e),t.then(n,n))}function kR(n){do{var t;if((t=n.tag===13)&&(t=n.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return n;n=n.return}while(n!==null);return null}function HR(n,t,e,r,o){return n.mode&1?(n.flags|=65536,n.lanes=o,n):(n===t?n.flags|=65536:(n.flags|=128,e.flags|=131072,e.flags&=-52805,e.tag===1&&(e.alternate===null?e.tag=17:(t=vi(-1,1),t.tag=2,Zi(e,t,1))),e.lanes|=1),n)}var sk=Si.ReactCurrentOwner,Br=!1;function Er(n,t,e,r){t.child=n===null?tx(t,null,e,r):yl(t,n.child,e,r)}function VR(n,t,e,r,o){e=e.render;var i=t.ref;return pl(t,o),r=nC(n,t,e,r,i,o),e=oC(),n!==null&&!Br?(t.updateQueue=n.updateQueue,t.flags&=-2053,n.lanes&=~o,wi(n,t,o)):(it&&e&&zy(t),t.flags|=1,Er(n,t,r,o),t.child)}function BR(n,t,e,r,o){if(n===null){var i=e.type;return typeof i=="function"&&!hC(i)&&i.defaultProps===void 0&&e.compare===null&&e.defaultProps===void 0?(t.tag=15,t.type=i,Px(n,t,i,r,o)):(n=Tf(e.type,null,r,t,t.mode,o),n.ref=t.ref,n.return=t,t.child=n)}if(i=n.child,!(n.lanes&o)){var a=i.memoizedProps;if(e=e.compare,e=e!==null?e:Uu,e(a,r)&&n.ref===t.ref)return wi(n,t,o)}return t.flags|=1,n=ra(i,r),n.ref=t.ref,n.return=t,t.child=n}function Px(n,t,e,r,o){if(n!==null){var i=n.memoizedProps;if(Uu(i,r)&&n.ref===t.ref)if(Br=!1,t.pendingProps=r=i,(n.lanes&o)!==0)n.flags&131072&&(Br=!0);else return t.lanes=n.lanes,wi(n,t,o)}return vy(n,t,e,r,o)}function Ox(n,t,e){var r=t.pendingProps,o=r.children,i=n!==null?n.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(ll,an),an|=e;else{if(!(e&1073741824))return n=i!==null?i.baseLanes|e:e,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:n,cachePool:null,transitions:null},t.updateQueue=null,qe(ll,an),an|=n,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:e,qe(ll,an),an|=r}else i!==null?(r=i.baseLanes|e,t.memoizedState=null):r=e,qe(ll,an),an|=r;return Er(n,t,o,e),t.child}function Lx(n,t){var e=t.ref;(n===null&&e!==null||n!==null&&n.ref!==e)&&(t.flags|=512,t.flags|=2097152)}function vy(n,t,e,r,o){var i=Ur(e)?ns:pr.current;return i=vl(t,i),pl(t,o),e=nC(n,t,e,r,i,o),r=oC(),n!==null&&!Br?(t.updateQueue=n.updateQueue,t.flags&=-2053,n.lanes&=~o,wi(n,t,o)):(it&&r&&zy(t),t.flags|=1,Er(n,t,e,o),t.child)}function WR(n,t,e,r,o){if(Ur(e)){var i=!0;Nf(t)}else i=!1;if(pl(t,o),t.stateNode===null)_f(n,t),Rx(t,e,r),hy(t,e,r,o),r=!0;else if(n===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=e.contextType;typeof u=="object"&&u!==null?u=Gn(u):(u=Ur(e)?ns:pr.current,u=vl(t,u));var c=e.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&NR(t,a,r,u),ji=!1;var f=t.memoizedState;a.state=f,Bf(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Wr.current||ji?(typeof c=="function"&&(py(t,e,c,r),l=t.memoizedState),(s=ji||MR(t,e,s,r,f,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,nx(n,t),s=t.memoizedProps,u=t.type===t.elementType?s:io(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l=e.contextType,typeof l=="object"&&l!==null?l=Gn(l):(l=Ur(e)?ns:pr.current,l=vl(t,l));var p=e.getDerivedStateFromProps;(c=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&NR(t,a,r,l),ji=!1,f=t.memoizedState,a.state=f,Bf(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Wr.current||ji?(typeof p=="function"&&(py(t,e,p,r),h=t.memoizedState),(u=ji||MR(t,e,u,r,f,h,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,h,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===n.memoizedProps&&f===n.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===n.memoizedProps&&f===n.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===n.memoizedProps&&f===n.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===n.memoizedProps&&f===n.memoizedState||(t.flags|=1024),r=!1)}return my(n,t,e,r,i,o)}function my(n,t,e,r,o,i){Lx(n,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&PR(t,e,!1),wi(n,t,i);r=t.stateNode,sk.current=t;var s=a&&typeof e.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,n!==null&&a?(t.child=yl(t,n.child,null,i),t.child=yl(t,null,s,i)):Er(n,t,s,i),t.memoizedState=r.state,o&&PR(t,e,!0),t.child}function Ix(n){var t=n.stateNode;t.pendingContext?xR(n,t.pendingContext,t.pendingContext!==t.context):t.context&&xR(n,t.context,!1),Zy(n,t.containerInfo)}function UR(n,t,e,r,o){return ml(),$y(o),t.flags|=256,Er(n,t,e,r),t.child}var yy={dehydrated:null,treeContext:null,retryLane:0};function Cy(n){return{baseLanes:n,cachePool:null,transitions:null}}function Dx(n,t,e){var r=t.pendingProps,o=ut.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=n!==null&&n.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(n===null||n.memoizedState!==null)&&(o|=1),qe(ut,o&1),n===null)return dy(t),n=t.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?(t.mode&1?n.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,n=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=ap(a,r,0,null),n=rs(n,r,e,null),i.return=t,n.return=t,i.sibling=n,t.child=i,t.child.memoizedState=Cy(e),t.memoizedState=yy,n):sC(t,a));if(o=n.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return lk(n,t,a,r,s,o,e);if(i){i=r.fallback,a=t.mode,o=n.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ra(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=ra(s,i):(i=rs(i,a,e,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=n.child.memoizedState,a=a===null?Cy(e):{baseLanes:a.baseLanes|e,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=n.childLanes&~e,t.memoizedState=yy,r}return i=n.child,n=i.sibling,r=ra(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=e),r.return=t,r.sibling=null,n!==null&&(e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)),t.child=r,t.memoizedState=null,r}function sC(n,t){return t=ap({mode:"visible",children:t},n.mode,0,null),t.return=n,n.child=t}function pf(n,t,e,r){return r!==null&&$y(r),yl(t,n.child,null,e),n=sC(t,t.pendingProps.children),n.flags|=2,t.memoizedState=null,n}function lk(n,t,e,r,o,i,a){if(e)return t.flags&256?(t.flags&=-257,r=Fm(Error(k(422))),pf(n,t,a,r)):t.memoizedState!==null?(t.child=n.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ap({mode:"visible",children:r.children},o,0,null),i=rs(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&yl(t,n.child,null,a),t.child.memoizedState=Cy(a),t.memoizedState=yy,i);if(!(t.mode&1))return pf(n,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(k(419)),r=Fm(i,r,void 0),pf(n,t,a,r)}if(s=(a&n.childLanes)!==0,Br||s){if(r=Ht,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Ci(n,o),uo(r,n,o,-1))}return pC(),r=Fm(Error(k(421))),pf(n,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=n.child,t=Sk.bind(null,n),o._reactRetry=t,null):(n=i.treeContext,sn=Ji(o.nextSibling),ln=t,it=!0,so=null,n!==null&&(Fn[bn++]=hi,Fn[bn++]=gi,Fn[bn++]=os,hi=n.id,gi=n.overflow,os=t),t=sC(t,r.children),t.flags|=4096,t)}function jR(n,t,e){n.lanes|=t;var r=n.alternate;r!==null&&(r.lanes|=t),fy(n.return,t,e)}function bm(n,t,e,r,o){var i=n.memoizedState;i===null?n.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:e,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=e,i.tailMode=o)}function Ax(n,t,e){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Er(n,t,r.children,e),r=ut.current,r&2)r=r&1|2,t.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=t.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&jR(n,e,t);else if(n.tag===19)jR(n,e,t);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}r&=1}if(qe(ut,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(e=t.child,o=null;e!==null;)n=e.alternate,n!==null&&Wf(n)===null&&(o=e),e=e.sibling;e=o,e===null?(o=t.child,t.child=null):(o=e.sibling,e.sibling=null),bm(t,!1,o,e,i);break;case"backwards":for(e=null,o=t.child,t.child=null;o!==null;){if(n=o.alternate,n!==null&&Wf(n)===null){t.child=o;break}n=o.sibling,o.sibling=e,e=o,o=n}bm(t,!0,e,null,i);break;case"together":bm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _f(n,t){!(t.mode&1)&&n!==null&&(n.alternate=null,t.alternate=null,t.flags|=2)}function wi(n,t,e){if(n!==null&&(t.dependencies=n.dependencies),as|=t.lanes,!(e&t.childLanes))return null;if(n!==null&&t.child!==n.child)throw Error(k(153));if(t.child!==null){for(n=t.child,e=ra(n,n.pendingProps),t.child=e,e.return=t;n.sibling!==null;)n=n.sibling,e=e.sibling=ra(n,n.pendingProps),e.return=t;e.sibling=null}return t.child}function uk(n,t,e){switch(t.tag){case 3:Ix(t),ml();break;case 5:ox(t);break;case 1:Ur(t.type)&&Nf(t);break;case 4:Zy(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;qe(Hf,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(qe(ut,ut.current&1),t.flags|=128,null):e&t.child.childLanes?Dx(n,t,e):(qe(ut,ut.current&1),n=wi(n,t,e),n!==null?n.sibling:null);qe(ut,ut.current&1);break;case 19:if(r=(e&t.childLanes)!==0,n.flags&128){if(r)return Ax(n,t,e);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),qe(ut,ut.current),r)break;return null;case 22:case 23:return t.lanes=0,Ox(n,t,e)}return wi(n,t,e)}var Fx,wy,bx,Mx;Fx=function(n,t){for(var e=t.child;e!==null;){if(e.tag===5||e.tag===6)n.appendChild(e.stateNode);else if(e.tag!==4&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return;e=e.return}e.sibling.return=e.return,e=e.sibling}};wy=function(){};bx=function(n,t,e,r){var o=n.memoizedProps;if(o!==r){n=t.stateNode,es(Wo.current);var i=null;switch(e){case"input":o=Wm(n,o),r=Wm(n,r),i=[];break;case"select":o=dt({},o,{value:void 0}),r=dt({},r,{value:void 0}),i=[];break;case"textarea":o=zm(n,o),r=zm(n,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(n.onclick=bf)}$m(e,r);var a;e=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(e||(e={}),e[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Nu.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(s=o?.[u],r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(e||(e={}),e[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(e||(e={}),e[a]=l[a])}else e||(i||(i=[]),i.push(u,e)),e=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Nu.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Je("scroll",n),i||s===l||(i=[])):(i=i||[]).push(u,l))}e&&(i=i||[]).push("style",e);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Mx=function(n,t,e,r){e!==r&&(t.flags|=4)};function wu(n,t){if(!it)switch(n.tailMode){case"hidden":t=n.tail;for(var e=null;t!==null;)t.alternate!==null&&(e=t),t=t.sibling;e===null?n.tail=null:e.sibling=null;break;case"collapsed":e=n.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t||n.tail===null?n.tail=null:n.tail.sibling=null:r.sibling=null}}function dr(n){var t=n.alternate!==null&&n.alternate.child===n.child,e=0,r=0;if(t)for(var o=n.child;o!==null;)e|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=n,o=o.sibling;else for(o=n.child;o!==null;)e|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=n,o=o.sibling;return n.subtreeFlags|=r,n.childLanes=e,t}function ck(n,t,e){var r=t.pendingProps;switch(qy(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dr(t),null;case 1:return Ur(t.type)&&Mf(),dr(t),null;case 3:return r=t.stateNode,Cl(),Ze(Wr),Ze(pr),tC(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(n===null||n.child===null)&&(df(t)?t.flags|=4:n===null||n.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,so!==null&&(Oy(so),so=null))),wy(n,t),dr(t),null;case 5:eC(t);var o=es(Ku.current);if(e=t.type,n!==null&&t.stateNode!=null)bx(n,t,e,r,o),n.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return dr(t),null}if(n=es(Wo.current),df(t)){r=t.stateNode,e=t.type;var i=t.memoizedProps;switch(r[Vo]=t,r[qu]=i,n=(t.mode&1)!==0,e){case"dialog":Je("cancel",r),Je("close",r);break;case"iframe":case"object":case"embed":Je("load",r);break;case"video":case"audio":for(o=0;o<xu.length;o++)Je(xu[o],r);break;case"source":Je("error",r);break;case"img":case"image":case"link":Je("error",r),Je("load",r);break;case"details":Je("toggle",r);break;case"input":JE(r,i),Je("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Je("invalid",r);break;case"textarea":eR(r,i),Je("invalid",r)}$m(e,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&cf(r.textContent,s,n),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&cf(r.textContent,s,n),o=["children",""+s]):Nu.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Je("scroll",r)}switch(e){case"input":Qd(r),ZE(r,i,!0);break;case"textarea":Qd(r),tR(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=bf)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=uT(e)),n==="http://www.w3.org/1999/xhtml"?e==="script"?(n=a.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=a.createElement(e,{is:r.is}):(n=a.createElement(e),e==="select"&&(a=n,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):n=a.createElementNS(n,e),n[Vo]=t,n[qu]=r,Fx(n,t,!1,!1),t.stateNode=n;e:{switch(a=Km(e,r),e){case"dialog":Je("cancel",n),Je("close",n),o=r;break;case"iframe":case"object":case"embed":Je("load",n),o=r;break;case"video":case"audio":for(o=0;o<xu.length;o++)Je(xu[o],n);o=r;break;case"source":Je("error",n),o=r;break;case"img":case"image":case"link":Je("error",n),Je("load",n),o=r;break;case"details":Je("toggle",n),o=r;break;case"input":JE(n,r),o=Wm(n,r),Je("invalid",n);break;case"option":o=r;break;case"select":n._wrapperState={wasMultiple:!!r.multiple},o=dt({},r,{value:void 0}),Je("invalid",n);break;case"textarea":eR(n,r),o=zm(n,r),Je("invalid",n);break;default:o=r}$m(e,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?fT(n,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&cT(n,l)):i==="children"?typeof l=="string"?(e!=="textarea"||l!=="")&&Gu(n,l):typeof l=="number"&&Gu(n,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Nu.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Je("scroll",n):l!=null&&Dy(n,i,l,a))}switch(e){case"input":Qd(n),ZE(n,r,!1);break;case"textarea":Qd(n),tR(n);break;case"option":r.value!=null&&n.setAttribute("value",""+na(r.value));break;case"select":n.multiple=!!r.multiple,i=r.value,i!=null?ul(n,!!r.multiple,i,!1):r.defaultValue!=null&&ul(n,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(n.onclick=bf)}switch(e){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return dr(t),null;case 6:if(n&&t.stateNode!=null)Mx(n,t,n.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(e=es(Ku.current),es(Wo.current),df(t)){if(r=t.stateNode,e=t.memoizedProps,r[Vo]=t,(i=r.nodeValue!==e)&&(n=ln,n!==null))switch(n.tag){case 3:cf(r.nodeValue,e,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&cf(r.nodeValue,e,(n.mode&1)!==0)}i&&(t.flags|=4)}else r=(e.nodeType===9?e:e.ownerDocument).createTextNode(r),r[Vo]=t,t.stateNode=r}return dr(t),null;case 13:if(Ze(ut),r=t.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(it&&sn!==null&&t.mode&1&&!(t.flags&128))ZT(),ml(),t.flags|=98560,i=!1;else if(i=df(t),r!==null&&r.dehydrated!==null){if(n===null){if(!i)throw Error(k(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(k(317));i[Vo]=t}else ml(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;dr(t),i=!1}else so!==null&&(Oy(so),so=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=e,t):(r=r!==null,r!==(n!==null&&n.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(n===null||ut.current&1?It===0&&(It=3):pC())),t.updateQueue!==null&&(t.flags|=4),dr(t),null);case 4:return Cl(),wy(n,t),n===null&&ju(t.stateNode.containerInfo),dr(t),null;case 10:return Xy(t.type._context),dr(t),null;case 17:return Ur(t.type)&&Mf(),dr(t),null;case 19:if(Ze(ut),i=t.memoizedState,i===null)return dr(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)wu(i,!1);else{if(It!==0||n!==null&&n.flags&128)for(n=t.child;n!==null;){if(a=Wf(n),a!==null){for(t.flags|=128,wu(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=e,e=t.child;e!==null;)i=e,n=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=n,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,n=a.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e=e.sibling;return qe(ut,ut.current&1|2),t.child}n=n.sibling}i.tail!==null&&St()>Sl&&(t.flags|=128,r=!0,wu(i,!1),t.lanes=4194304)}else{if(!r)if(n=Wf(a),n!==null){if(t.flags|=128,r=!0,e=n.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),wu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!it)return dr(t),null}else 2*St()-i.renderingStartTime>Sl&&e!==1073741824&&(t.flags|=128,r=!0,wu(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=St(),t.sibling=null,e=ut.current,qe(ut,r?e&1|2:e&1),t):(dr(t),null);case 22:case 23:return fC(),r=t.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?an&1073741824&&(dr(t),t.subtreeFlags&6&&(t.flags|=8192)):dr(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function dk(n,t){switch(qy(t),t.tag){case 1:return Ur(t.type)&&Mf(),n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 3:return Cl(),Ze(Wr),Ze(pr),tC(),n=t.flags,n&65536&&!(n&128)?(t.flags=n&-65537|128,t):null;case 5:return eC(t),null;case 13:if(Ze(ut),n=t.memoizedState,n!==null&&n.dehydrated!==null){if(t.alternate===null)throw Error(k(340));ml()}return n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 19:return Ze(ut),null;case 4:return Cl(),null;case 10:return Xy(t.type._context),null;case 22:case 23:return fC(),null;case 24:return null;default:return null}}var hf=!1,fr=!1,fk=typeof WeakSet=="function"?WeakSet:Set,j=null;function sl(n,t){var e=n.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(r){ht(n,t,r)}else e.current=null}function Sy(n,t,e){try{e()}catch(r){ht(n,t,r)}}var zR=!1;function pk(n,t){if(oy=Df,n=VT(),jy(n)){if("selectionStart"in n)var e={start:n.selectionStart,end:n.selectionEnd};else e:{e=(e=n.ownerDocument)&&e.defaultView||window;var r=e.getSelection&&e.getSelection();if(r&&r.rangeCount!==0){e=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{e.nodeType,i.nodeType}catch{e=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var p;d!==e||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===n)break t;if(f===e&&++u===o&&(s=a),f===i&&++c===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}e=s===-1||l===-1?null:{start:s,end:l}}else e=null}e=e||{start:0,end:0}}else e=null;for(iy={focusedElem:n,selectionRange:e},Df=!1,j=t;j!==null;)if(t=j,n=t.child,(t.subtreeFlags&1028)!==0&&n!==null)n.return=t,j=n;else for(;j!==null;){t=j;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,C=h.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:io(t.type,v),C);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(E){ht(t,t.return,E)}if(n=t.sibling,n!==null){n.return=t.return,j=n;break}j=t.return}return h=zR,zR=!1,h}function Fu(n,t,e){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&n)===n){var i=o.destroy;o.destroy=void 0,i!==void 0&&Sy(t,e,i)}o=o.next}while(o!==r)}}function op(n,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var e=t=t.next;do{if((e.tag&n)===n){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}}function _y(n){var t=n.ref;if(t!==null){var e=n.stateNode;switch(n.tag){case 5:n=e;break;default:n=e}typeof t=="function"?t(n):t.current=n}}function Nx(n){var t=n.alternate;t!==null&&(n.alternate=null,Nx(t)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(t=n.stateNode,t!==null&&(delete t[Vo],delete t[qu],delete t[ly],delete t[YG],delete t[XG])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Gx(n){return n.tag===5||n.tag===3||n.tag===4}function qR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Gx(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ey(n,t,e){var r=n.tag;if(r===5||r===6)n=n.stateNode,t?e.nodeType===8?e.parentNode.insertBefore(n,t):e.insertBefore(n,t):(e.nodeType===8?(t=e.parentNode,t.insertBefore(n,e)):(t=e,t.appendChild(n)),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=bf));else if(r!==4&&(n=n.child,n!==null))for(Ey(n,t,e),n=n.sibling;n!==null;)Ey(n,t,e),n=n.sibling}function Ry(n,t,e){var r=n.tag;if(r===5||r===6)n=n.stateNode,t?e.insertBefore(n,t):e.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(Ry(n,t,e),n=n.sibling;n!==null;)Ry(n,t,e),n=n.sibling}var qt=null,ao=!1;function Wi(n,t,e){for(e=e.child;e!==null;)kx(n,t,e),e=e.sibling}function kx(n,t,e){if(Bo&&typeof Bo.onCommitFiberUnmount=="function")try{Bo.onCommitFiberUnmount(Xf,e)}catch{}switch(e.tag){case 5:fr||sl(e,t);case 6:var r=qt,o=ao;qt=null,Wi(n,t,e),qt=r,ao=o,qt!==null&&(ao?(n=qt,e=e.stateNode,n.nodeType===8?n.parentNode.removeChild(e):n.removeChild(e)):qt.removeChild(e.stateNode));break;case 18:qt!==null&&(ao?(n=qt,e=e.stateNode,n.nodeType===8?Pm(n.parentNode,e):n.nodeType===1&&Pm(n,e),Bu(n)):Pm(qt,e.stateNode));break;case 4:r=qt,o=ao,qt=e.stateNode.containerInfo,ao=!0,Wi(n,t,e),qt=r,ao=o;break;case 0:case 11:case 14:case 15:if(!fr&&(r=e.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Sy(e,t,a),o=o.next}while(o!==r)}Wi(n,t,e);break;case 1:if(!fr&&(sl(e,t),r=e.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(s){ht(e,t,s)}Wi(n,t,e);break;case 21:Wi(n,t,e);break;case 22:e.mode&1?(fr=(r=fr)||e.memoizedState!==null,Wi(n,t,e),fr=r):Wi(n,t,e);break;default:Wi(n,t,e)}}function $R(n){var t=n.updateQueue;if(t!==null){n.updateQueue=null;var e=n.stateNode;e===null&&(e=n.stateNode=new fk),t.forEach(function(r){var o=_k.bind(null,n,r);e.has(r)||(e.add(r),r.then(o,o))})}}function oo(n,t){var e=t.deletions;if(e!==null)for(var r=0;r<e.length;r++){var o=e[r];try{var i=n,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:qt=s.stateNode,ao=!1;break e;case 3:qt=s.stateNode.containerInfo,ao=!0;break e;case 4:qt=s.stateNode.containerInfo,ao=!0;break e}s=s.return}if(qt===null)throw Error(k(160));kx(i,a,o),qt=null,ao=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){ht(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hx(t,n),t=t.sibling}function Hx(n,t){var e=n.alternate,r=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(oo(t,n),ko(n),r&4){try{Fu(3,n,n.return),op(3,n)}catch(v){ht(n,n.return,v)}try{Fu(5,n,n.return)}catch(v){ht(n,n.return,v)}}break;case 1:oo(t,n),ko(n),r&512&&e!==null&&sl(e,e.return);break;case 5:if(oo(t,n),ko(n),r&512&&e!==null&&sl(e,e.return),n.flags&32){var o=n.stateNode;try{Gu(o,"")}catch(v){ht(n,n.return,v)}}if(r&4&&(o=n.stateNode,o!=null)){var i=n.memoizedProps,a=e!==null?e.memoizedProps:i,s=n.type,l=n.updateQueue;if(n.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&sT(o,i),Km(s,a);var u=Km(s,i);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];c==="style"?fT(o,d):c==="dangerouslySetInnerHTML"?cT(o,d):c==="children"?Gu(o,d):Dy(o,c,d,u)}switch(s){case"input":Um(o,i);break;case"textarea":lT(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?ul(o,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?ul(o,!!i.multiple,i.defaultValue,!0):ul(o,!!i.multiple,i.multiple?[]:"",!1))}o[qu]=i}catch(v){ht(n,n.return,v)}}break;case 6:if(oo(t,n),ko(n),r&4){if(n.stateNode===null)throw Error(k(162));o=n.stateNode,i=n.memoizedProps;try{o.nodeValue=i}catch(v){ht(n,n.return,v)}}break;case 3:if(oo(t,n),ko(n),r&4&&e!==null&&e.memoizedState.isDehydrated)try{Bu(t.containerInfo)}catch(v){ht(n,n.return,v)}break;case 4:oo(t,n),ko(n);break;case 13:oo(t,n),ko(n),o=n.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(cC=St())),r&4&&$R(n);break;case 22:if(c=e!==null&&e.memoizedState!==null,n.mode&1?(fr=(u=fr)||c,oo(t,n),fr=u):oo(t,n),ko(n),r&8192){if(u=n.memoizedState!==null,(n.stateNode.isHidden=u)&&!c&&n.mode&1)for(j=n,c=n.child;c!==null;){for(d=j=c;j!==null;){switch(f=j,p=f.child,f.tag){case 0:case 11:case 14:case 15:Fu(4,f,f.return);break;case 1:sl(f,f.return);var h=f.stateNode;if(typeof h.componentWillUnmount=="function"){r=f,e=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(v){ht(r,e,v)}}break;case 5:sl(f,f.return);break;case 22:if(f.memoizedState!==null){YR(d);continue}}p!==null?(p.return=f,j=p):YR(d)}c=c.sibling}e:for(c=null,d=n;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=dT("display",a))}catch(v){ht(n,n.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){ht(n,n.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===n)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===n)break e;for(;d.sibling===null;){if(d.return===null||d.return===n)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:oo(t,n),ko(n),r&4&&$R(n);break;case 21:break;default:oo(t,n),ko(n)}}function ko(n){var t=n.flags;if(t&2){try{e:{for(var e=n.return;e!==null;){if(Gx(e)){var r=e;break e}e=e.return}throw Error(k(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Gu(o,""),r.flags&=-33);var i=qR(n);Ry(n,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,s=qR(n);Ey(n,s,a);break;default:throw Error(k(161))}}catch(l){ht(n,n.return,l)}n.flags&=-3}t&4096&&(n.flags&=-4097)}function hk(n,t,e){j=n,Vx(n,t,e)}function Vx(n,t,e){for(var r=(n.mode&1)!==0;j!==null;){var o=j,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||hf;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||fr;s=hf;var u=fr;if(hf=a,(fr=l)&&!u)for(j=o;j!==null;)a=j,l=a.child,a.tag===22&&a.memoizedState!==null?XR(o):l!==null?(l.return=a,j=l):XR(o);for(;i!==null;)j=i,Vx(i,t,e),i=i.sibling;j=o,hf=s,fr=u}KR(n,t,e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,j=i):KR(n,t,e)}}function KR(n){for(;j!==null;){var t=j;if(t.flags&8772){var e=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:fr||op(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!fr)if(e===null)r.componentDidMount();else{var o=t.elementType===t.type?e.memoizedProps:io(t.type,e.memoizedProps);r.componentDidUpdate(o,e.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&AR(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(e=null,t.child!==null)switch(t.child.tag){case 5:e=t.child.stateNode;break;case 1:e=t.child.stateNode}AR(t,a,e)}break;case 5:var s=t.stateNode;if(e===null&&t.flags&4){e=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&e.focus();break;case"img":l.src&&(e.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Bu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}fr||t.flags&512&&_y(t)}catch(f){ht(t,t.return,f)}}if(t===n){j=null;break}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}}function YR(n){for(;j!==null;){var t=j;if(t===n){j=null;break}var e=t.sibling;if(e!==null){e.return=t.return,j=e;break}j=t.return}}function XR(n){for(;j!==null;){var t=j;try{switch(t.tag){case 0:case 11:case 15:var e=t.return;try{op(4,t)}catch(l){ht(t,e,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){ht(t,o,l)}}var i=t.return;try{_y(t)}catch(l){ht(t,i,l)}break;case 5:var a=t.return;try{_y(t)}catch(l){ht(t,a,l)}}}catch(l){ht(t,t.return,l)}if(t===n){j=null;break}var s=t.sibling;if(s!==null){s.return=t.return,j=s;break}j=t.return}}var gk=Math.ceil,zf=Si.ReactCurrentDispatcher,lC=Si.ReactCurrentOwner,Nn=Si.ReactCurrentBatchConfig,Pe=0,Ht=null,Rt=null,$t=0,an=0,ll=aa(0),It=0,Ju=null,as=0,ip=0,uC=0,bu=null,Vr=null,cC=0,Sl=1/0,fi=null,qf=!1,Ty=null,ea=null,gf=!1,Ki=null,$f=0,Mu=0,xy=null,Ef=-1,Rf=0;function Rr(){return Pe&6?St():Ef!==-1?Ef:Ef=St()}function ta(n){return n.mode&1?Pe&2&&$t!==0?$t&-$t:JG.transition!==null?(Rf===0&&(Rf=RT()),Rf):(n=ke,n!==0||(n=window.event,n=n===void 0?16:DT(n.type)),n):1}function uo(n,t,e,r){if(50<Mu)throw Mu=0,xy=null,Error(k(185));Zu(n,e,r),(!(Pe&2)||n!==Ht)&&(n===Ht&&(!(Pe&2)&&(ip|=e),It===4&&qi(n,$t)),jr(n,r),e===1&&Pe===0&&!(t.mode&1)&&(Sl=St()+500,tp&&sa()))}function jr(n,t){var e=n.callbackNode;eG(n,t);var r=If(n,n===Ht?$t:0);if(r===0)e!==null&&oR(e),n.callbackNode=null,n.callbackPriority=0;else if(t=r&-r,n.callbackPriority!==t){if(e!=null&&oR(e),t===1)n.tag===0?QG(QR.bind(null,n)):XT(QR.bind(null,n)),$G(function(){!(Pe&6)&&sa()}),e=null;else{switch(TT(r)){case 1:e=Ny;break;case 4:e=_T;break;case 16:e=Lf;break;case 536870912:e=ET;break;default:e=Lf}e=Kx(e,Bx.bind(null,n))}n.callbackPriority=t,n.callbackNode=e}}function Bx(n,t){if(Ef=-1,Rf=0,Pe&6)throw Error(k(327));var e=n.callbackNode;if(hl()&&n.callbackNode!==e)return null;var r=If(n,n===Ht?$t:0);if(r===0)return null;if(r&30||r&n.expiredLanes||t)t=Kf(n,r);else{t=r;var o=Pe;Pe|=2;var i=Ux();(Ht!==n||$t!==t)&&(fi=null,Sl=St()+500,ts(n,t));do try{yk();break}catch(s){Wx(n,s)}while(1);Yy(),zf.current=i,Pe=o,Rt!==null?t=0:(Ht=null,$t=0,t=It)}if(t!==0){if(t===2&&(o=Zm(n),o!==0&&(r=o,t=Py(n,o))),t===1)throw e=Ju,ts(n,0),qi(n,r),jr(n,St()),e;if(t===6)qi(n,r);else{if(o=n.current.alternate,!(r&30)&&!vk(o)&&(t=Kf(n,r),t===2&&(i=Zm(n),i!==0&&(r=i,t=Py(n,i))),t===1))throw e=Ju,ts(n,0),qi(n,r),jr(n,St()),e;switch(n.finishedWork=o,n.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:Qa(n,Vr,fi);break;case 3:if(qi(n,r),(r&130023424)===r&&(t=cC+500-St(),10<t)){if(If(n,0)!==0)break;if(o=n.suspendedLanes,(o&r)!==r){Rr(),n.pingedLanes|=n.suspendedLanes&o;break}n.timeoutHandle=sy(Qa.bind(null,n,Vr,fi),t);break}Qa(n,Vr,fi);break;case 4:if(qi(n,r),(r&4194240)===r)break;for(t=n.eventTimes,o=-1;0<r;){var a=31-lo(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=St()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gk(r/1960))-r,10<r){n.timeoutHandle=sy(Qa.bind(null,n,Vr,fi),r);break}Qa(n,Vr,fi);break;case 5:Qa(n,Vr,fi);break;default:throw Error(k(329))}}}return jr(n,St()),n.callbackNode===e?Bx.bind(null,n):null}function Py(n,t){var e=bu;return n.current.memoizedState.isDehydrated&&(ts(n,t).flags|=256),n=Kf(n,t),n!==2&&(t=Vr,Vr=e,t!==null&&Oy(t)),n}function Oy(n){Vr===null?Vr=n:Vr.push.apply(Vr,n)}function vk(n){for(var t=n;;){if(t.flags&16384){var e=t.updateQueue;if(e!==null&&(e=e.stores,e!==null))for(var r=0;r<e.length;r++){var o=e[r],i=o.getSnapshot;o=o.value;try{if(!co(i(),o))return!1}catch{return!1}}}if(e=t.child,t.subtreeFlags&16384&&e!==null)e.return=t,t=e;else{if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function qi(n,t){for(t&=~uC,t&=~ip,n.suspendedLanes|=t,n.pingedLanes&=~t,n=n.expirationTimes;0<t;){var e=31-lo(t),r=1<<e;n[e]=-1,t&=~r}}function QR(n){if(Pe&6)throw Error(k(327));hl();var t=If(n,0);if(!(t&1))return jr(n,St()),null;var e=Kf(n,t);if(n.tag!==0&&e===2){var r=Zm(n);r!==0&&(t=r,e=Py(n,r))}if(e===1)throw e=Ju,ts(n,0),qi(n,t),jr(n,St()),e;if(e===6)throw Error(k(345));return n.finishedWork=n.current.alternate,n.finishedLanes=t,Qa(n,Vr,fi),jr(n,St()),null}function dC(n,t){var e=Pe;Pe|=1;try{return n(t)}finally{Pe=e,Pe===0&&(Sl=St()+500,tp&&sa())}}function ss(n){Ki!==null&&Ki.tag===0&&!(Pe&6)&&hl();var t=Pe;Pe|=1;var e=Nn.transition,r=ke;try{if(Nn.transition=null,ke=1,n)return n()}finally{ke=r,Nn.transition=e,Pe=t,!(Pe&6)&&sa()}}function fC(){an=ll.current,Ze(ll)}function ts(n,t){n.finishedWork=null,n.finishedLanes=0;var e=n.timeoutHandle;if(e!==-1&&(n.timeoutHandle=-1,qG(e)),Rt!==null)for(e=Rt.return;e!==null;){var r=e;switch(qy(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Mf();break;case 3:Cl(),Ze(Wr),Ze(pr),tC();break;case 5:eC(r);break;case 4:Cl();break;case 13:Ze(ut);break;case 19:Ze(ut);break;case 10:Xy(r.type._context);break;case 22:case 23:fC()}e=e.return}if(Ht=n,Rt=n=ra(n.current,null),$t=an=t,It=0,Ju=null,uC=ip=as=0,Vr=bu=null,Za!==null){for(t=0;t<Za.length;t++)if(e=Za[t],r=e.interleaved,r!==null){e.interleaved=null;var o=r.next,i=e.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}e.pending=r}Za=null}return n}function Wx(n,t){do{var e=Rt;try{if(Yy(),wf.current=jf,Uf){for(var r=ct.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Uf=!1}if(is=0,kt=Lt=ct=null,Au=!1,Yu=0,lC.current=null,e===null||e.return===null){It=1,Ju=t,Rt=null;break}e:{var i=n,a=e.return,s=e,l=t;if(t=$t,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=kR(a);if(p!==null){p.flags&=-257,HR(p,a,s,i,t),p.mode&1&&GR(i,u,t),t=p,l=u;var h=t.updateQueue;if(h===null){var v=new Set;v.add(l),t.updateQueue=v}else h.add(l);break e}else{if(!(t&1)){GR(i,u,t),pC();break e}l=Error(k(426))}}else if(it&&s.mode&1){var C=kR(a);if(C!==null){!(C.flags&65536)&&(C.flags|=256),HR(C,a,s,i,t),$y(wl(l,s));break e}}i=l=wl(l,s),It!==4&&(It=2),bu===null?bu=[i]:bu.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Tx(i,l,t);DR(i,m);break e;case 1:s=l;var y=i.type,S=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(ea===null||!ea.has(S)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=xx(i,s,t);DR(i,E);break e}}i=i.return}while(i!==null)}zx(e)}catch(R){t=R,Rt===e&&e!==null&&(Rt=e=e.return);continue}break}while(1)}function Ux(){var n=zf.current;return zf.current=jf,n===null?jf:n}function pC(){(It===0||It===3||It===2)&&(It=4),Ht===null||!(as&268435455)&&!(ip&268435455)||qi(Ht,$t)}function Kf(n,t){var e=Pe;Pe|=2;var r=Ux();(Ht!==n||$t!==t)&&(fi=null,ts(n,t));do try{mk();break}catch(o){Wx(n,o)}while(1);if(Yy(),Pe=e,zf.current=r,Rt!==null)throw Error(k(261));return Ht=null,$t=0,It}function mk(){for(;Rt!==null;)jx(Rt)}function yk(){for(;Rt!==null&&!zN();)jx(Rt)}function jx(n){var t=$x(n.alternate,n,an);n.memoizedProps=n.pendingProps,t===null?zx(n):Rt=t,lC.current=null}function zx(n){var t=n;do{var e=t.alternate;if(n=t.return,t.flags&32768){if(e=dk(e,t),e!==null){e.flags&=32767,Rt=e;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{It=6,Rt=null;return}}else if(e=ck(e,t,an),e!==null){Rt=e;return}if(t=t.sibling,t!==null){Rt=t;return}Rt=t=n}while(t!==null);It===0&&(It=5)}function Qa(n,t,e){var r=ke,o=Nn.transition;try{Nn.transition=null,ke=1,Ck(n,t,e,r)}finally{Nn.transition=o,ke=r}return null}function Ck(n,t,e,r){do hl();while(Ki!==null);if(Pe&6)throw Error(k(327));e=n.finishedWork;var o=n.finishedLanes;if(e===null)return null;if(n.finishedWork=null,n.finishedLanes=0,e===n.current)throw Error(k(177));n.callbackNode=null,n.callbackPriority=0;var i=e.lanes|e.childLanes;if(tG(n,i),n===Ht&&(Rt=Ht=null,$t=0),!(e.subtreeFlags&2064)&&!(e.flags&2064)||gf||(gf=!0,Kx(Lf,function(){return hl(),null})),i=(e.flags&15990)!==0,e.subtreeFlags&15990||i){i=Nn.transition,Nn.transition=null;var a=ke;ke=1;var s=Pe;Pe|=4,lC.current=null,pk(n,e),Hx(e,n),BG(iy),Df=!!oy,iy=oy=null,n.current=e,hk(e,n,o),qN(),Pe=s,ke=a,Nn.transition=i}else n.current=e;if(gf&&(gf=!1,Ki=n,$f=o),i=n.pendingLanes,i===0&&(ea=null),YN(e.stateNode,r),jr(n,St()),t!==null)for(r=n.onRecoverableError,e=0;e<t.length;e++)o=t[e],r(o.value,{componentStack:o.stack,digest:o.digest});if(qf)throw qf=!1,n=Ty,Ty=null,n;return $f&1&&n.tag!==0&&hl(),i=n.pendingLanes,i&1?n===xy?Mu++:(Mu=0,xy=n):Mu=0,sa(),null}function hl(){if(Ki!==null){var n=TT($f),t=Nn.transition,e=ke;try{if(Nn.transition=null,ke=16>n?16:n,Ki===null)var r=!1;else{if(n=Ki,Ki=null,$f=0,Pe&6)throw Error(k(331));var o=Pe;for(Pe|=4,j=n.current;j!==null;){var i=j,a=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(j=u;j!==null;){var c=j;switch(c.tag){case 0:case 11:case 15:Fu(8,c,i)}var d=c.child;if(d!==null)d.return=c,j=d;else for(;j!==null;){c=j;var f=c.sibling,p=c.return;if(Nx(c),c===u){j=null;break}if(f!==null){f.return=p,j=f;break}j=p}}}var h=i.alternate;if(h!==null){var v=h.child;if(v!==null){h.child=null;do{var C=v.sibling;v.sibling=null,v=C}while(v!==null)}}j=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,j=a;else e:for(;j!==null;){if(i=j,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Fu(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,j=m;break e}j=i.return}}var y=n.current;for(j=y;j!==null;){a=j;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,j=S;else e:for(a=y;j!==null;){if(s=j,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:op(9,s)}}catch(R){ht(s,s.return,R)}if(s===a){j=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,j=E;break e}j=s.return}}if(Pe=o,sa(),Bo&&typeof Bo.onPostCommitFiberRoot=="function")try{Bo.onPostCommitFiberRoot(Xf,n)}catch{}r=!0}return r}finally{ke=e,Nn.transition=t}}return!1}function JR(n,t,e){t=wl(e,t),t=Tx(n,t,1),n=Zi(n,t,1),t=Rr(),n!==null&&(Zu(n,1,t),jr(n,t))}function ht(n,t,e){if(n.tag===3)JR(n,n,e);else for(;t!==null;){if(t.tag===3){JR(t,n,e);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ea===null||!ea.has(r))){n=wl(e,n),n=xx(t,n,1),t=Zi(t,n,1),n=Rr(),t!==null&&(Zu(t,1,n),jr(t,n));break}}t=t.return}}function wk(n,t,e){var r=n.pingCache;r!==null&&r.delete(t),t=Rr(),n.pingedLanes|=n.suspendedLanes&e,Ht===n&&($t&e)===e&&(It===4||It===3&&($t&130023424)===$t&&500>St()-cC?ts(n,0):uC|=e),jr(n,t)}function qx(n,t){t===0&&(n.mode&1?(t=ef,ef<<=1,!(ef&130023424)&&(ef=4194304)):t=1);var e=Rr();n=Ci(n,t),n!==null&&(Zu(n,t,e),jr(n,e))}function Sk(n){var t=n.memoizedState,e=0;t!==null&&(e=t.retryLane),qx(n,e)}function _k(n,t){var e=0;switch(n.tag){case 13:var r=n.stateNode,o=n.memoizedState;o!==null&&(e=o.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),qx(n,e)}var $x;$x=function(n,t,e){if(n!==null)if(n.memoizedProps!==t.pendingProps||Wr.current)Br=!0;else{if(!(n.lanes&e)&&!(t.flags&128))return Br=!1,uk(n,t,e);Br=!!(n.flags&131072)}else Br=!1,it&&t.flags&1048576&&QT(t,kf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_f(n,t),n=t.pendingProps;var o=vl(t,pr.current);pl(t,e),o=nC(null,t,r,n,o,e);var i=oC();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ur(r)?(i=!0,Nf(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Jy(t),o.updater=np,t.stateNode=o,o._reactInternals=t,hy(t,r,n,e),t=my(null,t,r,!0,i,e)):(t.tag=0,it&&i&&zy(t),Er(null,t,o,e),t=t.child),t;case 16:r=t.elementType;e:{switch(_f(n,t),n=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Rk(r),n=io(r,n),o){case 0:t=vy(null,t,r,n,e);break e;case 1:t=WR(null,t,r,n,e);break e;case 11:t=VR(null,t,r,n,e);break e;case 14:t=BR(null,t,r,io(r.type,n),e);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),vy(n,t,r,o,e);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),WR(n,t,r,o,e);case 3:e:{if(Ix(t),n===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,o=i.element,nx(n,t),Bf(t,r,null,e);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=wl(Error(k(423)),t),t=UR(n,t,r,e,o);break e}else if(r!==o){o=wl(Error(k(424)),t),t=UR(n,t,r,e,o);break e}else for(sn=Ji(t.stateNode.containerInfo.firstChild),ln=t,it=!0,so=null,e=tx(t,null,r,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling;else{if(ml(),r===o){t=wi(n,t,e);break e}Er(n,t,r,e)}t=t.child}return t;case 5:return ox(t),n===null&&dy(t),r=t.type,o=t.pendingProps,i=n!==null?n.memoizedProps:null,a=o.children,ay(r,o)?a=null:i!==null&&ay(r,i)&&(t.flags|=32),Lx(n,t),Er(n,t,a,e),t.child;case 6:return n===null&&dy(t),null;case 13:return Dx(n,t,e);case 4:return Zy(t,t.stateNode.containerInfo),r=t.pendingProps,n===null?t.child=yl(t,null,r,e):Er(n,t,r,e),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),VR(n,t,r,o,e);case 7:return Er(n,t,t.pendingProps,e),t.child;case 8:return Er(n,t,t.pendingProps.children,e),t.child;case 12:return Er(n,t,t.pendingProps.children,e),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,qe(Hf,r._currentValue),r._currentValue=a,i!==null)if(co(i.value,a)){if(i.children===o.children&&!Wr.current){t=wi(n,t,e);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=vi(-1,e&-e),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=e,l=i.alternate,l!==null&&(l.lanes|=e),fy(i.return,e,t),s.lanes|=e;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(k(341));a.lanes|=e,s=a.alternate,s!==null&&(s.lanes|=e),fy(a,e,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Er(n,t,o.children,e),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,pl(t,e),o=Gn(o),r=r(o),t.flags|=1,Er(n,t,r,e),t.child;case 14:return r=t.type,o=io(r,t.pendingProps),o=io(r.type,o),BR(n,t,r,o,e);case 15:return Px(n,t,t.type,t.pendingProps,e);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),_f(n,t),t.tag=1,Ur(r)?(n=!0,Nf(t)):n=!1,pl(t,e),Rx(t,r,o),hy(t,r,o,e),my(null,t,r,!0,n,e);case 19:return Ax(n,t,e);case 22:return Ox(n,t,e)}throw Error(k(156,t.tag))};function Kx(n,t){return ST(n,t)}function Ek(n,t,e,r){this.tag=n,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mn(n,t,e,r){return new Ek(n,t,e,r)}function hC(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Rk(n){if(typeof n=="function")return hC(n)?1:0;if(n!=null){if(n=n.$$typeof,n===Fy)return 11;if(n===by)return 14}return 2}function ra(n,t){var e=n.alternate;return e===null?(e=Mn(n.tag,t,n.key,n.mode),e.elementType=n.elementType,e.type=n.type,e.stateNode=n.stateNode,e.alternate=n,n.alternate=e):(e.pendingProps=t,e.type=n.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=n.flags&14680064,e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},e.sibling=n.sibling,e.index=n.index,e.ref=n.ref,e}function Tf(n,t,e,r,o,i){var a=2;if(r=n,typeof n=="function")hC(n)&&(a=1);else if(typeof n=="string")a=5;else e:switch(n){case Js:return rs(e.children,o,i,t);case Ay:a=8,o|=8;break;case km:return n=Mn(12,e,t,o|2),n.elementType=km,n.lanes=i,n;case Hm:return n=Mn(13,e,t,o),n.elementType=Hm,n.lanes=i,n;case Vm:return n=Mn(19,e,t,o),n.elementType=Vm,n.lanes=i,n;case oT:return ap(e,o,i,t);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case rT:a=10;break e;case nT:a=9;break e;case Fy:a=11;break e;case by:a=14;break e;case Ui:a=16,r=null;break e}throw Error(k(130,n==null?n:typeof n,""))}return t=Mn(a,e,t,o),t.elementType=n,t.type=r,t.lanes=i,t}function rs(n,t,e,r){return n=Mn(7,n,r,t),n.lanes=e,n}function ap(n,t,e,r){return n=Mn(22,n,r,t),n.elementType=oT,n.lanes=e,n.stateNode={isHidden:!1},n}function Mm(n,t,e){return n=Mn(6,n,null,t),n.lanes=e,n}function Nm(n,t,e){return t=Mn(4,n.children!==null?n.children:[],n.key,t),t.lanes=e,t.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},t}function Tk(n,t,e,r,o){this.tag=t,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cm(0),this.expirationTimes=Cm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cm(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function gC(n,t,e,r,o,i,a,s,l){return n=new Tk(n,t,e,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Mn(3,null,null,t),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:e,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jy(i),n}function xk(n,t,e){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qs,key:r==null?null:""+r,children:n,containerInfo:t,implementation:e}}function Yx(n){if(!n)return oa;n=n._reactInternals;e:{if(us(n)!==n||n.tag!==1)throw Error(k(170));var t=n;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ur(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(n.tag===1){var e=n.type;if(Ur(e))return YT(n,e,t)}return t}function Xx(n,t,e,r,o,i,a,s,l){return n=gC(e,r,!0,n,o,i,a,s,l),n.context=Yx(null),e=n.current,r=Rr(),o=ta(e),i=vi(r,o),i.callback=t??null,Zi(e,i,o),n.current.lanes=o,Zu(n,o,r),jr(n,r),n}function sp(n,t,e,r){var o=t.current,i=Rr(),a=ta(o);return e=Yx(e),t.context===null?t.context=e:t.pendingContext=e,t=vi(i,a),t.payload={element:n},r=r===void 0?null:r,r!==null&&(t.callback=r),n=Zi(o,t,a),n!==null&&(uo(n,o,a,i),Cf(n,o,a)),a}function Yf(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function ZR(n,t){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var e=n.retryLane;n.retryLane=e!==0&&e<t?e:t}}function vC(n,t){ZR(n,t),(n=n.alternate)&&ZR(n,t)}function Pk(){return null}var Qx=typeof reportError=="function"?reportError:function(n){console.error(n)};function mC(n){this._internalRoot=n}lp.prototype.render=mC.prototype.render=function(n){var t=this._internalRoot;if(t===null)throw Error(k(409));sp(n,t,null,null)};lp.prototype.unmount=mC.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var t=n.containerInfo;ss(function(){sp(null,n,null,null)}),t[yi]=null}};function lp(n){this._internalRoot=n}lp.prototype.unstable_scheduleHydration=function(n){if(n){var t=OT();n={blockedOn:null,target:n,priority:t};for(var e=0;e<zi.length&&t!==0&&t<zi[e].priority;e++);zi.splice(e,0,n),e===0&&IT(n)}};function yC(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function up(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function eT(){}function Ok(n,t,e,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Yf(a);i.call(u)}}var a=Xx(t,r,n,0,null,!1,!1,"",eT);return n._reactRootContainer=a,n[yi]=a.current,ju(n.nodeType===8?n.parentNode:n),ss(),a}for(;o=n.lastChild;)n.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Yf(l);s.call(u)}}var l=gC(n,0,!1,null,null,!1,!1,"",eT);return n._reactRootContainer=l,n[yi]=l.current,ju(n.nodeType===8?n.parentNode:n),ss(function(){sp(t,l,e,r)}),l}function cp(n,t,e,r,o){var i=e._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=Yf(a);s.call(l)}}sp(t,a,n,o)}else a=Ok(e,t,n,o,r);return Yf(a)}xT=function(n){switch(n.tag){case 3:var t=n.stateNode;if(t.current.memoizedState.isDehydrated){var e=Tu(t.pendingLanes);e!==0&&(Gy(t,e|1),jr(t,St()),!(Pe&6)&&(Sl=St()+500,sa()))}break;case 13:ss(function(){var r=Ci(n,1);if(r!==null){var o=Rr();uo(r,n,1,o)}}),vC(n,1)}};ky=function(n){if(n.tag===13){var t=Ci(n,134217728);if(t!==null){var e=Rr();uo(t,n,134217728,e)}vC(n,134217728)}};PT=function(n){if(n.tag===13){var t=ta(n),e=Ci(n,t);if(e!==null){var r=Rr();uo(e,n,t,r)}vC(n,t)}};OT=function(){return ke};LT=function(n,t){var e=ke;try{return ke=n,t()}finally{ke=e}};Xm=function(n,t,e){switch(t){case"input":if(Um(n,e),t=e.name,e.type==="radio"&&t!=null){for(e=n;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<e.length;t++){var r=e[t];if(r!==n&&r.form===n.form){var o=ep(r);if(!o)throw Error(k(90));aT(r),Um(r,o)}}}break;case"textarea":lT(n,e);break;case"select":t=e.value,t!=null&&ul(n,!!e.multiple,t,!1)}};gT=dC;vT=ss;var Lk={usingClientEntryPoint:!1,Events:[tc,rl,ep,pT,hT,dC]},Su={findFiberByHostInstance:Ja,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ik={bundleType:Su.bundleType,version:Su.version,rendererPackageName:Su.rendererPackageName,rendererConfig:Su.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Si.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=CT(n),n===null?null:n.stateNode},findFiberByHostInstance:Su.findFiberByHostInstance||Pk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(_u=__REACT_DEVTOOLS_GLOBAL_HOOK__,!_u.isDisabled&&_u.supportsFiber))try{Xf=_u.inject(Ik),Bo=_u}catch{}var _u;dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lk;dn.createPortal=function(n,t){var e=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yC(t))throw Error(k(200));return xk(n,t,null,e)};dn.createRoot=function(n,t){if(!yC(n))throw Error(k(299));var e=!1,r="",o=Qx;return t!=null&&(t.unstable_strictMode===!0&&(e=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=gC(n,1,!1,null,null,e,!1,r,o),n[yi]=t.current,ju(n.nodeType===8?n.parentNode:n),new mC(t)};dn.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var t=n._reactInternals;if(t===void 0)throw typeof n.render=="function"?Error(k(188)):(n=Object.keys(n).join(","),Error(k(268,n)));return n=CT(t),n=n===null?null:n.stateNode,n};dn.flushSync=function(n){return ss(n)};dn.hydrate=function(n,t,e){if(!up(t))throw Error(k(200));return cp(null,n,t,!0,e)};dn.hydrateRoot=function(n,t,e){if(!yC(n))throw Error(k(405));var r=e!=null&&e.hydratedSources||null,o=!1,i="",a=Qx;if(e!=null&&(e.unstable_strictMode===!0&&(o=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onRecoverableError!==void 0&&(a=e.onRecoverableError)),t=Xx(t,null,n,1,e??null,o,!1,i,a),n[yi]=t.current,ju(n),r)for(n=0;n<r.length;n++)e=r[n],o=e._getVersion,o=o(e._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[e,o]:t.mutableSourceEagerHydrationData.push(e,o);return new lp(t)};dn.render=function(n,t,e){if(!up(t))throw Error(k(200));return cp(null,n,t,!1,e)};dn.unmountComponentAtNode=function(n){if(!up(n))throw Error(k(40));return n._reactRootContainer?(ss(function(){cp(null,null,n,!1,function(){n._reactRootContainer=null,n[yi]=null})}),!0):!1};dn.unstable_batchedUpdates=dC;dn.unstable_renderSubtreeIntoContainer=function(n,t,e,r){if(!up(e))throw Error(k(200));if(n==null||n._reactInternals===void 0)throw Error(k(38));return cp(n,t,e,!1,r)};dn.version="18.3.1-next-f1338f8080-20240426"});var Rl=z((g8,eP)=>{"use strict";function Zx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zx)}catch(n){console.error(n)}}Zx(),eP.exports=Jx()});var wC=z(CC=>{"use strict";var tP=Rl();CC.createRoot=tP.createRoot,CC.hydrateRoot=tP.hydrateRoot;var v8});var Dk,rP,nP=de(()=>{Dk={common:{settings:"Settings",overview:{title:"Toolkit Management",description:"Welcome to the toolkit, check out the <a href='https://docs.ravenhogwarts.top/obsidian-ravenhogwarts-toolkit/' target='_blank'>wiki documentation</a> to learn more about its features",version_hint:"Continue clicking..."},general:{title:"General Settings",menu:{useSubMenu:"Use Submenu"}},toolkit:{title:"Tool Settings",description:"If errors occur after enabling/disabling tools, try restarting Obsidian to resolve them"},developer:{title:"Developer Settings",description:"Developer mode will be turned off when leaving the page, and needs to be re-enabled",logger:{level:"Log Level",showTimestamp:"Show Timestamp in Logs",showLevel:"Show Level in Logs",console:"Output Logs to Console",showNotifications:"Show Notifications",noticeTimeout:"Notification Timeout (ms)"}},back:"Back",toggle_toolkit:"Enable/Disable Toolkit",confirm:"Confirm",cancel:"Cancel"},notice:{update_success:"Plugin updated to version {{latestVersion}}, please restart Obsidian",downloading_file:"Downloading file: {{fileName}}",installing_update:"Installing update...",no_update_needed:"No updates available",checking_update:"Checking for updates...",update_completed:"Update completed",update_error:"Update failed"},toolkit:{tableEnhancements:{title:"Table Enhancements",description:"Better utilize markdown tables",editor_menu:{table_enhancements:"Table Enhancement Editor"},file_menu:{table_enhancements:"Table Enhancement Editor"},command:{table_enhancements:"Table Enhancement Editor"},formula:{output_type:"Output Type",output_value:"Output Value",add_calculation:"Add Formula Calculation",execute_all:"Execute All Formulas in Current Table",cancel:"Cancel",update:"Update",add:"Add",hide_calculator:"Hide Formula Editor",show_calculator:"Show Formula Editor",edit_calculation:"Edit Formula",remove_calculation:"Delete Formula",execute_calculation:"Execute Formula",edit_table:"Edit Table",save_changes:"Save Changes",no_table_data:"No table data"},formula_editor:{math:{COUNT:"Count items in selected column",count_modifier:"Count type",SUM:"Calculate sum of values in selected column",AVERAGE:"Calculate average of values in selected column",MIN:"Find minimum value in selected column",MAX:"Find maximum value in selected column",MEDIAN:"Calculate median of values in selected column",MODE:"Calculate mode of values in selected column",STDDEV:"Calculate standard deviation of values in selected column",VARIANCE:"Calculate variance of values in selected column"},time:{TIME_EARLIEST:"Find earliest date in selected column",TIME_LATEST:"Find latest date in selected column",TIME_SPAN:"Calculate date span in selected column",time_format:"Date format",time_unit:"Time unit"},table_columns:"Table Columns",input_placeholder:"Select a function or start typing...",function_name:"Formula Function",hint_syntax:"Syntax",hint_example:"Example",hint_parameters:"Parameters",parameter_optional:"Optional",parameter_options:"Options",insert_option:"Insert"}},quickPath:{title:"Quick Path",description:"Quickly get the path of specified files/folders",editor_menu:{paste_filePath:"Paste File Path",paste_folderPath:"Paste Folder Path"},file_menu:{copy_filePath:"Copy File Path",copy_folderPath:"Copy Folder Path",copy_filesPath:"Copy File Paths (Multiple Files)"},command:{copy_filePath:"Copy File Path",copy_folderPath:"Copy Folder Path"},status:{copy_success:"Path copied to clipboard",copy_failed:"Copy failed",no_parent_path:"Root directory files have no parent directory"},settings:{addEditorMenu:{title:"Add Editor Menu",description:"Add option to paste current file path in editor menu"},addFileMenu:{title:"Add File List Menu",description:"Add option to copy file/folder path in file list menu"},absolutePath:{title:"Absolute Path",description:"Use absolute path, starting from operating system root directory"},separator:{title:"Separator",description:"Separator for multiple paths",newline:"Newline",comma:"Comma",semicolon:"Semicolon",space:"Space"}}},folderTemplates:{title:"Folder Templates",description:"Automatically apply templates when creating new files in specified folders",settings:{templatesFolderPath:{title:"Templates Folder Path",description:"Path to the folder where template files are stored, defaults to the official template location",placeholder:"Please enable core Templates plugin",enablePlugin:"Please enable core Templates plugin"},ignoredFolders:{title:"Ignored Folders",description:"Files created in these folders will not automatically apply templates. Supports subdirectories.",placeholder:"Add folders to ignore template application"},templateManagement:{title:"Template Configuration",addTemplate:"Add Template",editTemplate:"Edit Template",deleteTemplate:"Delete",saveTemplate:"Save",cancel:"Cancel",emptyState:'No templates configured yet. Click "Add Template" to get started.',enablePluginFirst:"Please enable core Templates plugin first"},templateForm:{title:"Template Configuration",targetFolder:"Target Folder",templateFile:"Template File",fileNameRule:"File Name Rule",fileNameRulePlaceholder:"e.g.: {{date}}-{{title}}",addNewTemplate:"Add New Template",editTemplateConfig:"Edit Template Configuration",noTemplateSelected:"No template selected",optional:"(Optional)",targetFolderPlaceholder:"Select or enter folder path",templateFilePlaceholder:"Select template file"},actions:{edit:"Edit",delete:"Delete",save:"Save",cancel:"Cancel"},emptyState:{title:"No templates configured",description:'Click the "Add Template" button above to get started'}}}}},rP=Dk});var Ak,oP,iP=de(()=>{Ak={common:{settings:"\u8BBE\u7F6E",overview:{title:"\u5DE5\u5177\u5305\u7BA1\u7406",description:"\u8FD9\u662F\u4E00\u4E2A\u529F\u80FD\u4E30\u5BCC\u7684\u5DE5\u5177\u5305\uFF0C\u67E5\u770B<a href='https://docs.ravenhogwarts.top/obsidian-ravenhogwarts-toolkit/' target='_blank'>wiki\u6587\u6863</a>\u4E86\u89E3\u66F4\u591A\u529F\u80FD",version_hint:"\u7EE7\u7EED\u70B9\u51FB..."},general:{title:"\u5E38\u89C4\u8BBE\u7F6E",menu:{useSubMenu:"\u4F7F\u7528\u5B50\u83DC\u5355"}},toolkit:{title:"\u5DE5\u5177\u8BBE\u7F6E",description:"\u5DE5\u5177\u542F\u7528/\u7981\u6B62\u540E\u53D1\u751F\u62A5\u9519\uFF0C\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u542Fobsidian\u89E3\u51B3"},developer:{title:"\u5F00\u53D1\u8005\u8BBE\u7F6E",description:"\u79BB\u5F00\u9875\u9762\uFF0C\u5C06\u5173\u95ED\u5F00\u53D1\u8005\u6A21\u5F0F\uFF0C\u9700\u8981\u91CD\u65B0\u542F\u7528",logger:{level:"\u65E5\u5FD7\u7EA7\u522B",showTimestamp:"\u65E5\u5FD7\u663E\u793A\u65F6\u95F4\u6233",showLevel:"\u65E5\u5FD7\u663E\u793A\u7EA7\u522B",console:"\u65E5\u5FD7\u8F93\u51FA\u5230\u63A7\u5236\u53F0",showNotifications:"\u663E\u793A\u901A\u77E5",noticeTimeout:"\u901A\u77E5\u6D88\u5931\u65F6\u95F4(ms)"}},back:"\u8FD4\u56DE",toggle_toolkit:"\u542F\u7528/\u7981\u7528\u5DE5\u5177\u5305",confirm:"\u786E\u8BA4",cancel:"\u53D6\u6D88"},notice:{update_success:"\u63D2\u4EF6\u66F4\u65B0\u5230 {{latestVersion}} \u7248\u672C\uFF0C\u8BF7\u91CD\u542F Obsidian",downloading_file:"\u6B63\u5728\u4E0B\u8F7D\u6587\u4EF6: {{fileName}}",installing_update:"\u6B63\u5728\u5B89\u88C5\u66F4\u65B0...",no_update_needed:"\u65E0\u53EF\u7528\u66F4\u65B0",checking_update:"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0...",update_completed:"\u66F4\u65B0\u5B8C\u6210",update_error:"\u66F4\u65B0\u5931\u8D25"},toolkit:{tableEnhancements:{title:"\u8868\u683C\u589E\u5F3A",description:"\u66F4\u597D\u7684\u5229\u7528markdown\u8868\u683C",editor_menu:{table_enhancements:"\u8868\u683C\u589E\u5F3A\u7F16\u8F91"},file_menu:{table_enhancements:"\u8868\u683C\u589E\u5F3A\u7F16\u8F91"},command:{table_enhancements:"\u8868\u683C\u589E\u5F3A\u7F16\u8F91"},formula:{output_type:"\u8F93\u51FA\u7C7B\u578B",output_value:"\u8F93\u51FA\u503C",add_calculation:"\u6DFB\u52A0\u516C\u5F0F\u8BA1\u7B97",execute_all:"\u6267\u884C\u5F53\u524D\u8868\u683C\u6240\u6709\u516C\u5F0F",cancel:"\u53D6\u6D88",update:"\u66F4\u65B0",add:"\u6DFB\u52A0",hide_calculator:"\u9690\u85CF\u516C\u5F0F\u7F16\u8F91",show_calculator:"\u663E\u793A\u516C\u5F0F\u7F16\u8F91",edit_calculation:"\u7F16\u8F91\u516C\u5F0F",remove_calculation:"\u5220\u9664\u516C\u5F0F",execute_calculation:"\u6267\u884C\u516C\u5F0F",edit_table:"\u7F16\u8F91\u8868\u683C",save_changes:"\u4FDD\u5B58\u66F4\u6539",no_table_data:"\u6CA1\u6709\u8868\u683C\u6570\u636E"},formula_editor:{math:{COUNT:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6570\u91CF",count_modifier:"\u8BA1\u6570\u7C7B\u578B",SUM:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6570\u503C\u603B\u548C",AVERAGE:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6570\u503C\u5E73\u5747\u503C",MIN:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6570\u503C\u6700\u5C0F\u503C",MAX:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6570\u503C\u6700\u5927\u503C",MEDIAN:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6570\u503C\u4E2D\u4F4D\u6570",MODE:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6570\u503C\u4F17\u6570",STDDEV:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6570\u503C\u6807\u51C6\u5DEE",VARIANCE:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6570\u503C\u65B9\u5DEE"},time:{TIME_EARLIEST:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6700\u65E9\u65E5\u671F",TIME_LATEST:"\u8BA1\u7B97\u9009\u5B9A\u5217\u6700\u665A\u65E5\u671F",TIME_SPAN:"\u8BA1\u7B97\u9009\u5B9A\u5217\u65E5\u671F\u8DE8\u5EA6",time_format:"\u65E5\u671F\u683C\u5F0F",time_unit:"\u65F6\u95F4\u5355\u4F4D"},table_columns:"\u8868\u683C\u5217",input_placeholder:"\u9009\u62E9\u4E00\u4E2A\u51FD\u6570\u6216\u5F00\u59CB\u8F93\u5165...",function_name:"\u516C\u5F0F\u51FD\u6570",hint_syntax:"\u8BED\u6CD5",hint_example:"\u793A\u4F8B",hint_parameters:"\u53C2\u6570",parameter_optional:"\u53EF\u9009",parameter_options:"\u9009\u9879",insert_option:"\u63D2\u5165"}},quickPath:{title:"\u5FEB\u901F\u8DEF\u5F84",description:"\u5FEB\u901F\u83B7\u53D6\u6307\u5B9A\u6587\u4EF6/\u6587\u4EF6\u5939\u7684\u8DEF\u5F84",editor_menu:{paste_filePath:"\u7C98\u8D34\u6587\u4EF6\u8DEF\u5F84",paste_folderPath:"\u7C98\u8D34\u6587\u4EF6\u5939\u8DEF\u5F84"},file_menu:{copy_filePath:"\u590D\u5236\u6587\u4EF6\u8DEF\u5F84",copy_folderPath:"\u590D\u5236\u6587\u4EF6\u5939\u8DEF\u5F84",copy_filesPath:"\u590D\u5236\u6587\u4EF6\u8DEF\u5F84(\u591A\u6587\u4EF6)"},command:{copy_filePath:"\u590D\u5236\u6587\u4EF6\u8DEF\u5F84",copy_folderPath:"\u590D\u5236\u6587\u4EF6\u5939\u8DEF\u5F84"},status:{copy_success:"\u8DEF\u5F84\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",copy_failed:"\u590D\u5236\u5931\u8D25",no_parent_path:"\u6839\u76EE\u5F55\u6587\u4EF6\u6CA1\u6709\u7236\u76EE\u5F55"},settings:{addEditorMenu:{title:"\u6DFB\u52A0\u7F16\u8F91\u5668\u83DC\u5355",description:"\u5728\u7F16\u8F91\u5668\u83DC\u5355\u4E2D\u6DFB\u52A0\u7C98\u8D34\u5F53\u524D\u6587\u4EF6\u8DEF\u5F84\u7684\u9009\u9879"},addFileMenu:{title:"\u6DFB\u52A0\u6587\u4EF6\u5217\u8868\u83DC\u5355",description:"\u5728\u6587\u4EF6\u5217\u8868\u83DC\u5355\u4E2D\u6DFB\u52A0\u590D\u5236\u6587\u4EF6/\u6587\u4EF6\u5939\u8DEF\u5F84\u7684\u9009\u9879"},absolutePath:{title:"\u7EDD\u5BF9\u8DEF\u5F84",description:"\u4F7F\u7528\u7EDD\u5BF9\u8DEF\u5F84\uFF0C\u5373\u4ECE\u64CD\u4F5C\u7CFB\u7EDF\u6839\u76EE\u5F55\u5F00\u59CB\u7684\u8DEF\u5F84"},separator:{title:"\u5206\u9694\u7B26",description:"\u591A\u4E2A\u8DEF\u5F84\u7684\u5206\u9694\u7B26",newline:"\u6362\u884C",comma:"\u9017\u53F7",semicolon:"\u5206\u53F7",space:"\u7A7A\u683C"}}},folderTemplates:{title:"\u6587\u4EF6\u5939\u6A21\u677F",description:"\u5728\u6307\u5B9A\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA\u65B0\u6587\u4EF6\u65F6\uFF0C\u65E0\u611F\u77E5\u5E94\u7528\u6A21\u677F",settings:{templatesFolderPath:{title:"\u6A21\u677F\u6587\u4EF6\u5939\u8DEF\u5F84",description:"\u5B58\u653E\u6A21\u677F\u6587\u4EF6\u7684\u6587\u4EF6\u5939\u8DEF\u5F84, \u9ED8\u8BA4\u4E0E\u5B98\u65B9\u6A21\u677F\u4F4D\u7F6E\u76F8\u540C",placeholder:"\u8BF7\u542F\u7528\u6838\u5FC3\u6A21\u677F\u63D2\u4EF6",enablePlugin:"\u8BF7\u542F\u7528\u6838\u5FC3\u6A21\u677F\u63D2\u4EF6"},ignoredFolders:{title:"\u5FFD\u7565\u6587\u4EF6\u5939",description:"\u5728\u8FD9\u4E9B\u6587\u4EF6\u5939\u4E2D\u521B\u5EFA\u6587\u4EF6\u65F6\u4E0D\u4F1A\u81EA\u52A8\u5E94\u7528\u6A21\u677F\uFF0C\u652F\u6301\u5B50\u6587\u4EF6\u5939",placeholder:"\u6DFB\u52A0\u8981\u5FFD\u7565\u6A21\u677F\u5E94\u7528\u7684\u6587\u4EF6\u5939"},templateManagement:{title:"\u6A21\u677F\u914D\u7F6E",addTemplate:"\u6DFB\u52A0\u6A21\u677F",editTemplate:"\u7F16\u8F91\u6A21\u677F",deleteTemplate:"\u5220\u9664",saveTemplate:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",emptyState:'\u8FD8\u6CA1\u6709\u914D\u7F6E\u4EFB\u4F55\u6A21\u677F\u3002\u70B9\u51FB"\u6DFB\u52A0\u6A21\u677F"\u5F00\u59CB\u914D\u7F6E\u3002',enablePluginFirst:"\u8BF7\u5148\u542F\u7528\u6838\u5FC3\u6A21\u677F\u63D2\u4EF6"},templateForm:{title:"\u6A21\u677F\u914D\u7F6E",targetFolder:"\u76EE\u6807\u6587\u4EF6\u5939",templateFile:"\u6A21\u677F\u6587\u4EF6",fileNameRule:"\u6587\u4EF6\u540D\u89C4\u5219",fileNameRulePlaceholder:"\u4F8B\u5982: {{date}}-{{title}}",addNewTemplate:"\u6DFB\u52A0\u65B0\u6A21\u677F",editTemplateConfig:"\u7F16\u8F91\u6A21\u677F\u914D\u7F6E",noTemplateSelected:"\u672A\u9009\u62E9\u6A21\u677F",optional:"\uFF08\u53EF\u9009\uFF09",targetFolderPlaceholder:"\u9009\u62E9\u6216\u8F93\u5165\u6587\u4EF6\u5939\u8DEF\u5F84",templateFilePlaceholder:"\u9009\u62E9\u6A21\u677F\u6587\u4EF6"},actions:{edit:"\u7F16\u8F91",delete:"\u5220\u9664",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88"},emptyState:{title:"\u6682\u65E0\u6A21\u677F\u914D\u7F6E",description:"\u70B9\u51FB\u4E0A\u65B9\u300C\u6DFB\u52A0\u6A21\u677F\u300D\u6309\u94AE\u5F00\u59CB\u914D\u7F6E"}}}}},oP=Ak});var Fk,aP,sP=de(()=>{Fk={common:{settings:"\u8A2D\u7F6E",overview:{title:"\u5DE5\u5177\u5305\u7BA1\u7406",description:"\u9019\u662F\u4E00\u500B\u529F\u80FD\u8C50\u5BCC\u7684\u5DE5\u5177\u5305\uFF0C\u67E5\u770B<a href='https://docs.ravenhogwarts.top/obsidian-ravenhogwarts-toolkit/' target='_blank'>wiki\u6587\u6A94</a>\u4E86\u89E3\u66F4\u591A\u529F\u80FD",version_hint:"\u7E7C\u7E8C\u9EDE\u64CA..."},general:{title:"\u5E38\u898F\u8A2D\u7F6E",menu:{useSubMenu:"\u4F7F\u7528\u5B50\u9078\u55AE"}},toolkit:{title:"\u5DE5\u5177\u8A2D\u7F6E",description:"\u5DE5\u5177\u555F\u7528/\u7981\u6B62\u5F8C\u767C\u751F\u5831\u932F\uFF0C\u53EF\u4EE5\u5617\u8A66\u91CD\u555Fobsidian\u89E3\u6C7A"},developer:{title:"\u958B\u767C\u8005\u8A2D\u7F6E",description:"\u96E2\u958B\u9801\u9762\uFF0C\u5C07\u95DC\u9589\u958B\u767C\u8005\u6A21\u5F0F\uFF0C\u9700\u8981\u91CD\u65B0\u555F\u7528",logger:{level:"\u65E5\u8A8C\u7D1A\u5225",showTimestamp:"\u65E5\u8A8C\u986F\u793A\u6642\u9593\u6233",showLevel:"\u65E5\u8A8C\u986F\u793A\u7D1A\u5225",console:"\u65E5\u8A8C\u8F38\u51FA\u5230\u63A7\u5236\u53F0",showNotifications:"\u986F\u793A\u901A\u77E5",noticeTimeout:"\u901A\u77E5\u6D88\u5931\u6642\u9593(ms)"}},back:"\u8FD4\u56DE",toggle_toolkit:"\u555F\u7528/\u7981\u7528\u5DE5\u5177\u5305",confirm:"\u78BA\u8A8D",cancel:"\u53D6\u6D88"},notice:{update_success:"\u63D2\u4EF6\u66F4\u65B0\u5230 {{latestVersion}} \u7248\u672C\uFF0C\u8ACB\u91CD\u555F Obsidian",downloading_file:"\u6B63\u5728\u4E0B\u8F09\u6587\u4EF6: {{fileName}}",installing_update:"\u6B63\u5728\u5B89\u88DD\u66F4\u65B0...",no_update_needed:"\u7121\u53EF\u7528\u66F4\u65B0",checking_update:"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0...",update_completed:"\u66F4\u65B0\u5B8C\u6210",update_error:"\u66F4\u65B0\u5931\u6557"},toolkit:{tableEnhancements:{title:"\u8868\u683C\u589E\u5F37",description:"\u66F4\u597D\u7684\u5229\u7528markdown\u8868\u683C",editor_menu:{table_enhancements:"\u8868\u683C\u589E\u5F37\u7DE8\u8F2F"},file_menu:{table_enhancements:"\u8868\u683C\u589E\u5F37\u7DE8\u8F2F"},command:{table_enhancements:"\u8868\u683C\u589E\u5F37\u7DE8\u8F2F"},formula:{output_type:"\u8F38\u51FA\u985E\u578B",output_value:"\u8F38\u51FA\u503C",add_calculation:"\u6DFB\u52A0\u516C\u5F0F\u8A08\u7B97",execute_all:"\u57F7\u884C\u7576\u524D\u8868\u683C\u6240\u6709\u516C\u5F0F",cancel:"\u53D6\u6D88",update:"\u66F4\u65B0",add:"\u6DFB\u52A0",hide_calculator:"\u96B1\u85CF\u516C\u5F0F\u7DE8\u8F2F",show_calculator:"\u986F\u793A\u516C\u5F0F\u7DE8\u8F2F",edit_calculation:"\u7DE8\u8F2F\u516C\u5F0F",remove_calculation:"\u522A\u9664\u516C\u5F0F",execute_calculation:"\u57F7\u884C\u516C\u5F0F",edit_table:"\u7DE8\u8F2F\u8868\u683C",save_changes:"\u4FDD\u5B58\u66F4\u6539",no_table_data:"\u6C92\u6709\u8868\u683C\u6578\u64DA"},formula_editor:{math:{COUNT:"\u8A08\u7B97\u9078\u5B9A\u5217\u6578\u91CF",count_modifier:"\u8A08\u6578\u985E\u578B",SUM:"\u8A08\u7B97\u9078\u5B9A\u5217\u6578\u503C\u7E3D\u548C",AVERAGE:"\u8A08\u7B97\u9078\u5B9A\u5217\u6578\u503C\u5E73\u5747\u503C",MIN:"\u8A08\u7B97\u9078\u5B9A\u5217\u6578\u503C\u6700\u5C0F\u503C",MAX:"\u8A08\u7B97\u9078\u5B9A\u5217\u6578\u503C\u6700\u5927\u503C",MEDIAN:"\u8A08\u7B97\u9078\u5B9A\u5217\u6578\u503C\u4E2D\u4F4D\u6578",MODE:"\u8A08\u7B97\u9078\u5B9A\u5217\u6578\u503C\u773E\u6578",STDDEV:"\u8A08\u7B97\u9078\u5B9A\u5217\u6578\u503C\u6A19\u6E96\u5DEE",VARIANCE:"\u8A08\u7B97\u9078\u5B9A\u5217\u6578\u503C\u65B9\u5DEE"},time:{TIME_EARLIEST:"\u8A08\u7B97\u9078\u5B9A\u5217\u6700\u65E9\u65E5\u671F",TIME_LATEST:"\u8A08\u7B97\u9078\u5B9A\u5217\u6700\u665A\u65E5\u671F",TIME_SPAN:"\u8A08\u7B97\u9078\u5B9A\u5217\u65E5\u671F\u8DE8\u5EA6",time_format:"\u65E5\u671F\u683C\u5F0F",time_unit:"\u6642\u9593\u55AE\u4F4D"},table_columns:"\u8868\u683C\u5217",input_placeholder:"\u9078\u64C7\u4E00\u500B\u51FD\u6578\u6216\u958B\u59CB\u8F38\u5165...",function_name:"\u516C\u5F0F\u51FD\u6578",hint_syntax:"\u8A9E\u6CD5",hint_example:"\u793A\u4F8B",hint_parameters:"\u53C3\u6578",parameter_optional:"\u53EF\u9078",parameter_options:"\u9078\u9805",insert_option:"\u63D2\u5165"}},quickPath:{title:"\u5FEB\u901F\u8DEF\u5F91",description:"\u5FEB\u901F\u7372\u53D6\u6307\u5B9A\u6587\u4EF6/\u6587\u4EF6\u593E\u7684\u8DEF\u5F91",editor_menu:{paste_filePath:"\u7C98\u8CBC\u6587\u4EF6\u8DEF\u5F91",paste_folderPath:"\u7C98\u8CBC\u6587\u4EF6\u593E\u8DEF\u5F91"},file_menu:{copy_filePath:"\u8907\u88FD\u6587\u4EF6\u8DEF\u5F91",copy_folderPath:"\u8907\u88FD\u6587\u4EF6\u593E\u8DEF\u5F91",copy_filesPath:"\u8907\u88FD\u6587\u4EF6\u8DEF\u5F91(\u591A\u6587\u4EF6)"},command:{copy_filePath:"\u8907\u88FD\u6587\u4EF6\u8DEF\u5F91",copy_folderPath:"\u8907\u88FD\u6587\u4EF6\u593E\u8DEF\u5F91"},status:{copy_success:"\u8DEF\u5F91\u5DF2\u8907\u88FD\u5230\u526A\u8CBC\u677F",copy_failed:"\u8907\u88FD\u5931\u6557",no_parent_path:"\u6839\u76EE\u9304\u6587\u4EF6\u6C92\u6709\u7236\u76EE\u9304"},settings:{addEditorMenu:{title:"\u6DFB\u52A0\u7DE8\u8F2F\u5668\u83DC\u55AE",description:"\u5728\u7DE8\u8F2F\u5668\u83DC\u55AE\u4E2D\u6DFB\u52A0\u7C98\u8CBC\u7576\u524D\u6587\u4EF6\u8DEF\u5F91\u7684\u9078\u9805"},addFileMenu:{title:"\u6DFB\u52A0\u6587\u4EF6\u5217\u8868\u83DC\u55AE",description:"\u5728\u6587\u4EF6\u5217\u8868\u83DC\u55AE\u4E2D\u6DFB\u52A0\u8907\u88FD\u6587\u4EF6/\u6587\u4EF6\u593E\u8DEF\u5F91\u7684\u9078\u9805"},absolutePath:{title:"\u7D55\u5C0D\u8DEF\u5F91",description:"\u4F7F\u7528\u7D55\u5C0D\u8DEF\u5F91\uFF0C\u5373\u5F9E\u64CD\u4F5C\u7CFB\u7D71\u6839\u76EE\u9304\u958B\u59CB\u7684\u8DEF\u5F91"},separator:{title:"\u5206\u9694\u7B26",description:"\u591A\u500B\u8DEF\u5F91\u7684\u5206\u9694\u7B26",newline:"\u63DB\u884C",comma:"\u9017\u865F",semicolon:"\u5206\u865F",space:"\u7A7A\u683C"}}},folderTemplates:{title:"\u6587\u4EF6\u593E\u6A21\u677F",description:"\u5728\u6307\u5B9A\u6587\u4EF6\u593E\u4E0B\u5275\u5EFA\u65B0\u6587\u4EF6\u6642\uFF0C\u7121\u611F\u77E5\u61C9\u7528\u6A21\u677F",settings:{templatesFolderPath:{title:"\u6A21\u677F\u6587\u4EF6\u593E\u8DEF\u5F91",description:"\u5B58\u653E\u6A21\u677F\u6587\u4EF6\u7684\u6587\u4EF6\u593E\u8DEF\u5F91, \u9ED8\u8A8D\u8207\u5B98\u65B9\u6A21\u677F\u4F4D\u7F6E\u76F8\u540C",placeholder:"\u8ACB\u555F\u7528\u6838\u5FC3\u6A21\u677F\u63D2\u4EF6",enablePlugin:"\u8ACB\u555F\u7528\u6838\u5FC3\u6A21\u677F\u63D2\u4EF6"},ignoredFolders:{title:"\u5FFD\u7565\u6587\u4EF6\u593E",description:"\u5728\u9019\u4E9B\u6587\u4EF6\u593E\u4E2D\u5275\u5EFA\u6587\u4EF6\u6642\u4E0D\u6703\u81EA\u52D5\u61C9\u7528\u6A21\u677F\uFF0C\u652F\u6301\u5B50\u6587\u4EF6\u593E",placeholder:"\u6DFB\u52A0\u8981\u5FFD\u7565\u6A21\u677F\u61C9\u7528\u7684\u6587\u4EF6\u593E"},templateManagement:{title:"\u6A21\u677F\u914D\u7F6E",addTemplate:"\u6DFB\u52A0\u6A21\u677F",editTemplate:"\u7DE8\u8F2F\u6A21\u677F",deleteTemplate:"\u522A\u9664",saveTemplate:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",emptyState:'\u9084\u6C92\u6709\u914D\u7F6E\u4EFB\u4F55\u6A21\u677F\u3002\u9EDE\u64CA"\u6DFB\u52A0\u6A21\u677F"\u958B\u59CB\u914D\u7F6E\u3002',enablePluginFirst:"\u8ACB\u5148\u555F\u7528\u6838\u5FC3\u6A21\u677F\u63D2\u4EF6"},templateForm:{title:"\u6A21\u677F\u914D\u7F6E",targetFolder:"\u76EE\u6A19\u6587\u4EF6\u593E",templateFile:"\u6A21\u677F\u6587\u4EF6",fileNameRule:"\u6587\u4EF6\u540D\u898F\u5247",fileNameRulePlaceholder:"\u4F8B\u5982: {{date}}-{{title}}",addNewTemplate:"\u6DFB\u52A0\u65B0\u6A21\u677F",editTemplateConfig:"\u7DE8\u8F2F\u6A21\u677F\u914D\u7F6E",noTemplateSelected:"\u672A\u9078\u64C7\u6A21\u677F",optional:"\uFF08\u53EF\u9078\uFF09",targetFolderPlaceholder:"\u9078\u64C7\u6216\u8F38\u5165\u6587\u4EF6\u593E\u8DEF\u5F91",templateFilePlaceholder:"\u9078\u64C7\u6A21\u677F\u6587\u4EF6"},actions:{edit:"\u7DE8\u8F2F",delete:"\u522A\u9664",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88"},emptyState:{title:"\u66AB\u7121\u6A21\u677F\u914D\u7F6E",description:"\u9EDE\u64CA\u4E0A\u65B9\u300C\u6DFB\u52A0\u6A21\u677F\u300D\u6309\u9215\u958B\u59CB\u914D\u7F6E"}}}}},aP=Fk});var lP,uP=de(()=>{nP();iP();sP();lP={en:rP,zh:oP,"zh-TW":aP}});var cP,la,bk,A,fn=de(()=>{di();cP=require("obsidian");uP();la=class{constructor(){this.translations=lP;this.flatTranslations={};let t=(0,cP.getLanguage)();this.currentLocale=this.translations[t]?t:"en",this.flattenTranslations()}static getInstance(){return la.instance||(la.instance=new la),la.instance}flattenTranslations(){for(let[t,e]of Object.entries(this.translations))this.flatTranslations[t]=this.flattenObject(e)}flattenObject(t,e=""){return Object.keys(t).reduce((r,o)=>{let i=e.length?e+".":"";return typeof t[o]=="object"?Object.assign(r,this.flattenObject(t[o],i+o)):r[i+o]=t[o],r},{})}t(t,e){let r=this.flatTranslations[this.currentLocale][t];return r?e?r.replace(/\{\{([^}]+)\}\}/g,(o,i)=>e[i]!==void 0?String(e[i]):o):r:(Qe.warn(`Translation key not found: ${t}`),t)}setLocale(t){this.translations[t]?(this.currentLocale=t,window.localStorage.setItem("language",t)):(Qe.warn(`Locale not found: ${t}, falling back to 'en'`),this.currentLocale="en",window.localStorage.setItem("language","en"))}getLocale(){return this.currentLocale}hasTranslation(t){return!!this.flatTranslations[this.currentLocale][t]}},bk=la.getInstance(),A=(n,t)=>bk.t(n,t)});var fP=z(dp=>{"use strict";var Mk=te(),Nk=Symbol.for("react.element"),Gk=Symbol.for("react.fragment"),kk=Object.prototype.hasOwnProperty,Hk=Mk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vk={key:!0,ref:!0,__self:!0,__source:!0};function dP(n,t,e){var r,o={},i=null,a=null;e!==void 0&&(i=""+e),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)kk.call(t,r)&&!Vk.hasOwnProperty(r)&&(o[r]=t[r]);if(n&&n.defaultProps)for(r in t=n.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Nk,type:n,key:i,ref:a,props:o,_owner:Hk.current}}dp.Fragment=Gk;dp.jsx=dP;dp.jsxs=dP});var le=z((N8,pP)=>{"use strict";pP.exports=fP()});var vP,pp,SC=de(()=>{vP=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pp=(...n)=>n.filter((t,e,r)=>Boolean(t)&&t.trim()!==""&&r.indexOf(t)===e).join(" ").trim()});var mP,yP=de(()=>{mP={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}});var oc,CP,wP=de(()=>{oc=B(te());yP();SC();CP=(0,oc.forwardRef)(({color:n="currentColor",size:t=24,strokeWidth:e=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>(0,oc.createElement)("svg",{ref:l,...mP,width:t,height:t,stroke:n,strokeWidth:r?Number(e)*24/Number(t):e,className:pp("lucide",o),...s},[...a.map(([u,c])=>(0,oc.createElement)(u,c)),...Array.isArray(i)?i:[i]]))});var hp,Be,xr=de(()=>{hp=B(te());SC();wP();Be=(n,t)=>{let e=(0,hp.forwardRef)(({className:r,...o},i)=>(0,hp.createElement)(CP,{ref:i,iconNode:t,className:pp(`lucide-${vP(n)}`,r),...o}));return e.displayName=`${n}`,e}});var ic,SP=de(()=>{xr();ic=Be("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])});var ac,_P=de(()=>{xr();ac=Be("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])});var cs,EP=de(()=>{xr();cs=Be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])});var ds,RP=de(()=>{xr();ds=Be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])});var jo,TP=de(()=>{xr();jo=Be("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])});var ua,xP=de(()=>{xr();ua=Be("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])});var sc,PP=de(()=>{xr();sc=Be("Equal",[["line",{x1:"5",x2:"19",y1:"9",y2:"9",key:"1nwqeh"}],["line",{x1:"5",x2:"19",y1:"15",y2:"15",key:"g8yjpy"}]])});var ca,OP=de(()=>{xr();ca=Be("FolderCog",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v3.3",key:"1k8050"}],["path",{d:"m21.7 19.4-.9-.3",key:"1qgwi9"}],["path",{d:"m15.2 16.9-.9-.3",key:"1t7mvx"}],["path",{d:"m16.6 21.7.3-.9",key:"1j67ps"}],["path",{d:"m19.1 15.2.3-.9",key:"18r7jp"}],["path",{d:"m19.6 21.7-.4-1",key:"z2vh2"}],["path",{d:"m16.8 15.3-.4-1",key:"1ei7r6"}],["path",{d:"m14.3 19.6 1-.4",key:"11sv9r"}],["path",{d:"m20.7 16.8 1-.4",key:"19m87a"}]])});var lc,LP=de(()=>{xr();lc=Be("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])});var uc,IP=de(()=>{xr();uc=Be("PencilLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]])});var cc,DP=de(()=>{xr();cc=Be("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])});var dc,AP=de(()=>{xr();dc=Be("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])});var fc,FP=de(()=>{xr();fc=Be("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]])});var fs,bP=de(()=>{xr();fs=Be("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])});var _i=de(()=>{TP();xP();OP();SP();_P();EP();RP();PP();LP();IP();DP();AP();FP();bP();});var TC=z(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.Doctype=et.CDATA=et.Tag=et.Style=et.Script=et.Comment=et.Directive=et.Text=et.Root=et.isTag=et.ElementType=void 0;var pn;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(pn=et.ElementType||(et.ElementType={}));function Wk(n){return n.type===pn.Tag||n.type===pn.Script||n.type===pn.Style}et.isTag=Wk;et.Root=pn.Root;et.Text=pn.Text;et.Directive=pn.Directive;et.Comment=pn.Comment;et.Script=pn.Script;et.Style=pn.Style;et.Tag=pn.Tag;et.CDATA=pn.CDATA;et.Doctype=pn.Doctype});var LC=z(he=>{"use strict";var fa=he&&he.__extends||function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hc=he&&he.__assign||function(){return hc=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},hc.apply(this,arguments)};Object.defineProperty(he,"__esModule",{value:!0});he.cloneNode=he.hasChildren=he.isDocument=he.isDirective=he.isComment=he.isText=he.isCDATA=he.isTag=he.Element=he.Document=he.CDATA=he.NodeWithChildren=he.ProcessingInstruction=he.Comment=he.Text=he.DataNode=he.Node=void 0;var zr=TC(),PC=function(){function n(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(n.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),n.prototype.cloneNode=function(t){return t===void 0&&(t=!1),OC(this,t)},n}();he.Node=PC;var wp=function(n){fa(t,n);function t(e){var r=n.call(this)||this;return r.data=e,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(PC);he.DataNode=wp;var $P=function(n){fa(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=zr.ElementType.Text,e}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(wp);he.Text=$P;var KP=function(n){fa(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=zr.ElementType.Comment,e}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(wp);he.Comment=KP;var YP=function(n){fa(t,n);function t(e,r){var o=n.call(this,r)||this;return o.name=e,o.type=zr.ElementType.Directive,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(wp);he.ProcessingInstruction=YP;var Sp=function(n){fa(t,n);function t(e){var r=n.call(this)||this;return r.children=e,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(PC);he.NodeWithChildren=Sp;var XP=function(n){fa(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=zr.ElementType.CDATA,e}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(Sp);he.CDATA=XP;var QP=function(n){fa(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=zr.ElementType.Root,e}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(Sp);he.Document=QP;var JP=function(n){fa(t,n);function t(e,r,o,i){o===void 0&&(o=[]),i===void 0&&(i=e==="script"?zr.ElementType.Script:e==="style"?zr.ElementType.Style:zr.ElementType.Tag);var a=n.call(this,o)||this;return a.name=e,a.attribs=r,a.type=i,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(r){var o,i;return{name:r,value:e.attribs[r],namespace:(o=e["x-attribsNamespace"])===null||o===void 0?void 0:o[r],prefix:(i=e["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(Sp);he.Element=JP;function ZP(n){return(0,zr.isTag)(n)}he.isTag=ZP;function eO(n){return n.type===zr.ElementType.CDATA}he.isCDATA=eO;function tO(n){return n.type===zr.ElementType.Text}he.isText=tO;function rO(n){return n.type===zr.ElementType.Comment}he.isComment=rO;function nO(n){return n.type===zr.ElementType.Directive}he.isDirective=nO;function oO(n){return n.type===zr.ElementType.Root}he.isDocument=oO;function Uk(n){return Object.prototype.hasOwnProperty.call(n,"children")}he.hasChildren=Uk;function OC(n,t){t===void 0&&(t=!1);var e;if(tO(n))e=new $P(n.data);else if(rO(n))e=new KP(n.data);else if(ZP(n)){var r=t?xC(n.children):[],o=new JP(n.name,hc({},n.attribs),r);r.forEach(function(l){return l.parent=o}),n.namespace!=null&&(o.namespace=n.namespace),n["x-attribsNamespace"]&&(o["x-attribsNamespace"]=hc({},n["x-attribsNamespace"])),n["x-attribsPrefix"]&&(o["x-attribsPrefix"]=hc({},n["x-attribsPrefix"])),e=o}else if(eO(n)){var r=t?xC(n.children):[],i=new XP(r);r.forEach(function(u){return u.parent=i}),e=i}else if(oO(n)){var r=t?xC(n.children):[],a=new QP(r);r.forEach(function(u){return u.parent=a}),n["x-mode"]&&(a["x-mode"]=n["x-mode"]),e=a}else if(nO(n)){var s=new YP(n.name,n.data);n["x-name"]!=null&&(s["x-name"]=n["x-name"],s["x-publicId"]=n["x-publicId"],s["x-systemId"]=n["x-systemId"]),e=s}else throw new Error("Not implemented yet: ".concat(n.type));return e.startIndex=n.startIndex,e.endIndex=n.endIndex,n.sourceCodeLocation!=null&&(e.sourceCodeLocation=n.sourceCodeLocation),e}he.cloneNode=OC;function xC(n){for(var t=n.map(function(r){return OC(r,!0)}),e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}});var DC=z($o=>{"use strict";var jk=$o&&$o.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e);var o=Object.getOwnPropertyDescriptor(t,e);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,o)}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),zk=$o&&$o.__exportStar||function(n,t){for(var e in n)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&jk(t,n,e)};Object.defineProperty($o,"__esModule",{value:!0});$o.DomHandler=void 0;var IC=TC(),pa=LC();zk(LC(),$o);var iO={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},aO=function(){function n(t,e,r){this.dom=[],this.root=new pa.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof e=="function"&&(r=e,e=iO),typeof t=="object"&&(e=t,t=void 0),this.callback=t??null,this.options=e??iO,this.elementCB=r??null}return n.prototype.onparserinit=function(t){this.parser=t},n.prototype.onreset=function(){this.dom=[],this.root=new pa.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},n.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},n.prototype.onerror=function(t){this.handleCallback(t)},n.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},n.prototype.onopentag=function(t,e){var r=this.options.xmlMode?IC.ElementType.Tag:void 0,o=new pa.Element(t,e,void 0,r);this.addNode(o),this.tagStack.push(o)},n.prototype.ontext=function(t){var e=this.lastNode;if(e&&e.type===IC.ElementType.Text)e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex);else{var r=new pa.Text(t);this.addNode(r),this.lastNode=r}},n.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===IC.ElementType.Comment){this.lastNode.data+=t;return}var e=new pa.Comment(t);this.addNode(e),this.lastNode=e},n.prototype.oncommentend=function(){this.lastNode=null},n.prototype.oncdatastart=function(){var t=new pa.Text(""),e=new pa.CDATA([t]);this.addNode(e),t.parent=e,this.lastNode=t},n.prototype.oncdataend=function(){this.lastNode=null},n.prototype.onprocessinginstruction=function(t,e){var r=new pa.ProcessingInstruction(t,e);this.addNode(r)},n.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},n.prototype.addNode=function(t){var e=this.tagStack[this.tagStack.length-1],r=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),r&&(t.prev=r,r.next=t),t.parent=e,this.lastNode=null},n}();$o.DomHandler=aO;$o.default=aO});var sO=z(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.CARRIAGE_RETURN_PLACEHOLDER_REGEX=Xt.CARRIAGE_RETURN_PLACEHOLDER=Xt.CARRIAGE_RETURN_REGEX=Xt.CARRIAGE_RETURN=Xt.CASE_SENSITIVE_TAG_NAMES_MAP=Xt.CASE_SENSITIVE_TAG_NAMES=void 0;Xt.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];Xt.CASE_SENSITIVE_TAG_NAMES_MAP=Xt.CASE_SENSITIVE_TAG_NAMES.reduce(function(n,t){return n[t.toLowerCase()]=t,n},{});Xt.CARRIAGE_RETURN="\r";Xt.CARRIAGE_RETURN_REGEX=new RegExp(Xt.CARRIAGE_RETURN,"g");Xt.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");Xt.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(Xt.CARRIAGE_RETURN_PLACEHOLDER,"g")});var AC=z(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.formatAttributes=lO;Ll.escapeSpecialCharacters=Kk;Ll.revertEscapedCharacters=uO;Ll.formatDOM=cO;var _p=DC(),gc=sO();function qk(n){return gc.CASE_SENSITIVE_TAG_NAMES_MAP[n]}function lO(n){for(var t={},e=0,r=n.length;e<r;e++){var o=n[e];t[o.name]=o.value}return t}function $k(n){n=n.toLowerCase();var t=qk(n);return t||n}function Kk(n){return n.replace(gc.CARRIAGE_RETURN_REGEX,gc.CARRIAGE_RETURN_PLACEHOLDER)}function uO(n){return n.replace(gc.CARRIAGE_RETURN_PLACEHOLDER_REGEX,gc.CARRIAGE_RETURN)}function cO(n,t,e){t===void 0&&(t=null);for(var r=[],o,i=0,a=n.length;i<a;i++){var s=n[i];switch(s.nodeType){case 1:{var l=$k(s.nodeName);o=new _p.Element(l,lO(s.attributes)),o.children=cO(l==="template"?s.content.childNodes:s.childNodes,o);break}case 3:o=new _p.Text(uO(s.nodeValue));break;case 8:o=new _p.Comment(s.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=o),o.parent=t,o.prev=u,o.next=null,r.push(o)}return e&&(o=new _p.ProcessingInstruction(e.substring(0,e.indexOf(" ")).toLowerCase(),e),o.next=r[0]||null,o.parent=t,r.unshift(o),r[1]&&(r[1].prev=r[0])),r}});var yO=z(MC=>{"use strict";Object.defineProperty(MC,"__esModule",{value:!0});MC.default=Qk;var Yk=AC(),dO="html",fO="head",Ep="body",Xk=/<([a-zA-Z]+[0-9]?)/,pO=/<head[^]*>/i,hO=/<body[^]*>/i,Tp=function(n,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},FC=function(n,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},gO=typeof window=="object"&&window.DOMParser;typeof gO=="function"&&(vO=new gO,mO="text/html",FC=function(n,t){return t&&(n="<".concat(t,">").concat(n,"</").concat(t,">")),vO.parseFromString(n,mO)},Tp=FC);var vO,mO;typeof document=="object"&&document.implementation&&(vc=document.implementation.createHTMLDocument(),Tp=function(n,t){if(t){var e=vc.documentElement.querySelector(t);return e&&(e.innerHTML=n),vc}return vc.documentElement.innerHTML=n,vc});var vc,Rp=typeof document=="object"&&document.createElement("template"),bC;Rp&&Rp.content&&(bC=function(n){return Rp.innerHTML=n,Rp.content.childNodes});function Qk(n){var t,e;n=(0,Yk.escapeSpecialCharacters)(n);var r=n.match(Xk),o=r&&r[1]?r[1].toLowerCase():"";switch(o){case dO:{var i=FC(n);if(!pO.test(n)){var a=i.querySelector(fO);(t=a?.parentNode)===null||t===void 0||t.removeChild(a)}if(!hO.test(n)){var a=i.querySelector(Ep);(e=a?.parentNode)===null||e===void 0||e.removeChild(a)}return i.querySelectorAll(dO)}case fO:case Ep:{var s=Tp(n).querySelectorAll(o);return hO.test(n)&&pO.test(n)?s[0].parentNode.childNodes:s}default:{if(bC)return bC(n);var a=Tp(n,Ep).querySelector(Ep);return a.childNodes}}}});var CO=z(mc=>{"use strict";var Jk=mc&&mc.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(mc,"__esModule",{value:!0});mc.default=r1;var Zk=Jk(yO()),e1=AC(),t1=/<(![a-zA-Z\s]+)>/;function r1(n){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];var t=n.match(t1),e=t?t[1]:void 0;return(0,e1.formatDOM)((0,Zk.default)(n),null,e)}});var wO=z(xp=>{var n1=0;xp.SAME=n1;var o1=1;xp.CAMELCASE=o1;xp.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var _O=z(ho=>{"use strict";function i1(n){return Qt.hasOwnProperty(n)?Qt[n]:null}function Pr(n,t,e,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=e,this.propertyName=n,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Qt={},a1=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];a1.forEach(n=>{Qt[n]=new Pr(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([n,t])=>{Qt[n]=new Pr(n,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(n=>{Qt[n]=new Pr(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(n=>{Qt[n]=new Pr(n,2,!1,n,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(n=>{Qt[n]=new Pr(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(n=>{Qt[n]=new Pr(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(n=>{Qt[n]=new Pr(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(n=>{Qt[n]=new Pr(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(n=>{Qt[n]=new Pr(n,5,!1,n.toLowerCase(),null,!1,!1)});var NC=/[\-\:]([a-z])/g,GC=n=>n[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(n=>{let t=n.replace(NC,GC);Qt[t]=new Pr(t,1,!1,n,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(n=>{let t=n.replace(NC,GC);Qt[t]=new Pr(t,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(n=>{let t=n.replace(NC,GC);Qt[t]=new Pr(t,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(n=>{Qt[n]=new Pr(n,1,!1,n.toLowerCase(),null,!1,!1)});var s1="xlinkHref";Qt[s1]=new Pr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(n=>{Qt[n]=new Pr(n,1,!1,n.toLowerCase(),null,!0,!0)});var{CAMELCASE:l1,SAME:u1,possibleStandardNames:SO}=wO(),c1=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",d1=c1+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",f1=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+d1+"]*$")),p1=Object.keys(SO).reduce((n,t)=>{let e=SO[t];return e===u1?n[t]=t:e===l1?n[t.toLowerCase()]=t:n[t]=e,n},{});ho.BOOLEAN=3;ho.BOOLEANISH_STRING=2;ho.NUMERIC=5;ho.OVERLOADED_BOOLEAN=4;ho.POSITIVE_NUMERIC=6;ho.RESERVED=0;ho.STRING=1;ho.getPropertyInfo=i1;ho.isCustomAttribute=f1;ho.possibleStandardNames=p1});var OO=z((uX,PO)=>{var EO=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,h1=/\n/g,g1=/^\s*/,v1=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,m1=/^:\s*/,y1=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,C1=/^[;\s]*/,w1=/^\s+|\s+$/g,S1=`
`,RO="/",TO="*",ps="",_1="comment",E1="declaration";PO.exports=function(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function o(v){var C=v.match(h1);C&&(e+=C.length);var m=v.lastIndexOf(S1);r=~m?v.length-m:r+v.length}function i(){var v={line:e,column:r};return function(C){return C.position=new a(v),c(),C}}function a(v){this.start=v,this.end={line:e,column:r},this.source=t.source}a.prototype.content=n;var s=[];function l(v){var C=new Error(t.source+":"+e+":"+r+": "+v);if(C.reason=v,C.filename=t.source,C.line=e,C.column=r,C.source=n,t.silent)s.push(C);else throw C}function u(v){var C=v.exec(n);if(C){var m=C[0];return o(m),n=n.slice(m.length),C}}function c(){u(g1)}function d(v){var C;for(v=v||[];C=f();)C!==!1&&v.push(C);return v}function f(){var v=i();if(!(RO!=n.charAt(0)||TO!=n.charAt(1))){for(var C=2;ps!=n.charAt(C)&&(TO!=n.charAt(C)||RO!=n.charAt(C+1));)++C;if(C+=2,ps===n.charAt(C-1))return l("End of comment missing");var m=n.slice(2,C-2);return r+=2,o(m),n=n.slice(C),r+=2,v({type:_1,comment:m})}}function p(){var v=i(),C=u(v1);if(C){if(f(),!u(m1))return l("property missing ':'");var m=u(y1),y=v({type:E1,property:xO(C[0].replace(EO,ps)),value:m?xO(m[0].replace(EO,ps)):ps});return u(C1),y}}function h(){var v=[];d(v);for(var C;C=p();)C!==!1&&(v.push(C),d(v));return v}return c(),h()};function xO(n){return n?n.replace(w1,ps):ps}});var LO=z(yc=>{"use strict";var R1=yc&&yc.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(yc,"__esModule",{value:!0});yc.default=x1;var T1=R1(OO());function x1(n,t){var e=null;if(!n||typeof n!="string")return e;var r=(0,T1.default)(n),o=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var a=i.property,s=i.value;o?t(a,s,i):s&&(e=e||{},e[a]=s)}}),e}});var DO=z(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.camelCase=void 0;var P1=/^--[a-zA-Z0-9_-]+$/,O1=/-([a-z])/g,L1=/^[^-]+$/,I1=/^-(webkit|moz|ms|o|khtml)-/,D1=/^-(ms)-/,A1=function(n){return!n||L1.test(n)||P1.test(n)},F1=function(n,t){return t.toUpperCase()},IO=function(n,t){return"".concat(t,"-")},b1=function(n,t){return t===void 0&&(t={}),A1(n)?n:(n=n.toLowerCase(),t.reactCompat?n=n.replace(D1,IO):n=n.replace(I1,IO),n.replace(O1,F1))};Pp.camelCase=b1});var FO=z((HC,AO)=>{"use strict";var M1=HC&&HC.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},N1=M1(LO()),G1=DO();function kC(n,t){var e={};return!n||typeof n!="string"||(0,N1.default)(n,function(r,o){r&&o&&(e[(0,G1.camelCase)(r,t)]=o)}),e}kC.default=kC;AO.exports=kC});var VC=z(Or=>{"use strict";var k1=Or&&Or.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Or,"__esModule",{value:!0});Or.returnFirstArg=Or.canTextBeChildOfNode=Or.ELEMENTS_WITH_NO_TEXT_CHILDREN=Or.PRESERVE_CUSTOM_ATTRIBUTES=void 0;Or.isCustomComponent=W1;Or.setStyleProp=j1;var H1=te(),V1=k1(FO()),B1=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function W1(n,t){return n.includes("-")?!B1.has(n):Boolean(t&&typeof t.is=="string")}var U1={reactCompat:!0};function j1(n,t){if(typeof n=="string"){if(!n.trim()){t.style={};return}try{t.style=(0,V1.default)(n,U1)}catch{t.style={}}}}Or.PRESERVE_CUSTOM_ATTRIBUTES=Number(H1.version.split(".")[0])>=16;Or.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var z1=function(n){return!Or.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(n.name)};Or.canTextBeChildOfNode=z1;var q1=function(n){return n};Or.returnFirstArg=q1});var WC=z(BC=>{"use strict";Object.defineProperty(BC,"__esModule",{value:!0});BC.default=X1;var Cc=_O(),bO=VC(),$1=["checked","value"],K1=["input","select","textarea"],Y1={reset:!0,submit:!0};function X1(n,t){n===void 0&&(n={});var e={},r=Boolean(n.type&&Y1[n.type]);for(var o in n){var i=n[o];if((0,Cc.isCustomAttribute)(o)){e[o]=i;continue}var a=o.toLowerCase(),s=MO(a);if(s){var l=(0,Cc.getPropertyInfo)(s);switch($1.includes(s)&&K1.includes(t)&&!r&&(s=MO("default"+a)),e[s]=i,l&&l.type){case Cc.BOOLEAN:e[s]=!0;break;case Cc.OVERLOADED_BOOLEAN:i===""&&(e[s]=!0);break}continue}bO.PRESERVE_CUSTOM_ATTRIBUTES&&(e[o]=i)}return(0,bO.setStyleProp)(n.style,e),e}function MO(n){return Cc.possibleStandardNames[n]}});var GO=z(Sc=>{"use strict";var Q1=Sc&&Sc.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Sc,"__esModule",{value:!0});Sc.default=NO;var UC=te(),J1=Q1(WC()),wc=VC(),Z1={cloneElement:UC.cloneElement,createElement:UC.createElement,isValidElement:UC.isValidElement};function NO(n,t){t===void 0&&(t={});for(var e=[],r=typeof t.replace=="function",o=t.transform||wc.returnFirstArg,i=t.library||Z1,a=i.cloneElement,s=i.createElement,l=i.isValidElement,u=n.length,c=0;c<u;c++){var d=n[c];if(r){var f=t.replace(d,c);if(l(f)){u>1&&(f=a(f,{key:f.key||c})),e.push(o(f,d,c));continue}}if(d.type==="text"){var p=!d.data.trim().length;if(p&&d.parent&&!(0,wc.canTextBeChildOfNode)(d.parent)||t.trim&&p)continue;e.push(o(d.data,d,c));continue}var h=d,v={};eH(h)?((0,wc.setStyleProp)(h.attribs.style,h.attribs),v=h.attribs):h.attribs&&(v=(0,J1.default)(h.attribs,h.name));var C=void 0;switch(d.type){case"script":case"style":d.children[0]&&(v.dangerouslySetInnerHTML={__html:d.children[0].data});break;case"tag":d.name==="textarea"&&d.children[0]?v.defaultValue=d.children[0].data:d.children&&d.children.length&&(C=NO(d.children,t));break;default:continue}u>1&&(v.key=c),e.push(o(s(d.name,v,C),d,c))}return e.length===1?e[0]:e}function eH(n){return wc.PRESERVE_CUSTOM_ATTRIBUTES&&n.type==="tag"&&(0,wc.isCustomComponent)(n.name,n.attribs)}});var zC=z(Dt=>{"use strict";var jC=Dt&&Dt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.htmlToDOM=Dt.domToReact=Dt.attributesToProps=Dt.Text=Dt.ProcessingInstruction=Dt.Element=Dt.Comment=void 0;Dt.default=nH;var kO=jC(CO());Dt.htmlToDOM=kO.default;var tH=jC(WC());Dt.attributesToProps=tH.default;var HO=jC(GO());Dt.domToReact=HO.default;var Op=DC();Object.defineProperty(Dt,"Comment",{enumerable:!0,get:function(){return Op.Comment}});Object.defineProperty(Dt,"Element",{enumerable:!0,get:function(){return Op.Element}});Object.defineProperty(Dt,"ProcessingInstruction",{enumerable:!0,get:function(){return Op.ProcessingInstruction}});Object.defineProperty(Dt,"Text",{enumerable:!0,get:function(){return Op.Text}});var rH={lowerCaseAttributeNames:!1};function nH(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");return n?(0,HO.default)((0,kO.default)(n,t?.htmlparser2||rH),t):[]}});var JO=de(()=>{});var ZO,Ko,eL,Un,tL,oH,gs,bp,Rc=de(()=>{_i();ZO=require("obsidian"),Ko=B(te()),eL=B(wC());JO();Un=B(le()),tL=Ko.createContext(null),oH=()=>(0,Un.jsx)("div",{className:"rht-toolkit-modal-loading",children:(0,Un.jsx)("span",{children:"Loading..."})}),gs=class extends ZO.Modal{constructor(e,r,o,i={},a="modal-size-large"){super(e);this.root=null;this.props={app:e,plugin:r,onClose:()=>this.close(),additionalProps:i,sizeClass:a},this.LazyComponent=Ko.lazy(o)}async onOpen(){let e=this.containerEl;this.root=(0,eL.createRoot)(e),this.root.render((0,Un.jsx)(Ko.StrictMode,{children:(0,Un.jsxs)("div",{className:`rht-toolkit-modal ${this.props.sizeClass}`,children:[(0,Un.jsx)(tL.Provider,{value:{app:this.props.app,plugin:this.props.plugin,additionalProps:this.props.additionalProps},children:(0,Un.jsx)(Ko.Suspense,{fallback:(0,Un.jsx)(oH,{}),children:(0,Un.jsx)(this.LazyComponent,{...this.props})})}),(0,Un.jsx)("div",{className:"rht-toolkit-modal-close",onClick:()=>this.close(),children:(0,Un.jsx)(fs,{})})]})}))}async onClose(){this.root?.unmount(),this.root=null,this.containerEl.empty()}},bp=()=>{let n=Ko.useContext(tL);if(!n)throw new Error("useModal must be used within a ModalContext.Provider");return n}});var Ic,Dc,ys=de(()=>{Ic=(t=>(t.FRONTMATTER="frontmatter",t))(Ic||{}),Dc=(f=>(f.COUNT="Count",f.SUM="Sum",f.AVERAGE="Average",f.MIN="Min",f.MAX="Max",f.MEDIAN="Median",f.MODE="Mode",f.STDDEV="StdDev",f.VARIANCE="Variance",f.TIME_EARLIEST="TimeEarliest",f.TIME_LATEST="TimeLatest",f.TIME_SPAN="TimeSpan",f))(Dc||{})});var kL=de(()=>{});var HL,VL=de(()=>{fn();ys();HL=[{function:"Count",description:A("toolkit.tableEnhancements.formula_editor.math.COUNT"),syntax:"Count([columns], modifier?)",example:"Count([Status], 'unique')",defaultTemplate:"Count([columns], 'values')",parameters:[{name:"modifier",description:A("toolkit.tableEnhancements.formula_editor.math.count_modifier"),options:["values","empty","unique"],optional:!0,default:"values"}]},{function:"Sum",description:A("toolkit.tableEnhancements.formula_editor.math.SUM"),syntax:"Sum([columns])",example:"Sum([Price,Cost])"},{function:"Average",description:A("toolkit.tableEnhancements.formula_editor.math.AVERAGE"),syntax:"Average([columns])",example:"Average([Score])"},{function:"Min",description:A("toolkit.tableEnhancements.formula_editor.math.MIN"),syntax:"Min([columns])",example:"Min([Score])"},{function:"Max",description:A("toolkit.tableEnhancements.formula_editor.math.MAX"),syntax:"Max([columns])",example:"Max([Score])"},{function:"Median",description:A("toolkit.tableEnhancements.formula_editor.math.MEDIAN"),syntax:"Median([columns])",example:"Median([Score])"},{function:"Mode",description:A("toolkit.tableEnhancements.formula_editor.math.MODE"),syntax:"Mode([columns])",example:"Mode([Score])"},{function:"StdDev",description:A("toolkit.tableEnhancements.formula_editor.math.STDDEV"),syntax:"StdDev([columns])",example:"StdDev([Score])"},{function:"Variance",description:A("toolkit.tableEnhancements.formula_editor.math.VARIANCE"),syntax:"Variance([columns])",example:"Variance([Score])"},{function:"TimeEarliest",description:A("toolkit.tableEnhancements.formula_editor.time.TIME_EARLIEST"),syntax:"TimeEarliest([columns], format?)",example:"TimeEarliest([Date], 'yyyy-MM-dd')",defaultTemplate:"TimeEarliest([columns], 'yyyy-MM-dd')",parameters:[{name:"format",description:A("toolkit.tableEnhancements.formula_editor.time.time_format"),options:["yyyy-MM-dd","yyyy-MM-dd HH:mm:ss","HH:mm"],optional:!0,default:"yyyy-MM-dd"}]},{function:"TimeLatest",description:A("toolkit.tableEnhancements.formula_editor.time.TIME_LATEST"),syntax:"TimeLatest([columns], format?)",example:"TimeLatest([Date], 'yyyy-MM-dd')",defaultTemplate:"TimeLatest([columns], 'yyyy-MM-dd')",parameters:[{name:"format",description:A("toolkit.tableEnhancements.formula_editor.time.time_format"),options:["yyyy-MM-dd","yyyy-MM-dd HH:mm:ss","HH:mm"],optional:!0,default:"yyyy-MM-dd"}]},{function:"TimeSpan",description:A("toolkit.tableEnhancements.formula_editor.time.TIME_SPAN"),syntax:"TimeSpan([column], format?:unit?)",example:"TimeSpan([Date], 'yyyy-MM-dd:days')",defaultTemplate:"TimeSpan([columns], 'yyyy-MM-dd:days')",parameters:[{name:"format",description:A("toolkit.tableEnhancements.formula_editor.time.time_format"),options:["yyyy-MM-dd","yyyy-MM-dd HH:mm:ss"],optional:!0,default:"yyyy-MM-dd"},{name:"unit",description:A("toolkit.tableEnhancements.formula_editor.time.time_unit"),options:["days","hours","minutes"],optional:!0,default:"days"}]}]});var BL=de(()=>{});var tw,We,lV,WL,UL=de(()=>{fn();tw=B(te());VL();BL();We=B(le()),lV=({table:n,value:t,onChange:e})=>{let[r,o]=(0,tw.useState)(null),[i,a]=(0,tw.useState)(null),s=i||r,l=f=>{o(f);let p=(f.defaultTemplate||f.syntax).replace("columns","");e(p)},u=f=>{if(!t)return;let p=t.indexOf("[");if(p===-1)return;let h=t.indexOf("]",p);if(h===-1)return;let v=t.slice(p+1,h).split(",").map(E=>E.trim()).filter(E=>E!==""),C=v.indexOf(f);C===-1?v.push(f):v.splice(C,1);let m=t.slice(0,p+1),y=t.slice(h),S=`${m}${v.join(", ")}${y}`;e(S)},c=f=>{if(!t)return!1;let p=t.indexOf("["),h=t.indexOf("]",p);return p===-1||h===-1?!1:t.slice(p+1,h).split(",").map(C=>C.trim()).filter(C=>C!=="").includes(f)},d=(f,p)=>{if(!t||!r)return;let h=r.function,v=t.indexOf("(");if(v===-1)return;let C=t.lastIndexOf(")"),m=C!==-1,y=t.indexOf("[",v);if(y===-1)return;let S=t.indexOf("]",y);if(S===-1)return;let E=t.slice(y,S+1),R=t.slice(S+1,m?C:void 0),x=new Map,P=R.match(/(?:,\s*)?(['"])(.*?)\1/g)||[];if(h==="TimeSpan"&&f.name==="unit"){let I=r.parameters?.find(W=>W.name==="format"),b=x.get("format")||I?.default||"yyyy-MM-dd";x.set("format",`${b}:${p}`)}else if(h==="TimeSpan"&&f.name==="format"){let I=r.parameters?.find(W=>W.name==="unit"),b=x.get("unit")||I?.default||"days";x.set(f.name,`${p}:${b}`)}else r.parameters?.forEach((I,b)=>{if(P[b]){let W=P[b].replace(/^,\s*['"]|['"]$/g,"");x.set(I.name,W)}else I.default&&x.set(I.name,I.default)}),x.set(f.name,p);let T=Array.from(x.values()).filter(Boolean).map(I=>`'${I}'`).join(", "),L=`${h}(${E}${T?", "+T:""})`;e(L)};return(0,We.jsxs)("div",{className:"formula-editor",children:[(0,We.jsxs)("div",{className:"formula-columns",children:[(0,We.jsx)("h3",{children:A("toolkit.tableEnhancements.formula_editor.table_columns")}),(0,We.jsx)("div",{className:"column-list",children:n.headers.map(f=>(0,We.jsxs)("div",{className:`column-item ${c(f.content)?"selected":""}`,onClick:()=>u(f.content),children:[f.field,": ",f.content]},f.field))})]}),(0,We.jsx)("div",{className:"formula-input",children:(0,We.jsx)("textarea",{value:t,onChange:f=>e(f.target.value),placeholder:A("toolkit.tableEnhancements.formula_editor.input_placeholder"),className:"formula-textarea"})}),(0,We.jsxs)("div",{className:"formula-functions",children:[(0,We.jsx)("h3",{children:A("toolkit.tableEnhancements.formula_editor.function_name")}),(0,We.jsxs)("div",{className:"functions-container",children:[(0,We.jsx)("div",{className:"function-list",children:HL.map(f=>(0,We.jsxs)("div",{className:`function-item ${r?.function===f.function?"active":""}`,onClick:()=>{l(f)},onMouseEnter:()=>a(f),children:[(0,We.jsx)("div",{className:"function-name",children:f.function}),(0,We.jsx)("div",{className:"function-desc",children:f.description})]},f.function))}),(0,We.jsx)("div",{className:"function-detail-wrapper",children:s&&(0,We.jsxs)("div",{className:"function-detail",children:[(0,We.jsxs)("div",{className:"hint-syntax",children:[A("toolkit.tableEnhancements.formula_editor.hint_syntax"),": ",s.syntax]}),(0,We.jsxs)("div",{className:"hint-example",children:[A("toolkit.tableEnhancements.formula_editor.hint_example"),": ",s.example]}),s.parameters&&s.parameters.length>0&&(0,We.jsxs)("div",{className:"hint-parameters",children:[(0,We.jsxs)("div",{className:"parameters-title",children:[A("toolkit.tableEnhancements.formula_editor.hint_parameters"),":"]}),s.parameters.map((f,p)=>(0,We.jsxs)("div",{className:"parameter-item",children:[(0,We.jsxs)("div",{className:"parameter-name",children:[f.name,f.optional&&(0,We.jsxs)("span",{className:"parameter-optional",children:["(",A("toolkit.tableEnhancements.formula_editor.parameter_optional"),")"]})]}),(0,We.jsx)("div",{className:"parameter-desc",children:f.description}),f.options&&(0,We.jsxs)("div",{className:"parameter-options",children:[A("toolkit.tableEnhancements.formula_editor.parameter_options"),":"," ",f.options.map(h=>(0,We.jsx)("span",{className:"option-tag",onClick:()=>d(f,h),title:`${A("toolkit.tableEnhancements.formula_editor.insert_option")}: '${h}'`,children:h},h))]})]},p))]})]})})]})]})]})},WL=lV});var jL=de(()=>{});var rw={};Jv(rw,{default:()=>dV});var bh,hr,uV,cV,dV,nw=de(()=>{Rc();fn();bh=B(te());ys();UL();jL();hr=B(le()),uV=Object.values(Ic).map(n=>({value:n,label:n.toUpperCase()})),cV=()=>{let{additionalProps:n}=bp(),{table:t,initialFormula:e="",initialOutput:r="frontmatter",initialOutputValue:o="",isEditing:i,onSubmit:a,onClose:s}=n,[l,u]=(0,bh.useState)(e),[c,d]=(0,bh.useState)(r),[f,p]=(0,bh.useState)(o),h=()=>{a({config:{formula:l,output:{type:c,value:f}}})};return(0,hr.jsxs)("div",{className:"tableEnhancements-formula-modal",children:[(0,hr.jsxs)("div",{className:"tableEnhancements-formula-header",children:[(0,hr.jsxs)("div",{className:"tableEnhancements-form-group",children:[(0,hr.jsx)("label",{children:A("toolkit.tableEnhancements.formula.output_type")}),(0,hr.jsx)("select",{value:c,onChange:v=>d(v.target.value),className:"tableEnhancements-select",children:uV.map(({value:v,label:C})=>(0,hr.jsx)("option",{value:v,children:C},v))})]}),(0,hr.jsxs)("div",{className:"tableEnhancements-form-group",children:[(0,hr.jsx)("label",{children:A("toolkit.tableEnhancements.formula.output_value")}),(0,hr.jsx)("input",{type:"text",value:f,onChange:v=>p(v.target.value),placeholder:"e.g., frontmatter key",className:"tableEnhancements-input"})]})]}),(0,hr.jsx)("div",{className:"tableEnhancements-formula-content",children:(0,hr.jsx)(WL,{table:t,value:l,onChange:u})}),(0,hr.jsxs)("div",{className:"tableEnhancements-formula-footer",children:[(0,hr.jsx)("button",{className:"tableEnhancements-btn",onClick:s,children:A("toolkit.tableEnhancements.formula.cancel")}),(0,hr.jsx)("button",{className:"tableEnhancements-btn primary",onClick:h,disabled:!l,children:i?A("toolkit.tableEnhancements.formula.update"):A("toolkit.tableEnhancements.formula.add")})]})]})},dV=cV});var Ir,Ue,fV,zL,qL=de(()=>{Rc();fn();_i();Ir=B(te());ys();kL();Ue=B(le()),fV=({calc:n,index:t,onEdit:e,onDelete:r,onExecute:o,disabled:i})=>(0,Ue.jsxs)("div",{className:"tableEnhancements-calculation-item",children:[(0,Ue.jsxs)("div",{className:"tableEnhancements-calculation-info",children:[(0,Ue.jsx)("span",{className:"calculation-formula",children:n.config.formula}),(0,Ue.jsx)("span",{className:"calculation-hyphen",children:(0,Ue.jsx)(ac,{})}),(0,Ue.jsx)("span",{className:"calculation-output",children:n.config.output.type}),n.config.output.value&&(0,Ue.jsxs)("span",{className:"calculation-output-value",children:["(",n.config.output.value,")"]}),(0,Ue.jsx)("span",{className:"calculation-hyphen",children:(0,Ue.jsx)(sc,{})}),n.config.result!==void 0&&(0,Ue.jsx)("span",{className:"calculation-result",children:n.config.result})]}),(0,Ue.jsxs)("div",{className:"tableEnhancements-calculation-actions",children:[(0,Ue.jsx)("button",{className:"tableEnhancements-btn icon",onClick:()=>e(t),disabled:i,"aria-label":A("toolkit.tableEnhancements.formula.edit_calculation"),children:(0,Ue.jsx)(uc,{})}),(0,Ue.jsx)("button",{className:"tableEnhancements-btn icon",onClick:()=>r(t),disabled:i,"aria-label":A("toolkit.tableEnhancements.formula.remove_calculation"),children:(0,Ue.jsx)(ua,{})}),(0,Ue.jsx)("button",{className:"tableEnhancements-btn icon",onClick:()=>o(n),disabled:i,"aria-label":A("toolkit.tableEnhancements.formula.execute_calculation"),children:(0,Ue.jsx)(jo,{})})]})]}),zL=({table:n,manager:t,onCalculate:e,logger:r})=>{let[o,i]=(0,Ir.useState)([]),[a,s]=(0,Ir.useState)(!1),[l,u]=(0,Ir.useState)(null),[c,d]=(0,Ir.useState)({formula:"",output:"frontmatter",outputValue:"",editingIndex:null,isAdding:!1}),[f,p]=(0,Ir.useState)(null);(0,Ir.useEffect)(()=>{n.referenceId&&i(t.getSavedCalculations(n.referenceId))},[n.referenceId,t]);let h=(0,Ir.useCallback)(()=>{d({formula:"",output:"frontmatter",outputValue:"",editingIndex:null,isAdding:!1}),u(null)},[]),v=(0,Ir.useCallback)(E=>{let R=o[E],x=new gs(t.getApp(),t.getPlugin(),()=>Promise.resolve().then(()=>(nw(),rw)),{table:n,initialFormula:R.config.formula,initialOutput:R.config.output.type,initialOutputValue:R.config.output.value,isEditing:!0,onSubmit:async P=>{try{s(!0),await t.executeAndSaveCalculation(n,P,E),i(t.getSavedCalculations(n.referenceId)),e(n),x.close()}catch(T){r.error("Error updating calculation:",T)}finally{s(!1)}},onClose:()=>x.close()},"modal-size-medium");x.open(),p(x)},[o,n,t,r,e]),C=(0,Ir.useCallback)(()=>{let E=new gs(t.getApp(),t.getPlugin(),()=>Promise.resolve().then(()=>(nw(),rw)),{table:n,isEditing:!1,onSubmit:async R=>{try{s(!0),await t.executeAndSaveCalculation(n,R),i(t.getSavedCalculations(n.referenceId)),e(n),E.close()}catch(x){r.error("Error adding calculation:",x)}finally{s(!1)}},onClose:()=>E.close()},"modal-size-medium");E.open(),p(E)},[n,t,r,e]),m=(0,Ir.useCallback)(async E=>{if(n.referenceId)try{await t.deleteCalculation(n.referenceId,E),i(t.getSavedCalculations(n.referenceId)),e(n)}catch(R){r.error("Error deleting calculation:",R)}},[n,t,e,r]),y=(0,Ir.useCallback)(async E=>{s(!0);try{await t.executeCalculation(n,E),e(n)}catch(R){r.error("Error executing saved calculation:",R)}finally{s(!1)}},[n,t,e,r]),S=(0,Ir.useCallback)(async()=>{if(!(!n.referenceId||o.length===0)){s(!0);try{for(let E of o)await t.executeCalculation(n,E);e(n)}catch(E){r.error("Error executing all calculations:",E)}finally{s(!1)}}},[n,t,o,e,r]);return(0,Ue.jsxs)("div",{className:"tableEnhancements-calculation",children:[(0,Ue.jsxs)("div",{className:"tableEnhancements-calculation-actions",children:[(0,Ue.jsx)("button",{className:"tableEnhancements-btn icon primary",onClick:C,disabled:a,"aria-label":A("toolkit.tableEnhancements.formula.add_calculation"),children:(0,Ue.jsx)(cc,{})}),o.length>0&&(0,Ue.jsx)("button",{className:"tableEnhancements-btn icon primary",onClick:S,disabled:a,"aria-label":A("toolkit.tableEnhancements.formula.execute_all"),children:(0,Ue.jsx)(jo,{})})]}),(0,Ue.jsx)("div",{className:"tableEnhancements-calculation-list",children:o.map((E,R)=>(0,Ue.jsx)(fV,{calc:E,index:R,onEdit:v,onDelete:m,onExecute:y,disabled:a},R))}),l&&(0,Ue.jsx)("div",{className:"tableEnhancements-error",children:l})]})}});var Pt=z(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});function ri(n){return n==null||n===""?null:n}function D(n,t){return t===void 0&&(t=!1),n!=null&&(n!==""||t)}function Z(n){return!D(n)}function Cn(n){return n==null||n.length===0}function fd(n){return n!=null&&typeof n.toString=="function"?n.toString():null}function Qn(n){if(n!==void 0){if(n===null||n==="")return null;if(typeof n=="number")return isNaN(n)?void 0:n;var t=parseInt(n,10);return isNaN(t)?void 0:t}}function ti(n){if(n!==void 0)return n===null||n===""?!1:typeof n=="boolean"?n:/true/i.test(n)}function pV(n){if(!(n==null||n===""))return n}function hV(n,t){return n==null&&t==null?!0:n==null&&t!=null||n!=null&&t==null?!1:n===t}function gV(n,t){var e=n?JSON.stringify(n):null,r=t?JSON.stringify(t):null;return e===r}function vV(n,t,e){e===void 0&&(e=!1);var r=n==null,o=t==null;if(n&&n.toNumber&&(n=n.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&o)return 0;if(r)return-1;if(o)return 1;function i(a,s){return a>s?1:a<s?-1:0}if(typeof n!="string"||!e)return i(n,t);try{return n.localeCompare(t)}catch{return i(n,t)}}function Ts(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 mV=Object.freeze({makeNull:ri,exists:D,missing:Z,missingOrEmpty:Cn,toStringOrNull:fd,attrToNumber:Qn,attrToBoolean:ti,attrToString:pV,referenceCompare:hV,jsonEquals:gV,defaultComparator:vV,values:Ts}),YI=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=fd(t);for(var r=0;;){var o=void 0;if(t?(o=t,r!==0&&(o+="_"+r)):e?(o=e,r!==0&&(o+="_"+r)):o=r,!this.existingKeys[o])return this.existingKeys[o]=!0,String(o);r++}},n}(),yV=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},CV=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i};function st(n,t){var e,r;if(n!=null){if(Array.isArray(n)){for(var o=0;o<n.length;o++)t(o.toString(),n[o]);return}try{for(var i=yV(Object.entries(n)),a=i.next();!a.done;a=i.next()){var s=CV(a.value,2),l=s[0],u=s[1];t(l,u)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}}function _S(n){for(var t={},e=Object.keys(n),r=0;r<e.length;r++){var o=e[r],i=n[o];t[o]=i}return t}function wV(n){return JSON.parse(JSON.stringify(n))}function hg(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],a=gg(i)&&i.constructor===Object;a?r[o]=hg(i):r[o]=i}}),r}}function XI(n,t){return n[t]}function QI(n,t,e){n[t]=e}function SV(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];e.forEach(function(o){return JI(n,t,o)})}function JI(n,t,e,r){var o=XI(n,e);o!==void 0&&QI(t,e,r?r(o):o)}function ZI(n){var t={};return n.filter(function(e){return e!=null}).forEach(function(e){Object.keys(e).forEach(function(r){return t[r]=null})}),Object.keys(t)}function oi(n){if(!n)return[];var t=Object;if(typeof t.values=="function")return t.values(n);var e=[];for(var r in n)n.hasOwnProperty(r)&&n.propertyIsEnumerable(r)&&e.push(n[r]);return e}function wn(n,t,e,r){e===void 0&&(e=!0),r===void 0&&(r=!1),D(t)&&st(t,function(o,i){var a=n[o];if(a!==i){if(r){var s=a==null&&i!=null;if(s){var l=typeof i=="object"&&i.constructor===Object,u=l;u&&(a={},n[o]=a)}}gg(i)&&gg(a)&&!Array.isArray(a)?wn(a,i,e,r):(e||i!==void 0)&&(n[o]=i)}})}function _V(n){return Z(n)||Object.keys(n).length===0}function EV(n,t,e){if(n==null)return e;for(var r=t.split("."),o=n;r.length>1;)if(o=o[r.shift()],o==null)return e;var i=o[r[0]];return i??e}function RV(n,t,e){if(n!=null){var r=t.split("."),o=n;r.forEach(function(i,a){o[i]||(o[i]={}),a<r.length-1&&(o=o[i])}),o[r[r.length-1]]=e}}function Yl(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(o==null)return;o=o[r[i]]}return o}}function eD(n,t){Object.keys(n).forEach(function(o){var i=n[o];typeof i=="object"&&(n[o]=void 0)});var e=Object.getPrototypeOf(n),r={};Object.keys(e).forEach(function(o){var i=e[o];if(typeof i=="function"){var a=function(){console.warn("AG Grid: "+t+" function "+o+`() cannot be called as the grid has been destroyed.
Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't
be keeping the API reference, your application has a memory leak! Remove the API reference
when the grid is destroyed.`)};r[o]={value:a,writable:!0}}}),Object.defineProperties(n,r)}function gg(n){return typeof n=="object"&&n!==null}var TV=Object.freeze({iterateObject:st,cloneObject:_S,deepCloneObject:wV,deepCloneDefinition:hg,getProperty:XI,setProperty:QI,copyPropertiesIfPresent:SV,copyPropertyIfPresent:JI,getAllKeysInObjects:ZI,getAllValuesInObject:oi,mergeDeep:wn,missingOrEmptyObject:_V,get:EV,set:RV,getValueUsingField:Yl,removeAllReferences:eD,isNonNullObject:gg}),$L={};function ge(n,t){$L[t]||(n(),$L[t]=!0)}function Mg(n){if(n.name)return n.name;var t=/function\s+([^\(]+)/.exec(n.toString());return t&&t.length===2?t[1].trim():null}function Ng(n){return!!(n&&n.constructor&&n.call&&n.apply)}function tD(n){rD(n,400)}var ow=[],iw=!1;function eS(n){ow.push(n),!iw&&(iw=!0,window.setTimeout(function(){var t=ow.slice();ow.length=0,iw=!1,t.forEach(function(e){return e()})},0))}function rD(n,t){t===void 0&&(t=0),n.length>0&&window.setTimeout(function(){return n.forEach(function(e){return e()})},t)}function wo(n,t){var e;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this;window.clearTimeout(e),e=window.setTimeout(function(){n.apply(i,r)},t)}}function tS(n,t){var e=0;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this,a=new Date().getTime();a-e<t||(e=a,n.apply(i,r))}}function ES(n,t,e,r){e===void 0&&(e=100);var o=new Date().getTime(),i=null,a=!1,s=function(){var l=new Date().getTime()-o>e;(n()||l)&&(t(),a=!0,i!=null&&(window.clearInterval(i),i=null),l&&r&&console.warn(r))};s(),a||(i=window.setInterval(s,10))}function xV(){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)}}function nD(n){n&&n()}var PV=function(){},OV=Object.freeze({doOnce:ge,getFunctionName:Mg,isFunction:Ng,executeInAWhile:tD,executeNextVMTurn:eS,executeAfter:rD,debounce:wo,throttle:tS,waitUntil:ES,compose:xV,callIfPresent:nD,noop:PV});(function(n){n.CommunityCoreModule="@ag-grid-community/core",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.RowGroupingModule="@ag-grid-enterprise/row-grouping",n.ColumnsToolPanelModule="@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.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",n.AngularModule="@ag-grid-community/angular",n.ReactModule="@ag-grid-community/react",n.VueModule="@ag-grid-community/vue"})(g.ModuleNames||(g.ModuleNames={}));var Fc=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},KL=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},J=function(){function n(){}return n.register=function(t){n.__register(t,!0,void 0)},n.registerModules=function(t){n.__registerModules(t,!0,void 0)},n.__register=function(t,e,r){n.runVersionChecks(t),r!==void 0?(n.areGridScopedModules=!0,n.gridModulesMap[r]===void 0&&(n.gridModulesMap[r]={}),n.gridModulesMap[r][t.moduleName]=t):n.globalModulesMap[t.moduleName]=t,n.setModuleBased(e)},n.__unRegisterGridModules=function(t){delete n.gridModulesMap[t]},n.__registerModules=function(t,e,r){n.setModuleBased(e),t&&t.forEach(function(o){return n.__register(o,e,r)})},n.isValidModuleVersion=function(t){var e=Fc(t.version.split(".")||[],2),r=e[0],o=e[1],i=Fc(n.currentModuleVersion.split(".")||[],2),a=i[0],s=i[1];return r===a&&o===s},n.runVersionChecks=function(t){if(n.currentModuleVersion||(n.currentModuleVersion=t.version),t.version?n.isValidModuleVersion(t)||console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+t.moduleName+"' is version "+t.version+" but the other modules are version "+this.currentModuleVersion+". Please update all modules to the same version."):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+t.moduleName+"' is incompatible. Please update all modules to the same version."),t.validate){var e=t.validate();if(!e.isValid){var r=e;console.error("AG Grid: "+r.message)}}},n.setModuleBased=function(t){n.moduleBased===void 0?n.moduleBased=t:n.moduleBased!==t&&ge(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.__setIsBundled=function(){n.isBundled=!0},n.__assertRegistered=function(t,e,r){var o;if(this.__isRegistered(t,r))return!0;var i=e+t,a;if(n.isBundled)a="AG Grid: unable to use "+e+` as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:
<script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script>
For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`;else if(n.moduleBased||n.moduleBased===void 0){var s=(o=Object.entries(g.ModuleNames).find(function(l){var u=Fc(l,2),c=u[0],d=u[1];return d===t}))===null||o===void 0?void 0:o[0];a="AG Grid: unable to use "+e+" as the "+s+" is not registered"+(n.areGridScopedModules?" for gridId: "+r:"")+`. Check if you have registered the module:
import { ModuleRegistry } from '@ag-grid-community/core';
import { `+s+" } from '"+t+`';
ModuleRegistry.registerModules([ `+s+` ]);
For more info see: https://www.ag-grid.com/javascript-grid/modules/`}else a="AG Grid: unable to use "+e+` as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:
import 'ag-grid-enterprise';
For more info see: https://www.ag-grid.com/javascript-grid/packages/`;return ge(function(){console.warn(a)},i),!1},n.__isRegistered=function(t,e){var r;return!!n.globalModulesMap[t]||!!(!((r=n.gridModulesMap[e])===null||r===void 0)&&r[t])},n.__getRegisteredModules=function(t){return KL(KL([],Fc(Ts(n.globalModulesMap))),Fc(Ts(n.gridModulesMap[t]||{})))},n.__getGridRegisteredModules=function(t){var e;return Ts((e=n.gridModulesMap[t])!==null&&e!==void 0?e:{})||[]},n.__isPackageBased=function(){return!n.moduleBased},n.globalModulesMap={},n.gridModulesMap={},n.areGridScopedModules=!1,n}(),LV=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},IV=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},oD=function(){function n(t,e){if(this.beanWrappers={},this.destroyed=!1,!(!t||!t.beanClasses)){this.contextParams=t,this.logger=e,this.logger.log(">> creating ag-Application Context"),this.createBeans();var r=this.getBeanInstances();this.wireBeans(r),this.logger.log(">> ag-Application Context ready - component is alive")}}return n.prototype.getBeanInstances=function(){return Ts(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"),D(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},n.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),st(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 a=t.getBeansForParameters(i,o.bean.name),s=new(o.bean.bind.apply(o.bean,IV([null],LV(a))));o.beanInstance=s});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=void 0;t.prototype.constructor?r=Mg(t.prototype.constructor):r=""+t,console.error("Context item "+r+" is not a bean");return}var o={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=o},n.prototype.autoWireBeans=function(t){var e=this;t.forEach(function(r){e.forEachMetaDataInHierarchy(r,function(o,i){var a=o.agClassAttributes;a&&a.forEach(function(s){var l=e.lookupBeanInstance(i,s.beanName,s.optional);r[s.attributeName]=l})})})},n.prototype.methodWireBeans=function(t){var e=this;t.forEach(function(r){e.forEachMetaDataInHierarchy(r,function(o,i){st(o.autowireMethods,function(a,s){if(a!=="agConstructor"){var l=e.getBeansForParameters(s,i);r[a].apply(r,l)}})})})},n.prototype.forEachMetaDataInHierarchy=function(t,e){for(var r=Object.getPrototypeOf(t);r!=null;){var o=r.constructor;if(o.hasOwnProperty("__agBeanMetaData")){var i=o.__agBeanMetaData,a=this.getBeanName(o);e(i,a)}r=Object.getPrototypeOf(r)}},n.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString(),r=e.substring(9,e.indexOf("("));return r},n.prototype.getBeansForParameters=function(t,e){var r=this,o=[];return t&&st(t,function(i,a){var s=r.lookupBeanInstance(e,a);o[Number(i)]=s}),o},n.prototype.lookupBeanInstance=function(t,e,r){if(r===void 0&&(r=!1),this.destroyed)return this.logger.log("AG Grid: bean reference "+e+" is used after the grid is destroyed!"),null;if(e==="context")return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var o=this.beanWrappers[e];return o?o.beanInstance:(r||console.error("AG Grid: unable to find bean reference "+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(a){var s=a[e];s&&s.forEach(function(l){l!=r&&(o[l]=!0)})});var i=Object.keys(o);i.forEach(function(a){return t[a]()})},n.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},n.prototype.destroy=function(){if(!this.destroyed){this.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,J.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(">> ag-Application Context shut down - component is dead")}},n.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},n.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach(function(r){e.callLifeCycleMethodsOnBean(r,"preDestroyMethods","destroy");var o=r;typeof o.destroy=="function"&&o.destroy()}),[]):[]},n.prototype.isDestroyed=function(){return this.destroyed},n.prototype.getGridId=function(){return this.contextParams.gridId},n}();function rS(n,t,e){var r=Ls(n.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function M(n,t,e){var r=Ls(n.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function Mt(n,t,e){var r=Ls(n.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function H(n){return function(t){var e=Ls(t);e.beanName=n}}function w(n){return function(t,e,r){iD(t,n,!1,t,e,null)}}function _e(n){return function(t,e,r){iD(t,n,!0,t,e,null)}}function iD(n,t,e,r,o,i){if(t===null){console.error("AG Grid: Autowired name should not be null");return}if(typeof i=="number"){console.error("AG Grid: Autowired should be on an attribute");return}var a=Ls(n.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:o,beanName:t,optional:e})}function er(n){return function(t,e,r){var o=typeof t=="function"?t:t.constructor,i;if(typeof r=="number"){var a=void 0;e?(i=Ls(o),a=e):(i=Ls(o),a="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[a]||(i.autowireMethods[a]={}),i.autowireMethods[a][r]=n}}}function Ls(n){return n.hasOwnProperty("__agBeanMetaData")||(n.__agBeanMetaData={}),n.__agBeanMetaData}var YL=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},bc=function(n,t){return function(e,r){t(e,r,n)}},Li=function(){function n(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return n.prototype.setBeans=function(t,e,r,o,i){if(o===void 0&&(o=null),i===void 0&&(i=null),this.frameworkOverrides=r,this.gridOptionsService=e,o){var a=e.useAsyncEvents();this.addGlobalListener(o,a)}i&&this.addGlobalListener(i,!1)},n.prototype.getListeners=function(t,e,r){var o=e?this.allAsyncListeners:this.allSyncListeners,i=o.get(t);return!i&&r&&(i=new Set,o.set(t,i)),i},n.prototype.noRegisteredListenersExist=function(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0},n.prototype.addEventListener=function(t,e,r){r===void 0&&(r=!1),this.getListeners(t,r,!0).add(e)},n.prototype.removeEventListener=function(t,e,r){r===void 0&&(r=!1);var o=this.getListeners(t,r,!1);if(o&&(o.delete(e),o.size===0)){var i=r?this.allAsyncListeners:this.allSyncListeners;i.delete(t)}},n.prototype.addGlobalListener=function(t,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},n.prototype.removeGlobalListener=function(t,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},n.prototype.dispatchEvent=function(t){var e=t;if(this.gridOptionsService){var r=this.gridOptionsService,o=r.api,i=r.columnApi,a=r.context;e.api=o,e.columnApi=i,e.context=a}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;if(e&&"event"in t){var i=t.event;i instanceof Event&&(t.eventPath=i.composedPath())}var a=function(u){return u.forEach(function(c){e?r.dispatchAsync(function(){return c(t)}):c(t)})},s=new Set(this.getListeners(o,e,!1));s.size>0&&a(s);var l=new Set(e?this.globalAsyncListeners:this.globalSyncListeners);l.forEach(function(u){e?r.dispatchAsync(function(){return r.frameworkOverrides.dispatchEvent(o,function(){return u(o,t)},!0)}):r.frameworkOverrides.dispatchEvent(o,function(){return u(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()})},YL([bc(0,er("loggerFactory")),bc(1,er("gridOptionsService")),bc(2,er("frameworkOverrides")),bc(3,er("globalEventListener")),bc(4,er("globalSyncEventListener"))],n.prototype,"setBeans",null),n=YL([H("eventService")],n),n}(),Mh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},XL=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},QL=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},DV=0;function aD(){return DV++}var Ne=function(){function n(t,e,r,o){this.instanceId=aD(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new Li,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=r,this.primary=o,this.setState(t)}return n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setState=function(t){t.sort!==void 0?(t.sort==="asc"||t.sort==="desc")&&(this.sort=t.sort):(t.initialSort==="asc"||t.initialSort==="desc")&&(this.sort=t.initialSort);var e=Qn(t.sortIndex),r=Qn(t.initialSortIndex);e!==void 0?e!==null&&(this.sortIndex=e):r!==null&&(this.sortIndex=r);var o=ti(t.hide),i=ti(t.initialHide);o!==void 0?this.visible=!o:this.visible=!i,t.pinned!==void 0?this.setPinned(t.pinned):this.setPinned(t.initialPinned);var a=Qn(t.flex),s=Qn(t.initialFlex);a!==void 0?this.flex=a:s!==void 0&&(this.flex=s)},n.prototype.setColDef=function(t,e){this.colDef=t,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged","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.initTooltip(),this.validate()},n.prototype.initDotNotation=function(){var t=this.gridOptionsService.is("suppressFieldDotNotation");this.fieldContainsDots=D(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=D(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},n.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},n.prototype.initTooltip=function(){this.tooltipEnabled=D(this.colDef.tooltipField)||D(this.colDef.tooltipValueGetter)||D(this.colDef.tooltipComponent)},n.prototype.resetActualWidth=function(t){t===void 0&&(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){if(Z(this.colDef)||Z(this.colDef.showRowGroup))return!1;var e=this.colDef.showRowGroup===!0,r=this.colDef.showRowGroup===t;return e||r},n.prototype.isPrimary=function(){return this.primary},n.prototype.isFilterAllowed=function(){var t=!!this.colDef.filter;return t},n.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},n.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},n.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},n.prototype.validate=function(){var t=this.colDef;function e(u,c,d){ge(function(){d?console.warn(u,d):ge(function(){return console.warn(u)},c)},c)}var r=this.gridOptionsService.isRowModelType("clientSide");if(r&&!J.__isRegistered(g.ModuleNames.RowGroupingModule,this.gridOptionsService.getGridId())){var o=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"],i=o.filter(function(u){return D(t[u])});i.length>0&&J.__assertRegistered(g.ModuleNames.RowGroupingModule,i.map(function(u){return"colDef."+u}).join(", "),this.gridOptionsService.getGridId())}if((this.colDef.cellEditor==="agRichSelect"||this.colDef.cellEditor==="agRichSelectCellEditor")&&J.__assertRegistered(g.ModuleNames.RichSelectModule,this.colDef.cellEditor,this.gridOptionsService.getGridId()),this.gridOptionsService.is("treeData")){var a=["rowGroup","rowGroupIndex","pivot","pivotIndex"],i=a.filter(function(c){return D(t[c])});i.length>0&&e("AG Grid: "+i.join()+" is not possible when doing tree data, your column definition should not have "+i.join(),"TreeDataCannotRowGroup")}if(D(t.menuTabs))if(Array.isArray(t.menuTabs)){var s=["filterMenuTab"],l=["columnsMenuTab","generalMenuTab"],i=l.filter(function(c){return t.menuTabs.includes(c)});i.length>0&&J.__assertRegistered(g.ModuleNames.MenuModule,"menuTab(s): "+i.map(function(c){return"'"+c+"'"}).join(),this.gridOptionsService.getGridId()),t.menuTabs.forEach(function(c){!l.includes(c)&&!s.includes(c)&&e("AG Grid: '"+c+"' is not valid for 'colDef.menuTabs'. Valid values are: "+QL(QL([],XL(s)),XL(l)).map(function(d){return"'"+d+"'"}).join()+".","wrongValue_menuTabs_"+c)})}else e("AG Grid: The typeof 'colDef.menuTabs' should be an array not:"+typeof t.menuTabs,"wrongType_menuTabs");D(t.columnsMenuParams)&&J.__assertRegistered(g.ModuleNames.MenuModule,"columnsMenuParams",this.gridOptionsService.getGridId()),D(t.columnsMenuParams)&&J.__assertRegistered(g.ModuleNames.ColumnsToolPanelModule,"columnsMenuParams",this.gridOptionsService.getGridId()),D(this.colDef.width)&&typeof this.colDef.width!="number"&&e("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck"),D(t.columnGroupShow)&&t.columnGroupShow!=="closed"&&t.columnGroupShow!=="open"&&e("AG Grid: '"+t.columnGroupShow+"' is not valid for columnGroupShow. Valid values are 'open', 'closed', undefined, null","columnGroupShow_invalid")},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.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi}},n.prototype.isSuppressNavigable=function(t){if(typeof this.colDef.suppressNavigable=="boolean")return this.colDef.suppressNavigable;if(typeof this.colDef.suppressNavigable=="function"){var e=this.createColumnFunctionCallbackParams(t),r=this.colDef.suppressNavigable;return r(e)}return!1},n.prototype.isCellEditable=function(t){return t.group&&!this.gridOptionsService.is("enableGroupEdit")?!1:this.isColumnFunc(t,this.colDef.editable)},n.prototype.isSuppressFillHandle=function(){return!!ti(this.colDef.suppressFillHandle)},n.prototype.isAutoHeight=function(){return!!ti(this.colDef.autoHeight)},n.prototype.isAutoHeaderHeight=function(){return!!ti(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!!ti(this.colDef.resizable)},n.prototype.isColumnFunc=function(t,e){if(typeof e=="boolean")return e;if(typeof e=="function"){var r=this.createColumnFunctionCallbackParams(t),o=e;return o(r)}return!1},n.prototype.setMoving=function(t,e){e===void 0&&(e="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",e))},n.prototype.createColumnEvent=function(t,e){return{type:t,column:this,columns:[this],source:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},n.prototype.isMoving=function(){return this.moving},n.prototype.getSort=function(){return this.sort},n.prototype.setSort=function(t,e){e===void 0&&(e="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",e))),this.dispatchStateUpdatedEvent("sort")},n.prototype.setMenuVisible=function(t,e){e===void 0&&(e="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",e)))},n.prototype.isMenuVisible=function(){return this.menuVisible},n.prototype.isSortAscending=function(){return this.sort==="asc"},n.prototype.isSortDescending=function(){return this.sort==="desc"},n.prototype.isSortNone=function(){return Z(this.sort)},n.prototype.isSorting=function(){return D(this.sort)},n.prototype.getSortIndex=function(){return this.sortIndex},n.prototype.setSortIndex=function(t){this.sortIndex=t,this.dispatchStateUpdatedEvent("sortIndex")},n.prototype.setAggFunc=function(t){this.aggFunc=t,this.dispatchStateUpdatedEvent("aggFunc")},n.prototype.getAggFunc=function(){return this.aggFunc},n.prototype.getLeft=function(){return this.left},n.prototype.getOldLeft=function(){return this.oldLeft},n.prototype.getRight=function(){return this.left+this.actualWidth},n.prototype.setLeft=function(t,e){e===void 0&&(e="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",e)))},n.prototype.isFilterActive=function(){return this.filterActive},n.prototype.setFilterActive=function(t,e,r){e===void 0&&(e="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",e)));var o=this.createColumnEvent("filterChanged",e);r&&wn(o,r),this.eventService.dispatchEvent(o)},n.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},n.prototype.setPinned=function(t){t===!0||t==="left"?this.pinned="left":t==="right"?this.pinned="right":this.pinned=null,this.dispatchStateUpdatedEvent("pinned")},n.prototype.setFirstRightPinned=function(t,e){e===void 0&&(e="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",e)))},n.prototype.setLastLeftPinned=function(t,e){e===void 0&&(e="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",e)))},n.prototype.isFirstRightPinned=function(){return this.firstRightPinned},n.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},n.prototype.isPinned=function(){return this.pinned==="left"||this.pinned==="right"},n.prototype.isPinnedLeft=function(){return this.pinned==="left"},n.prototype.isPinnedRight=function(){return this.pinned==="right"},n.prototype.getPinned=function(){return this.pinned},n.prototype.setVisible=function(t,e){e===void 0&&(e="api");var r=t===!0;this.visible!==r&&(this.visible=r,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",e))),this.dispatchStateUpdatedEvent("hide")},n.prototype.isVisible=function(){return this.visible},n.prototype.isSpanHeaderHeight=function(){var t=this.getColDef();return!t.suppressSpanHeaderHeight&&!t.autoHeaderHeight},n.prototype.getColDef=function(){return this.colDef},n.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},n.prototype.getColId=function(){return this.colId},n.prototype.getId=function(){return this.colId},n.prototype.getUniqueId=function(){return this.colId},n.prototype.getDefinition=function(){return this.colDef},n.prototype.getActualWidth=function(){return this.actualWidth},n.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},n.prototype.setAutoHeaderHeight=function(t){var e=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,e},n.prototype.createBaseColDefParams=function(t){var e={node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};return e},n.prototype.getColSpan=function(t){if(Z(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(Z(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){e===void 0&&(e="api"),r===void 0&&(r=!1),this.minWidth!=null&&(t=Math.max(t,this.minWidth)),this.maxWidth!=null&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&e!=="flex"&&e!=="gridInitializing"&&(this.flex=null),r||this.fireColumnWidthChangedEvent(e)),this.dispatchStateUpdatedEvent("width")},n.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",t))},n.prototype.isGreaterThanMax=function(t){return this.maxWidth!=null?t>this.maxWidth:!1},n.prototype.getMinWidth=function(){return this.minWidth},n.prototype.getMaxWidth=function(){return this.maxWidth},n.prototype.getFlex=function(){return this.flex||0},n.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t),this.dispatchStateUpdatedEvent("flex")},n.prototype.setMinimum=function(t){t===void 0&&(t="api"),D(this.minWidth)&&this.setActualWidth(this.minWidth,t)},n.prototype.setRowGroupActive=function(t,e){e===void 0&&(e="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",e))),this.dispatchStateUpdatedEvent("rowGroup")},n.prototype.isRowGroupActive=function(){return this.rowGroupActive},n.prototype.setPivotActive=function(t,e){e===void 0&&(e="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",e))),this.dispatchStateUpdatedEvent("pivot")},n.prototype.isPivotActive=function(){return this.pivotActive},n.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},n.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},n.prototype.setValueActive=function(t,e){e===void 0&&(e="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",e)))},n.prototype.isValueActive=function(){return this.aggregationActive},n.prototype.isAllowPivot=function(){return this.colDef.enablePivot===!0},n.prototype.isAllowValue=function(){return this.colDef.enableValue===!0},n.prototype.isAllowRowGroup=function(){return this.colDef.enableRowGroup===!0},n.prototype.getMenuTabs=function(t){var e=this.getColDef().menuTabs;return e==null&&(e=t),e},n.prototype.dispatchStateUpdatedEvent=function(t){this.eventService.dispatchEvent({type:n.EVENT_STATE_UPDATED,key:t})},n.EVENT_MOVING_CHANGED="movingChanged",n.EVENT_LEFT_CHANGED="leftChanged",n.EVENT_WIDTH_CHANGED="widthChanged",n.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",n.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",n.EVENT_VISIBLE_CHANGED="visibleChanged",n.EVENT_FILTER_CHANGED="filterChanged",n.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",n.EVENT_SORT_CHANGED="sortChanged",n.EVENT_COL_DEF_CHANGED="colDefChanged",n.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",n.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",n.EVENT_PIVOT_CHANGED="columnPivotChanged",n.EVENT_VALUE_CHANGED="columnValueChanged",n.EVENT_STATE_UPDATED="columnStateUpdated",Mh([w("gridOptionsService")],n.prototype,"gridOptionsService",void 0),Mh([w("columnUtils")],n.prototype,"columnUtils",void 0),Mh([w("columnHoverService")],n.prototype,"columnHoverService",void 0),Mh([M],n.prototype,"initialise",null),n}(),AV=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},gt=function(){function n(t,e,r,o){this.localEventService=new Li,this.expandable=!1,this.instanceId=aD(),this.expandableListenerRemoveCallback=null,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=r,this.level=o}return n.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},n.prototype.reset=function(t,e){this.colGroupDef=t,this.level=e,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setOriginalParent=function(t){this.originalParent=t},n.prototype.getOriginalParent=function(){return this.originalParent},n.prototype.getLevel=function(){return this.level},n.prototype.isVisible=function(){return this.children?this.children.some(function(t){return t.isVisible()}):!1},n.prototype.isPadding=function(){return this.padding},n.prototype.setExpanded=function(t){this.expanded=t===void 0?!1:t;var e={type:n.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(e)},n.prototype.isExpandable=function(){return this.expandable},n.prototype.isExpanded=function(){return this.expanded},n.prototype.getGroupId=function(){return this.groupId},n.prototype.getId=function(){return this.getGroupId()},n.prototype.setChildren=function(t){this.children=t},n.prototype.getChildren=function(){return this.children},n.prototype.getColGroupDef=function(){return this.colGroupDef},n.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},n.prototype.addLeafColumns=function(t){this.children&&this.children.forEach(function(e){e instanceof Ne?t.push(e):e instanceof n&&e.addLeafColumns(t)})},n.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},n.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(function(r){return r.addEventListener("visibleChanged",e)}),this.expandableListenerRemoveCallback=function(){t.getLeafColumns().forEach(function(r){return r.removeEventListener("visibleChanged",e)}),t.expandableListenerRemoveCallback=null}},n.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,e=!1,r=!1,o=this.findChildrenRemovingPadding(),i=0,a=o.length;i<a;i++){var s=o[i];if(s.isVisible()){var l=s.getColumnGroupShow();l==="open"?(t=!0,r=!0):l==="closed"?(e=!0,r=!0):(t=!0,e=!0)}}var u=t&&e&&r;if(this.expandable!==u){this.expandable=u;var c={type:n.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},n.prototype.findChildrenRemovingPadding=function(){var t=[],e=function(r){r.forEach(function(o){var i=o instanceof n&&o.isPadding();i?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",AV([Mt],n.prototype,"destroy",null),n}(),FV={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function sD(){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(D(r))return r}return null}function bV(n){return n!=null&&n.length>0}function Ge(n){if(!(!n||!n.length))return n[n.length-1]}function Aa(n,t,e){return n==null&&t==null?!0:n!=null&&t!=null&&n.length===t.length&&n.every(function(r,o){return e?e(r,t[o]):t[o]===r})}function MV(n,t){return Aa(n,t)}function lD(n){return n.sort(function(t,e){return t-e})}function NV(n,t){if(n)for(var e=n.length-2;e>=0;e--){var r=n[e]===t,o=n[e+1]===t;r&&o&&n.splice(e+1,1)}}function RS(n,t){var e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.pop())}function mn(n,t){var e=n.indexOf(t);e>=0&&n.splice(e,1)}function uD(n,t){for(var e=0;e<t.length;e++)RS(n,t[e])}function cD(n,t){for(var e=0;e<t.length;e++)mn(n,t[e])}function pd(n,t,e){n.splice(e,0,t)}function GV(n,t,e){if(!(n==null||t==null))for(var r=t.length-1;r>=0;r--){var o=t[r];pd(n,o,e)}}function nS(n,t,e){cD(n,t),t.slice().reverse().forEach(function(r){return pd(n,r,e)})}function Jn(n,t){return n.indexOf(t)>-1}function dD(n){return[].concat.apply([],n)}function oS(n,t){t==null||n==null||t.forEach(function(e){return n.push(e)})}function kV(n){return n.map(fd)}function HV(n,t){if(n!=null)for(var e=n.length-1;e>=0;e--)t(n[e],e)}var VV=Object.freeze({firstExistingValue:sD,existsAndNotEmpty:bV,last:Ge,areEqual:Aa,shallowCompare:MV,sortNumerically:lD,removeRepeatsFromArray:NV,removeFromUnorderedArray:RS,removeFromArray:mn,removeAllFromUnorderedArray:uD,removeAllFromArray:cD,insertIntoArray:pd,insertArrayIntoArray:GV,moveInArray:nS,includes:Jn,flatten:dD,pushAll:oS,toStrings:kV,forEachReverse:HV}),fD="__ag_Grid_Stop_Propagation",BV=["touchstart","touchend","touchmove","touchcancel","scroll"],aw={};function ii(n){n[fD]=!0}function _o(n){return n[fD]===!0}var TS=function(){var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},t=function(e){if(typeof aw[e]=="boolean")return aw[e];var r=document.createElement(n[e]||"div");return e="on"+e,aw[e]=e in r};return t}();function vg(n,t,e){for(var r=t;r;){var o=n.getDomData(r,e);if(o)return o;r=r.parentElement}return null}function mg(n,t){return!t||!n?!1:hD(t).indexOf(n)>=0}function pD(n){for(var t=[],e=n.target;e;)t.push(e),e=e.parentElement;return t}function hD(n){var t=n;return t.path?t.path:t.composedPath?t.composedPath():pD(t)}function gD(n,t,e,r){var o=Jn(BV,e),i=o?{passive:!0}:void 0;n&&n.addEventListener&&n.addEventListener(t,e,r,i)}var WV=Object.freeze({stopPropagationForAgGrid:ii,isStopPropagationForAgGrid:_o,isEventSupported:TS,getCtrlForEventTarget:vg,isElementInEventPath:mg,createEventPath:pD,getEventPath:hD,addSafePassiveEventListener:gD}),Cs=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(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.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=function(){return!t.destroyed}}return n.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},n.prototype.getContext=function(){return this.context},n.prototype.destroy=function(){this.destroyFunctions.forEach(function(t){return t()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:n.EVENT_DESTROYED})},n.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new Li),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?gD(this.getFrameworkOverrides(),t,e,r):t.addEventListener(e,r);var i=function(){return t.removeEventListener(e,r),o.destroyFunctions=o.destroyFunctions.filter(function(a){return a!==i}),null};return this.destroyFunctions.push(i),i}},n.prototype.setupGridOptionListener=function(t,e){var r=this;this.gridOptionsService.addEventListener(t,e);var o=function(){return r.gridOptionsService.removeEventListener(t,e),r.destroyFunctions=r.destroyFunctions.filter(function(i){return i!==o}),null};this.destroyFunctions.push(o)},n.prototype.addManagedPropertyListener=function(t,e){this.destroyed||this.setupGridOptionListener(t,e)},n.prototype.addManagedPropertyListeners=function(t,e){var r=this;if(!this.destroyed){var o=t.join("-")+this.propertyListenerId++,i=function(a){if(a.changeSet){if(a.changeSet&&a.changeSet.id===r.lastChangeSetIdLookup[o])return;r.lastChangeSetIdLookup[o]=a.changeSet.id}var s={type:"gridPropertyChanged",changeSet:a.changeSet};e(s)};t.forEach(function(a){return r.setupGridOptionListener(a,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",Cs([w("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),Cs([w("context")],n.prototype,"context",void 0),Cs([w("eventService")],n.prototype,"eventService",void 0),Cs([w("gridOptionsService")],n.prototype,"gridOptionsService",void 0),Cs([w("localeService")],n.prototype,"localeService",void 0),Cs([w("environment")],n.prototype,"environment",void 0),Cs([Mt],n.prototype,"destroy",null),n}(),UV=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Nh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},jV=function(n,t){return function(e,r){t(e,r,n)}},vD=function(n){UV(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,r,o){var i=new YI,a=this.extractExistingTreeData(o),s=a.existingCols,l=a.existingGroups,u=a.existingColKeys;i.addExistingKeys(u);var c=this.recursivelyCreateColumns(e,0,r,s,i,l),d=this.findMaxDept(c,0);this.logger.log("Number of levels for grouped columns is "+d);var f=this.balanceColumnTree(c,0,d,i),p=function(h,v){h instanceof gt&&h.setupExpandable(),h.setOriginalParent(v)};return this.columnUtils.depthFirstOriginalTreeSearch(null,f,p),{columnTree:f,treeDept:d}},t.prototype.extractExistingTreeData=function(e){var r=[],o=[],i=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(a){if(a instanceof gt){var s=a;o.push(s)}else{var l=a;i.push(l.getId()),r.push(l)}}),{existingCols:r,existingGroups:o,existingColKeys:i}},t.prototype.createForAutoGroups=function(e,r){var o=this;return e.map(function(i){return o.createAutoGroupTreeItem(r,i)})},t.prototype.createAutoGroupTreeItem=function(e,r){for(var o=this.findDepth(e),i=r,a=o-1;a>=0;a--){var s=new gt(null,"FAKE_PATH_"+r.getId()+"}_"+a,!0,a);this.createBean(s),s.setChildren([i]),i.setOriginalParent(s),i=s}return o===0&&r.setOriginalParent(null),i},t.prototype.findDepth=function(e){for(var r=0,o=e;o&&o[0]&&o[0]instanceof gt;)r++,o=o[0].getChildren();return r},t.prototype.balanceColumnTree=function(e,r,o,i){for(var a=[],s=0;s<e.length;s++){var l=e[s];if(l instanceof gt){var u=l,c=this.balanceColumnTree(u.getChildren(),r+1,o,i);u.setChildren(c),a.push(u)}else{for(var d=void 0,f=void 0,p=o-1;p>=r;p--){var h=i.getUniqueKey(null,null),v=this.createMergedColGroupDef(null),C=new gt(v,h,!0,r);this.createBean(C),f&&f.setChildren([C]),f=C,d||(d=f)}if(d&&f){a.push(d);var m=e.some(function(y){return y instanceof gt});if(m){f.setChildren([l]);continue}else{f.setChildren(e);break}}a.push(l)}}return a},t.prototype.findMaxDept=function(e,r){for(var o=r,i=0;i<e.length;i++){var a=e[i];if(a instanceof gt){var s=a,l=this.findMaxDept(s.getChildren(),r+1);o<l&&(o=l)}}return o},t.prototype.recursivelyCreateColumns=function(e,r,o,i,a,s){if(!e)return[];for(var l=new Array(e.length),u=0;u<l.length;u++){var c=e[u];this.isColumnGroup(c)?l[u]=this.createColumnGroup(o,c,r,i,a,s):l[u]=this.createColumn(o,c,i,a)}return l},t.prototype.createColumnGroup=function(e,r,o,i,a,s){var l=this.createMergedColGroupDef(r),u=a.getUniqueKey(l.groupId||null,null),c=new gt(l,u,!1,o);this.createBean(c);var d=this.findExistingGroup(r,s);d&&s.splice(d.idx,1);var f=d?.group;f&&c.setExpanded(f.isExpanded());var p=this.recursivelyCreateColumns(l.children,o+1,e,i,a,s);return c.setChildren(p),c},t.prototype.createMergedColGroupDef=function(e){var r={};return Object.assign(r,this.gridOptionsService.get("defaultColGroupDef")),Object.assign(r,e),r},t.prototype.createColumn=function(e,r,o,i){var a=this.findExistingColumn(r,o);a&&o?.splice(a.idx,1);var s=a?.column;if(s){var u=this.addColumnDefaultAndTypes(r,s.getColId());s.setColDef(u,r),this.applyColumnState(s,u)}else{var l=i.getUniqueKey(r.colId,r.field),u=this.addColumnDefaultAndTypes(r,l);s=new Ne(u,r,l,e),this.context.createBean(s)}return this.dataTypeService.addColumnListeners(s),s},t.prototype.applyColumnState=function(e,r){var o=Qn(r.flex);o!==void 0&&e.setFlex(o);var i=e.getFlex()<=0;if(i){var a=Qn(r.width);if(a!=null)e.setActualWidth(a);else{var s=e.getActualWidth();e.setActualWidth(s)}}r.sort!==void 0&&(r.sort=="asc"||r.sort=="desc"?e.setSort(r.sort):e.setSort(void 0));var l=Qn(r.sortIndex);l!==void 0&&e.setSortIndex(l);var u=ti(r.hide);u!==void 0&&e.setVisible(!u),r.pinned!==void 0&&e.setPinned(r.pinned)},t.prototype.findExistingColumn=function(e,r){if(r)for(var o=0;o<r.length;o++){var i=r[o].getUserProvidedColDef();if(i){var a=e.colId!=null;if(a){if(r[o].getId()===e.colId)return{idx:o,column:r[o]};continue}var s=e.field!=null;if(s){if(i.field===e.field)return{idx:o,column:r[o]};continue}if(i===e)return{idx:o,column:r[o]}}}},t.prototype.findExistingGroup=function(e,r){var o=e.groupId!=null;if(o)for(var i=0;i<r.length;i++){var a=r[i],s=a.getColGroupDef();if(s&&a.getId()===e.groupId)return{idx:i,group:a}}},t.prototype.addColumnDefaultAndTypes=function(e,r){var o={},i=this.gridOptionsService.get("defaultColDef");wn(o,i,!1,!0);var a=this.dataTypeService.updateColDefAndGetColumnType(o,e,r);a&&this.assignColumnTypes(a,o),wn(o,e,!1,!0);var s=this.gridOptionsService.get("autoGroupColumnDef"),l=this.gridOptionsService.isColumnsSortingCoupledToGroup();return e.rowGroup&&s&&l&&wn(o,{sort:s.sort,initialSort:s.initialSort},!1,!0),this.dataTypeService.validateColDef(o),o},t.prototype.assignColumnTypes=function(e,r){if(e.length){var o=Object.assign({},FV),i=this.gridOptionsService.get("columnTypes")||{};st(i,function(a,s){a in o?console.warn("AG Grid: the column type '"+a+"' is a default column type and cannot be overridden."):o[a]=s}),e.forEach(function(a){var s=o[a.trim()];s?wn(r,s,!1,!0):console.warn("AG Grid: colDef.type '"+a+"' does not correspond to defined gridOptions.columnTypes")})}},t.prototype.isColumnGroup=function(e){return e.children!==void 0},Nh([w("columnUtils")],t.prototype,"columnUtils",void 0),Nh([w("dataTypeService")],t.prototype,"dataTypeService",void 0),Nh([jV(0,er("loggerFactory"))],t.prototype,"setBeans",null),t=Nh([H("columnFactory")],t),t}(F),zV=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Wt=function(){function n(t,e,r,o){this.displayedChildren=[],this.localEventService=new Li,this.groupId=e,this.partId=r,this.providedColumnGroup=t,this.pinned=o}return n.createUniqueId=function(t,e){return t+"_"+e},n.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},n.prototype.getParent=function(){return this.parent},n.prototype.setParent=function(t){this.parent=t},n.prototype.getUniqueId=function(){return n.createUniqueId(this.groupId,this.partId)},n.prototype.isEmptyGroup=function(){return this.displayedChildren.length===0},n.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!t||t.length===0?!1:t.every(function(e){return e.isMoving()})},n.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(o){o instanceof n&&o.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsService.is("enableRtl")){var t=Ge(this.displayedChildren),e=t.getLeft();this.setLeft(e)}else{var r=this.displayedChildren[0].getLeft();this.setLeft(r)}else this.setLeft(null)},n.prototype.getLeft=function(){return this.left},n.prototype.getOldLeft=function(){return this.oldLeft},n.prototype.setLeft=function(t){this.oldLeft=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.getPartId=function(){return this.partId},n.prototype.isChildInThisGroupDeepSearch=function(t){var e=!1;return this.children.forEach(function(r){t===r&&(e=!0),r instanceof n&&r.isChildInThisGroupDeepSearch(t)&&(e=!0)}),e},n.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach(function(e){t+=e.getActualWidth()}),t},n.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach(function(e){e.isResizable()&&(t=!0)}),t},n.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach(function(e){t+=e.getMinWidth()||0}),t},n.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},n.prototype.getDisplayedChildren=function(){return this.displayedChildren},n.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},n.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},n.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},n.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},n.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},n.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},n.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},n.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},n.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach(function(e){e instanceof Ne?t.push(e):e instanceof n&&e.addDisplayedLeafColumns(t)})},n.prototype.addLeafColumns=function(t){this.children.forEach(function(e){e instanceof Ne?t.push(e):e instanceof n&&e.addLeafColumns(t)})},n.prototype.getChildren=function(){return this.children},n.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},n.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},n.prototype.getPaddingLevel=function(){var t=this.getParent();return!this.isPadding()||!t||!t.isPadding()?0:1+t.getPaddingLevel()},n.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var e=this;e!=null&&e.isPadding();)e=e.getParent();var r=e?e.providedColumnGroup.isExpandable():!1;if(!r){this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_DISPLAYED_CHILDREN_CHANGED));return}this.children.forEach(function(o){var i=o instanceof n&&(!o.displayedChildren||!o.displayedChildren.length);if(!i){var a=o.getColumnGroupShow();switch(a){case"open":e.providedColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case"closed":e.providedColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o);break}}}),this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_DISPLAYED_CHILDREN_CHANGED))},n.EVENT_LEFT_CHANGED="leftChanged",n.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",zV([w("gridOptionsService")],n.prototype,"gridOptionsService",void 0),n}(),_=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_CUT_START="cutStart",n.EVENT_CUT_END="cutEnd",n.EVENT_PASTE_START="pasteStart",n.EVENT_PASTE_END="pasteEnd",n.EVENT_FILL_START="fillStart",n.EVENT_FILL_END="fillEnd",n.EVENT_RANGE_DELETE_START="rangeDeleteStart",n.EVENT_RANGE_DELETE_END="rangeDeleteEnd",n.EVENT_UNDO_STARTED="undoStarted",n.EVENT_UNDO_ENDED="undoEnded",n.EVENT_REDO_STARTED="redoStarted",n.EVENT_REDO_ENDED="redoEnded",n.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",n.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",n.EVENT_CELL_CLICKED="cellClicked",n.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",n.EVENT_CELL_MOUSE_DOWN="cellMouseDown",n.EVENT_CELL_CONTEXT_MENU="cellContextMenu",n.EVENT_CELL_VALUE_CHANGED="cellValueChanged",n.EVENT_CELL_EDIT_REQUEST="cellEditRequest",n.EVENT_ROW_VALUE_CHANGED="rowValueChanged",n.EVENT_CELL_FOCUSED="cellFocused",n.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",n.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",n.EVENT_ROW_SELECTED="rowSelected",n.EVENT_SELECTION_CHANGED="selectionChanged",n.EVENT_TOOLTIP_SHOW="tooltipShow",n.EVENT_TOOLTIP_HIDE="tooltipHide",n.EVENT_CELL_KEY_DOWN="cellKeyDown",n.EVENT_CELL_MOUSE_OVER="cellMouseOver",n.EVENT_CELL_MOUSE_OUT="cellMouseOut",n.EVENT_FILTER_CHANGED="filterChanged",n.EVENT_FILTER_MODIFIED="filterModified",n.EVENT_FILTER_OPENED="filterOpened",n.EVENT_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED="advancedFilterBuilderVisibleChanged",n.EVENT_SORT_CHANGED="sortChanged",n.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",n.EVENT_ROW_CLICKED="rowClicked",n.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",n.EVENT_GRID_READY="gridReady",n.EVENT_GRID_PRE_DESTROYED="gridPreDestroyed",n.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",n.EVENT_VIEWPORT_CHANGED="viewportChanged",n.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",n.EVENT_FIRST_DATA_RENDERED="firstDataRendered",n.EVENT_DRAG_STARTED="dragStarted",n.EVENT_DRAG_STOPPED="dragStopped",n.EVENT_CHECKBOX_CHANGED="checkboxChanged",n.EVENT_ROW_EDITING_STARTED="rowEditingStarted",n.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",n.EVENT_CELL_EDITING_STARTED="cellEditingStarted",n.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",n.EVENT_BODY_SCROLL="bodyScroll",n.EVENT_BODY_SCROLL_END="bodyScrollEnd",n.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",n.EVENT_PAGINATION_CHANGED="paginationChanged",n.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",n.EVENT_STORE_REFRESHED="storeRefreshed",n.EVENT_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="paginationPixelOffsetChanged",n.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",n.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",n.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",n.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",n.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",n.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",n.EVENT_ROW_DRAG_ENTER="rowDragEnter",n.EVENT_ROW_DRAG_MOVE="rowDragMove",n.EVENT_ROW_DRAG_LEAVE="rowDragLeave",n.EVENT_ROW_DRAG_END="rowDragEnd",n.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",n.EVENT_POPUP_TO_FRONT="popupToFront",n.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",n.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",n.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",n.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",n.EVENT_KEYBOARD_FOCUS="keyboardFocus",n.EVENT_MOUSE_FOCUS="mouseFocus",n.EVENT_STORE_UPDATED="storeUpdated",n.EVENT_FILTER_DESTROYED="filterDestroyed",n.EVENT_ROW_DATA_UPDATE_STARTED="rowDataUpdateStarted",n.EVENT_ADVANCED_FILTER_ENABLED_CHANGED="advancedFilterEnabledChanged",n.EVENT_DATA_TYPES_INFERRED="dataTypesInferred",n.EVENT_FIELD_VALUE_CHANGED="fieldValueChanged",n.EVENT_FIELD_PICKER_VALUE_SELECTED="fieldPickerValueSelected",n}(),xS=function(){function n(){this.existingIds={}}return n.prototype.getInstanceIdForKey=function(t){var e=this.existingIds[t],r;return typeof e!="number"?r=0:r=e+1,this.existingIds[t]=r,r},n}(),qV=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),sw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Is="ag-Grid-AutoColumn",$V=function(n){qV(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createAutoGroupColumns=function(e){var r=this,o=[],i=this.gridOptionsService.is("treeData"),a=this.gridOptionsService.isGroupMultiAutoColumn();return i&&a&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),a=!1),a?e.forEach(function(s,l){o.push(r.createOneAutoGroupColumn(s,l))}):o.push(this.createOneAutoGroupColumn()),o},t.prototype.updateAutoGroupColumns=function(e){var r=this;e.forEach(function(o,i){return r.updateOneAutoGroupColumn(o,i)})},t.prototype.createOneAutoGroupColumn=function(e,r){var o;e?o=Is+"-"+e.getId():o=Is;var i=this.createAutoGroupColDef(o,e,r);i.colId=o;var a=new Ne(i,null,o,!0);return this.context.createBean(a),a},t.prototype.updateOneAutoGroupColumn=function(e,r){var o=e.getColDef(),i=typeof o.showRowGroup=="string"?o.showRowGroup:void 0,a=i!=null?this.columnModel.getPrimaryColumn(i):void 0,s=this.createAutoGroupColDef(e.getId(),a??void 0,r);e.setColDef(s,null),this.columnFactory.applyColumnState(e,s)},t.prototype.createAutoGroupColDef=function(e,r,o){var i=this.createBaseColDef(r),a=this.gridOptionsService.get("autoGroupColumnDef");if(wn(i,a),i=this.columnFactory.addColumnDefaultAndTypes(i,e),!this.gridOptionsService.is("treeData")){var s=Z(i.field)&&Z(i.valueGetter)&&Z(i.filterValueGetter)&&i.filter!=="agGroupColumnFilter";s&&(i.filter=!1)}o&&o>0&&(i.headerCheckboxSelection=!1);var l=this.gridOptionsService.isColumnsSortingCoupledToGroup(),u=i.valueGetter||i.field!=null;return l&&!u&&(i.sortIndex=void 0,i.initialSort=void 0),i},t.prototype.createBaseColDef=function(e){var r=this.gridOptionsService.get("autoGroupColumnDef"),o=this.localeService.getLocaleTextFunc(),i={headerName:o("group","Group")},a=r&&(r.cellRenderer||r.cellRendererSelector);if(a||(i.cellRenderer="agGroupCellRenderer"),e){var s=e.getColDef();Object.assign(i,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:s.headerValueGetter}),s.cellRenderer&&Object.assign(i,{cellRendererParams:{innerRenderer:s.cellRenderer,innerRendererParams:s.cellRendererParams}}),i.showRowGroup=e.getColId()}else i.showRowGroup=!0;return i},sw([w("columnModel")],t.prototype,"columnModel",void 0),sw([w("columnFactory")],t.prototype,"columnFactory",void 0),t=sw([H("autoGroupColService")],t),t}(F),KV=/[&<>"']/g,YV={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function XV(n){var t=String.fromCharCode;function e(d){var f=[];if(!d)return[];for(var p=d.length,h=0,v,C;h<p;)v=d.charCodeAt(h++),v>=55296&&v<=56319&&h<p?(C=d.charCodeAt(h++),(C&64512)==56320?f.push(((v&1023)<<10)+(C&1023)+65536):(f.push(v),h--)):f.push(v);return f}function r(d){if(d>=55296&&d<=57343)throw Error("Lone surrogate U+"+d.toString(16).toUpperCase()+" is not a scalar value")}function o(d,f){return t(d>>f&63|128)}function i(d){if(d>=0&&d<=31&&d!==10){var f=d.toString(16).toUpperCase(),p=f.padStart(4,"0");return"_x"+p+"_"}if(!(d&4294967168))return t(d);var h="";return d&4294965248?d&4294901760?d&4292870144||(h=t(d>>18&7|240),h+=o(d,12),h+=o(d,6)):(r(d),h=t(d>>12&15|224),h+=o(d,6)):h=t(d>>6&31|192),h+=t(d&63|128),h}for(var a=e(n),s=a.length,l=-1,u,c="";++l<s;)u=a[l],c+=i(u);return c}function QV(n){return n[0].toUpperCase()+n.substr(1).toLowerCase()}function xt(n,t){if(n==null)return null;var e=n.toString().toString();return t?e:e.replace(KV,function(r){return YV[r]})}function mD(n){if(!n||n==null)return null;var t=/([a-z])([A-Z])/g,e=/([A-Z]+)([A-Z])([a-z])/g,r=n.replace(t,"$1 $2").replace(e,"$1 $2$3").replace(/\./g," ").split(" ");return r.map(function(o){return o.substring(0,1).toUpperCase()+(o.length>1?o.substring(1,o.length):"")}).join(" ")}function yD(n){return n.replace(/[A-Z]/g,function(t){return"-"+t.toLocaleLowerCase()})}var JV=Object.freeze({utf8_encode:XV,capitalise:QV,escapeString:xt,camelCaseToHumanText:mD,camelCaseToHyphenated:yD});function Da(n){var t=new Map;return n.forEach(function(e){return t.set(e[0],e[1])}),t}function ZV(n,t){var e=new Map;return n.forEach(function(r){return e.set(t(r),r)}),e}function eB(n){var t=[];return n.forEach(function(e,r){return t.push(r)}),t}var tB=Object.freeze({convertToMap:Da,mapById:ZV,keys:eB}),CD=function(){function n(){}return n.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnsMenuParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0},n.ALL_PROPERTIES=Object.keys(n.ColDefPropertyMap),n}(),va=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},ma=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},Jo=function(){function n(){}return n.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator"],n.OBJECT_PROPERTIES=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterModel","advancedFilterParent","advancedFilterBuilderParams"],n.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],n.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],n.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSelectsChildren","groupIncludeTotalFooter","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","alwaysAggregateAtRootLevel","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","excludeHiddenColumnsFromQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDown","enterMovesDownAfterEdit","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","enableChartToolPanelsButton","suppressChartToolPanelsButton","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideFilterAllLevels","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideOnlyRefreshFilteredGroups","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","suppressCutToClipboard","enableAdvancedFilter","includeHiddenColumnsInAdvancedFilter"],n.FUNCTIONAL_PROPERTIES=["doesExternalFilterPass","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher"],n.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","groupIncludeFooter","loadingCellRendererSelector","getRowId","groupAggFiltering"],n.FUNCTION_PROPERTIES=ma(ma([],va(n.FUNCTIONAL_PROPERTIES)),va(n.CALLBACK_PROPERTIES)),n.ALL_PROPERTIES=ma(ma(ma(ma(ma(ma([],va(n.ARRAY_PROPERTIES)),va(n.OBJECT_PROPERTIES)),va(n.STRING_PROPERTIES)),va(n.NUMBER_PROPERTIES)),va(n.FUNCTION_PROPERTIES)),va(n.BOOLEAN_PROPERTIES)),n}(),iS=function(){return iS=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},iS.apply(this,arguments)},Mc=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},Nc=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},ud=function(){function n(){}return n.getCallbackForEvent=function(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substr(1)},n.getCoercionLookup=function(){var t={};return Nc(Nc(Nc(Nc(Nc([],Mc(n.ARRAY_PROPERTIES)),Mc(n.OBJECT_PROPERTIES)),Mc(n.STRING_PROPERTIES)),Mc(n.FUNCTION_PROPERTIES)),Mc(n.EVENT_CALLBACKS)).forEach(function(e){return t[e]="none"}),n.BOOLEAN_PROPERTIES.forEach(function(e){return t[e]="boolean"}),n.NUMBER_PROPERTIES.forEach(function(e){return t[e]="number"}),t},n.getValue=function(t,e){var r=n.coercionLookup[t];if(r){var o=e;switch(r){case"number":{o=n.toNumber(e);break}case"boolean":{o=n.toBoolean(e);break}case"none":{t==="groupAggFiltering"&&typeof e!="function"&&(o=n.toBoolean(e));break}}return o}},n.getGridOptionKeys=function(t,e){return Object.keys(e?n.coercionLookup:t)},n.copyAttributesToGridOptions=function(t,e,r){r===void 0&&(r=!1),typeof t!="object"&&(t={});var o=t,i=n.getGridOptionKeys(e,r);return i.forEach(function(a){var s=e[a];if(typeof s<"u"){var l=n.getValue(a,s);l!==void 0&&(o[a]=l)}}),t},n.processOnChange=function(t,e){var r=this;if(!(!t||Object.keys(t).length===0)){this.changeSetId++;var o=iS({},t);o.columnTypes&&(e.setColumnTypes(o.columnTypes.currentValue,"gridOptionsChanged"),delete o.columnTypes),o.autoGroupColumnDef&&(e.setAutoGroupColumnDef(o.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete o.autoGroupColumnDef),o.defaultColDef&&(e.setDefaultColDef(o.defaultColDef.currentValue,"gridOptionsChanged"),delete o.defaultColDef),o.columnDefs&&(e.setColumnDefs(o.columnDefs.currentValue,"gridOptionsChanged"),delete o.columnDefs);var i=Object.keys(o).map(function(l){var u=l,c=n.getValue(u,o[u].currentValue),d=e.__setPropertyOnly(u,c);return{gridKey:u,coercedValue:c,isChanged:d}}).filter(function(l){return l.isChanged}),a=i.map(function(l){return l.gridKey});i.forEach(function(l){return e.__updateProperty(l.gridKey,l.coercedValue,l.isChanged,{id:r.changeSetId,properties:a})});var s={type:_.EVENT_COMPONENT_STATE_CHANGED};st(t,function(l,u){s[l]=u}),e.dispatchEvent(s)}},n.toBoolean=function(t){return typeof t=="boolean"?t:typeof t=="string"?t.toUpperCase()==="TRUE"||t=="":!1},n.toNumber=function(t){if(typeof t=="number")return t;if(typeof t=="string")return Number(t)},n.EVENTS=Ts(_),n.EXCLUDED_INTERNAL_EVENTS=[_.EVENT_SCROLLBAR_WIDTH_CHANGED,_.EVENT_CHECKBOX_CHANGED,_.EVENT_HEIGHT_SCALE_CHANGED,_.EVENT_BODY_HEIGHT_CHANGED,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,_.EVENT_SCROLL_VISIBILITY_CHANGED,_.EVENT_COLUMN_HOVER_CHANGED,_.EVENT_FLASH_CELLS,_.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,_.EVENT_DISPLAYED_ROWS_CHANGED,_.EVENT_LEFT_PINNED_WIDTH_CHANGED,_.EVENT_RIGHT_PINNED_WIDTH_CHANGED,_.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,_.EVENT_POPUP_TO_FRONT,_.EVENT_KEYBOARD_FOCUS,_.EVENT_MOUSE_FOCUS,_.EVENT_STORE_UPDATED,_.EVENT_COLUMN_PANEL_ITEM_DRAG_START,_.EVENT_COLUMN_PANEL_ITEM_DRAG_END,_.EVENT_FILL_START,_.EVENT_FILL_END,_.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,_.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,_.EVENT_FULL_WIDTH_ROW_FOCUSED,_.EVENT_HEADER_HEIGHT_CHANGED,_.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,_.EVENT_CELL_FOCUS_CLEARED,_.EVENT_GRID_STYLES_CHANGED,_.EVENT_FILTER_DESTROYED,_.EVENT_ROW_DATA_UPDATE_STARTED,_.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,_.EVENT_DATA_TYPES_INFERRED,_.EVENT_FIELD_VALUE_CHANGED,_.EVENT_FIELD_PICKER_VALUE_SELECTED],n.PUBLIC_EVENTS=n.EVENTS.filter(function(t){return!Jn(n.EXCLUDED_INTERNAL_EVENTS,t)}),n.EVENT_CALLBACKS=n.EVENTS.map(function(t){return n.getCallbackForEvent(t)}),n.STRING_PROPERTIES=Jo.STRING_PROPERTIES,n.OBJECT_PROPERTIES=Jo.OBJECT_PROPERTIES,n.ARRAY_PROPERTIES=Jo.ARRAY_PROPERTIES,n.NUMBER_PROPERTIES=Jo.NUMBER_PROPERTIES,n.BOOLEAN_PROPERTIES=Jo.BOOLEAN_PROPERTIES,n.FUNCTION_PROPERTIES=Jo.FUNCTION_PROPERTIES,n.ALL_PROPERTIES=Jo.ALL_PROPERTIES,n.ALL_PROPERTIES_SET=new Set(Jo.ALL_PROPERTIES),n.changeSetId=0,n.coercionLookup=n.getCoercionLookup(),n}(),rB=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function wD(n,t,e){var r={},o=n.filter(function(i){return!t.some(function(a){return a===i})});return o.length>0&&o.forEach(function(i){return r[i]=Sd(i,e).values}),r}function Sd(n,t,e,r){var o,i,a=t.map(function(h,v){return{value:h,relevance:nB(n.toLowerCase(),h.toLocaleLowerCase()),idx:v}});if(a.sort(function(h,v){return v.relevance-h.relevance}),e&&(a=a.filter(function(h){return h.relevance!==0})),a.length>0&&r&&r>0){var s=a[0].relevance,l=s*r;a=a.filter(function(h){return l-h.relevance<0})}var u=[],c=[];try{for(var d=rB(a),f=d.next();!f.done;f=d.next()){var p=f.value;u.push(p.value),c.push(p.idx)}}catch(h){o={error:h}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}return{values:u,indices:c}}function nB(n,t){for(var e=n.replace(/\s/g,""),r=t.replace(/\s/g,""),o=0,i=-1,a=0;a<e.length;a++){var s=r.indexOf(e[a],i+1);s!==-1&&(i=s,o+=100-i*100/1e4*100)}return o}var oB=Object.freeze({fuzzyCheckStrings:wD,fuzzySuggestions:Sd}),Gh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ya=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},Ca=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n};function Xn(n,t,e,r){var o=e?"Please use '"+e+"' instead. ":"";ge(function(){return console.warn("AG Grid: since v"+n+", '"+t+"' is deprecated. "+o+(r??""))},"Deprecated_"+t)}var JL=["__ob__","__v_skip","__metadata__"],iB=function(){function n(){this.deprecatedProperties={rememberGroupStateWhenNewData:{version:"24",message:"Now that transaction updates are possible and they keep group state, this feature is no longer needed."},serverSideFilteringAlwaysResets:{version:"28.0",newProp:"serverSideOnlyRefreshFilteredGroups",copyToNewProp:!0},serverSideSortingAlwaysResets:{version:"28.0",newProp:"serverSideSortAllLevels",copyToNewProp:!0},suppressReactUi:{version:"28",message:"The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."},processSecondaryColDef:{version:"28",newProp:"processPivotResultColDef",copyToNewProp:!0},processSecondaryColGroupDef:{version:"28",newProp:"processPivotResultColGroupDef",copyToNewProp:!0},getServerSideStoreParams:{version:"28",newProp:"getServerSideGroupLevelParams",copyToNewProp:!0},serverSideInfiniteScroll:{version:"29",message:"Infinite Scrolling is now the default behaviour. This can be suppressed with `suppressServerSideInfiniteScroll`."},enableChartToolPanelsButton:{version:"29",message:"The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true."},functionsPassive:{version:"29.2"},onColumnRowGroupChangeRequest:{version:"29.2"},onColumnPivotChangeRequest:{version:"29.2"},onColumnValueChangeRequest:{version:"29.2"},onColumnAggFuncChangeRequest:{version:"29.2"},serverSideFilterAllLevels:{version:"30",message:"All server-side group levels are now filtered by default. This can be toggled using `serverSideOnlyRefreshFilteredGroups`."},suppressAggAtRootLevel:{version:"30",message:"The root level aggregation is now suppressed by default. This can be toggled using `alwaysAggregateAtRootLevel`."},excludeHiddenColumnsFromQuickFilter:{version:"30",message:"Hidden columns are now excluded from the Quick Filter by default. This can be toggled using `includeHiddenColumnsInQuickFilter`."},enterMovesDown:{version:"30",newProp:"enterNavigatesVertically",copyToNewProp:!0},enterMovesDownAfterEdit:{version:"30",newProp:"enterNavigatesVerticallyAfterEdit",copyToNewProp:!0},suppressParentsInRowNodes:{version:"30.2",message:"Using suppressParentsInRowNodes is no longer recommended. To serialize nodes it is now recommended to instead remove the parent node reference before serialization."}}}return n.prototype.pickOneWarning=function(t,e){console.warn("AG Grid: "+t+" and "+e+" do not work with each other, you need to pick one.")},n.prototype.init=function(){var t=this;if(this.checkForDeprecated(),this.checkForViolations(),this.gridOptions.suppressPropertyNamesCheck!==!0&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),this.checkColumnDefViolations(),this.gridOptionsService.is("groupSelectsChildren")&&this.gridOptionsService.is("suppressParentsInRowNodes")&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.gridOptionsService.is("groupSelectsChildren")&&this.gridOptionsService.get("rowSelection")!=="multiple"&&console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.gridOptionsService.is("groupRemoveSingleChildren")&&this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRemoveSingleChildren","groupHideOpenParents"),this.gridOptionsService.isRowModelType("serverSide")){var e=function(o,i){return"AG Grid: '"+o+"' is not supported on the Server-Side Row Model."+(i?" Please use "+i+" instead.":"")};this.gridOptionsService.exists("groupDefaultExpanded")&&console.warn(e("groupDefaultExpanded","isServerSideGroupOpenByDefault callback")),this.gridOptionsService.exists("groupIncludeFooter")&&this.gridOptionsService.is("suppressServerSideInfiniteScroll")&&console.warn(e("groupIncludeFooter")),this.gridOptionsService.exists("groupIncludeTotalFooter")&&console.warn(e("groupIncludeTotalFooter"))}this.gridOptionsService.is("enableRangeSelection")?J.__assertRegistered(g.ModuleNames.RangeSelectionModule,"enableRangeSelection",this.gridOptionsService.getGridId()):(this.gridOptionsService.is("enableRangeHandle")||this.gridOptionsService.is("enableFillHandle"))&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var r=function(o,i){return t.gridOptionsService.exists(o)&&J.__assertRegistered(i,o,t.gridOptionsService.getGridId())};r("sideBar",g.ModuleNames.SideBarModule),r("statusBar",g.ModuleNames.StatusBarModule),r("enableCharts",g.ModuleNames.GridChartsModule),r("getMainMenuItems",g.ModuleNames.MenuModule),r("getContextMenuItems",g.ModuleNames.MenuModule),r("allowContextMenuWithControlKey",g.ModuleNames.MenuModule),r("enableAdvancedFilter",g.ModuleNames.AdvancedFilterModule),r("treeData",g.ModuleNames.RowGroupingModule),r("enableRangeSelection",g.ModuleNames.RangeSelectionModule),r("masterDetail",g.ModuleNames.MasterDetailModule)},n.prototype.checkColumnDefProperties=function(){var t=this;if(this.gridOptions.columnDefs!=null){var e=CD.ALL_PROPERTIES,r=function(o,i){var a=Object.getOwnPropertyNames(o);t.checkProperties(a,Ca(Ca([],ya(e)),ya(JL)),e,i,"https://www.ag-grid.com/javascript-data-grid/column-properties/"),o.children&&o.children.forEach(function(s){return r(s,"columnDefs.children")})};this.gridOptions.columnDefs.forEach(function(o){return r(o,"columnDefs")}),this.gridOptions.defaultColDef&&r(this.gridOptions.defaultColDef,"defaultColDef")}},n.prototype.checkColumnDefViolations=function(){var t,e=(t=this.gridOptionsService.get("rowModelType"))!==null&&t!==void 0?t:"clientSide",r={infinite:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],viewport:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],serverSide:["headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],clientSide:[]},o=r[e];if(o){var i=this.gridOptionsService.get("rowSelection")==="multiple",a=["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],s=function(l){i||a.forEach(function(u){u in l&&l[u]&&console.warn("AG Grid: Column property "+u+" is not supported unless rowSelection='multiple'.")}),o.forEach(function(u){u in l&&l[u]&&console.warn("AG Grid: Column property "+u+" is not supported with the row model type "+e+".")})};this.gridOptions.columnDefs!=null&&this.gridOptions.columnDefs.forEach(function(l){return s(l)}),this.gridOptions.autoGroupColumnDef!=null&&s(this.gridOptions.autoGroupColumnDef),this.gridOptions.defaultColDef!=null&&s(this.gridOptions.defaultColDef)}},n.prototype.checkGridOptionsProperties=function(){var t=Object.getOwnPropertyNames(this.gridOptions),e=Ca(Ca([],ya(Jo.ALL_PROPERTIES)),ya(ud.EVENT_CALLBACKS)),r=Ca(Ca(Ca(Ca([],ya(e)),["api","columnApi"]),ya(JL)),ya(Object.keys(this.deprecatedProperties)));this.checkProperties(t,r,e,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},n.prototype.checkProperties=function(t,e,r,o,i){var a=wD(t,e,r);st(a,function(s,l){ge(function(){return console.warn("AG Grid: invalid "+o+" property '"+s+"' did you mean any of these: "+l.slice(0,8).join(", "))},"invalidProperty"+o+s)}),Object.keys(a).length>0&&ge(function(){return console.warn("AG Grid: to see all the valid "+o+" properties please check: "+i)},"invalidProperties"+o+i)},n.prototype.checkForDeprecated=function(){var t=this.gridOptions;Object.entries(this.deprecatedProperties).forEach(function(e){var r,o=ya(e,2),i=o[0],a=o[1],s=t[i];s&&(Xn(a.version,i,a.newProp,a.message),a.copyToNewProp&&a.newProp&&t[a.newProp]==null&&(t[a.newProp]=(r=a.newPropValue)!==null&&r!==void 0?r:s))}),t.serverSideStoreType&&(console.warn("AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store."),t.suppressServerSideInfiniteScroll=t.serverSideStoreType!=="partial")},n.prototype.checkForViolations=function(){this.gridOptionsService.is("treeData")&&this.treeDataViolations()},n.prototype.treeDataViolations=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.gridOptionsService.exists("getDataPath")||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.gridOptionsService.isRowModelType("serverSide")&&(this.gridOptionsService.exists("isServerSideGroup")||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."),this.gridOptionsService.exists("getServerSideGroupKey")||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."))},Gh([w("gridOptions")],n.prototype,"gridOptions",void 0),Gh([w("gridOptionsService")],n.prototype,"gridOptionsService",void 0),Gh([M],n.prototype,"init",null),n=Gh([H("gridOptionsValidator")],n),n}();function aS(n,t){var e=["groupRows","multipleColumns","custom","singleColumn"];return e.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+e.join("', '")+"'"),!1):t===n}function aB(n,t){var e=["auto","custom"];return e.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+e.join("', '")+"'"),!1):t===n}var sB=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zt=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},lB=function(n,t){return function(e,r){t(e,r,n)}},uB=function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(e[r[o]]=n[r[o]]);return e},vo=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},mo=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},ZL=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},SD=function(n){sB(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsHash="",e.headerViewportColumns=[],e.viewportColumnsCenter=[],e.headerViewportColumnsCenter=[],e.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.shouldQueueResizeOperations=!1,e.resizeOperationQueue=[],e}return t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.is("suppressColumnVirtualisation");var r=this.gridOptionsService.is("pivotMode");this.isPivotSettingAllowed(r)&&(this.pivotMode=r),this.addManagedPropertyListeners(["groupDisplayType","treeData"],function(){return e.buildAutoGroupColumns()}),this.addManagedPropertyListener("autoGroupColumnDef",function(){return e.onAutoGroupColumnDefChanged()}),this.addManagedPropertyListener("defaultColDef",function(o){return e.onSharedColDefChanged(o.source)}),this.addManagedPropertyListener("columnTypes",function(o){return e.onSharedColDefChanged(o.source)})},t.prototype.buildAutoGroupColumns=function(){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged"))},t.prototype.onAutoGroupColumnDefChanged=function(){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns)},t.prototype.onSharedColDefChanged=function(e){e===void 0&&(e="api"),this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns),this.createColumnsFromColumnDefs(!0,e)},t.prototype.setColumnDefs=function(e,r){r===void 0&&(r="api");var o=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(o,r)},t.prototype.recreateColumnDefs=function(e){e===void 0&&(e="api"),this.onSharedColDefChanged(e)},t.prototype.destroyOldColumns=function(e,r){var o={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(a){o[a.getInstanceId()]=a}),r&&this.columnUtils.depthFirstOriginalTreeSearch(null,r,function(a){o[a.getInstanceId()]=null});var i=Object.values(o).filter(function(a){return a!=null});this.destroyBeans(i)}},t.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},t.prototype.createColumnsFromColumnDefs=function(e,r){var o=this;r===void 0&&(r="api");var i=e?this.compareColumnStatesAndDispatchEvents(r):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var a=this.primaryColumns,s=this.primaryColumnTree,l=this.columnFactory.createColumnTree(this.columnDefs,!0,s);this.destroyOldColumns(this.primaryColumnTree,l.columnTree),this.primaryColumnTree=l.columnTree,this.primaryHeaderRowCount=l.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(d){return o.primaryColumnsMap[d.getId()]=d}),this.extractRowGroupColumns(r,a),this.extractPivotColumns(r,a),this.extractValueColumns(r,a),this.ready=!0;var u=this.gridColsArePrimary===void 0,c=this.gridColsArePrimary||u||this.autoGroupsNeedBuilding;c&&(this.updateGridColumns(),e&&this.gridColsArePrimary&&!this.gridOptionsService.is("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(r),this.checkViewportColumns()),this.dispatchEverythingChanged(r),i&&i(),this.dispatchNewColumnsLoaded(r)},t.prototype.dispatchNewColumnsLoaded=function(e){var r={type:_.EVENT_NEW_COLUMNS_LOADED,source:e};this.eventService.dispatchEvent(r)},t.prototype.dispatchEverythingChanged=function(e){e===void 0&&(e="api");var r={type:_.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(r)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,r=this.primaryColumns;if(r){var o=r.filter(function(a){return e.gridColumns.indexOf(a)>=0}),i=this.gridColumns.filter(function(a){return o.indexOf(a)<0});this.gridColumns=mo(mo([],vo(i)),vo(o)),this.gridColumns=this.placeLockedColumns(this.gridColumns)}},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsService.is("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var r=e,o=[];r!=null;)o.push(r),r=this.getDisplayedColAfter(r);return o},t.prototype.checkViewportColumns=function(e){if(e===void 0&&(e=!1),this.displayedColumnsCenter!=null){var r=this.extractViewport();if(r){var o={type:_.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(o)}}},t.prototype.setViewportPosition=function(e,r,o){o===void 0&&(o=!1),(e!==this.scrollWidth||r!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=r,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(o))},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return e&&this.gridOptionsService.is("treeData")?(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1):!0},t.prototype.setPivotMode=function(e,r){if(r===void 0&&(r="api"),!(e===this.pivotMode||!this.isPivotSettingAllowed(this.pivotMode))){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(r);var o={type:_.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.getSecondaryPivotColumn=function(e,r){if(Z(this.secondaryColumns))return null;var o=this.getPrimaryColumn(r),i=null;return this.secondaryColumns.forEach(function(a){var s=a.getColDef().pivotKeys,l=a.getColDef().pivotValueColumn,u=Aa(s,e),c=l===o;u&&c&&(i=a)}),i},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var r,o;this.gridOptionsService.is("enableRtl")?(r=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?Ge(this.displayedColumnsRight):null):(r=this.displayedColumnsLeft?Ge(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(i){i.setLastLeftPinned(i===r,e),i.setFirstRightPinned(i===o,e)})},t.prototype.autoSizeColumns=function(e){var r=this;if(this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return r.autoSizeColumns(e)});return}var o=e.columns,i=e.skipHeader,a=e.skipHeaderGroups,s=e.stopAtGroup,l=e.source,u=l===void 0?"api":l;this.animationFrameService.flushAllFrames();for(var c=[],d=-1,f=i??this.gridOptionsService.is("skipHeaderOnAutoSize"),p=a??f;d!==0;)d=0,this.actionOnGridColumns(o,function(h){if(c.indexOf(h)>=0)return!1;var v=r.autoWidthCalculator.getPreferredWidthForColumn(h,f);if(v>0){var C=r.normaliseColumnWidth(h,v);h.setActualWidth(C,u),c.push(h),d++}return!0},u);p||this.autoSizeColumnGroupsByColumns(o,u,s),this.dispatchColumnResizedEvent(c,!0,"autosizeColumns")},t.prototype.dispatchColumnResizedEvent=function(e,r,o,i){if(i===void 0&&(i=null),e&&e.length){var a={type:_.EVENT_COLUMN_RESIZED,columns:e,column:e.length===1?e[0]:null,flexColumns:i,finished:r,source:o};this.eventService.dispatchEvent(a)}},t.prototype.dispatchColumnChangedEvent=function(e,r,o){var i={type:e,columns:r,column:r&&r.length==1?r[0]:null,source:o};this.eventService.dispatchEvent(i)},t.prototype.dispatchColumnMovedEvent=function(e){var r=e.movedColumns,o=e.source,i=e.toIndex,a=e.finished,s={type:_.EVENT_COLUMN_MOVED,columns:r,column:r&&r.length===1?r[0]:null,toIndex:i,finished:a,source:o};this.eventService.dispatchEvent(s)},t.prototype.dispatchColumnPinnedEvent=function(e,r){if(e.length){var o=e.length===1?e[0]:null,i=this.getCommonValue(e,function(s){return s.getPinned()}),a={type:_.EVENT_COLUMN_PINNED,pinned:i??null,columns:e,column:o,source:r};this.eventService.dispatchEvent(a)}},t.prototype.dispatchColumnVisibleEvent=function(e,r){if(e.length){var o=e.length===1?e[0]:null,i=this.getCommonValue(e,function(s){return s.isVisible()}),a={type:_.EVENT_COLUMN_VISIBLE,visible:i,columns:e,column:o,source:r};this.eventService.dispatchEvent(a)}},t.prototype.autoSizeColumn=function(e,r,o){o===void 0&&(o="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:r,skipHeaderGroups:!0,source:o})},t.prototype.autoSizeColumnGroupsByColumns=function(e,r,o){var i,a,s,l,u=new Set,c=this.getGridColumns(e);c.forEach(function(S){for(var E=S.getParent();E&&E!=o;)E.isPadding()||u.add(E),E=E.getParent()});var d,f=[];try{for(var p=ZL(u),h=p.next();!h.done;h=p.next()){var v=h.value;try{for(var C=(s=void 0,ZL(this.ctrlsService.getHeaderRowContainerCtrls())),m=C.next();!m.done;m=C.next()){var y=m.value;if(d=y.getHeaderCtrlForColumn(v),d)break}}catch(S){s={error:S}}finally{try{m&&!m.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}d&&d.resizeLeafColumnsToFit(r)}}catch(S){i={error:S}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}return f},t.prototype.autoSizeAllColumns=function(e,r){var o=this;if(r===void 0&&(r="api"),this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return o.autoSizeAllColumns(e,r)});return}var i=this.getAllDisplayedColumns();this.autoSizeColumns({columns:i,skipHeader:e,source:r})},t.prototype.getColumnsFromTree=function(e){var r=[],o=function(i){for(var a=0;a<i.length;a++){var s=i[a];s instanceof Ne?r.push(s):s instanceof gt&&o(s.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.isColSpanActive=function(){return this.colSpanActive},t.prototype.getDisplayedColumnsForRow=function(e,r,o,i){for(var a=[],s=null,l=function(d){var f=r[d],p=r.length-d,h=Math.min(f.getColSpan(e),p),v=[f];if(h>1){for(var C=h-1,m=1;m<=C;m++)v.push(r[d+m]);d+=C}var y;if(o?(y=!1,v.forEach(function(E){o(E)&&(y=!0)})):y=!0,y){if(a.length===0&&s){var S=i?i(f):!1;S&&a.push(s)}a.push(f)}s=f,u=d},u,c=0;c<r.length;c++)l(c),c=u;return a},t.prototype.getViewportCenterColumnsForRow=function(e){var r=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var o=function(a){var s=a.getLeft();return D(s)&&s>r.viewportLeft},i=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,i,o)},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInHeaderViewport=function(e){return e.isAutoHeaderHeight()?!0:this.isColumnInRowViewport(e)},t.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var r=e.getLeft()||0,o=r+e.getActualWidth(),i=this.viewportLeft-200,a=this.viewportRight+200,s=r<i&&o<i,l=r>a&&o>a;return!s&&!l},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,r,o,i,a,s){var l=this;if(s===void 0&&(s="api"),!(!e||Cn(e))){var u=!1;if(e.forEach(function(d){var f=l.getPrimaryColumn(d);if(f){if(o){if(r.indexOf(f)>=0)return;r.push(f)}else{if(r.indexOf(f)<0)return;mn(r,f)}i(f),u=!0}}),!!u){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s);var c={type:a,columns:r,column:r.length===1?r[0]:null,source:s};this.eventService.dispatchEvent(c)}}},t.prototype.setRowGroupColumns=function(e,r){r===void 0&&(r="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,_.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),r)},t.prototype.setRowGroupActive=function(e,r,o){e!==r.isRowGroupActive()&&(r.setRowGroupActive(e,o),e&&!this.gridOptionsService.is("suppressRowGroupHidesColumns")&&this.setColumnVisible(r,!1,o),!e&&!this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup")&&this.setColumnVisible(r,!0,o))},t.prototype.addRowGroupColumn=function(e,r){r===void 0&&(r="api"),e&&this.addRowGroupColumns([e],r)},t.prototype.addRowGroupColumns=function(e,r){r===void 0&&(r="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),_.EVENT_COLUMN_ROW_GROUP_CHANGED,r)},t.prototype.removeRowGroupColumns=function(e,r){r===void 0&&(r="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),_.EVENT_COLUMN_ROW_GROUP_CHANGED,r)},t.prototype.removeRowGroupColumn=function(e,r){r===void 0&&(r="api"),e&&this.removeRowGroupColumns([e],r)},t.prototype.addPivotColumns=function(e,r){r===void 0&&(r="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(o){return o.setPivotActive(!0,r)},_.EVENT_COLUMN_PIVOT_CHANGED,r)},t.prototype.setPivotColumns=function(e,r){r===void 0&&(r="api"),this.setPrimaryColumnList(e,this.pivotColumns,_.EVENT_COLUMN_PIVOT_CHANGED,!0,function(o,i){i.setPivotActive(o,r)},r)},t.prototype.addPivotColumn=function(e,r){r===void 0&&(r="api"),this.addPivotColumns([e],r)},t.prototype.removePivotColumns=function(e,r){r===void 0&&(r="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(o){return o.setPivotActive(!1,r)},_.EVENT_COLUMN_PIVOT_CHANGED,r)},t.prototype.removePivotColumn=function(e,r){r===void 0&&(r="api"),this.removePivotColumns([e],r)},t.prototype.setPrimaryColumnList=function(e,r,o,i,a,s){var l=this,u=new Map;r.forEach(function(c,d){return u.set(c,d)}),r.length=0,D(e)&&e.forEach(function(c){var d=l.getPrimaryColumn(c);d&&r.push(d)}),r.forEach(function(c,d){var f=u.get(c);if(f===void 0){u.set(c,0);return}i&&f!==d||u.delete(c)}),(this.primaryColumns||[]).forEach(function(c){var d=r.indexOf(c)>=0;a(d,c)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s),this.dispatchColumnChangedEvent(o,mo([],vo(u.keys())),s)},t.prototype.setValueColumns=function(e,r){r===void 0&&(r="api"),this.setPrimaryColumnList(e,this.valueColumns,_.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),r)},t.prototype.setValueActive=function(e,r,o){if(e!==r.isValueActive()&&(r.setValueActive(e,o),e&&!r.getAggFunc())){var i=this.aggFuncService.getDefaultAggFunc(r);r.setAggFunc(i)}},t.prototype.addValueColumns=function(e,r){r===void 0&&(r="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),_.EVENT_COLUMN_VALUE_CHANGED,r)},t.prototype.addValueColumn=function(e,r){r===void 0&&(r="api"),e&&this.addValueColumns([e],r)},t.prototype.removeValueColumn=function(e,r){r===void 0&&(r="api"),this.removeValueColumns([e],r)},t.prototype.removeValueColumns=function(e,r){r===void 0&&(r="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),_.EVENT_COLUMN_VALUE_CHANGED,r)},t.prototype.normaliseColumnWidth=function(e,r){var o=e.getMinWidth();D(o)&&r<o&&(r=o);var i=e.getMaxWidth();return D(i)&&e.isGreaterThanMax(r)&&(r=i),r},t.prototype.getPrimaryOrGridColumn=function(e){var r=this.getPrimaryColumn(e);return r||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,r,o,i){var a=this;i===void 0&&(i="api");var s=[];e.forEach(function(l){var u=a.getPrimaryOrGridColumn(l.key);if(u){s.push({width:l.newWidth,ratios:[1],columns:[u]});var c=a.gridOptionsService.get("colResizeDefault")==="shift";if(c&&(r=!r),r){var d=a.getDisplayedColAfter(u);if(!d)return;var f=u.getActualWidth()-l.newWidth,p=d.getActualWidth()+f;s.push({width:p,ratios:[1],columns:[d]})}}}),s.length!==0&&this.resizeColumnSets({resizeSets:s,finished:o,source:i})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var r=e.columns,o=e.width,i=0,a=0,s=!0;r.forEach(function(c){var d=c.getMinWidth();i+=d||0;var f=c.getMaxWidth();D(f)&&f>0?a+=f:s=!1});var l=o>=i,u=!s||o<=a;return l&&u},t.prototype.resizeColumnSets=function(e){var r=this,o=e.resizeSets,i=e.finished,a=e.source,s=!o||o.every(function(h){return r.checkMinAndMaxWidthsForSet(h)});if(!s){if(i){var l=o&&o.length>0?o[0].columns:null;this.dispatchColumnResizedEvent(l,i,a)}return}var u=[],c=[];o.forEach(function(h){var v=h.width,C=h.columns,m=h.ratios,y={},S={};C.forEach(function(T){return c.push(T)});for(var E=!0,R=0,x=function(){if(R++,R>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";E=!1;var T=[],L=0,I=v;C.forEach(function(W,Y){var ue=S[W.getId()];if(ue)I-=y[W.getId()];else{T.push(W);var ee=m[Y];L+=ee}});var b=1/L;T.forEach(function(W,Y){var ue=Y===T.length-1,ee;ue?ee=I:(ee=Math.round(m[Y]*v*b),I-=ee);var oe=W.getMinWidth(),U=W.getMaxWidth();D(oe)&&ee<oe?(ee=oe,S[W.getId()]=!0,E=!0):D(U)&&U>0&&ee>U&&(ee=U,S[W.getId()]=!0,E=!0),y[W.getId()]=ee})};E;){var P=x();if(P==="break")break}C.forEach(function(T){var L=y[T.getId()],I=T.getActualWidth();I!==L&&(T.setActualWidth(L,a),u.push(T))})});var d=u.length>0,f=[];d&&(f=this.refreshFlexedColumns({resizingCols:c,skipSetLeft:!0}),this.setLeftValues(a),this.updateBodyWidths(),this.checkViewportColumns());var p=c.concat(f);(d||i)&&this.dispatchColumnResizedEvent(p,i,a,f)},t.prototype.setColumnAggFunc=function(e,r,o){if(o===void 0&&(o="api"),!!e){var i=this.getPrimaryColumn(e);i&&(i.setAggFunc(r),this.dispatchColumnChangedEvent(_.EVENT_COLUMN_VALUE_CHANGED,[i],o))}},t.prototype.moveRowGroupColumn=function(e,r,o){o===void 0&&(o="api");var i=this.rowGroupColumns[e],a=this.rowGroupColumns.slice(e,r);this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(r,0,i);var s={type:_.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:a,column:a.length===1?a[0]:null,source:o};this.eventService.dispatchEvent(s)},t.prototype.moveColumns=function(e,r,o,i){if(o===void 0&&(o="api"),i===void 0&&(i=!0),this.columnAnimationService.start(),r>this.gridColumns.length-e.length){console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+r),console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");return}var a=this.getGridColumns(e),s=!this.doesMovePassRules(a,r);s||(nS(this.gridColumns,a,r),this.updateDisplayedColumns(o),this.dispatchColumnMovedEvent({movedColumns:a,source:o,toIndex:r,finished:i}),this.columnAnimationService.finish())},t.prototype.doesMovePassRules=function(e,r){var o=this.getProposedColumnOrder(e,r);return this.doesOrderPassRules(o)},t.prototype.doesOrderPassRules=function(e){return!(!this.doesMovePassMarryChildren(e)||!this.doesMovePassLockedPositions(e))},t.prototype.getProposedColumnOrder=function(e,r){var o=this.gridColumns.slice();return nS(o,e,r),o},t.prototype.sortColumnsLikeGridColumns=function(e){var r=this;if(!(!e||e.length<=1)){var o=e.filter(function(i){return r.gridColumns.indexOf(i)<0}).length>0;o||e.sort(function(i,a){var s=r.gridColumns.indexOf(i),l=r.gridColumns.indexOf(a);return s-l})}},t.prototype.doesMovePassLockedPositions=function(e){var r=0,o=!0,i=function(a){return a?a===!0||a==="left"?0:2:1};return e.forEach(function(a){var s=i(a.getColDef().lockPosition);s<r&&(o=!1),r=s}),o},t.prototype.doesMovePassMarryChildren=function(e){var r=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){if(o instanceof gt){var i=o,a=i.getColGroupDef(),s=a&&a.marryChildren;if(s){var l=[];i.getLeafColumns().forEach(function(p){var h=e.indexOf(p);l.push(h)});var u=Math.max.apply(Math,l),c=Math.min.apply(Math,l),d=u-c,f=i.getLeafColumns().length-1;d>f&&(r=!1)}}}),r},t.prototype.moveColumn=function(e,r,o){o===void 0&&(o="api"),this.moveColumns([e],r,o)},t.prototype.moveColumnByIndex=function(e,r,o){o===void 0&&(o="api");var i=this.gridColumns[e];this.moveColumn(i,r,o)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var r=this.primaryColumns.slice();return this.gridColsArePrimary?r.sort(function(o,i){return e.gridColumns.indexOf(o)-e.gridColumns.indexOf(i)}):this.lastPrimaryOrder&&r.sort(function(o,i){return e.lastPrimaryOrder.indexOf(o)-e.lastPrimaryOrder.indexOf(i)}),this.columnDefFactory.buildColumnDefs(r,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),r=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e;var i=this.bodyWidth!==e||this.leftWidth!==r||this.rightWidth!==o;if(i){this.bodyWidth=e,this.leftWidth=r,this.rightWidth=o;var a={type:_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(a)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.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 Cn(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return Cn(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,r,o){o===void 0&&(o="api"),this.setColumnsVisible([e],r,o)},t.prototype.setColumnsVisible=function(e,r,o){r===void 0&&(r=!1),o===void 0&&(o="api"),this.applyColumnState({state:e.map(function(i){return{colId:typeof i=="string"?i:i.getColId(),hide:!r}})},o)},t.prototype.setColumnPinned=function(e,r,o){o===void 0&&(o="api"),e&&this.setColumnsPinned([e],r,o)},t.prototype.setColumnsPinned=function(e,r,o){if(o===void 0&&(o="api"),this.gridOptionsService.isDomLayout("print")){console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'");return}this.columnAnimationService.start();var i;r===!0||r==="left"?i="left":r==="right"?i="right":i=null,this.actionOnGridColumns(e,function(a){return a.getPinned()!==i?(a.setPinned(i),!0):!1},o,function(){var a={type:_.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,source:o};return a}),this.columnAnimationService.finish()},t.prototype.actionOnGridColumns=function(e,r,o,i){var a=this;if(!Cn(e)){var s=[];if(e.forEach(function(u){var c=a.getGridColumn(u);if(c){var d=r(c);d!==!1&&s.push(c)}}),!!s.length&&(this.updateDisplayedColumns(o),D(i)&&i)){var l=i();l.columns=s,l.column=s.length===1?s[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(),a=r==="After"?Ge(i):i[0],s="getDisplayedCol"+r;;){var l=this[s](a);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(),i,a;;){var s=o.getProvidedColumnGroup();if(i=s.getLevel(),a=o.getPaddingLevel(),i+a<=r)break;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,[this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]])},t.prototype.createStateItemFromColumn=function(e){var r=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null,a=e.getSort()!=null?e.getSort():null,s=e.getSortIndex()!=null?e.getSortIndex():null,l=e.getFlex()!=null&&e.getFlex()>0?e.getFlex():null,u={colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:a,sortIndex:s,aggFunc:i,rowGroup:e.isRowGroupActive(),rowGroupIndex:r,pivot:e.isPivotActive(),pivotIndex:o,flex:l};return u},t.prototype.getColumnState=function(){if(Z(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns(),r=e.map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(r),r},t.prototype.orderColumnStateList=function(e){var r=Da(this.gridColumns.map(function(o,i){return[o.getColId(),i]}));e.sort(function(o,i){var a=r.has(o.colId)?r.get(o.colId):-1,s=r.has(i.colId)?r.get(i.colId):-1;return a-s})},t.prototype.resetColumnState=function(e){var r=this;e===void 0&&(e="api");var o=this.getColumnsFromTree(this.primaryColumnTree),i=[],a=1e3,s=1e3,l=[];this.groupAutoColumns&&(l=l.concat(this.groupAutoColumns)),o&&(l=l.concat(o)),l.forEach(function(u){var c=r.getColumnStateFromColDef(u);Z(c.rowGroupIndex)&&c.rowGroup&&(c.rowGroupIndex=a++),Z(c.pivotIndex)&&c.pivot&&(c.pivotIndex=s++),i.push(c)}),this.applyColumnState({state:i,applyOrder:!0},e)},t.prototype.getColumnStateFromColDef=function(e){var r=function(C,m){return C??m??null},o=e.getColDef(),i=r(o.sort,o.initialSort),a=r(o.sortIndex,o.initialSortIndex),s=r(o.hide,o.initialHide),l=r(o.pinned,o.initialPinned),u=r(o.width,o.initialWidth),c=r(o.flex,o.initialFlex),d=r(o.rowGroupIndex,o.initialRowGroupIndex),f=r(o.rowGroup,o.initialRowGroup);d==null&&(f==null||f==!1)&&(d=null,f=null);var p=r(o.pivotIndex,o.initialPivotIndex),h=r(o.pivot,o.initialPivot);p==null&&(h==null||h==!1)&&(p=null,h=null);var v=r(o.aggFunc,o.initialAggFunc);return{colId:e.getColId(),sort:i,sortIndex:a,hide:s,pinned:l,width:u,flex:c,rowGroup:f,rowGroupIndex:d,pivot:h,pivotIndex:p,aggFunc:v}},t.prototype.applyColumnState=function(e,r){var o=this;if(Cn(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var i=function(u,c,d){var f=o.compareColumnStatesAndDispatchEvents(r);o.autoGroupsNeedBuilding=!0;var p=c.slice(),h={},v={},C=[],m=[],y=0,S=o.rowGroupColumns.slice(),E=o.pivotColumns.slice();u.forEach(function(T){var L=T.colId||"",I=L.startsWith(Is);if(I){C.push(T),m.push(T);return}var b=d(L);b?(o.syncColumnWithStateItem(b,T,e.defaultState,h,v,!1,r),mn(p,b)):(m.push(T),y+=1)});var R=function(T){return o.syncColumnWithStateItem(T,null,e.defaultState,h,v,!1,r)};p.forEach(R);var x=function(T,L,I,b){var W=T[I.getId()],Y=T[b.getId()],ue=W!=null,ee=Y!=null;if(ue&&ee)return W-Y;if(ue)return-1;if(ee)return 1;var oe=L.indexOf(I),U=L.indexOf(b),$=oe>=0,ne=U>=0;return $&&ne?oe-U:$?-1:1};o.rowGroupColumns.sort(x.bind(o,h,S)),o.pivotColumns.sort(x.bind(o,v,E)),o.updateGridColumns();var P=o.groupAutoColumns?o.groupAutoColumns.slice():[];return C.forEach(function(T){var L=o.getAutoColumn(T.colId);mn(P,L),o.syncColumnWithStateItem(L,T,e.defaultState,null,null,!0,r)}),P.forEach(R),o.applyOrderAfterApplyState(e),o.updateDisplayedColumns(r),o.dispatchEverythingChanged(r),f(),{unmatchedAndAutoStates:m,unmatchedCount:y}};this.columnAnimationService.start();var a=i(e.state||[],this.primaryColumns||[],function(u){return o.getPrimaryColumn(u)}),s=a.unmatchedAndAutoStates,l=a.unmatchedCount;return(s.length>0||D(e.defaultState))&&(l=i(s,this.secondaryColumns||[],function(u){return o.getSecondaryColumn(u)}).unmatchedCount),this.columnAnimationService.finish(),l===0},t.prototype.applyOrderAfterApplyState=function(e){var r=this;if(!(!e.applyOrder||!e.state)){var o=[],i={};e.state.forEach(function(s){if(!(!s.colId||i[s.colId])){var l=r.gridColumnsMap[s.colId];l&&(o.push(l),i[s.colId]=!0)}});var a=0;if(this.gridColumns.forEach(function(s){var l=s.getColId(),u=i[l]!=null;if(!u){var c=l.startsWith(Is);c?pd(o,s,a++):o.push(s)}}),o=this.placeLockedColumns(o),!this.doesMovePassMarryChildren(o)){console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.");return}this.gridColumns=o}},t.prototype.compareColumnStatesAndDispatchEvents=function(e){var r=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},i=this.getColumnState(),a={};return i.forEach(function(s){a[s.colId]=s}),function(){var s=r.getPrimaryAndSecondaryAndAutoColumns(),l=function(m,y,S,E){var R=y.map(E),x=S.map(E),P=Aa(R,x);if(!P){var T=new Set(y);S.forEach(function(b){T.delete(b)||T.add(b)});var L=mo([],vo(T)),I={type:m,columns:L,column:L.length===1?L[0]:null,source:e};r.eventService.dispatchEvent(I)}},u=function(m){var y=[];return s.forEach(function(S){var E=a[S.getColId()];E&&m(E,S)&&y.push(S)}),y},c=function(m){return m.getColId()};l(_.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,r.rowGroupColumns,c),l(_.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,r.pivotColumns,c);var d=function(m,y){var S=m.aggFunc!=null,E=S!=y.isValueActive(),R=S&&m.aggFunc!=y.getAggFunc();return E||R},f=u(d);f.length>0&&r.dispatchColumnChangedEvent(_.EVENT_COLUMN_VALUE_CHANGED,f,e);var p=function(m,y){return m.width!=y.getActualWidth()};r.dispatchColumnResizedEvent(u(p),!0,e);var h=function(m,y){return m.pinned!=y.getPinned()};r.dispatchColumnPinnedEvent(u(h),e);var v=function(m,y){return m.hide==y.isVisible()};r.dispatchColumnVisibleEvent(u(v),e);var C=function(m,y){return m.sort!=y.getSort()||m.sortIndex!=y.getSortIndex()};u(C).length>0&&r.sortController.dispatchSortChangedEvents(e),r.normaliseColumnMovedEventForColumnState(i,e)}},t.prototype.getCommonValue=function(e,r){if(!(!e||e.length==0)){for(var o=r(e[0]),i=1;i<e.length;i++)if(o!==r(e[i]))return;return o}},t.prototype.normaliseColumnMovedEventForColumnState=function(e,r){var o=this,i=this.getColumnState(),a={};i.forEach(function(d){return a[d.colId]=d});var s={};e.forEach(function(d){a[d.colId]&&(s[d.colId]=!0)});var l=e.filter(function(d){return s[d.colId]}),u=i.filter(function(d){return s[d.colId]}),c=[];u.forEach(function(d,f){var p=l&&l[f];if(p&&p.colId!==d.colId){var h=o.getGridColumn(p.colId);h&&c.push(h)}}),c.length&&this.dispatchColumnMovedEvent({movedColumns:c,source:r,finished:!0})},t.prototype.syncColumnWithStateItem=function(e,r,o,i,a,s,l){if(e){var u=function(L,I){var b={value1:void 0,value2:void 0},W=!1;return r&&(r[L]!==void 0&&(b.value1=r[L],W=!0),D(I)&&r[I]!==void 0&&(b.value2=r[I],W=!0)),!W&&o&&(o[L]!==void 0&&(b.value1=o[L]),D(I)&&o[I]!==void 0&&(b.value2=o[I])),b},c=u("hide").value1;c!==void 0&&e.setVisible(!c,l);var d=u("pinned").value1;d!==void 0&&e.setPinned(d);var f=this.columnUtils.calculateColMinWidth(e.getColDef()),p=u("flex").value1;p!==void 0&&e.setFlex(p);var h=e.getFlex()<=0;if(h){var v=u("width").value1;v!=null&&f!=null&&v>=f&&e.setActualWidth(v,l)}var C=u("sort").value1;C!==void 0&&(C==="desc"||C==="asc"?e.setSort(C,l):e.setSort(void 0,l));var m=u("sortIndex").value1;if(m!==void 0&&e.setSortIndex(m),!(s||!e.isPrimary())){var y=u("aggFunc").value1;y!==void 0&&(typeof y=="string"?(e.setAggFunc(y),e.isValueActive()||(e.setValueActive(!0,l),this.valueColumns.push(e))):(D(y)&&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),mn(this.valueColumns,e))));var S=u("rowGroup","rowGroupIndex"),E=S.value1,R=S.value2;(E!==void 0||R!==void 0)&&(typeof R=="number"||E?(e.isRowGroupActive()||(e.setRowGroupActive(!0,l),this.rowGroupColumns.push(e)),i&&typeof R=="number"&&(i[e.getId()]=R)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,l),mn(this.rowGroupColumns,e)));var x=u("pivot","pivotIndex"),P=x.value1,T=x.value2;(P!==void 0||T!==void 0)&&(typeof T=="number"||P?(e.isPivotActive()||(e.setPivotActive(!0,l),this.pivotColumns.push(e)),a&&typeof T=="number"&&(a[e.getId()]=T)):e.isPivotActive()&&(e.setPivotActive(!1,l),mn(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 a=r(i);a&&o.push(a)}),o},t.prototype.getColumnWithValidation=function(e){if(e==null)return null;var r=this.getGridColumn(e);return r||console.warn("AG Grid: could not find column "+e),r},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.lookupGridColumn=function(e){return this.gridColumnsMap[e]},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,r,o){if(!e)return null;if(typeof e=="string"&&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(r===!0)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||!D(this.groupAutoColumns)||Z(this.groupAutoColumns)?null: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,a=e.getColId()==r;return o||i||a},t.prototype.getDisplayNameForColumn=function(e,r,o){if(o===void 0&&(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,a){var s=e.headerValueGetter;if(s){var l={colDef:e,column:r,columnGroup:o,providedColumnGroup:i,location:a,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};return typeof s=="function"?s(l):typeof s=="string"?this.expressionService.evaluate(s,l):(console.warn("AG Grid: headerValueGetter must be a function or a string"),"")}else{if(e.headerName!=null)return e.headerName;if(e.field)return mD(e.field)}return""},t.prototype.wrapHeaderNameWithAggFunc=function(e,r){if(this.gridOptionsService.is("suppressAggFuncInHeader"))return r;var o=e.getColDef().pivotValueColumn,i=D(o),a=null,s;if(i){var l=this.gridOptionsService.is("removePivotHeaderRowWhenSingleValueColumn")&&this.valueColumns.length===1,u=e.getColDef().pivotTotalColumnIds!==void 0;if(l&&!u)return r;a=o?o.getAggFunc():null,s=!0}else{var c=e.isValueActive(),d=this.pivotMode||!this.isRowGroupEmpty();c&&d?(a=e.getAggFunc(),s=!0):s=!1}if(s){var f=typeof a=="string"?a:"func",p=this.localeService.getLocaleTextFunc(),h=p(f,f);return h+"("+r+")"}return r},t.prototype.getColumnGroup=function(e,r){if(!e)return null;if(e instanceof Wt)return e;var o=this.getAllDisplayedTrees(),i=typeof r=="number",a=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,function(s){if(s instanceof Wt){var l=s,u=void 0;i?u=e===l.getGroupId()&&r===l.getPartId():u=e===l.getGroupId(),u&&(a=l)}}),a},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;if(i===null||i==="")return null;if(i!==void 0)return!!i},function(o){return o.initialAggFunc!=null&&o.initialAggFunc!=""}),this.valueColumns.forEach(function(o){var i=o.getColDef();i.aggFunc!=null&&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,a,s,l){e===void 0&&(e=[]),r===void 0&&(r=[]);var u=[],c=[];(this.primaryColumns||[]).forEach(function(p){var h=e.indexOf(p)<0,v=p.getColDef(),C=ti(s(v)),m=ti(l(v)),y=Qn(i(v)),S=Qn(a(v)),E,R=C!==void 0,x=y!==void 0,P=m!==void 0,T=S!==void 0;if(R?E=C:x?y===null?E=!1:E=y>=0:h?P?E=m:T?E=S!=null&&S>=0:E=!1:E=r.indexOf(p)>=0,E){var L=h?y!=null||S!=null:y!=null;L?u.push(p):c.push(p)}});var d=function(p){var h=i(p.getColDef()),v=a(p.getColDef());return h??v};u.sort(function(p,h){var v=d(p),C=d(h);return v===C?0:v<C?-1:1});var f=[].concat(u);return r.forEach(function(p){c.indexOf(p)>=0&&f.push(p)}),c.forEach(function(p){f.indexOf(p)<0&&f.push(p)}),r.forEach(function(p){f.indexOf(p)<0&&o(p,!1)}),f.forEach(function(p){r.indexOf(p)<0&&o(p,!0)}),f},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){e===void 0&&(e="api");var r=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(o){if(o instanceof gt){var i=o.getColGroupDef(),a={groupId:o.getGroupId(),open:i?i.openByDefault:void 0};r.push(a)}}),this.setColumnGroupState(r,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(r){r instanceof gt&&e.push({groupId:r.getGroupId(),open:r.isExpanded()})}),e},t.prototype.setColumnGroupState=function(e,r){var o=this;r===void 0&&(r="api"),this.columnAnimationService.start();var i=[];e.forEach(function(a){var s=a.groupId,l=a.open,u=o.getProvidedColumnGroup(s);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(a){var s={type:_.EVENT_COLUMN_GROUP_OPENED,columnGroup:a};o.eventService.dispatchEvent(s)}),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,r,o){o===void 0&&(o="api");var i;e instanceof gt?i=e.getId():i=e||"",this.setColumnGroupState([{groupId:i,open:r}],o)},t.prototype.getProvidedColumnGroup=function(e){typeof e!="string"&&console.error("AG Grid: group key must be a string");var r=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){o instanceof gt&&o.getId()===e&&(r=o)}),r},t.prototype.calculateColumnsForDisplay=function(){var e=this,r;return this.pivotMode&&Z(this.secondaryColumns)?r=this.gridColumns.filter(function(o){var i=e.groupAutoColumns&&Jn(e.groupAutoColumns,o),a=e.valueColumns&&Jn(e.valueColumns,o);return i||a}):r=this.gridColumns.filter(function(o){var i=e.groupAutoColumns&&Jn(e.groupAutoColumns,o);return i||o.isVisible()}),r},t.prototype.checkColSpanActiveInCols=function(e){var r=!1;return e.forEach(function(o){D(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(),a=i.showRowGroup;i&&D(a)&&(e.groupDisplayColumns.push(o),typeof a=="string"?e.groupDisplayColumnsMap[a]=o:a===!0&&e.getRowGroupColumns().forEach(function(s){e.groupDisplayColumnsMap[s.getId()]=o}))};this.gridColumns.forEach(r)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},t.prototype.updateDisplayedColumns=function(e){var r=this.calculateColumnsForDisplay();this.buildDisplayedTrees(r),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return D(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,r){var o=this;r===void 0&&(r="api");var i=e&&e.length>0;if(!(!i&&Z(this.secondaryColumns))){if(i){this.processSecondaryColumnDefinitions(e);var a=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,a.columnTree),this.secondaryBalancedTree=a.columnTree,this.secondaryHeaderRowCount=a.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach(function(s){return o.secondaryColumnsMap[s.getId()]=s}),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(r)}},t.prototype.processSecondaryColumnDefinitions=function(e){var r=this.gridOptionsService.get("processPivotResultColDef")||this.gridOptionsService.get("processSecondaryColDef"),o=this.gridOptionsService.get("processPivotResultColGroupDef")||this.gridOptionsService.get("processSecondaryColGroupDef");if(!(!r&&!o)){var i=function(a){a.forEach(function(s){var l=D(s.children);if(l){var u=s;o&&o(u),i(u.children)}else{var c=s;r&&r(c)}})};e&&i(e)}},t.prototype.updateGridColumns=function(){var e=this,r=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var o;if(this.secondaryColumns&&this.secondaryBalancedTree){var i=this.secondaryColumns.every(function(u){return e.gridColumnsMap[u.getColId()]!==void 0});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,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);var a=this.createGroupAutoColumnsIfNeeded();if(a&&o){var s=Da(this.groupAutoColumns.map(function(u){return[u,!0]}));o=o.filter(function(u){return!s.has(u)}),o=mo(mo([],vo(this.groupAutoColumns)),vo(o))}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(o),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(u){return e.gridColumnsMap[u.getId()]=u}),this.setAutoHeightActive(),!Aa(r,this.gridBalancedTree)){var l={type:_.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(l)}},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter(function(o){return o.isAutoHeight()}).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide");if(!e){var r="AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.";ge(function(){return console.warn(r)},"autoHeightActive.wrongRowModel")}}},t.prototype.orderGridColsLike=function(e){if(!Z(e)){var r=Da(e.map(function(c,d){return[c,d]})),o=!0;if(this.gridColumns.forEach(function(c){r.has(c)&&(o=!1)}),!o){var i=Da(this.gridColumns.map(function(c){return[c,!0]})),a=e.filter(function(c){return i.has(c)}),s=Da(a.map(function(c){return[c,!0]})),l=this.gridColumns.filter(function(c){return!s.has(c)}),u=a.slice();l.forEach(function(c){var d=c.getOriginalParent();if(!d){u.push(c);return}for(var f=[];!f.length&&d;){var p=d.getLeafColumns();p.forEach(function(C){var m=u.indexOf(C)>=0,y=f.indexOf(C)<0;m&&y&&f.push(C)}),d=d.getOriginalParent()}if(!f.length){u.push(c);return}var h=f.map(function(C){return u.indexOf(C)}),v=Math.max.apply(Math,mo([],vo(h)));pd(u,c,v+1)}),this.gridColumns=u}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.refreshQuickFilterColumns=function(){var e,r=(e=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)!==null&&e!==void 0?e:[];this.groupAutoColumns&&(r=r.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.is("includeHiddenColumnsInQuickFilter")?r:r.filter(function(o){return o.isVisible()||o.isRowGroupActive()})},t.prototype.placeLockedColumns=function(e){var r=[],o=[],i=[];return e.forEach(function(a){var s=a.getColDef().lockPosition;s==="right"?i.push(a):s==="left"||s===!0?r.push(a):o.push(a)}),mo(mo(mo([],vo(r)),vo(o)),vo(i))},t.prototype.addAutoGroupToGridColumns=function(){if(Z(this.groupAutoColumns)){this.destroyOldColumns(this.groupAutoColsBalancedTree),this.groupAutoColsBalancedTree=null;return}this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},t.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var r={type:_.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(r)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.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.gridOptionsService.is("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var r=this;if(this.primaryColumns){var o=this.primaryColumns.slice(0),i=this.gridOptionsService.is("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(a){if(i){var s=r.getWidthOfColsInList(a);a.forEach(function(u){s-=u.getActualWidth(),u.setLeft(s,e)})}else{var l=0;a.forEach(function(u){u.setLeft(l,e),l+=u.getActualWidth()})}uD(o,a)}),o.forEach(function(a){a.setLeft(null,e)})}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(r){if(r instanceof Wt){var o=r;o.checkLeft()}})})},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,r){r.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(o){o instanceof Ne&&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;switch(e){case"left":o=this.viewportRowLeft[r];break;case"right":o=this.viewportRowRight[r];break;default:o=this.viewportRowCenter[r];break}return Z(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,a){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=!1;if(u instanceof Ne)c=e[u.getId()]===!0;else{var d=u,f=d.getDisplayedChildren();f&&(c=r(f,i,a+1))}c&&(s=!0,i[a]||(i[a]=[]),i[a].push(u))}return s};r(this.displayedTreeLeft,this.viewportRowLeft,0),r(this.displayedTreeRight,this.viewportRowRight,0),r(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){var e=function(i){return i.getId()+"-"+(i.getPinned()||"normal")};this.extractViewportColumns();var r=this.viewportColumns.map(e).join("#"),o=this.viewportColumnsHash!==r;return o&&(this.viewportColumnsHash=r,this.calculateHeaderRows()),o},t.prototype.refreshFlexedColumns=function(e){var r;e===void 0&&(e={});var o=e.source?e.source:"flex";if(e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var i=-1;if(e.resizingCols){for(var a=new Set(e.resizingCols),s=this.displayedColumnsCenter,l=s.length-1;l>=0;l--)if(a.has(s[l])){i=l;break}}for(var u=0,c=[],d=0,f=0,l=0;l<this.displayedColumnsCenter.length;l++){var p=this.displayedColumnsCenter[l].getFlex()&&l>i;p?(c.push(this.displayedColumnsCenter[l]),f+=this.displayedColumnsCenter[l].getFlex(),d+=(r=this.displayedColumnsCenter[l].getMinWidth())!==null&&r!==void 0?r:0):u+=this.displayedColumnsCenter[l].getActualWidth()}if(!c.length)return[];var h=[];u+d>this.flexViewportWidth&&(c.forEach(function(T){var L;return T.setActualWidth((L=T.getMinWidth())!==null&&L!==void 0?L:0,o)}),h=c,c=[]);var v=[],C;e:for(;;){C=this.flexViewportWidth-u;for(var m=C/f,l=0;l<c.length;l++){var y=c[l],S=m*y.getFlex(),E=0,R=y.getMinWidth(),x=y.getMaxWidth();if(D(R)&&S<R?E=R:D(x)&&S>x&&(E=x),E){y.setActualWidth(E,o),RS(c,y),f-=y.getFlex(),h.push(y),u+=y.getActualWidth();continue e}v[l]=Math.round(S)}break}var P=C;return c.forEach(function(T,L){T.setActualWidth(Math.min(v[L],P),o),h.push(T),P-=v[L]}),e.skipSetLeft||this.setLeftValues(o),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(h,!0,o,c),c},t.prototype.sizeColumnsToFit=function(e,r,o,i){var a=this,s,l,u,c,d;if(r===void 0&&(r="sizeColumnsToFit"),this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return a.sizeColumnsToFit(e,r,o,i)});return}var f={};i&&((s=i?.columnLimits)===null||s===void 0||s.forEach(function(U){var $=U.key,ne=uB(U,["key"]);f[typeof $=="string"?$:$.getColId()]=ne}));var p=this.getAllDisplayedColumns(),h=e===this.getWidthOfColsInList(p);if(!(e<=0||!p.length||h)){var v=[],C=[];p.forEach(function(U){U.getColDef().suppressSizeToFit===!0?C.push(U):v.push(U)});var m=v.slice(0),y=!1,S=function(U){mn(v,U),C.push(U)};for(v.forEach(function(U){var $,ne;U.resetActualWidth(r);var Me=f?.[U.getId()],Ve=($=Me?.minWidth)!==null&&$!==void 0?$:i?.defaultMinWidth,De=(ne=Me?.maxWidth)!==null&&ne!==void 0?ne:i?.defaultMaxWidth,mt=U.getActualWidth();typeof Ve=="number"&&mt<Ve?U.setActualWidth(Ve,r,!0):typeof De=="number"&&mt>De&&U.setActualWidth(De,r,!0)});!y;){y=!0;var E=e-this.getWidthOfColsInList(C);if(E<=0)v.forEach(function(U){var $,ne,Me=(ne=($=f?.[U.getId()])===null||$===void 0?void 0:$.minWidth)!==null&&ne!==void 0?ne:i?.defaultMinWidth;if(typeof Me=="number"){U.setActualWidth(Me,r,!0);return}U.setMinimum(r)});else for(var R=E/this.getWidthOfColsInList(v),x=E,P=v.length-1;P>=0;P--){var T=v[P],L=f?.[T.getId()],I=(l=L?.minWidth)!==null&&l!==void 0?l:i?.defaultMinWidth,b=(u=L?.maxWidth)!==null&&u!==void 0?u:i?.defaultMaxWidth,W=(c=T.getMinWidth())!==null&&c!==void 0?c:0,Y=(d=T.getMaxWidth())!==null&&d!==void 0?d:Number.MAX_VALUE,ue=typeof I=="number"&&I>W?I:T.getMinWidth(),ee=typeof b=="number"&&b<Y?b:T.getMaxWidth(),oe=Math.round(T.getActualWidth()*R);D(ue)&&oe<ue?(oe=ue,S(T),y=!1):D(ee)&&oe>ee?(oe=ee,S(T),y=!1):P===0&&(oe=x),T.setActualWidth(oe,r,!0),x-=oe}}m.forEach(function(U){U.fireColumnWidthChangedEvent(r)}),this.setLeftValues(r),this.updateBodyWidths(),!o&&this.dispatchColumnResizedEvent(m,!0,r)}},t.prototype.buildDisplayedTrees=function(e){var r=[],o=[],i=[];e.forEach(function(s){switch(s.getPinned()){case"left":r.push(s);break;case"right":o.push(s);break;default:i.push(s);break}});var a=new xS;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(r,a,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,a,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(i,a,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var r=function(o){e.displayedColumnsAndGroupsMap[o.getUniqueId()]=o};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,r),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,r),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,r)},t.prototype.isDisplayed=function(e){var r=this.displayedColumnsAndGroupsMap[e.getUniqueId()];return r===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(r){r instanceof Wt&&r.calculateDisplayedColumns()})},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){var e=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var r=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),o=this.pivotMode?this.gridOptionsService.is("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn(),i=this.rowGroupColumns.length>0||this.gridOptionsService.is("treeData"),a=i&&!o&&!r;if(a){var s=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns),l=!this.autoColsEqual(s,this.groupAutoColumns);if(l||e)return this.groupAutoColumns=s,!0}else this.groupAutoColumns=null;return!1},t.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptionsService.get("groupDisplayType"),r=e?aS("custom",e):!1;if(r)return!0;var o=this.gridOptionsService.get("treeDataDisplayType");return o?aB("custom",o):!1},t.prototype.autoColsEqual=function(e,r){return Aa(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.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.is("enableRtl"),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?Ge(i):i[0]}return null},t.prototype.setColumnHeaderHeight=function(e,r){var o=e.setAutoHeaderHeight(r);if(o){var i={type:_.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(i)}},t.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()},t.prototype.getColumnHeaderRowHeight=function(){var e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),r=this.getAllDisplayedColumns().filter(function(o){return o.isAutoHeaderHeight()}).map(function(o){return o.getAutoHeaderHeight()||0});return Math.max.apply(Math,mo([e],vo(r)))},t.prototype.getHeaderHeight=function(){var e;return(e=this.gridOptionsService.getNum("headerHeight"))!==null&&e!==void 0?e:this.environment.getFromTheme(25,"headerHeight")},t.prototype.getFloatingFiltersHeight=function(){var e;return(e=this.gridOptionsService.getNum("floatingFiltersHeight"))!==null&&e!==void 0?e:this.getHeaderHeight()},t.prototype.getGroupHeaderHeight=function(){var e;return(e=this.gridOptionsService.getNum("groupHeaderHeight"))!==null&&e!==void 0?e:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){var e;return(e=this.gridOptionsService.getNum("pivotHeaderHeight"))!==null&&e!==void 0?e:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){var e;return(e=this.gridOptionsService.getNum("pivotGroupHeaderHeight"))!==null&&e!==void 0?e:this.getGroupHeaderHeight()},t.prototype.queueResizeOperations=function(){this.shouldQueueResizeOperations=!0},t.prototype.processResizeOperations=function(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach(function(e){return e()}),this.resizeOperationQueue=[]},t.prototype.resetColumnDefIntoColumn=function(e){var r=e.getUserProvidedColDef();if(!r)return!1;var o=this.columnFactory.addColumnDefaultAndTypes(r,e.getColId());return e.setColDef(o,r),!0},t.prototype.generateColumnStateForRowGroupAndPivotIndexes=function(e,r){var o=this,i={},a=function(s,l,u,c,d,f){if(!l.length||!o.primaryColumns)return[];for(var p=Object.keys(s),h=new Set(p),v=new Set(p),C=new Set(l.map(function(I){var b=I.getColId();return v.delete(b),b}).concat(p)),m=[],y={},S=0,E=0;E<o.primaryColumns.length;E++){var R=o.primaryColumns[E].getColId();C.has(R)&&(m.push(R),y[R]=S++)}var x=1e3,P=!1,T=0,L=function(I){for(var b=y[I],W=T;W<b;W++){var Y=m[W];v.has(Y)&&(s[Y][d]=x++,v.delete(Y))}T=b};l.forEach(function(I){var b=I.getColId();if(h.has(b))L(b),s[b][d]=x++;else{var W=I.getColDef(),Y=W[d]===null||W[d]===void 0&&W[f]==null;if(Y){if(!P){var ue=W[u]||W[u]===void 0&&W[c];ue?L(b):(v.forEach(function(ee){s[ee][d]=x+y[ee]}),x+=m.length,P=!0)}i[b]||(i[b]={colId:b}),i[b][d]=x++}}})};return a(e,this.rowGroupColumns,"rowGroup","initialRowGroup","rowGroupIndex","initialRowGroupIndex"),a(r,this.pivotColumns,"pivot","initialPivot","pivotIndex","initialPivotIndex"),Object.values(i)},Zt([w("expressionService")],t.prototype,"expressionService",void 0),Zt([w("columnFactory")],t.prototype,"columnFactory",void 0),Zt([w("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Zt([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Zt([w("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),Zt([w("columnUtils")],t.prototype,"columnUtils",void 0),Zt([w("columnAnimationService")],t.prototype,"columnAnimationService",void 0),Zt([w("autoGroupColService")],t.prototype,"autoGroupColService",void 0),Zt([_e("aggFuncService")],t.prototype,"aggFuncService",void 0),Zt([_e("valueCache")],t.prototype,"valueCache",void 0),Zt([_e("animationFrameService")],t.prototype,"animationFrameService",void 0),Zt([w("sortController")],t.prototype,"sortController",void 0),Zt([w("columnDefFactory")],t.prototype,"columnDefFactory",void 0),Zt([M],t.prototype,"init",null),Zt([Mt],t.prototype,"destroyColumns",null),Zt([lB(0,er("loggerFactory"))],t.prototype,"setBeans",null),t=Zt([H("columnModel")],t),t}(F),cB=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),dB=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_D=function(n){cB(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.calculateColMinWidth=function(e){return e.minWidth!=null?e.minWidth:this.environment.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return e.maxWidth!=null?e.maxWidth:Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var r=this.calculateColMinWidth(e),o=this.calculateColMaxWidth(e),i,a=Qn(e.width),s=Qn(e.initialWidth);return a!=null?i=a:s!=null?i=s:i=200,Math.max(Math.min(i,o),r)},t.prototype.getOriginalPathForColumn=function(e,r){var o=[],i=!1,a=function(s,l){for(var u=0;u<s.length;u++){if(i)return;var c=s[u];if(c instanceof gt){var d=c;a(d.getChildren(),l+1),o[l]=c}else c===e&&(i=!0)}};return a(r,0),i?o:null},t.prototype.depthFirstOriginalTreeSearch=function(e,r,o){var i=this;r&&r.forEach(function(a){a instanceof gt&&i.depthFirstOriginalTreeSearch(a,a.getChildren(),o),o(a,e)})},t.prototype.depthFirstAllColumnTreeSearch=function(e,r){var o=this;e&&e.forEach(function(i){i instanceof Wt&&o.depthFirstAllColumnTreeSearch(i.getChildren(),r),r(i)})},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,r){var o=this;e&&e.forEach(function(i){i instanceof Wt&&o.depthFirstDisplayedColumnTreeSearch(i.getDisplayedChildren(),r),r(i)})},t=dB([H("columnUtils")],t),t}(F),fB=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pB=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ED=function(n){fB(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createDisplayedGroups=function(e,r,o,i){for(var a=this,s=this.mapOldGroupsById(i),l=[],u=e,c=function(){var d=u;u=[];for(var f=0,p=function(R){var x=f;f=R;var P=d[x],T=P instanceof Wt?P.getProvidedColumnGroup():P,L=T.getOriginalParent();if(L==null){for(var I=x;I<R;I++)l.push(d[I]);return}for(var b=a.createColumnGroup(L,r,s,o),I=x;I<R;I++)b.addChild(d[I]);u.push(b)},h=1;h<d.length;h++){var v=d[h],C=v instanceof Wt?v.getProvidedColumnGroup():v,m=C.getOriginalParent(),y=d[f],S=y instanceof Wt?y.getProvidedColumnGroup():y,E=S.getOriginalParent();m!==E&&p(h)}f<d.length&&p(d.length)};u.length;)c();return this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,r,o,i){var a=e.getGroupId(),s=r.getInstanceIdForKey(a),l=Wt.createUniqueId(a,s),u=o[l];return u&&u.getProvidedColumnGroup()!==e&&(u=null),D(u)?u.reset():(u=new Wt(e,a,s,i),this.context.createBean(u)),u},t.prototype.mapOldGroupsById=function(e){var r={},o=function(i){i.forEach(function(a){if(a instanceof Wt){var s=a;r[a.getUniqueId()]=s,o(s.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 Wt){var a=i;o.setupParentsIntoColumns(a.getChildren(),a)}})},t=pB([H("displayedGroupCreator")],t),t}(F),hB=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gB=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},RD=function(n){hB(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.componentsMappedByName={},e}return t.prototype.setupComponents=function(e){var r=this;e&&e.forEach(function(o){return r.addComponent(o)})},t.prototype.addComponent=function(e){var r=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=r.toUpperCase();this.componentsMappedByName[o]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=gB([H("agStackComponentsRegistry")],t),t}(F);function Eo(n,t,e){e==null||e==""?PS(n,t):ro(n,t,e)}function ro(n,t,e){n.setAttribute(TD(t),e.toString())}function PS(n,t){n.removeAttribute(TD(t))}function TD(n){return"aria-"+n}function bt(n,t){t?n.setAttribute("role",t):n.removeAttribute("role")}function xD(n){var t;return n==="asc"?t="ascending":n==="desc"?t="descending":n==="mixed"?t="other":t="none",t}function PD(n){return parseInt(n.getAttribute("aria-level"),10)}function OD(n){return parseInt(n.getAttribute("aria-posinset"),10)}function vB(n){return n.getAttribute("aria-describedby")||""}function Ii(n,t){Eo(n,"label",t)}function Gg(n,t){Eo(n,"labelledby",t)}function LD(n,t){Eo(n,"description",t)}function ID(n,t){Eo(n,"describedby",t)}function DD(n,t){Eo(n,"live",t)}function AD(n,t){Eo(n,"level",t)}function OS(n,t){Eo(n,"disabled",t)}function kg(n,t){Eo(n,"hidden",t)}function LS(n,t){Eo(n,"activedescendant",t)}function So(n,t){ro(n,"expanded",t)}function FD(n){PS(n,"expanded")}function IS(n,t){ro(n,"setsize",t)}function DS(n,t){ro(n,"posinset",t)}function bD(n,t){ro(n,"multiselectable",t)}function MD(n,t){ro(n,"rowcount",t)}function AS(n,t){ro(n,"rowindex",t)}function ND(n,t){ro(n,"colcount",t)}function FS(n,t){ro(n,"colindex",t)}function GD(n,t){ro(n,"colspan",t)}function kD(n,t){ro(n,"sort",t)}function HD(n){PS(n,"sort")}function Ds(n,t){Eo(n,"selected",t)}function VD(n,t){ro(n,"checked",t===void 0?"mixed":t)}function BD(n,t){Eo(n,"controls",t.id),Gg(t,n.id)}function Hg(n,t){return t===void 0?n("ariaIndeterminate","indeterminate"):t===!0?n("ariaChecked","checked"):n("ariaUnchecked","unchecked")}var mB=Object.freeze({setAriaRole:bt,getAriaSortState:xD,getAriaLevel:PD,getAriaPosInSet:OD,getAriaDescribedBy:vB,setAriaLabel:Ii,setAriaLabelledBy:Gg,setAriaDescription:LD,setAriaDescribedBy:ID,setAriaLive:DD,setAriaLevel:AD,setAriaDisabled:OS,setAriaHidden:kg,setAriaActiveDescendant:LS,setAriaExpanded:So,removeAriaExpanded:FD,setAriaSetSize:IS,setAriaPosInSet:DS,setAriaMultiSelectable:bD,setAriaRowCount:MD,setAriaRowIndex:AS,setAriaColCount:ND,setAriaColIndex:FS,setAriaColSpan:GD,setAriaSort:kD,removeAriaSort:HD,setAriaSelected:Ds,setAriaChecked:VD,setAriaControls:BD,getAriaCheckboxStateName:Hg}),lw,kh,uw,cw,dw,fw,sS,lS;function to(){return lw===void 0&&(lw=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),lw}function bS(){if(kh===void 0)if(to()){var n=navigator.userAgent.match(/version\/(\d+)/i);n&&(kh=n[1]!=null?parseFloat(n[1]):0)}else kh=0;return kh}function Vg(){if(uw===void 0){var n=window;uw=!!n.chrome&&(!!n.chrome.webstore||!!n.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return uw}function MS(){return cw===void 0&&(cw=/(firefox)/i.test(navigator.userAgent)),cw}function NS(){return dw===void 0&&(dw=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),dw}function Na(){return fw===void 0&&(fw=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),fw}function Bg(){return!to()||bS()>=15}function yg(n){if(!n)return null;var t=n.tabIndex,e=n.getAttribute("tabIndex");return t===-1&&(e===null||e===""&&!MS())?null:t.toString()}function WD(){if(!document.body)return-1;var n=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,e=document.createElement("div");for(document.body.appendChild(e);;){var r=n*2;if(e.style.height=r+"px",r>t||e.clientHeight!==r)break;n=r}return document.body.removeChild(e),n}function UD(){var n,t,e;return(t=(n=document.body)===null||n===void 0?void 0:n.clientWidth)!==null&&t!==void 0?t:window.innerHeight||((e=document.documentElement)===null||e===void 0?void 0:e.clientWidth)||-1}function jD(){var n,t,e;return(t=(n=document.body)===null||n===void 0?void 0:n.clientHeight)!==null&&t!==void 0?t:window.innerHeight||((e=document.documentElement)===null||e===void 0?void 0:e.clientHeight)||-1}function zD(){return lS==null&&qD(),lS}function qD(){var n=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",n.appendChild(t);var e=t.offsetWidth-t.clientWidth;e===0&&t.clientWidth===0&&(e=null),t.parentNode&&t.parentNode.removeChild(t),e!=null&&(lS=e,sS=e===0)}function hd(){return sS==null&&qD(),sS}var yB=Object.freeze({isBrowserSafari:to,getSafariVersion:bS,isBrowserChrome:Vg,isBrowserFirefox:MS,isMacOsUserAgent:NS,isIOSUserAgent:Na,browserSupportsPreventScroll:Bg,getTabIndex:yg,getMaxDivHeight:WD,getBodyWidth:UD,getBodyHeight:jD,getScrollbarWidth:zD,isInvisibleScrollbar:hd});function Xl(n,t){return n.toString().padStart(t,"0")}function $D(n,t){for(var e=[],r=n;r<=t;r++)e.push(r);return e}function CB(n){return typeof n=="string"&&(n=parseInt(n,10)),typeof n=="number"?Math.floor(n):null}function wB(n,t){for(var e="",r=0;r<t;r++)e+=String.fromCharCode(n&255),n>>>=8;return e}function SB(n,t,e){return typeof n!="number"?"":GS(Math.round(n*100)/100,t,e)}function GS(n,t,e){return typeof n!="number"?"":n.toString().replace(".",e).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}function _B(n){return n==null?null:n.reduce(function(t,e){return t+e},0)}function EB(n,t){return n>=0?n:t}function RB(n,t){var e=parseInt(n,10);return!isNaN(e)&&isFinite(e)&&e>0?e:t}var TB=Object.freeze({padStartWidthZeros:Xl,createArrayOfNumbers:$D,cleanNumber:CB,decToHex:wB,formatNumberTwoDecimalPlacesAndCommas:SB,formatNumberCommas:GS,sum:_B,zeroOrGreater:EB,oneOrGreater:RB}),pw=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i};function Zn(n,t,e){if(t===void 0&&(t=!0),e===void 0&&(e="-"),!n)return null;var r=[n.getFullYear(),n.getMonth()+1,n.getDate()].map(function(o){return Xl(o,2)}).join(e);return t&&(r+=" "+[n.getHours(),n.getMinutes(),n.getSeconds()].map(function(o){return Xl(o,2)}).join(":")),r}var hw=function(n){if(n>3&&n<21)return"th";var t=n%10;switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Ql(n,t){t===void 0&&(t="YYYY-MM-DD");var e=Xl(n.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i={YYYY:function(){return e.slice(e.length-4,e.length)},YY:function(){return e.slice(e.length-2,e.length)},Y:function(){return""+n.getFullYear()},MMMM:function(){return r[n.getMonth()]},MMM:function(){return r[n.getMonth()].slice(0,3)},MM:function(){return Xl(n.getMonth()+1,2)},Mo:function(){return""+(n.getMonth()+1)+hw(n.getMonth()+1)},M:function(){return""+(n.getMonth()+1)},Do:function(){return""+n.getDate()+hw(n.getDate())},DD:function(){return Xl(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()+hw(n.getDay())},d:function(){return""+n.getDay()}},a=new RegExp(Object.keys(i).join("|"),"g");return t.replace(a,function(s){return s in i?i[s]():s})}function Jr(n){if(!n)return null;var t=pw(n.split(" "),2),e=t[0],r=t[1];if(!e)return null;var o=e.split("-").map(function(h){return parseInt(h,10)});if(o.filter(function(h){return!isNaN(h)}).length!==3)return null;var i=pw(o,3),a=i[0],s=i[1],l=i[2],u=new Date(a,s-1,l);if(u.getFullYear()!==a||u.getMonth()!==s-1||u.getDate()!==l)return null;if(!r||r==="00:00:00")return u;var c=pw(r.split(":").map(function(h){return parseInt(h,10)}),3),d=c[0],f=c[1],p=c[2];return d>=0&&d<24&&u.setHours(d),f>=0&&f<60&&u.setMinutes(f),p>=0&&p<60&&u.setSeconds(p),u}var xB=Object.freeze({serialiseDate:Zn,dateToFormattedString:Ql,parseDateTimeFromString:Jr}),PB=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},OB=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},Hh;function uS(n,t,e){for(var r=n.parentElement,o=r&&r.firstChild;o;)t&&o.classList.toggle(t,o===n),e&&o.classList.toggle(e,o!==n),o=o.nextSibling}var KD="[tabindex], input, select, button, textarea, [href]",kS=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function HS(n){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,e="input, select, button, textarea",r=t.call(n,e),o=t.call(n,kS),i=ka(n),a=r&&!o&&i;return a}function we(n,t,e){e===void 0&&(e={});var r=e.skipAriaHidden;n.classList.toggle("ag-hidden",!t),r||kg(n,!t)}function YD(n,t,e){e===void 0&&(e={});var r=e.skipAriaHidden;n.classList.toggle("ag-invisible",!t),r||kg(n,!t)}function Jl(n,t){var e="disabled",r=t?function(o){return o.setAttribute(e,"")}:function(o){return o.removeAttribute(e)};r(n),zS(n.querySelectorAll("input"),function(o){return r(o)})}function xs(n,t,e){for(var r=0;n;){if(n.classList.contains(t))return!0;if(n=n.parentElement,typeof e=="number"){if(++r>e)break}else if(n===e)break}return!1}function Ga(n){var t=window.getComputedStyle(n),e=t.height,r=t.width,o=t.borderTopWidth,i=t.borderRightWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.paddingTop,u=t.paddingRight,c=t.paddingBottom,d=t.paddingLeft,f=t.marginTop,p=t.marginRight,h=t.marginBottom,v=t.marginLeft,C=t.boxSizing;return{height:parseFloat(e),width:parseFloat(r),borderTopWidth:parseFloat(o),borderRightWidth:parseFloat(i),borderBottomWidth:parseFloat(a),borderLeftWidth:parseFloat(s),paddingTop:parseFloat(l),paddingRight:parseFloat(u),paddingBottom:parseFloat(c),paddingLeft:parseFloat(d),marginTop:parseFloat(f),marginRight:parseFloat(p),marginBottom:parseFloat(h),marginLeft:parseFloat(v),boxSizing:C}}function _d(n){var t=Ga(n);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function Wg(n){var t=Ga(n);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function VS(n){var t=Ga(n),e=t.marginBottom+t.marginTop;return Math.ceil(n.offsetHeight+e)}function gd(n){var t=Ga(n),e=t.marginLeft+t.marginRight;return Math.ceil(n.offsetWidth+e)}function BS(n){var t=n.getBoundingClientRect(),e=Ga(n),r=e.borderTopWidth,o=e.borderLeftWidth,i=e.borderRightWidth,a=e.borderBottomWidth;return{top:t.top+(r||0),left:t.left+(o||0),right:t.right+(i||0),bottom:t.bottom+(a||0)}}function vd(){if(typeof Hh=="boolean")return Hh;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">
<span style="display: inline-block; width: 1px"></span>
<span style="display: inline-block; width: 1px"></span>
</div>`,document.body.appendChild(n),n.scrollLeft=1,Hh=Math.floor(n.scrollLeft)===0,document.body.removeChild(n),Hh}function md(n,t){var e=n.scrollLeft;return t&&(e=Math.abs(e),Vg()&&!vd()&&(e=n.scrollWidth-n.clientWidth-e)),e}function yd(n,t,e){e&&(vd()?t*=-1:(to()||Vg())&&(t=n.scrollWidth-n.clientWidth-t)),n.scrollLeft=t}function vr(n){for(;n&&n.firstChild;)n.removeChild(n.firstChild)}function LB(n,t){Oi(n.querySelector(t))}function Oi(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function ka(n){return n.offsetParent!==null}function tr(n){var t=document.createElement("div");return t.innerHTML=(n||"").trim(),t.firstChild}function IB(n,t){n.lastChild?n.insertAdjacentHTML("afterbegin",t):n.innerHTML=t}function DB(n,t){if(n.attributes&&n.attributes[t]){var e=n.attributes[t];return e.value}return null}function cS(n){return n&&n.clientHeight?n.clientHeight:0}function dS(n){return n&&n.clientWidth?n.clientWidth:0}function WS(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&&Bg()&&r.focus({preventScroll:!0})}}function US(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 XD(n,t,e){e?e.insertAdjacentElement("afterend",t):n.firstChild?n.insertAdjacentElement("afterbegin",t):n.appendChild(t)}function AB(n,t){D(n.firstChild)?n.insertBefore(t,n.firstChild):n.appendChild(t)}function jS(n,t){var e,r;if(t)try{for(var o=PB(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=OB(i.value,2),s=a[0],l=a[1];if(!(!s||!s.length||l==null)){var u=yD(s),c=l.toString(),d=c.replace(/\s*!important/g,""),f=d.length!=c.length?"important":void 0;n.style.setProperty(u,d,f)}}}catch(p){e={error:p}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}function QD(n){return n.clientWidth<n.scrollWidth}function JD(n){return n.clientHeight<n.scrollHeight}function Cd(n,t){t==="flex"?(n.style.removeProperty("width"),n.style.removeProperty("minWidth"),n.style.removeProperty("maxWidth"),n.style.flex="1 1 auto"):eo(n,t)}function eo(n,t){t=Ug(t),n.style.width=t.toString(),n.style.maxWidth=t.toString(),n.style.minWidth=t.toString()}function FB(n,t){t==="flex"?(n.style.removeProperty("height"),n.style.removeProperty("minHeight"),n.style.removeProperty("maxHeight"),n.style.flex="1 1 auto"):Ps(n,t)}function Ps(n,t){t=Ug(t),n.style.height=t.toString(),n.style.maxHeight=t.toString(),n.style.minHeight=t.toString()}function Ug(n){return typeof n=="number"?n+"px":n}function Ed(n){return n instanceof Node||n instanceof HTMLElement}function ZD(n){if(n==null)return[];var t=[];return zS(n,function(e){return t.push(e)}),t}function e0(n,t){if(n)for(var e=0;e<n.length;e++){var r=n[e];t(r.name,r.value)}}function ni(n,t,e){e==null?n.removeAttribute(t):n.setAttribute(t,e.toString())}function zS(n,t){if(n!=null)for(var e=0;e<n.length;e++)t(n[e])}function qS(n,t){n.then(function(e){var r=e.getGui();r!=null&&(typeof r=="object"?t.appendChild(r):t.innerHTML=r)})}var bB=Object.freeze({radioCssClass:uS,FOCUSABLE_SELECTOR:KD,FOCUSABLE_EXCLUDE:kS,isFocusableFormField:HS,setDisplayed:we,setVisible:YD,setDisabled:Jl,isElementChildOfClass:xs,getElementSize:Ga,getInnerHeight:_d,getInnerWidth:Wg,getAbsoluteHeight:VS,getAbsoluteWidth:gd,getElementRectWithOffset:BS,isRtlNegativeScroll:vd,getScrollLeft:md,setScrollLeft:yd,clearElement:vr,removeElement:LB,removeFromParent:Oi,isVisible:ka,loadTemplate:tr,appendHtml:IB,getElementAttribute:DB,offsetHeight:cS,offsetWidth:dS,ensureDomOrder:WS,setDomChildOrder:US,insertWithDomOrder:XD,prependDC:AB,addStylesToElement:jS,isHorizontalScrollShowing:QD,isVerticalScrollShowing:JD,setElementWidth:Cd,setFixedWidth:eo,setElementHeight:FB,setFixedHeight:Ps,formatSize:Ug,isNodeOrElement:Ed,copyNodeList:ZD,iterateNamedNodeMap:e0,addOrRemoveAttribute:ni,nodeListForEach:zS,bindCellRendererToHtmlElement:qS}),t0={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",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",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",clipboardCut:"cut",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",advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus"};function Yn(n,t,e){var r=_t(n,t,e);if(r){var o=r.className;if(typeof o=="string"&&o.indexOf("ag-icon")>-1||typeof o=="object"&&o["ag-icon"])return r}var i=document.createElement("span");return i.appendChild(r),i}function _t(n,t,e,r){var o=null,i=e&&e.getColDef().icons;if(i&&(o=i[n]),t&&!o){var a=t.get("icons");a&&(o=a[n])}if(o){var s=void 0;if(typeof o=="function")s=o();else if(typeof o=="string")s=o;else throw new Error("icon from grid options needs to be a string or a function");if(typeof s=="string")return tr(s);if(Ed(s))return s;console.warn("AG Grid: iconRenderer should return back a string or a dom object")}else{var l=document.createElement("span"),u=t0[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"),bt(l,"presentation"),l}}var MB=Object.freeze({iconNameClassMap:t0,createIcon:Yn,createIconNoSpan:_t}),O=function(){function n(){}return n.BACKSPACE="Backspace",n.TAB="Tab",n.ENTER="Enter",n.ESCAPE="Escape",n.SPACE=" ",n.LEFT="ArrowLeft",n.UP="ArrowUp",n.RIGHT="ArrowRight",n.DOWN="ArrowDown",n.DELETE="Delete",n.F2="F2",n.PAGE_UP="PageUp",n.PAGE_DOWN="PageDown",n.PAGE_HOME="Home",n.PAGE_END="End",n.A="KeyA",n.C="KeyC",n.D="KeyD",n.V="KeyV",n.X="KeyX",n.Y="KeyY",n.Z="KeyZ",n}(),NB=65,GB=67,kB=86,HB=68,VB=90,BB=89;function jg(n){if(n.altKey||n.ctrlKey||n.metaKey)return!1;var t=n.key.length===1;return t}function Cg(n,t,e,r,o){var i=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i)return!1;var a={event:t,editing:o,column:r,api:n.api,node:e,data:e.data,colDef:r.getColDef(),context:n.context,columnApi:n.columnApi};if(i){var s=i(a);if(s)return!0}return!1}function r0(n,t,e,r){var o=r.getDefinition(),i=o&&o.suppressHeaderKeyboardEvent;if(!D(i))return!1;var a={api:n.api,columnApi:n.columnApi,context:n.context,colDef:o,column:r,headerRowIndex:e,event:t};return!!i(a)}function n0(n){var t=n.keyCode,e;switch(t){case NB:e=O.A;break;case GB:e=O.C;break;case kB:e=O.V;break;case HB:e=O.D;break;case VB:e=O.Z;break;case BB:e=O.Y;break;default:e=n.code}return e}function o0(n,t){return t===void 0&&(t=!1),n===O.DELETE?!0:!t&&n===O.BACKSPACE?NS():!1}var WB=Object.freeze({isEventFromPrintableCharacter:jg,isUserSuppressingKeyboardEvent:Cg,isUserSuppressingHeaderKeyboardEvent:r0,normaliseQwertyAzerty:n0,isDeleteKey:o0});function $S(n,t,e){if(e===0)return!1;var r=Math.abs(n.clientX-t.clientX),o=Math.abs(n.clientY-t.clientY);return Math.max(r,o)<=e}var UB=Object.freeze({areEventsNear:$S});function jB(n,t){if(!n)return!1;for(var e=function(s,l){var u=t[s.id],c=t[l.id],d=u!==void 0,f=c!==void 0,p=d&&f,h=!d&&!f;return p?u-c:h?s.__objectId-l.__objectId:d?1:-1},r,o,i=!1,a=0;a<n.length-1;a++)if(r=n[a],o=n[a+1],e(r,o)>0){i=!0;break}return i?(n.sort(e),!0):!1}function zB(n,t){var e=[];r(n);function r(o){o&&o.forEach(function(i){if(i.group||i.hasChildren()){e.push(i.key);var a=e.join("|");t(i,a),r(i.childrenAfterGroup),e.pop()}})}}var qB=Object.freeze({sortRowNodesByOrder:jB,traverseNodesWithKey:zB});function KS(n){var t=new Set;return n.forEach(function(e){return t.add(e)}),t}var $B=Object.freeze({convertToSet:KS}),Tt=function(){return Tt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Tt.apply(this,arguments)},KB=Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt({},mB),VV),yB),xB),bB),WV),OV),oB),mV),MB),WB),tB),UB),TB),TV),qB),$B),JV),Q=KB,As=function(){function n(t,e){t===void 0&&(t=0),e===void 0&&(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}();(function(n){n[n.IN_PROGRESS=0]="IN_PROGRESS",n[n.RESOLVED=1]="RESOLVED"})(g.AgPromiseStatus||(g.AgPromiseStatus={}));var yn=function(){function n(t){var e=this;this.status=g.AgPromiseStatus.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,a){i.then(function(s){o[a]=s,r--,r===0&&e(o)})})})},n.resolve=function(t){return t===void 0&&(t=null),new n(function(e){return e(t)})},n.prototype.then=function(t){var e=this;return new n(function(r){e.status===g.AgPromiseStatus.RESOLVED?r(t(e.resolution)):e.waiters.push(function(o){return r(t(o))})})},n.prototype.resolveNow=function(t,e){return this.status===g.AgPromiseStatus.RESOLVED?e(this.resolution):t},n.prototype.onDone=function(t){this.status=g.AgPromiseStatus.RESOLVED,this.resolution=t,this.waiters.forEach(function(e){return e(t)})},n.prototype.onReject=function(t){console.warn("TBI")},n}(),YB=function(){function n(){this.timestamp=new Date().getTime()}return n.prototype.print=function(t){var e=new Date().getTime()-this.timestamp;console.info(t+" = "+e),this.timestamp=new Date().getTime()},n}(),XB=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Es=function(){return Es=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Es.apply(this,arguments)},gw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Co;(function(n){n[n.NOTHING=0]="NOTHING",n[n.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",n[n.SHOWING=2]="SHOWING"})(Co||(Co={}));var Zo;(function(n){n[n.HOVER=0]="HOVER",n[n.FOCUS=1]="FOCUS"})(Zo||(Zo={}));var zg=function(n){XB(t,n);function t(e,r,o){var i=n.call(this)||this;return i.parentComp=e,i.tooltipShowDelayOverride=r,i.tooltipHideDelayOverride=o,i.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,i.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,i.SHOW_QUICK_TOOLTIP_DIFF=1e3,i.FADE_OUT_TOOLTIP_TIMEOUT=1e3,i.INTERACTIVE_HIDE_DELAY=100,i.interactionEnabled=!1,i.isInteractingWithTooltip=!1,i.state=Co.NOTHING,i.tooltipInstanceCount=0,i.tooltipMouseTrack=!1,i}return t.prototype.postConstruct=function(){this.gridOptionsService.is("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipShowDelay=this.getTooltipDelay("show"),this.tooltipHideDelay=this.getTooltipDelay("hide"),this.tooltipMouseTrack=this.gridOptionsService.is("tooltipMouseTrack");var e=this.parentComp.getGui();this.tooltipTrigger===Zo.HOVER&&(this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this))),this.tooltipTrigger===Zo.FOCUS&&(this.addManagedListener(e,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(e,"focusout",this.onFocusOut.bind(this))),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this)))},t.prototype.getGridOptionsTooltipDelay=function(e){var r=this.gridOptionsService.getNum(e);if(D(r))return r<0&&ge(function(){return console.warn("AG Grid: "+e+" should not be lower than 0")},e+"Warn"),Math.max(200,r)},t.prototype.getTooltipDelay=function(e){var r,o,i,a;return e==="show"?(o=(r=this.getGridOptionsTooltipDelay("tooltipShowDelay"))!==null&&r!==void 0?r:this.tooltipShowDelayOverride)!==null&&o!==void 0?o:this.DEFAULT_SHOW_TOOLTIP_DELAY:(a=(i=this.getGridOptionsTooltipDelay("tooltipHideDelay"))!==null&&i!==void 0?i:this.tooltipHideDelayOverride)!==null&&a!==void 0?a:this.DEFAULT_HIDE_TOOLTIP_DELAY},t.prototype.destroy=function(){this.setToDoNothing(),n.prototype.destroy.call(this)},t.prototype.getTooltipTrigger=function(){var e=this.gridOptionsService.get("tooltipTrigger");return!e||e==="hover"?Zo.HOVER:Zo.FOCUS},t.prototype.onMouseEnter=function(e){var r=this;this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!Na()&&(t.isLocked?this.showTooltipTimeoutId=window.setTimeout(function(){r.prepareToShowTooltip(e)},this.INTERACTIVE_HIDE_DELAY):this.prepareToShowTooltip(e))},t.prototype.onMouseMove=function(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===Co.SHOWING&&this.tooltipComp&&this.positionTooltip()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.onMouseLeave=function(){this.interactionEnabled?this.lockService():this.setToDoNothing()},t.prototype.onFocusIn=function(){this.prepareToShowTooltip()},t.prototype.onFocusOut=function(e){var r,o=e.relatedTarget,i=this.parentComp.getGui(),a=(r=this.tooltipComp)===null||r===void 0?void 0:r.getGui();this.isInteractingWithTooltip||i.contains(o)||this.interactionEnabled&&a?.contains(o)||this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.prepareToShowTooltip=function(e){if(this.state!=Co.NOTHING||t.isLocked)return!1;var r=0;return e&&(r=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),r),this.state=Co.WAITING_TO_SHOW,!0},t.prototype.isLastTooltipHiddenRecently=function(){var e=new Date().getTime(),r=t.lastTooltipHideTime;return e-r<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.setToDoNothing=function(){this.state===Co.SHOWING&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.clearTimeouts(),this.state=Co.NOTHING,this.lastMouseEvent=null},t.prototype.showTooltip=function(){var e=Es({},this.parentComp.getTooltipParams());if(!D(e.value)){this.setToDoNothing();return}this.state=Co.SHOWING,this.tooltipInstanceCount++;var r=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),o=this.userComponentFactory.getTooltipCompDetails(e);o.newAgStackInstance().then(r)},t.prototype.hideTooltip=function(e){if(!(!e&&this.isInteractingWithTooltip)){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=new Date().getTime());var r={type:_.EVENT_TOOLTIP_HIDE,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(r),this.state=Co.NOTHING}},t.prototype.newTooltipComponentCallback=function(e,r){var o=this.state!==Co.SHOWING||this.tooltipInstanceCount!==e;if(o){this.getContext().destroyBean(r);return}var i=r.getGui();this.tooltipComp=r,i.classList.contains("ag-tooltip")||i.classList.add("ag-tooltip-custom"),this.tooltipTrigger===Zo.HOVER&&i.classList.add("ag-tooltip-animate"),this.interactionEnabled&&i.classList.add("ag-tooltip-interactive");var a=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({eChild:i,ariaLabel:a("ariaLabelTooltip","Tooltip")});s&&(this.tooltipPopupDestroyFunc=s.hideFunc),this.positionTooltip(),this.tooltipTrigger===Zo.FOCUS&&(this.onBodyScrollEventCallback=this.addManagedListener(this.eventService,_.EVENT_BODY_SCROLL,this.setToDoNothing.bind(this)),this.onColumnMovedEventCallback=this.addManagedListener(this.eventService,_.EVENT_COLUMN_MOVED,this.setToDoNothing.bind(this))),this.interactionEnabled&&(this.tooltipTrigger===Zo.HOVER?(this.tooltipMouseEnterListener=this.addManagedListener(i,"mouseenter",this.onTooltipMouseEnter.bind(this))||null,this.tooltipMouseLeaveListener=this.addManagedListener(i,"mouseleave",this.onTooltipMouseLeave.bind(this))||null):(this.tooltipFocusInListener=this.addManagedListener(i,"focusin",this.onTooltipFocusIn.bind(this))||null,this.tooltipFocusOutListener=this.addManagedListener(i,"focusout",this.onTooltipFocusOut.bind(this))||null));var l={type:_.EVENT_TOOLTIP_SHOW,tooltipGui:i,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(l),this.startHideTimeout()},t.prototype.onTooltipMouseEnter=function(){this.isInteractingWithTooltip=!0,this.unlockService()},t.prototype.onTooltipMouseLeave=function(){this.isInteractingWithTooltip=!1,this.lockService()},t.prototype.onTooltipFocusIn=function(){this.isInteractingWithTooltip=!0},t.prototype.onTooltipFocusOut=function(e){var r,o=this.parentComp.getGui(),i=(r=this.tooltipComp)===null||r===void 0?void 0:r.getGui(),a=e.relatedTarget;i?.contains(a)||(this.isInteractingWithTooltip=!1,o.contains(a)?this.startHideTimeout():this.hideTooltip())},t.prototype.positionTooltip=function(){var e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupService.positionPopupUnderMouseEvent(Es(Es({},e),{mouseEvent:this.lastMouseEvent})):this.popupService.positionPopupByComponent(Es(Es({},e),{eventSource:this.parentComp.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var r=this.tooltipPopupDestroyFunc,o=this.tooltipComp,i=this.tooltipTrigger===Zo.HOVER?this.FADE_OUT_TOOLTIP_TIMEOUT:0;window.setTimeout(function(){r(),e.getContext().destroyBean(o)},i),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.clearTooltipListeners=function(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(function(e){e&&e()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null},t.prototype.lockService=function(){var e=this;t.isLocked=!0,this.interactiveTooltipTimeoutId=window.setTimeout(function(){e.unlockService(),e.setToDoNothing()},this.INTERACTIVE_HIDE_DELAY)},t.prototype.unlockService=function(){t.isLocked=!1,this.clearInteractiveTimeout()},t.prototype.startHideTimeout=function(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)},t.prototype.clearShowTimeout=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)},t.prototype.clearHideTimeout=function(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},t.prototype.clearInteractiveTimeout=function(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)},t.prototype.clearTimeouts=function(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()},t.isLocked=!1,gw([w("popupService")],t.prototype,"popupService",void 0),gw([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),gw([M],t.prototype,"postConstruct",null),t}(F),i0=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(a){return e.addCssClass(a)});return}var o=this.cssClassStates[t]!==!0;if(o&&t.length){var i=this.getGui();i&&i.classList.add(t),this.cssClassStates[t]=!0}},n.prototype.removeCssClass=function(t){var e=this,r=(t||"").split(" ");if(r.length>1){r.forEach(function(a){return e.removeCssClass(a)});return}var o=this.cssClassStates[t]!==!1;if(o&&t.length){var i=this.getGui();i&&i.classList.remove(t),this.cssClassStates[t]=!1}},n.prototype.containsCssClass=function(t){var e=this.getGui();return e?e.classList.contains(t):!1},n.prototype.addOrRemoveCssClass=function(t,e){var r=this;if(t){if(t.indexOf(" ")>=0){var o=(t||"").split(" ");if(o.length>1){o.forEach(function(s){return r.addOrRemoveCssClass(s,e)});return}}var i=this.cssClassStates[t]!==e;if(i&&t.length){var a=this.getGui();a&&a.classList.toggle(t,e),this.cssClassStates[t]=e}}},n}(),QB=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},JB=new As,se=function(n){QB(t,n);function t(e){var r=n.call(this)||this;return r.displayed=!0,r.visible=!0,r.compId=JB.next(),r.cssClassManager=new i0(function(){return r.eGui}),e&&r.setTemplate(e),r}return t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.is("enableBrowserTooltips")},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e,r,o){var i=this,a=function(){i.usingBrowserTooltips?i.getGui().removeAttribute("title"):i.tooltipFeature=i.destroyBean(i.tooltipFeature)},s=function(){i.usingBrowserTooltips?i.getGui().setAttribute("title",i.tooltipText):i.tooltipFeature=i.createBean(new zg(i,r,o))};this.tooltipText!=e&&(this.tooltipText&&a(),e!=null&&(this.tooltipText=e,this.tooltipText&&s()))},t.prototype.createChildComponentsFromTags=function(e,r){var o=this,i=ZD(e.childNodes);i.forEach(function(a){if(a instanceof HTMLElement){var s=o.createComponentFromElement(a,function(u){var c=u.getGui();c&&o.copyAttributesFromNode(a,u.getGui())},r);if(s){if(s.addItems&&a.children.length){o.createChildComponentsFromTags(a,r);var l=Array.prototype.slice.call(a.children);s.addItems(l)}o.swapComponentForNode(s,e,a)}else a.childNodes&&o.createChildComponentsFromTags(a,r)}})},t.prototype.createComponentFromElement=function(e,r,o){var i=e.nodeName,a=o?o[e.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(i);if(s){t.elementGettingCreated=e;var l=new s(a);return l.setParentComponent(this),this.createBean(l,null,r),l}return null},t.prototype.copyAttributesFromNode=function(e,r){e0(e.attributes,function(o,i){return r.setAttribute(o,i)})},t.prototype.swapComponentForNode=function(e,r,o){var i=e.getGui();r.replaceChild(i,o),r.insertBefore(document.createComment(o.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,r){var o=this;this.iterateOverQuerySelectors(function(i){o[i.attributeName]===r&&(o[i.attributeName]=e)})},t.prototype.iterateOverQuerySelectors=function(e){for(var r=Object.getPrototypeOf(this);r!=null;){var o=r.__agComponentMetaData,i=Mg(r.constructor);o&&o[i]&&o[i].querySelectors&&o[i].querySelectors.forEach(function(a){return e(a)}),r=Object.getPrototypeOf(r)}},t.prototype.activateTabIndex=function(e){var r=this.gridOptionsService.getNum("tabIndex")||0;e||(e=[]),e.length||e.push(this.getGui()),e.forEach(function(o){return o.setAttribute("tabindex",r.toString())})},t.prototype.setTemplate=function(e,r){var o=tr(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},a=o.refSelector&&e.getAttribute("ref")===o.refSelector;if(a)i(e.eGui);else{var s=e.eGui.querySelector(o.querySelector);s&&i(s.__agComponent||s)}})}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.getAriaElement=function(){return this.getFocusableElement()},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,r){if(e!=null)if(r||(r=this.eGui),Ed(e))r.appendChild(e);else{var o=e;r.appendChild(o.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e,r){if(r===void 0&&(r={}),e!==this.visible){this.visible=e;var o=r.skipAriaHidden;YD(this.eGui,e,{skipAriaHidden:o})}},t.prototype.setDisplayed=function(e,r){if(r===void 0&&(r={}),e!==this.displayed){this.displayed=e;var o=r.skipAriaHidden;we(this.eGui,e,{skipAriaHidden:o});var i={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(i)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var e=this.eGui;e&&e.__agComponent&&(e.__agComponent=void 0),n.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,r,o){var i=this;this.eGui.addEventListener(e,r,o),this.addDestroyFunc(function(){return i.eGui.removeEventListener(e,r)})},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,r){this.cssClassManager.addOrRemoveCssClass(e,r)},t.prototype.getAttribute=function(e){var r=this.eGui;return r?r.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",vw([w("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),vw([rS],t.prototype,"preConstructOnComponent",null),vw([rS],t.prototype,"createChildComponentsPreConstruct",null),t}(F);function ZB(n){return a0.bind(this,n,void 0)}function G(n){return a0.bind(this,"[ref="+n+"]",n)}function a0(n,t,e,r,o){if(n===null){console.error("AG Grid: QuerySelector selector should not be null");return}if(typeof o=="number"){console.error("AG Grid: QuerySelector should be on an attribute");return}eW(e,"querySelectors",{attributeName:r,querySelector:n,refSelector:t})}function eW(n,t,e){var r=tW(n,Mg(n.constructor));r[t]||(r[t]=[]),r[t].push(e)}function tW(n,t){return n.__agComponentMetaData||(n.__agComponentMetaData={}),n.__agComponentMetaData[t]||(n.__agComponentMetaData[t]={}),n.__agComponentMetaData[t]}var rW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),eI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},nW=function(n){rW(t,n);function t(){return n.call(this,`
<div class="ag-floating-filter-input" role="presentation">
<ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>
</div>`)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var r=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(r+" "+o("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var r=this;if(!e){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(function(o){if(o.getModelAsString){var i=o.getModelAsString(e);r.eFloatingFilterText.setValue(i)}})},t.prototype.onParamsUpdated=function(e){this.init(e)},eI([G("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),eI([w("columnModel")],t.prototype,"columnModel",void 0),t}(se),s0=function(){function n(t,e,r,o){var i=this;this.alive=!0,this.context=t,this.eParent=o;var a=e.getDateCompDetails(r),s=a.newAgStackInstance();s.then(function(l){if(!i.alive){t.destroyBean(l);return}i.dateComp=l,l&&(o.appendChild(l.getGui()),l.afterGuiAttached&&l.afterGuiAttached(),i.tempValue&&l.setDate(i.tempValue),i.disabled!=null&&i.setDateCompDisabled(i.disabled))})}return n.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},n.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},n.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},n.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},n.prototype.setDisplayed=function(t){we(this.eParent,t)},n.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},n.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},n.prototype.afterGuiAttached=function(t){this.dateComp&&typeof this.dateComp.afterGuiAttached=="function"&&this.dateComp.afterGuiAttached(t)},n.prototype.updateParams=function(t){var e;!((e=this.dateComp)===null||e===void 0)&&e.onParamsUpdated&&typeof this.dateComp.onParamsUpdated=="function"&&this.dateComp.onParamsUpdated(t)},n.prototype.setDateCompDisabled=function(t){this.dateComp!=null&&this.dateComp.setDisabled!=null&&this.dateComp.setDisabled(t)},n}(),l0=function(){function n(){this.customFilterOptions={}}return n.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t)},n.prototype.getFilterOptions=function(){return this.filterOptions},n.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach(function(e){if(typeof e!="string"){var r=[["displayKey"],["displayName"],["predicate","test"]],o=function(i){return i.some(function(a){return e[a]!=null})?!0:(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+i+"'"),!1)};if(!r.every(o)){t.filterOptions=t.filterOptions.filter(function(i){return i===e})||[];return}t.customFilterOptions[e.displayKey]=e}})},n.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];typeof e=="string"?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},n.prototype.getDefaultOption=function(){return this.defaultOption},n.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},n}(),u0={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"},oW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fS=function(){return fS=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},fS.apply(this,arguments)},tI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Di=function(n){oW(t,n);function t(e,r){r===void 0&&(r={});var o=n.call(this)||this;return o.eFocusableElement=e,o.callbacks=r,o.callbacks=fS({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(i){if(!i.defaultPrevented){var a=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,i.shiftKey);a&&(a.focus(),i.preventDefault())}}},r),o}return t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var r=this;this.addManagedListener(e,"keydown",function(o){if(!(o.defaultPrevented||_o(o))){if(r.callbacks.shouldStopEventPropagation(o)){ii(o);return}o.key===O.TAB?r.callbacks.onTabKeyDown(o):r.callbacks.handleKeyDown&&r.callbacks.handleKeyDown(o)}})},t.FOCUS_MANAGED_CLASS="ag-focus-managed",tI([w("focusService")],t.prototype,"focusService",void 0),tI([M],t.prototype,"postConstruct",null),t}(F),iW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),mw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},c0="ag-resizer-wrapper",aW='<div class="'+c0+`">
<div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>
<div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>
<div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>
<div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>
<div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>
<div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>
<div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>
<div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>
</div>`,YS=function(n){iW(t,n);function t(e,r){var o=n.call(this)||this;return o.element=e,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.lastSize={width:-1,height:-1},o.positioned=!1,o.resizersAdded=!1,o.resizeListeners=[],o.boundaryEl=null,o.isResizing=!1,o.isMoving=!1,o.resizable={},o.movable=!1,o.currentResizer=null,o.config=Object.assign({},{popup:!1},r),o}return t.prototype.center=function(){var e=this.offsetParent,r=e.clientHeight,o=e.clientWidth,i=o/2-this.getWidth()/2,a=r/2-this.getHeight()/2;this.offsetElement(i,a)},t.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,r=e.centered,o=e.forcePopupParentAsOffsetParent,i=e.minWidth,a=e.width,s=e.minHeight,l=e.height,u=e.x,c=e.y;this.offsetParent||this.setOffsetParent();var d=0,f=0,p=!!this.element.offsetParent;if(p){var h=this.findBoundaryElement(),v=window.getComputedStyle(h);if(v.minWidth!=null){var C=h.offsetWidth-this.element.offsetWidth;f=parseInt(v.minWidth,10)-C}if(v.minHeight!=null){var m=h.offsetHeight-this.element.offsetHeight;d=parseInt(v.minHeight,10)-m}}if(this.minHeight=s||d,this.minWidth=i||f,a&&this.setWidth(a),l&&this.setHeight(l),(!a||!l)&&this.refreshSize(),r)this.center();else if(u||c)this.offsetElement(u,c);else if(p&&o){var h=this.boundaryEl,y=!0;if(h||(h=this.findBoundaryElement(),y=!1),h){var S=parseFloat(h.style.top),E=parseFloat(h.style.left);y?this.offsetElement(isNaN(E)?0:E,isNaN(S)?0:S):this.setPosition(E,S)}}this.positioned=!!this.offsetParent}},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,r){if(!(!this.config.popup||e===this.movable)){this.movable=e;var o=this.moveElementDragListener||{eElement:r,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var r=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(function(o){var i=e,a=!!i[o],s=r.getResizerElement(o),l={dragStartPixels:0,eElement:s,onDragStart:function(u){return r.onResizeStart(u,o)},onDragging:r.onResize.bind(r),onDragStop:function(u){return r.onResizeEnd(u,o)}};(a||!r.isAlive()&&!a)&&(a?(r.dragService.addDragSource(l),r.resizeListeners.push(l),s.style.pointerEvents="all"):s.style.pointerEvents="none",r.resizable[o]=a)})},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,r=e.height,o=e.width;o!==-1&&(this.element.style.width=o+"px"),r!==-1&&(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(typeof e=="string"&&e.indexOf("%")!==-1)Ps(o,e),e=VS(o),i=!0;else if(e=Math.max(this.minHeight,e),this.positioned){var a=this.getAvailableHeight();a&&e>a&&(e=a)}this.getHeight()!==e&&(i?(o.style.maxHeight="unset",o.style.minHeight="unset"):r?Ps(o,e):(o.style.height=e+"px",o.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))},t.prototype.getAvailableHeight=function(){var e=this.config,r=e.popup,o=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var i=this.offsetParent.clientHeight;if(!i)return null;var a=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),l=r?this.position.y:a.top,u=r?0:s.top,c=0;if(o){var d=this.element.parentElement;if(d){var f=d.getBoundingClientRect().bottom;c=f-a.bottom}}var p=i+u-l-c;return p},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var r=this.element,o=this.config.popup,i=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)eo(r,e),e=gd(r),i=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var a=this.offsetParent.clientWidth,s=o?this.position.x:this.element.getBoundingClientRect().left;a&&e+s>a&&(e=a-s)}this.getWidth()!==e&&(i?(r.style.maxWidth="unset",r.style.minWidth="unset"):this.config.popup?eo(r,e):(r.style.width=e+"px",r.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))},t.prototype.offsetElement=function(e,r){e===void 0&&(e=0),r===void 0&&(r=0);var o=this.config.forcePopupParentAsOffsetParent,i=o?this.boundaryEl:this.element;i&&(this.popupService.positionPopup({ePopup:i,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:r}}}),this.setPosition(parseFloat(i.style.left),parseFloat(i.style.top)))},t.prototype.constrainSizeToAvailableHeight=function(e){var r=this;if(this.config.forcePopupParentAsOffsetParent){var o=function(){var i=r.getAvailableHeight();r.element.style.setProperty("max-height",i+"px")};e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),o):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}},t.prototype.setPosition=function(e,r){this.position.x=e,this.position.y=r},t.prototype.updateDragStartPosition=function(e,r){this.dragStartPosition={x:e,y:r}},t.prototype.calculateMouseMovement=function(e){var r=e.e,o=e.isLeft,i=e.isTop,a=e.anywhereWithin,s=e.topBuffer,l=r.clientX-this.dragStartPosition.x,u=r.clientY-this.dragStartPosition.y,c=this.shouldSkipX(r,!!o,!!a,l)?0:l,d=this.shouldSkipY(r,!!i,s,u)?0:u;return{movementX:c,movementY:d}},t.prototype.shouldSkipX=function(e,r,o,i){var a=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),l=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.x:a.left,c=u<=0&&s.left>=e.clientX||s.right<=e.clientX&&s.right<=l.right;return c?!0:(r?c=i<0&&e.clientX>u+s.left||i>0&&e.clientX<u+s.left:o?c=i<0&&e.clientX>l.right||i>0&&e.clientX<u+s.left:c=i<0&&e.clientX>l.right||i>0&&e.clientX<l.right,c)},t.prototype.shouldSkipY=function(e,r,o,i){o===void 0&&(o=0);var a=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),l=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.y:a.top,c=u<=0&&s.top>=e.clientY||s.bottom<=e.clientY&&s.bottom<=l.bottom;return c?!0:(r?c=i<0&&e.clientY>u+s.top+o||i>0&&e.clientY<u+s.top:c=i<0&&e.clientY>l.bottom||i>0&&e.clientY<l.bottom,c)},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 r=new DOMParser,o=r.parseFromString(aW,"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("."+c0);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,i=o.popup,a=o.forcePopupParentAsOffsetParent;!i&&!a&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element,r=e.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 a=e[i],s=!!a.style.flex&&a.style.flex!=="0 0 auto";if(a!==this.element){var l=this.minHeight||0,u=this.minWidth||0;if(s){var c=window.getComputedStyle(a);c.minHeight&&(l=parseInt(c.minHeight,10)),c.minWidth&&(u=parseInt(c.minWidth,10))}else l=a.offsetHeight,u=a.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 a=o[i];a!==r&&(e?a.style.height=a.offsetHeight+"px":a.style.width=a.offsetWidth+"px",a.style.flex="0 0 auto",a===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,a=this.currentResizer,s=a.isTop,l=a.isRight,u=a.isBottom,c=a.isLeft,d=l||c,f=u||s,p=this.calculateMouseMovement({e,isLeft:c,isTop:s}),h=p.movementX,v=p.movementY,C=this.position.x,m=this.position.y,y=0,S=0;if(d&&h){var E=c?-1:1,R=this.getWidth(),x=R+h*E,P=!1;c&&(y=R-x,(C+y<=0||x<=this.minWidth)&&(P=!0,y=0)),P||this.setWidth(x)}if(f&&v){var E=s?-1:1,T=this.getHeight(),L=T+v*E,I=!1;s?(S=T-L,(m+S<=0||L<=this.minHeight)&&(I=!0,S=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&T<L&&this.getMinSizeOfSiblings().height+L>this.element.parentElement.offsetHeight&&(I=!0),I||this.setHeight(L)}this.updateDragStartPosition(e.clientX,e.clientY),((o||i)&&y||S)&&this.offsetElement(C+y,m+S)}},t.prototype.onResizeEnd=function(e,r){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi};this.element.classList.remove("ag-resizing"),this.resizerMap[r].element.classList.remove("ag-active"),this.dispatchEvent(o)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var r=this.position,o=r.x,i=r.y,a;this.config.calculateTopBuffer&&(a=this.config.calculateTopBuffer());var s=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:a}),l=s.movementX,u=s.movementY;this.offsetElement(o+l,i+u),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},mw([w("popupService")],t.prototype,"popupService",void 0),mw([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),mw([w("dragService")],t.prototype,"dragService",void 0),t}(F),sW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},wd=function(n){sW(t,n);function t(e){var r=n.call(this)||this;return r.filterNameKey=e,r.applyActive=!1,r.hidePopup=null,r.debouncePending=!1,r.appliedModel=null,r}return t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new Di(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new YS(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var r=this.getGui();r&&r.removeEventListener("submit",this.onFormSubmit);var o=`
<form class="ag-filter-wrapper">
<div class="ag-filter-body-wrapper ag-`+this.getCssIdentifier()+`-body-wrapper" ref="eFilterBody">
`+this.createBodyTemplate()+`
</div>
</form>`;this.setTemplate(o,e),r=this.getGui(),r&&r.addEventListener("submit",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var r=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){r.updateUiVisibility(),r.setupOnBtApplyDebounce()})},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,r=this.providedFilterParams.buttons;if(!(!r||r.length<1||this.isReadOnly())){var o=document.createElement("div");o.classList.add("ag-filter-apply-panel");var i=function(a){var s,l;switch(a){case"apply":s=e.translate("applyFilter"),l=function(d){return e.onBtApply(!1,!1,d)};break;case"clear":s=e.translate("clearFilter"),l=function(){return e.onBtClear()};break;case"reset":s=e.translate("resetFilter"),l=function(){return e.onBtReset()};break;case"cancel":s=e.translate("cancelFilter"),l=function(d){e.onBtCancel(d)};break;default:console.warn("AG Grid: Unknown button type specified");return}var u=a==="apply"?"submit":"button",c=tr(`<button
type="`+u+`"
ref="`+a+`FilterButton"
class="ag-button ag-standard-button ag-filter-apply-panel-button"
>`+s+`
</button>`);o.appendChild(c),e.addManagedListener(c,"click",l)};KS(r).forEach(function(a){return i(a)}),this.getGui().appendChild(o)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,r=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),o=wo(this.checkApplyDebounce.bind(this),r);this.onBtApplyDebounce=function(){e.debouncePending=!0,o()}},t.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var r=this,o=e!=null?this.setModelIntoUi(e):this.resetUiToDefaults();return o.then(function(){r.updateUiVisibility(),r.applyModel("api")})},t.prototype.onBtCancel=function(e){var r=this;this.resetUiToActiveModel(this.getModel(),function(){r.handleCancelEnd(e)})},t.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},t.prototype.resetUiToActiveModel=function(e,r){var o=this,i=function(){o.onUiChanged(!1,"prevent"),r?.()};e!=null?this.setModelIntoUi(e).then(i):this.resetUiToDefaults().then(i)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(e){var r=this.getModelFromUi();if(!this.isModelValid(r))return!1;var o=this.appliedModel;return this.appliedModel=r,!this.areModelsEqual(o,r)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,r,o){if(e===void 0&&(e=!1),r===void 0&&(r=!1),o&&o.preventDefault(),this.applyModel(r?"rowDataUpdated":"ui")){var i="columnFilter";this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:r,source:i})}var a=this.providedFilterParams.closeOnApply;a&&this.applyActive&&!e&&!r&&this.close(o)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var r=e,o=r&&r.key,i;(o==="Enter"||o==="Space")&&(i={keyboardEvent:r}),this.hidePopup(i),this.hidePopup=null}},t.prototype.onUiChanged=function(e,r){if(e===void 0&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var o=this.isModelValid(this.getModelFromUi());Jl(this.getRefElement("applyFilterButton"),!o)}e&&!r||r==="immediately"?this.onBtApply(e):(!this.applyActive&&!r||r==="debounce")&&this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e?.container)},t.prototype.refreshFilterResizer=function(e){if(!(!this.positionableFeature||e==="toolPanel")){var r=e==="floatingFilter",o=this,i=o.positionableFeature,a=o.gridOptionsService;r?(i.restoreLastSize(),i.setResizable(a.is("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},t.getDebounceMs=function(e,r){return t.isUseApplyButton(e)?(e.debounceMs!=null&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):e.debounceMs!=null?e.debounceMs:r},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),n.prototype.destroy.call(this)},t.prototype.translate=function(e){var r=this.localeService.getLocaleTextFunc();return r(e,u0[e])},t.prototype.getCellValue=function(e){var r=this.providedFilterParams,o=r.api,i=r.colDef,a=r.column,s=r.columnApi,l=r.context;return this.providedFilterParams.valueGetter({api:o,colDef:i,column:a,columnApi:s,context:l,data:e.data,getValue:function(u){return e.data[u]},node:e})},t.prototype.getPositionableElement=function(){return this.eFilterBody},yw([w("rowModel")],t.prototype,"rowModel",void 0),yw([G("eFilterBody")],t.prototype,"eFilterBody",void 0),yw([M],t.prototype,"postConstruct",null),t}(se),lW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),uW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},XS=function(n){lW(t,n);function t(e,r){var o=n.call(this,r)||this;return o.labelSeparator="",o.labelAlignment="left",o.disabled=!1,o.label="",o.config=e||{},o}return t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,r=e.labelSeparator,o=e.label,i=e.labelWidth,a=e.labelAlignment;r!=null&&this.setLabelSeparator(r),o!=null&&this.setLabel(o),i!=null&&this.setLabelWidth(i),this.setLabelAlignment(a||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){vr(this.eLabel),typeof this.label=="string"?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),this.label===""?(we(this.eLabel,!1),bt(this.eLabel,"presentation")):(we(this.eLabel,!0),bt(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)},t.prototype.setLabelAlignment=function(e){var r=this.getGui(),o=r.classList;return o.toggle("ag-label-align-left",e==="left"),o.toggle("ag-label-align-right",e==="right"),o.toggle("ag-label-align-top",e==="top"),this},t.prototype.setLabelEllipsis=function(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this},t.prototype.setLabelWidth=function(e){return this.label==null?this:(Cd(this.eLabel,e),this)},t.prototype.setDisabled=function(e){e=!!e;var r=this.getGui();return Jl(r,e),r.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},uW([M],t.prototype,"postConstruct",null),t}(se),cW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),QS=function(n){cW(t,n);function t(e,r,o){var i=n.call(this,e,r)||this;return i.className=o,i}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var r=this;return this.addManagedListener(this,_.EVENT_FIELD_VALUE_CHANGED,function(){return e(r.getValue())}),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return eo(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,r){return this.value===e?this:(this.previousValue=this.value,this.value=e,r||this.dispatchEvent({type:_.EVENT_FIELD_VALUE_CHANGED}),this)},t}(XS),dW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Gc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},fW=`
<div class="ag-picker-field" role="presentation">
<div ref="eLabel"></div>
<div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed">
<div ref="eDisplayField" class="ag-picker-field-display"></div>
<div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
</div>
</div>`,JS=function(n){dW(t,n);function t(e){var r=n.call(this,e,e?.template||fW,e?.className)||this;if(r.isPickerDisplayed=!1,r.skipClick=!1,r.pickerGap=4,r.hideCurrentPicker=null,r.ariaRole=e?.ariaRole,r.onPickerFocusIn=r.onPickerFocusIn.bind(r),r.onPickerFocusOut=r.onPickerFocusOut.bind(r),!e)return r;var o=e.pickerGap,i=e.maxPickerHeight,a=e.variableWidth,s=e.minPickerWidth,l=e.maxPickerWidth;return o!=null&&(r.pickerGap=o),r.variableWidth=!!a,i!=null&&r.setPickerMaxHeight(i),s!=null&&r.setPickerMinWidth(s),l!=null&&r.setPickerMaxWidth(l),r}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.setupAria();var e="ag-"+this.getCompId()+"-display";this.eDisplayField.setAttribute("id",e);var r=this.getAriaElement();ID(r,e),this.addManagedListener(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));var o=this.config.pickerIcon;if(o){var i=_t(o,this.gridOptionsService);i&&this.eIcon.appendChild(i)}},t.prototype.setupAria=function(){var e=this.getAriaElement();e.setAttribute("tabindex",(this.gridOptionsService.getNum("tabIndex")||0).toString()),So(e,!1),this.ariaRole&&bt(e,this.ariaRole)},t.prototype.refreshLabel=function(){var e,r=this.getAriaElement();Gg(r,(e=this.getLabelId())!==null&&e!==void 0?e:""),n.prototype.refreshLabel.call(this)},t.prototype.onLabelOrWrapperMouseDown=function(e){if(e&&(e.preventDefault(),this.getFocusableElement().focus()),this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())},t.prototype.onKeyDown=function(e){switch(e.key){case O.UP:case O.DOWN:case O.ENTER:case O.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case O.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}},t.prototype.showPicker=function(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());var e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)},t.prototype.renderAndPositionPicker=function(){var e=this,r=this.gridOptionsService.getDocument(),o=this.pickerComponent.getGui();this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(r.body,"wheel",function(x){o.contains(x.target)||e.hidePicker()}));var i=this.localeService.getLocaleTextFunc(),a=this.config,s=a.pickerType,l=a.pickerAriaLabelKey,u=a.pickerAriaLabelValue,c=a.modalPicker,d=c===void 0?!0:c,f={modal:d,eChild:o,closeOnEsc:!0,closedCallback:function(){var x=r.activeElement===r.body;e.beforeHidePicker(),x&&e.isAlive()&&e.getFocusableElement().focus()},ariaLabel:i(l,u)},p=this.popupService.addPopup(f),h=this,v=h.maxPickerHeight,C=h.minPickerWidth,m=h.maxPickerWidth,y=h.pickerGap,S=h.variableWidth;S?(C&&(o.style.minWidth=C),o.style.width=Ug(gd(this.eWrapper)),m&&(o.style.maxWidth=m)):Cd(o,m??gd(this.eWrapper));var E=v??_d(this.popupService.getPopupParent())+"px";o.style.setProperty("max-height",E),o.style.position="absolute";var R=this.gridOptionsService.is("enableRtl")?"right":"left";return this.popupService.positionPopupByComponent({type:s,eventSource:this.eWrapper,ePopup:o,position:"under",alignSide:R,keepWithinBounds:!0,nudgeY:y}),p.hideFunc},t.prototype.beforeHidePicker=function(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);var e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null},t.prototype.toggleExpandedStyles=function(e){if(this.isAlive()){var r=this.getAriaElement();So(r,e),this.eWrapper.classList.toggle("ag-picker-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e)}},t.prototype.onPickerFocusIn=function(){this.togglePickerHasFocus(!0)},t.prototype.onPickerFocusOut=function(e){var r;!((r=this.pickerComponent)===null||r===void 0)&&r.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)},t.prototype.togglePickerHasFocus=function(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)},t.prototype.hidePicker=function(){this.hideCurrentPicker&&this.hideCurrentPicker()},t.prototype.setAriaLabel=function(e){return Ii(this.getAriaElement(),e),this},t.prototype.setInputWidth=function(e){return Cd(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},t.prototype.setPickerGap=function(e){return this.pickerGap=e,this},t.prototype.setPickerMinWidth=function(e){return typeof e=="number"&&(e=e+"px"),this.minPickerWidth=e??void 0,this},t.prototype.setPickerMaxWidth=function(e){return typeof e=="number"&&(e=e+"px"),this.maxPickerWidth=e??void 0,this},t.prototype.setPickerMaxHeight=function(e){return typeof e=="number"&&(e=e+"px"),this.maxPickerHeight=e??void 0,this},t.prototype.destroy=function(){this.hidePicker(),n.prototype.destroy.call(this)},Gc([w("popupService")],t.prototype,"popupService",void 0),Gc([G("eLabel")],t.prototype,"eLabel",void 0),Gc([G("eWrapper")],t.prototype,"eWrapper",void 0),Gc([G("eDisplayField")],t.prototype,"eDisplayField",void 0),Gc([G("eIcon")],t.prototype,"eIcon",void 0),t}(QS),pW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},rI=function(n){pW(t,n);function t(e){e===void 0&&(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 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 O.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}break;case O.DOWN:case O.UP:var i=r===O.DOWN,a=void 0;if(e.preventDefault(),!this.highlightedEl)a=this.itemEls[i?0:this.itemEls.length-1];else{var s=this.itemEls.indexOf(this.highlightedEl),l=s+(i?1:-1);l=Math.min(Math.max(l,0),this.itemEls.length-1),a=this.itemEls[l]}this.highlightItem(a);break}},t.prototype.addOptions=function(e){var r=this;return e.forEach(function(o){return r.addOption(o)}),this},t.prototype.addOption=function(e){var r=e.value,o=e.text,i=xt(o||r);return this.options.push({value:r,text:i}),this.renderOption(r,i),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach(function(r,o){DS(r,o+1),IS(r,e.length)})},t.prototype.renderOption=function(e,r){var o=this,i=document.createElement("div");bt(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(e==null)return this.reset(),this;var o=this.options.findIndex(function(a){return a.value===e});if(o!==-1){var i=this.options[o];this.value=i.value,this.displayValue=i.text!=null?i.text:i.value,this.highlightItem(this.itemEls[o]),r||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var r=this.options.findIndex(function(o){return o.value===e.value});r!==-1&&this.highlightItem(this.itemEls[r])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),Ds(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){!this.highlightedEl||!this.highlightedEl.offsetParent||(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),Ds(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:_.EVENT_FIELD_VALUE_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",hW([M],t.prototype,"init",null),t}(se),gW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pS=function(){return pS=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},pS.apply(this,arguments)},qg=function(n){gW(t,n);function t(e){return n.call(this,pS({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"smallDown",ariaRole:"listbox"},e))||this}return t.prototype.postConstruct=function(){var e;n.prototype.postConstruct.call(this),this.createListComponent(),this.eWrapper.tabIndex=(e=this.gridOptionsService.getNum("tabIndex"))!==null&&e!==void 0?e:0},t.prototype.createListComponent=function(){var e=this;this.listComponent=this.createBean(new rI("select")),this.listComponent.setParentComponent(this),this.listComponent.addGuiEventListener("keydown",function(r){r.key===O.TAB&&(r.preventDefault(),r.stopImmediatePropagation(),e.getGui().dispatchEvent(new KeyboardEvent("keydown",{key:r.key,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,bubbles:!0})))}),this.listComponent.addManagedListener(this.listComponent,rI.EVENT_ITEM_SELECTED,function(){e.hidePicker(),e.dispatchEvent({type:t.EVENT_ITEM_SELECTED})}),this.listComponent.addManagedListener(this.listComponent,_.EVENT_FIELD_VALUE_CHANGED,function(){e.listComponent&&(e.setValue(e.listComponent.getValue(),!1,!0),e.hidePicker())})},t.prototype.createPickerComponent=function(){return this.listComponent},t.prototype.showPicker=function(){this.listComponent&&(n.prototype.showPicker.call(this),this.listComponent.refreshHighlighted())},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){if(this.value===e||!this.listComponent)return this;o||this.listComponent.setValue(e,!0);var i=this.listComponent.getValue();return i===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),n.prototype.setValue.call(this,e,r))},t.prototype.destroy=function(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),n.prototype.destroy.call(this)},t.EVENT_ITEM_SELECTED="selectedItem",t}(JS),vW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Cw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Fa=function(n){vW(t,n);function t(e,r,o,i){o===void 0&&(o="text"),i===void 0&&(i="input");var a=n.call(this,e,`
<div role="presentation">
<div ref="eLabel" class="ag-input-field-label"></div>
<div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
<`+i+' ref="eInput" class="ag-input-field-input"></'+i+`>
</div>
</div>`,r)||this;return a.inputType=o,a.displayFieldTag=i,a}return 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;r!=null&&this.setWidth(r),o!=null&&this.setValue(o),this.addInputListeners(),this.activateTabIndex([this.eInput])},t.prototype.refreshLabel=function(){D(this.getLabel())?Gg(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(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Cd(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){var r=this.eInput;return r.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return ni(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Ii(this.eInput,e),this},t.prototype.setDisabled=function(e){return Jl(this.eInput,e),n.prototype.setDisabled.call(this,e)},t.prototype.setAutoComplete=function(e){if(e===!0)ni(this.eInput,"autocomplete",null);else{var r=typeof e=="string"?e:"off";ni(this.eInput,"autocomplete",r)}return this},Cw([G("eLabel")],t.prototype,"eLabel",void 0),Cw([G("eWrapper")],t.prototype,"eWrapper",void 0),Cw([G("eInput")],t.prototype,"eInput",void 0),t}(QS),mW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rd=function(n){mW(t,n);function t(e,r,o){r===void 0&&(r="ag-checkbox"),o===void 0&&(o="checkbox");var i=n.call(this,e,r,o)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return this.selected===void 0?!0:!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),n.prototype.setDisabled.call(this,e)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),r=this.getNextValue();this.passive?this.dispatchChange(r,e):this.setValue(r)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,r){return this.refreshSelectedClass(e),this.setSelected(e,r),this},t.prototype.setName=function(e){var r=this.getInputElement();return r.name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,r){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=e===void 0,r||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,r,o){this.dispatchEvent({type:_.EVENT_FIELD_VALUE_CHANGED,selected:e,previousValue:r,event:o});var i=this.getInputElement(),a={type:_.EVENT_CHECKBOX_CHANGED,id:i.id,name:i.name,selected:e,previousValue:r};this.eventService.dispatchEvent(a)},t.prototype.onCheckboxClick=function(e){if(!(this.passive||this.eInput.disabled)){var r=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,r,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",e===!0),this.eWrapper.classList.toggle("ag-indeterminate",e==null)},t}(Fa),yW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ZS=function(n){yW(t,n);function t(e){return n.call(this,e,"ag-radio-button","radio")||this}return t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){n.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,_.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}(Rd),CW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),wW=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},SW=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},e_=function(){function n(t,e,r){this.localeService=t,this.optionsFactory=e,this.valueFormatter=r}return n.prototype.getModelAsString=function(t){var e=this;if(!t)return null;var r=t.operator!=null,o=this.localeService.getLocaleTextFunc();if(r){var i=t,a=i.conditions;if(!a){var s=i.condition1,l=i.condition2;a=[s,l]}var u=a.map(function(m){return e.getModelAsString(m)}),c=i.operator==="AND"?"andCondition":"orCondition";return u.join(" "+o(c,u0[c])+" ")}else{if(t.type===tt.BLANK||t.type===tt.NOT_BLANK)return o(t.type,t.type);var d=t,f=this.optionsFactory.getCustomOption(d.type),p=f||{},h=p.displayKey,v=p.displayName,C=p.numberOfInputs;return h&&v&&C===0?(o(h,v),v):this.conditionToString(d,f)}},n.prototype.updateParams=function(t){this.optionsFactory=t.optionsFactory},n.prototype.formatValue=function(t){var e;return this.valueFormatter?(e=this.valueFormatter(t??null))!==null&&e!==void 0?e:"":String(t)},n}(),tt=function(n){CW(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.eTypes=[],e.eJoinOperatorPanels=[],e.eJoinOperatorsAnd=[],e.eJoinOperatorsOr=[],e.eConditionBodies=[],e.listener=function(){return e.onUiChanged()},e.lastUiCompletePosition=null,e.joinOperatorId=0,e}return t.prototype.getNumberOfInputs=function(e){var r=this.optionsFactory.getCustomOption(e);if(r){var o=r.numberOfInputs;return o??1}var i=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&i.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){var r=this;this.eTypes.forEach(function(o,i){i===0?o.setValue(e,!0):o.setValue(r.optionsFactory.getDefaultOption(),!0)})},t.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},t.prototype.getConditionTypes=function(){return this.eTypes.map(function(e){return e.getValue()})},t.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},t.prototype.getJoinOperator=function(){return this.eJoinOperatorsOr.length===0?this.defaultJoinOperator:this.eJoinOperatorsOr[0].getValue()===!0?"OR":"AND"},t.prototype.areModelsEqual=function(e,r){var o=this;if(!e&&!r)return!0;if(!e&&r||e&&!r)return!1;var i=!e.operator,a=!r.operator,s=!i&&a||i&&!a;if(s)return!1;var l;if(i){var u=e,c=r;l=this.areSimpleModelsEqual(u,c)}else{var d=e,f=r;l=d.operator===f.operator&&Aa(d.conditions,f.conditions,function(p,h){return o.areSimpleModelsEqual(p,h)})}return l},t.prototype.setModelIntoUi=function(e){var r=this,o=e.operator;if(o){var i=e;i.conditions||(i.conditions=[i.condition1,i.condition2]);var a=this.validateAndUpdateConditions(i.conditions),s=this.getNumConditions();if(a<s)this.removeConditionsAndOperators(a);else if(a>s)for(var l=s;l<a;l++)this.createJoinOperatorPanel(),this.createOption();var u=i.operator==="OR";this.eJoinOperatorsAnd.forEach(function(d){return d.setValue(!u,!0)}),this.eJoinOperatorsOr.forEach(function(d){return d.setValue(u,!0)}),i.conditions.forEach(function(d,f){r.eTypes[f].setValue(d.type,!0),r.setConditionIntoUi(d,f)})}else{var c=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(c.type,!0),this.setConditionIntoUi(c,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),yn.resolve()},t.prototype.validateAndUpdateConditions=function(e){var r=e.length;return r>this.maxNumConditions&&(e.splice(this.maxNumConditions),ge(function(){return console.warn('AG Grid: Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.')},"simpleFilterSetModelMaxNumConditions"),r=this.maxNumConditions),r},t.prototype.doesFilterPass=function(e){var r=this,o,i=this.getModel();if(i==null)return!0;var a=i.operator,s=[];if(a){var l=i;s.push.apply(s,SW([],wW((o=l.conditions)!==null&&o!==void 0?o:[])))}else s.push(i);var u=a&&a==="OR"?"some":"every";return s[u](function(c){return r.individualConditionPasses(e,c)})},t.prototype.setParams=function(e){n.prototype.setParams.call(this,e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new l0,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")},t.prototype.setNumConditions=function(e){var r,o;e.suppressAndOrCondition!=null&&ge(function(){return console.warn('AG Grid: Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.')},"simpleFilterSuppressAndOrCondition"),e.alwaysShowBothConditions!=null&&ge(function(){return console.warn('AG Grid: Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.')},"simpleFilterAlwaysShowBothConditions"),this.maxNumConditions=(r=e.maxNumConditions)!==null&&r!==void 0?r:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(ge(function(){return console.warn('AG Grid: "filterParams.maxNumConditions" must be greater than or equal to zero.')},"simpleFilterMaxNumConditions"),this.maxNumConditions=1),this.numAlwaysVisibleConditions=(o=e.numAlwaysVisibleConditions)!==null&&o!==void 0?o:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(ge(function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.')},"simpleFilterNumAlwaysVisibleConditions"),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(ge(function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".')},"simpleFilterNumAlwaysVisibleGreaterThanMaxNumConditions"),this.numAlwaysVisibleConditions=this.maxNumConditions)},t.prototype.createOption=function(){var e=this,r=this.createManagedBean(new qg);this.eTypes.push(r),r.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(r.getGui());var o=this.createValueElement();this.eConditionBodies.push(o),this.eFilterBody.appendChild(o),this.putOptionsIntoDropdown(r),this.resetType(r);var i=this.getNumConditions()-1;this.forEachPositionInput(i,function(a){return e.resetInput(a)}),this.addChangedListeners(r,i)},t.prototype.createJoinOperatorPanel=function(){var e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");var r=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),o=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var i=this.eJoinOperatorPanels.length-1,a=this.joinOperatorId++;this.resetJoinOperatorAnd(r,i,a),this.resetJoinOperatorOr(o,i,a),this.isReadOnly()||(r.onValueChange(this.listener),o.onValueChange(this.listener))},t.prototype.createJoinOperator=function(e,r,o){var i=this.createManagedBean(new ZS);return e.push(i),i.addCssClass("ag-filter-condition-operator"),i.addCssClass("ag-filter-condition-operator-"+o),r.appendChild(i.getGui()),i},t.prototype.getDefaultJoinOperator=function(e){return e==="AND"||e==="OR"?e:"AND"},t.prototype.createFilterListOptions=function(){var e=this,r=this.optionsFactory.getFilterOptions();this.filterListOptions=r.map(function(o){return typeof o=="string"?e.createBoilerplateListOption(o):e.createCustomListOption(o)})},t.prototype.putOptionsIntoDropdown=function(e){this.filterListOptions.forEach(function(r){e.addOption(r)}),e.setDisabled(this.filterListOptions.length<=1)},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var r=e.displayKey,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:r,text:o?this.localeService.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(r)}},t.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},t.prototype.createBodyTemplate=function(){return""},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},t.prototype.updateNumConditions=function(){for(var e,r=-1,o=!0,i=0;i<this.getNumConditions();i++)this.isConditionUiComplete(i)?r=i:o=!1;if(this.shouldAddNewConditionAtEnd(o))this.createJoinOperatorPanel(),this.createOption();else{var a=(e=this.lastUiCompletePosition)!==null&&e!==void 0?e:this.getNumConditions()-2;if(r<a){this.removeConditionsAndOperators(a+1);var s=r+1,l=a-s;l>0&&this.removeConditionsAndOperators(s,l),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=r},t.prototype.updateConditionStatusesAndValues=function(e,r){var o=this;this.eTypes.forEach(function(a,s){var l=o.isConditionDisabled(s,e);a.setDisabled(l||o.filterListOptions.length<=1),s===1&&(Jl(o.eJoinOperatorPanels[0],l),o.eJoinOperatorsAnd[0].setDisabled(l),o.eJoinOperatorsOr[0].setDisabled(l))}),this.eConditionBodies.forEach(function(a,s){we(a,o.isConditionBodyVisible(s))});var i=(r??this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(function(a,s){a.setValue(!i,!0)}),this.eJoinOperatorsOr.forEach(function(a,s){a.setValue(i,!0)}),this.forEachInput(function(a,s,l,u){o.setElementDisplayed(a,s<u),o.setElementDisabled(a,o.isConditionDisabled(l,e))}),this.resetPlaceholder()},t.prototype.shouldAddNewConditionAtEnd=function(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()},t.prototype.removeConditionsAndOperators=function(e,r){if(!(e>=this.getNumConditions())){this.removeComponents(this.eTypes,e,r),this.removeElements(this.eConditionBodies,e,r),this.removeValueElements(e,r);var o=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,o,r),this.removeComponents(this.eJoinOperatorsAnd,o,r),this.removeComponents(this.eJoinOperatorsOr,o,r)}},t.prototype.removeElements=function(e,r,o){var i=this.removeItems(e,r,o);i.forEach(function(a){return Oi(a)})},t.prototype.removeComponents=function(e,r,o){var i=this,a=this.removeItems(e,r,o);a.forEach(function(s){Oi(s.getGui()),i.destroyBean(s)})},t.prototype.removeItems=function(e,r,o){return o==null?e.splice(r):e.splice(r,o)},t.prototype.afterGuiAttached=function(e){if(n.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!e?.suppressFocus)if(this.isReadOnly())this.eFilterBody.focus();else{var r=this.getInputs(0)[0];if(!r)return;r instanceof Fa&&r.getInputElement().focus()}},t.prototype.afterGuiDetached=function(){n.prototype.afterGuiDetached.call(this);var e=this.getModel();(!this.areModelsEqual(e,this.getModelFromUi())||this.hasInvalidInputs())&&this.resetUiToActiveModel(e);for(var r=-1,o=-1,i=!1,a=this.getJoinOperator(),s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))r===-1&&(r=s,o=s);else{var l=s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1),u=s<r;(l||u)&&(this.removeConditionsAndOperators(s,1),i=!0,u&&o--)}var c=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),c=!0),this.shouldAddNewConditionAtEnd(o===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),c=!0),c&&this.updateConditionStatusesAndValues(o,a),i&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=o},t.prototype.getPlaceholderText=function(e,r){var o=this.translate(e);if(Ng(this.filterPlaceholder)){var i=this.filterPlaceholder,a=this.eTypes[r].getValue(),s=this.translate(a);o=i({filterOptionKey:a,filterOption:s,placeholder:o})}else typeof this.filterPlaceholder=="string"&&(o=this.filterPlaceholder);return o},t.prototype.resetPlaceholder=function(){var e=this,r=this.localeService.getLocaleTextFunc();this.forEachInput(function(o,i,a,s){if(o instanceof Fa){var l=i===0&&s>1?"inRangeStart":i===0?"filterOoo":"inRangeEnd",u=i===0&&s>1?r("ariaFilterFromValue","Filter from value"):i===0?r("ariaFilterValue","Filter Value"):r("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(e.getPlaceholderText(l,a)),o.setInputAriaLabel(u)}})},t.prototype.setElementValue=function(e,r,o){e instanceof Fa&&e.setValue(r!=null?String(r):null,!0)},t.prototype.setElementDisplayed=function(e,r){e instanceof se&&we(e.getGui(),r)},t.prototype.setElementDisabled=function(e,r){e instanceof se&&Jl(e.getGui(),r)},t.prototype.attachElementOnChange=function(e,r){e instanceof Fa&&e.onValueChange(r)},t.prototype.forEachInput=function(e){var r=this;this.getConditionTypes().forEach(function(o,i){r.forEachPositionTypeInput(i,o,e)})},t.prototype.forEachPositionInput=function(e,r){var o=this.getConditionType(e);this.forEachPositionTypeInput(e,o,r)},t.prototype.forEachPositionTypeInput=function(e,r,o){for(var i=this.getNumberOfInputs(r),a=this.getInputs(e),s=0;s<a.length;s++){var l=a[s];l!=null&&o(l,s,e,i)}},t.prototype.isConditionDisabled=function(e,r){return this.isReadOnly()?!0:e===0?!1:e>r+1},t.prototype.isConditionBodyVisible=function(e){var r=this.getConditionType(e),o=this.getNumberOfInputs(r);return o>0},t.prototype.isConditionUiComplete=function(e){if(e>=this.getNumConditions())return!1;var r=this.getConditionType(e);return!(r===t.EMPTY||this.getValues(e).some(function(o){return o==null}))},t.prototype.getNumConditions=function(){return this.eTypes.length},t.prototype.getUiCompleteConditions=function(){for(var e=[],r=0;r<this.getNumConditions();r++)this.isConditionUiComplete(r)&&e.push(this.createCondition(r));return e},t.prototype.createMissingConditionsAndOperators=function(){if(!this.isReadOnly())for(var e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()},t.prototype.resetUiToDefaults=function(e){var r=this;return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(function(o){return r.resetType(o)}),this.eJoinOperatorsAnd.forEach(function(o,i){return r.resetJoinOperatorAnd(o,i,r.joinOperatorId+i)}),this.eJoinOperatorsOr.forEach(function(o,i){return r.resetJoinOperatorOr(o,i,r.joinOperatorId+i)}),this.joinOperatorId++,this.forEachInput(function(o){return r.resetInput(o)}),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),yn.resolve()},t.prototype.resetType=function(e){var r=this.localeService.getLocaleTextFunc(),o=r("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(o).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)},t.prototype.resetJoinOperatorAnd=function(e,r,o){this.resetJoinOperator(e,r,this.isDefaultOperator("AND"),this.translate("andCondition"),o)},t.prototype.resetJoinOperatorOr=function(e,r,o){this.resetJoinOperator(e,r,this.isDefaultOperator("OR"),this.translate("orCondition"),o)},t.prototype.resetJoinOperator=function(e,r,o,i,a){this.updateJoinOperatorDisabled(e.setValue(o,!0).setName("ag-simple-filter-and-or-"+this.getCompId()+"-"+a).setLabel(i),r)},t.prototype.updateJoinOperatorsDisabled=function(){var e=this;this.eJoinOperatorsAnd.forEach(function(r,o){return e.updateJoinOperatorDisabled(r,o)}),this.eJoinOperatorsOr.forEach(function(r,o){return e.updateJoinOperatorDisabled(r,o)})},t.prototype.updateJoinOperatorDisabled=function(e,r){e.setDisabled(this.isReadOnly()||r>0)},t.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},t.prototype.setConditionIntoUi=function(e,r){var o=this,i=this.mapValuesFromModel(e);this.forEachInput(function(a,s,l,u){l===r&&o.setElementValue(a,i[s]!=null?i[s]:null)})},t.prototype.setValueFromFloatingFilter=function(e){var r=this;this.forEachInput(function(o,i,a,s){r.setElementValue(o,i===0&&a===0?e:null,!0)})},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(e,r){var o=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(r,function(i){o.attachElementOnChange(i,o.listener)}))},t.prototype.individualConditionPasses=function(e,r){var o=this.getCellValue(e.node),i=this.mapValuesFromModel(r),a=this.optionsFactory.getCustomOption(r.type),s=this.evaluateCustomFilter(a,i,o);return s??(o==null?this.evaluateNullValue(r.type):this.evaluateNonNullValue(i,o,r,e))},t.prototype.evaluateCustomFilter=function(e,r,o){if(e!=null){var i=e.predicate;if(i!=null&&!r.some(function(a){return a==null}))return i(r,o)}},t.prototype.isBlank=function(e){return e==null||typeof e=="string"&&e.trim().length===0},t.prototype.hasInvalidInputs=function(){return!1},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",t}(wd),_W=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),At=function(n){_W(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setParams=function(e){n.prototype.setParams.call(this,e),this.scalarFilterParams=e},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,r,o){var i=this.comparator(),a=e[0]!=null?i(e[0],r):0;switch(o.type){case t.EQUALS:return a===0;case t.NOT_EQUAL:return a!==0;case t.GREATER_THAN:return a>0;case t.GREATER_THAN_OR_EQUAL:return a>=0;case t.LESS_THAN:return a<0;case t.LESS_THAN_OR_EQUAL:return a<=0;case t.IN_RANGE:{var s=i(e[1],r);return this.scalarFilterParams.inRangeInclusive?a>=0&&s<=0:a>0&&s<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}(tt),d0=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hS=function(){return hS=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},hS.apply(this,arguments)},EW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},nI=1e3,oI=1/0,f0=function(n){d0(t,n);function t(e,r,o){var i=n.call(this,r,o)||this;return i.dateFilterParams=e,i}return t.prototype.conditionToString=function(e,r){var o=e.type,i=(r||{}).numberOfInputs,a=o==tt.IN_RANGE||i===2,s=Jr(e.dateFrom),l=Jr(e.dateTo),u=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(a){var c=s!==null?Ql(s,u):"null",d=l!==null?Ql(l,u):"null";return c+"-"+d}return s!=null?Ql(s,u):""+o},t.prototype.updateParams=function(e){n.prototype.updateParams.call(this,e),this.dateFilterParams=e.dateFilterParams},t}(e_),t_=function(n){d0(t,n);function t(){var e=n.call(this,"dateFilter")||this;return e.eConditionPanelsFrom=[],e.eConditionPanelsTo=[],e.dateConditionFromComps=[],e.dateConditionToComps=[],e.minValidYear=nI,e.maxValidYear=oI,e.minValidDate=null,e.maxValidDate=null,e}return t.prototype.afterGuiAttached=function(e){n.prototype.afterGuiAttached.call(this,e),this.dateConditionFromComps[0].afterGuiAttached(e)},t.prototype.mapValuesFromModel=function(e){var r=e||{},o=r.dateFrom,i=r.dateTo,a=r.type;return[o&&Jr(o)||null,i&&Jr(i)||null].slice(0,this.getNumberOfInputs(a))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,r){var o=r;return r==null||o<e?-1:o>e?1:0},t.prototype.setParams=function(e){this.dateFilterParams=e,n.prototype.setParams.call(this,e);var r=function(o,i){if(e[o]!=null)if(isNaN(e[o]))console.warn("AG Grid: DateFilter "+o+" is not a number");else return e[o]==null?i:Number(e[o]);return i};this.minValidYear=r("minValidYear",nI),this.maxValidYear=r("maxValidYear",oI),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:Jr(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:Jr(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn("AG Grid: DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new f0(this.dateFilterParams,this.localeService,this.optionsFactory)},t.prototype.createDateCompWrapper=function(e){var r=this,o=new s0(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return r.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc(function(){return o.destroy()}),o},t.prototype.setElementValue=function(e,r){e.setDate(r)},t.prototype.setElementDisplayed=function(e,r){e.setDisplayed(r)},t.prototype.setElementDisabled=function(e,r){e.setDisabled(r)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e},t.prototype.createFromToElement=function(e,r,o,i){var a=document.createElement("div");a.classList.add("ag-filter-"+i),a.classList.add("ag-filter-date-"+i),r.push(a),e.appendChild(a),o.push(this.createDateCompWrapper(a))},t.prototype.removeValueElements=function(e,r){this.removeDateComps(this.dateConditionFromComps,e,r),this.removeDateComps(this.dateConditionToComps,e,r),this.removeItems(this.eConditionPanelsFrom,e,r),this.removeItems(this.eConditionPanelsTo,e,r)},t.prototype.removeDateComps=function(e,r,o){var i=this.removeItems(e,r,o);i.forEach(function(a){return a.destroy()})},t.prototype.isValidDateValue=function(e){if(e===null)return!1;if(this.minValidDate){if(e<this.minValidDate)return!1}else if(e.getUTCFullYear()<this.minValidYear)return!1;if(this.maxValidDate){if(e>this.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0},t.prototype.isConditionUiComplete=function(e){var r=this;if(!n.prototype.isConditionUiComplete.call(this,e))return!1;var o=!0;return this.forEachInput(function(i,a,s,l){s!==e||!o||a>=l||(o=o&&r.isValidDateValue(i.getDate()))}),o},t.prototype.areSimpleModelsEqual=function(e,r){return e.dateFrom===r.dateFrom&&e.dateTo===r.dateTo&&e.type===r.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var r=this.getConditionType(e),o={},i=this.getValues(e);return i.length>0&&(o.dateFrom=Zn(i[0])),i.length>1&&(o.dateTo=Zn(i[1])),hS({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:r},o)},t.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),r=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput(function(i){i.setInputPlaceholder(r),i.setInputAriaLabel(o)})},t.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},t.prototype.getValues=function(e){var r=[];return this.forEachPositionInput(e,function(o,i,a,s){i<s&&r.push(o.getDate())}),r},t.prototype.getModelAsString=function(e){var r;return(r=this.filterModelFormatter.getModelAsString(e))!==null&&r!==void 0?r:""},t.DEFAULT_FILTER_OPTIONS=[At.EQUALS,At.GREATER_THAN,At.LESS_THAN,At.NOT_EQUAL,At.IN_RANGE,At.BLANK,At.NOT_BLANK],EW([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(At),RW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),p0=function(n){RW(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.isEventFromDataChange=function(e){return e?.afterDataChange},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){if(!e){this.lastType=this.optionsFactory.getDefaultOption();return}var r=e.operator,o;if(r){var i=e;o=i.conditions[0]}else o=e;this.lastType=o.type},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);var r=e.operator;if(r)return!1;var o=e;return this.isTypeEditable(o.type)},t.prototype.init=function(e){this.setSimpleParams(e)},t.prototype.setSimpleParams=function(e){this.optionsFactory=new l0,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.onParamsUpdated=function(e){this.setSimpleParams(e)},t.prototype.doesFilterHaveSingleInput=function(e){var r=this.optionsFactory.getCustomOption(e),o=(r||{}).numberOfInputs;return o==null||o==1},t.prototype.isTypeEditable=function(e){var r=[tt.IN_RANGE,tt.EMPTY,tt.BLANK,tt.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&r.indexOf(e)<0},t}(se),TW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ww=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},xW=function(n){TW(t,n);function t(){return n.call(this,`
<div class="ag-floating-filter-input" role="presentation">
<ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>
<div ref="eDateWrapper" style="display: flex;"></div>
</div>`)||this}return t.prototype.getDefaultFilterOptions=function(){return t_.DEFAULT_FILTER_OPTIONS},t.prototype.init=function(e){n.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new f0(this.filterParams,this.localeService,this.optionsFactory);var r=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(r("ariaDateFilterInput","Date Filter Input"))},t.prototype.onParamsUpdated=function(e){n.prototype.onParamsUpdated.call(this,e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams})},t.prototype.setEditable=function(e){we(this.eDateWrapper,e),we(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(e,r){if(!(this.isEventFromFloatingFilter(r)||this.isEventFromDataChange(r))){n.prototype.setLastTypeFromModel.call(this,e);var o=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(o),o){if(e){var i=e;this.dateComp.setDate(Jr(i.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,r=this.dateComp.getDate(),o=Zn(r);this.params.parentFilterInstance(function(i){if(i){var a=Jr(o);i.onFloatingFilterChanged(e.getLastType()||null,a)}})},t.prototype.getDateComponentParams=function(){var e=wd.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:wo(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}},t.prototype.createDateComponent=function(){var e=this;this.dateComp=new s0(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},t.prototype.updateDateComponent=function(){var e=this.getDateComponentParams(),r=this.gridOptionsService,o=r.api,i=r.columnApi,a=r.context;e.api=o,e.columnApi=i,e.context=a,this.dateComp.updateParams(e)},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},ww([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ww([G("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),ww([G("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(p0),PW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),OW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},LW=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},IW=function(n){PW(t,n);function t(){return n.call(this,`
<div class="ag-filter-filter">
<ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>
</div>`)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this;this.params=e,this.setParams(e);var o=this.gridOptionsService.getDocument(),i=this.eDateInput.getInputElement();this.addManagedListener(i,"mousedown",function(){r.eDateInput.isDisabled()||r.usingSafariDatePicker||i.focus()}),this.addManagedListener(i,"input",function(a){a.target===o.activeElement&&(r.eDateInput.isDisabled()||r.params.onDateChanged())})},t.prototype.setParams=function(e){var r=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=o&&to(),r.type=o?"date":"text";var i=e.filterParams||{},a=i.minValidYear,s=i.maxValidYear,l=i.minValidDate,u=i.maxValidDate;if(l&&a&&ge(function(){return console.warn("AG Grid: DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.")},"DateFilter.minValidDateAndMinValidYearWarning"),u&&s&&ge(function(){return console.warn("AG Grid: DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.")},"DateFilter.maxValidDateAndMaxValidYearWarning"),l&&u){var c=LW([l,u].map(function(p){return p instanceof Date?p:Jr(p)}),2),d=c[0],f=c[1];d&&f&&d.getTime()>f.getTime()&&ge(function(){return console.warn("AG Grid: DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")},"DateFilter.minValidDateAndMaxValidDateWarning")}l?l instanceof Date?r.min=Ql(l):r.min=l:a&&(r.min=a+"-01-01"),u?u instanceof Date?r.max=Ql(u):r.max=u:s&&(r.max=s+"-12-31")},t.prototype.onParamsUpdated=function(e){this.params=e,this.setParams(e)},t.prototype.getDate=function(){return Jr(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(Zn(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&e.filterParams.browserDatePicker!=null?e.filterParams.browserDatePicker:Vg()||MS()||to()&&bS()>=14.1},OW([G("eDateInput")],t.prototype,"eDateInput",void 0),t}(se),DW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ha=function(n){DW(t,n);function t(e,r,o){return r===void 0&&(r="ag-text-field"),o===void 0&&(o="text"),n.call(this,e,r,o)||this}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(e,r){return this.eInput.value!==e&&(this.eInput.value=D(e)?e:""),n.prototype.setValue.call(this,e,r)},t.prototype.setStartValue=function(e){this.setValue(e,!0)},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]"),r=function(o){jg(o)&&o.key&&!e.test(o.key)&&o.preventDefault()};this.addManagedListener(this.eInput,"keydown",r),this.addManagedListener(this.eInput,"paste",function(o){var i,a=(i=o.clipboardData)===null||i===void 0?void 0:i.getData("text");a&&a.split("").some(function(s){return!e.test(s)})&&o.preventDefault()})},t}(Fa),AW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),$g=function(n){AW(t,n);function t(e){return n.call(this,e,"ag-number-field","number")||this}return t.prototype.postConstruct=function(){var e=this;n.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",function(){var r=parseFloat(e.eInput.value),o=isNaN(r)?"":e.normalizeValue(r.toString());e.value!==o&&e.setValue(o)}),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.normalizeValue=function(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));var r=parseFloat(e);return this.min!=null&&r<this.min?e=this.min.toString():this.max!=null&&r>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e,r){if(this.precision==null)return e;if(r){var o=parseFloat(e).toFixed(this.precision);return parseFloat(o).toString()}var i=String(e).split(".");if(i.length>1){if(i[1].length<=this.precision)return e;if(this.precision>0)return i[0]+"."+i[1].slice(0,this.precision)}return i[0]},t.prototype.setMin=function(e){return this.min===e?this:(this.min=e,ni(this.eInput,"min",e),this)},t.prototype.setMax=function(e){return this.max===e?this:(this.max=e,ni(this.eInput,"max",e),this)},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e?this:(this.step=e,ni(this.eInput,"step",e),this)},t.prototype.setValue=function(e,r){var o=this;return this.setValueOrInputValue(function(i){return n.prototype.setValue.call(o,i,r)},function(){return o},e)},t.prototype.setStartValue=function(e){var r=this;return this.setValueOrInputValue(function(o){return n.prototype.setValue.call(r,o,!0)},function(o){r.eInput.value=o},e)},t.prototype.setValueOrInputValue=function(e,r,o){if(D(o)){var i=this.isScientificNotation(o);if(i&&this.eInput.validity.valid)return e(o);if(!i){o=this.adjustPrecision(o);var a=this.normalizeValue(o);i=o!=a}if(i)return r(o)}return e(o)},t.prototype.getValue=function(){if(this.eInput.validity.valid){var e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):n.prototype.getValue.call(this)}},t.prototype.isScientificNotation=function(e){return typeof e=="string"&&e.includes("e")},t}(Ha),h0=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),g0=function(n){h0(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.conditionToString=function(e,r){var o=(r||{}).numberOfInputs,i=e.type==tt.IN_RANGE||o===2;return i?this.formatValue(e.filter)+"-"+this.formatValue(e.filterTo):e.filter!=null?this.formatValue(e.filter):""+e.type},t}(e_);function gS(n){var t=(n??{}).allowedCharPattern;return t??null}var r_=function(n){h0(t,n);function t(){var e=n.call(this,"numberFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return t.prototype.mapValuesFromModel=function(e){var r=e||{},o=r.filter,i=r.filterTo,a=r.type;return[this.processValue(o),this.processValue(i)].slice(0,this.getNumberOfInputs(a))},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,n.prototype.setParams.call(this,e),this.filterModelFormatter=new g0(this.localeService,this.optionsFactory,this.numberFilterParams.numberFormatter)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.setElementValue=function(e,r,o){var i=!o&&this.numberFilterParams.numberFormatter?this.numberFilterParams.numberFormatter(r??null):r;n.prototype.setElementValue.call(this,e,i)},t.prototype.createValueElement=function(){var e=gS(this.numberFilterParams),r=document.createElement("div");return r.classList.add("ag-filter-body"),bt(r,"presentation"),this.createFromToElement(r,this.eValuesFrom,"from",e),this.createFromToElement(r,this.eValuesTo,"to",e),r},t.prototype.createFromToElement=function(e,r,o,i){var a=this.createManagedBean(i?new Ha({allowedCharPattern:i}):new $g);a.addCssClass("ag-filter-"+o),a.addCssClass("ag-filter-filter"),r.push(a),e.appendChild(a.getGui())},t.prototype.removeValueElements=function(e,r){this.removeComponents(this.eValuesFrom,e,r),this.removeComponents(this.eValuesTo,e,r)},t.prototype.getValues=function(e){var r=this,o=[];return this.forEachPositionInput(e,function(i,a,s,l){a<l&&o.push(r.processValue(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.processValue=function(e){return e==null||isNaN(e)?null:e},t.prototype.stringToFloat=function(e){if(typeof e=="number")return e;var r=ri(e);return r!=null&&r.trim()===""&&(r=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(r):r==null||r.trim()==="-"?null:parseFloat(r)},t.prototype.createCondition=function(e){var r=this.getConditionType(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(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getModelAsString=function(e){var r;return(r=this.filterModelFormatter.getModelAsString(e))!==null&&r!==void 0?r:""},t.prototype.hasInvalidInputs=function(){var e=!1;return this.forEachInput(function(r){if(!r.getInputElement().validity.valid){e=!0;return}}),e},t.DEFAULT_FILTER_OPTIONS=[At.EQUALS,At.NOT_EQUAL,At.LESS_THAN,At.LESS_THAN_OR_EQUAL,At.GREATER_THAN,At.GREATER_THAN_OR_EQUAL,At.IN_RANGE,At.BLANK,At.NOT_BLANK],t}(At),v0=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),wg=function(){return wg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},wg.apply(this,arguments)},m0=function(n){v0(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.conditionToString=function(e,r){var o=(r||{}).numberOfInputs,i=e.type==tt.IN_RANGE||o===2;return i?e.filter+"-"+e.filterTo:e.filter!=null?""+e.filter:""+e.type},t}(e_),Kg=function(n){v0(t,n);function t(){var e=n.call(this,"textFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return t.trimInput=function(e){var r=e&&e.trim();return r===""?e:r},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(e){this.textFilterParams=e,n.prototype.setParams.call(this,e),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new m0(this.localeService,this.optionsFactory)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Q.doOnce(function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")},"textCustomComparator.deprecated"),function(r){var o=r.filterOption,i=r.value,a=r.filterText;return e(o,i,a)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var r=this.getConditionType(e),o={filterType:this.getFilterType(),type:r},i=this.getValuesWithSideEffects(e,!0);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(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getValues=function(e){return this.getValuesWithSideEffects(e,!1)},t.prototype.getValuesWithSideEffects=function(e,r){var o=this,i=[];return this.forEachPositionInput(e,function(a,s,l,u){var c;if(s<u){var d=ri(a.getValue());r&&o.textFilterParams.trimInput&&(d=(c=t.trimInput(d))!==null&&c!==void 0?c:null,a.setValue(d,!0)),i.push(d)}}),i},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),bt(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e},t.prototype.createFromToElement=function(e,r,o){var i=this.createManagedBean(new Ha);i.addCssClass("ag-filter-"+o),i.addCssClass("ag-filter-filter"),r.push(i),e.appendChild(i.getGui())},t.prototype.removeValueElements=function(e,r){this.removeComponents(this.eValuesFrom,e,r),this.removeComponents(this.eValuesTo,e,r)},t.prototype.mapValuesFromModel=function(e){var r=e||{},o=r.filter,i=r.filterTo,a=r.type;return[o||null,i||null].slice(0,this.getNumberOfInputs(a))},t.prototype.evaluateNullValue=function(e){var r=[tt.NOT_EQUAL,tt.NOT_CONTAINS,tt.BLANK];return e?r.indexOf(e)>=0:!1},t.prototype.evaluateNonNullValue=function(e,r,o,i){var a=this,s=e.map(function(m){return a.formatter(m)})||[],l=this.formatter(r),u=this.textFilterParams,c=u.api,d=u.colDef,f=u.column,p=u.columnApi,h=u.context,v=u.textFormatter;if(o.type===tt.BLANK)return this.isBlank(r);if(o.type===tt.NOT_BLANK)return!this.isBlank(r);var C={api:c,colDef:d,column:f,columnApi:p,context:h,node:i.node,data:i.data,filterOption:o.type,value:l,textFormatter:v};return s.some(function(m){return a.matcher(wg(wg({},C),{filterText:m}))})},t.prototype.getModelAsString=function(e){var r;return(r=this.filterModelFormatter.getModelAsString(e))!==null&&r!==void 0?r:""},t.DEFAULT_FILTER_OPTIONS=[tt.CONTAINS,tt.NOT_CONTAINS,tt.EQUALS,tt.NOT_EQUAL,tt.STARTS_WITH,tt.ENDS_WITH,tt.BLANK,tt.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return e==null?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var r=e.filterOption,o=e.value,i=e.filterText;if(i==null)return!1;switch(r){case t.CONTAINS:return o.indexOf(i)>=0;case t.NOT_CONTAINS:return o.indexOf(i)<0;case t.EQUALS:return o===i;case t.NOT_EQUAL:return o!=i;case t.STARTS_WITH:return o.indexOf(i)===0;case t.ENDS_WITH:var a=o.lastIndexOf(i);return a>=0&&a===o.length-i.length;default:return!1}},t}(tt),y0=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},C0=function(n){y0(t,n);function t(e){var r=n.call(this)||this;return r.params=e,r.valueChangedListener=function(){},r}return t.prototype.setupGui=function(e){var r=this,o;this.eFloatingFilterTextInput=this.createManagedBean(new Ha((o=this.params)===null||o===void 0?void 0:o.config));var i=this.eFloatingFilterTextInput.getGui();e.appendChild(i),this.addManagedListener(i,"input",function(a){return r.valueChangedListener(a)}),this.addManagedListener(i,"keydown",function(a){return r.valueChangedListener(a)})},t.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterTextInput.setAutoComplete(e)},t.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},t.prototype.setValue=function(e,r){this.eFloatingFilterTextInput.setValue(e,r)},t.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},t.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)},t.prototype.setAriaLabel=function(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)},t}(F),w0=function(n){y0(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setTemplate(`
<div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div>
`)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,r){this.isEventFromFloatingFilter(r)||this.isEventFromDataChange(r)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},t.prototype.init=function(e){this.setupFloatingFilterInputService(e),n.prototype.init.call(this,e),this.setTextInputParams(e)},t.prototype.setupFloatingFilterInputService=function(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)},t.prototype.setTextInputParams=function(e){var r;this.params=e;var o=(r=e.browserAutoComplete)!==null&&r!==void 0?r:!1;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:o}),this.applyActive=wd.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var i=wd.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),a=wo(this.syncUpWithParentFilter.bind(this),i);this.floatingFilterInputService.setValueChangedListener(a)}},t.prototype.onParamsUpdated=function(e){n.prototype.onParamsUpdated.call(this,e),this.setTextInputParams(e)},t.prototype.recreateFloatingFilterInputService=function(e){var r=this.floatingFilterInputService.getValue();vr(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(r,!0)},t.prototype.getAriaLabel=function(e){var r=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.localeService.getLocaleTextFunc();return r+" "+o("ariaFilterInput","Filter Input")},t.prototype.syncUpWithParentFilter=function(e){var r=this,o=e.key===O.ENTER;if(!(this.applyActive&&!o)){var i=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(i=Kg.trimInput(i),this.floatingFilterInputService.setValue(i,!0)),this.params.parentFilterInstance(function(a){a&&a.onFloatingFilterChanged(r.getLastType()||null,i||null)})}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},Sw([w("columnModel")],t.prototype,"columnModel",void 0),Sw([G("eFloatingFilterInputContainer")],t.prototype,"eFloatingFilterInputContainer",void 0),Sw([M],t.prototype,"postConstruct",null),t}(p0),S0=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),FW=function(n){S0(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.valueChangedListener=function(){},e.numberInputActive=!0,e}return t.prototype.setupGui=function(e){var r=this;this.eFloatingFilterNumberInput=this.createManagedBean(new $g),this.eFloatingFilterTextInput=this.createManagedBean(new Ha),this.eFloatingFilterTextInput.setDisabled(!0);var o=this.eFloatingFilterNumberInput.getGui(),i=this.eFloatingFilterTextInput.getGui();e.appendChild(o),e.appendChild(i),this.setupListeners(o,function(a){return r.valueChangedListener(a)}),this.setupListeners(i,function(a){return r.valueChangedListener(a)})},t.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)},t.prototype.getValue=function(){return this.getActiveInputElement().getValue()},t.prototype.setValue=function(e,r){this.getActiveInputElement().setValue(e,r)},t.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},t.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},t.prototype.setupListeners=function(e,r){this.addManagedListener(e,"input",r),this.addManagedListener(e,"keydown",r)},t.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)},t.prototype.setAriaLabel=function(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)},t}(F),bW=function(n){S0(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e){var r;n.prototype.init.call(this,e),this.filterModelFormatter=new g0(this.localeService,this.optionsFactory,(r=e.filterParams)===null||r===void 0?void 0:r.numberFormatter)},t.prototype.onParamsUpdated=function(e){var r=gS(e.filterParams);r!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),n.prototype.onParamsUpdated.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},t.prototype.getDefaultFilterOptions=function(){return r_.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){return this.allowedCharPattern=gS(e.filterParams),this.allowedCharPattern?this.createManagedBean(new C0({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new FW)},t}(w0),MW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),_0=function(n){MW(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e){n.prototype.init.call(this,e),this.filterModelFormatter=new m0(this.localeService,this.optionsFactory)},t.prototype.onParamsUpdated=function(e){n.prototype.onParamsUpdated.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},t.prototype.getDefaultFilterOptions=function(){return Kg.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(){return this.createManagedBean(new C0)},t}(w0),Zr=function(){function n(t,e){var r=this;e===void 0&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Li,this.eElement=t,this.preventMouseClick=e;var o=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),a=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",a,{passive:!1}),this.destroyFuncs.push(function(){r.eElement.removeEventListener("touchstart",o,{passive:!0}),r.eElement.removeEventListener("touchmove",i,{passive:!0}),r.eElement.removeEventListener("touchend",a,{passive:!1})})}return n.prototype.getActiveTouch=function(t){for(var e=0;e<t.length;e++){var r=t[e].identifier===this.touchStart.identifier;if(r)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(){var o=e.touchStart===r;if(e.touching&&o&&!e.moved){e.moved=!0;var i={type:n.EVENT_LONG_TAP,touchStart:e.touchStart,touchEvent:t};e.eventService.dispatchEvent(i)}},500)}},n.prototype.onTouchMove=function(t){if(this.touching){var e=this.getActiveTouch(t.touches);if(e){var r=!$S(e,this.touchStart,4);r&&(this.moved=!0)}}},n.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var e={type:n.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(e),this.checkForDoubleTap()}this.preventMouseClick&&t.cancelable&&t.preventDefault(),this.touching=!1}},n.prototype.checkForDoubleTap=function(){var t=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0){var e=t-this.lastTapTime;if(e>n.DOUBLE_TAP_MILLIS){var r={type:n.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(r),this.lastTapTime=null}else this.lastTapTime=t}else this.lastTapTime=t},n.prototype.destroy=function(){this.destroyFuncs.forEach(function(t){return t()})},n.EVENT_TAP="tap",n.EVENT_DOUBLE_TAP="doubleTap",n.EVENT_LONG_TAP="longTap",n.DOUBLE_TAP_MILLIS=500,n}(),NW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ws=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Yg=function(n){NW(t,n);function t(e){var r=n.call(this)||this;return e||r.setTemplate(t.TEMPLATE),r}return t.prototype.attachCustomElements=function(e,r,o,i,a){this.eSortOrder=e,this.eSortAsc=r,this.eSortDesc=o,this.eSortMixed=i,this.eSortNone=a},t.prototype.setupSort=function(e,r){var o=this;r===void 0&&(r=!1),this.column=e,this.suppressOrder=r,this.setupMultiSortIndicator();var i=!!this.column.getColDef().sortable;i&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,function(){return o.onSortChanged()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return o.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,r,o){if(r!=null){var i=_t(e,this.gridOptionsService,o);i&&r.appendChild(i)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var r=e==="asc";we(this.eSortAsc,r,{skipAriaHidden:!0})}if(this.eSortDesc){var o=e==="desc";we(this.eSortDesc,o,{skipAriaHidden:!0})}if(this.eSortNone){var i=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is("unSortIcon"),a=e==null;we(this.eSortNone,!i&&a,{skipAriaHidden:!0})}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var r=this.column.getColDef().showRowGroup,o=this.gridOptionsService.isColumnsSortingCoupledToGroup();o&&r&&(this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e=this.sortController.getDisplaySortForColumn(this.column)==="mixed";we(this.eSortMixed,e,{skipAriaHidden:!0})}},t.prototype.updateSortOrder=function(){var e=this,r;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),i=(r=this.sortController.getDisplaySortIndexForColumn(this.column))!==null&&r!==void 0?r:-1,a=o.some(function(l){var u;return(u=e.sortController.getDisplaySortIndexForColumn(l))!==null&&u!==void 0?u:-1>=1}),s=i>=0&&a;we(this.eSortOrder,s,{skipAriaHidden:!0}),i>=0?this.eSortOrder.innerHTML=(i+1).toString():vr(this.eSortOrder)}},t.TEMPLATE=`<span class="ag-sort-indicator-container">
<span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>
<span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>
<span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>
<span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>
<span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>
</span>`,ws([G("eSortOrder")],t.prototype,"eSortOrder",void 0),ws([G("eSortAsc")],t.prototype,"eSortAsc",void 0),ws([G("eSortDesc")],t.prototype,"eSortDesc",void 0),ws([G("eSortMixed")],t.prototype,"eSortMixed",void 0),ws([G("eSortNone")],t.prototype,"eSortNone",void 0),ws([w("columnModel")],t.prototype,"columnModel",void 0),ws([w("sortController")],t.prototype,"sortController",void 0),t}(se),GW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},kW=function(n){GW(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||this.workOutSort()!=this.currentSort?!1:(this.setDisplayName(e),!0)},t.prototype.workOutTemplate=function(){var e=sD(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e,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=xt(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(r!=null){var i=_t(e,this.gridOptionsService,o);i&&r.appendChild(i)}},t.prototype.setupTap=function(){var e=this,r=this.gridOptionsService;if(!r.is("suppressTouch")){var o=new Zr(this.getGui(),!0),i=r.is("suppressMenuHide"),a=i&&D(this.eMenu),s=a?new Zr(this.eMenu,!0):o;if(this.params.enableMenu){var l=a?"EVENT_TAP":"EVENT_LONG_TAP",u=function(d){r.api.showColumnMenuAfterMouseClick(e.params.column,d.touchStart)};this.addManagedListener(s,Zr[l],u)}if(this.params.enableSorting){var c=function(d){var f=d.touchStart.target;i&&e.eMenu.contains(f)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")};this.addManagedListener(o,Zr.EVENT_TAP,c)}this.addDestroyFunc(function(){return o.destroy()}),a&&this.addDestroyFunc(function(){return s.destroy()})}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsService.is("suppressMenuHide"),r=Na()&&e,o=this.params.enableMenu&&!r;return o},t.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){Oi(this.eMenu);return}var r=this.gridOptionsService.is("suppressMenuHide");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 Yg(!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.gridOptionsService.get("multiSortKey")==="ctrl";this.addManagedListener(this.params.column,Ne.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=new Date().getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(i){var a=e.params.column.isMoving(),s=new Date().getTime(),l=s-e.lastMovingChanged<50,u=a||l;if(!u){var c=r?i.ctrlKey||i.metaKey:i.shiftKey;e.params.progressSort(c)}});var o=function(){if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var i=e.columnModel.getSourceColumnsForGroupColumn(e.params.column),a=i?.every(function(l){return e.params.column.getSort()==l.getSort()}),s=!a;e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",s)}};this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,Ne.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();we(this.eFilter,e,{skipAriaHidden:!0})},t.TEMPLATE=`<div class="ag-cell-label-container" role="presentation">
<span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>
<div ref="eLabel" class="ag-header-cell-label" role="presentation">
<span ref="eText" class="ag-header-cell-text"></span>
<span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>
<ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>
</div>
</div>`,hn([w("sortController")],t.prototype,"sortController",void 0),hn([w("menuFactory")],t.prototype,"menuFactory",void 0),hn([w("columnModel")],t.prototype,"columnModel",void 0),hn([G("eFilter")],t.prototype,"eFilter",void 0),hn([G("eSortIndicator")],t.prototype,"eSortIndicator",void 0),hn([G("eMenu")],t.prototype,"eMenu",void 0),hn([G("eLabel")],t.prototype,"eLabel",void 0),hn([G("eText")],t.prototype,"eText",void 0),hn([G("eSortOrder")],t.prototype,"eSortOrder",void 0),hn([G("eSortAsc")],t.prototype,"eSortAsc",void 0),hn([G("eSortDesc")],t.prototype,"eSortDesc",void 0),hn([G("eSortMixed")],t.prototype,"eSortMixed",void 0),hn([G("eSortNone")],t.prototype,"eSortNone",void 0),t}(se),HW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),_w=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},VW=function(n){HW(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return 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(){var e=this.params;if(e.template){var r="AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)";ge(function(){return console.warn(r)},"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var r=function(a){if(!_o(a)){var s=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),s,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,r),this.addTouchAndClickListeners(this.eOpenIcon,r);var o=function(a){ii(a)};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,gt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(i,gt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,r){var o=new Zr(e,!0);this.addManagedListener(o,Zr.EVENT_TAP,r),this.addDestroyFunc(function(){return o.destroy()}),this.addManagedListener(e,"click",r)},t.prototype.updateIconVisibility=function(){var e=this.params.columnGroup;if(e.isExpandable()){var r=this.params.columnGroup.isExpanded();we(this.eOpenIcon,r),we(this.eCloseIcon,!r)}else we(this.eOpenIcon,!1),we(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,r){var o=_t(e,this.gridOptionsService,null);o&&this.getRefElement(r).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable()){we(this.eOpenIcon,!1),we(this.eCloseIcon,!1);return}},t.prototype.setupLabel=function(){var e,r=this.params,o=r.displayName,i=r.columnGroup;if(D(o)){var a=xt(o);this.getRefElement("agLabel").innerHTML=a}this.addOrRemoveCssClass("ag-sticky-label",!(!((e=i.getColGroupDef())===null||e===void 0)&&e.suppressStickyLabel))},t.TEMPLATE=`<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">
<span ref="agLabel" class="ag-header-group-text" role="presentation"></span>
<span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>
<span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>
</div>`,_w([w("columnModel")],t.prototype,"columnModel",void 0),_w([G("agOpened")],t.prototype,"eOpenIcon",void 0),_w([G("agClosed")],t.prototype,"eCloseIcon",void 0),t}(se),BW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Va=function(n){BW(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return 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,r=e&&e.isAlive();r&&e.getGui().classList.remove("ag-has-popup"),n.prototype.destroy.call(this)},t}(se),WW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),UW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},E0=function(n){WW(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return 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),D(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()},t.prototype.onKeyDown=function(e){var r=e.key;(r===O.LEFT||r===O.UP||r===O.RIGHT||r===O.DOWN||e.shiftKey&&r===O.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){var e=this.eTextArea.getValue();return!D(e)&&!D(this.params.value)?this.params.value:this.params.parseValue(e)},t.TEMPLATE=`<div class="ag-large-text">
<ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
</div>`,UW([G("eTextArea")],t.prototype,"eTextArea",void 0),t}(Va),jW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),iI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},R0=function(n){jW(t,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 t.prototype.init=function(e){this.focusAfterAttached=e.cellStartedEdit;var r=this,o=r.eSelect,i=r.valueFormatterService,a=r.gridOptionsService,s=e.values,l=e.value,u=e.eventKey;if(Z(s)){console.warn("AG Grid: no values found for select cellEditor");return}this.startedByEnter=u!=null?u===O.ENTER:!1;var c=!1;s.forEach(function(h){var v={value:h},C=i.formatValue(e.column,null,h),m=C!=null;v.text=m?C:h,o.addOption(v),c=c||l===h}),c?o.setValue(e.value,!0):e.values.length&&o.setValue(e.values[0],!0);var d=e.valueListGap,f=e.valueListMaxWidth,p=e.valueListMaxHeight;d!=null&&o.setPickerGap(d),p!=null&&o.setPickerMaxHeight(p),f!=null&&o.setPickerMaxWidth(f),a.get("editType")!=="fullRow"&&this.addManagedListener(this.eSelect,qg.EVENT_ITEM_SELECTED,function(){return e.stopEditing()})},t.prototype.afterGuiAttached=function(){var e=this;this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(function(){e.isAlive()&&e.eSelect.showPicker()})},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},iI([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),iI([G("eSelect")],t.prototype,"eSelect",void 0),t}(Va),zW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Xg=function(n){zW(t,n);function t(e){var r=n.call(this,`
<div class="ag-cell-edit-wrapper">
`+e.getTemplate()+`
</div>`)||this;return r.cellEditorInput=e,r}return t.prototype.init=function(e){this.params=e;var r=this.eInput;this.cellEditorInput.init(r,e);var o;if(e.cellStartedEdit){this.focusAfterAttached=!0;var i=e.eventKey;i===O.BACKSPACE||e.eventKey===O.DELETE?o="":i&&i.length===1?o=i:(o=this.cellEditorInput.getStartValue(),i!==O.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,o=this.cellEditorInput.getStartValue();o!=null&&r.setStartValue(o),this.addManagedListener(r.getGui(),"keydown",function(a){var s=a.key;(s===O.PAGE_UP||s===O.PAGE_DOWN)&&a.preventDefault()})},t.prototype.afterGuiAttached=function(){var e,r,o=this.localeService.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(o("ariaInputEditor","Input Editor")),!!this.focusAfterAttached){to()||i.getFocusableElement().focus();var a=i.getInputElement();this.highlightAllOnFocus?a.select():(r=(e=this.cellEditorInput).setCaret)===null||r===void 0||r.call(e)}},t.prototype.focusIn=function(){var e=this.eInput,r=e.getFocusableElement(),o=e.getInputElement();r.focus(),o.select()},t.prototype.getValue=function(){return this.cellEditorInput.getValue()},t.prototype.isPopup=function(){return!1},qW([G("eInput")],t.prototype,"eInput",void 0),t}(Va),$W=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),KW=function(){function n(){}return n.prototype.getTemplate=function(){return'<ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>'},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.maxLength!=null&&t.setMaxLength(e.maxLength)},n.prototype.getValue=function(){var t=this.eInput.getValue();return!D(t)&&!D(this.params.value)?this.params.value:this.params.parseValue(t)},n.prototype.getStartValue=function(){var t=this.params.useFormatter||this.params.column.getColDef().refData;return t?this.params.formatValue(this.params.value):this.params.value},n.prototype.setCaret=function(){var t=this.eInput.getValue(),e=D(t)&&t.length||0;e&&this.eInput.getInputElement().setSelectionRange(e,e)},n}(),vS=function(n){$W(t,n);function t(){return n.call(this,new KW)||this}return t}(Xg),YW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),XW=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},QW="\u2191",JW="\u2193",T0=function(n){YW(t,n);function t(){var e=n.call(this,t.TEMPLATE)||this;return e.refreshCount=0,e}return t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,r){var o=Math.abs(r),i=e.formatValue(o),a=D(i)?i:o,s=r>=0;s?this.eDelta.innerHTML=QW+a:this.eDelta.innerHTML=JW+a,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var 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"),vr(this.eDelta)},t.prototype.refresh=function(e){var r=e.value;if(r===this.lastValue||(D(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:D(e.value)?this.eValue.innerHTML=r:vr(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof r=="number"&&typeof this.lastValue=="number"){var o=r-this.lastValue;this.showDelta(e,o)}return 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>',XW([w("filterManager")],t.prototype,"filterManager",void 0),t}(se),ZW=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),eU=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},x0=function(n){ZW(t,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 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=tr('<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 Z(r)&&(r=""),r===this.lastValue||this.filterManager.isSuppressFlashingCellsBecauseFiltering()?!1:(this.addSlideAnimation(),this.lastValue=r,D(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:D(e.value)?this.eCurrent.innerHTML=r:vr(this.eCurrent),!0)},t.TEMPLATE=`<span>
<span class="ag-value-slide-current"></span>
</span>`,eU([w("filterManager")],t.prototype,"filterManager",void 0),t}(se),$l=function(){return $l=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},$l.apply(this,arguments)},ce=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.hovered=!1,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(),this.resetQuickFilterAggregateText();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==="top"?"t-"+this.rowIndex:this.rowPinned==="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=D(this.id)?this.createDaemonNode():null,o=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(e),this.checkRowSelectable(),this.beans.selectionService.syncInRowNode(this,r);var i=this.createDataChangedEvent(t,o,!1);this.dispatchLocalEvent(i)},n.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsService.get("isRowSelectable");this.setRowSelectable(t?t(this):!0)},n.prototype.setRowSelectable=function(t){if(this.selectable!==t){this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_SELECTABLE_CHANGED));var e=this.beans.gridOptionsService.is("groupSelectsChildren");if(e){var r=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:r??!1,source:"selectableChanged"})}}},n.prototype.setId=function(t){var e=this.beans.gridOptionsService.getCallback("getRowId");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}),this.id!==null&&typeof this.id=="string"&&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."),this.id!==null&&typeof this.id!="string"&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},n.prototype.getGroupKeys=function(t){t===void 0&&(t=!1);var e=[],r=this;for(t&&(r=r.parent);r&&r.level>=0;)e.push(r.key),r=r.parent;return e.reverse(),e},n.prototype.isPixelInRange=function(t){return!D(this.rowTop)||!D(this.rowHeight)?!1: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(t!==null))},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.setHovered=function(t){this.hovered!==t&&(this.hovered=t)},n.prototype.isHovered=function(){return this.hovered},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){e===void 0&&(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,t!=null&&(this.checkAutoHeightsDebounced==null&&(this.checkAutoHeightsDebounced=wo(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},n.prototype.checkAutoHeights=function(){var t=this,e=!1,r=!0,o=0,i=this.__autoHeights;if(i!=null){var a=this.beans.columnModel.getAllDisplayedAutoHeightCols();if(a.forEach(function(l){var u=i[l.getId()];if(u==null)if(t.beans.columnModel.isColSpanActive()){var c=[];switch(l.getPinned()){case"left":c=t.beans.columnModel.getDisplayedLeftColumnsForRow(t);break;case"right":c=t.beans.columnModel.getDisplayedRightColumnsForRow(t);break;case null:c=t.beans.columnModel.getViewportCenterColumnsForRow(t);break}if(c.includes(l)){e=!0;return}u=-1}else{e=!0;return}else r=!1;u>o&&(o=u)}),!e&&((r||o<10)&&(o=this.beans.gridOptionsService.getRowHeightForNode(this).height),o!=this.rowHeight)){this.setRowHeight(o);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(_.EVENT_ROW_GROUP_OPENED),{expanded:t,event:e||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.sibling&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},n.prototype.createGlobalRowEvent=function(t){return{type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi}},n.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},n.prototype.setDataValue=function(t,e,r){var o=this,i=function(){var u;return typeof t!="string"?t:(u=o.beans.columnModel.getGridColumn(t))!==null&&u!==void 0?u:o.beans.columnModel.getPrimaryColumn(t)},a=i(),s=this.getValueFromValueService(a);if(this.beans.gridOptionsService.is("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(a,s,e,r),!1;var l=this.beans.valueService.setValue(this,a,e,r);return this.dispatchCellChangedEvent(a,e,s),this.checkRowSelectable(),l},n.prototype.getValueFromValueService=function(t){var e=this.leafGroup&&this.beans.columnModel.isPivotMode(),r=this.group&&this.expanded&&!this.footer&&!e,o=this.beans.gridOptionsService.getGroupIncludeFooter(),i=o({node:this}),a=this.beans.gridOptionsService.is("groupSuppressBlankHeader"),s=r&&i&&!a,l=this.beans.valueService.getValue(t,this,!1,s);return l},n.prototype.dispatchEventForSaveValueReadOnly=function(t,e,r,o){var i={type:_.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:t,colDef:t.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,data:this.data,node:this,oldValue:e,newValue:r,value:r,source:o};this.beans.eventService.dispatchEvent(i)},n.prototype.setGroupValue=function(t,e){var r=this.beans.columnModel.getGridColumn(t);Z(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=ZI([this.aggData,t]),o=this.aggData;this.aggData=t,this.eventService&&r.forEach(function(i){var a=e.aggData?e.aggData[i]:void 0,s=o?o[i]:void 0;if(a!==s){var l=e.beans.columnModel.lookupGridColumn(i);l&&e.dispatchCellChangedEvent(l,a,s)}})},n.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0,e=this.beans.gridOptionsService.isRowModelType("serverSide");if(e){var r=this.beans.gridOptionsService.is("treeData"),o=this.beans.gridOptionsService.get("isServerSideGroup");t=!this.stub&&!this.footer&&(r?!!o&&o(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_HAS_CHILDREN_CHANGED)))},n.prototype.hasChildren=function(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren},n.prototype.isEmptyRowGroupNode=function(){return this.group&&Cn(this.childrenAfterGroup)},n.prototype.dispatchCellChangedEvent=function(t,e,r){var o={type:n.EVENT_CELL_CHANGED,node:this,column:t,newValue:e,oldValue:r};this.dispatchLocalEvent(o)},n.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},n.prototype.isExpandable=function(){return!!(this.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(!(!((t=this.childrenAfterGroup)===null||t===void 0)&&t.length))return this.selectable?this.selected:null;for(var i=0;i<this.childrenAfterGroup.length;i++){var a=this.childrenAfterGroup[i],s=a.isSelected();if(!a.selectable){var l=a.calculateSelectedFromChildren();if(l===null)continue;s=l}switch(s){case!0:e=!0;break;case!1:r=!0;break;default:o=!0;break}}if(!(o||e&&r))return e?!0:r?!1:this.selectable?this.selected:null},n.prototype.setSelectedInitialValue=function(t){this.selected=t},n.prototype.selectThisNode=function(t,e,r){r===void 0&&(r="api");var o=!this.selectable&&t,i=this.selected===t;if(o||i)return!1;if(this.selected=t,this.eventService){this.dispatchLocalEvent(this.createLocalRowEvent(n.EVENT_ROW_SELECTED));var a=this.sibling;a&&a.footer&&a.dispatchLocalEvent(a.createLocalRowEvent(n.EVENT_ROW_SELECTED))}var s=$l($l({},this.createGlobalRowEvent(_.EVENT_ROW_SELECTED)),{event:e||null,source:r});return this.beans.eventService.dispatchEvent(s),!0},n.prototype.setSelected=function(t,e,r){if(e===void 0&&(e=!1),r===void 0&&(r="api"),typeof r=="boolean"){console.warn("AG Grid: since version v30, rowNode.setSelected() property `suppressFinishActions` has been removed, please use `gridApi.setNodesSelected()` for bulk actions, and the event `source` property for ignoring events instead.");return}this.setSelectedParams({newValue:t,clearSelection:e,rangeSelect:!1,source:r})},n.prototype.setSelectedParams=function(t){return this.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),0):this.id===void 0?(console.warn("AG Grid: cannot select node until id for node is known"),0):this.beans.selectionService.setNodesSelected($l($l({},t),{nodes:[this.footer?this.sibling:this]}))},n.prototype.isRowPinned=function(){return this.rowPinned==="top"||this.rowPinned==="bottom"},n.prototype.isParentOfNode=function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1},n.prototype.addEventListener=function(t,e){this.eventService||(this.eventService=new Li),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 a=e.parent,s=D(a)&&e.firstChild;s?a.rowGroupColumn===t&&(o=!0,i=a):r=!1,e=a}return o?i:null},n.prototype.isFullWidthCell=function(){if(this.detail)return!0;var t=this.beans.gridOptionsService.getCallback("isFullWidthRow");return t?t({rowNode:this}):!1},n.prototype.getRoute=function(){if(this.key!=null){for(var t=[],e=this;e.key!=null;)t.push(e.key),e=e.parent;return t.reverse()}},n.prototype.createFooter=function(){var t=this;if(!this.sibling){var e=new Set(["eventService","__objectId","sticky"]),r=new n(this.beans);Object.keys(this).forEach(function(o){e.has(o)||(r[o]=t[o])}),r.footer=!0,r.setRowTop(null),r.setRowIndex(null),r.oldRowTop=null,r.id="rowGroupFooter_"+this.id,r.sibling=this,this.sibling=r}},n.prototype.destroyFooter=function(){this.sibling&&(this.sibling.setRowTop(null),this.sibling.setRowIndex(null),this.sibling=void 0)},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}(),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)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sg=function(){return Sg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Sg.apply(this,arguments)},aI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},n_=function(n){tU(t,n);function t(){return n.call(this,`
<div class="ag-selection-checkbox" role="presentation">
<ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
</div>`)||this}return t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0),DD(this.eCheckbox.getInputElement(),"polite")},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.localeService.getLocaleTextFunc(),r=this.rowNode.isSelected(),o=Hg(e,r),i=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(r,!0),this.eCheckbox.setInputAriaLabel(i+" ("+o+")")},t.prototype.onClicked=function(e,r,o){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:o.shiftKey,groupSelectsFiltered:r,event:o,source:"checkboxSelected"})},t.prototype.init=function(e){var r=this;this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(s){ii(s)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(s){ii(s);var l=r.gridOptionsService.is("groupSelectsFiltered"),u=r.eCheckbox.getValue();if(r.shouldHandleIndeterminateState(u,l)){var c=r.onClicked(!0,l,s||{});c===0&&r.onClicked(!1,l,s)}else u?r.onClicked(!1,l,s):r.onClicked(!0,l,s||{})}),this.addManagedListener(this.rowNode,ce.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this));var o=this.gridOptionsService.get("isRowSelectable"),i=o||typeof this.getIsVisible()=="function";if(i){var a=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,a),this.addManagedListener(this.rowNode,ce.EVENT_DATA_CHANGED,a),this.addManagedListener(this.rowNode,ce.EVENT_CELL_CHANGED,a),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.shouldHandleIndeterminateState=function(e,r){return r&&(this.eCheckbox.getPreviousValue()===void 0||e===void 0)&&this.gridOptionsService.isRowModelType("clientSide")},t.prototype.showOrHideSelect=function(){var e,r,o,i,a=this.rowNode.selectable,s=this.getIsVisible();if(a)if(typeof s=="function"){var l=(e=this.overrides)===null||e===void 0?void 0:e.callbackParams,u=(r=this.column)===null||r===void 0?void 0:r.createColumnFunctionCallbackParams(this.rowNode);a=u?s(Sg(Sg({},l),u)):!1}else a=s??!1;var c=(o=this.column)===null||o===void 0?void 0:o.getColDef().showDisabledCheckboxes;if(c){this.eCheckbox.setDisabled(!a),this.setVisible(!0),this.setDisplayed(!0);return}if(!((i=this.overrides)===null||i===void 0)&&i.removeHidden){this.setDisplayed(a);return}this.setVisible(a)},t.prototype.getIsVisible=function(){var e,r;return this.overrides?this.overrides.isVisible:(r=(e=this.column)===null||e===void 0?void 0:e.getColDef())===null||r===void 0?void 0:r.checkboxSelection},aI([G("eCheckbox")],t.prototype,"eCheckbox",void 0),aI([M],t.prototype,"postConstruct",null),t}(se),rU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ss=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Vh=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(n){n[n.ToolPanel=0]="ToolPanel",n[n.HeaderCell=1]="HeaderCell",n[n.RowDrag=2]="RowDrag",n[n.ChartPanel=3]="ChartPanel",n[n.AdvancedFilterBuilder=4]="AdvancedFilterBuilder"})(g.DragSourceType||(g.DragSourceType={}));(function(n){n[n.Up=0]="Up",n[n.Down=1]="Down"})(g.VerticalDirection||(g.VerticalDirection={}));(function(n){n[n.Left=0]="Left",n[n.Right=1]="Right"})(g.HorizontalDirection||(g.HorizontalDirection={}));var Ft=function(n){rU(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.dragSourceAndParamsList=[],r.dropTargets=[],r}e=t,t.prototype.init=function(){this.ePinnedIcon=Yn("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Yn("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Yn("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Yn("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Yn("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Yn("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Yn("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Yn("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Yn("dropNotAllowed",this.gridOptionsService,null)},t.prototype.addDragSource=function(r,o){o===void 0&&(o=!1);var i={eElement:r.eElement,dragStartPixels:r.dragStartPixels,onDragStart:this.onDragStart.bind(this,r),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:o};this.dragSourceAndParamsList.push({params:i,dragSource:r}),this.dragService.addDragSource(i)},t.prototype.removeDragSource=function(r){var o=this.dragSourceAndParamsList.find(function(i){return i.dragSource===r});o&&(this.dragService.removeDragSource(o.params),mn(this.dragSourceAndParamsList,o))},t.prototype.clearDragSourceParamsList=function(){var r=this;this.dragSourceAndParamsList.forEach(function(o){return r.dragService.removeDragSource(o.params)}),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(r,o){this.dragging=!0,this.dragSource=r,this.eventLastTime=o,this.dragItem=this.dragSource.getDragItem(),this.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 i=this,a,s,l,u,c=this.getHorizontalDirection(r),d=this.getVerticalDirection(r);this.eventLastTime=r,this.positionGhost(r);var f=this.dropTargets.filter(function(v){return i.isMouseOnDropTarget(r,v)}),p=this.findCurrentDropTarget(r,f);if(p!==this.lastDropTarget)this.leaveLastTargetIfExists(r,c,d,o),this.lastDropTarget!==null&&p===null&&((s=(a=this.dragSource).onGridExit)===null||s===void 0||s.call(a,this.dragItem)),this.lastDropTarget===null&&p!==null&&((u=(l=this.dragSource).onGridEnter)===null||u===void 0||u.call(l,this.dragItem)),this.enterDragTargetIfExists(p,r,c,d,o),this.lastDropTarget=p;else if(p&&p.onDragging){var h=this.createDropTargetEvent(p,r,c,d,o);p.onDragging(h)}},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,a;try{for(var s=Vh(o),l=s.next();!l.done;l=s.next()){var u=l.value,c=u.getBoundingClientRect();if(c.width===0||c.height===0)return!1;var d=r.clientX>=c.left&&r.clientX<c.right,f=r.clientY>=c.top&&r.clientY<c.bottom;if(!d||!f)return!1}}catch(p){i={error:p}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return!0},t.prototype.isMouseOnDropTarget=function(r,o){var i,a,s=this.getAllContainersFromDropTarget(o),l=!1;try{for(var u=Vh(s),c=u.next();!c.done;c=u.next()){var d=c.value;if(this.allContainersIntersect(r,d)){l=!0;break}}}catch(f){i={error:f}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return o.targetContainsSource&&!o.getContainer().contains(this.dragSource.eElement)?!1:l&&o.isInterestedIn(this.dragSource.type,this.dragSource.eElement)},t.prototype.findCurrentDropTarget=function(r,o){var i,a,s,l,u=o.length;if(u===0)return null;if(u===1)return o[0];var c=this.gridOptionsService.getRootNode(),d=c.elementsFromPoint(r.clientX,r.clientY);try{for(var f=Vh(d),p=f.next();!p.done;p=f.next()){var h=p.value;try{for(var v=(s=void 0,Vh(o)),C=v.next();!C.done;C=v.next()){var m=C.value,y=dD(this.getAllContainersFromDropTarget(m));if(y.indexOf(h)!==-1)return m}}catch(S){s={error:S}}finally{try{C&&!C.done&&(l=v.return)&&l.call(v)}finally{if(s)throw s.error}}}}catch(S){i={error:S}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return null},t.prototype.enterDragTargetIfExists=function(r,o,i,a,s){if(r){if(r.onDragEnter){var l=this.createDropTargetEvent(r,o,i,a,s);r.onDragEnter(l)}this.setGhostIcon(r.getIconName?r.getIconName():null)}},t.prototype.leaveLastTargetIfExists=function(r,o,i,a){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var s=this.createDropTargetEvent(this.lastDropTarget,r,o,i,a);this.lastDropTarget.onDragLeave(s)}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){var o=this.dropTargets.filter(function(i){return i.external});return o.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?g.HorizontalDirection.Left:g.HorizontalDirection.Right},t.prototype.getVerticalDirection=function(r){var o=this.eventLastTime&&this.eventLastTime.clientY,i=r.clientY;return o===i?null:o>i?g.VerticalDirection.Up:g.VerticalDirection.Down},t.prototype.createDropTargetEvent=function(r,o,i,a,s){var l=r.getContainer(),u=l.getBoundingClientRect(),c=this,d=c.gridApi,f=c.columnApi,p=c.dragItem,h=c.dragSource,v=o.clientX-u.left,C=o.clientY-u.top;return{event:o,x:v,y:C,vDirection:a,hDirection:i,dragSource:h,fromNudge:s,dragItem:p,api:d,columnApi:f,dropZoneTarget:l}},t.prototype.positionGhost=function(r){var o=this.eGhost;if(o){var i=o.getBoundingClientRect(),a=i.height,s=UD()-2,l=jD()-2,u=BS(o.offsetParent),c=r.clientY,d=r.clientX,f=c-u.top-a/2,p=d-u.left-10,h=this.gridOptionsService.getDocument(),v=h.defaultView||window,C=v.pageYOffset||h.documentElement.scrollTop,m=v.pageXOffset||h.documentElement.scrollLeft;s>0&&p+o.clientWidth>s+m&&(p=s+m-o.clientWidth),p<0&&(p=0),l>0&&f+o.clientHeight>l+C&&(f=l+C-o.clientHeight),f<0&&(f=0),o.style.left=p+"px",o.style.top=f+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=tr(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;Ng(i)&&(i=i()),o.innerHTML=xt(i)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var a=this.gridOptionsService.getDocument(),s=null;try{s=a.fullscreenElement}catch{}finally{if(!s){var l=this.gridOptionsService.getRootNode(),u=l.querySelector("body");u?s=u:l instanceof ShadowRoot?s=l:s=l?.documentElement}}this.eGhostParent=s,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(r,o){o===void 0&&(o=!1),vr(this.eGhostIcon);var i=null;switch(r||(r=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():e.ICON_NOT_ALLOWED),r){case e.ICON_PINNED:i=this.ePinnedIcon;break;case e.ICON_MOVE:i=this.eMoveIcon;break;case e.ICON_LEFT:i=this.eLeftIcon;break;case e.ICON_RIGHT:i=this.eRightIcon;break;case e.ICON_GROUP:i=this.eGroupIcon;break;case e.ICON_AGGREGATE:i=this.eAggregateIcon;break;case e.ICON_PIVOT:i=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:i=this.eHideIcon;break}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",o),!(i===this.eHideIcon&&this.gridOptionsService.is("suppressDragLeaveHidesColumns"))&&i&&this.eGhostIcon.appendChild(i)};var e;return t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE=`<div class="ag-dnd-ghost ag-unselectable">
<span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>
<div class="ag-dnd-ghost-label"></div>
</div>`,Ss([w("dragService")],t.prototype,"dragService",void 0),Ss([w("mouseEventService")],t.prototype,"mouseEventService",void 0),Ss([w("columnApi")],t.prototype,"columnApi",void 0),Ss([w("gridApi")],t.prototype,"gridApi",void 0),Ss([M],t.prototype,"init",null),Ss([Mt],t.prototype,"clearDragSourceParamsList",null),t=e=Ss([H("dragAndDropService")],t),t}(F),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)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),cd=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_g=function(n){Qg(t,n);function t(e,r,o,i,a,s){var l=n.call(this)||this;return l.cellValueFn=e,l.rowNode=r,l.column=o,l.customGui=i,l.dragStartPixels=a,l.suppressVisibilityChange=s,l.dragSource=null,l}return t.prototype.isCustomGui=function(){return this.customGui!=null},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(_t("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.gridOptionsService.is("rowDragManaged")?new oU(this,this.beans,this.rowNode,this.column):new nU(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,r){this.setTemplateFromElement(e),this.addDragSource(r)},t.prototype.getSelectedNodes=function(){var e=this.gridOptionsService.is("rowDragMultiRow");if(!e)return[this.rowNode];var r=this.beans.selectionService.getSelectedNodes();return r.indexOf(this.rowNode)!==-1?r:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.gridOptionsService.is("rowDragManaged"),r=this.gridOptionsService.is("treeData");r&&e&&ge(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.getRowDragText=function(e){if(e){var r=e.getColDef();if(r.rowDragText)return r.rowDragText}return this.gridOptionsService.get("rowDragText")},t.prototype.addDragSource=function(e){var r=this;e===void 0&&(e=4),this.dragSource&&this.removeDragSource();var o=this.getRowDragText(this.column),i=this.localeService.getLocaleTextFunc();this.dragSource={type:g.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var a,s=r.getDragItem(),l=((a=s.rowNodes)===null||a===void 0?void 0:a.length)||1;return o?o(s,l):l===1?r.cellValueFn():l+" "+i("rowDragRows","rows")},getDragItem:function(){return r.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},cd([w("beans")],t.prototype,"beans",void 0),cd([M],t.prototype,"postConstruct",null),cd([Mt],t.prototype,"removeDragSource",null),t}(se),P0=function(n){Qg(t,n);function t(e,r,o){var i=n.call(this)||this;return i.parent=e,i.rowNode=r,i.column=o,i}return t.prototype.setDisplayedOrVisible=function(e){var r={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,r);else{var o=!0,i=!1;this.column&&(o=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),i=Ng(this.column.getColDef().rowDrag)),i?(this.parent.setDisplayed(!0,r),this.parent.setVisible(o,r)):(this.parent.setDisplayed(o,r),this.parent.setVisible(!0,r))}},t}(F),nU=function(n){Qg(t,n);function t(e,r,o,i){var a=n.call(this,e,o,i)||this;return a.beans=r,a}return t.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.gridOptionsService.is("suppressRowDrag");this.setDisplayedOrVisible(e)},cd([M],t.prototype,"postConstruct",null),t}(P0),oU=function(n){Qg(t,n);function t(e,r,o,i){var a=n.call(this,e,o,i)||this;return a.beans=r,a}return t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,_.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,_.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl(),r=e.getRowDragFeature(),o=r&&r.shouldPreventRowMove(),i=this.gridOptionsService.is("suppressRowDrag"),a=this.beans.dragAndDropService.hasExternalDropZones(),s=o&&!a||i;this.setDisplayedOrVisible(s)},cd([M],t.prototype,"postConstruct",null),t}(P0),iU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Eg=function(){return Eg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Eg.apply(this,arguments)},kc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},O0=function(n){iU(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e,r,o,i,a,s,l){this.params=l,this.eGui=r,this.eCheckbox=o,this.eExpanded=i,this.eContracted=a,this.comp=e,this.compClass=s;var u=l.node,c=l.value,d=l.colDef,f=this.isTopLevelFooter();if(!f){var p=this.isEmbeddedRowMismatch();if(p)return;var h=d?.showRowGroup===!0,v=c==null&&!u.master;if(!h&&v)return;if(u.footer&&this.gridOptionsService.is("groupHideOpenParents")){var C=d&&d.showRowGroup,m=u.rowGroupColumn&&u.rowGroupColumn.getColId();if(C!==m)return}}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()){FD(o);return}var i=function(){So(o,!!r.expanded)};this.expandListener=this.addManagedListener(r,ce.EVENT_EXPANDED_CHANGED,i)||null,i()},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.is("groupIncludeTotalFooter")||this.params.value!=null||this.params.node.level!=-1)return!1;var e=this.params.colDef,r=e==null;if(r||e.showRowGroup===!0)return!0;var o=this.columnModel.getRowGroupColumns();if(!o||o.length===0)return!0;var i=o[0];return i.getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.is("embedFullWidthRows"))return!1;var e=this.params.pinned==="left",r=this.params.pinned==="right",o=!e&&!r;return this.gridOptionsService.is("enableRtl")?this.columnModel.isPinningLeft()?!r:!o:this.columnModel.isPinningLeft()?!e:!o},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,r=this.params.node;if(this.showingValueForOpenedParent)for(var o=r.parent;o!=null;){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroupNode=o;break}o=o.parent}Z(this.displayedGroupNode)&&(this.displayedGroupNode=r)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,r=this.params.column;if(!this.gridOptionsService.is("groupHideOpenParents")){this.showingValueForOpenedParent=!1;return}if(!e.groupData){this.showingValueForOpenedParent=!1;return}var o=e.rowGroupColumn!=null;if(o){var i=e.rowGroupColumn.getId(),a=r.isRowGroupDisplayed(i);if(a){this.showingValueForOpenedParent=!1;return}}var s=e.groupData[r.getId()]!=null;this.showingValueForOpenedParent=s},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),o=e.valueFormatted,i=e.value,a=o;if(a==null)if(i===""&&this.params.node.group){var s=this.localeService.getLocaleTextFunc();a=s("blanks","(Blanks)")}else a=i??null;this.comp.setInnerRenderer(r,a)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,r=this.params.column;if(!e)return this.params;var o=r!=null;if(o){var i=r.isRowGroupDisplayed(e.getId());if(!i)return this.params}var a=this.params,s=this.params,l=s.value,u=s.node,c=this.valueFormatterService.formatValue(e,u,l),d=Eg(Eg({},a),{valueFormatted:c});return d},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,r="";if(e){var o=_S(this.params);o.value=this.params.value,typeof e=="function"?r=e(o):typeof e=="string"?r=this.expressionService.evaluate(e,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else r="Total "+(this.params.value!=null?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.gridOptionsService.get("groupRowRendererParams"),e);var o=this.userComponentFactory.getInnerRendererDetails(e,e),i=function(c){return c&&c.componentClass==r.compClass};if(o&&!i(o))return o;var a=this.displayedGroupNode.rowGroupColumn,s=a?a.getColDef():void 0;if(s){var l=this.userComponentFactory.getCellRendererDetails(s,e);if(l&&!i(l))return l;if(i(l)&&s.cellRendererParams&&s.cellRendererParams.innerRenderer){var u=this.userComponentFactory.getInnerRendererDetails(s.cellRendererParams,e);return u}}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,ce.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,r=this.isShowRowGroupForThisRow(),o=r&&e!=null&&e>=0,i=o?"("+e+")":"";this.comp.setChildCount(i)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.is("treeData"))return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var r=this.params.column,o=r==null||r.isRowGroupDisplayed(e.getId());return o},t.prototype.addExpandAndContract=function(){var e,r=this.params,o=_t("groupExpanded",this.gridOptionsService,null),i=_t("groupContracted",this.gridOptionsService,null);o&&this.eExpanded.appendChild(o),i&&this.eContracted.appendChild(i);var a=r.eGridCell,s=((e=this.params.column)===null||e===void 0?void 0:e.isCellEditable(r.node))&&this.gridOptionsService.is("enableGroupEdit");!s&&this.isExpandable()&&!r.suppressDoubleClickExpand&&this.addManagedListener(a,"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(a,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(r.node,ce.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var l=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,ce.EVENT_ALL_CHILDREN_COUNT_CHANGED,l),this.addManagedListener(this.displayedGroupNode,ce.EVENT_MASTER_CHANGED,l),this.addManagedListener(this.displayedGroupNode,ce.EVENT_GROUP_CHANGED,l),this.addManagedListener(this.displayedGroupNode,ce.EVENT_HAS_CHILDREN_CHANGED,l)},t.prototype.onExpandClicked=function(e){_o(e)||(ii(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var r=this.displayedGroupNode,o=!r.expanded;!o&&r.sticky&&this.scrollToStickyNode(r),r.setExpanded(o,e)},t.prototype.scrollToStickyNode=function(e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature();o.setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,r=this.columnModel.isPivotMode()&&e.leafGroup,o=e.isExpandable()&&!e.footer&&!r;if(!o)return!1;var i=this.params.column,a=i!=null&&typeof i.getColDef().showRowGroup=="string";if(a){var s=this.isShowRowGroupForThisRow();return s}return!0},t.prototype.showExpandAndContractIcons=function(){var e=this,r=e.params,o=e.displayedGroupNode,i=e.columnModel,a=r.node,s=this.isExpandable();if(s){var l=this.showingValueForOpenedParent?!0:a.expanded;this.comp.setExpandedDisplayed(l),this.comp.setContractedDisplayed(!l)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var u=i.isPivotMode(),c=u&&o.leafGroup,d=s&&!c,f=a.footer&&a.level===-1;this.comp.addOrRemoveCssClass("ag-cell-expandable",d),this.comp.addOrRemoveCssClass("ag-row-group",d),u?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",c):f||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!d)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node,r=this.params.suppressPadding;r||(this.addManagedListener(e,ce.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsService.is("groupHideOpenParents")){var e=this.params,r=e.node,o=!!e.colDef,i=this.gridOptionsService.is("treeData"),a=!o||i||e.colDef.showRowGroup===!0,s=a?r.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+s,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(!(!this.params.fullWidth||!this.params.rowDrag)){var r=new _g(function(){return e.params.value},this.params.node);this.createManagedBean(r,this.context),this.eGui.insertAdjacentElement("afterbegin",r.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return typeof e=="function"||e===!0},t.prototype.addCheckboxIfNeeded=function(){var e=this,r=this.displayedGroupNode,o=this.isUserWantsSelected()&&!r.footer&&!r.rowPinned&&!r.detail;if(o){var i=new n_;this.getContext().createBean(i),i.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(i.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(i)})}this.comp.setCheckboxVisible(o)},t.prototype.onKeyDown=function(e){var r=e.key===O.ENTER;if(!(!r||this.params.suppressEnterExpand)){var o=this.params.column&&this.params.column.isCellEditable(this.params.node);o||this.onExpandOrContract(e)}},t.prototype.onCellDblClicked=function(e){if(!_o(e)){var r=mg(this.eExpanded,e)||mg(this.eContracted,e);r||this.onExpandOrContract(e)}},kc([w("expressionService")],t.prototype,"expressionService",void 0),kc([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),kc([w("columnModel")],t.prototype,"columnModel",void 0),kc([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),kc([w("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(F),aU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Hc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},mS=function(n){aU(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){var r=this,o={setInnerRenderer:function(l,u){return r.setRenderDetails(l,u)},setChildCount:function(l){return r.eChildCount.innerHTML=l},addOrRemoveCssClass:function(l,u){return r.addOrRemoveCssClass(l,u)},setContractedDisplayed:function(l){return we(r.eContracted,l)},setExpandedDisplayed:function(l){return we(r.eExpanded,l)},setCheckboxVisible:function(l){return r.eCheckbox.classList.toggle("ag-invisible",!l)}},i=this.createManagedBean(new O0),a=!e.colDef,s=this.getGui();i.init(o,s,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),a&&bt(s,"gridcell")},t.prototype.setRenderDetails=function(e,r){var o=this;if(e){var i=e.newAgStackInstance();if(!i)return;i.then(function(a){if(a){var s=function(){return o.context.destroyBean(a)};o.isAlive()?(o.eValue.appendChild(a.getGui()),o.addDestroyFunc(s)):s()}})}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">
<span class="ag-group-expanded" ref="eExpanded"></span>
<span class="ag-group-contracted" ref="eContracted"></span>
<span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>
<span class="ag-group-value" ref="eValue"></span>
<span class="ag-group-child-count" ref="eChildCount"></span>
</span>`,Hc([G("eExpanded")],t.prototype,"eExpanded",void 0),Hc([G("eContracted")],t.prototype,"eContracted",void 0),Hc([G("eCheckbox")],t.prototype,"eCheckbox",void 0),Hc([G("eValue")],t.prototype,"eValue",void 0),Hc([G("eChildCount")],t.prototype,"eChildCount",void 0),t}(se),sU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),sI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},lU=function(n){sU(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=_t("groupLoading",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var r=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=r("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.TEMPLATE=`<div class="ag-loading">
<span class="ag-loading-icon" ref="eLoadingIcon"></span>
<span class="ag-loading-text" ref="eLoadingText"></span>
</div>`,sI([G("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),sI([G("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(se),uU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),cU=function(n){uU(t,n);function t(){return n.call(this)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r,o=(r=this.gridOptionsService.get("overlayLoadingTemplate"))!==null&&r!==void 0?r:t.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.localeService.getLocaleTextFunc(),a=o.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(a)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(se),dU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fU=function(n){dU(t,n);function t(){return n.call(this)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r,o=(r=this.gridOptionsService.get("overlayNoRowsTemplate"))!==null&&r!==void 0?r:t.DEFAULT_NO_ROWS_TEMPLATE,i=this.localeService.getLocaleTextFunc(),a=o.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(a)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}(se),pU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hU=function(n){pU(t,n);function t(){return n.call(this,'<div class="ag-tooltip"></div>')||this}return t.prototype.init=function(e){var r=e.value;this.getGui().innerHTML=xt(r)},t}(Va),gU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vU=function(){function n(){}return n.prototype.getTemplate=function(){return'<ag-input-number-field class="ag-cell-editor" ref="eInput"></ag-input-number-field>'},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.max!=null&&t.setMax(e.max),e.min!=null&&t.setMin(e.min),e.precision!=null&&t.setPrecision(e.precision),e.step!=null&&t.setStep(e.step),e.showStepperButtons&&t.getInputElement().classList.add("ag-number-field-input-stepper")},n.prototype.getValue=function(){var t=this.eInput.getValue();if(!D(t)&&!D(this.params.value))return this.params.value;var e=this.params.parseValue(t);if(e==null)return e;if(typeof e=="string"){if(e==="")return null;e=Number(e)}return isNaN(e)?null:e},n.prototype.getStartValue=function(){return this.params.value},n}(),L0=function(n){gU(t,n);function t(){return n.call(this,new vU)||this}return t}(Xg),mU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yU=function(){function n(){}return n.prototype.getTemplate=function(){return'<ag-input-date-field class="ag-cell-editor" ref="eInput"></ag-input-date-field>'},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.min!=null&&t.setMin(e.min),e.max!=null&&t.setMax(e.max),e.step!=null&&t.setStep(e.step)},n.prototype.getValue=function(){var t=this.eInput.getDate();return!D(t)&&!D(this.params.value)?this.params.value:t??null},n.prototype.getStartValue=function(){var t=this.params.value;if(t instanceof Date)return Zn(t,!1)},n}(),I0=function(n){mU(t,n);function t(){return n.call(this,new yU)||this}return t}(Xg),CU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),wU=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},SU=function(){function n(t){this.getDataTypeService=t}return n.prototype.getTemplate=function(){return'<ag-input-date-field class="ag-cell-editor" ref="eInput"></ag-input-date-field>'},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.min!=null&&t.setMin(e.min),e.max!=null&&t.setMax(e.max),e.step!=null&&t.setStep(e.step)},n.prototype.getValue=function(){var t=this.formatDate(this.eInput.getDate());return!D(t)&&!D(this.params.value)?this.params.value:this.params.parseValue(t??"")},n.prototype.getStartValue=function(){var t,e;return Zn((e=this.parseDate((t=this.params.value)!==null&&t!==void 0?t:void 0))!==null&&e!==void 0?e:null,!1)},n.prototype.parseDate=function(t){return this.getDataTypeService().getDateParserFunction()(t)},n.prototype.formatDate=function(t){return this.getDataTypeService().getDateFormatterFunction()(t)},n}(),D0=function(n){CU(t,n);function t(){var e=n.call(this,new SU(function(){return e.dataTypeService}))||this;return e}return wU([w("dataTypeService")],t.prototype,"dataTypeService",void 0),t}(Xg),_U=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),EU=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},A0=function(n){_U(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){var r=this;this.params=e,this.updateCheckbox(e),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(i){if(ii(i),!r.eCheckbox.isDisabled()){var a=r.eCheckbox.getValue();r.onCheckboxChanged(a)}}),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(i){ii(i)});var o=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",function(i){if(i.key===O.SPACE&&!r.eCheckbox.isDisabled()){r.params.eGridCell===o.activeElement&&r.eCheckbox.toggle();var a=r.eCheckbox.getValue();r.onCheckboxChanged(a),i.preventDefault()}})},t.prototype.refresh=function(e){return this.params=e,this.updateCheckbox(e),!0},t.prototype.updateCheckbox=function(e){var r,o,i,a,s=!0;if(e.node.group&&e.column){var l=e.column.getColId();l.startsWith(Is)?a=e.value==null||e.value===""?void 0:e.value==="true":e.node.aggData&&e.node.aggData[l]!==void 0?a=(r=e.value)!==null&&r!==void 0?r:void 0:s=!1}else a=(o=e.value)!==null&&o!==void 0?o:void 0;if(!s){this.eCheckbox.setDisplayed(!1);return}this.eCheckbox.setValue(a);var u=e.disabled!=null?e.disabled:!(!((i=e.column)===null||i===void 0)&&i.isCellEditable(e.node));this.eCheckbox.setDisabled(u);var c=this.localeService.getLocaleTextFunc(),d=Hg(c,a),f=u?d:c("ariaToggleCellValue","Press SPACE to toggle cell value")+" ("+d+")";this.eCheckbox.setInputAriaLabel(f)},t.prototype.onCheckboxChanged=function(e){var r=this.params,o=r.column,i=r.node,a=r.rowIndex,s=r.value,l={type:_.EVENT_CELL_EDITING_STARTED,column:o,colDef:o?.getColDef(),data:i.data,node:i,rowIndex:a,rowPinned:i.rowPinned,value:s};this.eventService.dispatchEvent(l);var u=this.params.node.setDataValue(this.params.column,e,"edit"),c={type:_.EVENT_CELL_EDITING_STOPPED,column:o,colDef:o?.getColDef(),data:i.data,node:i,rowIndex:a,rowPinned:i.rowPinned,value:s,oldValue:s,newValue:e,valueChanged:u};this.eventService.dispatchEvent(c)},t.TEMPLATE=`
<div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">
<ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
</div>`,EU([G("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(se),RU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),TU=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},F0=function(n){RU(t,n);function t(){return n.call(this,`
<div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">
<ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>
</div>`)||this}return t.prototype.init=function(e){var r=this,o;this.params=e;var i=(o=e.value)!==null&&o!==void 0?o:void 0;this.eCheckbox.setValue(i),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(i),this.addManagedListener(this.eCheckbox,_.EVENT_FIELD_VALUE_CHANGED,function(a){return r.setAriaLabel(a.selected)})},t.prototype.getValue=function(){return this.eCheckbox.getValue()},t.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},t.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},t.prototype.isPopup=function(){return!1},t.prototype.setAriaLabel=function(e){var r=this.localeService.getLocaleTextFunc(),o=Hg(r,e),i=r("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(i+" ("+o+")")},TU([G("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(Va),xU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ew=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},lI=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},uI=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},b0=function(n){xU(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:IW,agColumnHeader:kW,agColumnGroupHeader:VW,agSortIndicator:Yg,agTextColumnFloatingFilter:_0,agNumberColumnFloatingFilter:bW,agDateColumnFloatingFilter:xW,agReadOnlyFloatingFilter:nW,agAnimateShowChangeCellRenderer:T0,agAnimateSlideCellRenderer:x0,agGroupCellRenderer:mS,agGroupRowRenderer:mS,agLoadingCellRenderer:lU,agCheckboxCellRenderer:A0,agCellEditor:vS,agTextCellEditor:vS,agNumberCellEditor:L0,agDateCellEditor:I0,agDateStringCellEditor:D0,agSelectCellEditor:R0,agLargeTextCellEditor:E0,agCheckboxCellEditor:F0,agTextColumnFilter:Kg,agNumberColumnFilter:r_,agDateColumnFilter:t_,agLoadingOverlay:cU,agNoRowsOverlay:fU,agTooltipComponent:hU},e.enterpriseAgDefaultCompsModule={agSetColumnFilter:g.ModuleNames.SetFilterModule,agSetColumnFloatingFilter:g.ModuleNames.SetFilterModule,agMultiColumnFilter:g.ModuleNames.MultiFilterModule,agMultiColumnFloatingFilter:g.ModuleNames.MultiFilterModule,agGroupColumnFilter:g.ModuleNames.RowGroupingModule,agGroupColumnFloatingFilter:g.ModuleNames.RowGroupingModule,agRichSelect:g.ModuleNames.RichSelectModule,agRichSelectCellEditor:g.ModuleNames.RichSelectModule,agDetailCellRenderer:g.ModuleNames.MasterDetailModule,agSparklineCellRenderer:g.ModuleNames.SparklinesModule},e.jsComps={},e}return t.prototype.init=function(){var e=this;this.gridOptions.components!=null&&st(this.gridOptions.components,function(r,o){return e.registerJsComponent(r,o)})},t.prototype.registerDefaultComponent=function(e,r){if(this.agGridDefaults[e]){console.error("Trying to overwrite a default component. You should call registerComponent");return}this.agGridDefaults[e]=r},t.prototype.registerJsComponent=function(e,r){this.jsComps[e]=r},t.prototype.retrieve=function(e,r){var o=this,i=function(d,f){return{componentFromFramework:f,component:d}},a=this.getFrameworkOverrides().frameworkComponent(r,this.gridOptions.components);if(a!=null)return i(a,!0);var s=this.jsComps[r];if(s){var l=this.getFrameworkOverrides().isFrameworkComponent(s);return i(s,l)}var u=this.agGridDefaults[r];if(u)return i(u,!1);var c=this.enterpriseAgDefaultCompsModule[r];return c?J.__assertRegistered(c,"AG Grid '"+e+"' component: "+r,this.context.getGridId()):ge(function(){o.warnAboutMissingComponent(e,r)},"MissingComp"+r),null},t.prototype.warnAboutMissingComponent=function(e,r){var o=uI(uI([],lI(Object.keys(this.agGridDefaults).filter(function(a){return!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(a)}))),lI(Object.keys(this.jsComps))),i=Sd(r,o,!0,.8).values;console.warn("AG Grid: Could not find '"+r+`' component. It was configured as "`+e+": '"+r+`'" but it wasn't found in the list of registered components.`),i.length>0&&console.warn(" Did you mean: ["+i.slice(0,3)+"]?"),console.warn("If using a custom component check it has been registered as described in: https://ag-grid.com/javascript-data-grid/components/")},Ew([w("gridOptions")],t.prototype,"gridOptions",void 0),Ew([M],t.prototype,"init",null),t=Ew([H("userComponentRegistry")],t),t}(F),PU={propertyName:"dateComponent",cellRenderer:!1},OU={propertyName:"headerComponent",cellRenderer:!1},LU={propertyName:"headerGroupComponent",cellRenderer:!1},cI={propertyName:"cellRenderer",cellRenderer:!0},IU={propertyName:"cellEditor",cellRenderer:!1},dI={propertyName:"innerRenderer",cellRenderer:!0},DU={propertyName:"loadingOverlayComponent",cellRenderer:!1},AU={propertyName:"noRowsOverlayComponent",cellRenderer:!1},FU={propertyName:"tooltipComponent",cellRenderer:!1},yS={propertyName:"filter",cellRenderer:!1},bU={propertyName:"floatingFilterComponent",cellRenderer:!1},MU={propertyName:"toolPanel",cellRenderer:!1},NU={propertyName:"statusPanel",cellRenderer:!1},GU={propertyName:"fullWidthCellRenderer",cellRenderer:!0},kU={propertyName:"loadingCellRenderer",cellRenderer:!0},HU={propertyName:"groupRowRenderer",cellRenderer:!0},VU={propertyName:"detailCellRenderer",cellRenderer:!0},M0=function(){function n(){}return n.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},n.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},n}(),BU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Hl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},N0=function(n){BU(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getHeaderCompDetails=function(e,r){return this.getCompDetails(e,OU,"agColumnHeader",r)},t.prototype.getHeaderGroupCompDetails=function(e){var r=e.columnGroup.getColGroupDef();return this.getCompDetails(r,LU,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,GU,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,kU,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,HU,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,VU,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,r){return this.getCompDetails(e,dI,null,r)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,r){return this.getCompDetails(e,dI,null,r)},t.prototype.getCellRendererDetails=function(e,r){return this.getCompDetails(e,cI,null,r)},t.prototype.getCellEditorDetails=function(e,r){return this.getCompDetails(e,IU,"agCellEditor",r,!0)},t.prototype.getFilterDetails=function(e,r,o){return this.getCompDetails(e,yS,o,r,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,PU,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,DU,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,AU,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,FU,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,r){return this.getCompDetails(e,cI,null,r)},t.prototype.getFloatingFilterCompDetails=function(e,r,o){return this.getCompDetails(e,bU,o,r)},t.prototype.getToolPanelCompDetails=function(e,r){return this.getCompDetails(e,MU,null,r,!0)},t.prototype.getStatusPanelCompDetails=function(e,r){return this.getCompDetails(e,NU,null,r,!0)},t.prototype.getCompDetails=function(e,r,o,i,a){var s=this;a===void 0&&(a=!1);var l=r.propertyName,u=r.cellRenderer,c=this.getCompKeys(e,r,i),d=c.compName,f=c.jsComp,p=c.fwComp,h=c.paramsFromSelector,v=c.popupFromSelector,C=c.popupPositionFromSelector,m=function(R){var x=s.userComponentRegistry.retrieve(l,R);x&&(f=x.componentFromFramework?void 0:x.component,p=x.componentFromFramework?x.component:void 0)};if(d!=null&&m(d),f==null&&p==null&&o!=null&&m(o),f&&u&&!this.agComponentUtils.doesImplementIComponent(f)&&(f=this.agComponentUtils.adaptFunction(l,f)),!f&&!p){a&&console.error("AG Grid: Could not find component "+d+", did you forget to configure this component?");return}var y=this.mergeParamsWithApplicationProvidedParams(e,r,i,h),S=f==null,E=f||p;return{componentFromFramework:S,componentClass:E,params:y,type:r,popupFromSelector:v,popupPositionFromSelector:C,newAgStackInstance:function(){return s.newAgStackInstance(E,S,y,r)}}},t.prototype.getCompKeys=function(e,r,o){var i=this,a=r.propertyName,s,l,u,c,d,f;if(e){var p=e,h=p[a+"Selector"],v=h?h(o):null,C=function(m){if(typeof m=="string")s=m;else if(m!=null&&m!==!0){var y=i.getFrameworkOverrides().isFrameworkComponent(m);y?u=m:l=m}};v?(C(v.component),c=v.params,d=v.popup,f=v.popupPosition):C(p[a])}return{compName:s,jsComp:l,fwComp:u,paramsFromSelector:c,popupFromSelector:d,popupPositionFromSelector:f}},t.prototype.newAgStackInstance=function(e,r,o,i){var a=i.propertyName,s=!r,l;if(s)l=new e;else{var u=this.componentMetadataProvider.retrieve(a);l=this.frameworkComponentWrapper.wrap(e,u.mandatoryMethodList,u.optionalMethodList,i)}var c=this.initComponent(l,o);return c==null?yn.resolve(l):c.then(function(){return l})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,r,o,i){i===void 0&&(i=null);var a={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};wn(a,o);var s=e,l=s&&s[r.propertyName+"Params"];if(typeof l=="function"){var u=l(o);wn(a,u)}else typeof l=="object"&&wn(a,l);return wn(a,i),a},t.prototype.initComponent=function(e,r){if(this.context.createBean(e),e.init!=null)return e.init(r)},t.prototype.getDefaultFloatingFilterType=function(e,r){if(e==null)return null;var o=null,i=this.getCompKeys(e,yS),a=i.compName,s=i.jsComp,l=i.fwComp;if(a)o=M0.getFloatingFilterType(a);else{var u=s==null&&l==null&&e.filter===!0;u&&(o=r())}return o},Hl([w("gridOptions")],t.prototype,"gridOptions",void 0),Hl([w("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Hl([w("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),Hl([w("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Hl([_e("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=Hl([H("userComponentFactory")],t),t}(F);(function(n){n[n.SINGLE_SHEET=0]="SINGLE_SHEET",n[n.MULTI_SHEET=1]="MULTI_SHEET"})(g.ExcelFactoryMode||(g.ExcelFactoryMode={}));var WU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},G0=function(n){WU(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var r=e.dragSource.eElement,o=e.mouseDownListener;if(r.removeEventListener("mousedown",o),e.touchEnabled){var i=e.touchStartListener;r.removeEventListener("touchstart",i,{passive:!0})}},t.prototype.removeDragSource=function(e){var r=this.dragSources.find(function(o){return o.dragSource===e});r&&(this.removeListener(r),mn(this.dragSources,r))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e){var r=this,o=this.onMouseDown.bind(this,e),i=e.eElement,a=e.includeTouch,s=e.stopPropagationForTouch;i.addEventListener("mousedown",o);var l=null,u=this.gridOptionsService.is("suppressTouch");a&&!u&&(l=function(c){HS(c.target)||(c.cancelable&&(c.preventDefault(),s&&c.stopPropagation()),r.onTouchStart(e,c))},i.addEventListener("touchstart",l,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:l,touchEnabled:!!a})},t.prototype.getStartTarget=function(){return this.startTarget},t.prototype.onTouchStart=function(e,r){var o=this;this.currentDragParams=e,this.dragging=!1;var i=r.touches[0];this.touchLastTime=i,this.touchStart=i;var a=function(d){return o.onTouchMove(d,e.eElement)},s=function(d){return o.onTouchUp(d,e.eElement)},l=function(d){d.cancelable&&d.preventDefault()},u=r.target,c=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:l,options:{passive:!1}},{target:u,type:"touchmove",listener:a,options:{passive:!0}},{target:u,type:"touchend",listener:s,options:{passive:!0}},{target:u,type:"touchcancel",listener:s,options:{passive:!0}}];this.addTemporaryEvents(c),e.dragStartPixels===0&&this.onCommonMove(i,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,r){var o=this,i=r;if(!(e.skipMouseEvent&&e.skipMouseEvent(r))&&!i._alreadyProcessedByDragService&&(i._alreadyProcessedByDragService=!0,r.button===0)){this.shouldPreventMouseEvent(r)&&r.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=r,this.startTarget=r.target;var a=function(d){return o.onMouseMove(d,e.eElement)},s=function(d){return o.onMouseUp(d,e.eElement)},l=function(d){return d.preventDefault()},u=this.gridOptionsService.getRootNode(),c=[{target:u,type:"mousemove",listener:a},{target:u,type:"mouseup",listener:s},{target:u,type:"contextmenu",listener:l}];this.addTemporaryEvents(c),e.dragStartPixels===0&&this.onMouseMove(r,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(r){var o=r.target,i=r.type,a=r.listener,s=r.options;o.addEventListener(i,a,s)}),this.dragEndFunctions.push(function(){e.forEach(function(r){var o=r.target,i=r.type,a=r.listener,s=r.options;o.removeEventListener(i,a,s)})})},t.prototype.isEventNearStartEvent=function(e,r){var o=this.currentDragParams.dragStartPixels,i=D(o)?o:4;return $S(e,r,i)},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;var i={type:_.EVENT_DRAG_STARTED,target:o};this.eventService.dispatchEvent(i),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.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,r)},t.prototype.shouldPreventMouseEvent=function(e){var r=this.gridOptionsService.is("enableCellTextSelection"),o=to(),i=e.type==="mousemove";return(r&&i||o)&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)},t.prototype.isOverFormFieldElement=function(e){var r=e.target,o=r?.tagName.toLocaleLowerCase();return!!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){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var o={type:_.EVENT_DRAG_STOPPED,target:r};this.eventService.dispatchEvent(o)}this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(i){return i()}),this.dragEndFunctions.length=0},Rw([w("mouseEventService")],t.prototype,"mouseEventService",void 0),Rw([Mt],t.prototype,"removeAllListeners",null),t=Rw([H("dragService")],t),t}(F),o_=function(){function n(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=t.scrollAxis.indexOf("x")!==-1,this.scrollVertically=t.scrollAxis.indexOf("y")!==-1,this.scrollByTick=t.scrollByTick!=null?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){e===void 0&&(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(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},n.prototype.doTick=function(){this.tickCount++;var t;if(t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var r=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(r-t),this.tickRight&&this.setHorizontalPosition(r+t)}this.onScrollCallback&&this.onScrollCallback()},n.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},n}(),UU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Tw="ag-list-item-hovered",jU=function(n){UU(t,n);function t(e,r,o){var i=n.call(this)||this;return i.comp=e,i.virtualList=r,i.params=o,i.currentDragValue=null,i.lastHoveredListItem=null,i}return t.prototype.postConstruct=function(){this.addManagedListener(this.params.eventSource,this.params.listItemDragStartEvent,this.listItemDragStart.bind(this)),this.addManagedListener(this.params.eventSource,this.params.listItemDragEndEvent,this.listItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},t.prototype.listItemDragStart=function(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)},t.prototype.listItemDragEnd=function(){var e=this;window.setTimeout(function(){e.currentDragValue=null,e.moveBlocked=!1},10)},t.prototype.createDropTarget=function(){var e=this,r={isInterestedIn:function(o){return o===e.params.dragSourceType},getIconName:function(){return Ft[e.moveBlocked?"ICON_NOT_ALLOWED":"ICON_MOVE"]},getContainer:function(){return e.comp.getGui()},onDragging:function(o){return e.onDragging(o)},onDragStop:function(){return e.onDragStop()},onDragLeave:function(){return e.onDragLeave()}};this.dragAndDropService.addDropTarget(r)},t.prototype.createAutoScrollService=function(){var e=this.virtualList.getGui();this.autoScrollService=new o_({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(r){return e.scrollTop=r}})},t.prototype.onDragging=function(e){if(!(!this.currentDragValue||this.moveBlocked)){var r=this.getListDragItem(e),o=this.virtualList.getComponentAt(r.rowIndex);if(o){var i=o.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===r.rowIndex&&this.lastHoveredListItem.position===r.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=r,uS(i,Tw),uS(i,"ag-item-highlight-"+r.position))}}},t.prototype.getListDragItem=function(e){var r=this.virtualList.getGui(),o=parseFloat(window.getComputedStyle(r).paddingTop),i=this.virtualList.getRowHeight(),a=this.virtualList.getScrollTop(),s=Math.max(0,(e.y-o+a)/i),l=this.params.getNumRows(this.comp)-1,u=Math.min(l,s)|0;return{rowIndex:u,position:Math.round(s)>s||s>l?"bottom":"top",component:this.virtualList.getComponentAt(u)}},t.prototype.onDragStop=function(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())},t.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},t.prototype.clearHoveredItems=function(){var e=this.virtualList.getGui();e.querySelectorAll("."+Tw).forEach(function(r){[Tw,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(function(o){r.classList.remove(o)})}),this.lastHoveredListItem=null},fI([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),fI([M],t.prototype,"postConstruct",null),t}(F);(function(n){n[n.Above=0]="Above",n[n.Below=1]="Below"})(g.RowHighlightPosition||(g.RowHighlightPosition={}));(function(n){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"})(g.ClientSideRowModelSteps||(g.ClientSideRowModelSteps={}));var Te=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};function Rs(n){var t=n,e=t!=null&&t.getFrameworkComponentInstance!=null;return e?t.getFrameworkComponentInstance():n}var k0=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"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel;break}this.ctrlsService.whenReady(function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})},n.prototype.__getAlignedGridService=function(){return this.alignedGridsService},n.prototype.__getContext=function(){return this.context},n.prototype.getSetterMethod=function(t){return"set"+t.charAt(0).toUpperCase()+t.substring(1)},n.prototype.__setPropertyOnly=function(t,e){return this.gos.__setPropertyOnly(t,e)},n.prototype.__updateProperty=function(t,e,r,o){o===void 0&&(o=void 0),this.gos.set(t,e,r,{},o);var i=this.getSetterMethod(t),a=this;a[i]&&a[i](e)},n.prototype.getGridId=function(){return this.context.getGridId()},n.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},n.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},n.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},n.prototype.forEachDetailGridInfo=function(t){var e=0;st(this.detailGridInfoMap,function(r,o){D(o)&&(t(o,e),e++)})},n.prototype.getDataAsCsv=function(t){if(J.__assertRegistered(g.ModuleNames.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(t)},n.prototype.exportDataAsCsv=function(t){J.__assertRegistered(g.ModuleNames.CsvExportModule,"api.exportDataAsCSv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(t)},n.prototype.getExcelExportMode=function(t){var e=this.gos.get("defaultExcelExportParams"),r=Object.assign({exportMode:"xlsx"},e,t);return r.exportMode},n.prototype.assertNotExcelMultiSheet=function(t,e){if(!J.__assertRegistered(g.ModuleNames.ExcelExportModule,"api."+t,this.context.getGridId()))return!1;var r=this.getExcelExportMode(e);return this.excelCreator.getFactoryMode(r)===g.ExcelFactoryMode.MULTI_SHEET?(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1):!0},n.prototype.getDataAsExcel=function(t){if(this.assertNotExcelMultiSheet("getDataAsExcel",t))return this.excelCreator.getDataAsExcel(t)},n.prototype.exportDataAsExcel=function(t){this.assertNotExcelMultiSheet("exportDataAsExcel",t)&&this.excelCreator.exportDataAsExcel(t)},n.prototype.getSheetDataForExcel=function(t){if(J.__assertRegistered(g.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId())){var e=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(g.ExcelFactoryMode.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},n.prototype.getMultipleSheetsAsExcel=function(t){if(J.__assertRegistered(g.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(t)},n.prototype.exportMultipleSheetsAsExcel=function(t){if(J.__assertRegistered(g.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.exportMultipleSheetsAsExcel(t)},n.prototype.setTreeData=function(t){this.gos.set("treeData",t)},n.prototype.setGridAriaProperty=function(t,e){if(t){var r=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-"+t;e===null?r.removeAttribute(o):r.setAttribute(o,e)}},n.prototype.logMissingRowModel=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];console.error("AG Grid: api."+t+" can only be called when gridOptions.rowModelType is "+e.join(" or "))},n.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):this.logMissingRowModel("setServerSideDatasource","serverSide")},n.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gos.set("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):this.logMissingRowModel("setCacheBlockSize","serverSide")},n.prototype.setDatasource=function(t){this.gos.isRowModelType("infinite")?this.rowModel.setDatasource(t):this.logMissingRowModel("setDatasource","infinite")},n.prototype.setViewportDatasource=function(t){this.gos.isRowModelType("viewport")?this.rowModel.setViewportDatasource(t):this.logMissingRowModel("setViewportDatasource","viewport")},n.prototype.setRowData=function(t){var e=this.immutableService==null;if(e){this.logMissingRowModel("setRowData","clientSide");return}this.immutableService.isActive()?this.immutableService.setRowData(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(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){e===void 0&&(e="api"),this.columnModel.setColumnDefs(t,e),this.gos.set("columnDefs",t,!0,{source:e})},n.prototype.setAutoGroupColumnDef=function(t,e){e===void 0&&(e="api"),this.gos.set("autoGroupColumnDef",t,!0,{source:e})},n.prototype.setDefaultColDef=function(t,e){e===void 0&&(e="api"),this.gos.set("defaultColDef",t,!0,{source:e})},n.prototype.setColumnTypes=function(t,e){e===void 0&&(e="api"),this.gos.set("columnTypes",t,!0,{source:e})},n.prototype.expireValueCache=function(){this.valueCache.expire()},n.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},n.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},n.prototype.setAlwaysShowHorizontalScroll=function(t){this.gos.set("alwaysShowHorizontalScroll",t)},n.prototype.setAlwaysShowVerticalScroll=function(t){this.gos.set("alwaysShowVerticalScroll",t)},n.prototype.refreshCells=function(t){t===void 0&&(t={}),this.rowRenderer.refreshCells(t)},n.prototype.flashCells=function(t){t===void 0&&(t={}),this.rowRenderer.flashCells(t)},n.prototype.redrawRows=function(t){t===void 0&&(t={});var e=t?t.rowNodes:void 0;this.rowRenderer.redrawRows(e)},n.prototype.setFunctionsReadOnly=function(t){this.gos.set("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,r){t&&(r&&t.parent&&t.parent.level!==-1&&this.setRowNodeExpanded(t.parent,e,r),t.setExpanded(e))},n.prototype.onGroupExpandedOrCollapsed=function(){if(Z(this.clientSideRowModel)){this.logMissingRowModel("onGroupExpandedOrCollapsed","clientSide");return}this.clientSideRowModel.refreshModel({step:g.ClientSideRowModelSteps.MAP})},n.prototype.refreshClientSideRowModel=function(t){if(Z(this.clientSideRowModel)){this.logMissingRowModel("refreshClientSideRowModel","clientSide");return}this.clientSideRowModel.refreshModel(t)},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.gos.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}},n.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):this.logMissingRowModel("expandAll","clientSide","serverSide")},n.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):this.logMissingRowModel("expandAll","clientSide","serverSide")},n.prototype.addRenderedRowListener=function(t,e,r){this.rowRenderer.addRenderedRowListener(t,e,r)},n.prototype.getQuickFilter=function(){return this.gos.get("quickFilterText")},n.prototype.setQuickFilter=function(t){this.gos.set("quickFilterText",t)},n.prototype.setExcludeHiddenColumnsFromQuickFilter=function(t){Xn("30","setExcludeHiddenColumnsFromQuickFilter",void 0,"Hidden columns are now excluded from the Quick Filter by default. This can be toggled using `setIncludeHiddenColumnsInQuickFilter`"),this.setIncludeHiddenColumnsInQuickFilter(!t)},n.prototype.setIncludeHiddenColumnsInQuickFilter=function(t){this.gos.set("includeHiddenColumnsInQuickFilter",t)},n.prototype.setQuickFilterParser=function(t){this.gos.set("quickFilterParser",t)},n.prototype.setQuickFilterMatcher=function(t){this.gos.set("quickFilterMatcher",t)},n.prototype.getAdvancedFilterModel=function(){return J.__assertRegistered(g.ModuleNames.AdvancedFilterModule,"api.getAdvancedFilterModel",this.context.getGridId())?this.filterManager.getAdvancedFilterModel():null},n.prototype.setAdvancedFilterModel=function(t){this.gos.set("advancedFilterModel",t)},n.prototype.setEnableAdvancedFilter=function(t){this.gos.set("enableAdvancedFilter",t)},n.prototype.setIncludeHiddenColumnsInAdvancedFilter=function(t){this.gos.set("includeHiddenColumnsInAdvancedFilter",t)},n.prototype.setAdvancedFilterParent=function(t){this.gos.set("advancedFilterParent",t)},n.prototype.setAdvancedFilterBuilderParams=function(t){this.gos.set("advancedFilterBuilderParams",t)},n.prototype.showAdvancedFilterBuilder=function(){J.__assertRegistered(g.ModuleNames.AdvancedFilterModule,"api.setAdvancedFilterModel",this.context.getGridId())&&this.filterManager.showAdvancedFilterBuilder("api")},n.prototype.setNodesSelected=function(t){var e=t.nodes.every(function(s){return s.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),!1):s.id===void 0?(console.warn("AG Grid: cannot select node until id for node is known"),!1):!0});if(e){var r=t.nodes,o=t.source,i=t.newValue,a=r;this.selectionService.setNodesSelected({nodes:a,source:o??"api",newValue:i})}},n.prototype.selectAll=function(t){t===void 0&&(t="apiSelectAll"),this.selectionService.selectAllRowNodes({source:t})},n.prototype.deselectAll=function(t){t===void 0&&(t="apiSelectAll"),this.selectionService.deselectAllRowNodes({source:t})},n.prototype.selectAllFiltered=function(t){t===void 0&&(t="apiSelectAllFiltered"),this.selectionService.selectAllRowNodes({source:t,justFiltered:!0})},n.prototype.deselectAllFiltered=function(t){t===void 0&&(t="apiSelectAllFiltered"),this.selectionService.deselectAllRowNodes({source:t,justFiltered:!0})},n.prototype.getServerSideSelectionState=function(){return Z(this.serverSideRowModel)?(this.logMissingRowModel("getServerSideSelectionState","serverSide"),null):this.selectionService.getServerSideSelectionState()},n.prototype.setServerSideSelectionState=function(t){if(Z(this.serverSideRowModel)){this.logMissingRowModel("setServerSideSelectionState","serverSide");return}this.selectionService.setServerSideSelectionState(t)},n.prototype.selectAllOnCurrentPage=function(t){t===void 0&&(t="apiSelectAllCurrentPage"),this.selectionService.selectAllRowNodes({source:t,justCurrentPage:!0})},n.prototype.deselectAllOnCurrentPage=function(t){t===void 0&&(t="apiSelectAllCurrentPage"),this.selectionService.deselectAllRowNodes({source:t,justCurrentPage:!0})},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.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},n.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},n.prototype.getBestCostNodeSelection=function(){if(Z(this.clientSideRowModel)){this.logMissingRowModel("getBestCostNodeSelection","clientSide");return}return this.selectionService.getBestCostNodeSelection()},n.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},n.prototype.ensureColumnVisible=function(t,e){e===void 0&&(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){e===void 0&&(e=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,e)},n.prototype.forEachLeafNode=function(t){if(Z(this.clientSideRowModel)){this.logMissingRowModel("forEachLeafNode","clientSide");return}this.clientSideRowModel.forEachLeafNode(t)},n.prototype.forEachNode=function(t,e){this.rowModel.forEachNode(t,e)},n.prototype.forEachNodeAfterFilter=function(t){if(Z(this.clientSideRowModel)){this.logMissingRowModel("forEachNodeAfterFilter","clientSide");return}this.clientSideRowModel.forEachNodeAfterFilter(t)},n.prototype.forEachNodeAfterFilterAndSort=function(t){if(Z(this.clientSideRowModel)){this.logMissingRowModel("forEachNodeAfterFilterAndSort","clientSide");return}this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},n.prototype.getFilterInstance=function(t,e){return this.filterManager.getFilterInstance(t,e)},n.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"api")},n.prototype.getStatusPanel=function(t){if(J.__assertRegistered(g.ModuleNames.StatusBarModule,"api.getStatusPanel",this.context.getGridId())){var e=this.statusBarService.getStatusPanel(t);return Rs(e)}},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(t){t===void 0&&(t="api"),this.filterManager.onFilterChanged({source:t})},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.gos.set("suppressRowDrag",t)},n.prototype.setSuppressMoveWhenRowDragging=function(t){this.gos.set("suppressMoveWhenRowDragging",t)},n.prototype.setSuppressRowClickSelection=function(t){this.gos.set("suppressRowClickSelection",t)},n.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().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.gos.set("headerHeight",t)},n.prototype.setDomLayout=function(t){this.gos.set("domLayout",t)},n.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},n.prototype.setFillHandleDirection=function(t){this.gos.set("fillHandleDirection",t)},n.prototype.setGroupHeaderHeight=function(t){this.gos.set("groupHeaderHeight",t)},n.prototype.setFloatingFiltersHeight=function(t){this.gos.set("floatingFiltersHeight",t)},n.prototype.setPivotHeaderHeight=function(t){this.gos.set("pivotHeaderHeight",t)},n.prototype.setPivotGroupHeaderHeight=function(t){this.gos.set("pivotGroupHeaderHeight",t)},n.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},n.prototype.setAnimateRows=function(t){this.gos.set("animateRows",t)},n.prototype.setIsExternalFilterPresent=function(t){this.gos.set("isExternalFilterPresent",t)},n.prototype.setDoesExternalFilterPass=function(t){this.gos.set("doesExternalFilterPass",t)},n.prototype.setNavigateToNextCell=function(t){this.gos.set("navigateToNextCell",t)},n.prototype.setTabToNextCell=function(t){this.gos.set("tabToNextCell",t)},n.prototype.setTabToNextHeader=function(t){this.gos.set("tabToNextHeader",t)},n.prototype.setNavigateToNextHeader=function(t){this.gos.set("navigateToNextHeader",t)},n.prototype.setRowGroupPanelShow=function(t){this.gos.set("rowGroupPanelShow",t)},n.prototype.setGetGroupRowAgg=function(t){this.gos.set("getGroupRowAgg",t)},n.prototype.setGetBusinessKeyForNode=function(t){this.gos.set("getBusinessKeyForNode",t)},n.prototype.setGetChildCount=function(t){this.gos.set("getChildCount",t)},n.prototype.setProcessRowPostCreate=function(t){this.gos.set("processRowPostCreate",t)},n.prototype.setGetRowId=function(t){this.gos.set("getRowId",t)},n.prototype.setGetRowClass=function(t){this.gos.set("getRowClass",t)},n.prototype.setIsFullWidthRow=function(t){this.gos.set("isFullWidthRow",t)},n.prototype.setIsRowSelectable=function(t){this.gos.set("isRowSelectable",t)},n.prototype.setIsRowMaster=function(t){this.gos.set("isRowMaster",t)},n.prototype.setPostSortRows=function(t){this.gos.set("postSortRows",t)},n.prototype.setGetDocument=function(t){this.gos.set("getDocument",t)},n.prototype.setGetContextMenuItems=function(t){this.gos.set("getContextMenuItems",t)},n.prototype.setGetMainMenuItems=function(t){this.gos.set("getMainMenuItems",t)},n.prototype.setProcessCellForClipboard=function(t){this.gos.set("processCellForClipboard",t)},n.prototype.setSendToClipboard=function(t){this.gos.set("sendToClipboard",t)},n.prototype.setProcessCellFromClipboard=function(t){this.gos.set("processCellFromClipboard",t)},n.prototype.setProcessSecondaryColDef=function(t){Xn("28.0","setProcessSecondaryColDef","setProcessPivotResultColDef"),this.setProcessPivotResultColDef(t)},n.prototype.setProcessSecondaryColGroupDef=function(t){Xn("28.0","setProcessSecondaryColGroupDef","setProcessPivotResultColGroupDef"),this.setProcessPivotResultColGroupDef(t)},n.prototype.setProcessPivotResultColDef=function(t){this.gos.set("processPivotResultColDef",t)},n.prototype.setProcessPivotResultColGroupDef=function(t){this.gos.set("processPivotResultColGroupDef",t)},n.prototype.setPostProcessPopup=function(t){this.gos.set("postProcessPopup",t)},n.prototype.setInitialGroupOrderComparator=function(t){this.gos.set("initialGroupOrderComparator",t)},n.prototype.setGetChartToolbarItems=function(t){this.gos.set("getChartToolbarItems",t)},n.prototype.setPaginationNumberFormatter=function(t){this.gos.set("paginationNumberFormatter",t)},n.prototype.setGetServerSideStoreParams=function(t){Xn("28.0","setGetServerSideStoreParams","setGetServerSideGroupLevelParams"),this.setGetServerSideGroupLevelParams(t)},n.prototype.setGetServerSideGroupLevelParams=function(t){this.gos.set("getServerSideGroupLevelParams",t)},n.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gos.set("isServerSideGroupOpenByDefault",t)},n.prototype.setIsApplyServerSideTransaction=function(t){this.gos.set("isApplyServerSideTransaction",t)},n.prototype.setIsServerSideGroup=function(t){this.gos.set("isServerSideGroup",t)},n.prototype.setGetServerSideGroupKey=function(t){this.gos.set("getServerSideGroupKey",t)},n.prototype.setGetRowStyle=function(t){this.gos.set("getRowStyle",t)},n.prototype.setGetRowHeight=function(t){this.gos.set("getRowHeight",t)},n.prototype.assertSideBarLoaded=function(t){return J.__assertRegistered(g.ModuleNames.SideBarModule,"api."+t,this.context.getGridId())},n.prototype.isSideBarVisible=function(){return this.assertSideBarLoaded("isSideBarVisible")&&this.sideBarComp.isDisplayed()},n.prototype.setSideBarVisible=function(t){this.assertSideBarLoaded("setSideBarVisible")&&this.sideBarComp.setDisplayed(t)},n.prototype.setSideBarPosition=function(t){this.assertSideBarLoaded("setSideBarPosition")&&this.sideBarComp.setSideBarPosition(t)},n.prototype.openToolPanel=function(t){this.assertSideBarLoaded("openToolPanel")&&this.sideBarComp.openToolPanel(t,"api")},n.prototype.closeToolPanel=function(){this.assertSideBarLoaded("closeToolPanel")&&this.sideBarComp.close("api")},n.prototype.getOpenedToolPanel=function(){return this.assertSideBarLoaded("getOpenedToolPanel")?this.sideBarComp.openedItem():null},n.prototype.refreshToolPanel=function(){this.assertSideBarLoaded("refreshToolPanel")&&this.sideBarComp.refresh()},n.prototype.isToolPanelShowing=function(){return this.assertSideBarLoaded("isToolPanelShowing")&&this.sideBarComp.isToolPanelShowing()},n.prototype.getToolPanelInstance=function(t){if(this.assertSideBarLoaded("getToolPanelInstance")){var e=this.sideBarComp.getToolPanelInstance(t);return Rs(e)}},n.prototype.getSideBar=function(){if(this.assertSideBarLoaded("getSideBar"))return this.sideBarComp.getDef()},n.prototype.setSideBar=function(t){this.gos.set("sideBar",t)},n.prototype.setSuppressClipboardPaste=function(t){this.gos.set("suppressClipboardPaste",t)},n.prototype.resetRowHeights=function(){if(D(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive()){console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");return}this.clientSideRowModel.resetRowHeights()}},n.prototype.setGroupRemoveSingleChildren=function(t){this.gos.set("groupRemoveSingleChildren",t)},n.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gos.set("groupRemoveLowestSingleChildren",t)},n.prototype.setGroupDisplayType=function(t){this.gos.set("groupDisplayType",t)},n.prototype.setGroupIncludeFooter=function(t){this.gos.set("groupIncludeFooter",t)},n.prototype.setGroupIncludeTotalFooter=function(t){this.gos.set("groupIncludeTotalFooter",t)},n.prototype.setRowClass=function(t){this.gos.set("rowClass",t)},n.prototype.setDeltaSort=function(t){this.gos.set("deltaSort",t)},n.prototype.setRowCount=function(t,e){if(this.serverSideRowModel){if(this.columnModel.isRowGroupEmpty()){this.serverSideRowModel.setRowCount(t,e);return}console.error("AG Grid: setRowCount cannot be used while using row grouping.");return}if(this.infiniteRowModel){this.infiniteRowModel.setRowCount(t,e);return}this.logMissingRowModel("setRowCount","infinite","serverSide")},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 Z(r)&&(r=this.columnModel.getGridColumn(t)),Z(r)?null:this.valueService.getValue(r,e)},n.prototype.addEventListener=function(t,e){var r=this.gos.useAsyncEvents();this.eventService.addEventListener(t,e,r)},n.prototype.addGlobalListener=function(t){var e=this.gos.useAsyncEvents();this.eventService.addGlobalListener(t,e)},n.prototype.removeEventListener=function(t,e){var r=this.gos.useAsyncEvents();this.eventService.removeEventListener(t,e,r)},n.prototype.removeGlobalListener=function(t){var e=this.gos.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,this.dispatchEvent({type:_.EVENT_GRID_PRE_DESTROYED});var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},n.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(eD.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.filterManager.resetQuickFilterCache()},n.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(J.__assertRegistered(g.ModuleNames.RangeSelectionModule,"api.getCellRanges",this.context.getGridId()),null)},n.prototype.addCellRange=function(t){if(this.rangeService){this.rangeService.addCellRange(t);return}J.__assertRegistered(g.ModuleNames.RangeSelectionModule,"api.addCellRange",this.context.getGridId())},n.prototype.clearRangeSelection=function(){this.rangeService&&this.rangeService.removeAllCellRanges(),J.__assertRegistered(g.ModuleNames.RangeSelectionModule,"gridApi.clearRangeSelection",this.context.getGridId())},n.prototype.undoCellEditing=function(){this.undoRedoService.undo("api")},n.prototype.redoCellEditing=function(){this.undoRedoService.redo("api")},n.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},n.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},n.prototype.getChartModels=function(){if(J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.getChartModels",this.context.getGridId()))return this.chartService.getChartModels()},n.prototype.getChartRef=function(t){if(J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.getChartRef",this.context.getGridId()))return this.chartService.getChartRef(t)},n.prototype.getChartImageDataURL=function(t){if(J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.getChartImageDataURL",this.context.getGridId()))return this.chartService.getChartImageDataURL(t)},n.prototype.downloadChart=function(t){if(J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.downloadChart",this.context.getGridId()))return this.chartService.downloadChart(t)},n.prototype.openChartToolPanel=function(t){if(J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.openChartToolPanel",this.context.getGridId()))return this.chartService.openChartToolPanel(t)},n.prototype.closeChartToolPanel=function(t){if(J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.closeChartToolPanel",this.context.getGridId()))return this.chartService.closeChartToolPanel(t.chartId)},n.prototype.createRangeChart=function(t){if(J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.createRangeChart",this.context.getGridId()))return this.chartService.createRangeChart(t)},n.prototype.createPivotChart=function(t){if(J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.createPivotChart",this.context.getGridId()))return this.chartService.createPivotChart(t)},n.prototype.createCrossFilterChart=function(t){if(J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.createCrossFilterChart",this.context.getGridId()))return this.chartService.createCrossFilterChart(t)},n.prototype.updateChart=function(t){J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.updateChart",this.context.getGridId())&&this.chartService.updateChart(t)},n.prototype.restoreChart=function(t,e){if(J.__assertRegistered(g.ModuleNames.GridChartsModule,"api.restoreChart",this.context.getGridId()))return this.chartService.restoreChart(t,e)},n.prototype.copyToClipboard=function(t){J.__assertRegistered(g.ModuleNames.ClipboardModule,"api.copyToClipboard",this.context.getGridId())&&this.clipboardService.copyToClipboard(t)},n.prototype.cutToClipboard=function(t){J.__assertRegistered(g.ModuleNames.ClipboardModule,"api.cutToClipboard",this.context.getGridId())&&this.clipboardService.cutToClipboard(t,"api")},n.prototype.copySelectedRowsToClipboard=function(t){J.__assertRegistered(g.ModuleNames.ClipboardModule,"api.copySelectedRowsToClipboard",this.context.getGridId())&&this.clipboardService.copySelectedRowsToClipboard(t)},n.prototype.copySelectedRangeToClipboard=function(t){J.__assertRegistered(g.ModuleNames.ClipboardModule,"api.copySelectedRangeToClipboard",this.context.getGridId())&&this.clipboardService.copySelectedRangeToClipboard(t)},n.prototype.copySelectedRangeDown=function(){J.__assertRegistered(g.ModuleNames.ClipboardModule,"api.copySelectedRangeDown",this.context.getGridId())&&this.clipboardService.copyRangeDown()},n.prototype.pasteFromClipboard=function(){J.__assertRegistered(g.ModuleNames.ClipboardModule,"api.pasteFromClipboard",this.context.getGridId())&&this.clipboardService.pasteFromClipboard()},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);if(r||(r=this.columnModel.getPrimaryColumn(t)),!r){console.error("AG Grid: column '"+t+"' not found");return}this.menuFactory.showMenuAfterMouseEvent(r,e)},n.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},n.prototype.setPopupParent=function(t){this.gos.set("popupParent",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){t===void 0&&(t={});var e=this.rowRenderer.getCellRendererInstances(t),r=e.map(Rs);return r},n.prototype.getCellEditorInstances=function(t){t===void 0&&(t={});var e=this.rowRenderer.getCellEditorInstances(t),r=e.map(Rs);return r},n.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},n.prototype.stopEditing=function(t){t===void 0&&(t=!1),this.rowRenderer.stopEditing(t)},n.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(!e){console.warn("AG Grid: no column found for "+t.colKey);return}var r={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e},o=t.rowPinned==null;o&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var i=this.navigationService.getCellByPosition(r);i&&(this.focusService.isCellFocused(r)||this.focusService.setFocusedCell(r),i.startRowOrCellEdit(t.key))},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){this.logMissingRowModel("applyServerSideTransaction","serverSide");return}return this.serverSideTransactionManager.applyTransaction(t)},n.prototype.applyServerSideTransactionAsync=function(t,e){if(!this.serverSideTransactionManager){this.logMissingRowModel("applyServerSideTransactionAsync","serverSide");return}return this.serverSideTransactionManager.applyTransactionAsync(t,e)},n.prototype.applyServerSideRowData=function(t){var e,r,o=(e=t.startRow)!==null&&e!==void 0?e:0,i=(r=t.route)!==null&&r!==void 0?r:[];if(o<0){console.warn("AG Grid: invalid value "+t.startRow+" for startRow, the value should be >= 0");return}this.serverSideRowModel?this.serverSideRowModel.applyRowData(t.successParams,o,i):this.logMissingRowModel("setServerSideDatasource","serverSide")},n.prototype.retryServerSideLoads=function(){if(!this.serverSideRowModel){this.logMissingRowModel("retryServerSideLoads","serverSide");return}this.serverSideRowModel.retryLoads()},n.prototype.flushServerSideAsyncTransactions=function(){if(!this.serverSideTransactionManager){this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide");return}return this.serverSideTransactionManager.flushAsyncTransactions()},n.prototype.applyTransaction=function(t){if(!this.clientSideRowModel){this.logMissingRowModel("applyTransaction","clientSide");return}return this.clientSideRowModel.updateRowData(t)},n.prototype.applyTransactionAsync=function(t,e){if(!this.clientSideRowModel){this.logMissingRowModel("applyTransactionAsync","clientSide");return}this.clientSideRowModel.batchUpdateRowData(t,e)},n.prototype.flushAsyncTransactions=function(){if(!this.clientSideRowModel){this.logMissingRowModel("flushAsyncTransactions","clientSide");return}this.clientSideRowModel.flushAsyncTransactions()},n.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(t){this.gos.set("suppressModelUpdateAfterUpdateTransaction",t)},n.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},n.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},n.prototype.refreshServerSide=function(t){if(!this.serverSideRowModel){this.logMissingRowModel("refreshServerSide","serverSide");return}this.serverSideRowModel.refreshStore(t)},n.prototype.refreshServerSideStore=function(t){return Xn("28.0","refreshServerSideStore","refreshServerSide"),this.refreshServerSide(t)},n.prototype.getServerSideStoreState=function(){return Xn("28.0","getServerSideStoreState","getServerSideGroupLevelState"),this.getServerSideGroupLevelState()},n.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},n.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},n.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},n.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},n.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},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.setDataTypeDefinitions=function(t){this.gos.set("dataTypeDefinitions",t)},n.prototype.setPagination=function(t){this.gos.set("pagination",t)},n.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},n.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},n.prototype.paginationSetPageSize=function(t){this.gos.set("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)},Te([_e("immutableService")],n.prototype,"immutableService",void 0),Te([_e("csvCreator")],n.prototype,"csvCreator",void 0),Te([_e("excelCreator")],n.prototype,"excelCreator",void 0),Te([w("rowRenderer")],n.prototype,"rowRenderer",void 0),Te([w("navigationService")],n.prototype,"navigationService",void 0),Te([w("filterManager")],n.prototype,"filterManager",void 0),Te([w("columnModel")],n.prototype,"columnModel",void 0),Te([w("selectionService")],n.prototype,"selectionService",void 0),Te([w("gridOptionsService")],n.prototype,"gos",void 0),Te([w("valueService")],n.prototype,"valueService",void 0),Te([w("alignedGridsService")],n.prototype,"alignedGridsService",void 0),Te([w("eventService")],n.prototype,"eventService",void 0),Te([w("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Te([w("context")],n.prototype,"context",void 0),Te([w("rowModel")],n.prototype,"rowModel",void 0),Te([w("sortController")],n.prototype,"sortController",void 0),Te([w("paginationProxy")],n.prototype,"paginationProxy",void 0),Te([w("focusService")],n.prototype,"focusService",void 0),Te([w("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Te([_e("rangeService")],n.prototype,"rangeService",void 0),Te([_e("clipboardService")],n.prototype,"clipboardService",void 0),Te([_e("aggFuncService")],n.prototype,"aggFuncService",void 0),Te([w("menuFactory")],n.prototype,"menuFactory",void 0),Te([_e("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Te([w("valueCache")],n.prototype,"valueCache",void 0),Te([w("animationFrameService")],n.prototype,"animationFrameService",void 0),Te([_e("statusBarService")],n.prototype,"statusBarService",void 0),Te([_e("chartService")],n.prototype,"chartService",void 0),Te([_e("undoRedoService")],n.prototype,"undoRedoService",void 0),Te([_e("rowNodeBlockLoader")],n.prototype,"rowNodeBlockLoader",void 0),Te([_e("ssrmTransactionManager")],n.prototype,"serverSideTransactionManager",void 0),Te([w("ctrlsService")],n.prototype,"ctrlsService",void 0),Te([M],n.prototype,"init",null),Te([Mt],n.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),n=Te([H("gridApi")],n),n}(),zU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Vc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},H0=function(n){zU(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.quickFilter=null,r.quickFilterParts=null,r}e=t,t.prototype.postConstruct=function(){var r=this;this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return r.resetQuickFilterCache()}),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,function(){return r.resetQuickFilterCache()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return r.resetQuickFilterCache()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VISIBLE,function(){r.gridOptionsService.is("includeHiddenColumnsInQuickFilter")||r.resetQuickFilterCache()}),this.addManagedPropertyListener("quickFilterText",function(o){return r.setQuickFilter(o.currentValue)}),this.addManagedPropertyListener("includeHiddenColumnsInQuickFilter",function(){return r.onIncludeHiddenColumnsInQuickFilterChanged()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.parser=this.gridOptionsService.get("quickFilterParser"),this.matcher=this.gridOptionsService.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],function(){return r.setQuickFilterParserAndMatcher()})},t.prototype.isQuickFilterPresent=function(){return this.quickFilter!==null},t.prototype.doesRowPassQuickFilter=function(r){var o=this,i=this.gridOptionsService.is("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(i,r):this.quickFilterParts.every(function(a){return i?o.doesRowPassQuickFilterCache(r,a):o.doesRowPassQuickFilterNoCache(r,a)})},t.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode(function(r){return r.quickFilterAggregateText=null})},t.prototype.setQuickFilterParts=function(){var r=this,o=r.quickFilter,i=r.parser;o?this.quickFilterParts=i?i(o):o.split(" "):this.quickFilterParts=null},t.prototype.parseQuickFilter=function(r){return D(r)?this.gridOptionsService.isRowModelType("clientSide")?r.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},t.prototype.setQuickFilter=function(r){if(r!=null&&typeof r!="string"){console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof r);return}var o=this.parseQuickFilter(r);this.quickFilter!==o&&(this.quickFilter=o,this.setQuickFilterParts(),this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED}))},t.prototype.setQuickFilterParserAndMatcher=function(){var r=this.gridOptionsService.get("quickFilterParser"),o=this.gridOptionsService.get("quickFilterMatcher"),i=r!==this.parser||o!==this.matcher;this.parser=r,this.matcher=o,i&&(this.setQuickFilterParts(),this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED}))},t.prototype.onIncludeHiddenColumnsInQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED})},t.prototype.doesRowPassQuickFilterNoCache=function(r,o){var i=this,a=this.columnModel.getAllColumnsForQuickFilter();return a.some(function(s){var l=i.getQuickFilterTextForColumn(s,r);return D(l)&&l.indexOf(o)>=0})},t.prototype.doesRowPassQuickFilterCache=function(r,o){return this.checkGenerateQuickFilterAggregateText(r),r.quickFilterAggregateText.indexOf(o)>=0},t.prototype.doesRowPassQuickFilterMatcher=function(r,o){var i;r?(this.checkGenerateQuickFilterAggregateText(o),i=o.quickFilterAggregateText):i=this.getQuickFilterAggregateText(o);var a=this,s=a.quickFilterParts,l=a.matcher;return l(s,i)},t.prototype.checkGenerateQuickFilterAggregateText=function(r){r.quickFilterAggregateText||(r.quickFilterAggregateText=this.getQuickFilterAggregateText(r))},t.prototype.getQuickFilterTextForColumn=function(r,o){var i=this.valueService.getValue(r,o,!0),a=r.getColDef();if(a.getQuickFilterText){var s={value:i,node:o,data:o.data,column:r,colDef:a,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};i=a.getQuickFilterText(s)}return D(i)?i.toString().toUpperCase():null},t.prototype.getQuickFilterAggregateText=function(r){var o=this,i=[],a=this.columnModel.getAllColumnsForQuickFilter();return a.forEach(function(s){var l=o.getQuickFilterTextForColumn(s,r);D(l)&&i.push(l)}),i.join(e.QUICK_FILTER_SEPARATOR)};var e;return t.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",t.QUICK_FILTER_SEPARATOR=`
`,Vc([w("valueService")],t.prototype,"valueService",void 0),Vc([w("columnModel")],t.prototype,"columnModel",void 0),Vc([w("rowModel")],t.prototype,"rowModel",void 0),Vc([M],t.prototype,"postConstruct",null),t=e=Vc([H("quickFilterService")],t),t}(F),qU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rg=function(){return Rg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Rg.apply(this,arguments)},Yo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},V0=function(n){qU(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.allColumnListeners=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.processingFilterChange=!1,e.filterModelUpdateQueue=[],e}return t.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_GRID_COLUMNS_CHANGED,function(){return e.onColumnsChanged()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VALUE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,function(){return e.updateAdvancedFilterColumns()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VISIBLE,function(){return e.updateAdvancedFilterColumns()}),this.allowShowChangeAfterFilter=this.gridOptionsService.is("allowShowChangeAfterFilter"),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",function(){return e.updateAggFiltering()}),this.addManagedPropertyListener("advancedFilterModel",function(r){return e.setAdvancedFilterModel(r.currentValue)}),this.addManagedListener(this.eventService,_.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,function(r){var o=r.enabled;return e.onAdvancedFilterEnabledChanged(o)}),this.addManagedListener(this.eventService,_.EVENT_DATA_TYPES_INFERRED,function(){return e.processFilterModelUpdateQueue()}),this.addManagedListener(this.quickFilterService,H0.EVENT_QUICK_FILTER_CHANGED,function(){return e.onFilterChanged({source:"quickFilter"})})},t.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return typeof e=="function"?e({}):!1},t.prototype.doesExternalFilterPass=function(e){var r=this.gridOptionsService.get("doesExternalFilterPass");return typeof r=="function"?r(e):!1},t.prototype.setFilterModel=function(e){var r=this;if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}if(this.dataTypeService.isPendingInference()){this.filterModelUpdateQueue.push(e);return}var o=[],i=this.getFilterModel();if(e){var a=KS(Object.keys(e));this.allColumnFilters.forEach(function(s,l){var u=e[l];o.push(r.setModelOnFilterWrapper(s.filterPromise,u)),a.delete(l)}),a.forEach(function(s){var l=r.columnModel.getPrimaryColumn(s)||r.columnModel.getGridColumn(s);if(!l){console.warn("AG Grid: setFilterModel() - no column found for colId: "+s);return}if(!l.isFilterAllowed()){console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+s);return}var u=r.getOrCreateFilterWrapper(l,"NO_UI");if(!u){console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+s);return}o.push(r.setModelOnFilterWrapper(u.filterPromise,e[s]))})}else this.allColumnFilters.forEach(function(s){o.push(r.setModelOnFilterWrapper(s.filterPromise,null))});yn.all(o).then(function(){var s=r.getFilterModel(),l=[];r.allColumnFilters.forEach(function(u,c){var d=i?i[c]:null,f=s?s[c]:null;Q.jsonEquals(d,f)||l.push(u.column)}),l.length>0&&r.onFilterChanged({columns:l,source:"api"})})},t.prototype.setModelOnFilterWrapper=function(e,r){return new yn(function(o){e.then(function(i){typeof i.setModel!="function"&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),o()),(i.setModel(r)||yn.resolve()).then(function(){return o()})})})},t.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach(function(r,o){var i=r.filterPromise,a=i.resolveNow(null,function(l){return l});if(a==null)return null;if(typeof a.getModel!="function"){console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel");return}var s=a.getModel();D(s)&&(e[o]=s)}),e},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.isChildFilterPresent=function(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},t.prototype.isAdvancedFilterPresent=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()},t.prototype.onAdvancedFilterEnabledChanged=function(e){var r=this,o;e?this.allColumnFilters.size&&(this.allColumnFilters.forEach(function(i){return r.disposeFilterWrapper(i,"advancedFilterEnabled")}),this.onFilterChanged({source:"advancedFilter"})):!((o=this.advancedFilterService)===null||o===void 0)&&o.isFilterPresent()&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))},t.prototype.isAdvancedFilterEnabled=function(){var e;return(e=this.advancedFilterService)===null||e===void 0?void 0:e.isEnabled()},t.prototype.isAdvancedFilterHeaderActive=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()},t.prototype.doAggregateFiltersPass=function(e,r){return this.doColumnFiltersPass(e,r,!0)},t.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var r=function(a){return a?a.isFilterActive?a.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1):!1},o=!!this.gridOptionsService.getGroupAggFiltering(),i=function(a){var s=!a.isPrimary();if(s)return!0;var l=!e.columnModel.isPivotActive(),u=a.isValueActive();return!u||!l?!1:e.columnModel.isPivotMode()?!0:o};this.allColumnFilters.forEach(function(a){if(a.filterPromise.resolveNow(!1,r)){var s=a.filterPromise.resolveNow(null,function(l){return l});i(a.column)?e.activeAggregateFilters.push(s):e.activeColumnFilters.push(s)}})},t.prototype.updateFilterFlagInColumns=function(e,r){this.allColumnFilters.forEach(function(o){var i=o.filterPromise.resolveNow(!1,function(a){return a.isFilterActive()});o.column.setFilterActive(i,e,r)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},t.prototype.doColumnFiltersPass=function(e,r,o){for(var i=e.data,a=e.aggData,s=o?this.activeAggregateFilters:this.activeColumnFilters,l=o?a:i,u=0;u<s.length;u++){var c=s[u];if(!(c==null||c===r)){if(typeof c.doesFilterPass!="function")throw new Error("Filter is missing method doesFilterPass");if(!c.doesFilterPass({node:e,data:l}))return!1}}return!0},t.prototype.resetQuickFilterCache=function(){this.quickFilterService.resetQuickFilterCache()},t.prototype.refreshFiltersForAggregations=function(){var e=this.gridOptionsService.getGroupAggFiltering();e&&this.onFilterChanged()},t.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var r=this,o=function(){return r.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(o,0):o()},t.prototype.onFilterChanged=function(e){e===void 0&&(e={});var r=e.source,o=e.filterInstance,i=e.additionalEventAttributes,a=e.columns;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",i),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach(function(l){l.filterPromise&&l.filterPromise.then(function(u){u&&u!==o&&u.onAnyFilterChanged&&u.onAnyFilterChanged()})});var s={source:r,type:_.EVENT_FILTER_CHANGED,columns:a||[]};i&&wn(s,i),this.processingFilterChange=!0,this.eventService.dispatchEvent(s),this.processingFilterChange=!1},t.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},t.prototype.isQuickFilterPresent=function(){return this.quickFilterService.isQuickFilterPresent()},t.prototype.updateAggFiltering=function(){this.aggFiltering=!!this.gridOptionsService.getGroupAggFiltering()},t.prototype.isAggregateQuickFilterPresent=function(){return this.isQuickFilterPresent()&&(this.aggFiltering||this.columnModel.isPivotMode())},t.prototype.isNonAggregateQuickFilterPresent=function(){return this.isQuickFilterPresent()&&!(this.aggFiltering||this.columnModel.isPivotMode())},t.prototype.doesRowPassOtherFilters=function(e,r){return this.doesRowPassFilter({rowNode:r,filterInstanceToSkip:e})},t.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},t.prototype.doesRowPassFilter=function(e){return!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)||this.isAdvancedFilterPresent()&&!this.advancedFilterService.doesFilterPass(e.rowNode))},t.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach(function(r){r.filterPromise.then(function(o){o.onNewRowsLoaded&&o.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(e,{afterDataChange:!0}),this.updateActiveFilters()},t.prototype.createValueGetter=function(e){var r=this;return function(o){var i=o.node;return r.valueService.getValue(e,i,!0)}},t.prototype.getFilterComponent=function(e,r,o){var i;if(o===void 0&&(o=!0),o)return((i=this.getOrCreateFilterWrapper(e,r))===null||i===void 0?void 0:i.filterPromise)||null;var a=this.cachedFilter(e);return a?a.filterPromise:null},t.prototype.isFilterActive=function(e){var r=this.cachedFilter(e);return!!r&&r.filterPromise.resolveNow(!1,function(o){return o.isFilterActive()})},t.prototype.getOrCreateFilterWrapper=function(e,r){var o=this;if(!e.isFilterAllowed())return null;var i=this.cachedFilter(e);if(i)r!=="NO_UI"&&this.putIntoGui(i,r);else{i=this.createFilterWrapper(e,r);var a=e.getColId();this.allColumnFilters.set(a,i),this.allColumnListeners.set(a,this.addManagedListener(e,Ne.EVENT_COL_DEF_CHANGED,function(){return o.checkDestroyFilter(a)}))}return i},t.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},t.prototype.getDefaultFilter=function(e){var r;if(J.__isRegistered(g.ModuleNames.SetFilterModule,this.context.getGridId()))r="agSetColumnFilter";else{var o=e.getColDef().cellDataType;o==="number"?r="agNumberColumnFilter":o==="date"||o==="dateString"?r="agDateColumnFilter":r="agTextColumnFilter"}return r},t.prototype.getDefaultFloatingFilter=function(e){var r;if(J.__isRegistered(g.ModuleNames.SetFilterModule,this.context.getGridId()))r="agSetColumnFloatingFilter";else{var o=e.getColDef().cellDataType;o==="number"?r="agNumberColumnFloatingFilter":o==="date"||o==="dateString"?r="agDateColumnFloatingFilter":r="agTextColumnFloatingFilter"}return r},t.prototype.createFilterInstance=function(e){var r=this,o=this.getDefaultFilter(e),i=e.getColDef(),a,s=Rg(Rg({},this.createFilterParams(e,i)),{filterModifiedCallback:function(){var u={type:_.EVENT_FILTER_MODIFIED,column:e,filterInstance:a};r.eventService.dispatchEvent(u)},filterChangedCallback:function(u){var c,d=(c=u?.source)!==null&&c!==void 0?c:"api",f={filterInstance:a,additionalEventAttributes:u,columns:[e],source:d};r.callOnFilterChangedOutsideRenderCycle(f)},doesRowPassOtherFilter:function(u){return r.doesRowPassOtherFilters(a,u)}}),l=this.userComponentFactory.getFilterDetails(i,s,o);return l?{filterPromise:function(){var u=l.newAgStackInstance();return u&&u.then(function(c){return a=c}),u},compDetails:l}:{filterPromise:null,compDetails:null}},t.prototype.createFilterParams=function(e,r){var o={column:e,colDef:_S(r),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),doesRowPassOtherFilter:function(){return!0},api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};return o},t.prototype.createFilterWrapper=function(e,r){var o,i={column:e,filterPromise:null,compiledElement:null,guiPromise:yn.resolve(null),compDetails:null},a=this.createFilterInstance(e),s=a.filterPromise,l=a.compDetails;return i.filterPromise=(o=s?.())!==null&&o!==void 0?o:null,i.compDetails=l,s&&this.putIntoGui(i,r),i},t.prototype.putIntoGui=function(e,r){var o=this,i=document.createElement("div");i.className="ag-filter",e.guiPromise=new yn(function(a){e.filterPromise.then(function(s){var l=s.getGui();D(l)||console.warn("AG Grid: getGui method from filter returned "+l+", it should be a DOM element or an HTML template string."),typeof l=="string"&&(l=tr(l)),i.appendChild(l),a(i);var u={type:_.EVENT_FILTER_OPENED,column:e.column,source:r,eGui:i};o.eventService.dispatchEvent(u)})})},t.prototype.onColumnsChanged=function(){var e=this,r=[];this.allColumnFilters.forEach(function(o,i){var a;o.column.isPrimary()?a=e.columnModel.getPrimaryColumn(i):a=e.columnModel.getGridColumn(i),!a&&(r.push(o.column),e.disposeFilterWrapper(o,"columnChanged"),e.disposeColumnListener(i))}),r.length>0?this.onFilterChanged({columns:r,source:"api"}):this.updateDependantFilters()},t.prototype.updateDependantFilters=function(){var e=this,r=this.columnModel.getGroupAutoColumns();r?.forEach(function(o){o.getColDef().filter==="agGroupColumnFilter"&&e.getOrCreateFilterWrapper(o,"NO_UI")})},t.prototype.isFilterAllowed=function(e){var r,o;if(this.isAdvancedFilterEnabled())return!1;var i=e.isFilterAllowed();if(!i)return!1;var a=this.allColumnFilters.get(e.getColId());return(o=(r=a?.filterPromise)===null||r===void 0?void 0:r.resolveNow(!0,function(s){var l,u;return typeof((l=s)===null||l===void 0?void 0:l.isFilterAllowed)=="function"?(u=s)===null||u===void 0?void 0:u.isFilterAllowed():!0}))!==null&&o!==void 0?o:!0},t.prototype.getFloatingFilterCompDetails=function(e,r){var o=this,i=e.getColDef(),a=this.createFilterParams(e,i),s=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,yS,a),l=this.userComponentFactory.getDefaultFloatingFilterType(i,function(){return o.getDefaultFloatingFilter(e)});l==null&&(l="agReadOnlyFloatingFilter");var u=function(d){var f=o.getFilterComponent(e,"NO_UI");f?.then(function(p){d(Rs(p))})},c={column:e,filterParams:s,currentParentModel:function(){return o.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:u,showParentFilter:r,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(i,c,l)},t.prototype.getCurrentFloatingFilterParentModel=function(e){var r=this.getFilterComponent(e,"NO_UI",!1);return r?r.resolveNow(null,function(o){return o&&o.getModel()}):null},t.prototype.destroyFilter=function(e,r){r===void 0&&(r="api");var o=e.getColId(),i=this.allColumnFilters.get(o);this.disposeColumnListener(o),i&&(this.disposeFilterWrapper(i,r),this.onFilterChanged({columns:[e],source:"api"}))},t.prototype.disposeColumnListener=function(e){var r=this.allColumnListeners.get(e);r&&(this.allColumnListeners.delete(e),r())},t.prototype.disposeFilterWrapper=function(e,r){var o=this;e.filterPromise.then(function(i){(i.setModel(null)||yn.resolve()).then(function(){o.getContext().destroyBean(i),e.column.setFilterActive(!1,"filterDestroyed"),o.allColumnFilters.delete(e.column.getColId());var a={type:_.EVENT_FILTER_DESTROYED,source:r,column:e.column};o.eventService.dispatchEvent(a)})})},t.prototype.checkDestroyFilter=function(e){var r=this.allColumnFilters.get(e);if(r){var o=r.column,i=(o.isFilterAllowed()?this.createFilterInstance(o):{compDetails:null}).compDetails;this.areFilterCompsDifferent(r.compDetails,i)&&this.destroyFilter(o,"columnChanged")}},t.prototype.areFilterCompsDifferent=function(e,r){if(!r||!e)return!0;var o=e.componentClass,i=r.componentClass,a=o===i||o?.render&&i?.render&&o.render===i.render;return!a},t.prototype.getAdvancedFilterModel=function(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null},t.prototype.setAdvancedFilterModel=function(e){this.isAdvancedFilterEnabled()&&(this.advancedFilterService.setModel(e??null),this.onFilterChanged({source:"advancedFilter"}))},t.prototype.showAdvancedFilterBuilder=function(e){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(e,!0)},t.prototype.updateAdvancedFilterColumns=function(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})},t.prototype.hasFloatingFilters=function(){if(this.isAdvancedFilterEnabled())return!1;var e=this.columnModel.getAllGridColumns();return e?e.some(function(r){return r.getColDef().floatingFilter}):!1},t.prototype.getFilterInstance=function(e,r){if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}var o=this.getFilterInstanceImpl(e,function(a){if(r){var s=Rs(a);r(s)}}),i=Rs(o);return i},t.prototype.getFilterInstanceImpl=function(e,r){var o=this.columnModel.getPrimaryColumn(e);if(o){var i=this.getFilterComponent(o,"NO_UI"),a=i&&i.resolveNow(null,function(s){return s});return a?setTimeout(r,0,a):i&&i.then(function(s){r(s)}),a}},t.prototype.warnAdvancedFilters=function(){ge(function(){console.warn("AG Grid: Column Filter API methods have been disabled as Advanced Filters are enabled.")},"advancedFiltersCompatibility")},t.prototype.setupAdvancedFilterHeaderComp=function(e){var r;(r=this.advancedFilterService)===null||r===void 0||r.getCtrl().setupHeaderComp(e)},t.prototype.getHeaderRowCount=function(){return this.isAdvancedFilterHeaderActive()?1:0},t.prototype.getHeaderHeight=function(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0},t.prototype.processFilterModelUpdateQueue=function(){var e=this;this.filterModelUpdateQueue.forEach(function(r){return e.setFilterModel(r)}),this.filterModelUpdateQueue=[]},t.prototype.destroy=function(){var e=this;n.prototype.destroy.call(this),this.allColumnFilters.forEach(function(r){return e.disposeFilterWrapper(r,"gridDestroyed")}),this.allColumnListeners.clear()},Yo([w("valueService")],t.prototype,"valueService",void 0),Yo([w("columnModel")],t.prototype,"columnModel",void 0),Yo([w("rowModel")],t.prototype,"rowModel",void 0),Yo([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Yo([w("rowRenderer")],t.prototype,"rowRenderer",void 0),Yo([w("dataTypeService")],t.prototype,"dataTypeService",void 0),Yo([w("quickFilterService")],t.prototype,"quickFilterService",void 0),Yo([_e("advancedFilterService")],t.prototype,"advancedFilterService",void 0),Yo([M],t.prototype,"init",null),t=Yo([H("filterManager")],t),t}(F),$U=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),i_=function(n){$U(t,n);function t(e,r){var o=n.call(this,e)||this;return o.ctrl=r,o}return t.prototype.getCtrl=function(){return this.ctrl},t}(se),KU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Bc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},B0=function(n){KU(t,n);function t(e){return n.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o={addOrRemoveCssClass:function(i,a){return e.addOrRemoveCssClass(i,a)},addOrRemoveBodyCssClass:function(i,a){return e.eFloatingFilterBody.classList.toggle(i,a)},setButtonWrapperDisplayed:function(i){return we(e.eButtonWrapper,i)},setCompDetails:function(i){return e.setCompDetails(i)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(i){return r.style.width=i},setMenuIcon:function(i){return e.eButtonShowMainFilter.appendChild(i)}};this.ctrl.setComp(o,r,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var r=this;if(!e){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(o){return r.afterCompCreated(o)})},t.prototype.destroyFloatingFilterComp=function(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))},t.prototype.afterCompCreated=function(e){if(e){if(!this.isAlive()){this.destroyBean(e);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()}},t.TEMPLATE=`<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">
<div ref="eFloatingFilterBody" role="presentation"></div>
<div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">
<button type="button" class="ag-button ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>
</div>
</div>`,Bc([G("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),Bc([G("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),Bc([G("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),Bc([M],t.prototype,"postConstruct",null),Bc([Mt],t.prototype,"destroyFloatingFilterComp",null),t}(i_),YU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),XU=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){n.AUTO_HEIGHT="ag-layout-auto-height",n.NORMAL="ag-layout-normal",n.PRINT="ag-layout-print"})(g.LayoutCssClasses||(g.LayoutCssClasses={}));var a_=function(n){YU(t,n);function t(e){var r=n.call(this)||this;return r.view=e,r}return t.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),r={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},o=r.autoHeight?g.LayoutCssClasses.AUTO_HEIGHT:r.print?g.LayoutCssClasses.PRINT:g.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(o,r)},t.prototype.getDomLayout=function(){var e,r=(e=this.gridOptionsService.get("domLayout"))!==null&&e!==void 0?e:"normal",o=["normal","print","autoHeight"];return o.indexOf(r)===-1?(ge(function(){return console.warn("AG Grid: "+r+" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")},"warn about dom layout values"),"normal"):r},XU([M],t.prototype,"postConstruct",null),t}(F),QU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Tg=function(){return Tg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Tg.apply(this,arguments)},wa=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},gr;(function(n){n[n.Vertical=0]="Vertical",n[n.Horizontal=1]="Horizontal"})(gr||(gr={}));var Dr;(function(n){n[n.Container=0]="Container",n[n.FakeContainer=1]="FakeContainer"})(Dr||(Dr={}));var JU=function(n){QU(t,n);function t(e){var r=n.call(this)||this;return r.lastScrollSource=[null,null],r.scrollLeft=-1,r.nextScrollTop=-1,r.scrollTop=-1,r.eBodyViewport=e,r.resetLastHScrollDebounced=wo(function(){return r.lastScrollSource[gr.Horizontal]=null},500),r.resetLastVScrollDebounced=wo(function(){return r.lastScrollSource[gr.Vertical]=null},500),r}return t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(r){e.centerRowContainerCtrl=r.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollComp(),r=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),e.onScrollCallback(this.onFakeHScroll.bind(this));var o=this.gridOptionsService.is("debounceVerticalScrollbar"),i=o?wo(this.onVScroll.bind(this),100):this.onVScroll.bind(this),a=o?wo(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i),r.onScrollCallback(a)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){var r=this.centerRowContainerCtrl==null;if(!r){e===void 0&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var o=this.enableRtl?e:-e,i=this.ctrlsService.getTopCenterRowContainerCtrl(),a=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),s=this.ctrlsService.getBottomCenterRowContainerCtrl(),l=this.ctrlsService.getFakeHScrollComp(),u=this.ctrlsService.getHeaderRowContainerCtrl();u.setHorizontalScroll(-o),s.setContainerTranslateX(o),i.setContainerTranslateX(o),a.setContainerTranslateX(o);var c=this.centerRowContainerCtrl.getViewportElement(),d=this.lastScrollSource[gr.Horizontal]===Dr.Container;e=Math.abs(e),d?l.setScrollPosition(e):yd(c,e,this.enableRtl)}},t.prototype.isControllingScroll=function(e,r){return this.lastScrollSource[r]==null?(this.lastScrollSource[r]=e,!0):this.lastScrollSource[r]===e},t.prototype.onFakeHScroll=function(){this.isControllingScroll(Dr.FakeContainer,gr.Horizontal)&&this.onHScrollCommon(Dr.FakeContainer)},t.prototype.onHScroll=function(){this.isControllingScroll(Dr.Container,gr.Horizontal)&&this.onHScrollCommon(Dr.Container)},t.prototype.onHScrollCommon=function(e){var r=this.centerRowContainerCtrl.getViewportElement(),o=r.scrollLeft;if(!this.shouldBlockScrollUpdate(gr.Horizontal,o,!0)){var i;e===Dr.Container?i=md(r,this.enableRtl):i=this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(i)),this.resetLastHScrollDebounced()}},t.prototype.onFakeVScroll=function(){this.isControllingScroll(Dr.FakeContainer,gr.Vertical)&&this.onVScrollCommon(Dr.FakeContainer)},t.prototype.onVScroll=function(){this.isControllingScroll(Dr.Container,gr.Vertical)&&this.onVScrollCommon(Dr.Container)},t.prototype.onVScrollCommon=function(e){var r;e===Dr.Container?r=this.eBodyViewport.scrollTop:r=this.ctrlsService.getFakeVScrollComp().getScrollPosition(),!this.shouldBlockScrollUpdate(gr.Vertical,r,!0)&&(this.animationFrameService.setScrollTop(r),this.nextScrollTop=r,e===Dr.Container?this.ctrlsService.getFakeVScrollComp().setScrollPosition(r):this.eBodyViewport.scrollTop=r,this.gridOptionsService.is("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},t.prototype.doHorizontalScroll=function(e){var r=this.ctrlsService.getFakeHScrollComp().getScrollPosition();this.scrollLeft===e&&e===r||(this.scrollLeft=e,this.fireScrollEvent(gr.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))},t.prototype.fireScrollEvent=function(e){var r=this,o={type:_.EVENT_BODY_SCROLL,direction:e===gr.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var i=Tg(Tg({},o),{type:_.EVENT_BODY_SCROLL_END});r.eventService.dispatchEvent(i)},100)},t.prototype.shouldBlockScrollUpdate=function(e,r,o){return o===void 0&&(o=!1),o&&!Na()?!1:e===gr.Vertical?this.shouldBlockVerticalScroll(r):this.shouldBlockHorizontalScroll(r)},t.prototype.shouldBlockVerticalScroll=function(e){var r=_d(this.eBodyViewport),o=this.eBodyViewport.scrollHeight;return e<0||e+r>o},t.prototype.shouldBlockHorizontalScroll=function(e){var r=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&vd()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+r>o},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(gr.Vertical)},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(Dr.Container)},t.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e,r){r===void 0&&(r=!1);var o=0,i=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();!r&&this.shouldBlockScrollUpdate(gr.Horizontal,e)&&(this.enableRtl&&vd()?e=e>0?0:i:e=Math.min(Math.max(e,o),i)),yd(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){var e={top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight};return e},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var r=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(r+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-r},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,r){r===void 0&&(r=null);for(var o=this.rowModel.getRowCount(),i=-1,a=0;a<o;a++){var s=this.rowModel.getRow(a);if(typeof e=="function"){var l=e;if(s&&l(s)){i=a;break}}else if(e===s||e===s.data){i=a;break}}i>=0&&this.ensureIndexVisible(i,r)},t.prototype.ensureIndexVisible=function(e,r){if(!this.gridOptionsService.isDomLayout("print")){var o=this.paginationProxy.getRowCount();if(typeof e!="number"||e<0||e>=o){console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);return}var i=this.gridOptionsService.is("pagination"),a=i&&!this.gridOptionsService.is("suppressPaginationPanel");a||this.paginationProxy.goToPageWithIndex(e);var s=this.ctrlsService.getGridBodyCtrl(),l=s.getStickyTopHeight(),u=this.paginationProxy.getRow(e),c;do{var d=u.rowTop,f=u.rowHeight,p=this.paginationProxy.getPixelOffset(),h=u.rowTop-p,v=h+u.rowHeight,C=this.getVScrollPosition(),m=this.heightScaler.getDivStretchOffset(),y=C.top+m,S=C.bottom+m,E=S-y,R=this.heightScaler.getScrollPositionForPixel(h),x=this.heightScaler.getScrollPositionForPixel(v-E),P=Math.min((R+x)/2,h),T=y+l>h,L=S<v,I=null;r==="top"?I=R:r==="bottom"?I=x:r==="middle"?I=P:T?I=R-l:L&&(I=x),I!==null&&(this.setVerticalScrollPosition(I),this.rowRenderer.redraw({afterScroll:!0})),c=d!==u.rowTop||f!==u.rowHeight}while(c);this.animationFrameService.flushAllFrames()}},t.prototype.ensureColumnVisible=function(e,r){r===void 0&&(r="auto");var o=this.columnModel.getGridColumn(e);if(o&&!o.isPinned()&&this.columnModel.isColumnDisplayed(o)){var i=this.getPositionedHorizontalScroll(o,r);i!==null&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(i),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,r){var o=this.isColumnOutsideViewport(e),i=o.columnBeforeStart,a=o.columnAfterEnd,s=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),l=this.centerRowContainerCtrl.getCenterWidth(),u=this.enableRtl,c=(u?i:a)||s,d=u?a:i;r!=="auto"&&(c=r==="start",d=r==="end");var f=r==="middle";if(c||d||f){var p=this.getColumnBounds(e),h=p.colLeft,v=p.colMiddle,C=p.colRight;return f?v-l/2:c?u?C:h:u?h-l:C-l}return null},t.prototype.isColumnOutsideViewport=function(e){var r=this.getViewportBounds(),o=r.start,i=r.end,a=this.getColumnBounds(e),s=a.colLeft,l=a.colRight,u=this.enableRtl,c=u?o>l:i<l,d=u?i<s:o>s;return{columnBeforeStart:c,columnAfterEnd:d}},t.prototype.getColumnBounds=function(e){var r=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),i=e.getActualWidth(),a=e.getLeft(),s=r?-1:1,l=r?o-a:a,u=l+i*s,c=l+i/2*s;return{colLeft:l,colMiddle:c,colRight:u}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),r=this.centerRowContainerCtrl.getCenterViewportScrollLeft(),o=r,i=e+r;return{start:o,end:i,width:e}},wa([w("ctrlsService")],t.prototype,"ctrlsService",void 0),wa([w("animationFrameService")],t.prototype,"animationFrameService",void 0),wa([w("paginationProxy")],t.prototype,"paginationProxy",void 0),wa([w("rowModel")],t.prototype,"rowModel",void 0),wa([w("rowContainerHeightService")],t.prototype,"heightScaler",void 0),wa([w("rowRenderer")],t.prototype,"rowRenderer",void 0),wa([w("columnModel")],t.prototype,"columnModel",void 0),wa([M],t.prototype,"postConstruct",null),t}(F),ZU=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),CS=function(){return CS=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},CS.apply(this,arguments)},$n=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ej=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},tj=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},rj=function(n){ZU(t,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 t.prototype.postConstruct=function(){var e=this;this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel);var r=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_MODEL_UPDATED,function(){r()}),r(),this.ctrlsService.whenReady(function(){var o=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new o_({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=!Cn(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===g.DragSourceType.RowDrag},t.prototype.getIconName=function(){var e=this.gridOptionsService.is("rowDragManaged");return e&&this.shouldPreventRowMove()?Ft.ICON_NOT_ALLOWED:Ft.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.gridOptionsService.is("rowDragMultiRow"),i=tj([],ej(this.selectionService.getSelectedNodes())).sort(function(s,l){return s.rowIndex==null||l.rowIndex==null?0:r.getRowIndexNumber(s)-r.getRowIndexNumber(l)}),a=e.dragItem.rowNode;return o&&i.indexOf(a)!==-1?(this.isMultiRowDrag=!0,i):(this.isMultiRowDrag=!1,[a])},t.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(_.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){var r=e.dragSource.dragSourceDomDataKey;return r===this.gridOptionsService.getDomDataKey()},t.prototype.isDropZoneWithinThisGrid=function(e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getGui(),i=e.dropZoneTarget;return!o.contains(i)},t.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(_.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var r=this.mouseEventService.getNormalisedPosition(e).y,o=this.gridOptionsService.is("rowDragManaged");o&&this.doManagedDrag(e,r),this.autoScrollService.check(e.event)},t.prototype.doManagedDrag=function(e,r){var o=this.isFromThisGrid(e),i=this.gridOptionsService.is("rowDragManaged"),a=e.dragItem.rowNodes;i&&this.shouldPreventRowMove()||(this.gridOptionsService.is("suppressMoveWhenRowDragging")||!o?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(a[0],r):this.moveRows(a,r))},t.prototype.getRowIndexNumber=function(e){return parseInt(Ge(e.getRowIndexString().split("-")),10)},t.prototype.moveRowAndClearHighlight=function(e){var r=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),i=o&&o.highlighted===g.RowHighlightPosition.Below,a=this.mouseEventService.getNormalisedPosition(e).y,s=e.dragItem.rowNodes,l=i?1:0;if(this.isFromThisGrid(e))s.forEach(function(d){d.rowTop<a&&(l-=1)}),this.moveRows(s,a,l);else{var u=this.gridOptionsService.getCallback("getRowId"),c=this.clientSideRowModel.getRowIndexAtPixel(a)+1;this.clientSideRowModel.getHighlightPosition(a)===g.RowHighlightPosition.Above&&c--,this.clientSideRowModel.updateRowData({add:s.map(function(d){return d.data}).filter(function(d){return!r.clientSideRowModel.getRowNode(u?u({data:d,level:0}):d.id)}),addIndex:c})}this.clearRowHighlight()},t.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},t.prototype.moveRows=function(e,r,o){o===void 0&&(o=0);var i=this.clientSideRowModel.ensureRowsAtPixel(e,r,o);i&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},t.prototype.addRowDropZone=function(e){var r=this;if(!e.getContainer()){ge(function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")},"add-drop-zone-empty-target");return}if(this.dragAndDropService.findExternalZone(e)){console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");return}var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(i){e.onDragEnter(r.draggingToRowDragEvent(_.EVENT_ROW_DRAG_ENTER,i))}),e.onDragLeave&&(o.onDragLeave=function(i){e.onDragLeave(r.draggingToRowDragEvent(_.EVENT_ROW_DRAG_LEAVE,i))}),e.onDragging&&(o.onDragging=function(i){e.onDragging(r.draggingToRowDragEvent(_.EVENT_ROW_DRAG_MOVE,i))}),e.onDragStop&&(o.onDragStop=function(i){e.onDragStop(r.draggingToRowDragEvent(_.EVENT_ROW_DRAG_END,i))})),this.dragAndDropService.addDropTarget(CS({isInterestedIn:function(i){return i===g.DragSourceType.RowDrag},getIconName:function(){return Ft.ICON_MOVE},external:!0},o))},t.prototype.getRowDropZone=function(e){var r=this,o=this.getContainer.bind(this),i=this.onDragEnter.bind(this),a=this.onDragLeave.bind(this),s=this.onDragging.bind(this),l=this.onDragStop.bind(this);return e?{getContainer:o,onDragEnter:e.onDragEnter?function(u){i(u),e.onDragEnter(r.draggingToRowDragEvent(_.EVENT_ROW_DRAG_ENTER,u))}:i,onDragLeave:e.onDragLeave?function(u){a(u),e.onDragLeave(r.draggingToRowDragEvent(_.EVENT_ROW_DRAG_LEAVE,u))}:a,onDragging:e.onDragging?function(u){s(u),e.onDragging(r.draggingToRowDragEvent(_.EVENT_ROW_DRAG_MOVE,u))}:s,onDragStop:e.onDragStop?function(u){l(u),e.onDragStop(r.draggingToRowDragEvent(_.EVENT_ROW_DRAG_END,u))}:l,fromGrid:!0}:{getContainer:o,onDragEnter:i,onDragLeave:a,onDragging:s,onDragStop:l,fromGrid:!0}},t.prototype.draggingToRowDragEvent=function(e,r){var o=this.mouseEventService.getNormalisedPosition(r).y,i=o>this.paginationProxy.getCurrentPageHeight(),a=-1,s;i||(a=this.rowModel.getRowIndexAtPixel(o),s=this.rowModel.getRow(a));var l;switch(r.vDirection){case g.VerticalDirection.Down:l="down";break;case g.VerticalDirection.Up:l="up";break;default:l=null;break}var u={type:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,event:r.event,node:r.dragItem.rowNode,nodes:r.dragItem.rowNodes,overIndex:a,overNode:s,y:o,vDirection:l};return u},t.prototype.dispatchGridEvent=function(e,r){var o=this.draggingToRowDragEvent(e,r);this.eventService.dispatchEvent(o)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(_.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.is("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(_.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsService.is("rowDragManaged")&&(this.gridOptionsService.is("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(r){r.setDragging(!1)})},$n([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),$n([w("rowModel")],t.prototype,"rowModel",void 0),$n([w("paginationProxy")],t.prototype,"paginationProxy",void 0),$n([w("columnModel")],t.prototype,"columnModel",void 0),$n([w("focusService")],t.prototype,"focusService",void 0),$n([w("sortController")],t.prototype,"sortController",void 0),$n([w("filterManager")],t.prototype,"filterManager",void 0),$n([w("selectionService")],t.prototype,"selectionService",void 0),$n([w("mouseEventService")],t.prototype,"mouseEventService",void 0),$n([w("ctrlsService")],t.prototype,"ctrlsService",void 0),$n([_e("rangeService")],t.prototype,"rangeService",void 0),$n([M],t.prototype,"postConstruct",null),t}(F),nj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),$r=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){n.ANIMATION_ON="ag-row-animation",n.ANIMATION_OFF="ag-row-no-animation"})(g.RowAnimationCssClasses||(g.RowAnimationCssClasses={}));var W0="ag-force-vertical-scroll",oj="ag-selectable",ij="ag-column-moving",U0=function(n){nj(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,r,o,i,a,s){this.comp=e,this.eGridBody=r,this.eBodyViewport=o,this.eTop=i,this.eBottom=a,this.eStickyTop=s,this.setCellTextSelection(this.gridOptionsService.is("enableCellTextSelection")),this.createManagedBean(new a_(this.comp)),this.bodyScrollFeature=this.createManagedBean(new JU(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,o,a,s]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(i),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,_.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,_.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=i.target,s=xs(a,"ag-root",o);o.classList.toggle("ag-has-focus",!s)}),r.addManagedListener(o,"focusout",function(i){var a=i.target,s=i.relatedTarget,l=o.contains(s),u=xs(s,"ag-root",o),c=xs(a,"ag-root",o);c||(!l||u)&&o.classList.remove("ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(ij,e)},t.prototype.setCellTextSelection=function(e){e===void 0&&(e=!1),this.comp.setCellSelectableCss(oj,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this,r=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(r),this.setStickyTopWidth(r);var o=r&&this.gridOptionsService.getScrollbarWidth()||0,i=hd()?16:0,a="calc(100% + "+(o+i)+"px)";this.animationFrameService.requestAnimationFrame(function(){return e.comp.setBodyViewportWidth(a)})},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.gridOptionsService.is("stopEditingWhenCellsLoseFocus")){var r=function(i){var a=i.relatedTarget;if(yg(a)===null){e.rowRenderer.stopEditing();return}var s=o.some(function(u){return u.contains(a)})&&e.mouseEventService.isElementInThisGrid(a);if(!s){var l=e.popupService;s=l.getActivePopups().some(function(u){return u.contains(a)})||l.isElementWithinCustomPopup(a)}s||e.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach(function(i){return e.addManagedListener(i,"focusout",r)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),r=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,o=r===-1?-1:e+r;this.comp.setRowCount(o)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){var r=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(r)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.is("alwaysShowVerticalScroll"),r=e?W0:null,o=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(r,e),e||o&&JD(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,r=function(){var o=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),i=o?g.RowAnimationCssClasses.ANIMATION_ON:g.RowAnimationCssClasses.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(i,o)};r(),this.addManagedListener(this.eventService,_.EVENT_HEIGHT_SCALE_CHANGED,r),this.addManagedPropertyListener("animateRows",r)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},t.prototype.addFullWidthContainerWheelListener=function(){var e=this,r=this.eBodyViewport.querySelector(".ag-full-width-container"),o=this.eBodyViewport.querySelector(".ag-center-cols-viewport");r&&o&&this.addManagedListener(r,"wheel",function(i){return e.onFullWidthContainerWheel(i,o)})},t.prototype.onFullWidthContainerWheel=function(e,r){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||!this.mouseEventService.isEventFromThisGrid(e)||(e.preventDefault(),r.scrollBy({left:e.deltaX}))},t.prototype.onBodyViewportContextMenu=function(e,r,o){if(!(!e&&!o)){if(this.gridOptionsService.is("preventDefaultOnContextMenu")){var i=e||o;i.preventDefault()}var a=(e||r).target;if(a===this.eBodyViewport||a===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()){if(!this.contextMenuFactory)return;e?this.contextMenuFactory.onContextMenu(e,null,null,null,null,this.eGridBody):o&&this.contextMenuFactory.onContextMenu(null,o,null,null,null,this.eGridBody)}}},t.prototype.mockContextMenuForIPad=function(e){if(Na()){var r=new Zr(this.eBodyViewport),o=function(i){e(void 0,i.touchStart,i.touchEvent)};this.addManagedListener(r,Zr.EVENT_LONG_TAP,o),this.addDestroyFunc(function(){return r.destroy()})}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var r=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(r+e),this.eBodyViewport.scrollTop-r},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new rj(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){e===void 0&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(!e)this.comp.setStickyTopWidth("100%");else{var r=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+r+"px)")}},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl(),r=e.getHeaderHeight()+this.filterManager.getHeaderHeight(),o=this.pinnedRowModel.getPinnedTopTotalHeight(),i=0;r>0&&(i+=r+1),o>0&&(i+=o+1),this.comp.setStickyTopTop(i+"px")},t.prototype.sizeColumnsToFit=function(e,r){var o=this,i=this.isVerticalScrollShowing(),a=i?this.gridOptionsService.getScrollbarWidth():0,s=Wg(this.eGridBody),l=s-a;if(l>0){this.columnModel.sizeColumnsToFit(l,"sizeColumnsToFit",!1,e);return}r===void 0?window.setTimeout(function(){o.sizeColumnsToFit(e,100)},0):r===100?window.setTimeout(function(){o.sizeColumnsToFit(e,500)},100):r===500?window.setTimeout(function(){o.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},$r([w("animationFrameService")],t.prototype,"animationFrameService",void 0),$r([w("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),$r([w("ctrlsService")],t.prototype,"ctrlsService",void 0),$r([w("columnModel")],t.prototype,"columnModel",void 0),$r([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),$r([_e("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),$r([w("headerNavigationService")],t.prototype,"headerNavigationService",void 0),$r([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),$r([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),$r([w("rowRenderer")],t.prototype,"rowRenderer",void 0),$r([w("popupService")],t.prototype,"popupService",void 0),$r([w("mouseEventService")],t.prototype,"mouseEventService",void 0),$r([w("rowModel")],t.prototype,"rowModel",void 0),$r([w("filterManager")],t.prototype,"filterManager",void 0),t}(F);(function(n){n[n.FILL=0]="FILL",n[n.RANGE=1]="RANGE"})(g.SelectionHandleType||(g.SelectionHandleType={}));(function(n){n[n.VALUE=0]="VALUE",n[n.DIMENSION=1]="DIMENSION"})(g.CellRangeType||(g.CellRangeType={}));var Wc="ag-cell-range-selected",aj="ag-cell-range-chart",sj="ag-cell-range-single-cell",lj="ag-cell-range-chart-category",uj="ag-cell-range-handle",cj="ag-cell-range-top",dj="ag-cell-range-right",fj="ag-cell-range-bottom",pj="ag-cell-range-left",hj=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(Wc,this.rangeCount!==0),this.cellComp.addOrRemoveCssClass(Wc+"-1",this.rangeCount===1),this.cellComp.addOrRemoveCssClass(Wc+"-2",this.rangeCount===2),this.cellComp.addOrRemoveCssClass(Wc+"-3",this.rangeCount===3),this.cellComp.addOrRemoveCssClass(Wc+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(aj,this.hasChartRange),Ds(this.eGui,this.rangeCount>0?!0:void 0),this.cellComp.addOrRemoveCssClass(sj,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},n.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),r=!e&&t.top,o=!e&&t.right,i=!e&&t.bottom,a=!e&&t.left;this.cellComp.addOrRemoveCssClass(cj,r),this.cellComp.addOrRemoveCssClass(dj,o),this.cellComp.addOrRemoveCssClass(fj,i),this.cellComp.addOrRemoveCssClass(pj,a)},n.prototype.isSingleCell=function(){var t=this.beans.rangeService;return this.rangeCount===1&&t&&!t.isMoreThanOneCell()},n.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every(function(r){return Jn([g.CellRangeType.DIMENSION,g.CellRangeType.VALUE],r.type)})},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.getRangeBorders=function(){var t=this,e=this.beans.gridOptionsService.is("enableRtl"),r=!1,o=!1,i=!1,a=!1,s=this.cellCtrl.getCellPosition().column,l=this.beans,u=l.rangeService,c=l.columnModel,d,f;e?(d=c.getDisplayedColAfter(s),f=c.getDisplayedColBefore(s)):(d=c.getDisplayedColBefore(s),f=c.getDisplayedColAfter(s));var p=u.getCellRanges().filter(function(y){return u.isCellInSpecificRange(t.cellCtrl.getCellPosition(),y)});d||(a=!0),f||(o=!0);for(var h=0;h<p.length&&!(r&&o&&i&&a);h++){var v=p[h],C=u.getRangeStartRow(v),m=u.getRangeEndRow(v);!r&&this.beans.rowPositionUtils.sameRow(C,this.cellCtrl.getCellPosition())&&(r=!0),!i&&this.beans.rowPositionUtils.sameRow(m,this.cellCtrl.getCellPosition())&&(i=!0),!a&&d&&v.columns.indexOf(d)<0&&(a=!0),!o&&f&&v.columns.indexOf(f)<0&&(o=!0)}return{top:r,right:o,bottom:i,left:a}},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(uj,!!this.selectionHandle)}},n.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,e=t.gridOptionsService,r=t.rangeService,o=r.getCellRanges(),i=o.length;if(this.rangeCount<1||i<1)return!1;var a=Ge(o),s=this.cellCtrl.getCellPosition(),l=e.is("enableFillHandle")&&!this.cellCtrl.isSuppressFillHandle(),u=e.is("enableRangeHandle"),c=i===1&&!this.cellCtrl.isEditing()&&(l||u);if(this.hasChartRange){var d=o[0].type===g.CellRangeType.DIMENSION,f=d&&r.isCellInSpecificRange(s,o[0]);this.cellComp.addOrRemoveCssClass(lj,f),c=a.type===g.CellRangeType.VALUE}return c&&a.endRow!=null&&r.isContiguousRange(a)&&r.isBottomRightCell(a,s)},n.prototype.addSelectionHandle=function(){var t=this.beans,e=t.gridOptionsService,r=t.rangeService,o=Ge(r.getCellRanges()).type,i=e.is("enableFillHandle")&&Z(o),a=i?g.SelectionHandleType.FILL:g.SelectionHandleType.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==a&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(a)),this.selectionHandle.refresh(this.cellCtrl)},n.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},n}(),gj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vj=function(n){gj(t,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 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();Aa(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,_.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(e===1)r.push(this.column);else for(var o=this.column,i=this.column.getPinned(),a=0;o&&a<e&&(r.push(o),o=this.beans.columnModel.getDisplayedColAfter(o),!(!o||Z(o)||i!==o.getPinned()));a++);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(){var e;return this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?e=Ge(this.colsSpanning):e=this.column,e.getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()==="left")return e;var r=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(this.column.getPinned()==="right"){var o=this.beans.columnModel.getBodyContainerWidth();return r+o+(e||0)}return r+(e||0)},t.prototype.applyRowSpan=function(){if(this.rowSpan!==1){var e=this.beans.gridOptionsService.getRowHeightAsNumber(),r=e*this.rowSpan;this.eGui.style.height=r+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(F),mj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yj=function(n){mj(t,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 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.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};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(typeof e.cellStyle=="function"){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.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context},i=e.cellStyle;r=i(o)}else r=e.cellStyle;r&&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.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.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),Cj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jg=function(n){Cj(t,n);function t(e,r){var o=n.call(this)||this;return o.ctrl=e,o.beans=r,o}return t.prototype.setComp=function(e){this.eGui=e,this.setupTooltip()},t.prototype.setBrowserTooltip=function(e){var r="title";e!=null&&e!=""?this.eGui.setAttribute(r,e):this.eGui.removeAttribute(r)},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsService.is("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?this.setBrowserTooltip(this.tooltip):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this,r,o,i,a;if(this.genericTooltipFeature==null){var s={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new zg(s,(o=(r=this.ctrl).getTooltipShowDelayOverride)===null||o===void 0?void 0:o.call(r),(a=(i=this.ctrl).getTooltipHideDelayOverride)===null||a===void 0?void 0:a.call(i)),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.setBrowserTooltip(this.tooltip)},t.prototype.getTooltipParams=function(){var e=this,r=this.ctrl,o=r.getColumn?r.getColumn():void 0,i=r.getColDef?r.getColDef():void 0,a=r.getRowNode?r.getRowNode():void 0;return{location:r.getLocation(),colDef:i,column:o,rowIndex:r.getRowIndex?r.getRowIndex():void 0,node:a,data:a?a.data:void 0,value:this.getTooltipText(),valueFormatted:r.getValueFormatted?r.getValueFormatted():void 0,hideTooltipCallback:function(){return e.genericTooltipFeature.hideTooltip(!0)}}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(F),ae=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},s_=function(){function n(){}return n.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsService.is("masterDetail"),this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},ae([w("resizeObserverService")],n.prototype,"resizeObserverService",void 0),ae([w("paginationProxy")],n.prototype,"paginationProxy",void 0),ae([w("context")],n.prototype,"context",void 0),ae([w("columnApi")],n.prototype,"columnApi",void 0),ae([w("gridApi")],n.prototype,"gridApi",void 0),ae([w("gridOptionsService")],n.prototype,"gridOptionsService",void 0),ae([w("expressionService")],n.prototype,"expressionService",void 0),ae([w("environment")],n.prototype,"environment",void 0),ae([w("rowRenderer")],n.prototype,"rowRenderer",void 0),ae([w("templateService")],n.prototype,"templateService",void 0),ae([w("valueService")],n.prototype,"valueService",void 0),ae([w("eventService")],n.prototype,"eventService",void 0),ae([w("columnModel")],n.prototype,"columnModel",void 0),ae([w("headerNavigationService")],n.prototype,"headerNavigationService",void 0),ae([w("navigationService")],n.prototype,"navigationService",void 0),ae([w("columnAnimationService")],n.prototype,"columnAnimationService",void 0),ae([_e("rangeService")],n.prototype,"rangeService",void 0),ae([w("focusService")],n.prototype,"focusService",void 0),ae([_e("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),ae([w("popupService")],n.prototype,"popupService",void 0),ae([w("valueFormatterService")],n.prototype,"valueFormatterService",void 0),ae([w("stylingService")],n.prototype,"stylingService",void 0),ae([w("columnHoverService")],n.prototype,"columnHoverService",void 0),ae([w("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ae([w("userComponentRegistry")],n.prototype,"userComponentRegistry",void 0),ae([w("animationFrameService")],n.prototype,"animationFrameService",void 0),ae([w("dragService")],n.prototype,"dragService",void 0),ae([w("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ae([w("sortController")],n.prototype,"sortController",void 0),ae([w("filterManager")],n.prototype,"filterManager",void 0),ae([w("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),ae([w("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),ae([w("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),ae([w("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),ae([w("selectionService")],n.prototype,"selectionService",void 0),ae([_e("selectionHandleFactory")],n.prototype,"selectionHandleFactory",void 0),ae([w("rowCssClassCalculator")],n.prototype,"rowCssClassCalculator",void 0),ae([w("rowModel")],n.prototype,"rowModel",void 0),ae([w("ctrlsService")],n.prototype,"ctrlsService",void 0),ae([w("ctrlsFactory")],n.prototype,"ctrlsFactory",void 0),ae([w("agStackComponentsRegistry")],n.prototype,"agStackComponentsRegistry",void 0),ae([w("valueCache")],n.prototype,"valueCache",void 0),ae([w("rowNodeEventThrottle")],n.prototype,"rowNodeEventThrottle",void 0),ae([w("localeService")],n.prototype,"localeService",void 0),ae([w("valueParserService")],n.prototype,"valueParserService",void 0),ae([M],n.prototype,"postConstruct",null),n=ae([H("beans")],n),n}(),wj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sj=function(n){wj(t,n);function t(e,r,o){var i=n.call(this)||this;return i.cellCtrl=e,i.beans=r,i.column=o,i}return t.prototype.onMouseEvent=function(e,r){if(!_o(r))switch(e){case"click":this.onCellClicked(r);break;case"mousedown":case"touchstart":this.onMouseDown(r);break;case"dblclick":this.onCellDoubleClicked(r);break;case"mouseout":this.onMouseOut(r);break;case"mouseover":this.onMouseOver(r);break}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad()){this.onCellDoubleClicked(e),e.preventDefault();return}var r=this.beans,o=r.eventService,i=r.rangeService,a=r.gridOptionsService,s=e.ctrlKey||e.metaKey;i&&s&&i.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&i.intersectLastRange(!0);var l=this.cellCtrl.createEvent(e,_.EVENT_CELL_CLICKED);o.dispatchEvent(l);var u=this.column.getColDef();u.onCellClicked&&window.setTimeout(function(){return u.onCellClicked(l)},0);var c=(a.is("singleClickEdit")||u.singleClickEdit)&&!a.is("suppressClickEdit");c&&!(e.shiftKey&&i?.getCellRanges().length!=0)&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Na()||TS("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,_.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),typeof r.onCellDoubleClicked=="function"&&window.setTimeout(function(){return r.onCellDoubleClicked(o)},0);var i=!this.beans.gridOptionsService.is("singleClickEdit")&&!this.beans.gridOptionsService.is("suppressClickEdit");i&&this.cellCtrl.startRowOrCellEdit(null,e)},t.prototype.onMouseDown=function(e){var r=e.ctrlKey,o=e.metaKey,i=e.shiftKey,a=e.target,s=this,l=s.cellCtrl,u=s.beans,c=u.eventService,d=u.rangeService,f=u.focusService;if(!this.isRightClickInExistingRange(e)){var p=d&&d.getCellRanges().length!=0;if(!i||!p){var h=to()&&!l.isEditing()&&!HS(a);l.focusCell(h)}if(i&&p&&!f.isCellFocused(l.getCellPosition())){e.preventDefault();var v=f.getFocusedCell();if(v){var C=v.column,m=v.rowIndex,y=v.rowPinned,S=u.rowRenderer.getRowByPosition({rowIndex:m,rowPinned:y}),E=S?.getCellCtrl(C);E?.isEditing()&&E.stopEditing(),f.setFocusedCell({column:C,rowIndex:m,rowPinned:y,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(a)){if(d){var R=this.cellCtrl.getCellPosition();if(i)d.extendLatestRangeToCell(R);else{var x=r||o;d.setRangeToCell(R,x)}}c.dispatchEvent(this.cellCtrl.createEvent(e,_.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var r=this.beans.rangeService;if(r){var o=r.isCellInAnyRange(this.cellCtrl.getCellPosition()),i=e.button===2||e.ctrlKey&&this.beans.gridOptionsService.is("allowContextMenuWithControlKey");if(o&&i)return!0}return!1},t.prototype.containsWidget=function(e){return xs(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var r=this.cellCtrl.createEvent(e,_.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,_.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}(s_),_j=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ej=function(n){_j(t,n);function t(e,r,o,i,a){var s=n.call(this)||this;return s.cellCtrl=e,s.beans=r,s.rowNode=i,s.rowCtrl=a,s}return t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var r=e.key;switch(r){case O.ENTER:this.onEnterKeyDown(e);break;case O.F2:this.onF2KeyDown(e);break;case O.ESCAPE:this.onEscapeKeyDown(e);break;case O.TAB:this.onTabKeyDown(e);break;case O.BACKSPACE:case O.DELETE:this.onBackspaceOrDeleteKeyDown(r,e);break;case O.DOWN:case O.UP:case O.RIGHT:case O.LEFT:this.onNavigationKeyDown(e,r);break}},t.prototype.onNavigationKeyDown=function(e,r){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,r,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var r=this.beans.rangeService.extendLatestRangeInDirection(e);r&&this.beans.navigationService.ensureCellVisible(r)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyDown=function(e,r){var o=this,i=o.cellCtrl,a=o.beans,s=o.rowNode,l=a.gridOptionsService,u=a.rangeService,c=a.eventService;i.isEditing()||(c.dispatchEvent({type:_.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),o0(e,l.is("enableCellEditingOnBackspace"))?u&&l.is("enableRangeSelection")?u.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):i.isCellEditable()&&s.setDataValue(i.getColumn(),null,"cellClear"):i.startRowOrCellEdit(e,r),c.dispatchEvent({type:_.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gridOptionsService.is("enterNavigatesVertically")){var r=e.shiftKey?O.UP:O.DOWN;this.beans.navigationService.navigateToNextCell(null,r,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(O.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(O.F2,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.processCharacter=function(e){var r=e.target,o=r!==this.eGui;if(!(o||this.cellCtrl.isEditing())){var i=e.key;i===" "?this.onSpaceKeyDown(e):(this.cellCtrl.startRowOrCellEdit(i,e),e.preventDefault())}},t.prototype.onSpaceKeyDown=function(e){var r=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&r.isRowSelection()){var o=this.rowNode.isSelected(),i=!o;if(i||!r.is("suppressRowDeselection")){var a=this.beans.gridOptionsService.is("groupSelectsFiltered"),s=this.rowNode.setSelectedParams({newValue:i,rangeSelect:e.shiftKey,groupSelectsFiltered:a,event:e,source:"spaceKey"});o===void 0&&s===0&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:a,event:e,source:"spaceKey"})}}e.preventDefault()},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(F),Rj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Tj=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},xj=function(n){Rj(t,n);function t(e,r,o){var i=n.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=e,i.column=r,i.eCell=o,i}return t.prototype.postConstruct=function(){var e=this.getGui();e.appendChild(_t("rowDrag",this.gridOptionsService,null)),this.addGuiEventListener("mousedown",function(r){r.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var r=this,o=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);var i=function(){try{var s=JSON.stringify(r.rowNode.data);e.dataTransfer.setData("application/json",s),e.dataTransfer.setData("text/plain",s)}catch{}};if(o){var a={rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};o(a)}else i()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},Tj([M],t.prototype,"postConstruct",null),t}(se),Pj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),xg=function(){return xg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},xg.apply(this,arguments)},Oj="ag-cell",Lj="ag-cell-auto-height",Ij="ag-cell-normal-height",Dj="ag-cell-focus",Aj="ag-cell-first-right-pinned",Fj="ag-cell-last-left-pinned",bj="ag-cell-not-inline-editing",Mj="ag-column-hover",Nj="ag-cell-wrap-text",Gj=0,ba=function(n){Pj(t,n);function t(e,r,o,i){var a=n.call(this)||this;a.cellRangeFeature=null,a.cellPositionFeature=null,a.cellCustomStyleFeature=null,a.tooltipFeature=null,a.cellMouseListenerFeature=null,a.cellKeyboardListenerFeature=null,a.suppressRefreshCell=!1,a.onCellCompAttachedFuncs=[],a.column=e,a.rowNode=r,a.beans=o,a.rowCtrl=i,a.instanceId=e.getId()+"-"+Gj++;var s=a.column.getColDef();return a.colIdSanitised=xt(a.column.getId()),a.beans.gridOptionsService.is("suppressCellFocus")||(a.tabIndex=-1),a.isCellRenderer=s.cellRenderer!=null||s.cellRendererSelector!=null,a.createCellPosition(),a.addFeatures(),a.updateAndFormatValue(!0),a}return t.prototype.shouldRestoreFocus=function(){return this.beans.focusService.shouldRestoreFocus(this.cellPosition)},t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new vj(this,this.beans),this.addDestroyFunc(function(){var o;(o=e.cellPositionFeature)===null||o===void 0||o.destroy(),e.cellPositionFeature=null}),this.cellCustomStyleFeature=new yj(this,this.beans),this.addDestroyFunc(function(){var o;(o=e.cellCustomStyleFeature)===null||o===void 0||o.destroy(),e.cellCustomStyleFeature=null}),this.cellMouseListenerFeature=new Sj(this,this.beans,this.column),this.addDestroyFunc(function(){var o;(o=e.cellMouseListenerFeature)===null||o===void 0||o.destroy(),e.cellMouseListenerFeature=null}),this.cellKeyboardListenerFeature=new Ej(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc(function(){var o;(o=e.cellKeyboardListenerFeature)===null||o===void 0||o.destroy(),e.cellKeyboardListenerFeature=null});var r=this.beans.rangeService&&this.beans.gridOptionsService.is("enableRangeSelection");r&&(this.cellRangeFeature=new hj(this.beans,this),this.addDestroyFunc(function(){var o;(o=e.cellRangeFeature)===null||o===void 0||o.destroy(),e.cellRangeFeature=null})),this.column.isTooltipEnabled()&&this.addTooltipFeature()},t.prototype.addTooltipFeature=function(){var e=this,r=function(){var i=e.column.getColDef(),a=e.rowNode.data;if(i.tooltipField&&D(a))return Yl(a,i.tooltipField,e.column.isTooltipFieldContainsDots());var s=i.tooltipValueGetter;return s?s({location:"cell",api:e.beans.gridOptionsService.api,columnApi:e.beans.gridOptionsService.columnApi,context:e.beans.gridOptionsService.context,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},o={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:r,getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new Jg(o,this.beans),this.addDestroyFunc(function(){var i;(i=e.tooltipFeature)===null||i===void 0||i.destroy(),e.tooltipFeature=null})},t.prototype.setComp=function(e,r,o,i,a){var s,l,u,c;this.cellComp=e,this.eGui=r,this.printLayout=i,this.addDomData(),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),o&&this.setupAutoHeight(o),this.setAriaColIndex(),(s=this.cellPositionFeature)===null||s===void 0||s.setComp(r),(l=this.cellCustomStyleFeature)===null||l===void 0||l.setComp(e),(u=this.tooltipFeature)===null||u===void 0||u.setComp(r),(c=this.cellKeyboardListenerFeature)===null||c===void 0||c.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,r),a&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach(function(d){return d()}),this.onCellCompAttachedFuncs=[])},t.prototype.setupAutoHeight=function(e){var r=this;if(this.column.isAutoHeight()){var o=e.parentElement,i=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,a=function(u){if(!r.editing&&r.isAlive()){var c=Ga(o),d=c.paddingTop,f=c.paddingBottom,p=c.borderBottomWidth,h=c.borderTopWidth,v=d+f+p+h,C=e.offsetHeight,m=C+v;if(u<5){var y=r.beans.gridOptionsService.getDocument(),S=!y||!y.contains(e),E=m==0;if(S||E){r.beans.frameworkOverrides.setTimeout(function(){return a(u+1)},0);return}}var R=Math.max(m,i);r.rowNode.setRowAutoHeight(R,r.column)}},s=function(){return a(0)};s();var l=this.beans.resizeObserverService.observeResize(e,s);this.addDestroyFunc(function(){l(),r.rowNode.setRowAutoHeight(void 0,r.column)})}},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getIncludeSelection=function(){return this.includeSelection},t.prototype.getIncludeRowDrag=function(){return this.includeRowDrag},t.prototype.getIncludeDndSource=function(){return this.includeDndSource},t.prototype.getColumnIdSanitised=function(){return this.colIdSanitised},t.prototype.getTabIndex=function(){return this.tabIndex},t.prototype.getIsCellRenderer=function(){return this.isCellRenderer},t.prototype.getValueToDisplay=function(){return this.valueFormatted!=null?this.valueFormatted:this.value},t.prototype.showValue=function(e){e===void 0&&(e=!1);var r=this.getValueToDisplay(),o;if(this.isCellRenderer){var i=this.createCellRendererParams();o=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),i)}this.cellComp.setRenderDetails(o,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(){var e=this.beans.gridOptionsService.is("enableCellTextSelection")||this.column.isAutoHeight();return e},t.prototype.isIncludeControl=function(e){var r=this.rowNode.rowPinned!=null,o=typeof e=="function",i=r?!1:o||e===!0;return i},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){var i=this;if(e===void 0&&(e=null),r===void 0&&(r=!1),o===void 0&&(o=null),!(!this.isCellEditable()||this.editing)){if(!this.cellComp){this.onCellCompAttachedFuncs.push(function(){i.startEditing(e,r,o)});return}var a=this.createCellEditorParams(e,r),s=this.column.getColDef(),l=this.beans.userComponentFactory.getCellEditorDetails(s,a),u=l?.popupFromSelector!=null?l.popupFromSelector:!!s.cellEditorPopup,c=l?.popupPositionFromSelector!=null?l.popupPositionFromSelector:s.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(l,u,c);var d=this.createEvent(o,_.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(d)}},t.prototype.setEditing=function(e){this.editing!==e&&(this.editing=e,this.refreshHandle())},t.prototype.stopRowOrCellEdit=function(e){e===void 0&&(e=!1),this.beans.gridOptionsService.get("editType")==="fullRow"?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},t.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},t.prototype.takeValueFromCellEditor=function(e){var r={newValueExists:!1};if(e)return r;var o=this.cellComp.getCellEditor();if(!o)return r;var i=o.isCancelAfterEnd&&o.isCancelAfterEnd();if(i)return r;var a=o.getValue();return{newValue:a,newValueExists:!0}},t.prototype.saveNewValue=function(e,r){if(r===e)return!1;this.suppressRefreshCell=!0;var o=this.rowNode.setDataValue(this.column,r,"edit");return this.suppressRefreshCell=!1,o},t.prototype.stopEditing=function(e){if(e===void 0&&(e=!1),!this.editing)return!1;var r=this.takeValueFromCellEditor(e),o=r.newValue,i=r.newValueExists,a=this.rowNode.getValueFromValueService(this.column),s=!1;return i&&(s=this.saveNewValue(a,o)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(a,o,!e&&!!s),s},t.prototype.dispatchEditingStoppedEvent=function(e,r,o){var i=xg(xg({},this.createEvent(null,_.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:r,valueChanged:o});this.beans.eventService.dispatchEvent(i)},t.prototype.createCellEditorParams=function(e,r){return{value:this.rowNode.getValueFromValueService(this.column),eventKey:e,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsService.api,cellStartedEdit:r,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,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,r={value:this.value,valueFormatted:this.valueFormatted,getValue:function(){return e.rowNode.getValueFromValueService(e.column)},setValue:function(o){return e.beans.valueService.setValue(e.rowNode,e.column,o)},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.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(o,i,a,s){return e.registerRowDragger(o,i,s)}};return r},t.prototype.parseValue=function(e){return this.beans.valueParserService.parseValue(this.column,this.rowNode,e,this.getValue())},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){if(this.cellComp){var r=e.column===this.column;r&&this.refreshCell({})}},t.prototype.refreshCell=function(e){var r,o,i;if(!(this.suppressRefreshCell||this.editing)&&this.cellComp){var a=this.column.getColDef(),s=e!=null&&!!e.newData,l=e!=null&&!!e.suppressFlash||!!a.suppressCellFlash,u=a.field==null&&a.valueGetter==null&&a.showRowGroup==null,c=e&&e.forceRefresh||u||s,d=this.updateAndFormatValue(),f=c||d;if(f){this.showValue(s);var p=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering(),h=!l&&!p&&(this.beans.gridOptionsService.is("enableCellChangeFlash")||a.enableCellChangeFlash);h&&this.flashCell(),(r=this.cellCustomStyleFeature)===null||r===void 0||r.applyUserStyles(),(o=this.cellCustomStyleFeature)===null||o===void 0||o.applyClassesFromColDef()}this.refreshToolTip(),(i=this.cellCustomStyleFeature)===null||i===void 0||i.applyCellClassRules()}},t.prototype.stopEditingAndFocus=function(e,r){e===void 0&&(e=!1),r===void 0&&(r=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit(r)},t.prototype.navigateAfterEdit=function(e){var r=this.beans.gridOptionsService.is("enterNavigatesVerticallyAfterEdit");if(r){var o=e?O.UP:O.DOWN;this.beans.navigationService.navigateToNextCell(null,o,this.getCellPosition(),!1)}},t.prototype.flashCell=function(e){var r=e&&e.flashDelay,o=e&&e.fadeDelay;this.animateCell("data-changed",r,o)},t.prototype.animateCell=function(e,r,o){var i=this,a,s;if(this.cellComp){var l="ag-cell-"+e,u="ag-cell-"+e+"-animation",c=this.beans.gridOptionsService;r||(r=(a=c.getNum("cellFlashDelay"))!==null&&a!==void 0?a:500),D(o)||(o=(s=c.getNum("cellFadeDelay"))!==null&&s!==void 0?s:1e3),this.cellComp.addOrRemoveCssClass(l,!0),this.cellComp.addOrRemoveCssClass(u,!1),window.setTimeout(function(){i.isAlive()&&(i.cellComp.addOrRemoveCssClass(l,!1),i.cellComp.addOrRemoveCssClass(u,!0),i.eGui.style.transition="background-color "+o+"ms",window.setTimeout(function(){i.isAlive()&&(i.cellComp.addOrRemoveCssClass(u,!1),i.eGui.style.transition="")},o))},r)}},t.prototype.onFlashCells=function(e){if(this.cellComp){var r=this.beans.cellPositionUtils.createId(this.getCellPosition()),o=e.cells[r];o&&this.animateCell("highlight")}},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},t.prototype.formatValue=function(e){var r;return(r=this.callValueFormatter(e))!==null&&r!==void 0?r:e},t.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},t.prototype.updateAndFormatValue=function(e){e===void 0&&(e=!1);var r=this.value,o=this.valueFormatted;this.value=this.rowNode.getValueFromValueService(this.column),this.valueFormatted=this.callValueFormatter(this.value);var i=e?!0:!this.valuesAreEqual(r,this.value)||this.valueFormatted!=o;return i},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.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,r=this.getGui();this.beans.gridOptionsService.setDomData(r,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc(function(){return e.beans.gridOptionsService.setDomData(r,t.DOM_DATA_KEY_CELL_CTRL,null)})},t.prototype.createEvent=function(e,r){var o={type:r,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex};return o},t.prototype.processCharacter=function(e){var r;(r=this.cellKeyboardListenerFeature)===null||r===void 0||r.processCharacter(e)},t.prototype.onKeyDown=function(e){var r;(r=this.cellKeyboardListenerFeature)===null||r===void 0||r.onKeyDown(e)},t.prototype.onMouseEvent=function(e,r){var o;(o=this.cellMouseListenerFeature)===null||o===void 0||o.onMouseEvent(e,r)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){var e;(e=this.tooltipFeature)===null||e===void 0||e.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},t.prototype.onLeftChanged=function(){var e;this.cellComp&&((e=this.cellPositionFeature)===null||e===void 0||e.onLeftChanged())},t.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},t.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);FS(this.getGui(),e)},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.onWidthChanged=function(){var e;return(e=this.cellPositionFeature)===null||e===void 0?void 0:e.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){r===void 0&&(r=null),this.cellComp&&(this.beans.gridOptionsService.get("editType")==="fullRow"?this.rowCtrl.startRowEditing(e,this):this.startEditing(e,!0,r))},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 this.cellRangeFeature!=null},t.prototype.focusCell=function(e){e===void 0&&(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(Aj,e)}},t.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass(Fj,e)}},t.prototype.onCellFocused=function(e){if(!this.beans.gridOptionsService.is("suppressCellFocus")){var r=this.beans.focusService.isCellFocused(this.cellPosition);if(!this.cellComp){r&&e?.forceBrowserFocus&&(this.focusEventToRestore=e);return}if(this.focusEventToRestore=void 0,this.cellComp.addOrRemoveCssClass(Dj,r),r&&e&&e.forceBrowserFocus){var o=this.cellComp.getFocusableElement();o.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}var i=this.beans.gridOptionsService.get("editType")==="fullRow";!r&&!i&&this.editing&&this.stopRowOrCellEdit()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:ri(this.rowNode.rowPinned),column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass(Oj,!0),this.cellComp.addOrRemoveCssClass(bj,!0);var e=this.column.isAutoHeight()==!0;this.cellComp.addOrRemoveCssClass(Lj,e),this.cellComp.addOrRemoveCssClass(Ij,!e)},t.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsService.is("columnHoverHighlight")){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(Mj,e)}},t.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},t.prototype.setWrapText=function(){var e=this.column.getColDef().wrapText==!0;this.cellComp.addOrRemoveCssClass(Nj,e)},t.prototype.dispatchCellContextMenuEvent=function(e){var r=this.column.getColDef(),o=this.createEvent(e,_.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 n_;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new xj(this.rowNode,this.column,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);return}var a=this.createRowDragComp(e,r,o);a&&(this.customRowDragComp=a,this.addDestroyFunc(function(){i.beans.context.destroyBean(a),i.customRowDragComp=null}))},t.prototype.createRowDragComp=function(e,r,o){var i=this,a=this.beans.gridOptionsService.is("pagination"),s=this.beans.gridOptionsService.is("rowDragManaged"),l=this.beans.gridOptionsService.isRowModelType("clientSide");if(s){if(!l){ge(function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")},"CellComp.addRowDragging");return}if(a){ge(function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")},"CellComp.addRowDragging");return}}var u=new _g(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}(F),kj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Hj=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xw=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},Pw=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},Xr;(function(n){n.Normal="Normal",n.FullWidth="FullWidth",n.FullWidthLoading="FullWidthLoading",n.FullWidthGroup="FullWidthGroup",n.FullWidthDetail="FullWidthDetail"})(Xr||(Xr={}));var Vj=0,Ma=function(n){kj(t,n);function t(e,r,o,i,a){var s=n.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.lastMouseDownOnDragger=!1,s.emptyStyle={},s.updateColumnListsPending=!1,s.rowId=null,s.businessKeySanitised=null,s.beans=r,s.gridOptionsService=r.gridOptionsService,s.rowNode=e,s.paginationPage=r.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=i,s.printLayout=a,s.instanceId=e.id+"-"+Vj++,s.rowId=xt(e.id),s.initRowBusinessKey(),s.rowFocused=r.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=r.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.setAnimateFlags(o),s.rowStyles=s.processStylesFromGridOptions(),s.isFullWidth()&&!s.gridOptionsService.is("suppressCellFocus")&&(s.tabIndex=-1),s.addListeners(),s}return t.prototype.initRowBusinessKey=function(){this.businessKeyForNodeFunc=this.gridOptionsService.get("getBusinessKeyForNode"),this.updateRowBusinessKey()},t.prototype.updateRowBusinessKey=function(){if(typeof this.businessKeyForNodeFunc=="function"){var e=this.businessKeyForNodeFunc(this.rowNode);this.businessKeySanitised=xt(e)}},t.prototype.getRowId=function(){return this.rowId},t.prototype.getRowStyles=function(){return this.rowStyles},t.prototype.getTabIndex=function(){return this.tabIndex},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===g.RowContainerType.LEFT?this.leftGui=i:o===g.RowContainerType.RIGHT?this.rightGui=i:o===g.RowContainerType.FULL_WIDTH?this.fullWidthGui=i:this.centerGui=i,this.initialiseRowComp(i),this.rowType!=="FullWidthLoading"&&!this.rowNode.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},t.prototype.unsetComp=function(e){switch(this.allRowGuis=this.allRowGuis.filter(function(r){return r.containerType!==e}),e){case g.RowContainerType.LEFT:this.leftGui=void 0;break;case g.RowContainerType.RIGHT:this.rightGui=void 0;break;case g.RowContainerType.FULL_WIDTH:this.fullWidthGui=void 0;break;case g.RowContainerType.CENTER:this.centerGui=void 0;break;default:}},t.prototype.isCacheable=function(){return this.rowType===Xr.FullWidthDetail&&this.gridOptionsService.is("keepDetailRows")},t.prototype.setCached=function(e){var r=e?"none":"";this.allRowGuis.forEach(function(o){return o.element.style.display=r})},t.prototype.initialiseRowComp=function(e){var r=this,o=this.gridOptionsService;this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),o.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);var i=e.rowComp,a=this.getInitialRowClasses(e.containerType);a.forEach(function(s){return i.addOrRemoveCssClass(s,!0)}),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&So(e.element,this.rowNode.expanded==!0),this.setRowCompRowId(i),this.setRowCompRowBusinessKey(i),o.setDomData(e.element,t.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc(function(){return o.setDomData(e.element,t.DOM_DATA_KEY_ROW_CTRL,null)}),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,e.element),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(e.element),this.isFullWidth()&&this.setupFullWidth(e),o.is("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask(function(){r.isAlive()&&e.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()},t.prototype.setRowCompRowBusinessKey=function(e){this.businessKeySanitised!=null&&e.setRowBusinessKey(this.businessKeySanitised)},t.prototype.getBusinessKey=function(){return this.businessKeySanitised},t.prototype.setRowCompRowId=function(e){this.rowId=xt(this.rowNode.id),this.rowId!=null&&e.setRowId(this.rowId)},t.prototype.executeSlideAndFadeAnimations=function(e){var r=this,o=e.containerType,i=this.slideInAnimation[o];i&&(eS(function(){r.onTopChanged()}),this.slideInAnimation[o]=!1);var a=this.fadeInAnimation[o];a&&(eS(function(){e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[o]=!1)},t.prototype.addRowDraggerToRow=function(e){if(this.gridOptionsService.is("enableRangeSelection")){ge(function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")},"rowDragAndRangeSelectionEnabled");return}var r=this.beans.localeService.getLocaleTextFunc(),o=new _g(function(){return"1 "+r("rowDragRow","row")},this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(o,this.beans.context)},t.prototype.setupFullWidth=function(e){var r=this.getPinnedForContainer(e.containerType),o=this.createFullWidthParams(e.element,r);if(!(this.rowType==Xr.FullWidthDetail&&!J.__assertRegistered(g.ModuleNames.MasterDetailModule,"cell renderer 'agDetailCellRenderer' (for master detail)",this.beans.context.getGridId()))){var i;switch(this.rowType){case Xr.FullWidthDetail:i=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case Xr.FullWidthGroup:i=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case Xr.FullWidthLoading:i=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:i=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o);break}e.rowComp.showFullWidth(i)}},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.getFullWidthCellRenderer=function(){var e,r;return(r=(e=this.fullWidthGui)===null||e===void 0?void 0:e.rowComp)===null||r===void 0?void 0:r.getFullWidthCellRenderer()},t.prototype.getCellElement=function(e){var r=this.getCellCtrl(e);return r?r.getGui():null},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.gridOptionsService.getCallback("processRowPostCreate");if(!(!e||!this.areAllContainersReady())){var r={eRow:this.centerGui.element,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)};e(r)}},t.prototype.areAllContainersReady=function(){var e=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),r=!!this.centerGui,o=!!this.rightGui||!this.beans.columnModel.isPinningRight();return e&&r&&o},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,s=a&&this.gridOptionsService.isGroupUseEntireRow(i);e?this.rowType=Xr.FullWidthLoading:o?this.rowType=Xr.FullWidthDetail:r?this.rowType=Xr.FullWidth:s?this.rowType=Xr.FullWidthGroup:this.rowType=Xr.Normal},t.prototype.updateColumnLists=function(e,r){var o=this;if(e===void 0&&(e=!1),r===void 0&&(r=!1),!this.isFullWidth()){var i=e||this.gridOptionsService.is("suppressAnimationFrame")||this.printLayout;if(i){this.updateColumnListsImpl(r);return}this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){o.active&&o.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},t.prototype.createCellCtrls=function(e,r,o){var i=this;o===void 0&&(o=null);var a={list:[],map:{}},s=function(l,u){a.list.push(u),a.map[l]=u};return r.forEach(function(l){var u=l.getInstanceId(),c=e.map[u];c||(c=new ba(l,i.rowNode,i.beans,i)),s(u,c)}),e.list.forEach(function(l){var u=a.map[l.getColumn().getInstanceId()]!=null;if(!u){var c=!i.isCellEligibleToBeRemoved(l,o);if(c){s(l.getColumn().getInstanceId(),l);return}l.destroy()}}),a},t.prototype.updateColumnListsImpl=function(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)},t.prototype.setCellCtrls=function(e){var r=this;this.allRowGuis.forEach(function(o){var i=r.getCellCtrlsForContainer(o.containerType);o.rowComp.setCellCtrls(i,e)})},t.prototype.getCellCtrlsForContainer=function(e){switch(e){case g.RowContainerType.LEFT:return this.leftCellCtrls.list;case g.RowContainerType.RIGHT:return this.rightCellCtrls.list;case g.RowContainerType.FULL_WIDTH:return[];case g.RowContainerType.CENTER:return this.centerCellCtrls.list;default:var r=e;throw new Error("Unhandled case: "+r)}},t.prototype.createAllCellCtrls=function(){var e=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,e.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var r=e.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,r);var o=e.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,o,"left");var i=e.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,"right")}},t.prototype.isCellEligibleToBeRemoved=function(e,r){var o=!0,i=!1,a=e.getColumn();if(a.getPinned()!=r)return o;var s=e.isEditing(),l=this.beans.focusService.isCellFocused(e.getCellPosition()),u=s||l;if(u){var c=e.getColumn(),d=this.beans.columnModel.getAllDisplayedColumns(),f=d.indexOf(c)>=0;return f?i:o}return o},t.prototype.getDomOrder=function(){var e=this.gridOptionsService.is("ensureDomOrder");return e||this.gridOptionsService.isDomLayout("print")},t.prototype.listenOnDomOrder=function(e){var r=this,o=function(){e.rowComp.setDomOrder(r.getDomOrder())};this.addManagedPropertyListener("domLayout",o),this.addManagedPropertyListener("ensureDomOrder",o)},t.prototype.setAnimateFlags=function(e){if(!(this.isSticky()||!e)){var r=D(this.rowNode.oldRowTop),o=this.beans.columnModel.isPinningLeft(),i=this.beans.columnModel.isPinningRight();if(r){if(this.isFullWidth()&&!this.gridOptionsService.is("embedFullWidthRows")){this.slideInAnimation.fullWidth=!0;return}this.slideInAnimation.center=!0,this.slideInAnimation.left=o,this.slideInAnimation.right=i}else{if(this.isFullWidth()&&!this.gridOptionsService.is("embedFullWidthRows")){this.fadeInAnimation.fullWidth=!0;return}this.fadeInAnimation.center=!0,this.fadeInAnimation.left=o,this.fadeInAnimation.right=i}}},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==Xr.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,r=function(u,c){if(!u)return!0;var d=u.rowComp.getFullWidthCellRenderer();if(!d||!d.refresh)return!1;var f=e.createFullWidthParams(u.element,c),p=d.refresh(f);return p},o=r(this.fullWidthGui,null),i=r(this.centerGui,null),a=r(this.leftGui,"left"),s=r(this.rightGui,"right"),l=o&&i&&a&&s;return l},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,ce.EVENT_HEIGHT_CHANGED,function(){return e.onRowHeightChanged()}),this.addManagedListener(this.rowNode,ce.EVENT_ROW_SELECTED,function(){return e.onRowSelected()}),this.addManagedListener(this.rowNode,ce.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,ce.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,ce.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var r=this.beans.eventService;this.addManagedListener(r,_.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(r,_.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(r,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(r,_.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(r,_.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(r,_.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(r,_.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(r,_.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(r,_.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,ce.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(r){return r.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,ce.EVENT_CELL_CHANGED,function(r){e.getAllCellCtrls().forEach(function(o){return o.onCellChanged(r)})})},t.prototype.onRowNodeDataChanged=function(e){var r=this,o=this.isFullWidth()!==!!this.rowNode.isFullWidthCell();if(o){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){var i=this.refreshFullWidth();i||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(function(a){return a.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.allRowGuis.forEach(function(a){r.setRowCompRowId(a.rowComp),r.updateRowBusinessKey(),r.setRowCompRowBusinessKey(a.rowComp)}),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(r){var o=e===g.RowHighlightPosition.Above,i=e===g.RowHighlightPosition.Below;r.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),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=this.rowNode.expanded==!0;this.allRowGuis.forEach(function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",e),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&r),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!r),So(o.element,e&&r)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},t.prototype.getRowPosition=function(){return{rowPinned:ri(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var r=this.allRowGuis.find(function(u){return u.element.contains(e.target)}),o=r?r.element:null,i=o===e.target;if(i){var a=this.rowNode,s=this.beans.focusService.getFocusedCell(),l={rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:s&&s.column};this.beans.navigationService.navigateToNextCell(e,e.key,l,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!(e.defaultPrevented||_o(e))){var r=this.allRowGuis.find(function(s){return s.element.contains(e.target)}),o=r?r.element:null,i=o===e.target,a=null;i||(a=this.beans.focusService.findNextFocusableElement(o,!1,e.shiftKey)),(this.isFullWidth()&&i||!a)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var r,o=this.rowNode,i=e?this.isFullWidth()&&e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned:!1,a=this.fullWidthGui?this.fullWidthGui.element:(r=this.centerGui)===null||r===void 0?void 0:r.element;a&&(a.classList.toggle("ag-full-width-focus",i),i&&a.focus({preventScroll:!0}))},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,r){var o={list:[],map:{}};return e.list.forEach(function(i){i!==r&&(o.list.push(i),o.map[i.getInstanceId()]=i)}),o},t.prototype.onMouseEvent=function(e,r){switch(e){case"dblclick":this.onRowDblClick(r);break;case"click":this.onRowClick(r);break;case"touchstart":case"mousedown":this.onRowMouseDown(r);break}},t.prototype.createRowEvent=function(e,r){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,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(!_o(e)){var r=this.createRowEventWithSource(_.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(r)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=xs(e.target,"ag-row-drag",3),!!this.isFullWidth()){var r=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:r.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:r.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){var r=_o(e)||this.lastMouseDownOnDragger;if(!r){var o=this.createRowEventWithSource(_.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(o);var i=e.ctrlKey||e.metaKey,a=e.shiftKey,s=this.gridOptionsService.is("groupSelectsChildren");if(!(s&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()||this.gridOptionsService.is("suppressRowClickSelection"))){var l=this.gridOptionsService.is("rowMultiSelectWithClick"),u=!this.gridOptionsService.is("suppressRowDeselection"),c="rowClicked";if(this.rowNode.isSelected())l?this.rowNode.setSelectedParams({newValue:!1,event:e,source:c}):i?u&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:c}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!a,rangeSelect:a,event:e,source:c});else{var d=l?!1:!i;this.rowNode.setSelectedParams({newValue:!0,clearSelection:d,rangeSelect:a,event:e,source:c})}}}},t.prototype.setupDetailRowAutoHeight=function(e){var r=this;if(this.rowType===Xr.FullWidthDetail&&this.gridOptionsService.is("detailRowAutoHeight")){var o=function(){var a=e.clientHeight;if(a!=null&&a>0){var s=function(){r.rowNode.setRowHeight(a),r.beans.clientSideRowModel?r.beans.clientSideRowModel.onRowHeightChanged():r.beans.serverSideRowModel&&r.beans.serverSideRowModel.onRowHeightChanged()};r.beans.frameworkOverrides.setTimeout(s,0)}},i=this.beans.resizeObserverService.observeResize(e,o);this.addDestroyFunc(i),o()}},t.prototype.createFullWidthParams=function(e,r){var o=this,i={fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,eGridCell:e,eParentOfValue:e,pinned:r,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(a,s,l,u){return o.addFullWidthRowDragging(a,s,l,u)}};return i},t.prototype.addFullWidthRowDragging=function(e,r,o,i){if(o===void 0&&(o=""),!!this.isFullWidth()){var a=new _g(function(){return o},this.rowNode,void 0,e,r,i);this.createManagedBean(a,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(e===void 0&&(e=!1),!this.stoppingRowEdit){var i=this.getAllCellCtrls(),a=this.editingRow;this.stoppingRowEdit=!0;var s=!1;try{for(var l=Hj(i),u=l.next();!u.done;u=l.next()){var c=u.value,d=c.stopEditing(e);a&&!e&&!s&&d&&(s=!0)}}catch(p){r={error:p}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}if(s){var f=this.createRowEvent(_.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(f)}a&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),r.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var r=e?this.createRowEvent(_.EVENT_ROW_EDITING_STARTED):this.createRowEvent(_.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(r)},t.prototype.startRowEditing=function(e,r,o){if(e===void 0&&(e=null),r===void 0&&(r=null),o===void 0&&(o=null),!this.editingRow){var i=this.getAllCellCtrls().reduce(function(a,s){var l=s===r;return l?s.startEditing(e,l,o):s.startEditing(null,l,o),a?!0:s.isEditing()},!1);i&&this.setEditingRow(!0)}},t.prototype.getAllCellCtrls=function(){if(this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0)return this.centerCellCtrls.list;var e=Pw(Pw(Pw([],xw(this.centerCellCtrls.list)),xw(this.leftCellCtrls.list)),xw(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(e,r){var o=this;e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(r,function(i){return i.rowComp.setUserStyles(o.rowStyles)})},t.prototype.getPinnedForContainer=function(e){var r=e===g.RowContainerType.LEFT?"left":e===g.RowContainerType.RIGHT?"right":null;return r},t.prototype.getInitialRowClasses=function(e){var r=this.getPinnedForContainer(e),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:r};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},t.prototype.processStylesFromGridOptions=function(){var e=this.gridOptionsService.get("rowStyle");if(e&&typeof e=="function"){console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");return}var r=this.gridOptionsService.getCallback("getRowStyle"),o;if(r){var i={data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex};o=r(i)}return o||e?Object.assign({},e,o):this.emptyStyle},t.prototype.onRowSelected=function(e){var r=this,o=!!this.rowNode.isSelected();this.forEachGui(e,function(i){i.rowComp.addOrRemoveCssClass("ag-row-selected",o),Ds(i.element,o?!0:void 0);var a=r.createAriaLabel();Ii(i.element,a??"")})},t.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!(e&&this.gridOptionsService.is("suppressRowDeselection"))){var r=this.beans.localeService.getLocaleTextFunc(),o=r(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.");return o}},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.prototype.addHoverFunctionality=function(e){var r=this;this.active&&(this.addManagedListener(e,"mouseenter",function(){return r.rowNode.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return r.rowNode.onMouseLeave()}),this.addManagedListener(this.rowNode,ce.EVENT_MOUSE_ENTER,function(){!r.beans.dragService.isDragging()&&!r.gridOptionsService.is("suppressRowHoverHighlight")&&(e.classList.add("ag-row-hover"),r.rowNode.setHovered(!0))}),this.addManagedListener(this.rowNode,ce.EVENT_MOUSE_LEAVE,function(){e.classList.remove("ag-row-hover"),r.rowNode.setHovered(!1)}))},t.prototype.roundRowTopToBounds=function(e){var r=this.beans.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature().getVScrollPosition(),i=this.applyPaginationOffset(o.top,!0)-100,a=this.applyPaginationOffset(o.bottom,!0)+100;return Math.min(Math.max(i,e),a)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.forEachGui=function(e,r){e?r(e):this.allRowGuis.forEach(r)},t.prototype.onRowHeightChanged=function(e){if(this.rowNode.rowHeight!=null){var r=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),i=this.gridOptionsService.isGetRowHeightFunction(),a=i?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,s=a?Math.min(o,a)-2+"px":void 0;this.forEachGui(e,function(l){l.element.style.height=r+"px",s&&l.element.style.setProperty("--ag-line-height",s)})}},t.prototype.addEventListener=function(e,r){n.prototype.addEventListener.call(this,e,r)},t.prototype.removeEventListener=function(e,r){n.prototype.removeEventListener.call(this,e,r)},t.prototype.destroyFirstPass=function(){this.active=!1,this.gridOptionsService.isAnimateRows()&&this.setupRemoveAnimation(),this.rowNode.setHovered(!1);var e=this.createRowEvent(_.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(e),this.beans.eventService.dispatchEvent(e),n.prototype.destroy.call(this)},t.prototype.setupRemoveAnimation=function(){if(!this.isSticky()){var e=this.rowNode.rowTop!=null;if(e){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(e){var r=this;this.forEachGui(e,function(o){o.rowComp.addOrRemoveCssClass("ag-row-focus",r.rowFocused),o.rowComp.addOrRemoveCssClass("ag-row-no-focus",!r.rowFocused)})},t.prototype.onCellFocused=function(){this.onCellFocusChanged()},t.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,r){if(r===void 0&&(r=!1),this.rowNode.isRowPinned()||this.rowNode.sticky)return e;var o=this.beans.paginationProxy.getPixelOffset(),i=r?1:-1;return e+o*i},t.prototype.setRowTop=function(e){if(!this.printLayout&&D(e)){var r=this.applyPaginationOffset(e),o=this.rowNode.isRowPinned()||this.rowNode.sticky,i=o?r:this.beans.rowContainerHeightService.getRealPixelPosition(r),a=i+"px";this.setRowTopStyle(a)}},t.prototype.getInitialRowTop=function(e){var r=this.gridOptionsService.is("suppressRowTransform");return r?this.getInitialRowTopShared(e):void 0},t.prototype.getInitialTransform=function(e){var r=this.gridOptionsService.is("suppressRowTransform");return r?void 0:"translateY("+this.getInitialRowTopShared(e)+")"},t.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var r;if(this.isSticky())r=this.rowNode.stickyRowTop;else{var o=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,i=this.applyPaginationOffset(o);r=this.rowNode.isRowPinned()?i:this.beans.rowContainerHeightService.getRealPixelPosition(i)}return r+"px"},t.prototype.setRowTopStyle=function(e){var r=this.gridOptionsService.is("suppressRowTransform");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)}),r!=null||this.getAllCellCtrls().forEach(function(o){o.getColSpanningList().indexOf(e)>=0&&(r=o)}),r},t.prototype.onRowIndexChanged=function(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.getRowIndex=function(){return this.rowNode.getRowIndexString()},t.prototype.updateRowIndexes=function(e){var r=this.rowNode.getRowIndexString(),o=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),i=this.rowNode.rowIndex%2===0,a=o+this.rowNode.rowIndex+1;this.forEachGui(e,function(s){s.rowComp.setRowIndex(r),s.rowComp.addOrRemoveCssClass("ag-row-even",i),s.rowComp.addOrRemoveCssClass("ag-row-odd",!i),AS(s.element,a)})},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),Bj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Wj=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},Uj=function(n){Bj(t,n);function t(e){var r=n.call(this)||this;return r.element=e,r}return t.prototype.postConstruct=function(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()},t.prototype.addKeyboardListeners=function(){var e="keydown",r=this.processKeyboardEvent.bind(this,e);this.addManagedListener(this.element,e,r)},t.prototype.addMouseListeners=function(){var e=this,r=TS("touchstart")?"touchstart":"mousedown",o=["dblclick","contextmenu","mouseover","mouseout","click",r];o.forEach(function(i){var a=e.processMouseEvent.bind(e,i);e.addManagedListener(e.element,i,a)})},t.prototype.processMouseEvent=function(e,r){if(!(!this.mouseEventService.isEventFromThisGrid(r)||_o(r))){var o=this.getRowForEvent(r),i=this.mouseEventService.getRenderedCellForEvent(r);e==="contextmenu"?this.handleContextMenuMouseEvent(r,null,o,i):(i&&i.onMouseEvent(e,r),o&&o.onMouseEvent(e,r))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(Na()){var r=new Zr(this.element),o=function(i){var a=e.getRowForEvent(i.touchEvent),s=e.mouseEventService.getRenderedCellForEvent(i.touchEvent);e.handleContextMenuMouseEvent(null,i.touchEvent,a,s)};this.addManagedListener(r,Zr.EVENT_LONG_TAP,o),this.addDestroyFunc(function(){return r.destroy()})}},t.prototype.getRowForEvent=function(e){for(var r=e.target;r;){var o=this.gridOptionsService.getDomData(r,Ma.DOM_DATA_KEY_ROW_CTRL);if(o)return o;r=r.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,r,o,i){var a=o?o.getRowNode():null,s=i?i.getColumn():null,l=null;if(s){var u=e||r;i.dispatchCellContextMenuEvent(u),l=this.valueService.getValue(s,a)}var c=this.ctrlsService.getGridBodyCtrl(),d=i?i.getGui():c.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,r,a,s,l,d)},t.prototype.getControlsForEventTarget=function(e){return{cellCtrl:vg(this.gridOptionsService,e,ba.DOM_DATA_KEY_CELL_CTRL),rowCtrl:vg(this.gridOptionsService,e,Ma.DOM_DATA_KEY_ROW_CTRL)}},t.prototype.processKeyboardEvent=function(e,r){var o=this.getControlsForEventTarget(r.target),i=o.cellCtrl,a=o.rowCtrl;r.defaultPrevented||(i?this.processCellKeyboardEvent(i,e,r):a&&a.isFullWidth()&&this.processFullWidthRowKeyboardEvent(a,e,r))},t.prototype.processCellKeyboardEvent=function(e,r,o){var i=e.getRowNode(),a=e.getColumn(),s=e.isEditing(),l=!Cg(this.gridOptionsService,o,i,a,s);if(l&&r==="keydown"){var u=!s&&this.navigationService.handlePageScrollingKey(o);u||e.onKeyDown(o),this.doGridOperations(o,e.isEditing()),jg(o)&&e.processCharacter(o)}if(r==="keydown"){var c=e.createEvent(o,_.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(c)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,r,o){var i=e.getRowNode(),a=this.focusService.getFocusedCell(),s=a&&a.column,l=!Cg(this.gridOptionsService,o,i,s,!1);if(l){var u=o.key;if(r==="keydown")switch(u){case O.PAGE_HOME:case O.PAGE_END:case O.PAGE_UP:case O.PAGE_DOWN:this.navigationService.handlePageScrollingKey(o,!0);break;case O.UP:case O.DOWN:e.onKeyboardNavigate(o);break;case O.TAB:e.onTabKeyDown(o);break;default:}}if(r==="keydown"){var c=e.createRowEvent(_.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(c)}},t.prototype.doGridOperations=function(e,r){if(!(!e.ctrlKey&&!e.metaKey)&&!r&&this.mouseEventService.isEventFromThisGrid(e)){var o=n0(e);if(o===O.A)return this.onCtrlAndA(e);if(o===O.C)return this.onCtrlAndC(e);if(o===O.D)return this.onCtrlAndD(e);if(o===O.V)return this.onCtrlAndV(e);if(o===O.X)return this.onCtrlAndX(e);if(o===O.Y)return this.onCtrlAndY();if(o===O.Z)return this.onCtrlAndZ(e)}},t.prototype.onCtrlAndA=function(e){var r=this,o=r.pinnedRowModel,i=r.paginationProxy,a=r.rangeService;if(a&&i.isRowsToRender()){var s=Wj([o.isEmpty("top"),o.isEmpty("bottom")],2),l=s[0],u=s[1],c=l?null:"top",d=void 0,f=void 0;u?(d=null,f=this.paginationProxy.getRowCount()-1):(d="bottom",f=o.getPinnedBottomRowData().length-1);var p=this.columnModel.getAllDisplayedColumns();if(Cn(p))return;a.setCellRange({rowStartIndex:0,rowStartPinned:c,rowEndIndex:f,rowEndPinned:d,columnStart:p[0],columnEnd:Ge(p)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(!(!this.clipboardService||this.gridOptionsService.is("enableCellTextSelection"))){var r=this.getControlsForEventTarget(e.target),o=r.cellCtrl,i=r.rowCtrl;o?.isEditing()||i?.isEditing()||(e.preventDefault(),this.clipboardService.copyToClipboard())}},t.prototype.onCtrlAndX=function(e){if(!(!this.clipboardService||this.gridOptionsService.is("enableCellTextSelection")||this.gridOptionsService.is("suppressCutToClipboard"))){var r=this.getControlsForEventTarget(e.target),o=r.cellCtrl,i=r.rowCtrl;o?.isEditing()||i?.isEditing()||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}},t.prototype.onCtrlAndV=function(e){var r=this.getControlsForEventTarget(e.target),o=r.cellCtrl,i=r.rowCtrl;o?.isEditing()||i?.isEditing()||this.clipboardService&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.clipboardService&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsService.is("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},gn([w("mouseEventService")],t.prototype,"mouseEventService",void 0),gn([w("valueService")],t.prototype,"valueService",void 0),gn([_e("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),gn([w("ctrlsService")],t.prototype,"ctrlsService",void 0),gn([w("navigationService")],t.prototype,"navigationService",void 0),gn([w("focusService")],t.prototype,"focusService",void 0),gn([w("undoRedoService")],t.prototype,"undoRedoService",void 0),gn([w("columnModel")],t.prototype,"columnModel",void 0),gn([w("paginationProxy")],t.prototype,"paginationProxy",void 0),gn([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),gn([_e("rangeService")],t.prototype,"rangeService",void 0),gn([_e("clipboardService")],t.prototype,"clipboardService",void 0),gn([M],t.prototype,"postConstruct",null),t}(F),jj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Bh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},zj=function(n){jj(t,n);function t(e){var r=n.call(this)||this;return r.centerContainerCtrl=e,r}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,_.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().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=this.gridBodyCtrl.getBodyViewportElement(),r=_d(e);if(this.bodyHeight!==r){this.bodyHeight=r;var o={type:_.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)},t.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),r=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,r)},Bh([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Bh([w("columnModel")],t.prototype,"columnModel",void 0),Bh([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Bh([M],t.prototype,"postConstruct",null),t}(F),qj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$j=function(n){qj(t,n);function t(e){var r=n.call(this)||this;return r.element=e,r}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),r=e>0;we(this.element,r),eo(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},pI([w("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),pI([M],t.prototype,"postConstruct",null),t}(F),Kj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Yj=function(n){Kj(t,n);function t(e){var r=n.call(this)||this;return r.element=e,r}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),r=e>0;we(this.element,r),eo(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},hI([w("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),hI([M],t.prototype,"postConstruct",null),t}(F),Xj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},j0=function(n){Xj(t,n);function t(e,r){var o=n.call(this)||this;return o.eContainer=e,o.eViewport=r,o}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),r=e!=null?e+"px":"";this.eContainer.style.height=r,this.eViewport&&(this.eViewport.style.height=r)},gI([w("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),gI([M],t.prototype,"postConstruct",null),t}(F),Qj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ow=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Jj=function(n){Qj(t,n);function t(e){var r=n.call(this)||this;return r.eContainer=e,r}return t.prototype.postConstruct=function(){var e=this;if(!(!this.gridOptionsService.is("enableRangeSelection")||Z(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)})}},Ow([_e("rangeService")],t.prototype,"rangeService",void 0),Ow([w("dragService")],t.prototype,"dragService",void 0),Ow([M],t.prototype,"postConstruct",null),t}(F),Zj=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Lw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},l_=function(n){Zj(t,n);function t(e,r){r===void 0&&(r=!1);var o=n.call(this)||this;return o.callback=e,o.addSpacer=r,o}return t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,_.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,r=this.gridOptionsService.isDomLayout("print"),o=e.getBodyContainerWidth(),i=e.getDisplayedColumnsLeftWidth(),a=e.getDisplayedColumnsRightWidth(),s;if(r)s=o+i+a;else if(s=o,this.addSpacer){var l=this.gridOptionsService.is("enableRtl")?i:a;l===0&&this.scrollVisibleService.isVerticalScrollShowing()&&(s+=this.gridOptionsService.getScrollbarWidth())}this.callback(s)},Lw([w("columnModel")],t.prototype,"columnModel",void 0),Lw([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Lw([M],t.prototype,"postConstruct",null),t}(F),e3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sa=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Wh=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},Uh=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n};(function(n){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"})(g.RowContainerName||(g.RowContainerName={}));(function(n){n.LEFT="left",n.RIGHT="right",n.CENTER="center",n.FULL_WIDTH="fullWidth"})(g.RowContainerType||(g.RowContainerType={}));function z0(n){switch(n){case g.RowContainerName.CENTER:case g.RowContainerName.TOP_CENTER:case g.RowContainerName.STICKY_TOP_CENTER:case g.RowContainerName.BOTTOM_CENTER:return g.RowContainerType.CENTER;case g.RowContainerName.LEFT:case g.RowContainerName.TOP_LEFT:case g.RowContainerName.STICKY_TOP_LEFT:case g.RowContainerName.BOTTOM_LEFT:return g.RowContainerType.LEFT;case g.RowContainerName.RIGHT:case g.RowContainerName.TOP_RIGHT:case g.RowContainerName.STICKY_TOP_RIGHT:case g.RowContainerName.BOTTOM_RIGHT:return g.RowContainerType.RIGHT;case g.RowContainerName.FULL_WIDTH:case g.RowContainerName.TOP_FULL_WIDTH:case g.RowContainerName.STICKY_TOP_FULL_WIDTH:case g.RowContainerName.BOTTOM_FULL_WIDTH:return g.RowContainerType.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}var t3=Da([[g.RowContainerName.CENTER,"ag-center-cols-container"],[g.RowContainerName.LEFT,"ag-pinned-left-cols-container"],[g.RowContainerName.RIGHT,"ag-pinned-right-cols-container"],[g.RowContainerName.FULL_WIDTH,"ag-full-width-container"],[g.RowContainerName.TOP_CENTER,"ag-floating-top-container"],[g.RowContainerName.TOP_LEFT,"ag-pinned-left-floating-top"],[g.RowContainerName.TOP_RIGHT,"ag-pinned-right-floating-top"],[g.RowContainerName.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[g.RowContainerName.STICKY_TOP_CENTER,"ag-sticky-top-container"],[g.RowContainerName.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[g.RowContainerName.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[g.RowContainerName.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[g.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-container"],[g.RowContainerName.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[g.RowContainerName.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[g.RowContainerName.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),r3=Da([[g.RowContainerName.CENTER,"ag-center-cols-viewport"],[g.RowContainerName.TOP_CENTER,"ag-floating-top-viewport"],[g.RowContainerName.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[g.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),u_=function(n){e3(t,n);function t(e){var r=n.call(this)||this;return r.visible=!0,r.EMPTY_CTRLS=[],r.name=e,r.isFullWithContainer=r.name===g.RowContainerName.TOP_FULL_WIDTH||r.name===g.RowContainerName.STICKY_TOP_FULL_WIDTH||r.name===g.RowContainerName.BOTTOM_FULL_WIDTH||r.name===g.RowContainerName.FULL_WIDTH,r}return t.getRowContainerCssClasses=function(e){var r=t3.get(e),o=r3.get(e);return{container:r,viewport:o}},t.getPinned=function(e){switch(e){case g.RowContainerName.BOTTOM_LEFT:case g.RowContainerName.TOP_LEFT:case g.RowContainerName.STICKY_TOP_LEFT:case g.RowContainerName.LEFT:return"left";case g.RowContainerName.BOTTOM_RIGHT:case g.RowContainerName.TOP_RIGHT:case g.RowContainerName.STICKY_TOP_RIGHT:case g.RowContainerName.RIGHT:return"right";default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.embedFullWidthRows=this.gridOptionsService.is("embedFullWidthRows"),this.forContainers([g.RowContainerName.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new zj(e))})},t.prototype.registerWithCtrlsService=function(){switch(this.name){case g.RowContainerName.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case g.RowContainerName.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case g.RowContainerName.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case g.RowContainerName.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case g.RowContainerName.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case g.RowContainerName.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case g.RowContainerName.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case g.RowContainerName.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case g.RowContainerName.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case g.RowContainerName.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case g.RowContainerName.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case g.RowContainerName.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this);break}},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){var i=this;this.comp=e,this.eContainer=r,this.eViewport=o,this.createManagedBean(new Uj(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var a=[g.RowContainerName.TOP_CENTER,g.RowContainerName.TOP_LEFT,g.RowContainerName.TOP_RIGHT],s=[g.RowContainerName.STICKY_TOP_CENTER,g.RowContainerName.STICKY_TOP_LEFT,g.RowContainerName.STICKY_TOP_RIGHT],l=[g.RowContainerName.BOTTOM_CENTER,g.RowContainerName.BOTTOM_LEFT,g.RowContainerName.BOTTOM_RIGHT],u=[g.RowContainerName.CENTER,g.RowContainerName.LEFT,g.RowContainerName.RIGHT],c=Uh(Uh(Uh(Uh([],Wh(a)),Wh(l)),Wh(u)),Wh(s)),d=[g.RowContainerName.CENTER,g.RowContainerName.LEFT,g.RowContainerName.RIGHT,g.RowContainerName.FULL_WIDTH],f=[g.RowContainerName.CENTER,g.RowContainerName.TOP_CENTER,g.RowContainerName.STICKY_TOP_CENTER,g.RowContainerName.BOTTOM_CENTER],p=[g.RowContainerName.LEFT,g.RowContainerName.BOTTOM_LEFT,g.RowContainerName.TOP_LEFT,g.RowContainerName.STICKY_TOP_LEFT],h=[g.RowContainerName.RIGHT,g.RowContainerName.BOTTOM_RIGHT,g.RowContainerName.TOP_RIGHT,g.RowContainerName.STICKY_TOP_RIGHT];this.forContainers(p,function(){i.pinnedWidthFeature=i.createManagedBean(new $j(i.eContainer)),i.addManagedListener(i.eventService,_.EVENT_LEFT_PINNED_WIDTH_CHANGED,function(){return i.onPinnedWidthChanged()})}),this.forContainers(h,function(){i.pinnedWidthFeature=i.createManagedBean(new Yj(i.eContainer)),i.addManagedListener(i.eventService,_.EVENT_RIGHT_PINNED_WIDTH_CHANGED,function(){return i.onPinnedWidthChanged()})}),this.forContainers(d,function(){return i.createManagedBean(new j0(i.eContainer,i.name===g.RowContainerName.CENTER?o:void 0))}),this.forContainers(c,function(){return i.createManagedBean(new Jj(i.eContainer))}),this.forContainers(f,function(){return i.createManagedBean(new l_(function(v){return i.comp.setContainerWidth(v+"px")}))}),hd()&&(this.forContainers([g.RowContainerName.CENTER],function(){var v=i.enableRtl?_.EVENT_LEFT_PINNED_WIDTH_CHANGED:_.EVENT_RIGHT_PINNED_WIDTH_CHANGED;i.addManagedListener(i.eventService,v,function(){return i.refreshPaddingForFakeScrollbar()})}),this.refreshPaddingForFakeScrollbar()),this.addListeners(),this.registerWithCtrlsService()},t.prototype.refreshPaddingForFakeScrollbar=function(){var e=this,r=e.enableRtl,o=e.columnModel,i=e.eContainer,a=r?g.RowContainerName.LEFT:g.RowContainerName.RIGHT;this.forContainers([g.RowContainerName.CENTER,a],function(){var s=o.getContainerWidth(a),l=r?"marginLeft":"marginRight";i.style[l]=s?"16px":"0px"})},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){return e.onDisplayedColumnsChanged()}),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){return e.onDisplayedColumnsWidthChanged()}),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_ROWS_CHANGED,function(r){return e.onDisplayedRowsChanged(r.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this,r=[g.RowContainerName.STICKY_TOP_CENTER,g.RowContainerName.STICKY_TOP_LEFT,g.RowContainerName.STICKY_TOP_RIGHT,g.RowContainerName.STICKY_TOP_FULL_WIDTH],o=r.indexOf(this.name)>=0;if(o){this.comp.setDomOrder(!0);return}var i=function(){var a=e.gridOptionsService.is("ensureDomOrder"),s=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(a||s)};this.addManagedPropertyListener("domLayout",i),i()},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([g.RowContainerName.TOP_CENTER,g.RowContainerName.STICKY_TOP_CENTER,g.RowContainerName.BOTTOM_CENTER],function(){var r=function(){return e.eViewport.scrollLeft=0};e.addManagedListener(e.eViewport,"scroll",r)})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([g.RowContainerName.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([g.RowContainerName.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.addPreventScrollWhileDragging=function(){var e=this,r=function(o){e.dragService.isDragging()&&o.cancelable&&o.preventDefault()};this.eContainer.addEventListener("touchmove",r,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",r)})},t.prototype.onHorizontalViewportChanged=function(e){e===void 0&&(e=!1);var r=this.getCenterWidth(),o=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(r,o,e)},t.prototype.getCenterWidth=function(){return Wg(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return md(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 ka(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return md(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){var e=this.gridOptionsService.is("alwaysShowHorizontalScroll");return e||QD(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(){var e={left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth};return e},t.prototype.setCenterViewportScrollLeft=function(e){yd(this.eViewport,e,this.enableRtl)},t.prototype.isContainerVisible=function(){var e=t.getPinned(this.name);return!e||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},t.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged()),hd()&&this.refreshPaddingForFakeScrollbar()},t.prototype.onDisplayedRowsChanged=function(e){var r=this;if(e===void 0&&(e=!1),this.visible){var o=this.gridOptionsService.isDomLayout("print"),i=function(s){var l=s.isFullWidth(),u=r.embedFullWidthRows||o,c=r.isFullWithContainer?!u&&l:u||!l;return c},a=this.getRowCtrls().filter(i);this.comp.setRowCtrls(a,e)}else this.comp.setRowCtrls(this.EMPTY_CTRLS,!1)},t.prototype.getRowCtrls=function(){switch(this.name){case g.RowContainerName.TOP_CENTER:case g.RowContainerName.TOP_LEFT:case g.RowContainerName.TOP_RIGHT:case g.RowContainerName.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case g.RowContainerName.STICKY_TOP_CENTER:case g.RowContainerName.STICKY_TOP_LEFT:case g.RowContainerName.STICKY_TOP_RIGHT:case g.RowContainerName.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case g.RowContainerName.BOTTOM_CENTER:case g.RowContainerName.BOTTOM_LEFT:case g.RowContainerName.BOTTOM_RIGHT:case g.RowContainerName.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}},Sa([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Sa([w("dragService")],t.prototype,"dragService",void 0),Sa([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Sa([w("columnModel")],t.prototype,"columnModel",void 0),Sa([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Sa([w("animationFrameService")],t.prototype,"animationFrameService",void 0),Sa([w("rowRenderer")],t.prototype,"rowRenderer",void 0),Sa([M],t.prototype,"postConstruct",null),t}(F),n3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),xi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},o3=`<div class="ag-root ag-unselectable" role="treegrid">
<ag-header-root ref="gridHeader"></ag-header-root>
<div class="ag-floating-top" ref="eTop" role="presentation">
<ag-row-container ref="topLeftContainer" name="`+g.RowContainerName.TOP_LEFT+`"></ag-row-container>
<ag-row-container ref="topCenterContainer" name="`+g.RowContainerName.TOP_CENTER+`"></ag-row-container>
<ag-row-container ref="topRightContainer" name="`+g.RowContainerName.TOP_RIGHT+`"></ag-row-container>
<ag-row-container ref="topFullWidthContainer" name="`+g.RowContainerName.TOP_FULL_WIDTH+`"></ag-row-container>
</div>
<div class="ag-body" ref="eBody" role="presentation">
<div class="ag-body-viewport" ref="eBodyViewport" role="presentation">
<ag-row-container ref="leftContainer" name="`+g.RowContainerName.LEFT+`"></ag-row-container>
<ag-row-container ref="centerContainer" name="`+g.RowContainerName.CENTER+`"></ag-row-container>
<ag-row-container ref="rightContainer" name="`+g.RowContainerName.RIGHT+`"></ag-row-container>
<ag-row-container ref="fullWidthContainer" name="`+g.RowContainerName.FULL_WIDTH+`"></ag-row-container>
</div>
<ag-fake-vertical-scroll></ag-fake-vertical-scroll>
</div>
<div class="ag-sticky-top" ref="eStickyTop" role="presentation">
<ag-row-container ref="stickyTopLeftContainer" name="`+g.RowContainerName.STICKY_TOP_LEFT+`"></ag-row-container>
<ag-row-container ref="stickyTopCenterContainer" name="`+g.RowContainerName.STICKY_TOP_CENTER+`"></ag-row-container>
<ag-row-container ref="stickyTopRightContainer" name="`+g.RowContainerName.STICKY_TOP_RIGHT+`"></ag-row-container>
<ag-row-container ref="stickyTopFullWidthContainer" name="`+g.RowContainerName.STICKY_TOP_FULL_WIDTH+`"></ag-row-container>
</div>
<div class="ag-floating-bottom" ref="eBottom" role="presentation">
<ag-row-container ref="bottomLeftContainer" name="`+g.RowContainerName.BOTTOM_LEFT+`"></ag-row-container>
<ag-row-container ref="bottomCenterContainer" name="`+g.RowContainerName.BOTTOM_CENTER+`"></ag-row-container>
<ag-row-container ref="bottomRightContainer" name="`+g.RowContainerName.BOTTOM_RIGHT+`"></ag-row-container>
<ag-row-container ref="bottomFullWidthContainer" name="`+g.RowContainerName.BOTTOM_FULL_WIDTH+`"></ag-row-container>
</div>
<ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
<ag-overlay-wrapper></ag-overlay-wrapper>
</div>`,q0=function(n){n3(t,n);function t(){return n.call(this,o3)||this}return t.prototype.init=function(){var e=this,r=function(i,a){var s=i+"px";a.style.minHeight=s,a.style.height=s},o={setRowAnimationCssOnBodyViewport:function(i,a){return e.setRowAnimationCssOnBodyViewport(i,a)},setColumnCount:function(i){return ND(e.getGui(),i)},setRowCount:function(i){return MD(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,a){return e.addOrRemoveCssClass(i,a)},updateLayoutClasses:function(i,a){var s=[e.eBodyViewport.classList,e.eBody.classList];s.forEach(function(l){l.toggle(g.LayoutCssClasses.AUTO_HEIGHT,a.autoHeight),l.toggle(g.LayoutCssClasses.NORMAL,a.normal),l.toggle(g.LayoutCssClasses.PRINT,a.print)}),e.addOrRemoveCssClass(g.LayoutCssClasses.AUTO_HEIGHT,a.autoHeight),e.addOrRemoveCssClass(g.LayoutCssClasses.NORMAL,a.normal),e.addOrRemoveCssClass(g.LayoutCssClasses.PRINT,a.print)},setAlwaysVerticalScrollClass:function(i,a){return e.eBodyViewport.classList.toggle(W0,a)},registerBodyViewportResizeListener:function(i){var a=e.resizeObserverService.observeResize(e.eBodyViewport,i);e.addDestroyFunc(function(){return a()})},setPinnedTopBottomOverflowY:function(i){return e.eTop.style.overflowY=e.eBottom.style.overflowY=i},setCellSelectableCss:function(i,a){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(s){return s.classList.toggle(i,a)})},setBodyViewportWidth:function(i){return e.eBodyViewport.style.width=i}};this.ctrl=this.createManagedBean(new U0),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||this.gridOptionsService.get("rowSelection")==="multiple")&&bD(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,r){var o=this.eBodyViewport.classList;o.toggle(g.RowAnimationCssClasses.ANIMATION_ON,r),o.toggle(g.RowAnimationCssClasses.ANIMATION_OFF,!r)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},xi([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),xi([_e("rangeService")],t.prototype,"rangeService",void 0),xi([G("eBodyViewport")],t.prototype,"eBodyViewport",void 0),xi([G("eStickyTop")],t.prototype,"eStickyTop",void 0),xi([G("eTop")],t.prototype,"eTop",void 0),xi([G("eBottom")],t.prototype,"eBottom",void 0),xi([G("gridHeader")],t.prototype,"headerRootComp",void 0),xi([G("eBody")],t.prototype,"eBody",void 0),xi([M],t.prototype,"init",null),t}(se),i3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Iw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$0=function(n){i3(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.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){var r=this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing;if(r){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var o={type:_.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Iw([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Iw([M],t.prototype,"postConstruct",null),t=Iw([H("scrollVisibleService")],t),t}(F),a3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},K0=function(n){a3(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.gridInstanceId=e.gridInstanceSequence.next(),r}e=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(r){r[e.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(r){return vg(this.gridOptionsService,r.target,ba.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(r){var o=this.isElementInThisGrid(r.target);return o},t.prototype.isElementInThisGrid=function(r){for(var o=r;o;){var i=o[e.GRID_DOM_KEY];if(D(i)){var a=i===this.gridInstanceId;return a}o=o.parentElement}return!1},t.prototype.getCellPositionForEvent=function(r){var o=this.getRenderedCellForEvent(r);return o?o.getCellPosition():null},t.prototype.getNormalisedPosition=function(r){var o=this.gridOptionsService.isDomLayout("normal"),i=r,a,s;if(i.clientX!=null||i.clientY!=null?(a=i.clientX,s=i.clientY):(a=i.x,s=i.y),o){var l=this.ctrlsService.getGridBodyCtrl(),u=l.getScrollFeature().getVScrollPosition(),c=l.getScrollFeature().getHScrollPosition();a+=c.left,s+=u.top}return{x:a,y:s}};var e;return t.gridInstanceSequence=new As,t.GRID_DOM_KEY="__ag_grid_instance",vI([w("ctrlsService")],t.prototype,"ctrlsService",void 0),t=e=vI([H("mouseEventService")],t),t}(F),s3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Pg=function(){return Pg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Pg.apply(this,arguments)},Kr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Y0=function(n){s3(t,n);function t(){var e=n.call(this)||this;return e.onPageDown=tS(e.onPageDown,100),e.onPageUp=tS(e.onPageUp,100),e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.gridBodyCon=r.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e,r){r===void 0&&(r=!1);var o=e.key,i=e.altKey,a=e.ctrlKey||e.metaKey,s=!!this.rangeService&&e.shiftKey,l=this.mouseEventService.getCellPositionForEvent(e),u=!1;switch(o){case O.PAGE_HOME:case O.PAGE_END:!a&&!i&&(this.onHomeOrEndKey(o),u=!0);break;case O.LEFT:case O.RIGHT:case O.UP:case O.DOWN:if(!l)return!1;a&&!i&&!s&&(this.onCtrlUpDownLeftRight(o,l),u=!0);break;case O.PAGE_DOWN:case O.PAGE_UP:!a&&!i&&(u=this.handlePageUpDown(o,l,r));break}return u&&e.preventDefault(),u},t.prototype.handlePageUpDown=function(e,r,o){return o&&(r=this.focusService.getFocusedCell()),r?(e===O.PAGE_UP?this.onPageUp(r):this.onPageDown(r),!0):!1},t.prototype.navigateTo=function(e){var r=e.scrollIndex,o=e.scrollType,i=e.scrollColumn,a=e.focusIndex,s=e.focusColumn;if(D(i)&&!i.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(i),D(r)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(r,o),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(a),this.focusService.setFocusedCell({rowIndex:a,column:s,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var l={rowIndex:a,rowPinned:null,column:s};this.rangeService.setRangeToCell(l)}},t.prototype.onPageDown=function(e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature().getVScrollPosition(),i=this.getViewportHeight(),a=this.paginationProxy.getPixelOffset(),s=o.top+i,l=this.paginationProxy.getRowIndexAtPixel(s+a);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,l):this.navigateToNextPage(e,l)},t.prototype.onPageUp=function(e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature().getVScrollPosition(),i=this.paginationProxy.getPixelOffset(),a=o.top,s=this.paginationProxy.getRowIndexAtPixel(a+i);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,s,!0):this.navigateToNextPage(e,s,!0)},t.prototype.navigateToNextPage=function(e,r,o){o===void 0&&(o=!1);var i=this.getViewportHeight(),a=this.paginationProxy.getPageFirstRow(),s=this.paginationProxy.getPageLastRow(),l=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getRow(e.rowIndex),c=o?u?.rowHeight-i-l:i-l,d=u?.rowTop+c,f=this.paginationProxy.getRowIndexAtPixel(d+l);if(f===e.rowIndex){var p=o?-1:1;r=f=e.rowIndex+p}var h;o?(h="bottom",f<a&&(f=a),r<a&&(r=a)):(h="top",f>s&&(f=s),r>s&&(r=s)),this.isRowTallerThanView(f)&&(r=f,h="top"),this.navigateTo({scrollIndex:r,scrollType:h,scrollColumn:null,focusIndex:f,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,r,o){var i=this;o===void 0&&(o=!1),this.navigateTo({scrollIndex:r,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column}),setTimeout(function(){var a=i.getNextFocusIndexForAutoHeight(e,o);i.navigateTo({scrollIndex:r,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:a,focusColumn:e.column,isAsync:!0})},50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,r){var o;r===void 0&&(r=!1);for(var i=r?-1:1,a=this.getViewportHeight(),s=this.paginationProxy.getPageLastRow(),l=0,u=e.rowIndex;u>=0&&u<=s;){var c=this.paginationProxy.getRow(u);if(c){var d=(o=c.rowHeight)!==null&&o!==void 0?o:0;if(l+d>a)break;l+=d}u+=i}return Math.max(0,Math.min(u,s))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),r=e.getScrollFeature().getVScrollPosition(),o=this.gridOptionsService.getScrollbarWidth(),i=r.bottom-r.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(i-=o),i},t.prototype.isRowTallerThanView=function(e){var r=this.paginationProxy.getRow(e);if(!r)return!1;var o=r.rowHeight;return typeof o!="number"?!1:o>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,r){var o=this.cellNavigationService.getNextCellToFocus(e,r,!0),i=o.rowIndex,a=o.column;this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:a,focusIndex:i,focusColumn:a})},t.prototype.onHomeOrEndKey=function(e){var r=e===O.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),i=r?o[0]:Ge(o),a=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:a,scrollType:null,scrollColumn:i,focusIndex:a,focusColumn:i})},t.prototype.onTabKeyDown=function(e,r){var o=r.shiftKey,i=this.tabToNextCellCommon(e,o,r);if(i){r.preventDefault();return}if(o){var a=e.getRowPosition(),s=a.rowIndex,l=a.rowPinned,u=l?s===0:s===this.paginationProxy.getPageFirstRow();u&&(this.gridOptionsService.getNum("headerHeight")===0?this.focusService.focusNextGridCoreContainer(!0,!0):(r.preventDefault(),this.focusService.focusPreviousFromFirstCell(r)))}else e instanceof ba&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&r.preventDefault()},t.prototype.tabToNextCell=function(e,r){var o=this.focusService.getFocusedCell();if(!o)return!1;var i=this.getCellByPosition(o);return!i&&(i=this.rowRenderer.getRowByPosition(o),!i||!i.isFullWidth())?!1:this.tabToNextCellCommon(i,e,r)},t.prototype.tabToNextCellCommon=function(e,r,o){var i=e.isEditing();if(!i&&e instanceof ba){var a=e,s=a.getRowCtrl();s&&(i=s.isEditing())}var l;return i?this.gridOptionsService.get("editType")==="fullRow"?l=this.moveToNextEditingRow(e,r,o):l=this.moveToNextEditingCell(e,r,o):l=this.moveToNextCellNotEditing(e,r),l||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,r,o){o===void 0&&(o=null);var i=e.getCellPosition();e.getGui().focus(),e.stopEditing();var a=this.findNextCellToFocusOn(i,r,!0);return a==null?!1:(a.startEditing(null,!0,o),a.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,r,o){o===void 0&&(o=null);var i=e.getCellPosition(),a=this.findNextCellToFocusOn(i,r,!0);if(a==null)return!1;var s=a.getCellPosition(),l=this.isCellEditable(i),u=this.isCellEditable(s),c=s&&i.rowIndex===s.rowIndex&&i.rowPinned===s.rowPinned;if(l&&e.setFocusOutOnEditor(),!c){var d=e.getRowCtrl();d.stopEditing();var f=a.getRowCtrl();f.startRowEditing(void 0,void 0,o)}return u?(a.setFocusInOnEditor(),a.focusCell()):a.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,r){var o=this.columnModel.getAllDisplayedColumns(),i;e instanceof Ma?i=Pg(Pg({},e.getRowPosition()),{column:r?o[0]:Ge(o)}):i=e.getCellPosition();var a=this.findNextCellToFocusOn(i,r,!1);if(a instanceof ba)a.focusCell(!0);else if(a)return this.tryToFocusFullWidthRow(a.getRowPosition(),r);return D(a)},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 a=this.gridOptionsService.getCallback("tabToNextCell");if(D(a)){var s={backwards:r,editing:o,previousCellPosition:e,nextCellPosition:i||null},l=a(s);D(l)?(l.floating&&(ge(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},fromCell:!0}),null}var c=this.gridOptionsService.get("editType")==="fullRow";if(o&&!c){var d=this.isCellEditable(i);if(!d)continue}this.ensureCellVisible(i);var f=this.getCellByPosition(i);if(!f){var p=this.rowRenderer.getRowByPosition(i);if(!p||!p.isFullWidth()||o)continue;return p}if(!f.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(i),f}},t.prototype.isCellEditable=function(e){var r=this.lookupRowNodeForCell(e);return r?e.column.isCellEditable(r):!1},t.prototype.getCellByPosition=function(e){var r=this.rowRenderer.getRowByPosition(e);return r?r.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned==="top"?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned==="bottom"?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,r,o,i){for(var a=o,s=!1;a&&(a===o||!this.isValidNavigateCell(a));)this.gridOptionsService.is("enableRtl")?r===O.LEFT&&(a=this.getLastCellOfColSpan(a)):r===O.RIGHT&&(a=this.getLastCellOfColSpan(a)),a=this.cellNavigationService.getNextCellToFocus(r,a),s=Z(a);if(s&&e&&e.key===O.UP&&(a={rowIndex:-1,rowPinned:null,column:o.column}),i){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(D(l)){var u={key:r,previousCellPosition:o,nextCellPosition:a||null,event:e},c=l(u);D(c)?(c.floating&&(ge(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"),c.rowPinned=c.floating),a={rowPinned:c.rowPinned,rowIndex:c.rowIndex,column:c.column}):a=null}}if(a){if(a.rowIndex<0){var d=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:d+a.rowIndex,column:o.column},event:e||void 0,fromCell:!0});return}var f=this.getNormalisedPosition(a);f?this.focusPosition(f):this.tryToFocusFullWidthRow(a)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var r=this.getCellByPosition(e);return r?(e=r.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,r){r===void 0&&(r=!1);var o=this.columnModel.getAllDisplayedColumns(),i=this.rowRenderer.getRowByPosition(e);if(!i||!i.isFullWidth())return!1;var a=this.focusService.getFocusedCell(),s={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(r?Ge(o):o[0])};this.focusPosition(s);var l=a!=null?this.rowPositionUtils.before(s,a):!1,u={type:_.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:s.column,isFullWidthCell:!0,floating:s.rowPinned,fromBelow:l};return this.eventService.dispatchEvent(u),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){var r=this.rowPositionUtils.getRowNode(e);return!!r},t.prototype.getLastCellOfColSpan=function(e){var r=this.getCellByPosition(e);if(!r)return e;var o=r.getColSpanningList();return o.length===1?e:{rowIndex:e.rowIndex,column:Ge(o),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var r=this.gridOptionsService.isGroupRowsSticky(),o=this.rowModel.getRow(e.rowIndex),i=r&&o?.sticky;!i&&Z(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},Kr([w("mouseEventService")],t.prototype,"mouseEventService",void 0),Kr([w("paginationProxy")],t.prototype,"paginationProxy",void 0),Kr([w("focusService")],t.prototype,"focusService",void 0),Kr([_e("rangeService")],t.prototype,"rangeService",void 0),Kr([w("columnModel")],t.prototype,"columnModel",void 0),Kr([w("rowModel")],t.prototype,"rowModel",void 0),Kr([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Kr([w("rowRenderer")],t.prototype,"rowRenderer",void 0),Kr([w("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Kr([w("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Kr([w("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Kr([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Kr([M],t.prototype,"postConstruct",null),t=Kr([H("navigationService")],t),t}(F),l3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),u3=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},X0=function(n){l3(t,n);function t(e){var r=n.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return r.params=e,r}return t.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,r=this.getGui(),o=this.params,i=function(a){Cg(e.gridOptionsService,a,o.node,o.column,!0)||o.onKeyDown(a)};this.addManagedListener(r,"keydown",i)},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",u3([M],t.prototype,"postConstruct",null),t}(Va),c3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Q0=function(n){c3(t,n);function t(e,r,o,i,a){var s=n.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=e,s.column=r.getColumn(),s.rowNode=r.getRowNode(),s.rowCtrl=r.getRowCtrl(),s.eRow=i,s.cellCtrl=r,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var l=s.getGui();s.forceWrapper=r.isForceWrapper(),s.refreshWrapper(!1);var u=function(f,p){p!=null&&p!=""?l.setAttribute(f,p):l.removeAttribute(f)};bt(l,"gridcell"),u("col-id",r.getColumnIdSanitised());var c=r.getTabIndex();c!==void 0&&u("tabindex",c.toString());var d={addOrRemoveCssClass:function(f,p){return s.addOrRemoveCssClass(f,p)},setUserStyles:function(f){return jS(l,f)},getFocusableElement:function(){return s.getFocusableElement()},setIncludeSelection:function(f){return s.includeSelection=f},setIncludeRowDrag:function(f){return s.includeRowDrag=f},setIncludeDndSource:function(f){return s.includeDndSource=f},setRenderDetails:function(f,p,h){return s.setRenderDetails(f,p,h)},setEditDetails:function(f,p,h){return s.setEditDetails(f,p,h)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return r.setComp(d,s.getGui(),s.eCellWrapper,o,a),s}return t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,r,o){var i=this.cellEditor&&!this.cellEditorPopupWrapper;if(!i){this.firstRender=this.firstRender==null;var a=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e){var s=o||a,l=s?!1:this.refreshCellRenderer(e);l||(this.destroyRenderer(),this.createCellRendererInstance(e))}else this.destroyRenderer(),this.insertValueWithoutCellRenderer(r)}},t.prototype.setEditDetails=function(e,r,o){e?this.createCellEditorInstance(e,r,o):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var r=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=r||this.forceWrapper,i=o&&this.eCellWrapper==null;i&&(this.eCellWrapper=tr('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var a=!o&&this.eCellWrapper!=null;a&&(Oi(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var s=!e&&o,l=s&&this.eCellValue==null;l&&(this.eCellValue=tr('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var u=!s&&this.eCellValue!=null;u&&(Oi(this.eCellValue),this.eCellValue=void 0);var c=i||a||l||u;return c&&this.removeControls(),e||r&&this.addControls(),c},t.prototype.addControls=function(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},t.prototype.createCellEditorInstance=function(e,r,o){var i=this,a=this.editorVersion,s=e.newAgStackInstance();if(s){var l=e.params;s.then(function(c){return i.afterCellEditorCreated(a,c,l,r,o)});var u=Z(this.cellEditor);u&&l.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var r=this.getParentOfValue();vr(r);var o=e!=null?xt(e):null;o!=null&&(r.innerHTML=o)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),Oi(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),Oi(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==e.componentClass)return!1;var r=this.cellRenderer.refresh(e.params);return r===!0||r===void 0},t.prototype.createCellRendererInstance=function(e){var r=this,o=this.beans.gridOptionsService.is("suppressAnimationFrame"),i=!o,a=this.rendererVersion,s=e.componentClass,l=function(){var u=r.rendererVersion!==a||!r.isAlive();if(!u){var c=e.newAgStackInstance(),d=r.afterCellRendererCreated.bind(r,a,s);c&&c.then(d)}};i&&this.firstRender?this.beans.animationFrameService.createTask(l,this.rowNode.rowIndex,"createTasksP2"):l()},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,r,o){var i=!this.isAlive()||e!==this.rendererVersion;if(i){this.beans.context.destroyBean(o);return}if(this.cellRenderer=o,this.cellRendererClass=r,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){var a=this.getParentOfValue();vr(a),a.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,r,o,i,a){var s=e!==this.editorVersion;if(s){this.beans.context.destroyBean(r);return}var l=r.isCancelBeforeStart&&r.isCancelBeforeStart();if(l){this.beans.context.destroyBean(r),this.cellCtrl.stopEditing(!0);return}if(!r.getGui){console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),this.beans.context.destroyBean(r);return}this.cellEditor=r,this.cellEditorGui=r.getGui();var u=i||r.isPopup!==void 0&&r.isPopup();u?this.addPopupCellEditor(o,a):this.addInCellEditor(),this.refreshEditStyles(!0,u),r.afterGuiAttached&&r.afterGuiAttached()},t.prototype.refreshEditStyles=function(e,r){var o;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!r),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!r),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!r),(o=this.rowCtrl)===null||o===void 0||o.setInlineEditingCss(e)},t.prototype.addInCellEditor=function(){var e=this.getGui(),r=this.beans.gridOptionsService.getDocument();if(e.contains(r.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui){var o=this.getParentOfValue();o.appendChild(this.cellEditorGui)}},t.prototype.addPopupCellEditor=function(e,r){var o=this;this.beans.gridOptionsService.get("editType")==="fullRow"&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var i=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new X0(e));var a=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&a.appendChild(this.cellEditorGui);var s=this.beans.popupService,l=this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"),u=r??(i.getPopupPosition?i.getPopupPosition():"over"),c=this.beans.gridOptionsService.is("enableRtl"),d={ePopup:a,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:u,alignSide:c?"right":"left",keepWithinBounds:!0},f=s.positionPopupByComponent.bind(s,d),p=this.beans.localeService.getLocaleTextFunc(),h=s.addPopup({modal:l,eChild:a,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:f,ariaLabel:p("ariaLabelCellEditor","Cell Editor")});h&&(this.hideEditorPopup=h.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),n.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),r=this.beans.gridOptionsService.getDocument();e.contains(r.activeElement)&&Bg()&&e.focus({preventScroll:!0}),vr(this.getParentOfValue())},t}(se),d3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),f3=function(n){d3(t,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(o)+'"/>');var a=i.getGui(),s=a.style;i.domOrder=i.rowCtrl.getDomOrder(),bt(a,"row");var l=i.rowCtrl.getTabIndex();l!=null&&a.setAttribute("tabindex",l.toString());var u={setDomOrder:function(c){return i.domOrder=c},setCellCtrls:function(c){return i.setCellCtrls(c)},showFullWidth:function(c){return i.showFullWidth(c)},getFullWidthCellRenderer:function(){return i.getFullWidthCellRenderer()},addOrRemoveCssClass:function(c,d){return i.addOrRemoveCssClass(c,d)},setUserStyles:function(c){return jS(a,c)},setTop:function(c){return s.top=c},setTransform:function(c){return s.transform=c},setRowIndex:function(c){return a.setAttribute("row-index",c)},setRowId:function(c){return a.setAttribute("row-id",c)},setRowBusinessKey:function(c){return a.setAttribute("row-business-key",c)}};return e.setComp(u,i.getGui(),o),i.addDestroyFunc(function(){e.unsetComp(o)}),i}return t.prototype.getInitialStyle=function(e){var r=this.rowCtrl.getInitialTransform(e),o=this.rowCtrl.getInitialRowTop(e);return r?"transform: "+r:"top: "+o},t.prototype.showFullWidth=function(e){var r=this,o=function(a){if(r.isAlive()){var s=a.getGui();r.getGui().appendChild(s),r.rowCtrl.setupDetailRowAutoHeight(s),r.setFullWidthRowComp(a)}else r.beans.context.destroyBean(a)},i=e.newAgStackInstance();i&&i.then(o)},t.prototype.setCellCtrls=function(e){var r=this,o=Object.assign({},this.cellComps);e.forEach(function(a){var s=a.getInstanceId(),l=r.cellComps[s];l==null?r.newCellComp(a):o[s]=null});var i=oi(o).filter(function(a){return a!=null});this.destroyCells(i),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var r=this;if(this.domOrder){var o=[];e.forEach(function(i){var a=r.cellComps[i.getInstanceId()];a&&o.push(a.getGui())}),US(this.getGui(),o)}},t.prototype.newCellComp=function(e){var r=new Q0(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=oi(this.cellComps).filter(function(r){return r!=null});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var r=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){r.fullWidthCellRenderer=r.beans.context.destroyBean(r.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var r=this;e.forEach(function(o){if(o){var i=o.getCtrl().getInstanceId();r.cellComps[i]===o&&(o.detach(),o.destroy(),r.cellComps[i]=null)}})},t}(se),p3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),wS=function(){return wS=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},wS.apply(this,arguments)},Uc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};function h3(){var n=se.elementGettingCreated.getAttribute("name"),t=u_.getRowContainerCssClasses(n),e,r=n===g.RowContainerName.CENTER||n===g.RowContainerName.TOP_CENTER||n===g.RowContainerName.STICKY_TOP_CENTER||n===g.RowContainerName.BOTTOM_CENTER;return r?e='<div class="'+t.viewport+`" ref="eViewport" role="presentation">
<div class="`+t.container+`" ref="eContainer"></div>
</div>`:e='<div class="'+t.container+'" ref="eContainer"></div>',e}var J0=function(n){p3(t,n);function t(){var e=n.call(this,h3())||this;return e.rowComps={},e.name=se.elementGettingCreated.getAttribute("name"),e.type=z0(e.name),e}return 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}},o=this.createManagedBean(new u_(this.name));o.setComp(r,this.eContainer,this.eViewport)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var r=this,o=wS({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;var i=function(a){var s=a.getInstanceId(),l=o[s];if(l)r.rowComps[s]=l,delete o[s],r.ensureDomOrder(l.getGui());else{if(!a.getRowNode().displayed)return;var u=new f3(a,r.beans,r.type);r.rowComps[s]=u,r.appendRow(u.getGui())}};e.forEach(i),oi(o).forEach(function(a){r.eContainer.removeChild(a.getGui()),a.destroy()}),bt(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?XD(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(WS(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},Uc([w("beans")],t.prototype,"beans",void 0),Uc([G("eViewport")],t.prototype,"eViewport",void 0),Uc([G("eContainer")],t.prototype,"eContainer",void 0),Uc([M],t.prototype,"postConstruct",null),Uc([Mt],t.prototype,"preDestroy",null),t}(se),mI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Z0=function(){function n(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return n.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsService.is("functionsReadOnly")){var r=t.dragItem.columns;r&&r.forEach(function(o){o.isPrimary()&&(o.isAnyFunctionActive()||(o.isAllowValue()?e.columnsToAggregate.push(o):o.isAllowRowGroup()?e.columnsToGroup.push(o):o.isAllowPivot()&&e.columnsToPivot.push(o)))})}},n.prototype.getIconName=function(){var t=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return t>0?this.pinned?Ft.ICON_PINNED:Ft.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")},mI([w("columnModel")],n.prototype,"columnModel",void 0),mI([w("gridOptionsService")],n.prototype,"gridOptionsService",void 0),n}(),jc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},g3=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},eA=function(){function n(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=t,this.eContainer=e,this.centerContainer=!D(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?Ft.ICON_PINNED:Ft.ICON_MOVE},n.prototype.onDragEnter=function(t){var e=t.dragItem.columns,r=t.dragSource.type===g.DragSourceType.ToolPanel;if(r)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var o=t.dragItem.visibleState,i=(e||[]).filter(function(a){return o[a.getId()]});this.setColumnsVisible(i,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},n.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},n.prototype.setColumnsVisible=function(t,e,r){if(r===void 0&&(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(r===void 0&&(r="api"),t){var o=t.filter(function(i){return!i.getColDef().lockPinned});this.columnModel.setColumnsPinned(o,e,r)}},n.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},n.prototype.normaliseX=function(t){if(this.gridOptionsService.is("enableRtl")){var e=this.eContainer.clientWidth;t=e-t}return 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.gridOptionsService.is("enableRtl")?(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,o){var i=this,a;if(t===void 0&&(t=this.lastDraggingEvent),e===void 0&&(e=!1),r===void 0&&(r=!1),o===void 0&&(o=!1),o){if(this.lastMovedInfo){var s=this.lastMovedInfo,l=s.columns,u=s.toIndex;this.moveColumns(l,u,"uiColumnMoved",!0)}return}if(this.lastDraggingEvent=t,!Z(t.hDirection)){var c=this.normaliseX(t.x);e||this.checkCenterForScrolling(c);var d=this.normaliseDirection(t.hDirection),f=t.dragSource.type,p=((a=t.dragSource.getDragItem().columns)===null||a===void 0?void 0:a.filter(function(h){return h.getColDef().lockPinned?h.getPinned()==i.pinned:!0}))||[];this.attemptMoveColumns({dragSourceType:f,allMovingColumns:p,hDirection:d,mouseX:c,fromEnter:e,fakeEvent:r})}},n.prototype.normaliseDirection=function(t){if(this.gridOptionsService.is("enableRtl"))switch(t){case g.HorizontalDirection.Left:return g.HorizontalDirection.Right;case g.HorizontalDirection.Right:return g.HorizontalDirection.Left;default:console.error("AG Grid: Unknown direction "+t)}else return t},n.prototype.attemptMoveColumns=function(t){var e=t.dragSourceType,r=t.hDirection,o=t.mouseX,i=t.fromEnter,a=t.fakeEvent,s=r===g.HorizontalDirection.Left,l=r===g.HorizontalDirection.Right,u=t.allMovingColumns;if(e===g.DragSourceType.HeaderCell){var c=[];u.forEach(function(T){for(var L,I=null,b=T.getParent();b!=null&&b.getDisplayedLeafColumns().length===1;)I=b,b=b.getParent();if(I!=null){var W=!!(!((L=I.getColGroupDef())===null||L===void 0)&&L.marryChildren),Y=W?I.getProvidedColumnGroup().getLeafColumns():I.getLeafColumns();Y.forEach(function(ue){c.includes(ue)||c.push(ue)})}else c.includes(T)||c.push(T)}),u=c}var d=u.slice();this.columnModel.sortColumnsLikeGridColumns(d);var f=this.calculateValidMoves(d,l,o),p=this.calculateOldIndex(d);if(f.length!==0){var h=f[0],v=p!==null&&!i;if(e==g.DragSourceType.HeaderCell&&(v=p!==null),!(v&&!a&&(s&&h>=p||l&&h<=p))){for(var C=this.columnModel.getAllDisplayedColumns(),m=[],y=null,S=0;S<f.length;S++){var E=f[S],R=this.columnModel.getProposedColumnOrder(d,E);if(this.columnModel.doesOrderPassRules(R)){var x=R.filter(function(T){return C.includes(T)});if(y===null)y=x;else if(!Q.areEqual(x,y))break;var P=this.groupFragCount(R);m.push({move:E,fragCount:P})}}m.length!==0&&(m.sort(function(T,L){return T.fragCount-L.fragCount}),this.moveColumns(u,m[0].move,"uiColumnMoved",!1))}}},n.prototype.calculateOldIndex=function(t){var e=this.columnModel.getAllGridColumns(),r=lD(t.map(function(l){return e.indexOf(l)})),o=r[0],i=Ge(r),a=i-o,s=a!==r.length-1;return s?null:o},n.prototype.moveColumns=function(t,e,r,o){this.columnModel.moveColumns(t,e,r,o),this.lastMovedInfo=o?null:{columns:t,toIndex:e}},n.prototype.groupFragCount=function(t){function e(a){for(var s=[],l=a.getOriginalParent();l!=null;)s.push(l),l=l.getOriginalParent();return s}for(var r=0,o=function(a){var s,l=e(t[a]),u=e(t[a+1]);s=g3(l.length>u.length?[l,u]:[u,l],2),l=s[0],u=s[1],l.forEach(function(c){u.indexOf(c)===-1&&r++})},i=0;i<t.length-1;i++)o(i);return r},n.prototype.calculateValidMoves=function(t,e,r){var o=this.gridOptionsService.is("suppressMovableColumns")||t.some(function(P){return P.getColDef().suppressMovable});if(o)return[];var i=this.columnModel.getDisplayedColumns(this.pinned),a=this.columnModel.getAllGridColumns(),s=i.filter(function(P){return Jn(t,P)}),l=i.filter(function(P){return!Jn(t,P)}),u=a.filter(function(P){return!Jn(t,P)}),c=0,d=r;if(e){var f=0;s.forEach(function(P){return f+=P.getActualWidth()}),d-=f}if(d>0){for(var p=0;p<l.length;p++){var h=l[p];if(d-=h.getActualWidth(),d<0)break;c++}e&&c++}var v;if(c>0){var C=l[c-1];v=u.indexOf(C)+1}else v=u.indexOf(l[0]),v===-1&&(v=0);var m=[v],y=function(P,T){return P-T};if(e){for(var S=v+1,E=a.length-1;S<=E;)m.push(S),S++;m.sort(y)}else{for(var S=v,E=a.length-1,R=a[S];S<=E&&this.isColumnHidden(i,R);)S++,m.push(S),R=a[S];S=v-1;for(var x=0;S>=x;)m.push(S),S--;m.sort(y).reverse()}return m},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.needToMoveLeft?this.dragAndDropService.setGhostIcon(Ft.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Ft.ICON_RIGHT,!0))},n.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Ft.ICON_MOVE))},n.prototype.moveInterval=function(){var t;this.intervalCount++,t=10+this.intervalCount*5,t>100&&(t=100);var e=null,r=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=r.scrollHorizontally(-t):this.needToMoveRight&&(e=r.scrollHorizontally(t)),e!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns,i=o.filter(function(s){return!s.getColDef().lockPinned});if(i.length>0&&(this.dragAndDropService.setGhostIcon(Ft.ICON_PINNED),this.failedMoveAttempts>7)){var a=this.needToMoveLeft?"left":"right";this.setColumnsPinned(i,a,"uiColumnDragged"),this.dragAndDropService.nudge()}}},jc([w("columnModel")],n.prototype,"columnModel",void 0),jc([w("dragAndDropService")],n.prototype,"dragAndDropService",void 0),jc([w("gridOptionsService")],n.prototype,"gridOptionsService",void 0),jc([w("ctrlsService")],n.prototype,"ctrlsService",void 0),jc([M],n.prototype,"init",null),n}(),v3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tA=function(n){v3(t,n);function t(e,r){var o=n.call(this)||this;return o.pinned=e,o.eContainer=r,o}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){switch(e.pinned){case"left":e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.leftRowContainerCtrl.getContainerElement()],[r.bottomLeftRowContainerCtrl.getContainerElement()],[r.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.rightRowContainerCtrl.getContainerElement()],[r.bottomRightRowContainerCtrl.getContainerElement()],[r.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.centerRowContainerCtrl.getViewportElement()],[r.bottomCenterRowContainerCtrl.getViewportElement()],[r.topCenterRowContainerCtrl.getViewportElement()]];break}})},t.prototype.isInterestedIn=function(e){return e===g.DragSourceType.HeaderCell||e===g.DragSourceType.ToolPanel&&this.gridOptionsService.is("allowDragFromColumnsToolPanel")},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new eA(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Z0(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===g.DragSourceType.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)},zc([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),zc([w("columnModel")],t.prototype,"columnModel",void 0),zc([w("ctrlsService")],t.prototype,"ctrlsService",void 0),zc([M],t.prototype,"postConstruct",null),zc([M],t.prototype,"init",null),t}(F),m3=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},y3=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},c_=function(){function n(){}return n.getHeaderClassesFromColDef=function(t,e,r,o){return Z(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,r,o)},n.getToolPanelClassesFromColDef=function(t,e,r,o){return Z(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.api,columnApi:e.columnApi,context:e.context}},n.getColumnClassesFromCollDef=function(t,e,r,o,i){if(Z(t))return[];var a;if(typeof t=="function"){var s=this.getClassParams(e,r,o,i);a=t(s)}else a=t;return typeof a=="string"?[a]:Array.isArray(a)?y3([],m3(a)):[]},n}(),C3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),jh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},w3=function(n){C3(t,n);function t(e){var r=n.call(this,t.TEMPLATE,e)||this;return r.headerCompVersion=0,r.column=e.getColumnGroupChild(),r.pinned=e.getPinned(),r}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=function(s,l){l!=null&&l!=""?r.setAttribute(s,l):r.removeAttribute(s)};o("col-id",this.column.getColId());var i={setWidth:function(s){return r.style.width=s},addOrRemoveCssClass:function(s,l){return e.addOrRemoveCssClass(s,l)},setAriaDescription:function(s){return LD(r,s)},setAriaSort:function(s){return s?kD(r,s):HD(r)},setUserCompDetails:function(s){return e.setUserCompDetails(s)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper);var a=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",a)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var r=this;this.headerCompVersion++;var o=this.headerCompVersion;e.newAgStackInstance().then(function(i){return r.afterCompCreated(o,i)})},t.prototype.afterCompCreated=function(e,r){if(e!=this.headerCompVersion||!this.isAlive()){this.destroyBean(r);return}this.destroyHeaderComp(),this.headerComp=r,this.headerCompGui=r.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())},t.TEMPLATE=`<div class="ag-header-cell" role="columnheader" tabindex="-1">
<div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
<div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
</div>`,jh([G("eResize")],t.prototype,"eResize",void 0),jh([G("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),jh([M],t.prototype,"postConstruct",null),jh([Mt],t.prototype,"destroyHeaderComp",null),t}(i_),S3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Dw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_3=function(n){S3(t,n);function t(e){return n.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=function(a,s){return s!=null?r.setAttribute(a,s):r.removeAttribute(a)};r.setAttribute("col-id",this.ctrl.getColId());var i={addOrRemoveCssClass:function(a,s){return e.addOrRemoveCssClass(a,s)},setResizableDisplayed:function(a){return we(e.eResize,a)},setWidth:function(a){return r.style.width=a},setAriaExpanded:function(a){return o("aria-expanded",a)},setUserCompDetails:function(a){return e.setUserCompDetails(a)}};this.ctrl.setComp(i,r,this.eResize)},t.prototype.setUserCompDetails=function(e){var r=this;e.newAgStackInstance().then(function(o){return r.afterHeaderCompCreated(o)})},t.prototype.afterHeaderCompCreated=function(e){var r=this,o=function(){return r.destroyBean(e)};if(!this.isAlive()){o();return}var i=this.getGui(),a=e.getGui();i.appendChild(a),this.addDestroyFunc(o),this.ctrl.setDragSource(i)},t.TEMPLATE=`<div class="ag-header-group-cell" role="columnheader" tabindex="-1">
<div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
</div>`,Dw([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Dw([G("eResize")],t.prototype,"eResize",void 0),Dw([M],t.prototype,"postConstruct",null),t}(i_),E3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){n.COLUMN_GROUP="group",n.COLUMN="column",n.FLOATING_FILTER="filter"})(g.HeaderRowType||(g.HeaderRowType={}));var rA=function(n){E3(t,n);function t(e){var r=n.call(this)||this;return r.headerComps={},r.ctrl=e,r.setTemplate('<div class="'+r.ctrl.getHeaderRowClass()+'" role="row"></div>'),r}return t.prototype.init=function(){var e=this;this.getGui().style.transform=this.ctrl.getTransform(),AS(this.getGui(),this.ctrl.getAriaRowIndex());var r={setHeight:function(o){return e.getGui().style.height=o},setTop:function(o){return e.getGui().style.top=o},setHeaderCtrls:function(o,i){return e.setHeaderCtrls(o,i)},setWidth:function(o){return e.getGui().style.width=o}};this.ctrl.setComp(r)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([],!1)},t.prototype.setHeaderCtrls=function(e,r){var o=this;if(this.isAlive()){var i=this.headerComps;if(this.headerComps={},e.forEach(function(l){var u=l.getInstanceId(),c=i[u];delete i[u],c==null&&(c=o.createHeaderComp(l),o.getGui().appendChild(c.getGui())),o.headerComps[u]=c}),st(i,function(l,u){o.getGui().removeChild(u.getGui()),o.destroyBean(u)}),r){var a=oi(this.headerComps);a.sort(function(l,u){var c=l.getCtrl().getColumnGroupChild().getLeft(),d=u.getCtrl().getColumnGroupChild().getLeft();return c-d});var s=a.map(function(l){return l.getGui()});US(this.getGui(),s)}}},t.prototype.createHeaderComp=function(e){var r;switch(this.ctrl.getType()){case g.HeaderRowType.COLUMN_GROUP:r=new _3(e);break;case g.HeaderRowType.FLOATING_FILTER:r=new B0(e);break;default:r=new w3(e);break}return this.createBean(r),r.setParentComponent(this),r},yI([M],t.prototype,"init",null),yI([Mt],t.prototype,"destroyHeaderCtrls",null),t}(se),R3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Aw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},T3=0,Td=function(n){R3(t,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()+"-"+T3++,o}return t.prototype.shouldStopEventPropagation=function(e){var r=this.focusService.getFocusedHeader(),o=r.headerRowIndex,i=r.column;return r0(this.gridOptionsService,e,o,i)},t.prototype.getWrapperHasFocus=function(){var e=this.gridOptionsService.getDocument(),r=e.activeElement;return r===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var r=this.getWrapperHasFocus();switch(e.key){case O.PAGE_DOWN:case O.PAGE_UP:case O.PAGE_HOME:case O.PAGE_END:r&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,r=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,r,this),this.addDestroyFunc(function(){return e.gridOptionsService.setDomData(e.eGui,r,null)})},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return this.eGui?(this.lastFocusEvent=e||null,this.eGui.focus(),!0):!1},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Aw([w("focusService")],t.prototype,"focusService",void 0),Aw([w("beans")],t.prototype,"beans",void 0),Aw([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(F),x3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),P3=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Zg=function(n){x3(t,n);function t(e,r,o,i){var a=n.call(this)||this;return a.columnOrGroup=e,a.eCell=r,a.ariaEl=a.eCell.querySelector("[role=columnheader]")||a.eCell,a.colsSpanning=i,a.beans=o,a}return t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?Ge(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,Ne.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.is("suppressColumnMoveAnimation"),r=D(this.columnOrGroup.getOldLeft()),o=this.beans.columnAnimationService.isActive()&&r&&!e;o?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,r=this.getColumnOrGroup(),o=r.getLeft(),i=r.getOldLeft(),a=this.modifyLeftForPrintLayout(r,i),s=this.modifyLeftForPrintLayout(r,o);this.setLeft(a),this.actualLeft=s,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===s&&e.setLeft(s)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),r=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,r),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,r){var o=this.beans.gridOptionsService.isDomLayout("print");if(!o||e.getPinned()==="left")return r;var i=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(e.getPinned()==="right"){var a=this.beans.columnModel.getBodyContainerWidth();return i+a+r}return i+r},t.prototype.setLeft=function(e){D(e)&&(this.eCell.style.left=e+"px");var r;if(this.columnOrGroup instanceof Ne)r=this.columnOrGroup;else{var o=this.columnOrGroup,i=o.getLeafColumns();if(!i.length)return;i.length>1&&GD(this.ariaEl,i.length),r=i[0]}var a=this.beans.columnModel.getAriaColumnIndex(r);FS(this.ariaEl,a)},P3([M],t.prototype,"postConstruct",null),t}(F),O3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),CI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},d_=function(n){O3(t,n);function t(e,r){var o=n.call(this)||this;return o.columns=e,o.element=r,o}return t.prototype.postConstruct=function(){this.gridOptionsService.is("columnHoverHighlight")&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},CI([w("columnHoverService")],t.prototype,"columnHoverService",void 0),CI([M],t.prototype,"postConstruct",null),t}(F),L3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Fw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},nA=function(n){L3(t,n);function t(e,r){var o=n.call(this,e,r)||this;return o.iconCreated=!1,o.column=e,o}return t.prototype.setComp=function(e,r,o,i){n.prototype.setGui.call(this,r),this.comp=e,this.eButtonShowMainFilter=o,this.eFloatingFilterBody=i,this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,Ne.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))},t.prototype.setupActive=function(){var e=this.column.getColDef(),r=!!e.filter,o=!!e.floatingFilter;this.active=r&&o},t.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!(!this.active||this.iconCreated)){var e=_t("filter",this.gridOptionsService,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}},t.prototype.setupFocus=function(){this.createManagedBean(new Di(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.setupAria=function(){var e=this.localeService.getLocaleTextFunc();Ii(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))},t.prototype.onTabKeyDown=function(e){var r=this.gridOptionsService.getDocument(),o=r.activeElement,i=o===this.eGui;if(!i){var a=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(a){this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),a.focus();return}var s=this.findNextColumnWithFloatingFilter(e.shiftKey);s&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:s},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var r=this.beans.columnModel,o=this.column;do if(o=e?r.getDisplayedColBefore(o):r.getDisplayedColAfter(o),!o)break;while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},t.prototype.handleKeyDown=function(e){n.prototype.handleKeyDown.call(this,e);var r=this.getWrapperHasFocus();switch(e.key){case O.UP:case O.DOWN:r||e.preventDefault();case O.LEFT:case O.RIGHT:if(r)return;e.stopPropagation();case O.ENTER:r&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case O.ESCAPE:r||this.eGui.focus()}},t.prototype.onFocusIn=function(e){var r=this.eGui.contains(e.relatedTarget);if(!r){var o=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),i=!!e.relatedTarget&&xs(e.relatedTarget,"ag-floating-filter");if(o&&i&&e.target===this.eGui){var a=this.lastFocusEvent,s=!!(a&&a.key===O.TAB);if(a&&s){var l=a.shiftKey;this.focusService.focusInto(this.eGui,l)}}var u=this.getRowIndex();this.beans.focusService.setFocusedHeader(u,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new d_([this.column],this.eGui));var r=function(){if(e.gridOptionsService.is("columnHoverHighlight")){var o=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",o)}};this.addManagedListener(this.eventService,_.EVENT_COLUMN_HOVER_CHANGED,r),r()},t.prototype.setupLeft=function(){var e=new Zg(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupFilterButton=function(){var e=this.column.getColDef();this.suppressFilterButton=e.floatingFilterComponentParams?!!e.floatingFilterComponentParams.suppressFilterButton:!1},t.prototype.setupUserComp=function(){var e=this;if(this.active){var r=this.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()});r&&this.setCompDetails(r)}},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setCompDetails(e)},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var r=function(o){var i=e.comp.getFloatingFilterComp();i&&i.then(function(a){if(a){var s=e.filterManager.getCurrentFloatingFilterParentModel(e.column);a.onParentModelChanged(s,o)}})};this.destroySyncListener=this.addManagedListener(this.column,Ne.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,Ne.EVENT_WIDTH_CHANGED,r),r()},t.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,Ne.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)))},t.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},t.prototype.onColDefChanged=function(){var e=this,r,o,i=this.active;this.setupActive();var a=!i&&this.active;i&&!this.active&&((r=this.destroySyncListener)===null||r===void 0||r.call(this),(o=this.destroyFilterChangedListener)===null||o===void 0||o.call(this));var s=this.active?this.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()}):null,l=this.comp.getFloatingFilterComp();!l||!s?this.updateCompDetails(s,a):l.then(function(u){var c;!u||e.filterManager.areFilterCompsDifferent((c=e.userCompDetails)!==null&&c!==void 0?c:null,s)?e.updateCompDetails(s,a):e.updateFloatingFilterParams(s)})},t.prototype.updateCompDetails=function(e,r){this.setCompDetails(e),this.setupFilterButton(),this.setupUi(),r&&(this.setupSyncWithFilter(),this.setupFilterChangedListener())},t.prototype.updateFloatingFilterParams=function(e){var r;if(e){var o=e.params;(r=this.comp.getFloatingFilterComp())===null||r===void 0||r.then(function(i){i?.onParamsUpdated&&typeof i.onParamsUpdated=="function"&&i.onParamsUpdated(o)})}},Fw([w("filterManager")],t.prototype,"filterManager",void 0),Fw([w("columnHoverService")],t.prototype,"columnHoverService",void 0),Fw([w("menuFactory")],t.prototype,"menuFactory",void 0),t}(Td),I3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),bw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},D3=function(n){I3(t,n);function t(e,r,o,i,a){var s=n.call(this)||this;return s.pinned=e,s.column=r,s.eResize=o,s.comp=i,s.ctrl=a,s}return t.prototype.postConstruct=function(){var e=this,r=this.column.getColDef(),o=[],i,a,s=function(){if(we(e.eResize,i),!!i){var c=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(c),a){var d=e.gridOptionsService.is("skipHeaderOnAutoSize"),f=function(){e.columnModel.autoSizeColumn(e.column,d,"uiColumnResized")};e.eResize.addEventListener("dblclick",f);var p=new Zr(e.eResize);p.addEventListener(Zr.EVENT_DOUBLE_TAP,f),e.addDestroyFunc(function(){e.eResize.removeEventListener("dblclick",f),p.removeEventListener(Zr.EVENT_DOUBLE_TAP,f),p.destroy()})}}},l=function(){o.forEach(function(c){return c()}),o.length=0},u=function(){var c=e.column.isResizable(),d=!e.gridOptionsService.is("suppressAutoSize")&&!r.suppressAutoSize,f=c!==i||d!==a;f&&(i=c,a=d,l(),s())};u(),this.addDestroyFunc(l),this.ctrl.addRefreshFunction(u)},t.prototype.onResizing=function(e,r){var o=this.normaliseResizeAmount(r),i=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnModel.setColumnWidths(i,this.resizeWithShiftKey,e,"uiColumnResized"),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!=="left",i=this.pinned==="right";return this.gridOptionsService.is("enableRtl")?o&&(r*=-1):i&&(r*=-1),r},bw([w("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),bw([w("columnModel")],t.prototype,"columnModel",void 0),bw([M],t.prototype,"postConstruct",null),t}(F),A3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},F3=function(n){A3(t,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?.headerCheckboxSelectionFilteredOnly,r.currentPageOnly=!!o?.headerCheckboxSelectionCurrentPageOnly,r}return t.prototype.onSpaceKeyDown=function(e){var r=this.cbSelectAll,o=this.gridOptionsService.getDocument();r.isDisplayed()&&!r.getGui().contains(o.activeElement)&&(e.preventDefault(),r.setValue(!r.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new Rd),this.cbSelectAll.addCssClass("ag-header-select-all"),bt(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,_.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,_.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),kg(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,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.selectionService.getSelectAllState(this.filteredOnly,this.currentPageOnly);this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){var e=this.localeService.getLocaleTextFunc(),r=this.cbSelectAll.getValue(),o=r?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),i=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll",i+" ("+o+")"):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(i+" ("+o+")"),this.headerCellCtrl.refreshAriaDescription()},t.prototype.checkSelectionType=function(e){var r=this.gridOptionsService.get("rowSelection")==="multiple";return r?!0:(console.warn("AG Grid: "+e+" is only available if using 'multiple' rowSelection."),!1)},t.prototype.checkRightRowModelType=function(e){var r=this.rowModel.getType(),o=r==="clientSide"||r==="serverSide";return o?!0:(console.warn("AG Grid: "+e+" is only available if using 'clientSide' or 'serverSide' rowModelType, you are using "+r+"."),!1)},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),r="uiSelectAll";this.currentPageOnly?r="uiSelectAllCurrentPage":this.filteredOnly&&(r="uiSelectAllFiltered");var o={source:r,justFiltered:this.filteredOnly,justCurrentPage:this.currentPageOnly};e?this.selectionService.selectAllRowNodes(o):this.selectionService.deselectAllRowNodes(o)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;if(typeof e=="function"){var r=e,o={column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsService.context};e=r(o)}return e?this.checkRightRowModelType("headerCheckboxSelection")&&this.checkSelectionType("headerCheckboxSelection"):!1},zh([w("gridApi")],t.prototype,"gridApi",void 0),zh([w("columnApi")],t.prototype,"columnApi",void 0),zh([w("rowModel")],t.prototype,"rowModel",void 0),zh([w("selectionService")],t.prototype,"selectionService",void 0),t}(F),b3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),wI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){n.TAB_GUARD="ag-tab-guard",n.TAB_GUARD_TOP="ag-tab-guard-top",n.TAB_GUARD_BOTTOM="ag-tab-guard-bottom"})(g.TabGuardClassNames||(g.TabGuardClassNames={}));var oA=function(n){b3(t,n);function t(e){var r=n.call(this)||this;r.skipTabGuardFocus=!1;var o=e.comp,i=e.eTopGuard,a=e.eBottomGuard,s=e.focusInnerElement,l=e.onFocusIn,u=e.onFocusOut,c=e.shouldStopEventPropagation,d=e.onTabKeyDown,f=e.handleKeyDown,p=e.eFocusableElement;return r.comp=o,r.eTopGuard=i,r.eBottomGuard=a,r.providedFocusInnerElement=s,r.eFocusableElement=p,r.providedFocusIn=l,r.providedFocusOut=u,r.providedShouldStopEventPropagation=c,r.providedOnTabKeyDown=d,r.providedHandleKeyDown=f,r}return t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new Di(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():!1},t.prototype.activateTabGuards=function(){var e=this.gridOptionsService.getNum("tabIndex")||0;this.comp.setTabIndex(e.toString())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}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);return}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.focusInnerElement=function(e){e===void 0&&(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({preventScroll:!0})},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){e===void 0&&(e=!1);var r=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,r.focus()},wI([w("focusService")],t.prototype,"focusService",void 0),wI([M],t.prototype,"postConstruct",null),t}(F),M3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),dd=function(){return dd=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},dd.apply(this,arguments)},vn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},N3=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},G3=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},Os=function(n){M3(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}e=t,t.addKeyboardModeEvents=function(r,o){var i=e.instancesMonitored.get(r);i&&i.length>0?i.indexOf(o)===-1&&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),a=[];i&&i.length&&(a=G3([],N3(i)).filter(function(s){return s!==o}),e.instancesMonitored.set(r,a)),a.length===0&&(r.removeEventListener("keydown",e.toggleKeyboardMode),r.removeEventListener("mousedown",e.toggleKeyboardMode))},t.toggleKeyboardMode=function(r){var o=e.keyboardModeActive,i=r.type==="keydown";if(!(i&&(r.ctrlKey||r.metaKey||r.altKey))&&!(o&&i||!o&&!i)){e.keyboardModeActive=i;var a=r.target.ownerDocument;if(a){var s=e.instancesMonitored.get(a);s&&s.forEach(function(l){l.dispatchEvent({type:i?_.EVENT_KEYBOARD_FOCUS:_.EVENT_MOUSE_FOCUS})})}}},t.prototype.init=function(){var r=this,o=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,o),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_GROUP_OPENED,o),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,o),this.ctrlsService.whenReady(function(i){r.gridCtrl=i.gridCtrl;var a=r.gridOptionsService.getDocument();e.addKeyboardModeEvents(a,r.gridCtrl),r.addDestroyFunc(function(){return r.unregisterGridCompController(r.gridCtrl)})})},t.prototype.unregisterGridCompController=function(r){var o=this.gridOptionsService.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.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(r.activeElement,Ma.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var r=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(r.activeElement,Td.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(r,o){for(var i=r;i;){var a=this.gridOptionsService.getDomData(i,o);if(a)return!1;i=i.parentNode}return!0},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.shouldRestoreFocus=function(r){var o=this;return this.isCellRestoreFocused(r)?(setTimeout(function(){o.restoredFocusedCellPosition=null},0),!0):!1},t.prototype.isCellRestoreFocused=function(r){return this.restoredFocusedCellPosition==null?!1:this.cellPositionUtils.equals(r,this.restoredFocusedCellPosition)},t.prototype.setRestoreFocusedCell=function(r){this.getFrameworkOverrides().renderingEngine==="react"&&(this.restoredFocusedCellPosition=r)},t.prototype.getFocusEventParams=function(){var r=this.focusedCellPosition,o=r.rowIndex,i=r.rowPinned,a=r.column,s={rowIndex:o,rowPinned:i,column:a,isFullWidthCell:!1},l=this.rowRenderer.getRowByPosition({rowIndex:o,rowPinned:i});return l&&(s.isFullWidthCell=l.isFullWidth()),s},t.prototype.clearFocusedCell=function(){if(this.restoredFocusedCellPosition=null,this.focusedCellPosition!=null){var r=dd({type:_.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(r)}},t.prototype.setFocusedCell=function(r){var o=r.column,i=r.rowIndex,a=r.rowPinned,s=r.forceBrowserFocus,l=s===void 0?!1:s,u=r.preventScrollOnBrowserFocus,c=u===void 0?!1:u,d=this.columnModel.getGridColumn(o);if(!d){this.focusedCellPosition=null;return}this.focusedCellPosition=d?{rowIndex:i,rowPinned:ri(a),column:d}:null;var f=dd(dd({type:_.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:l,preventScrollOnBrowserFocus:c,floating:null});this.eventService.dispatchEvent(f)},t.prototype.isCellFocused=function(r){return this.focusedCellPosition==null?!1:this.cellPositionUtils.equals(r,this.focusedCellPosition)},t.prototype.isRowNodeFocused=function(r){return this.isRowFocused(r.rowIndex,r.rowPinned)},t.prototype.isHeaderWrapperFocused=function(r){if(this.focusedHeaderPosition==null)return!1;var o=r.getColumnGroupChild(),i=r.getRowIndex(),a=r.getPinned(),s=this.focusedHeaderPosition,l=s.column,u=s.headerRowIndex;return o===l&&i===u&&a==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.allowUserOverride,s=r.event,l=r.fromCell,u=r.headerPosition;if(l&&this.filterManager.isAdvancedFilterHeaderActive())return this.focusAdvancedFilter(u);if(a){var c=this.getFocusedHeader(),d=this.headerNavigationService.getHeaderRowCount();if(i){var f=this.gridOptionsService.getCallback("tabToNextHeader");if(f){var p={backwards:o==="Before",previousHeaderPosition:c,nextHeaderPosition:u,headerRowCount:d};u=f(p)}}else{var f=this.gridOptionsService.getCallback("navigateToNextHeader");if(f&&s){var h={key:s.key,previousHeaderPosition:c,nextHeaderPosition:u,headerRowCount:d,event:s};u=f(h)}}}if(!u)return!1;if(u.headerRowIndex===-1)return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(u):this.focusGridView(u.column);this.headerNavigationService.scrollToColumn(u.column,o);var v=this.ctrlsService.getHeaderRowContainerCtrl(u.column.getPinned()),C=v.focusHeader(u.headerRowIndex,u.column,s);return C},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}})):!1},t.prototype.focusLastHeader=function(r){var o=this.headerNavigationService.getHeaderRowCount()-1,i=Ge(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:o,column:i},event:r})},t.prototype.focusPreviousFromFirstCell=function(r){return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(r)},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(r,o){return this.focusedCellPosition==null?!1:this.focusedCellPosition.rowIndex===r&&this.focusedCellPosition.rowPinned===ri(o)},t.prototype.findFocusableElements=function(r,o,i){i===void 0&&(i=!1);var a=KD,s=kS;o&&(s+=", "+o),i&&(s+=', [tabindex="-1"]');var l=Array.prototype.slice.apply(r.querySelectorAll(a)),u=Array.prototype.slice.apply(r.querySelectorAll(s));if(!u.length)return l;var c=function(d,f){return d.filter(function(p){return f.indexOf(p)===-1})};return c(l,u)},t.prototype.focusInto=function(r,o,i){o===void 0&&(o=!1),i===void 0&&(i=!1);var a=this.findFocusableElements(r,null,i),s=o?Ge(a):a[0];return s?(s.focus({preventScroll:!0}),!0):!1},t.prototype.findFocusableElementBeforeTabGuard=function(r,o){if(!o)return null;var i=this.findFocusableElements(r),a=i.indexOf(o);if(a===-1)return null;for(var s=-1,l=a-1;l>=0;l--)if(i[l].classList.contains(g.TabGuardClassNames.TAB_GUARD_TOP)){s=l;break}return s<=0?null:i[s-1]},t.prototype.findNextFocusableElement=function(r,o,i){r===void 0&&(r=this.eGridDiv);var a=this.findFocusableElements(r,o?':not([tabindex="-1"])':null),s=this.gridOptionsService.getDocument(),l=s.activeElement,u;o?u=a.findIndex(function(d){return d.contains(l)}):u=a.indexOf(l);var c=u+(i?-1:1);return c<0||c>=a.length?null:a[c]},t.prototype.isTargetUnderManagedComponent=function(r,o){if(!o)return!1;var i=r.querySelectorAll("."+Di.FOCUS_MANAGED_CLASS);if(!i.length)return!1;for(var a=0;a<i.length;a++)if(i[a].contains(o))return!0;return!1},t.prototype.findTabbableParent=function(r,o){o===void 0&&(o=5);for(var i=0;r&&yg(r)===null&&++i<=o;)r=r.parentElement;return yg(r)===null?null:r},t.prototype.focusGridView=function(r,o){if(this.gridOptionsService.is("suppressCellFocus"))return o?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var i=o?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!i)return!1;var a=i.rowIndex,s=i.rowPinned,l=this.getFocusedHeader();if(!r&&l&&(r=l.column),a==null||!r)return!1;if(this.navigationService.ensureCellVisible({rowIndex:a,column:r,rowPinned:s}),this.setFocusedCell({rowIndex:a,column:r,rowPinned:ri(s),forceBrowserFocus:!0}),this.rangeService){var u={rowIndex:a,rowPinned:s,column:r};this.rangeService.setRangeToCell(u)}return!0},t.prototype.focusNextGridCoreContainer=function(r,o){return o===void 0&&(o=!1),!o&&this.gridCtrl.focusNextInnerContainer(r)?!0:((o||!r&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(r),!1)},t.prototype.focusAdvancedFilter=function(r){return this.advancedFilterFocusColumn=r?.column,this.advancedFilterService.getCtrl().focusHeaderComp()},t.prototype.focusNextFromAdvancedFilter=function(r,o){var i,a,s=(i=o?void 0:this.advancedFilterFocusColumn)!==null&&i!==void 0?i:(a=this.columnModel.getAllDisplayedColumns())===null||a===void 0?void 0:a[0];return r?this.focusHeaderPosition({headerPosition:{column:s,headerRowIndex:this.headerNavigationService.getHeaderRowCount()-1}}):this.focusGridView(s)},t.prototype.clearAdvancedFilterColumn=function(){this.advancedFilterFocusColumn=void 0};var e;return t.AG_KEYBOARD_FOCUS="ag-keyboard-focus",t.keyboardModeActive=!1,t.instancesMonitored=new Map,vn([w("eGridDiv")],t.prototype,"eGridDiv",void 0),vn([w("columnModel")],t.prototype,"columnModel",void 0),vn([w("headerNavigationService")],t.prototype,"headerNavigationService",void 0),vn([w("rowRenderer")],t.prototype,"rowRenderer",void 0),vn([w("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),vn([w("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),vn([_e("rangeService")],t.prototype,"rangeService",void 0),vn([w("navigationService")],t.prototype,"navigationService",void 0),vn([w("ctrlsService")],t.prototype,"ctrlsService",void 0),vn([w("filterManager")],t.prototype,"filterManager",void 0),vn([_e("advancedFilterService")],t.prototype,"advancedFilterService",void 0),vn([M],t.prototype,"init",null),t=e=vn([H("focusService")],t),t}(F),k3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Pi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},iA=function(n){k3(t,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 t.prototype.setComp=function(e,r,o,i){var a=this;n.prototype.setGui.call(this,r),this.comp=e,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(i),this.addColumnHoverListener(),this.setupFilterCss(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new D3(this.getPinned(),this.column,o,e,this)),this.createManagedBean(new d_([this.column],r)),this.createManagedBean(new Zg(this.column,r,this.beans)),this.createManagedBean(new Di(r,{shouldStopEventPropagation:function(s){return a.shouldStopEventPropagation(s)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addMouseDownListenerIfNeeded(r),this.addManagedListener(this.column,Ne.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addMouseDownListenerIfNeeded=function(e){var r=this;if(to()){var o=["mousedown","touchstart"],i=this.gridOptionsService.getDocument();o.forEach(function(a){r.addManagedListener(e,a,function(s){var l=i.activeElement;l!==e&&!e.contains(l)&&(e.focus(),Os.toggleKeyboardMode(s))})})}},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),r=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(r,e)},t.prototype.createParams=function(){var e=this,r=this.column.getColDef(),o={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,a){e.sortController.setSortForColumn(e.column,i,!!a,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context,eGridHeader:this.getGui()};return o},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new F3(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===O.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===O.ENTER&&this.onEnterKeyDown(e)},t.prototype.onEnterKeyDown=function(e){var r=this.comp.getUserCompInstance();if(r){if(e.ctrlKey||e.metaKey)this.menuEnabled&&r.showMenu&&(e.preventDefault(),r.showMenu());else if(this.sortable){var o=e.shiftKey;this.sortController.progressSort(this.column,o,"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,r={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){var i=e.column.getColDef().headerTooltip;return i}},o=this.createManagedBean(new Jg(r,this.beans));o.setComp(this.eGui),this.refreshFunctions.push(function(){return o.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,r=function(){var o=e.column.getColDef(),i=c_.getHeaderClassesFromColDef(o,e.gridOptionsService,e.column,null),a=e.userHeaderClasses;e.userHeaderClasses=new Set(i),i.forEach(function(s){a.has(s)?a.delete(s):e.comp.addOrRemoveCssClass(s,!0)}),a.forEach(function(s){return e.comp.addOrRemoveCssClass(s,!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.gridOptionsService.is("suppressDragLeaveHidesColumns");this.moveDragSource={type:g.DragSourceType.HeaderCell,eElement:e,getDefaultIconName:function(){return o?Ft.ICON_HIDE:Ft.ICON_NOT_ALLOWED},getDragItem:function(){return r.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){o=!r.gridOptionsService.is("suppressDragLeaveHidesColumns"),r.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return r.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(i){var a;if(o){var s=((a=i?.columns)===null||a===void 0?void 0:a.filter(function(l){return!l.getColDef().lockVisible}))||[];r.columnModel.setColumnsVisible(s,!0,"uiColumnMoved")}},onGridExit:function(i){var a;if(o){var s=((a=i?.columns)===null||a===void 0?void 0:a.filter(function(l){return!l.getColDef().lockVisible}))||[];r.columnModel.setColumnsVisible(s,!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.lookupUserCompDetails(),r=this.comp.getUserCompInstance(),o=r!=null&&this.userCompDetails.componentClass==e.componentClass,i=o?this.attemptHeaderCompRefresh(e.params):!1;i?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var r=this.comp.getUserCompInstance();if(!r||!r.refresh)return!1;var o=r.refresh(e);return o},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef(),r=this.gridOptionsService.is("suppressMovableColumns"),o=!r&&!e.suppressMovable&&!e.lockPosition;return!!o||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,r=function(){var o=e.column.getActualWidth();e.comp.setWidth(o+"px")};this.addManagedListener(this.column,Ne.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,Ne.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,Ne.EVENT_MENU_VISIBLE_CHANGED,r),r()},t.prototype.setupSortableClass=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};r(),this.addRefreshFunction(r),this.addManagedListener(this.eventService,Ne.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.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},t.prototype.refreshSpanHeaderHeight=function(){var e=this,r=e.eGui,o=e.column,i=e.comp,a=e.columnModel,s=e.gridOptionsService;if(o.isSpanHeaderHeight()){var l=this.getColumnGroupPaddingInfo(),u=l.numberOfParents,c=l.isSpanningTotal;i.addOrRemoveCssClass("ag-header-span-height",u>0);var d=a.getColumnHeaderRowHeight();if(u===0){i.addOrRemoveCssClass("ag-header-span-total",!1),r.style.setProperty("top","0px"),r.style.setProperty("height",d+"px");return}i.addOrRemoveCssClass("ag-header-span-total",c);var f=s.is("pivotMode"),p=f?a.getPivotGroupHeaderHeight():a.getGroupHeaderHeight(),h=u*p;r.style.setProperty("top",-h+"px"),r.style.setProperty("height",d+h+"px")}},t.prototype.getColumnGroupPaddingInfo=function(){var e=this.column.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var r=e.getPaddingLevel()+1,o=!0;e;){if(!e.isPadding()){o=!1;break}e=e.getParent()}return{numberOfParents:r,isSpanningTotal:o}},t.prototype.setupAutoHeight=function(e){var r=this,o=function(c){if(r.isAlive()){var d=Ga(r.getGui()),f=d.paddingTop,p=d.paddingBottom,h=d.borderBottomWidth,v=d.borderTopWidth,C=f+p+h+v,m=e.offsetHeight,y=m+C;if(c<5){var S=r.beans.gridOptionsService.getDocument(),E=!S||!S.contains(e),R=y==0;if(E||R){r.beans.frameworkOverrides.setTimeout(function(){return o(c+1)},0);return}}r.columnModel.setColumnHeaderHeight(r.column,y)}},i=!1,a,s=function(){var c=r.column.isAutoHeaderHeight();c&&!i&&l(),!c&&i&&u()},l=function(){i=!0,o(0),r.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),a=r.resizeObserverService.observeResize(e,function(){return o(0)})},u=function(){i=!1,a&&a(),r.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),a=void 0};s(),this.addDestroyFunc(function(){return u()}),this.addManagedListener(this.column,Ne.EVENT_WIDTH_CHANGED,function(){return i&&o(0)}),this.addManagedListener(this.eventService,Ne.EVENT_SORT_CHANGED,function(){i&&r.beans.frameworkOverrides.setTimeout(function(){return o(0)})}),this.addRefreshFunction(s)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),r=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(xD(r)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.setAriaDescriptionProperty=function(e,r){r!=null?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.gridOptionsService.is("columnHoverHighlight")){var o=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",o)}};this.addManagedListener(this.eventService,_.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,Ne.EVENT_FILTER_ACTIVE_CHANGED,r),r()},t.prototype.getColId=function(){return this.column.getColId()},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,r=function(o){return e.setActiveHeader(o.type==="mouseenter")};this.addManagedListener(this.getGui(),"mouseenter",r),this.addManagedListener(this.getGui(),"mouseleave",r)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},Pi([w("columnModel")],t.prototype,"columnModel",void 0),Pi([w("columnHoverService")],t.prototype,"columnHoverService",void 0),Pi([w("sortController")],t.prototype,"sortController",void 0),Pi([w("menuFactory")],t.prototype,"menuFactory",void 0),Pi([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Pi([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Pi([w("gridApi")],t.prototype,"gridApi",void 0),Pi([w("columnApi")],t.prototype,"columnApi",void 0),Pi([Mt],t.prototype,"removeDragSource",null),t}(Td),H3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},V3=function(n){H3(t,n);function t(e,r,o,i){var a=n.call(this)||this;return a.eResize=r,a.comp=e,a.pinned=o,a.columnGroup=i,a}return t.prototype.postConstruct=function(){var e=this;if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}var r=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(r),!this.gridOptionsService.is("suppressAutoSize")){var o=this.gridOptionsService.is("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",function(){var i=[],a=e.columnGroup.getDisplayedLeafColumns();a.forEach(function(s){s.getColDef().suppressAutoSize||i.push(s.getColId())}),i.length>0&&e.columnModel.autoSizeColumns({columns:i,skipHeader:o,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit("uiColumnResized")})}},t.prototype.onResizeStart=function(e){var r=this;this.calculateInitialValues();var o=null;if(e&&(o=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),o){var i=o.getDisplayedLeafColumns();this.resizeTakeFromCols=i.filter(function(a){return a.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(a){return r.resizeTakeFromStartWidth+=a.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(a){return r.resizeTakeFromRatios.push(a.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,o){o===void 0&&(o="uiColumnResized");var i=this.normaliseDragChange(r),a=this.resizeStartWidth+i;this.resizeColumns(a,o,e)},t.prototype.resizeLeafColumnsToFit=function(e){var r=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),r>this.resizeStartWidth&&this.resizeColumns(r,e,!0)},t.prototype.resizeColumns=function(e,r,o){o===void 0&&(o=!0);var i=[];if(i.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var a=e-this.resizeStartWidth;i.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-a})}this.columnModel.resizeColumnSets({resizeSets:i,finished:o,source:r}),o&&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()}),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.gridOptionsService.is("enableRtl")?this.pinned!=="left"&&(r*=-1):this.pinned==="right"&&(r*=-1),r},qh([w("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),qh([w("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),qh([w("columnModel")],t.prototype,"columnModel",void 0),qh([M],t.prototype,"postConstruct",null),t}(F),B3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),W3=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},U3=function(n){B3(t,n);function t(e,r){var o=n.call(this)||this;return o.removeChildListenersFuncs=[],o.columnGroup=r,o.comp=e,o}return t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,Wt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var r=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(o){o.addEventListener("widthChanged",r),o.addEventListener("visibleChanged",r),e.removeChildListenersFuncs.push(function(){o.removeEventListener("widthChanged",r),o.removeEventListener("visibleChanged",r)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){var e=this.columnGroup.getActualWidth();this.comp.setWidth(e+"px"),this.comp.addOrRemoveCssClass("ag-hidden",e===0)},W3([M],t.prototype,"postConstruct",null),t}(F),j3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),$h=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},aA=function(n){j3(t,n);function t(e,r){var o=n.call(this,e,r)||this;return o.columnGroup=e,o}return 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.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var i=this.getParentRowCtrl().getPinned(),a=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new d_(a,r)),this.createManagedBean(new Zg(this.columnGroup,r,this.beans)),this.createManagedBean(new U3(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new V3(e,o,i,this.columnGroup)),this.createManagedBean(new Di(r,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.resizeLeafColumnsToFit=function(e){this.groupResizeFeature&&this.groupResizeFeature.resizeLeafColumnsToFit(e)},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.gridOptionsService.context};if(!r){for(var i=this.columnGroup,a=i.getLeafColumns();i.getParent()&&i.getParent().getLeafColumns().length===a.length;)i=i.getParent();var s=i.getColGroupDef();s&&(r=s.headerName),r||(r=a?this.columnModel.getDisplayNameForColumn(a[0],"header",!0):"")}var 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});var i=this.createManagedBean(new Jg(o,this.beans));i.setComp(this.eGui)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,gt.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,gt.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var r=e.isExpanded();this.expandable?this.comp.setAriaExpanded(r?"true":"false"):this.comp.setAriaExpanded(void 0)},t.prototype.getColId=function(){return this.columnGroup.getUniqueId()},t.prototype.addClasses=function(){var e=this,r=this.columnGroup.getColGroupDef(),o=c_.getHeaderClassesFromColDef(r,this.gridOptionsService,null,this.columnGroup);if(this.columnGroup.isPadding()){o.push("ag-header-group-cell-no-group");var i=this.columnGroup.getLeafColumns();i.every(function(a){return a.isSpanHeaderHeight()})&&o.push("ag-header-span-height")}else o.push("ag-header-group-cell-with-group");o.forEach(function(a){return e.comp.addOrRemoveCssClass(a,!0)})},t.prototype.setupMovingCss=function(){var e=this,r=this.columnGroup.getProvidedColumnGroup(),o=r.getLeafColumns(),i=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};o.forEach(function(a){e.addManagedListener(a,Ne.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===O.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.gridOptionsService.is("suppressDragLeaveHidesColumns"),a={type:g.DragSourceType.HeaderCell,eElement:e,getDefaultIconName:function(){return i?Ft.ICON_HIDE:Ft.ICON_NOT_ALLOWED},dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){i=!r.gridOptionsService.is("suppressDragLeaveHidesColumns"),o.forEach(function(s){return s.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return o.forEach(function(s){return s.setMoving(!1,"uiColumnDragged")})},onGridEnter:function(s){var l;if(i){var u=((l=s?.columns)===null||l===void 0?void 0:l.filter(function(c){return!c.getColDef().lockVisible}))||[];r.columnModel.setColumnsVisible(u,!0,"uiColumnMoved")}},onGridExit:function(s){var l;if(i){var u=((l=s?.columns)===null||l===void 0?void 0:l.filter(function(c){return!c.getColDef().lockVisible}))||[];r.columnModel.setColumnsVisible(u,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(a,!0),this.addDestroyFunc(function(){return r.dragAndDropService.removeDragSource(a)})}},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),mn(e,i))}),e.forEach(function(i){return o.push(i)}),{columns:o,visibleState:r}},t.prototype.isSuppressMoving=function(){var e=!1;this.columnGroup.getLeafColumns().forEach(function(o){(o.getColDef().suppressMovable||o.getColDef().lockPosition)&&(e=!0)});var r=e||this.gridOptionsService.is("suppressMovableColumns");return r},$h([w("columnModel")],t.prototype,"columnModel",void 0),$h([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),$h([w("gridApi")],t.prototype,"gridApi",void 0),$h([w("columnApi")],t.prototype,"columnApi",void 0),t}(Td),z3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Kh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},q3=0,fg=function(n){z3(t,n);function t(e,r,o){var i=n.call(this)||this;i.instanceId=q3++,i.headerCellCtrls={},i.rowIndex=e,i.pinned=r,i.type=o;var a=o==g.HeaderRowType.COLUMN_GROUP?"ag-header-row-column-group":o==g.HeaderRowType.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.headerRowClass="ag-header-row "+a,i}return t.prototype.postConstruct=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.isEnsureDomOrder=this.gridOptionsService.is("ensureDomOrder")},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,r){r===void 0&&(r=!0),this.comp=e,r&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()},t.prototype.getHeaderRowClass=function(){return this.headerRowClass},t.prototype.getAriaRowIndex=function(){return this.rowIndex+1},t.prototype.getTransform=function(){if(to())return"translateZ(0)"},t.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_VIRTUAL_COLUMNS_CHANGED,function(r){return e.onVirtualColumnsChanged(r.afterScroll)}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("ensureDomOrder",function(r){return e.isEnsureDomOrder=r.currentValue}),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return Ts(this.headerCellCtrls).find(function(r){return r.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},t.prototype.getWidthForRow=function(){if(this.isPrintLayout){var e=this.pinned!=null;return e?0:this.columnModel.getContainerWidth("right")+this.columnModel.getContainerWidth("left")+this.columnModel.getContainerWidth(null)}return this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.getTopAndHeight(),r=e.topOffset,o=e.rowHeight;this.comp.setTop(r+"px"),this.comp.setHeight(o+"px")},t.prototype.getTopAndHeight=function(){var e=this.columnModel.getHeaderRowCount(),r=[],o=0;this.filterManager.hasFloatingFilters()&&(e++,o=1);for(var i=this.columnModel.getColumnGroupHeaderRowHeight(),a=this.columnModel.getColumnHeaderRowHeight(),s=1+o,l=e-s,u=0;u<l;u++)r.push(i);r.push(a);for(var u=0;u<o;u++)r.push(this.columnModel.getFloatingFiltersHeight());for(var c=0,u=0;u<this.rowIndex;u++)c+=r[u];var d=r[this.rowIndex];return{topOffset:c,rowHeight:d}},t.prototype.getPinned=function(){return this.pinned},t.prototype.getRowIndex=function(){return this.rowIndex},t.prototype.onVirtualColumnsChanged=function(e){e===void 0&&(e=!1);var r=this.getHeaderCtrls(),o=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(r,o,e)},t.prototype.getHeaderCtrls=function(){var e=this,r=this.headerCellCtrls;this.headerCellCtrls={};var o=this.getColumnsInViewport();o.forEach(function(s){if(!s.isEmptyGroup()){var l=s.getUniqueId(),u=r[l];delete r[l];var c=u&&u.getColumnGroupChild()!=s;if(c&&(e.destroyBean(u),u=void 0),u==null)switch(e.type){case g.HeaderRowType.FLOATING_FILTER:u=e.createBean(new nA(s,e));break;case g.HeaderRowType.COLUMN_GROUP:u=e.createBean(new aA(s,e));break;default:u=e.createBean(new iA(s,e));break}e.headerCellCtrls[l]=u}});var i=function(s){var l=e.focusService.isHeaderWrapperFocused(s);if(!l)return!1;var u=e.columnModel.isDisplayed(s.getColumnGroupChild());return u};st(r,function(s,l){var u=i(l);u?e.headerCellCtrls[s]=l:e.destroyBean(l)});var a=oi(this.headerCellCtrls);return a},t.prototype.getColumnsInViewport=function(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},t.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(this.pinned!=null)return[];var r=[],o=this.getActualDepth();return["left",null,"right"].forEach(function(i){var a=e.columnModel.getVirtualHeaderGroupRow(i,o);r=r.concat(a)}),r},t.prototype.getActualDepth=function(){return this.type==g.HeaderRowType.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 o=oi(this.headerCellCtrls),i=o.find(function(a){return a.getColumnGroupChild()==e});return i?(i.focus(r),!0):!1},t.prototype.destroy=function(){var e=this;st(this.headerCellCtrls,function(r,o){e.destroyBean(o)}),this.headerCellCtrls={},n.prototype.destroy.call(this)},Kh([w("columnModel")],t.prototype,"columnModel",void 0),Kh([w("focusService")],t.prototype,"focusService",void 0),Kh([w("filterManager")],t.prototype,"filterManager",void 0),Kh([M],t.prototype,"postConstruct",null),t}(F),$3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Vl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},K3=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},Y3=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},sA=function(n){$3(t,n);function t(e){var r=n.call(this)||this;return r.hidden=!1,r.includeFloatingFilter=!1,r.groupsRowCtrls=[],r.pinned=e,r}return t.prototype.setComp=function(e,r){this.comp=e,this.eViewport=r,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,_.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var r=new tA(this.pinned,e);this.createManagedBean(r)},t.prototype.refresh=function(e){var r=this;e===void 0&&(e=!1);var o=new As,i=this.focusService.getFocusHeaderToUseAfterRefresh(),a=function(){var c=r.columnModel.getHeaderRowCount()-1;r.groupsRowCtrls=r.destroyBeans(r.groupsRowCtrls);for(var d=0;d<c;d++){var f=r.createBean(new fg(o.next(),r.pinned,g.HeaderRowType.COLUMN_GROUP));r.groupsRowCtrls.push(f)}},s=function(){var c=o.next(),d=!r.hidden&&(r.columnsRowCtrl==null||!e||r.columnsRowCtrl.getRowIndex()!==c),f=d||r.hidden;f&&(r.columnsRowCtrl=r.destroyBean(r.columnsRowCtrl)),d&&(r.columnsRowCtrl=r.createBean(new fg(c,r.pinned,g.HeaderRowType.COLUMN)))},l=function(){r.includeFloatingFilter=r.filterManager.hasFloatingFilters()&&!r.hidden;var c=function(){r.filtersRowCtrl=r.destroyBean(r.filtersRowCtrl)};if(!r.includeFloatingFilter){c();return}var d=o.next();if(r.filtersRowCtrl){var f=r.filtersRowCtrl.getRowIndex()!==d;(!e||f)&&c()}r.filtersRowCtrl||(r.filtersRowCtrl=r.createBean(new fg(d,r.pinned,g.HeaderRowType.FLOATING_FILTER)))};a(),s(),l();var u=this.getAllCtrls();this.comp.setCtrls(u),this.restoreFocusOnHeader(i)},t.prototype.restoreFocusOnHeader=function(e){e==null||e.column.getPinned()!=this.pinned||this.focusService.focusHeaderPosition({headerPosition:e})},t.prototype.getAllCtrls=function(){var e=Y3([],K3(this.groupsRowCtrls));return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.filterManager.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==e&&this.refresh(!0)},t.prototype.setupCenterWidth=function(){var e=this;this.pinned==null&&this.createManagedBean(new l_(function(r){return e.comp.setCenterWidth(r+"px")},!0))},t.prototype.setHorizontalScroll=function(e){this.comp.setViewportScrollLeft(e)},t.prototype.setupPinnedWidth=function(){var e=this;if(this.pinned!=null){var r=this.pinned==="left",o=this.pinned==="right";this.hidden=!0;var i=function(){var a=r?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(a!=null){var s=a==0,l=e.hidden!==s,u=e.gridOptionsService.is("enableRtl"),c=e.gridOptionsService.getScrollbarWidth(),d=e.scrollVisibleService.isVerticalScrollShowing()&&(u&&r||!u&&o),f=d?a+c:a;e.comp.setPinnedContainerWidth(f+"px"),e.comp.setDisplayed(!s),l&&(e.hidden=s,e.refresh())}};this.addManagedListener(this.eventService,_.EVENT_LEFT_PINNED_WIDTH_CHANGED,i),this.addManagedListener(this.eventService,_.EVENT_RIGHT_PINNED_WIDTH_CHANGED,i),this.addManagedListener(this.eventService,_.EVENT_SCROLL_VISIBILITY_CHANGED,i),this.addManagedListener(this.eventService,_.EVENT_SCROLLBAR_WIDTH_CHANGED,i)}},t.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof Ne)return this.columnsRowCtrl?this.columnsRowCtrl.getHeaderCellCtrl(e):void 0;if(this.groupsRowCtrls.length!==0)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 r=this.getAllCtrls(),o=r[e];return o?o.getType():void 0},t.prototype.focusHeader=function(e,r,o){var i=this.getAllCtrls(),a=i[e];return a?a.focusHeader(r,o):!1},t.prototype.getRowCount=function(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)},t.prototype.destroy=function(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),n.prototype.destroy.call(this)},Vl([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Vl([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Vl([w("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Vl([w("columnModel")],t.prototype,"columnModel",void 0),Vl([w("focusService")],t.prototype,"focusService",void 0),Vl([w("filterManager")],t.prototype,"filterManager",void 0),t}(F),X3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Mw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pg=function(n){X3(t,n);function t(e){var r=n.call(this)||this;return r.headerRowComps={},r.rowCompsList=[],r.pinned=e,r}return t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var r={setDisplayed:function(i){return e.setDisplayed(i)},setCtrls:function(i){return e.setCtrls(i)},setCenterWidth:function(i){return e.eCenterContainer.style.width=i},setViewportScrollLeft:function(i){return e.getGui().scrollLeft=i},setPinnedContainerWidth:function(i){var a=e.getGui();a.style.width=i,a.style.maxWidth=i,a.style.minWidth=i}},o=this.createManagedBean(new sA(this.pinned));o.setComp(r,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned=="left",r=this.pinned=="right",o=e?t.PINNED_LEFT_TEMPLATE:r?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(o),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var r=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];var i,a=function(s){var l=s.getGui(),u=l.parentElement!=r.eRowContainer;u&&r.eRowContainer.appendChild(l),i&&WS(r.eRowContainer,l,i),i=l};e.forEach(function(s){var l=s.getInstanceId(),u=o[l];delete o[l];var c=u||r.createBean(new rA(s));r.headerRowComps[l]=c,r.rowCompsList.push(c),a(c)}),oi(o).forEach(function(s){return r.destroyRowComp(s)})},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"></div>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"></div>',t.CENTER_TEMPLATE=`<div class="ag-header-viewport" role="presentation">
<div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>
</div>`,Mw([G("eCenterContainer")],t.prototype,"eCenterContainer",void 0),Mw([M],t.prototype,"init",null),Mw([Mt],t.prototype,"destroyRowComps",null),t}(se),Q3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){n[n.UP=0]="UP",n[n.DOWN=1]="DOWN",n[n.LEFT=2]="LEFT",n[n.RIGHT=3]="RIGHT"})(g.HeaderNavigationDirection||(g.HeaderNavigationDirection={}));var lA=function(n){Q3(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return 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.navigateVertically=function(e,r,o){if(r||(r=this.focusService.getFocusedHeader()),!r)return!1;var i=r.headerRowIndex,a=r.column,s=this.getHeaderRowCount(),l=e===g.HeaderNavigationDirection.UP,u=l?this.headerPositionUtils.getColumnVisibleParent(a,i):this.headerPositionUtils.getColumnVisibleChild(a,i),c=u.nextRow,d=u.nextFocusColumn,f=!1;return c<0&&(c=0,d=a,f=!0),c>=s&&(c=-1),!f&&!d?!1:this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c,column:d},allowUserOverride:!0,event:o})},t.prototype.navigateHorizontally=function(e,r,o){r===void 0&&(r=!1);var i=this.focusService.getFocusedHeader(),a=e===g.HeaderNavigationDirection.LEFT,s=this.gridOptionsService.is("enableRtl"),l,u;return a!==s?(u="Before",l=this.headerPositionUtils.findHeader(i,u)):(u="After",l=this.headerPositionUtils.findHeader(i,u)),l||!r?this.focusService.focusHeaderPosition({headerPosition:l,direction:u,fromTab:r,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(i,u,o)},t.prototype.focusNextHeaderRow=function(e,r,o){var i=e.headerRowIndex,a=null,s;return r==="Before"?i>0&&(s=i-1,a=this.headerPositionUtils.findColAtEdgeForHeaderRow(s,"end")):(s=i+1,a=this.headerPositionUtils.findColAtEdgeForHeaderRow(s,"start")),this.focusService.focusHeaderPosition({headerPosition:a,direction:r,fromTab:!0,allowUserOverride:!0,event:o})},t.prototype.scrollToColumn=function(e,r){if(r===void 0&&(r="After"),!e.getPinned()){var o;if(e instanceof Wt){var i=e.getDisplayedLeafColumns();o=r==="Before"?Ge(i):i[0]}else o=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},qc([w("focusService")],t.prototype,"focusService",void 0),qc([w("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),qc([w("ctrlsService")],t.prototype,"ctrlsService",void 0),qc([M],t.prototype,"postConstruct",null),t=qc([H("headerNavigationService")],t),t}(F),J3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),$c=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},uA=function(n){J3(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setComp=function(e,r,o){this.comp=e,this.eGui=r,this.createManagedBean(new Di(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},t.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("pivotHeaderHeight",e),this.addManagedPropertyListener("groupHeaderHeight",e),this.addManagedPropertyListener("pivotGroupHeaderHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_GRID_STYLES_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,e)},t.prototype.getHeaderHeight=function(){return this.headerHeight},t.prototype.setHeaderHeight=function(){var e=this.columnModel,r=0,o=e.getHeaderRowCount(),i,a=this.filterManager.hasFloatingFilters();a&&(o++,r=1);var s=this.columnModel.getColumnGroupHeaderRowHeight(),l=this.columnModel.getColumnHeaderRowHeight(),u=1+r,c=o-u;if(i=r*e.getFloatingFiltersHeight(),i+=c*s,i+=l,this.headerHeight!==i){this.headerHeight=i;var d=i+1+"px";this.comp.setHeightAndMinHeight(d),this.eventService.dispatchEvent({type:_.EVENT_HEADER_HEIGHT_CHANGED})}},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.getAllDisplayedColumns(),r=e.some(function(o){return o.isSpanHeaderHeight()});this.comp.addOrRemoveCssClass("ag-header-allow-overflow",r)},t.prototype.onTabKeyDown=function(e){var r=this.gridOptionsService.is("enableRtl"),o=e.shiftKey!==r?g.HeaderNavigationDirection.LEFT:g.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},t.prototype.handleKeyDown=function(e){var r=null;switch(e.key){case O.LEFT:r=g.HeaderNavigationDirection.LEFT;case O.RIGHT:D(r)||(r=g.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(r,!1,e);break;case O.UP:r=g.HeaderNavigationDirection.UP;case O.DOWN:D(r)||(r=g.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(r,null,e)&&e.preventDefault();break;default:return}},t.prototype.onFocusOut=function(e){var r=this.gridOptionsService.getDocument(),o=e.relatedTarget;!o&&this.eGui.contains(r.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},$c([w("headerNavigationService")],t.prototype,"headerNavigationService",void 0),$c([w("focusService")],t.prototype,"focusService",void 0),$c([w("columnModel")],t.prototype,"columnModel",void 0),$c([w("ctrlsService")],t.prototype,"ctrlsService",void 0),$c([w("filterManager")],t.prototype,"filterManager",void 0),t}(F),Z3=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),e2=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},cA=function(n){Z3(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.postConstruct=function(){var e=this,r={addOrRemoveCssClass:function(a,s){return e.addOrRemoveCssClass(a,s)},setHeightAndMinHeight:function(a){e.getGui().style.height=a,e.getGui().style.minHeight=a}},o=this.createManagedBean(new uA);o.setComp(r,this.getGui(),this.getFocusableElement());var i=function(a){e.createManagedBean(a),e.appendChild(a)};i(new pg("left")),i(new pg(null)),i(new pg("right"))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',e2([M],t.prototype,"postConstruct",null),t}(se),t2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Nw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},dA=function(n){t2(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return 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),includeTouch:!0,stopPropagationForTouch:!0};this.dragService.addDragSource(o);var i=function(){return r.dragService.removeDragSource(o)};return i},t.prototype.onDragStart=function(e,r){this.dragStartX=r.clientX,this.setResizeIcons();var o=r instanceof MouseEvent&&r.shiftKey===!0;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)},Nw([w("dragService")],t.prototype,"dragService",void 0),Nw([w("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Nw([H("horizontalResizeService")],t),t}(F),r2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Kc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},fA=function(n){r2(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return 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})},"columnMenu",r.target)},t.prototype.showMenuAfterButtonClick=function(e,r,o){var i=this;this.showPopup(e,function(a){i.popupService.positionPopupByComponent({type:o,eventSource:r,ePopup:a,keepWithinBounds:!0,position:"under",column:e})},o,r)},t.prototype.showPopup=function(e,r,o,i){var a=this,s=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!s)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var l=document.createElement("div");bt(l,"presentation"),l.classList.add("ag-menu"),this.tabListener=this.addManagedListener(l,"keydown",function(v){return a.trapFocusWithin(v,l)}),s.guiPromise.then(function(v){return l.appendChild(v)});var u,c=function(){var v;return(v=s.filterPromise)===null||v===void 0?void 0:v.then(function(C){var m;return(m=C?.afterGuiDetached)===null||m===void 0?void 0:m.call(C)})},d=i||this.ctrlsService.getGridBodyCtrl().getGui(),f=function(v){e.setMenuVisible(!1,"contextMenu");var C=v instanceof KeyboardEvent;if(a.tabListener&&(a.tabListener=a.tabListener()),C&&i&&ka(i)){var m=a.focusService.findTabbableParent(i);m&&m.focus()}c()},p=this.localeService.getLocaleTextFunc(),h=this.popupService.addPopup({modal:!0,eChild:l,closeOnEsc:!0,closedCallback:f,positionCallback:function(){return r(l)},anchorToElement:d,ariaLabel:p("ariaLabelColumnMenu","Column Menu")});h&&(this.hidePopup=u=h.hideFunc),s.filterPromise.then(function(v){r(l),v.afterGuiAttached&&v.afterGuiAttached({container:o,hidePopup:u})}),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,r){e.key!==O.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()&&e.getMenuTabs(["filterMenuTab"]).includes("filterMenuTab")},Kc([w("filterManager")],t.prototype,"filterManager",void 0),Kc([w("popupService")],t.prototype,"popupService",void 0),Kc([w("focusService")],t.prototype,"focusService",void 0),Kc([w("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Kc([H("menuFactory")],t),t}(F),n2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},o2=function(n){n2(t,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}return t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new Di(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),this.addDestroyFunc(function(){var r,o,i;return(i=(o=(r=e.activeItem)===null||r===void 0?void 0:r.tabbedItem)===null||o===void 0?void 0:o.afterDetachedCallback)===null||i===void 0?void 0:i.call(o)})},t.getTemplate=function(e){return'<div class="ag-tabs '+e+`">
<div ref="eHeader" role="tablist" class="ag-tabs-header `+(e?e+"-header":"")+`"></div>
<div ref="eBody" role="presentation" class="ag-tabs-body `+(e?e+"-body":"")+`"></div>
</div>`},t.prototype.handleKeyDown=function(e){var r=this.gridOptionsService.getDocument();switch(e.key){case O.RIGHT:case O.LEFT:if(!this.eHeader.contains(r.activeElement))return;var o=e.key===O.RIGHT,i=this.gridOptionsService.is("enableRtl"),a=this.items.indexOf(this.activeItem),s=o!==i?Math.min(a+1,this.items.length-1):Math.max(a-1,0);if(a===s)return;e.preventDefault();var l=this.items[s];this.showItemWrapper(l),l.eHeaderButton.focus();break;case O.UP:case O.DOWN:e.stopPropagation();break}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var r=this,o=r.focusService,i=r.eHeader,a=r.eBody,s=r.activeItem,l=this.gridOptionsService.getDocument(),u=l.activeElement,c=e.target;if(e.preventDefault(),i.contains(u)){o.focusInto(a,e.shiftKey);return}var d=null;o.isTargetUnderManagedComponent(a,c)&&(e.shiftKey&&(d=this.focusService.findFocusableElementBeforeTabGuard(a,c)),d||(d=s.eHeaderButton)),!d&&a.contains(u)&&(d=o.findNextFocusableElement(a,!1,e.shiftKey),d||(d=s.eHeaderButton)),d&&d.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");bt(r,"tab"),r.setAttribute("tabindex","-1"),r.appendChild(e.title),r.classList.add("ag-tab"),this.eHeader.appendChild(r),Ii(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,i,a=e.tabbedItem,s=e.eHeaderButton;if(this.params.onItemClicked&&this.params.onItemClicked({item:a}),this.activeItem===e){nD(this.params.onActiveItemClicked);return}this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),vr(this.eBody),a.bodyPromise.then(function(l){r.eBody.appendChild(l);var u=!r.focusService.isKeyboardMode();if(r.focusService.focusInto(r.eBody,!1,u),a.afterAttachedCallback&&a.afterAttachedCallback(r.afterAttachedParams),r.params.keepScrollPosition){var c=a.getScrollableContainer&&a.getScrollableContainer()||l;r.lastScrollListener=r.addManagedListener(c,"scroll",function(){r.tabbedItemScrollMap.set(a.name,c.scrollTop)});var d=r.tabbedItemScrollMap.get(a.name);d!==void 0&&setTimeout(function(){c.scrollTop=d},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),(i=(o=this.activeItem.tabbedItem).afterDetachedCallback)===null||i===void 0||i.call(o)),s.classList.add("ag-tab-selected"),this.activeItem=e},Yh([w("focusService")],t.prototype,"focusService",void 0),Yh([G("eHeader")],t.prototype,"eHeader",void 0),Yh([G("eBody")],t.prototype,"eBody",void 0),Yh([M],t.prototype,"postConstruct",null),t}(se);function i2(n){return ge(function(){return console.warn("AG Grid: Since v29 simpleHttpRequest has been deprecated as it was only meant for use in internal AG Grid documentation examples. Please use the browser fetch api directly.")},"simpleHttpRequest"),new yn(function(t){var e=new XMLHttpRequest;e.open("GET",n.url),e.send(),e.onreadystatechange=function(){e.readyState===4&&e.status===200&&t(JSON.parse(e.responseText))}})}var a2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),s2=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},l2=50,pA=function(n){a2(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return t.prototype.observeResize=function(e,r){var o=this,i=this.gridOptionsService.getWindow(),a=function(){var c=new i.ResizeObserver(r);return c.observe(e),function(){return c.disconnect()}},s=function(){var c=dS(e),d=cS(e),f=!0,p=function(){if(f){var h=dS(e),v=cS(e),C=h!==c||v!==d;C&&(c=h,d=v,r()),o.doNextPolyfillTurn(p)}};return p(),function(){return f=!1}},l=this.gridOptionsService.is("suppressBrowserResizeObserver"),u=!!i.ResizeObserver;return u&&!l?a():s()},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){var r=function(){var o=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],o.forEach(function(i){return i()})};this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout(r,l2)}},t=s2([H("resizeObserverService")],t),t}(F),u2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},hA=function(n){u2(t,n);function t(){var e=n!==null&&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.lastPage=0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return t.prototype.setScrollTop=function(e){var r=this.gridOptionsService.is("pagination");if(this.scrollGoingDown=e>=this.lastScrollTop,r&&e===0){var o=this.paginationProxy.getCurrentPage();o!==this.lastPage&&(this.lastPage=o,this.scrollGoingDown=!0)}this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsService.is("suppressAnimationFrame")},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){this.useAnimationFrame===!1&&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,a=i.list,s=this.destroyTasks,l=new Date().getTime(),u=new Date().getTime()-l,c=e<=0,d=this.ctrlsService.getGridBodyCtrl();c||u<e;){var f=d.getScrollFeature().scrollGridIfNeeded();if(!f){var p=void 0;if(o.length)this.sortTaskList(r),p=o.pop().task;else if(a.length)this.sortTaskList(i),p=a.pop().task;else if(s.length)p=s.pop();else{this.cancelledTasks.clear();break}this.cancelledTasks.has(p)||p()}u=new Date().getTime()-l}o.length||a.length||s.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);this.requestAnimationFrame(e)},t.prototype.requestAnimationFrame=function(e){var r=this.gridOptionsService.getWindow();r.requestAnimationFrame?r.requestAnimationFrame(e):r.webkitRequestAnimationFrame?r.webkitRequestAnimationFrame(e):r.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var r=this,o=!1;return function(){if(!r.isOn()){r.getFrameworkOverrides().setTimeout(e,0);return}o||(o=!0,r.addDestroyTask(function(){o=!1,e()}))}},Xh([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Xh([w("paginationProxy")],t.prototype,"paginationProxy",void 0),Xh([M],t.prototype,"init",null),t=Xh([H("animationFrameService")],t),t}(F),c2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},gA=function(n){c2(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return 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();e.forEach(function(l){return r.cloneItemIntoDummy(l,o)}),i.appendChild(o);var a=o.offsetWidth;i.removeChild(o);var s=this.getAutoSizePadding();return a+s},t.prototype.getAutoSizePadding=function(){var e=this.gridOptionsService.getNum("autoSizePadding");return e!=null&&e>=0?e:20},t.prototype.getHeaderCellForColumn=function(e){var r=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(o){var i=o.getHtmlElementForColumnHeader(e);i!=null&&(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"),a=i.classList,s=["ag-header-cell","ag-header-group-cell"].some(function(f){return o.classList.contains(f)});s?(a.add("ag-header","ag-header-row"),i.style.position="static"):a.add("ag-row");for(var l=e.parentElement;l;){var u=["ag-header-row","ag-row"].some(function(f){return l.classList.contains(f)});if(u){for(var c=0;c<l.classList.length;c++){var d=l.classList[c];d!="ag-row-position-absolute"&&a.add(d)}break}l=l.parentElement}i.appendChild(o),r.appendChild(i)},Yc([w("rowRenderer")],t.prototype,"rowRenderer",void 0),Yc([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Yc([w("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),Yc([M],t.prototype,"postConstruct",null),t=Yc([H("autoWidthCalculator")],t),t}(F),d2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},f2=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p2=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},h2=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},g2=function(n){d2(t,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 t.prototype.postConstruct=function(){var e=this;this.isClientSide=this.rowModel.getType()==="clientSide",this.ctrlsService.whenReady(function(r){e.gridBodyCtrl=r.gridBodyCtrl})},t.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},t.prototype.checkStickyRows=function(){var e=this,r=0;if(!this.gridOptionsService.isGroupRowsSticky())return this.refreshNodesAndContainerHeight([],r);for(var o=[],i=this.rowRenderer.getFirstVisibleVerticalPixel(),a=function(p){var h,v,C;o.push(p);var m;if(e.isClientSide){for(var y=p;y.expanded;)if(y.master)y=y.detailNode;else if(y.childrenAfterSort){if(y.childrenAfterSort.length===0)break;y=Ge(y.childrenAfterSort)}m=y.rowTop+y.rowHeight}else if(p.master)m=p.detailNode.rowTop+p.detailNode.rowHeight;else{var S=(h=p.childStore)===null||h===void 0?void 0:h.getStoreBounds();m=((v=S?.heightPx)!==null&&v!==void 0?v:0)+((C=S?.topPx)!==null&&C!==void 0?C:0)}var E=i+r+p.rowHeight;m<E?p.stickyRowTop=r+(m-E):p.stickyRowTop=r,r=0,o.forEach(function(R){var x=R.stickyRowTop+R.rowHeight;r<x&&(r=x)})};;){var s=i+r,l=this.rowModel.getRowIndexAtPixel(s),u=this.rowModel.getRow(l);if(u==null||u.level<0)break;for(var c=[],d=u.parent;d.level>=0;)c.push(d),d=d.parent;var f=c.reverse().find(function(p){return o.indexOf(p)<0&&p.displayed});if(f){a(f);continue}if(u.isExpandable()&&u.expanded&&u.rowTop<s){a(u);continue}break}return this.refreshNodesAndContainerHeight(o,r)},t.prototype.refreshStickyNode=function(e){for(var r=[],o=0;o<this.stickyRowCtrls.length;o++){var i=this.stickyRowCtrls[o].getRowNode();i!==e&&r.push(i)}this.refreshNodesAndContainerHeight(r,this.containerHeight)&&this.checkStickyRows()},t.prototype.refreshNodesAndContainerHeight=function(e,r){var o,i,a,s=this,l=!1,u=this.stickyRowCtrls.filter(function(C){return e.indexOf(C.getRowNode())===-1}),c=e.filter(function(C){return s.stickyRowCtrls.findIndex(function(m){return m.getRowNode()===C})===-1});(u.length||c.length)&&(l=!0);var d={};u.forEach(function(C){d[C.getRowNode().id]=C,s.stickyRowCtrls=s.stickyRowCtrls.filter(function(m){return m!==C})});try{for(var f=f2(Object.values(d)),p=f.next();!p.done;p=f.next()){var h=p.value;h.getRowNode().sticky=!1}}catch(C){o={error:C}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}this.destroyRowCtrls(d,!1);var v=c.map(function(C){return C.sticky=!0,s.createRowCon(C,!1,!1)});return(a=this.stickyRowCtrls).push.apply(a,h2([],p2(v))),this.stickyRowCtrls.forEach(function(C){return C.setRowTop(C.getRowNode().stickyRowTop)}),this.stickyRowCtrls.sort(function(C,m){return m.getRowNode().rowIndex-C.getRowNode().rowIndex}),this.containerHeight!==r&&(this.containerHeight=r,this.gridBodyCtrl.setStickyTopHeight(r),l=!0),l},Qh([w("rowModel")],t.prototype,"rowModel",void 0),Qh([w("rowRenderer")],t.prototype,"rowRenderer",void 0),Qh([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Qh([M],t.prototype,"postConstruct",null),t}(F),v2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_a=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},Ea=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},m2=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y2=10,vA=function(n){v2(t,n);function t(){var e=n!==null&&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 t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()})},t.prototype.initialise=function(){if(this.addManagedListener(this.eventService,_.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,_.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_BODY_SCROLL,this.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,_.EVENT_BODY_HEIGHT_CHANGED,this.redraw.bind(this)),this.addManagedPropertyListener("domLayout",this.onDomLayoutChanged.bind(this)),this.addManagedPropertyListener("rowClass",this.redrawRows.bind(this)),this.gridOptionsService.isGroupRowsSticky()){var e=this.rowModel.getType();(e==="clientSide"||e==="serverSide")&&(this.stickyRowFeature=this.createManagedBean(new g2(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this))))}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout("print"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.is("embedFullWidthRows"),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsService.is("keepDetailRows")){var e=this.getKeepDetailRowsCount(),r=e??3;this.cachedRowCtrls=new C2(r)}},t.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptionsService.getNum("keepDetailRowsCount");return D(e)&&e>0?e:y2},t.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},t.prototype.updateAllRowCtrls=function(){var e=oi(this.rowCtrlsByRowIndex),r=this.gridOptionsService.is("ensureDomOrder"),o=this.gridOptionsService.isDomLayout("print");(r||o)&&e.sort(function(s,l){return s.getRowNode().rowIndex-l.getRowNode.rowIndex});var i=oi(this.zombieRowCtrls),a=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];i.length>0||a.length>0?this.allRowCtrls=Ea(Ea(Ea([],_a(e)),_a(i)),_a(a)):this.allRowCtrls=e},t.prototype.onCellFocusChanged=function(e){this.getAllCellCtrls().forEach(function(r){return r.onCellFocused(e)}),this.getFullWidthRowCtrls().forEach(function(r){return r.onFullWidthRowFocused(e)})},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_CELL_FOCUSED,function(o){e.onCellFocusChanged(o)}),this.addManagedListener(this.eventService,_.EVENT_CELL_FOCUS_CLEARED,function(){e.onCellFocusChanged()}),this.addManagedListener(this.eventService,_.EVENT_FLASH_CELLS,function(o){e.getAllCellCtrls().forEach(function(i){return i.onFlashCells(o)})}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_HOVER_CHANGED,function(){e.getAllCellCtrls().forEach(function(o){return o.onColumnHover()})}),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){e.getAllCellCtrls().forEach(function(o){return o.onDisplayedColumnsChanged()})}),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){e.printLayout&&e.getAllCellCtrls().forEach(function(o){return o.onLeftChanged()})});var r=this.gridOptionsService.is("enableRangeSelection");r&&(this.addManagedListener(this.eventService,_.EVENT_RANGE_SELECTION_CHANGED,function(){e.getAllCellCtrls().forEach(function(o){return o.onRangeSelectionChanged()})}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_MOVED,function(){e.getAllCellCtrls().forEach(function(o){return o.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PINNED,function(){e.getAllCellCtrls().forEach(function(o){return o.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VISIBLE,function(){e.getAllCellCtrls().forEach(function(o){return o.updateRangeBordersIfRangeCount()})})),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,_.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(d){e.getAllCellCtrls().forEach(function(f){f.getColumn()===o&&d(f)})},a=function(){i(function(d){return d.onLeftChanged()})},s=function(){i(function(d){return d.onWidthChanged()})},l=function(){i(function(d){return d.onFirstRightPinnedChanged()})},u=function(){i(function(d){return d.onLastLeftPinnedChanged()})},c=function(){i(function(d){return d.onColDefChanged()})};o.addEventListener("leftChanged",a),o.addEventListener("widthChanged",s),o.addEventListener("firstRightPinnedChanged",l),o.addEventListener("lastLeftPinnedChanged",u),o.addEventListener("colDefChanged",c),e.destroyFuncsForColumnListeners.push(function(){o.removeEventListener("leftChanged",a),o.removeEventListener("widthChanged",s),o.removeEventListener("firstRightPinnedChanged",l),o.removeEventListener("lastLeftPinnedChanged",u),o.removeEventListener("colDefChanged",c)})})},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsService.isDomLayout("print"),r=e||this.gridOptionsService.is("embedFullWidthRows"),o=r!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=r,o&&this.redrawAfterModelUpdate({domLayoutChanged:!0})},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var r={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(r)},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.getCentreRowCtrls=function(){return this.allRowCtrls},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 a=new Ma(i,o.beans,!1,!1,o.printLayout);e.push(a)})},t.prototype.onPinnedRowDataChanged=function(){var e={recycleRows:!0};this.redrawAfterModelUpdate(e)},t.prototype.redrawRow=function(e,r){var o=this;if(r===void 0&&(r=!1),e.sticky)this.stickyRowFeature.refreshStickyNode(e);else{var i=function(a){var s=a[e.rowIndex];s&&s.getRowNode()===e&&(s.destroyFirstPass(),s.destroySecondPass(),a[e.rowIndex]=o.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":i(this.topRowCtrls);case"bottom":i(this.bottomRowCtrls);default:i(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}r||this.dispatchDisplayedRowsChanged(!1)},t.prototype.redrawRows=function(e){var r=this,o=e!=null;if(o){e?.forEach(function(i){return r.redrawRow(i,!0)}),this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var r=e?.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(r==null)return null;var o=this.gridOptionsService.getDocument(),i=o.activeElement,a=this.gridOptionsService.getDomData(i,ba.DOM_DATA_KEY_CELL_CTRL),s=this.gridOptionsService.getDomData(i,Ma.DOM_DATA_KEY_ROW_CTRL),l=a||s;return l?r:null},t.prototype.redrawAfterModelUpdate=function(e){e===void 0&&(e={}),this.getLockOnRefresh();var r=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var o=!e.domLayoutChanged&&!!e.recycleRows,i=e.animate&&this.gridOptionsService.isAnimateRows(),a=o?this.getRowsToRecycle():null;o||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows(),this.recycleRows(a,i),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),r!=null&&this.restoreFocusedCell(r),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var r=e.newData||e.newPage,o=this.gridOptionsService.is("suppressScrollOnNewData");r&&!o&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout){this.rowContainerHeightService.setModelHeight(null);return}var e=this.paginationProxy.getCurrentPageHeight();e===0&&(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.setRestoreFocusedCell(e),this.onCellFocusChanged({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,api:this.beans.gridApi,columnApi:this.beans.columnApi,context:this.beans.gridOptionsService.context,type:"mock"}))},t.prototype.stopEditing=function(e){e===void 0&&(e=!1),this.getAllRowCtrls().forEach(function(r){r.stopEditing(e)})},t.prototype.getAllCellCtrls=function(){for(var e=[],r=this.getAllRowCtrls(),o=r.length,i=0;i<o;i++)for(var a=r[i].getAllCellCtrls(),s=a.length,l=0;l<s;l++)e.push(a[l]);return e},t.prototype.getAllRowCtrls=function(){var e,r,o=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],i=Ea(Ea(Ea([],_a(this.topRowCtrls)),_a(this.bottomRowCtrls)),_a(o));try{for(var a=m2(Object.keys(this.rowCtrlsByRowIndex)),s=a.next();!s.done;s=a.next()){var l=s.value;i.push(this.rowCtrlsByRowIndex[l])}}catch(u){e={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.addRenderedRowListener=function(e,r,o){var i=this.rowCtrlsByRowIndex[r];i&&i.addEventListener(e,o)},t.prototype.flashCells=function(e){e===void 0&&(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){var r=this;e===void 0&&(e={});var o={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach(function(i){if(i.refreshShouldDestroy()){var a=i.getRowCtrl();a&&a.refreshCell(i)}else i.refreshCell(o)}),e.rowNodes&&(this.getRowCtrls(e.rowNodes).forEach(function(i){if(i.isFullWidth()){var a=i.refreshFullWidth();a||r.redrawRow(i.getRowNode(),!0)}}),this.dispatchDisplayedRowsChanged(!1))},t.prototype.getCellRendererInstances=function(e){var r=this,o,i=this.getCellCtrls(e.rowNodes,e.columns).map(function(l){return l.getCellRenderer()}).filter(function(l){return l!=null});if(!((o=e.columns)===null||o===void 0)&&o.length)return i;var a=[],s=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach(function(l){if(!(s&&!r.isRowInMap(l.getRowNode(),s))&&l.isFullWidth()){var u=l.getFullWidthCellRenderer();u&&a.push(u)}}),Ea(Ea([],_a(a)),_a(i))},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==="top"?r.top[i]=o:o.rowPinned==="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==="bottom"?r.bottom[o]!=null:i==="top"?r.top[o]!=null:r.normal[o]!=null},t.prototype.getRowCtrls=function(e){var r=this,o=this.mapRowNodes(e),i=this.getAllRowCtrls();return!e||!o?i:i.filter(function(a){var s=a.getRowNode();return r.isRowInMap(s,o)})},t.prototype.getCellCtrls=function(e,r){var o=this,i;D(r)&&(i={},r.forEach(function(s){var l=o.columnModel.getGridColumn(s);D(l)&&(i[l.getId()]=!0)}));var a=[];return this.getRowCtrls(e).forEach(function(s){s.getAllCellCtrls().forEach(function(l){var u=l.getColumn().getId(),c=i&&!i[u];c||a.push(l)})}),a},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.getRowsToRecycle=function(){var e=[];st(this.rowCtrlsByRowIndex,function(o,i){var a=i.getRowNode().id==null;a&&e.push(o)}),this.removeRowCtrls(e);var r={};return st(this.rowCtrlsByRowIndex,function(o,i){var a=i.getRowNode();r[a.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.onBodyScroll=function(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})},t.prototype.redraw=function(e){e===void 0&&(e={});var r=e.afterScroll,o;this.stickyRowFeature&&Bg()&&(o=this.getCellToRestoreFocusToAfterRefresh()||void 0);var i=this.firstRenderedRow,a=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();var s=!1;this.stickyRowFeature&&(s=this.stickyRowFeature.checkStickyRows());var l=this.firstRenderedRow!==i||this.lastRenderedRow!==a;if(!(r&&!s&&!l)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,r),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(r),o!=null)){var u=this.getCellToRestoreFocusToAfterRefresh();o!=null&&u==null&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(o))}},t.prototype.removeRowCompsNotToDraw=function(e){var r={};e.forEach(function(a){return r[a]=!0});var o=Object.keys(this.rowCtrlsByRowIndex),i=o.filter(function(a){return!r[a]});this.removeRowCtrls(i)},t.prototype.calculateIndexesToDraw=function(e){var r=this,o=$D(this.firstRenderedRow,this.lastRenderedRow),i=function(c,d){var f=d.getRowNode().rowIndex;f!=null&&(f<r.firstRenderedRow||f>r.lastRenderedRow)&&r.doNotUnVirtualiseRow(d)&&o.push(f)};st(this.rowCtrlsByRowIndex,i),st(e,i),o.sort(function(c,d){return c-d});for(var a=[],s=0;s<o.length;s++){var l=o[s],u=this.paginationProxy.getRow(l);u&&!u.sticky&&a.push(l)}return a},t.prototype.recycleRows=function(e,r,o){var i=this;r===void 0&&(r=!1),o===void 0&&(o=!1);var a=this.calculateIndexesToDraw(e);if(this.removeRowCompsNotToDraw(a),this.printLayout&&(r=!1),a.forEach(function(l){var u=i.createOrUpdateRowCtrl(l,e,r,o);D(u)}),e){var s=o&&!this.gridOptionsService.is("suppressAnimationFrame")&&!this.printLayout;s?this.beans.animationFrameService.addDestroyTask(function(){i.destroyRowCtrls(e,r),i.updateAllRowCtrls(),i.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,r)}this.updateAllRowCtrls()},t.prototype.dispatchDisplayedRowsChanged=function(e){e===void 0&&(e=!1);var r={type:_.EVENT_DISPLAYED_ROWS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(r)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),r=this.columnModel.isPinningRight(),o=this.pinningLeft!==e||r!==this.pinningRight;o&&(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.redraw({afterScroll:!0})},t.prototype.getFullWidthRowCtrls=function(e){var r=this,o=this.mapRowNodes(e);return this.getAllRowCtrls().filter(function(i){if(!i.isFullWidth())return!1;var a=i.getRowNode();return!(o!=null&&!r.isRowInMap(a,o))})},t.prototype.createOrUpdateRowCtrl=function(e,r,o,i){var a,s=this.rowCtrlsByRowIndex[e];s||(a=this.paginationProxy.getRow(e),D(a)&&D(r)&&r[a.id]&&a.alreadyRendered&&(s=r[a.id],r[a.id]=null));var l=!s;if(l)if(a||(a=this.paginationProxy.getRow(e)),D(a))s=this.createRowCon(a,o,i);else return;return a&&(a.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s,s},t.prototype.destroyRowCtrls=function(e,r){var o=this,i=[];st(e,function(a,s){if(s){if(o.cachedRowCtrls&&s.isCacheable()){o.cachedRowCtrls.addRow(s);return}s.destroyFirstPass(),r?(o.zombieRowCtrls[s.getInstanceId()]=s,i.push(function(){s.destroySecondPass(),delete o.zombieRowCtrls[s.getInstanceId()]})):s.destroySecondPass()}}),r&&(i.push(function(){o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()}),tD(i))},t.prototype.getRowBuffer=function(){var e=this.gridOptionsService.getNum("rowBuffer");return typeof e=="number"?e<0&&(ge(function(){return console.warn("AG Grid: rowBuffer should not be negative")},"warn rowBuffer negative"),e=0,this.gridOptionsService.set("rowBuffer",0)):e=10,e},t.prototype.getRowBufferInPixels=function(){var e=this.getRowBuffer(),r=this.gridOptionsService.getRowHeightAsNumber();return e*r},t.prototype.workOutFirstAndLastRowsToRender=function(){this.rowContainerHeightService.updateOffset();var e,r;if(!this.paginationProxy.isRowsToRender())e=0,r=-1;else if(this.printLayout)this.environment.refreshRowHeightVariable(),e=this.paginationProxy.getPageFirstRow(),r=this.paginationProxy.getPageLastRow();else{var o=this.getRowBufferInPixels(),i=this.ctrlsService.getGridBodyCtrl(),a=this.gridOptionsService.is("suppressRowVirtualisation"),s=!1,l=void 0,u=void 0;do{var c=this.paginationProxy.getPixelOffset(),d=this.paginationProxy.getCurrentPagePixelRange(),f=d.pageFirstPixel,p=d.pageLastPixel,h=this.rowContainerHeightService.getDivStretchOffset(),v=i.getScrollFeature().getVScrollPosition(),C=v.top,m=v.bottom;a?(l=f+h,u=p+h):(l=Math.max(C+c-o,f)+h,u=Math.min(m+c+o,p)+h),this.firstVisibleVPixel=Math.max(C+c,f)+h,s=this.ensureAllRowsInRangeHaveHeightsCalculated(l,u)}while(s);var y=this.paginationProxy.getRowIndexAtPixel(l),S=this.paginationProxy.getRowIndexAtPixel(u),E=this.paginationProxy.getPageFirstRow(),R=this.paginationProxy.getPageLastRow();y<E&&(y=E),S>R&&(S=R),e=y,r=S}var x=this.gridOptionsService.isDomLayout("normal"),P=this.gridOptionsService.is("suppressMaxRenderedRowRestriction"),T=Math.max(this.getRowBuffer(),500);x&&!P&&r-e>T&&(r=e+T);var L=e!==this.firstRenderedRow,I=r!==this.lastRenderedRow;if(L||I){this.firstRenderedRow=e,this.lastRenderedRow=r;var b={type:_.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:r};this.eventService.dispatchEvent(b)}},t.prototype.dispatchFirstDataRenderedEvent=function(){var e=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var r={type:_.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 r=!1,o=!0,i=e.getRowNode(),a=this.focusService.isRowNodeFocused(i),s=e.isEditing(),l=i.detail,u=a||s||l;if(!u)return r;var c=this.paginationProxy.isRowPresent(i);return c?o:r},t.prototype.createRowCon=function(e,r,o){var i=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(i)return i;var a=this.gridOptionsService.is("suppressAnimationFrame"),s=o&&!a&&!this.printLayout,l=new Ma(e,this.beans,r,s,this.printLayout);return l},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"top":r=this.topRowCtrls[o];break;case"bottom":r=this.bottomRowCtrls[o];break;default:r=this.rowCtrlsByRowIndex[o],r||(r=this.getStickyTopRowCtrls().find(function(i){return i.getRowNode().rowIndex===o})||null);break}return r},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,r){var o=e==null||r==null;if(o)return!1;var i=e>this.lastRenderedRow,a=r<this.firstRenderedRow,s=!a&&!i;return s},yo([w("animationFrameService")],t.prototype,"animationFrameService",void 0),yo([w("paginationProxy")],t.prototype,"paginationProxy",void 0),yo([w("columnModel")],t.prototype,"columnModel",void 0),yo([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),yo([w("rowModel")],t.prototype,"rowModel",void 0),yo([w("focusService")],t.prototype,"focusService",void 0),yo([w("beans")],t.prototype,"beans",void 0),yo([w("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),yo([w("ctrlsService")],t.prototype,"ctrlsService",void 0),yo([M],t.prototype,"postConstruct",null),t=yo([H("rowRenderer")],t),t}(F),C2=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(t==null||t.id==null)return null;var e=this.entriesMap[t.id];if(!e)return null;this.removeFromCache(e),e.setCached(!1);var r=e.getRowNode()!=t;return r?null:e},n.prototype.removeFromCache=function(t){var e=t.getRowNode().id;delete this.entriesMap[e],mn(this.entriesList,t)},n.prototype.getEntries=function(){return this.entriesList},n}(),w2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),SI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},mA=function(n){w2(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.formatValue=function(e,r,o,i,a){a===void 0&&(a=!0);var s=null,l,u=e.getColDef();if(i?l=i:a&&(l=u.valueFormatter),l){var c={value:o,node:r,data:r?r.data:null,colDef:u,column:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};typeof l=="function"?s=l(c):s=this.expressionService.evaluate(l,c)}else if(u.refData)return u.refData[o]||"";return s==null&&Array.isArray(o)&&(s=o.join(", ")),s},SI([w("expressionService")],t.prototype,"expressionService",void 0),t=SI([H("valueFormatterService")],t),t}(F),S2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Gw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},yA=function(n){S2(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsService.get("pinnedTopRowData")),this.setPinnedBottomRowData(this.gridOptionsService.get("pinnedBottomRowData"))},t.prototype.isEmpty=function(e){var r=e==="top"?this.pinnedTopRows:this.pinnedBottomRows;return Cn(r)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,r){var o=r==="top"?this.pinnedTopRows:this.pinnedBottomRows;if(Cn(o))return 0;for(var i=0;i<o.length;i++){var a=o[i],s=a.rowTop+a.rowHeight-1;if(s>=e)return i}return o.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var r={type:_.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(r)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var r={type:_.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(r)},t.prototype.createNodesFromData=function(e,r){var o=this,i=[];if(e){var a=0;e.forEach(function(s,l){var u=new ce(o.beans);u.data=s;var c=r?ce.ID_PREFIX_TOP_PINNED:ce.ID_PREFIX_BOTTOM_PINNED;u.id=c+l,u.rowPinned=r?"top":"bottom",u.setRowTop(a),u.setRowHeight(o.gridOptionsService.getRowHeightForNode(u).height),u.setRowIndex(l),a+=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){Cn(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){Cn(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||e.length===0)return 0;var r=Ge(e);return r.rowTop+r.rowHeight},Gw([w("beans")],t.prototype,"beans",void 0),Gw([M],t.prototype,"init",null),t=Gw([H("pinnedRowModel")],t),t}(F);(function(n){n.Applied="Applied",n.StoreNotFound="StoreNotFound",n.StoreLoading="StoreLoading",n.StoreWaitingToLoad="StoreWaitingToLoad",n.StoreLoadingFailed="StoreLoadingFailed",n.StoreWrongType="StoreWrongType",n.Cancelled="Cancelled"})(g.ServerSideTransactionResultStatus||(g.ServerSideTransactionResultStatus={}));var ev=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){e===void 0&&(e=!1),r===void 0&&(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];){var o={rowNode:e,children:null};this.mapToItems[e.id]=o,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],a=this.mapToItems[r.parent.id];a.children||(a.children=[]),a.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],o=e.filter(function(i){return r[i.getId()]});return o},n.prototype.getNotValueColumnsForNode=function(t,e){if(!this.keepingColumns)return null;var r=this.nodeIdsToColumns[t.id],o=e.filter(function(i){return!r[i.getId()]});return o},n}(),_2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Og=function(n){_2(t,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 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){var r=this.isRequestMostRecentAndLive(e);r&&(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();var o=this.isRequestMostRecentAndLive(e);o&&(this.state=t.STATE_LOADED,this.processServerResult(r))},t.prototype.dispatchLoadCompleted=function(e){e===void 0&&(e=!0);var r={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(r)},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),E2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},R2=function(n,t){return function(e,r){t(e,r,n)}},CA=function(n){E2(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.activeBlockLoadsCount=0,r.blocks=[],r.active=!0,r}e=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();var r=this.gridOptionsService.getNum("blockLoadDebounceMillis");r&&r>0&&(this.checkBlockToLoadDebounce=Q.debounce(this.performCheckBlocksToLoad.bind(this),r))},t.prototype.setBeans=function(r){this.logger=r.create("RowNodeBlockLoader")},t.prototype.getMaxConcurrentDatasourceRequests=function(){var r=this.gridOptionsService.getNum("maxConcurrentDatasourceRequests");if(r==null)return 2;if(!(r<=0))return r},t.prototype.addBlock=function(r){this.blocks.push(r),r.addEventListener(Og.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(r){Q.removeFromArray(this.blocks,r)},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:e.BLOCK_LOADED_EVENT}),this.activeBlockLoadsCount==0&&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(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){this.logger.log("checkBlockToLoad: max loads exceeded");return}var r=this.getAvailableLoadingCount(),o=this.blocks.filter(function(i){return i.getState()===Og.STATE_WAITING_TO_LOAD}).slice(0,r);this.registerLoads(o.length),o.forEach(function(i){return i.load()}),this.printCacheStatus()}},t.prototype.getBlockState=function(){if(this.gridOptionsService.isRowModelType("serverSide")){var r=this.rowModel;return r.getBlockStates()}var o={};return this.blocks.forEach(function(i){var a=i.getBlockStateJson(),s=a.id,l=a.state;o[s]=l}),o},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+","+(" blocks = "+JSON.stringify(this.getBlockState())))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.prototype.registerLoads=function(r){this.activeBlockLoadsCount+=r},t.prototype.getAvailableLoadingCount=function(){return this.maxConcurrentRequests!==void 0?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0};var e;return t.BLOCK_LOADED_EVENT="blockLoaded",t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",Jh([w("rowModel")],t.prototype,"rowModel",void 0),Jh([M],t.prototype,"postConstruct",null),Jh([R2(0,er("loggerFactory"))],t.prototype,"setBeans",null),t=e=Jh([H("rowNodeBlockLoader")],t),t}(F),T2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),kw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},wA=function(n){T2(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return t.prototype.postConstruct=function(){this.active=this.gridOptionsService.is("pagination"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,_.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener("pagination",this.onPaginationPageSizeChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,r,o,i){var a=this.rowModel.ensureRowHeightsValid(e,r,this.getPageFirstRow(),this.getPageLastRow());return a&&this.calculatePages(),a},t.prototype.isPaginateChildRows=function(){var e=this.gridOptionsService.is("groupRemoveSingleChildren")||this.gridOptionsService.is("groupRemoveLowestSingleChildren");return e?!0:this.gridOptionsService.is("paginateChildRows")},t.prototype.onModelUpdated=function(e){this.calculatePages();var r={type:_.EVENT_PAGINATION_CHANGED,animate:e?e.animate:!1,newData:e?e.newData:!1,newPage:e?e.newPage:!1,keepRenderedRows:e?e.keepRenderedRows:!1};this.eventService.dispatchEvent(r)},t.prototype.onPaginationPageSizeChanged=function(){this.active=this.gridOptionsService.is("pagination"),this.calculatePages();var e={type:_.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(!(!this.active||this.currentPage===e||typeof this.currentPage!="number")){this.currentPage=e;var r={type:_.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0};this.onModelUpdated(r)}},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 Z(this.topRowBounds)||Z(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){var e=this.topRowBounds?this.topRowBounds.rowTop:0,r=this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0;return{pageFirstPixel:e,pageLastPixel:r}},t.prototype.isRowPresent=function(e){if(!this.rowModel.isRowPresent(e))return!1;var r=e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex;return r},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.forEachNodeOnPage=function(e){for(var r=this.getPageFirstRow(),o=this.getPageLastRow(),i=r;i<=o;i++){var a=this.getRow(i);a&&e(a)}},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){if(!this.active)return!0;var r=this.getPageForIndex(e.rowIndex);return r===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.gridOptionsService.getNum("paginationPageSize"),(this.pageSize==null||this.pageSize<1)&&(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(D(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:_.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.adjustCurrentPageIfInvalid=function(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0){this.setZeroRows();return}var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();var r=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>e&&(o=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(r),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(),this.masterRowCount===0){this.setZeroRows();return}var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},kw([w("rowModel")],t.prototype,"rowModel",void 0),kw([M],t.prototype,"postConstruct",null),t=kw([H("paginationProxy")],t),t}(F),x2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),_I=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},SA=function(n){x2(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return 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(e!=null){for(var a=Object.keys(e),s={},l={},u=function(f){var p=a[f],h=e[p],v;typeof h=="string"?v=c.expressionService.evaluate(h,r):typeof h=="function"&&(v=h(r)),p.split(" ").forEach(function(C){C==null||C.trim()==""||(v?s[C]=!0:l[C]=!0)})},c=this,d=0;d<a.length;d++)u(d);i&&Object.keys(l).forEach(i),Object.keys(s).forEach(o)}},t.prototype.getStaticCellClasses=function(e,r){var o=e.cellClass;if(!o)return[];var i;if(typeof o=="function"){var a=o;i=a(r)}else i=o;return typeof i=="string"&&(i=[i]),i||[]},t.prototype.processStaticCellClasses=function(e,r,o){var i=this.getStaticCellClasses(e,r);i.forEach(function(a){o(a)})},_I([w("expressionService")],t.prototype,"expressionService",void 0),t=_I([H("stylingService")],t),t}(F),P2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),_A=function(n){P2(t,n);function t(e){return n.call(this,e,"ag-toggle-button")||this}return t.prototype.setValue=function(e,r){return n.prototype.setValue.call(this,e,r),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(Rd),O2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),EA=function(n){O2(t,n);function t(e){return n.call(this,e,"ag-text-area",null,"textarea")||this}return 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}(Fa),L2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),RA=function(n){L2(t,n);function t(e){return n.call(this,e,"ag-date-field","date")||this}return t.prototype.postConstruct=function(){var e=this;n.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this));var r=to();this.addManagedListener(this.eInput,"mousedown",function(){e.isDisabled()||r||e.eInput.focus()}),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.setMin=function(e){var r,o=e instanceof Date?(r=Zn(e??null,!1))!==null&&r!==void 0?r:void 0:e;return this.min===o?this:(this.min=o,ni(this.eInput,"min",o),this)},t.prototype.setMax=function(e){var r,o=e instanceof Date?(r=Zn(e??null,!1))!==null&&r!==void 0?r:void 0:e;return this.max===o?this:(this.max=o,ni(this.eInput,"max",o),this)},t.prototype.setStep=function(e){return this.step===e?this:(this.step=e,ni(this.eInput,"step",e),this)},t.prototype.getDate=function(){var e;if(this.eInput.validity.valid)return(e=Jr(this.getValue()))!==null&&e!==void 0?e:void 0},t.prototype.setDate=function(e,r){this.setValue(Zn(e??null,!1),r)},t}(Ha),I2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),TA=function(n){I2(t,n);function t(e){return n.call(this,e,"ag-range-field","range")||this}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this);var e=this.config,r=e.min,o=e.max,i=e.step;r!=null&&this.setMinValue(r),o!=null&&this.setMaxValue(o),this.setStep(i||1)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(r){var o=r.target.value;e.setValue(o)})},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){this.min!=null&&(e=Math.max(parseFloat(e),this.min).toString()),this.max!=null&&(e=Math.min(parseFloat(e),this.max).toString());var o=n.prototype.setValue.call(this,e,r);return this.eInput.value=e,o},t}(Fa),D2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),EI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},A2=function(n){D2(t,n);function t(e,r){var o=n.call(this,'<div class="ag-rich-select-row" role="presentation"></div>')||this;return o.params=e,o.wrapperEl=r,o}return t.prototype.postConstruct=function(){this.addManagedListener(this.getGui(),"mouseup",this.onMouseUp.bind(this))},t.prototype.setState=function(e){var r="";this.params.valueFormatter&&(r=this.params.valueFormatter(e));var o=this.populateWithRenderer(e,r);o||this.populateWithoutRenderer(e,r),this.value=e},t.prototype.highlightString=function(e){var r=this.parsedValue;if(!(this.params.cellRenderer||!D(r)))if(D(e)){var o=r?.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(o>=0){var i=o+e.length,a=xt(r.slice(0,o),!0),s=xt(r.slice(o,i),!0),l=xt(r.slice(i));this.renderValueWithoutRenderer(a+'<span class="ag-rich-select-row-text-highlight">'+s+"</span>"+l)}}else this.renderValueWithoutRenderer(r)},t.prototype.updateHighlighted=function(e){var r,o=this.getGui(),i="ag-rich-select-row-"+this.getCompId();if((r=o.parentElement)===null||r===void 0||r.setAttribute("id",i),e){var a=this.getParentComponent().getAriaElement();LS(a,i),this.wrapperEl.setAttribute("data-active-option",i)}Ds(o.parentElement,e),this.addOrRemoveCssClass("ag-rich-select-row-selected",e)},t.prototype.populateWithoutRenderer=function(e,r){var o=this.gridOptionsService.getDocument(),i=this.getGui(),a=o.createElement("span");a.style.overflow="hidden",a.style.textOverflow="ellipsis";var s=xt(D(r)?r:e,!0);this.parsedValue=D(s)?s:null,i.appendChild(a),this.renderValueWithoutRenderer(s)},t.prototype.renderValueWithoutRenderer=function(e){var r=this.getGui().querySelector("span");r&&(r.innerHTML=D(e)?e:"&nbsp;")},t.prototype.populateWithRenderer=function(e,r){var o=this,i,a;return this.params.cellRenderer&&(a=this.userComponentFactory.getCellRendererDetails(this.params,{value:e,valueFormatted:r,api:this.gridOptionsService.api})),a&&(i=a.newAgStackInstance()),i&&qS(i,this.getGui()),i?(i.then(function(s){o.addDestroyFunc(function(){o.getContext().destroyBean(s)})}),!0):!1},t.prototype.onMouseUp=function(){var e=this.getParentComponent(),r={type:_.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:!1,value:this.value};e?.dispatchEvent(r)},EI([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),EI([M],t.prototype,"postConstruct",null),t}(se),F2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),b2=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},M2=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},xd=function(n){F2(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return 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(a){return i!=null?a.setAttribute("tabindex",i):a.removeAttribute("tabindex")})}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new oA({comp:o,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var r=document.createElement("div"),o=e==="top"?g.TabGuardClassNames.TAB_GUARD_TOP:g.TabGuardClassNames.TAB_GUARD_BOTTOM;return r.classList.add(g.TabGuardClassNames.TAB_GUARD,o),bt(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];vr(this.getFocusableElement()),this.addTabGuards.apply(this,M2([],b2(e)))},t.prototype.forceFocusOutOfContainer=function(e){e===void 0&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(e,r){Ed(e)||(e=e.getGui());var o=this.eBottomGuard;o?o.insertAdjacentElement("beforebegin",e):n.prototype.appendChild.call(this,e,r)},t}(se),N2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},f_=function(n){N2(t,n);function t(e){var r=n.call(this,t.getTemplate(e?.cssIdentifier||"default"))||this;r.renderedRows=new Map,r.rowHeight=20;var o=e||{},i=o.cssIdentifier,a=i===void 0?"default":i,s=o.ariaRole,l=s===void 0?"listbox":s,u=o.listName;return r.cssIdentifier=a,r.ariaRole=l,r.listName=u,r}return 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(),this.addManagedListener(this.eventService,_.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))},t.prototype.onGridStylesChanged=function(){this.rowHeight=this.getItemHeight(),this.refresh()},t.prototype.setAriaProperties=function(){var e=this.localeService.getLocaleTextFunc(),r=e("ariaDefaultListName",this.listName||"List"),o=this.eContainer;bt(o,this.ariaRole),Ii(o,r)},t.prototype.addResizeObserver=function(){var e=this,r=function(){return e.animationFrameService.requestAnimationFrame(function(){return e.drawVirtualRows()})},o=this.resizeObserverService.observeResize(this.getGui(),r);this.addDestroyFunc(o)},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=OD(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 O.UP:case O.DOWN:this.navigate(e.key===O.UP)&&e.preventDefault();break}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():(ii(e),this.forceFocusOutOfContainer(e.shiftKey))},t.prototype.navigate=function(e){if(this.lastFocusedRowIndex==null)return!1;var r=this.lastFocusedRowIndex+(e?-1:1);return r<0||r>=this.model.getRowCount()?!1:(this.focusRow(r),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},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'<div class="ag-virtual-list-viewport ag-'+e+`-virtual-list-viewport" role="presentation">
<div class="ag-virtual-list-container ag-`+e+`-virtual-list-container" ref="eContainer"></div>
</div>`},t.prototype.getItemHeight=function(){return this.environment.getListItemHeight()},t.prototype.ensureIndexVisible=function(e,r){r===void 0&&(r=!0);var o=this.model.getRowCount();if(typeof e!="number"||e<0||e>=o)return console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e),!1;var i=e*this.rowHeight,a=i+this.rowHeight,s=this.getGui(),l=s.scrollTop,u=s.offsetHeight,c=l+u,d=r?0:this.rowHeight,f=l>i+d,p=c<a-d;if(f)return s.scrollTop=i,!0;if(p){var h=a-u;return s.scrollTop=h,!0}return!1},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.setComponentUpdater=function(e){this.componentUpdater=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(e){var r=this;if(!(this.model==null||!this.isAlive())){var o=this.model.getRowCount();this.eContainer.style.height=o*this.rowHeight+"px",ES(function(){return r.eContainer.clientHeight>=o*r.rowHeight},function(){r.isAlive()&&(r.canSoftRefresh(e)?r.drawVirtualRows(!0):(r.clearVirtualRows(),r.drawVirtualRows()))})}},t.prototype.canSoftRefresh=function(e){return!!(e&&this.renderedRows.size&&typeof this.model.areRowsEqual=="function"&&this.componentUpdater)},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach(function(r,o){return e.removeRow(o)})},t.prototype.drawVirtualRows=function(e){if(!(!this.isAlive()||!this.model)){var r=this.getGui(),o=r.scrollTop,i=o+r.offsetHeight,a=Math.floor(o/this.rowHeight),s=Math.floor(i/this.rowHeight);this.ensureRowsRendered(a,s,e)}},t.prototype.ensureRowsRendered=function(e,r,o){var i=this;this.renderedRows.forEach(function(s,l){(l<e||l>r)&&l!==i.lastFocusedRowIndex&&i.removeRow(l)}),o&&this.refreshRows();for(var a=e;a<=r;a++)this.renderedRows.has(a)||a<this.model.getRowCount()&&this.insertRow(a)},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"),bt(i,this.ariaRole==="tree"?"treeitem":"option"),IS(i,this.model.getRowCount()),DS(i,e+1),i.setAttribute("tabindex","-1"),typeof this.model.isRowSelected=="function"){var a=this.model.isRowSelected(e);Ds(i,!!a),VD(i,a)}i.style.height=this.rowHeight+"px",i.style.top=this.rowHeight*e+"px";var s=this.componentCreator(o,i);s.addGuiEventListener("focusin",function(){return r.lastFocusedRowIndex=e}),i.appendChild(s.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:s,eDiv:i,value:o})},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.refreshRows=function(){var e=this,r=this.model.getRowCount();this.renderedRows.forEach(function(o,i){var a,s;if(i>=r)e.removeRow(i);else{var l=e.model.getRow(i);!((s=(a=e.model).areRowsEqual)===null||s===void 0)&&s.call(a,o.value,l)?e.componentUpdater(l,o.rowComponent):e.removeRow(i)}})},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",function(){return e.drawVirtualRows()},{passive:!0})},t.prototype.setModel=function(e){this.model=e},t.prototype.getAriaElement=function(){return this.eContainer},t.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),n.prototype.destroy.call(this))},Zh([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Zh([w("animationFrameService")],t.prototype,"animationFrameService",void 0),Zh([G("eContainer")],t.prototype,"eContainer",void 0),Zh([M],t.prototype,"postConstruct",null),t}(xd),G2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Lg=function(){return Lg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Lg.apply(this,arguments)},RI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},k2=`
<div class="ag-picker-field" role="presentation">
<div ref="eLabel"></div>
<div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed">
<div ref="eDisplayField" class="ag-picker-field-display"></div>
<ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>
<div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
</div>
</div>`,xA=function(n){G2(t,n);function t(e){var r,o,i=n.call(this,Lg(Lg({pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"ag-list",className:"ag-rich-select",pickerIcon:"smallDown",ariaRole:"combobox",template:(r=e?.template)!==null&&r!==void 0?r:k2,modalPicker:!1},e),{maxPickerHeight:(o=e?.maxPickerHeight)!==null&&o!==void 0?o:"calc(var(--ag-row-height) * 6.5)"}))||this;i.searchString="",i.highlightedItem=-1,i.lastRowHovered=-1,i.searchStringCreator=null;var a=e||{},s=a.cellRowHeight,l=a.value,u=a.valueList,c=a.searchStringCreator;return s!=null&&(i.cellRowHeight=s),l!==void 0&&(i.value=l),u!=null&&(i.values=u),c&&(i.searchStringCreator=c),i}return t.prototype.postConstruct=function(){var e=this,r;n.prototype.postConstruct.call(this),this.createLoadingElement(),this.createListComponent();var o=this.config,i=o.allowTyping,a=o.placeholder;i?(this.eInput.setAutoComplete(!1).setInputPlaceholder(a),this.eDisplayField.classList.add("ag-hidden")):this.eInput.setDisplayed(!1),this.eWrapper.tabIndex=(r=this.gridOptionsService.getNum("tabIndex"))!==null&&r!==void 0?r:0;var s=this.config.searchDebounceDelay,l=s===void 0?300:s;this.clearSearchString=wo(this.clearSearchString,l),this.renderSelectedValue(),i&&(this.eInput.onValueChange(function(u){return e.searchTextFromString(u)}),this.addManagedListener(this.eWrapper,"focus",this.onWrapperFocus.bind(this))),this.addManagedListener(this.eWrapper,"focusout",this.onWrapperFocusOut.bind(this))},t.prototype.createLoadingElement=function(){var e=this.gridOptionsService.getDocument(),r=this.localeService.getLocaleTextFunc(),o=e.createElement("div");o.classList.add("ag-loading-text"),o.innerText=r("loadingOoo","Loading..."),this.eLoading=o},t.prototype.createListComponent=function(){var e=this;this.listComponent=this.createBean(new f_({cssIdentifier:"rich-select"})),this.listComponent.setComponentCreator(this.createRowComponent.bind(this)),this.listComponent.setParentComponent(this),this.addManagedListener(this.listComponent,_.EVENT_FIELD_PICKER_VALUE_SELECTED,function(u){e.onListValueSelected(u.value,u.fromEnterKey)});var r=this.cellRowHeight;r&&this.listComponent.setRowHeight(r);var o=this.listComponent.getGui(),i=this.listComponent.getAriaElement();this.addManagedListener(o,"mousemove",this.onPickerMouseMove.bind(this)),this.addManagedListener(o,"mousedown",function(u){return u.preventDefault()}),o.classList.add("ag-rich-select-list");var a="ag-rich-select-list-"+this.listComponent.getCompId();i.setAttribute("id",a);var s=this.localeService.getLocaleTextFunc(),l=s(this.config.pickerAriaLabelKey,this.config.pickerAriaLabelValue);Ii(i,l),BD(this.eWrapper,i)},t.prototype.renderSelectedValue=function(){var e=this,r=this,o=r.value,i=r.eDisplayField,a=r.config,s=this.config.valueFormatter?this.config.valueFormatter(o):o;if(a.allowTyping){this.eInput.setValue(s);return}var l;a.cellRenderer&&(l=this.userComponentFactory.getCellRendererDetails(this.config,{value:o,valueFormatted:s,api:this.gridOptionsService.api}));var u;if(l&&(u=l.newAgStackInstance()),u)vr(i),qS(u,i),u.then(function(d){e.addDestroyFunc(function(){return e.getContext().destroyBean(d)})});else if(D(this.value))i.innerText=s,i.classList.remove("ag-display-as-placeholder");else{var c=a.placeholder;D(c)?(i.innerHTML=""+xt(c),i.classList.add("ag-display-as-placeholder")):vr(i)}},t.prototype.getCurrentValueIndex=function(){var e=this,r=e.currentList,o=e.value;if(o==null)return-1;for(var i=0;i<r.length;i++)if(r[i]===o)return i;return-1},t.prototype.highlightFilterMatch=function(){var e=this,r;(r=this.listComponent)===null||r===void 0||r.forEachRenderedRow(function(o,i){o.highlightString(e.searchString)})},t.prototype.highlightSelectedValue=function(e){var r=this,o;e==null&&(e=this.getCurrentValueIndex()),this.highlightedItem=e,(o=this.listComponent)===null||o===void 0||o.forEachRenderedRow(function(i,a){var s=e===-1?!1:r.highlightedItem===a;i.updateHighlighted(s)})},t.prototype.setRowHeight=function(e){e!==this.cellRowHeight&&(this.cellRowHeight=e),this.listComponent&&this.listComponent.setRowHeight(e)},t.prototype.createPickerComponent=function(){var e=this.values;return e&&this.setValueList({valueList:e}),this.listComponent},t.prototype.setSearchStringCreator=function(e){this.searchStringCreator=e},t.prototype.setValueList=function(e){var r=e.valueList,o=e.refresh;this.listComponent&&this.currentList!==r&&(this.currentList=r,this.listComponent.setModel({getRowCount:function(){return r.length},getRow:function(i){return r[i]}}),o&&(this.values?this.listComponent.refresh():(this.values=r,this.isPickerDisplayed&&this.showCurrentValueInPicker())))},t.prototype.showPicker=function(){n.prototype.showPicker.call(this),this.showCurrentValueInPicker()},t.prototype.showCurrentValueInPicker=function(){var e,r;if(this.listComponent){if(!this.currentList){this.isPickerDisplayed&&this.eLoading&&this.listComponent.appendChild(this.eLoading);return}!((e=this.eLoading)===null||e===void 0)&&e.offsetParent&&((r=this.eLoading.parentElement)===null||r===void 0||r.removeChild(this.eLoading));var o=this.getCurrentValueIndex();o!==-1?(this.listComponent.refresh(),this.listComponent.ensureIndexVisible(o),this.listComponent.refresh(!0),this.highlightSelectedValue(o)):this.listComponent.refresh()}},t.prototype.beforeHidePicker=function(){this.highlightedItem=-1,n.prototype.beforeHidePicker.call(this)},t.prototype.onWrapperFocus=function(e){this.eInput&&this.eInput.getFocusableElement().focus()},t.prototype.onWrapperFocusOut=function(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()},t.prototype.buildSearchStringFromKeyboardEvent=function(e){var r=e.key;if(r===O.BACKSPACE)this.searchString=this.searchString.slice(0,-1),r="";else if(!jg(e))return;e.preventDefault(),this.searchTextFromCharacter(r)},t.prototype.searchTextFromCharacter=function(e){this.searchString+=e,this.runSearch(),this.clearSearchString()},t.prototype.searchTextFromString=function(e){e==null&&(e=""),this.searchString=e,this.runSearch()},t.prototype.buildSearchStrings=function(e){var r=this.config.valueFormatter,o=r===void 0?function(a){return a}:r,i;return typeof e[0]=="number"||typeof e[0]=="string"?i=e.map(function(a){return o(a)}):typeof e[0]=="object"&&this.searchStringCreator&&(i=this.searchStringCreator(e)),i},t.prototype.getSuggestionsAndFilteredValues=function(e,r){var o=this,i=[],a=[];if(!e.length)return{suggestions:i,filteredValues:a};var s=this.config,l=s.allowTyping,u=s.searchType,c=u===void 0?"fuzzy":u,d=s.filterList,f=d&&l;if(c==="fuzzy"){var p=Sd(this.searchString,r,!0);i=p.values;var h=p.indices;if(f&&h.length)for(var v=0;v<h.length;v++)a.push(this.values[h[v]])}else i=r.filter(function(C,m){var y=C.toLocaleLowerCase(),S=o.searchString.toLocaleLowerCase(),E=c==="match"?y.startsWith(S):y.indexOf(S)!==-1;return f&&E&&a.push(o.values[m]),E});return{suggestions:i,filteredValues:a}},t.prototype.filterListModel=function(e){var r=this.config,o=r.allowTyping,i=r.filterList;!o||!i||this.setValueList({valueList:e,refresh:!0})},t.prototype.runSearch=function(){var e,r,o,i=this.values,a=this.buildSearchStrings(i);if(!a){this.highlightSelectedValue(-1);return}var s=this.getSuggestionsAndFilteredValues(this.searchString,a),l=s.suggestions,u=s.filteredValues,c=this.config,d=c.allowTyping,f=c.filterList,p=c.highlightMatch,h=c.searchType,v=h===void 0?"fuzzy":h,C=u.length,m=!!(d&&f&&this.searchString!=="");if(m&&this.filterListModel(m?u:i),l.length){var y=m?0:a.indexOf(l[0]);this.selectListItem(y),p&&v!=="fuzzy"&&this.highlightFilterMatch()}else if(this.highlightSelectedValue(-1),!m||C)(e=this.listComponent)===null||e===void 0||e.ensureIndexVisible(0);else if(m){this.getAriaElement().removeAttribute("data-active-option");var S=(r=this.listComponent)===null||r===void 0?void 0:r.getAriaElement();S&&LS(S,null)}var E=(o=this.listComponent)===null||o===void 0?void 0:o.getGui();E?.classList.toggle("ag-hidden",m&&!C)},t.prototype.clearSearchString=function(){this.searchString=""},t.prototype.selectListItem=function(e,r,o){if(!(!this.isPickerDisplayed||!this.listComponent||e<0||e>=this.currentList.length)){var i=this.listComponent.ensureIndexVisible(e,!r);i&&!o&&this.listComponent.refresh(!0),this.highlightSelectedValue(e)}},t.prototype.setValue=function(e,r,o){var i=this.currentList.indexOf(e);return i===-1?this:(this.value=e,o||this.selectListItem(i),this.renderSelectedValue(),n.prototype.setValue.call(this,e,r))},t.prototype.createRowComponent=function(e){var r=new A2(this.config,this.eWrapper);r.setParentComponent(this.listComponent),this.getContext().createBean(r),r.setState(e);var o=this.config,i=o.highlightMatch,a=o.searchType,s=a===void 0?"fuzzy":a;return i&&s!=="fuzzy"&&r.highlightString(this.searchString),r},t.prototype.getRowForMouseEvent=function(e){var r=this.listComponent;if(!r)return-1;var o=r?.getGui(),i=o.getBoundingClientRect(),a=r.getScrollTop(),s=e.clientY-i.top+a;return Math.floor(s/r.getRowHeight())},t.prototype.onPickerMouseMove=function(e){if(this.listComponent){var r=this.getRowForMouseEvent(e);r!==-1&&r!=this.lastRowHovered&&(this.lastRowHovered=r,this.selectListItem(r,!0,!0))}},t.prototype.onNavigationKeyDown=function(e,r){e.preventDefault();var o=r===O.DOWN;if(!this.isPickerDisplayed&&o){this.showPicker();return}var i=this.highlightedItem,a=o?1:-1,s=i===-1?0:i+a;this.selectListItem(s,!1,!0)},t.prototype.onEnterKeyDown=function(e){this.isPickerDisplayed&&(e.preventDefault(),this.onListValueSelected(this.currentList[this.highlightedItem],!0))},t.prototype.onTabKeyDown=function(){this.isPickerDisplayed&&this.setValue(this.currentList[this.highlightedItem],!1,!0)},t.prototype.onListValueSelected=function(e,r){this.setValue(e,!1,!0),this.dispatchPickerEvent(e,r),this.hidePicker()},t.prototype.dispatchPickerEvent=function(e,r){var o={type:_.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:r,value:e};this.dispatchEvent(o)},t.prototype.getFocusableElement=function(){var e=this.config.allowTyping;return e?this.eInput.getFocusableElement():n.prototype.getFocusableElement.call(this)},t.prototype.onKeyDown=function(e){var r=e.key,o=this.config.allowTyping;switch(r){case O.LEFT:case O.RIGHT:case O.PAGE_HOME:case O.PAGE_END:o||e.preventDefault();break;case O.PAGE_UP:case O.PAGE_DOWN:e.preventDefault();break;case O.DOWN:case O.UP:this.onNavigationKeyDown(e,r);break;case O.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),ii(e),this.hidePicker());break;case O.ENTER:this.onEnterKeyDown(e);break;case O.TAB:this.onTabKeyDown();break;default:o||this.buildSearchStringFromKeyboardEvent(e)}},t.prototype.destroy=function(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),this.eLoading=void 0,n.prototype.destroy.call(this)},RI([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),RI([G("eInput")],t.prototype,"eInput",void 0),t}(JS),H2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),eg=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},PA=function(n){H2(t,n);function t(e){var r=n.call(this,e,t.TEMPLATE)||this;return r.labelAlignment="top",r}return t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var r=this,o=_.EVENT_FIELD_VALUE_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:(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:_.EVENT_FIELD_VALUE_CHANGED}),this)},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE=`<div class="ag-slider">
<label ref="eLabel"></label>
<div class="ag-wrapper ag-slider-wrapper">
<ag-input-range ref="eSlider"></ag-input-range>
<ag-input-number-field ref="eText"></ag-input-number-field>
</div>
</div>`,eg([G("eLabel")],t.prototype,"eLabel",void 0),eg([G("eSlider")],t.prototype,"eSlider",void 0),eg([G("eText")],t.prototype,"eText",void 0),eg([M],t.prototype,"init",null),t}(XS),V2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ra=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},OA=function(n){V2(t,n);function t(e){e===void 0&&(e={});var r=n.call(this,t.getTemplate(e))||this;r.suppressEnabledCheckbox=!0,r.suppressOpenCloseIcons=!1;var o=e.title,i=e.enabled,a=e.items,s=e.suppressEnabledCheckbox,l=e.suppressOpenCloseIcons;return r.title=o,r.cssIdentifier=e.cssIdentifier||"default",r.enabled=i??!0,r.items=a||[],r.alignItems=e.alignItems||"center",s!=null&&(r.suppressEnabledCheckbox=s),l!=null&&(r.suppressOpenCloseIcons=l),r}return t.getTemplate=function(e){var r=e.cssIdentifier||"default",o=e.direction||"vertical";return'<div class="ag-group ag-'+r+`-group" role="presentation">
<div class="ag-group-title-bar ag-`+r+`-group-title-bar ag-unselectable" ref="eTitleBar" role="button">
<span class="ag-group-title-bar-icon ag-`+r+`-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>
<span class="ag-group-title-bar-icon ag-`+r+`-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>
<span ref="eTitle" class="ag-group-title ag-`+r+`-group-title"></span>
</div>
<div ref="eToolbar" class="ag-group-toolbar ag-`+r+`-group-toolbar">
<ag-checkbox ref="cbGroupEnabled"></ag-checkbox>
</div>
<div ref="eContainer" class="ag-group-container ag-group-container-`+o+" ag-"+r+`-group-container"></div>
</div>`},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var r=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(r("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Yn("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Yn("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,"keydown",function(r){switch(r.key){case O.ENTER:case O.SPACE:r.preventDefault(),e.toggleGroupExpand();break;case O.RIGHT:case O.LEFT:r.preventDefault(),e.toggleGroupExpand(r.key===O.RIGHT);break}})},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||So(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;we(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),we(this.eGroupOpenedIcon,e&&this.expanded),we(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var r="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(r),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),we(this.eContainer,!0),this):(e=e??!this.expanded,this.expanded===e?this:(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),we(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 se?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){var o=this.items[r];we(o,!e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},t.prototype.setEnabled=function(e,r){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),r||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var r=this;return this.cbGroupEnabled.onValueChange(function(o){r.setEnabled(o,!0),e(o)}),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",Ra([G("eTitleBar")],t.prototype,"eTitleBar",void 0),Ra([G("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Ra([G("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Ra([G("eToolbar")],t.prototype,"eToolbar",void 0),Ra([G("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Ra([G("eTitle")],t.prototype,"eTitle",void 0),Ra([G("eContainer")],t.prototype,"eContainer",void 0),Ra([M],t.prototype,"postConstruct",null),t}(se),B2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ig=function(){return Ig=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Ig.apply(this,arguments)},TI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},LA=function(n){B2(t,n);function t(e){e===void 0&&(e=1);var r=n.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return r.level=e,r.menuItems=[],r}return t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(r){return e.onTabKeyDown(r)},handleKeyDown:function(r){return e.handleKeyDown(r)}})},t.prototype.onTabKeyDown=function(e){var r=this.getParentComponent(),o=r&&r.getGui(),i=o&&o.classList.contains("ag-focus-managed");i||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case O.UP:case O.RIGHT:case O.DOWN:case O.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case O.ESCAPE:var r=this.findTopMenu();r&&this.focusService.focusInto(r.getGui());break}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var r=this;e?.forEach(function(o){o==="separator"?r.addSeparator():typeof o=="string"?console.warn("AG Grid: unrecognised menu item "+o):r.addItem(o)})},t.prototype.addItem=function(e){var r=this,o=this.createManagedBean(new ql(Ig(Ig({},e),{isAnotherSubMenuOpen:function(){return r.menuItems.some(function(i){return i.isSubMenuOpen()})}})));o.setParentComponent(this),AD(o.getGui(),this.level),this.menuItems.push(o),this.appendChild(o.getGui()),this.addManagedListener(o,ql.EVENT_MENU_ITEM_SELECTED,function(i){r.dispatchEvent(i)}),this.addManagedListener(o,ql.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(){var e=`
<div class="ag-menu-separator" aria-hidden="true">
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
</div>`;this.appendChild(tr(e))},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 ql))break;e=r}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case O.UP:case O.DOWN:var r=this.findNextItem(e===O.UP);r&&r!==this.activeMenuItem&&r.activate();return}var o=this.gridOptionsService.is("enableRtl")?O.RIGHT:O.LEFT;e===o?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var r=this.getParentComponent();r&&r instanceof ql&&(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?Ge(r):r[0];e&&r.reverse();for(var o,i=!1,a=0;a<r.length;a++){var s=r[a];if(!i){s===this.activeMenuItem&&(i=!0);continue}o=s;break}return o||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),n.prototype.destroy.call(this)},TI([w("focusService")],t.prototype,"focusService",void 0),TI([M],t.prototype,"postConstruct",null),t}(xd),W2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),U2=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},IA=function(n){W2(t,n);function t(e){var r=n.call(this)||this;return r.wrappedComponent=e,r.setTemplateFromElement(e.getGui()),r}return t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(r){return e.onTabKeyDown(r)},handleKeyDown:function(r){return e.handleKeyDown(r)}})},t.prototype.handleKeyDown=function(e){e.key===O.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)},U2([M],t.prototype,"postConstruct",null),t}(xd),j2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),xI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ql=function(n){j2(t,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 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")),OS(r,!0)):(this.addGuiEventListener("click",function(o){return e.onItemSelected(o)}),this.addGuiEventListener("keydown",function(o){(o.key===O.ENTER||o.key===O.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(e===void 0&&(e=!1),this.closeSubMenu(),!!this.params.subMenu){var o=tr('<div class="ag-menu" role="presentation"></div>'),i;if(this.params.subMenu instanceof Array){var a=PD(this.getGui()),s=isNaN(a)?1:a+1,l=this.createBean(new LA(s));l.setParentComponent(this),l.addMenuItems(this.params.subMenu),o.appendChild(l.getGui()),this.addManagedListener(l,t.EVENT_MENU_ITEM_SELECTED,function(y){return r.dispatchEvent(y)}),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,c=this.createBean(new IA(u));c.setParentComponent(this);var d=c.getGui(),f="mouseenter",p=function(){return r.cancelDeactivate()};d.addEventListener(f,p),i=function(){return d.removeEventListener(f,p)},o.appendChild(d),u.afterGuiAttached&&setTimeout(function(){return u.afterGuiAttached()},0)}var h=this.getGui(),v=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:h,ePopup:o}),C=this.localeService.getLocaleTextFunc(),m=this.popupService.addPopup({modal:!0,eChild:o,positionCallback:v,anchorToElement:h,ariaLabel:C("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,So(h,!0),this.hideSubMenu=function(){m&&m.hideFunc(),r.subMenuIsOpen=!1,So(h,!1),i()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,So(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=tr('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(_t("check",this.gridOptionsService)):this.params.icon&&(Ed(this.params.icon)?e.appendChild(this.params.icon):typeof this.params.icon=="string"?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){if(!(!this.params.name&&this.params.isCompact)){var e=tr('<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.gridOptionsService.is("enableBrowserTooltips")?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new zg(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(!(!this.params.shortcut&&this.params.isCompact)){var e=tr('<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=tr('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),r=this.getGui();if(this.params.subMenu){var o=this.gridOptionsService.is("enableRtl")?"smallLeft":"smallRight";So(r,!1),e.appendChild(_t(o,this.gridOptionsService))}r.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&e.type==="keydown"),!(this.params.subMenu&&!this.params.action)){var r={type:t.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e};this.dispatchEvent(r)}},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.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,xI([w("popupService")],t.prototype,"popupService",void 0),xI([M],t.prototype,"init",null),t}(se),z2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},p_=function(n){z2(t,n);function t(e){var r=n.call(this,t.getTemplate(e))||this;return r.closable=!0,r.config=e,r}return t.getTemplate=function(e){var r=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+r+`-panel" tabindex="-1">
<div ref="eTitleBar" class="ag-panel-title-bar ag-`+r+`-panel-title-bar ag-unselectable">
<span ref="eTitle" class="ag-panel-title-bar-title ag-`+r+`-panel-title-bar-title"></span>
<div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-`+r+`-panel-title-bar-buttons"></div>
</div>
<div ref="eContentWrapper" class="ag-panel-content-wrapper ag-`+r+`-panel-content-wrapper"></div>
</div>`},t.prototype.postConstruct=function(){var e=this,r=this.config,o=r.component,i=r.closable,a=r.hideTitleBar,s=r.title,l=r.minWidth,u=l===void 0?250:l,c=r.width,d=r.minHeight,f=d===void 0?250:d,p=r.height,h=r.centered,v=r.popup,C=r.x,m=r.y;this.positionableFeature=new YS(this.getGui(),{minWidth:u,width:c,minHeight:f,height:p,centered:h,x:C,y:m,popup:v,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var y=this.getGui();o&&this.setBodyComponent(o),a?we(this.eTitleBar,!1):(s&&this.setTitle(s),this.setClosable(i??this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(S){var E=e.gridOptionsService.getDocument();if(y.contains(S.relatedTarget)||y.contains(E.activeElement)||e.eTitleBarButtons.contains(S.target)){S.preventDefault();return}var R=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");R&&R.focus()}),!(v&&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 se(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(r);var o=r.getGui(),i=_t("close",this.gridOptionsService);i.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(i),this.addTitleBarButton(r),r.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var o=this.closeButtonComp.getGui();o.parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,r){var o=this.eTitleBarButtons,i=o.children,a=i.length;r==null&&(r=a),r=Math.max(0,Math.min(r,a)),e.addCssClass("ag-panel-title-bar-button");var s=e.getGui();r===0?o.insertAdjacentElement("afterbegin",s):r===a?o.insertAdjacentElement("beforeend",s):i[r-1].insertAdjacentElement("afterend",s),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return _d(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return Wg(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>',Xc([G("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Xc([G("eTitleBar")],t.prototype,"eTitleBar",void 0),Xc([G("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Xc([G("eTitle")],t.prototype,"eTitle",void 0),Xc([M],t.prototype,"postConstruct",null),t}(se),q2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Dg=function(){return Dg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Dg.apply(this,arguments)},$2=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},DA=function(n){q2(t,n);function t(e){var r=n.call(this,Dg(Dg({},e),{popup:!0}))||this;return r.isMaximizable=!1,r.isMaximized=!1,r.maximizeListeners=[],r.resizeListenerDestroy=null,r.lastPosition={x:0,y:0,width:0,height:0},r}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=this.config,i=o.movable,a=o.resizable,s=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),s&&this.setMaximizable(s),a&&this.setResizable(a)},t.prototype.renderComponent=function(){var e=this.getGui(),r=this.config,o=r.alwaysOnTop,i=r.modal,a=r.title,s=r.afterGuiAttached,l=this.localeService.getLocaleTextFunc(),u=this.popupService.addPopup({modal:i,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:o,ariaLabel:a||l("ariaLabelDialog","Dialog"),afterGuiAttached:s});u&&(this.close=u.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.width,s=r.height;this.setWidth(a),this.setHeight(s),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(){we(this.maximizeIcon,!this.isMaximized),we(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),n.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var r=this;if(!e){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}var o=this.eTitleBar;if(!(!o||e===this.isMaximizable)){var i=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),i.addManagedListener(i.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(i,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",function(){r.isMaximized=!1,r.refreshMaximizeIcon()})}},t.prototype.buildMaximizeAndMinimizeElements=function(){var e=this.maximizeButtonComp=this.createBean(new se('<div class="ag-dialog-button"></span>')),r=e.getGui();return this.maximizeIcon=_t("maximize",this.gridOptionsService),r.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=_t("minimize",this.gridOptionsService),r.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e},$2([w("popupService")],t.prototype,"popupService",void 0),t}(p_),K2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ag=function(){return Ag=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Ag.apply(this,arguments)},Qc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Y2=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},X2=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},Ia;(function(n){n[n.vertical=0]="vertical",n[n.horizontal=1]="horizontal"})(Ia||(Ia={}));var Q2=0,AA=function(n){K2(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.popupList=[],r}e=t,t.prototype.postConstruct=function(){var r=this;this.ctrlsService.whenReady(function(o){r.gridCtrl=o.gridCtrl,r.addManagedListener(r.gridCtrl,_.EVENT_KEYBOARD_FOCUS,function(){r.popupList.forEach(function(i){return i.element.classList.add(Os.AG_KEYBOARD_FOCUS)})}),r.addManagedListener(r.gridCtrl,_.EVENT_MOUSE_FOCUS,function(){r.popupList.forEach(function(i){return i.element.classList.remove(Os.AG_KEYBOARD_FOCUS)})})})},t.prototype.getPopupParent=function(){var r=this.gridOptionsService.get("popupParent");return r||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(r){var o=r.eventSource,i=r.ePopup,a=this.getPopupIndex(i);if(a!==-1){var s=this.popupList[a];s.alignedToElement=o}var l=o.getBoundingClientRect(),u=this.getParentRect(),c=this.keepXYWithinBounds(i,l.top-u.top,Ia.vertical),d=i.clientWidth>0?i.clientWidth:200;i.style.minWidth=d+"px";var f=u.right-u.left,p=f-d,h;this.gridOptionsService.is("enableRtl")?(h=C(),h<0&&(h=v(),this.setAlignedStyles(i,"left")),h>p&&(h=0,this.setAlignedStyles(i,"right"))):(h=v(),h>p&&(h=C(),this.setAlignedStyles(i,"right")),h<0&&(h=0,this.setAlignedStyles(i,"left"))),i.style.left=h+"px",i.style.top=c+"px";function v(){return l.right-u.left-2}function C(){return l.left-u.left-d}},t.prototype.positionPopupUnderMouseEvent=function(r){var o=this,i=r.ePopup,a=r.nudgeX,s=r.nudgeY,l=r.skipObserver;this.positionPopup({ePopup:i,nudgeX:a,nudgeY:s,keepWithinBounds:!0,skipObserver:l,updatePosition:function(){return o.calculatePointerAlign(r.mouseEvent)},postProcessCallback:function(){return o.callPostProcessPopup(r.type,r.ePopup,null,r.mouseEvent,r.column,r.rowNode)}})},t.prototype.calculatePointerAlign=function(r){var o=this.getParentRect();return{x:r.clientX-o.left,y:r.clientY-o.top}},t.prototype.positionPopupByComponent=function(r){var o=this,i=r.ePopup,a=r.nudgeX,s=r.nudgeY,l=r.keepWithinBounds,u=r.eventSource,c=r.alignSide,d=c===void 0?"left":c,f=r.position,p=f===void 0?"over":f,h=r.column,v=r.rowNode,C=r.type,m=u.getBoundingClientRect(),y=this.getParentRect(),S=this.getPopupIndex(i);if(S!==-1){var E=this.popupList[S];E.alignedToElement=u}var R=function(){var x=m.left-y.left;d==="right"&&(x-=i.offsetWidth-m.width);var P;if(p==="over")P=m.top-y.top,o.setAlignedStyles(i,"over");else{o.setAlignedStyles(i,"under");var T=o.shouldRenderUnderOrAbove(i,m,y,r.nudgeY||0);T==="under"?P=m.top-y.top+m.height:P=m.top-i.offsetHeight-(s||0)*2-y.top}return{x,y:P}};this.positionPopup({ePopup:i,nudgeX:a,nudgeY:s,keepWithinBounds:l,updatePosition:R,postProcessCallback:function(){return o.callPostProcessPopup(C,i,u,null,h,v)}})},t.prototype.shouldRenderUnderOrAbove=function(r,o,i,a){var s=i.bottom-o.bottom,l=o.top-i.top,u=r.offsetHeight+a;return s>u?"under":l>u||l>s?"above":"under"},t.prototype.setAlignedStyles=function(r,o){var i=this.getPopupIndex(r);if(i!==-1){var a=this.popupList[i],s=a.alignedToElement;if(s){var l=["right","left","over","above","under"];l.forEach(function(u){s.classList.remove("ag-has-popup-positioned-"+u),r.classList.remove("ag-popup-positioned-"+u)}),o&&(s.classList.add("ag-has-popup-positioned-"+o),r.classList.add("ag-popup-positioned-"+o))}}},t.prototype.callPostProcessPopup=function(r,o,i,a,s,l){var u=this.gridOptionsService.getCallback("postProcessPopup");if(u){var c={column:s,rowNode:l,ePopup:o,type:r,eventSource:i,mouseEvent:a};u(c)}},t.prototype.positionPopup=function(r){var o=this,i=r.ePopup,a=r.keepWithinBounds,s=r.nudgeX,l=r.nudgeY,u=r.skipObserver,c=r.updatePosition,d={width:0,height:0},f=function(h){h===void 0&&(h=!1);var v=c(),C=v.x,m=v.y;h&&i.clientWidth===d.width&&i.clientHeight===d.height||(d.width=i.clientWidth,d.height=i.clientHeight,s&&(C+=s),l&&(m+=l),a&&(C=o.keepXYWithinBounds(i,C,Ia.horizontal),m=o.keepXYWithinBounds(i,m,Ia.vertical)),i.style.left=C+"px",i.style.top=m+"px",r.postProcessCallback&&r.postProcessCallback())};if(f(),!u){var p=this.resizeObserverService.observeResize(i,function(){return f(!0)});setTimeout(function(){return p()},e.WAIT_FOR_POPUP_CONTENT_RESIZE)}},t.prototype.getActivePopups=function(){return this.popupList.map(function(r){return r.element})},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var r=this.gridOptionsService.getDocument(),o=this.getPopupParent();return o===r.body?o=r.documentElement:getComputedStyle(o).position==="static"&&(o=o.offsetParent),BS(o)},t.prototype.keepXYWithinBounds=function(r,o,i){var a=i===Ia.vertical,s=a?"clientHeight":"clientWidth",l=a?"top":"left",u=a?"offsetHeight":"offsetWidth",c=a?"scrollTop":"scrollLeft",d=this.gridOptionsService.getDocument(),f=d.documentElement,p=this.getPopupParent(),h=p.getBoundingClientRect(),v=d.documentElement.getBoundingClientRect(),C=p===d.body,m=r[u],y=a?VS:gd,S=C?y(f)+f[c]:p[s];C&&(S-=Math.abs(v[l]-h[l]));var E=S-m;return Math.min(Math.max(o,0),Math.abs(E))},t.prototype.addPopup=function(r){var o=this.gridOptionsService.getDocument(),i=r.eChild,a=r.ariaLabel,s=r.alwaysOnTop,l=r.positionCallback,u=r.anchorToElement;if(!o)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){}};var c=this.getPopupIndex(i);if(c!==-1){var d=this.popupList[c];return{hideFunc:d.hideFunc}}this.initialisePopupPosition(i);var f=this.createPopupWrapper(i,a,!!s),p=this.addEventListenersToPopup(Ag(Ag({},r),{wrapperEl:f}));return l&&l(),this.addPopupToPopupList(i,f,p,u),{hideFunc:p}},t.prototype.initialisePopupPosition=function(r){var o=this.getPopupParent(),i=o.getBoundingClientRect();D(r.style.top)||(r.style.top=i.top*-1+"px"),D(r.style.left)||(r.style.left=i.left*-1+"px")},t.prototype.createPopupWrapper=function(r,o,i){var a,s=this.getPopupParent(),l=document.createElement("div"),u=this.environment.getTheme().allThemes;return u.length&&(a=l.classList).add.apply(a,X2([],Y2(u))),l.classList.add("ag-popup"),r.classList.add(this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),r.hasAttribute("role")||bt(r,"dialog"),Ii(r,o),this.focusService.isKeyboardMode()&&r.classList.add(Os.AG_KEYBOARD_FOCUS),l.appendChild(r),s.appendChild(l),i?this.setAlwaysOnTop(r,!0):this.bringPopupToFront(r),l},t.prototype.addEventListenersToPopup=function(r){var o=this,i=this.gridOptionsService.getDocument(),a=this.getPopupParent(),s=r.wrapperEl,l=r.eChild,u=r.click,c=r.closedCallback,d=r.afterGuiAttached,f=r.closeOnEsc,p=r.modal,h=!1,v=function(S){if(s.contains(i.activeElement)){var E=S.key;E===O.ESCAPE&&!_o(S)&&y({keyboardEvent:S})}},C=function(S){return y({mouseEvent:S})},m=function(S){return y({touchEvent:S})},y=function(S){S===void 0&&(S={});var E=S.mouseEvent,R=S.touchEvent,x=S.keyboardEvent;o.isEventFromCurrentPopup({mouseEvent:E,touchEvent:R},l)||h||(h=!0,a.removeChild(s),i.removeEventListener("keydown",v),i.removeEventListener("mousedown",C),i.removeEventListener("touchstart",m),i.removeEventListener("contextmenu",C),o.eventService.removeEventListener(_.EVENT_DRAG_STARTED,C),c&&c(E||R||x),o.removePopupFromPopupList(l))};return d&&d({hidePopup:y}),window.setTimeout(function(){f&&i.addEventListener("keydown",v),p&&(i.addEventListener("mousedown",C),o.eventService.addEventListener(_.EVENT_DRAG_STARTED,C),i.addEventListener("touchstart",m),i.addEventListener("contextmenu",C))},0),y},t.prototype.addPopupToPopupList=function(r,o,i,a){this.popupList.push({element:r,wrapper:o,hideFunc:i,instanceId:Q2++,isAnchored:!!a}),a&&this.setPopupPositionRelatedToElement(r,a)},t.prototype.getPopupIndex=function(r){return this.popupList.findIndex(function(o){return o.element===r})},t.prototype.setPopupPositionRelatedToElement=function(r,o){var i=this.getPopupIndex(r);if(i!==-1){var a=this.popupList[i];if(a.stopAnchoringPromise&&a.stopAnchoringPromise.then(function(l){return l&&l()}),a.stopAnchoringPromise=void 0,a.isAnchored=!1,!!o){var s=this.keepPopupPositionedRelativeTo({element:o,ePopup:r,hidePopup:a.hideFunc});return a.stopAnchoringPromise=s,a.isAnchored=!0,s}}},t.prototype.removePopupFromPopupList=function(r){this.setAlignedStyles(r,null),this.setPopupPositionRelatedToElement(r,null),this.popupList=this.popupList.filter(function(o){return o.element!==r})},t.prototype.keepPopupPositionedRelativeTo=function(r){var o=this,i=this.getPopupParent(),a=i.getBoundingClientRect(),s=r.element,l=r.ePopup,u=s.getBoundingClientRect(),c=a.top-u.top,d=a.left-u.left,f=c,p=d,h=l.style.top,v=parseInt(h.substring(0,h.length-1),10),C=l.style.left,m=parseInt(C.substring(0,C.length-1),10);return new yn(function(y){o.getFrameworkOverrides().setInterval(function(){var S=i.getBoundingClientRect(),E=s.getBoundingClientRect(),R=E.top==0&&E.left==0&&E.height==0&&E.width==0;if(R){r.hidePopup();return}var x=S.top-E.top;if(x!=f){var P=o.keepXYWithinBounds(l,v+c-x,Ia.vertical);l.style.top=P+"px"}f=x;var T=S.left-E.left;if(T!=p){var L=o.keepXYWithinBounds(l,m+d-T,Ia.horizontal);l.style.left=L+"px"}p=T},200).then(function(S){var E=function(){S!=null&&window.clearInterval(S)};y(E)})})},t.prototype.hasAnchoredPopup=function(){return this.popupList.some(function(r){return r.isAnchored})},t.prototype.isEventFromCurrentPopup=function(r,o){var i=r.mouseEvent,a=r.touchEvent,s=i||a;if(!s)return!1;var l=this.getPopupIndex(o);if(l===-1)return!1;for(var u=l;u<this.popupList.length;u++){var c=this.popupList[u];if(mg(c.element,s))return!0}return this.isElementWithinCustomPopup(s.target)},t.prototype.isElementWithinCustomPopup=function(r){for(var o=this.gridOptionsService.getDocument();r&&r!==o.body;){if(r.classList.contains("ag-custom-component-popup")||r.parentElement===null)return!0;r=r.parentElement}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")),a=i.length,s=Array.prototype.slice.call(o.querySelectorAll(".ag-popup.ag-always-on-top")),l=s.length,u=this.getWrapper(r);if(!(!u||a<=1||!o.contains(r))){var c=i.indexOf(u),d=u.querySelectorAll("div"),f=[];if(d.forEach(function(C){C.scrollTop!==0&&f.push([C,C.scrollTop])}),l){var p=u.classList.contains("ag-always-on-top");p?c!==a-1&&Ge(s).insertAdjacentElement("afterend",u):c!==a-l-1&&s[0].insertAdjacentElement("beforebegin",u)}else c!==a-1&&Ge(i).insertAdjacentElement("afterend",u);for(;f.length;){var h=f.pop();h[0].scrollTop=h[1]}var v={type:"popupToFront",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,eWrapper:u};this.eventService.dispatchEvent(v)}};var e;return t.WAIT_FOR_POPUP_CONTENT_RESIZE=200,Qc([w("focusService")],t.prototype,"focusService",void 0),Qc([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Qc([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Qc([M],t.prototype,"postConstruct",null),t=e=Qc([H("popupService")],t),t}(F),J2=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Z2=function(n){J2(t,n);function t(){var e=n.call(this,`
<div class="ag-autocomplete-row" role="presentation">
<div class="ag-autocomplete-row-label"></div>
</div>`)||this;return e.hasHighlighting=!1,e}return t.prototype.setState=function(e,r){this.value=e,this.render(),this.updateSelected(r)},t.prototype.updateSelected=function(e){this.addOrRemoveCssClass("ag-autocomplete-row-selected",e)},t.prototype.setSearchString=function(e){var r,o=!1;if(D(e)){var i=(r=this.value)===null||r===void 0?void 0:r.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(i>=0){o=!0,this.hasHighlighting=!0;var a=i+e.length,s=xt(this.value.slice(0,i)),l=xt(this.value.slice(i,a)),u=xt(this.value.slice(a));this.getGui().lastElementChild.innerHTML=s+"<b>"+l+"</b>"+u}}!o&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())},t.prototype.render=function(){var e;this.getGui().lastElementChild.innerHTML=(e=xt(this.value))!==null&&e!==void 0?e:"&nbsp;"},t}(se),ez=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),PI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tz=function(n){ez(t,n);function t(e){var r=n.call(this,t.TEMPLATE)||this;return r.params=e,r.searchString="",r}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(){var e=this;this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new f_({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:function(){return e.autocompleteEntries.length},getRow:function(o){return e.autocompleteEntries[o]}});var r=this.virtualList.getGui();this.addManagedListener(r,"click",function(){return e.params.onConfirmed()}),this.addManagedListener(r,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(r,"mousedown",function(o){return o.preventDefault()}),this.setSelectedValue(0)},t.prototype.onNavigationKeyDown=function(e,r){e.preventDefault();var o=this.autocompleteEntries.indexOf(this.selectedValue),i=r===O.UP?o-1:o+1;this.checkSetSelectedValue(i)},t.prototype.setSearch=function(e){this.searchString=e,D(e)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()},t.prototype.runContainsSearch=function(e,r){var o,i=!1,a=e.toLocaleLowerCase(),s=r.filter(function(l){var u=l.toLocaleLowerCase(),c=u.indexOf(a),d=c===0,f=c>=0;return f&&(!o||!i&&d||i===d&&l.length<o.length)&&(o=l,i=d),f});return!o&&s.length&&(o=s[0]),{topMatch:o,allMatches:s}},t.prototype.runSearch=function(){var e,r,o=this.params.autocompleteEntries,i=o.map(function(d){var f;return(f=d.displayValue)!==null&&f!==void 0?f:d.key}),a,s;if(this.params.useFuzzySearch)a=Sd(this.searchString,i,!0).values,s=a.length?a[0]:void 0;else{var l=this.runContainsSearch(this.searchString,i);a=l.allMatches,s=l.topMatch}var u=o.filter(function(d){var f=d.key,p=d.displayValue;return a.includes(p??f)});if(!u.length&&this.selectedValue&&(!((r=(e=this.params)===null||e===void 0?void 0:e.forceLastSelection)===null||r===void 0)&&r.call(e,this.selectedValue,this.searchString))&&(u=[this.selectedValue]),this.autocompleteEntries=u,this.virtualList.refresh(),!!s){var c=a.indexOf(s);this.checkSetSelectedValue(c)}},t.prototype.updateSearchInList=function(){var e=this;this.virtualList.forEachRenderedRow(function(r){return r.setSearchString(e.searchString)})},t.prototype.checkSetSelectedValue=function(e){e>=0&&e<this.autocompleteEntries.length&&this.setSelectedValue(e)},t.prototype.setSelectedValue=function(e){var r=this.autocompleteEntries[e];this.selectedValue!==r&&(this.selectedValue=r,this.virtualList.ensureIndexVisible(e),this.virtualList.forEachRenderedRow(function(o,i){o.updateSelected(e===i)}))},t.prototype.createRowComponent=function(e){var r,o=new Z2;return this.getContext().createBean(o),o.setState((r=e.displayValue)!==null&&r!==void 0?r:e.key,e===this.selectedValue),o},t.prototype.onMouseMove=function(e){var r=this.virtualList.getGui().getBoundingClientRect(),o=this.virtualList.getScrollTop(),i=e.clientY-r.top+o,a=Math.floor(i/this.virtualList.getRowHeight());this.checkSetSelectedValue(a)},t.prototype.afterGuiAttached=function(){this.virtualList.refresh()},t.prototype.getSelectedValue=function(){var e;return this.autocompleteEntries.length&&(e=this.selectedValue)!==null&&e!==void 0?e:null},t.TEMPLATE=`<div class="ag-autocomplete-list-popup">
<div ref="eList" class="ag-autocomplete-list"></div>
<div>`,PI([G("eList")],t.prototype,"eList",void 0),PI([M],t.prototype,"init",null),t}(Va),rz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Hw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},FA=function(n){rz(t,n);function t(){var e=n.call(this,`
<div class="ag-autocomplete" role="presentation">
<ag-input-text-field ref="eAutocompleteInput"></ag-input-text-field>
</div>`)||this;return e.isListOpen=!1,e.lastPosition=0,e.valid=!0,e}return t.prototype.postConstruct=function(){var e=this;this.eAutocompleteInput.onValueChange(function(r){return e.onValueChanged(r)}),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc(function(){e.destroyBean(e.autocompleteList)}),this.addGuiEventListener("focusout",function(){return e.onFocusOut()})},t.prototype.onValueChanged=function(e){var r=ri(e);this.updateValue(r),this.updateAutocompleteList(r)},t.prototype.updateValue=function(e){this.updateLastPosition(),this.dispatchEvent({type:t.EVENT_VALUE_CHANGED,value:e}),this.validate(e)},t.prototype.updateAutocompleteList=function(e){var r,o,i,a,s=(o=(r=this.listGenerator)===null||r===void 0?void 0:r.call(this,e,this.lastPosition))!==null&&o!==void 0?o:{enabled:!1};if((!s.type||s.type!==((i=this.autocompleteListParams)===null||i===void 0?void 0:i.type))&&this.isListOpen&&this.closeList(),this.autocompleteListParams=s,!((a=this.autocompleteListParams)===null||a===void 0)&&a.enabled){this.isListOpen||this.openList();var l=this.autocompleteListParams.searchString;this.autocompleteList.setSearch(l??"")}else this.isListOpen&&this.closeList()},t.prototype.onKeyDown=function(e){var r=this,o=e.key;switch(this.updateLastPosition(),o){case O.ENTER:this.onEnterKeyDown(e);break;case O.TAB:this.onTabKeyDown(e);break;case O.DOWN:case O.UP:this.onUpDownKeyDown(e,o);break;case O.LEFT:case O.RIGHT:case O.PAGE_HOME:case O.PAGE_END:setTimeout(function(){r.updatePositionAndList()});break;case O.ESCAPE:this.onEscapeKeyDown(e);break;case O.SPACE:e.ctrlKey&&!this.isListOpen&&(e.preventDefault(),this.forceOpenList());break}},t.prototype.confirmSelection=function(){var e,r=(e=this.autocompleteList)===null||e===void 0?void 0:e.getSelectedValue();r&&(this.closeList(),this.dispatchEvent({type:t.EVENT_OPTION_SELECTED,value:this.getValue(),position:this.lastPosition,updateEntry:r,autocompleteType:this.autocompleteListParams.type}))},t.prototype.onTabKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.confirmSelection())},t.prototype.onEnterKeyDown=function(e){e.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()},t.prototype.onUpDownKeyDown=function(e,r){var o;e.preventDefault(),this.isListOpen?(o=this.autocompleteList)===null||o===void 0||o.onNavigationKeyDown(e,r):this.forceOpenList()},t.prototype.onEscapeKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))},t.prototype.onFocusOut=function(){this.isListOpen&&this.closeList()},t.prototype.updatePositionAndList=function(){var e;this.updateLastPosition(),this.updateAutocompleteList((e=this.eAutocompleteInput.getValue())!==null&&e!==void 0?e:null)},t.prototype.setCaret=function(e,r){var o=this.gridOptionsService.getDocument();r&&o.activeElement===o.body&&this.eAutocompleteInput.getFocusableElement().focus(),this.eAutocompleteInput.getInputElement().setSelectionRange(e,e)},t.prototype.forceOpenList=function(){this.onValueChanged(this.eAutocompleteInput.getValue())},t.prototype.updateLastPosition=function(){var e;this.lastPosition=(e=this.eAutocompleteInput.getInputElement().selectionStart)!==null&&e!==void 0?e:0},t.prototype.validate=function(e){var r;this.validator&&(this.validationMessage=this.validator(e),this.eAutocompleteInput.getInputElement().setCustomValidity((r=this.validationMessage)!==null&&r!==void 0?r:""),this.valid=!this.validationMessage,this.dispatchEvent({type:t.EVENT_VALID_CHANGED,isValid:this.valid,validationMessage:this.validationMessage}))},t.prototype.openList=function(){var e=this;this.isListOpen=!0,this.autocompleteList=this.createBean(new tz({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:function(){return e.confirmSelection()},forceLastSelection:this.forceLastSelection}));var r=this.autocompleteList.getGui(),o={ePopup:r,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gridOptionsService.is("enableRtl")?"right":"left",keepWithinBounds:!0},i=this.popupService.addPopup({eChild:r,anchorToElement:this.getGui(),positionCallback:function(){return e.popupService.positionPopupByComponent(o)},ariaLabel:this.listAriaLabel});this.hidePopup=i.hideFunc,this.autocompleteList.afterGuiAttached()},t.prototype.closeList=function(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null},t.prototype.onCompleted=function(){this.isListOpen&&this.closeList(),this.dispatchEvent({type:t.EVENT_VALUE_CONFIRMED,value:this.getValue(),isValid:this.isValid()})},t.prototype.getValue=function(){return ri(this.eAutocompleteInput.getValue())},t.prototype.setInputPlaceholder=function(e){return this.eAutocompleteInput.setInputPlaceholder(e),this},t.prototype.setInputAriaLabel=function(e){return this.eAutocompleteInput.setInputAriaLabel(e),this},t.prototype.setListAriaLabel=function(e){return this.listAriaLabel=e,this},t.prototype.setListGenerator=function(e){return this.listGenerator=e,this},t.prototype.setValidator=function(e){return this.validator=e,this},t.prototype.isValid=function(){return this.valid},t.prototype.setValue=function(e){var r=e.value,o=e.position,i=e.silent,a=e.updateListOnlyIfOpen,s=e.restoreFocus;this.eAutocompleteInput.setValue(r,!0),this.setCaret(o??this.lastPosition,s),i||this.updateValue(r),(!a||this.isListOpen)&&this.updateAutocompleteList(r)},t.prototype.setForceLastSelection=function(e){return this.forceLastSelection=e,this},t.prototype.setInputDisabled=function(e){return this.eAutocompleteInput.setDisabled(e),this},t.EVENT_VALUE_CHANGED="eventValueChanged",t.EVENT_VALUE_CONFIRMED="eventValueConfirmed",t.EVENT_OPTION_SELECTED="eventOptionSelected",t.EVENT_VALID_CHANGED="eventValidChanged",Hw([w("popupService")],t.prototype,"popupService",void 0),Hw([G("eAutocompleteInput")],t.prototype,"eAutocompleteInput",void 0),Hw([M],t.prototype,"postConstruct",null),t}(se),nz=["mouseover","mouseout","mouseenter","mouseleave","mousemove"],oz=["touchstart","touchend","touchmove","touchcancel"],bA=function(){function n(){this.renderingEngine="vanilla",this.isOutsideAngular=function(t){return Jn(nz,t)}}return n.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},n.prototype.setInterval=function(t,e){return new yn(function(r){r(window.setInterval(t,e))})},n.prototype.addEventListener=function(t,e,r,o){var i=Jn(oz,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}(),iz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Bl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},az=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},sz=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},MA=function(n){iz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getNextCellToFocus=function(e,r,o){return o===void 0&&(o=!1),o?this.getNextCellToFocusWithCtrlPressed(e,r):this.getNextCellToFocusWithoutCtrlPressed(e,r)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,r){var o=e===O.UP,i=e===O.DOWN,a=e===O.LEFT,s,l;if(o||i)l=o?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),s=r.column;else{var u=this.columnModel.getAllDisplayedColumns(),c=this.gridOptionsService.is("enableRtl");l=r.rowIndex,s=a!==c?u[0]:Ge(u)}return{rowIndex:l,rowPinned:null,column:s}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,r){for(var o=r,i=!1;!i;){switch(e){case O.UP:o=this.getCellAbove(o);break;case O.DOWN:o=this.getCellBelow(o);break;case O.RIGHT:this.gridOptionsService.is("enableRtl")?o=this.getCellToLeft(o):o=this.getCellToRight(o);break;case O.LEFT:this.gridOptionsService.is("enableRtl")?o=this.getCellToRight(o):o=this.getCellToLeft(o);break;default:o=null,console.warn("AG Grid: unknown key for navigation "+e);break}o?i=this.isCellGoodToFocusOn(o):i=!0}return o},t.prototype.isCellGoodToFocusOn=function(e){var r=e.column,o;switch(e.rowPinned){case"top":o=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case"bottom":o=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:o=this.rowModel.getRow(e.rowIndex);break}if(!o)return!1;var i=r.isSuppressNavigable(o);return!i},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"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}var i=this.rowModel.getRow(e.rowIndex),a=this.getNextStickyPosition(i);return a||{rowIndex:r+1,rowPinned:o}},t.prototype.getNextStickyPosition=function(e,r){if(!(!this.gridOptionsService.isGroupRowsSticky()||!e||!e.sticky)){var o=sz([],az(this.rowRenderer.getStickyTopRowCtrls())).sort(function(l,u){return l.getRowNode().rowIndex-u.getRowNode().rowIndex}),i=r?-1:1,a=o.findIndex(function(l){return l.getRowNode().rowIndex===e.rowIndex}),s=o[a+i];if(s)return{rowIndex:s.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;if(r==="top"){var i=this.pinnedRowModel.getPinnedTopRowData().length-1;return i<=o}if(r==="bottom"){var a=this.pinnedRowModel.getPinnedBottomRowData().length-1;return a<=o}var s=this.paginationProxy.getPageLastRow();return s<=o},t.prototype.getRowAbove=function(e){var r=e.rowIndex,o=e.rowPinned,i=o?r===0:r===this.paginationProxy.getPageFirstRow();if(i)return o==="top"?null:o?this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null:this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;var a=this.rowModel.getRow(e.rowIndex),s=this.getNextStickyPosition(a,!0);return s||{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(){var e=this.paginationProxy.getPageLastRow();return{rowIndex:e,rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){var e=this.pinnedRowModel.getPinnedTopRowData().length-1;return{rowIndex:e,rowPinned:"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,a=this.columnModel.getDisplayedColAfter(e.column);if(!a){a=r[0];var s=this.getRowBelow(e);if(Z(s)||!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;o=s?s.rowIndex:null,i=s?s.rowPinned:null}return{rowIndex:o,column:a,rowPinned:i}},t.prototype.getNextTabbedCellBackwards=function(e){var r=this.columnModel.getAllDisplayedColumns(),o=e.rowIndex,i=e.rowPinned,a=this.columnModel.getDisplayedColBefore(e.column);if(!a){a=Ge(r);var s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(Z(s)||!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;o=s?s.rowIndex:null,i=s?s.rowPinned:null}return{rowIndex:o,column:a,rowPinned:i}},Bl([w("columnModel")],t.prototype,"columnModel",void 0),Bl([w("rowModel")],t.prototype,"rowModel",void 0),Bl([w("rowRenderer")],t.prototype,"rowRenderer",void 0),Bl([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Bl([w("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Bl([H("cellNavigationService")],t),t}(F),lz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},uz=function(n,t){return function(e,r){t(e,r,n)}},NA=function(n){lz(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.consuming=!1,e}return t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,_.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,_.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var r=this.gridOptionsService.get("alignedGrids");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){e.direction==="horizontal"&&this.fireEvent(function(r){r.onScrollEvent(e)})},t.prototype.onScrollEvent=function(e){var r=this;this.onEvent(function(){var o=r.ctrlsService.getGridBodyCtrl();o.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})},t.prototype.getMasterColumns=function(e){var r=[];return e.columns?e.columns.forEach(function(o){r.push(o)}):e.column&&r.push(e.column),r},t.prototype.getColumnIds=function(e){var r=[];return e.columns?e.columns.forEach(function(o){r.push(o.getColId())}):e.column&&r.push(e.column.getColId()),r},t.prototype.onColumnEvent=function(e){var r=this;this.onEvent(function(){switch(e.type){case _.EVENT_COLUMN_MOVED:case _.EVENT_COLUMN_VISIBLE:case _.EVENT_COLUMN_PINNED:case _.EVENT_COLUMN_RESIZED:var o=e;r.processColumnEvent(o);break;case _.EVENT_COLUMN_GROUP_OPENED:var i=e;r.processGroupOpenedEvent(i);break;case _.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.");break}})},t.prototype.processGroupOpenedEvent=function(e){var r=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 r=this,o,i=e.column,a=null;if(i&&(a=this.columnModel.getPrimaryColumn(i.getColId())),!(i&&!a)){var s=this.getMasterColumns(e);switch(e.type){case _.EVENT_COLUMN_MOVED:{var l=e,u=e.columnApi.getColumnState(),c=u.map(function(y){return{colId:y.colId}});this.columnModel.applyColumnState({state:c,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+l.toIndex)}break;case _.EVENT_COLUMN_VISIBLE:{var d=e,u=e.columnApi.getColumnState(),c=u.map(function(E){return{colId:E.colId,hide:E.hide}});this.columnModel.applyColumnState({state:c},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+d.visible)}break;case _.EVENT_COLUMN_PINNED:{var f=e,u=e.columnApi.getColumnState(),c=u.map(function(E){return{colId:E.colId,pinned:E.pinned}});this.columnModel.applyColumnState({state:c},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+f.pinned)}break;case _.EVENT_COLUMN_RESIZED:var p=e,h={};s.forEach(function(y){r.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+y.getActualWidth()),h[y.getId()]={key:y.getColId(),newWidth:y.getActualWidth()}}),(o=p.flexColumns)===null||o===void 0||o.forEach(function(y){h[y.getId()]&&delete h[y.getId()]}),this.columnModel.setColumnWidths(Object.values(h),!1,p.finished,"alignedGridChanged");break}var v=this.ctrlsService.getGridBodyCtrl(),C=v.isVerticalScrollShowing(),m=this.gridOptionsService.get("alignedGrids");m&&m.forEach(function(y){y.api&&y.api.setAlwaysShowVerticalScroll(C)})}},Jc([w("columnModel")],t.prototype,"columnModel",void 0),Jc([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Jc([uz(0,er("loggerFactory"))],t.prototype,"setBeans",null),Jc([M],t.prototype,"init",null),t=Jc([H("alignedGridsService")],t),t}(F),cz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},dz=function(n,t){return function(e,r){t(e,r,n)}},fz=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},pz=function(n){cz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},t.prototype.init=function(){var e=this;this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.addManagedPropertyListener("groupSelectsChildren",function(r){return e.groupSelectsChildren=r.currentValue}),this.rowSelection=this.gridOptionsService.get("rowSelection"),this.addManagedPropertyListener("rowSelection",function(r){return e.rowSelection=r.currentValue}),this.addManagedListener(this.eventService,_.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.isMultiselect=function(){return this.rowSelection==="multiple"},t.prototype.setNodesSelected=function(e){var r;if(e.nodes.length===0)return 0;var o=e.newValue,i=e.clearSelection,a=e.suppressFinishActions,s=e.rangeSelect,l=e.event,u=e.source,c=u===void 0?"api":u;if(e.nodes.length>1&&!this.isMultiselect())return console.warn("AG Grid: cannot multi select while rowSelection='single'"),0;var d=this.groupSelectsChildren&&e.groupSelectsFiltered===!0,f=e.nodes.map(function(P){return P.footer?P.sibling:P});if(s){if(e.nodes.length>1)return console.warn("AG Grid: cannot range select while selecting multiple rows"),0;var p=this.getLastSelectedNode();if(p){var h=f[0],v=p!==h;if(v&&this.isMultiselect()){var C=this.selectRange(h,p,e.newValue,c);return this.setLastSelectedNode(h),C}}}for(var m=0,y=0;y<f.length;y++){var h=f[y],S=d&&h.group;if(!S){var E=h.selectThisNode(o,e.event,c);E&&m++}this.groupSelectsChildren&&(!((r=h.childrenAfterGroup)===null||r===void 0)&&r.length)&&(m+=this.selectChildren(h,o,d,c))}if(!a){var R=o&&(i||!this.isMultiselect());if(R&&(m+=this.clearOtherNodes(f[0],c)),m>0){this.updateGroupsFromChildrenSelections(c);var x={type:_.EVENT_SELECTION_CHANGED,source:c};this.eventService.dispatchEvent(x)}o&&this.setLastSelectedNode(f[f.length-1])}return m},t.prototype.selectRange=function(e,r,o,i){var a=this;o===void 0&&(o=!0);var s=this.rowModel.getNodesInRangeForSelection(e,r),l=0;s.forEach(function(c){if(!(c.group&&a.groupSelectsChildren||o===!1&&e===c)){var d=c.selectThisNode(o,void 0,i);d&&l++}}),this.updateGroupsFromChildrenSelections(i);var u={type:_.EVENT_SELECTION_CHANGED,source:i};return this.eventService.dispatchEvent(u),l},t.prototype.selectChildren=function(e,r,o,i){var a=o?e.childrenAfterAggFilter:e.childrenAfterGroup;return Q.missing(a)?0:this.setNodesSelected({newValue:r,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:o,source:i,nodes:a})},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return st(this.selectedNodes,function(r,o){o&&e.push(o)}),e},t.prototype.getSelectedRows=function(){var e=[];return st(this.selectedNodes,function(r,o){o&&o.data&&e.push(o.data)}),e},t.prototype.getSelectionCount=function(){return Object.values(this.selectedNodes).length},t.prototype.filterFromSelection=function(e){var r={};Object.entries(this.selectedNodes).forEach(function(o){var i=fz(o,2),a=i[0],s=i[1],l=s&&e(s);l&&(r[a]=s)}),this.selectedNodes=r},t.prototype.updateGroupsFromChildrenSelections=function(e,r){if(!this.groupSelectsChildren||this.rowModel.getType()!=="clientSide")return!1;var o=this.rowModel,i=o.getRootNode();r||(r=new ev(!0,i),r.setInactive());var a=!1;return r.forEachChangedNodeDepthFirst(function(s){if(s!==i){var l=s.calculateSelectedFromChildren();a=s.selectThisNode(l===null?!1:l,void 0,e)||a}}),a},t.prototype.clearOtherNodes=function(e,r){var o=this,i={},a=0;return st(this.selectedNodes,function(s,l){if(l&&l.id!==e.id){var u=o.selectedNodes[l.id];a+=u.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:r}),o.groupSelectsChildren&&l.parent&&(i[l.parent.id]=l.parent)}}),st(i,function(s,l){var u=l.calculateSelectedFromChildren();l.selectThisNode(u===null?!1:u,void 0,r)}),a},t.prototype.onRowSelected=function(e){var r=e.node;this.groupSelectsChildren&&r.group||(r.isSelected()?this.selectedNodes[r.id]=r:delete this.selectedNodes[r.id])},t.prototype.syncInRowNode=function(e,r){this.syncInOldRowNode(e,r),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,r){var o=D(r)&&e.id!==r.id;if(o&&r){var i=r.id,a=this.selectedNodes[i]==e;a&&(this.selectedNodes[r.id]=r)}},t.prototype.syncInNewRowNode=function(e){D(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()!=="clientSide")return;var e=this.rowModel,r=e.getTopLevelNodes();if(r===null)return;var o=[];function i(a){for(var s=0,l=a.length;s<l;s++){var u=a[s];if(u.isSelected())o.push(u);else{var c=u;c.group&&c.children&&i(c.children)}}}return i(r),o},t.prototype.isEmpty=function(){var e=0;return st(this.selectedNodes,function(r,o){o&&e++}),e===0},t.prototype.deselectAllRowNodes=function(e){var r=function(u){return u.selectThisNode(!1,void 0,i)},o=this.rowModel.getType()==="clientSide",i=e.source,a=e.justFiltered,s=e.justCurrentPage;if(s||a){if(!o){console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");return}this.getNodesToSelect(a,s).forEach(r)}else st(this.selectedNodes,function(u,c){c&&r(c)}),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(i);var l={type:_.EVENT_SELECTION_CHANGED,source:i};this.eventService.dispatchEvent(l)},t.prototype.getSelectAllState=function(e,r){var o=this,i=0,a=0,s=function(l){o.groupSelectsChildren&&l.group||(l.isSelected()?i++:l.selectable&&a++)};return this.getNodesToSelect(e,r).forEach(s),i===0&&a===0?!1:i>0&&a>0?null:i>0},t.prototype.getNodesToSelect=function(e,r){var o=this;if(e===void 0&&(e=!1),r===void 0&&(r=!1),this.rowModel.getType()!=="clientSide")throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var i=[];if(r)return this.paginationProxy.forEachNodeOnPage(function(s){if(!s.group){i.push(s);return}if(!s.expanded){var l=function(u){var c;i.push(u),!((c=u.childrenAfterFilter)===null||c===void 0)&&c.length&&u.childrenAfterFilter.forEach(l)};l(s);return}o.groupSelectsChildren||i.push(s)}),i;var a=this.rowModel;return e?(a.forEachNodeAfterFilter(function(s){i.push(s)}),i):(a.forEachNode(function(s){i.push(s)}),i)},t.prototype.selectAllRowNodes=function(e){if(this.rowModel.getType()!=="clientSide")throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var r=e.source,o=e.justFiltered,i=e.justCurrentPage,a=function(l){return l.selectThisNode(!0,void 0,r)};this.getNodesToSelect(o,i).forEach(a),this.rowModel.getType()==="clientSide"&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(r);var s={type:_.EVENT_SELECTION_CHANGED,source:r};this.eventService.dispatchEvent(s)},t.prototype.getServerSideSelectionState=function(){return null},t.prototype.setServerSideSelectionState=function(e){},Zc([w("rowModel")],t.prototype,"rowModel",void 0),Zc([w("paginationProxy")],t.prototype,"paginationProxy",void 0),Zc([dz(0,er("loggerFactory"))],t.prototype,"setBeans",null),Zc([M],t.prototype,"init",null),t=Zc([H("selectionService")],t),t}(F),Vw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},GA=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){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){r===void 0&&(r=!0),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,r,o)},n.prototype.setColumnWidths=function(t,e,r){e===void 0&&(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.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.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},n.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},n.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Q.removeAllReferences.bind(window,this,"Column API"),100)},n.prototype.getAllColumns=function(){return Xn("28.0","getAllColumns","getColumns"),this.getColumns()},n.prototype.getPrimaryColumns=function(){return Xn("28.0","getPrimaryColumns","getColumns"),this.getColumns()},n.prototype.getSecondaryColumns=function(){return Xn("28.0","getSecondaryColumns","getPivotResultColumns"),this.getPivotResultColumns()},n.prototype.setSecondaryColumns=function(t){Xn("28.0","setSecondaryColumns","setPivotResultColumns"),this.setPivotResultColumns(t)},n.prototype.getSecondaryPivotColumn=function(t,e){return Xn("28.0","getSecondaryPivotColumn","getPivotResultColumn"),this.getPivotResultColumn(t,e)},Vw([w("columnModel")],n.prototype,"columnModel",void 0),Vw([Mt],n.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),n=Vw([H("columnApi")],n),n}(),hz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},kA=function(n){hz(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.initialised=!1,e.isSsrm=!1,e}return t.prototype.init=function(){var e=this;this.isSsrm=this.gridOptionsService.isRowModelType("serverSide"),this.cellExpressions=this.gridOptionsService.is("enableCellExpressions"),this.isTreeData=this.gridOptionsService.is("treeData"),this.initialised=!0,this.eventService.addEventListener(_.EVENT_CELL_VALUE_CHANGED,function(r){return e.callColumnCellValueChangedHandler(r)},this.gridOptionsService.useAsyncEvents()),this.addManagedPropertyListener("treeData",function(r){return e.isTreeData=r.currentValue})},t.prototype.getValue=function(e,r,o,i){if(o===void 0&&(o=!1),i===void 0&&(i=!1),this.initialised||this.init(),!!r){var a=e.getColDef(),s=a.field,l=e.getColId(),u=r.data,c,d=r.groupData&&r.groupData[l]!==void 0,f=!i&&r.aggData&&r.aggData[l]!==void 0,p=this.isSsrm&&i&&!!e.getColDef().aggFunc,h=this.isSsrm&&r.footer&&r.field&&(e.getColDef().showRowGroup===!0||e.getColDef().showRowGroup===r.field);if(o&&a.filterValueGetter?c=this.executeFilterValueGetter(a.filterValueGetter,u,e,r):this.isTreeData&&f?c=r.aggData[l]:this.isTreeData&&a.valueGetter?c=this.executeValueGetter(a.valueGetter,u,e,r):this.isTreeData&&s&&u?c=Yl(u,s,e.isFieldContainsDots()):d?c=r.groupData[l]:f?c=r.aggData[l]:a.valueGetter?c=this.executeValueGetter(a.valueGetter,u,e,r):h?c=Yl(u,r.field,e.isFieldContainsDots()):s&&u&&!p&&(c=Yl(u,s,e.isFieldContainsDots())),this.cellExpressions&&typeof c=="string"&&c.indexOf("=")===0){var v=c.substring(1);c=this.executeValueGetter(v,u,e,r)}if(c==null){var C=this.getOpenedGroup(r,e);if(C!=null)return C}return c}},t.prototype.getOpenedGroup=function(e,r){if(this.gridOptionsService.is("showOpenedGroup")){var o=r.getColDef();if(o.showRowGroup)for(var i=r.getColDef().showRowGroup,a=e.parent;a!=null;){if(a.rowGroupColumn&&(i===!0||i===a.rowGroupColumn.getColId()))return a.key;a=a.parent}}},t.prototype.setValue=function(e,r,o,i){var a=this.columnModel.getPrimaryColumn(r);if(!e||!a)return!1;Z(e.data)&&(e.data={});var s=a.getColDef(),l=s.field,u=s.valueSetter;if(Z(l)&&Z(u))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;if(!this.dataTypeService.checkType(a,o))return console.warn("AG Grid: Data type of the new value does not match the cell data type of the column"),!1;var c={node:e,data:e.data,oldValue:this.getValue(a,e),newValue:o,colDef:a.getColDef(),column:a,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};c.newValue=o;var d;if(D(u)?typeof u=="function"?d=u(c):d=this.expressionService.evaluate(u,c):d=this.setValueUsingField(e.data,l,o,a.isFieldContainsDots()),d===void 0&&(d=!0),!d)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(a,e);var f={type:_.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,columnApi:c.columnApi,colDef:c.colDef,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue,source:i};return this.eventService.dispatchEvent(f),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var r=e.colDef.onCellValueChanged;typeof r=="function"&&r({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},t.prototype.setValueUsingField=function(e,r,o,i){if(!r)return!1;var a=!1;if(!i)a=e[r]===o,a||(e[r]=o);else for(var s=r.split("."),l=e;s.length>0&&l;){var u=s.shift();s.length===0?(a=l[u]===o,a||(l[u]=o)):l=l[u]}return!a},t.prototype.executeFilterValueGetter=function(e,r,o,i){var a={data:r,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,i)};return typeof e=="function"?e(a):this.expressionService.evaluate(e,a)},t.prototype.executeValueGetter=function(e,r,o,i){var a=o.getColId(),s=this.valueCache.getValue(i,a);if(s!==void 0)return s;var l={data:r,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,i)},u;return typeof e=="function"?u=e(l):u=this.expressionService.evaluate(e,l),this.valueCache.setValue(i,a,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,a=o;if(i){var s={value:o,colDef:e.getColDef(),column:e,node:r,data:r.data,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};a=i(s)}return typeof a=="string"||a==null||(a=String(a),a==="[object Object]"&&ge(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]")),a},Wl([w("expressionService")],t.prototype,"expressionService",void 0),Wl([w("columnModel")],t.prototype,"columnModel",void 0),Wl([w("valueCache")],t.prototype,"valueCache",void 0),Wl([w("dataTypeService")],t.prototype,"dataTypeService",void 0),Wl([M],t.prototype,"init",null),t=Wl([H("valueService")],t),t}(F),gz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),OI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vz=function(n,t){return function(e,r){t(e,r,n)}},HA=function(n){gz(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,r){if(typeof e=="string")return this.evaluateExpression(e,r);console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,r){try{var o=this.createExpressionFunction(e),i=o(r.value,r.context,r.oldValue,r.newValue,r.value,r.node,r.data,r.colDef,r.rowIndex,r.api,r.columnApi,r.getValue,r.column,r.columnGroup);return i}catch(a){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",r),console.log("Exception = "+a),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+";"},OI([vz(0,er("loggerFactory"))],t.prototype,"setBeans",null),t=OI([H("expressionService")],t),t}(F),mz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yz=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},VA=function(n){mz(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return t.prototype.getTemplate=function(e,r){var o=this.templateCache[e];if(o)return o;var i=this.waitingCallbacks[e],a=this;if(!i){i=[],this.waitingCallbacks[e]=i;var s=new XMLHttpRequest;s.onload=function(){a.handleHttpResult(this,e)},s.open("GET",e),s.send()}return r&&i.push(r),null},t.prototype.handleHttpResult=function(e,r){if(e.status!==200||e.response===null){console.warn("AG Grid: Unable to get template error "+e.status+" - "+r);return}this.templateCache[r]=e.response||e.responseText;for(var o=this.waitingCallbacks[r],i=0;i<o.length;i++){var a=o[i];a()}},t=yz([H("templateService")],t),t}(F),Cz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),LI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},wz=function(n,t){return function(e,r){t(e,r,n)}},BA=function(n){Cz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logging=e.is("debug")},t.prototype.create=function(e){return new Fg(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},LI([wz(0,er("gridOptionsService"))],t.prototype,"setBeans",null),t=LI([H("loggerFactory")],t),t}(F),Fg=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}(),Sz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ul=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},WA=function(n){Sz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setComp=function(e,r,o){var i=this;this.view=e,this.eGridHostDiv=r,this.eGui=o,this.eGui.setAttribute("grid-id",this.context.getGridId()),this.dragAndDropService.addDropTarget({getContainer:function(){return i.eGui},isInterestedIn:function(s){return s===g.DragSourceType.HeaderCell||s===g.DragSourceType.ToolPanel},getIconName:function(){return Ft.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(r),this.createManagedBean(new a_(this.view)),this.addRtlSupport(),this.addManagedListener(this,_.EVENT_KEYBOARD_FOCUS,function(){i.view.addOrRemoveKeyboardFocusClass(!0)}),this.addManagedListener(this,_.EVENT_MOUSE_FOCUS,function(){i.view.addOrRemoveKeyboardFocusClass(!1)});var a=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return a()}),this.ctrlsService.registerGridCtrl(this)},t.prototype.isDetailGrid=function(){var e,r=this.focusService.findTabbableParent(this.getGui());return((e=r?.getAttribute("row-id"))===null||e===void 0?void 0:e.startsWith("detail"))||!1},t.prototype.showDropZones=function(){return J.__isRegistered(g.ModuleNames.RowGroupingModule,this.context.getGridId())},t.prototype.showSideBar=function(){return J.__isRegistered(g.ModuleNames.SideBarModule,this.context.getGridId())},t.prototype.showStatusBar=function(){return J.__isRegistered(g.ModuleNames.StatusBarModule,this.context.getGridId())},t.prototype.showWatermark=function(){return J.__isRegistered(g.ModuleNames.EnterpriseCoreModule,this.context.getGridId())},t.prototype.onGridSizeChanged=function(){var e={type:_.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},t.prototype.focusNextInnerContainer=function(e){var r=this.gridOptionsService.getDocument(),o=this.view.getFocusableContainers(),i=o.findIndex(function(s){return s.contains(r.activeElement)}),a=i+(e?-1:1);return a<=0||a>=o.length?!1:this.focusService.focusInto(o[a])},t.prototype.focusInnerElement=function(e){var r=this.view.getFocusableContainers(),o=this.columnModel.getAllDisplayedColumns();if(e){if(r.length>1)return this.focusService.focusInto(Ge(r),!0);var i=Ge(o);if(this.focusService.focusGridView(i,!0))return!0}return this.gridOptionsService.getNum("headerHeight")===0?this.focusService.focusGridView(o[0]):this.focusService.focusFirstHeader()},t.prototype.forceFocusOutOfContainer=function(e){e===void 0&&(e=!1),this.view.forceFocusOutOfContainer(e)},Ul([w("focusService")],t.prototype,"focusService",void 0),Ul([w("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Ul([w("columnModel")],t.prototype,"columnModel",void 0),Ul([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Ul([w("mouseEventService")],t.prototype,"mouseEventService",void 0),Ul([w("dragAndDropService")],t.prototype,"dragAndDropService",void 0),t}(F),_z=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ed=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},UA=function(n){_z(t,n);function t(e){var r=n.call(this)||this;return r.eGridDiv=e,r}return t.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var r={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(i){return e.addCssClass(i)},addOrRemoveKeyboardFocusClass:function(i){return e.addOrRemoveCssClass(Os.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 WA);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(g.LayoutCssClasses.AUTO_HEIGHT,r.autoHeight),o.toggle(g.LayoutCssClasses.NORMAL,r.normal),o.toggle(g.LayoutCssClasses.PRINT,r.print),this.addOrRemoveCssClass(g.LayoutCssClasses.AUTO_HEIGHT,r.autoHeight),this.addOrRemoveCssClass(g.LayoutCssClasses.NORMAL,r.normal),this.addOrRemoveCssClass(g.LayoutCssClasses.PRINT,r.print)},t.prototype.createTemplate=function(){var e=this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",r=this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"",o=this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"",i=this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"",a=`<div class="ag-root-wrapper" role="presentation">
`+e+`
<div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">
<ag-grid-body ref="gridBody"></ag-grid-body>
`+r+`
</div>
`+o+`
<ag-pagination></ag-pagination>
`+i+`
</div>`;return a},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 ka(r)})},ed([w("loggerFactory")],t.prototype,"loggerFactory",void 0),ed([G("gridBody")],t.prototype,"gridBodyComp",void 0),ed([G("sideBar")],t.prototype,"sideBarComp",void 0),ed([G("rootWrapperBody")],t.prototype,"eRootWrapperBody",void 0),ed([M],t.prototype,"postConstruct",null),t}(xd),Ez=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),II=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ta=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},jl=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},jA=function(n){Ez(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}e=t,t.prototype.progressSort=function(r,o,i){var a=this.getNextSortDirection(r);this.setSortForColumn(r,a,o,i)},t.prototype.setSortForColumn=function(r,o,i,a){o!=="asc"&&o!=="desc"&&(o=null);var s=this.gridOptionsService.isColumnsSortingCoupledToGroup(),l=[r];if(s&&r.getColDef().showRowGroup){var u=this.columnModel.getSourceColumnsForGroupColumn(r),c=u?.filter(function(f){return f.getColDef().sortable});c&&(l=jl([r],Ta(c)))}l.forEach(function(f){return f.setSort(o,a)});var d=(i||this.gridOptionsService.is("alwaysMultiSort"))&&!this.gridOptionsService.is("suppressMultiSort");d||this.clearSortBarTheseColumns(l,a),this.updateSortIndex(r),this.dispatchSortChangedEvents(a)},t.prototype.updateSortIndex=function(r){var o=this.gridOptionsService.isColumnsSortingCoupledToGroup(),i=this.columnModel.getGroupDisplayColumnForGroup(r.getId()),a=o&&i||r,s=this.getColumnsWithSortingOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(c){return c.setSortIndex(null)});var l=s.filter(function(c){return c!==a}),u=a.getSort()?jl(jl([],Ta(l)),[a]):l;u.forEach(function(c,d){return c.setSortIndex(d)})},t.prototype.onSortChanged=function(r){this.dispatchSortChangedEvents(r)},t.prototype.isSortActive=function(){var r=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),o=r.filter(function(i){return!!i.getSort()});return o&&o.length>0},t.prototype.dispatchSortChangedEvents=function(r){var o={type:_.EVENT_SORT_CHANGED,source:r};this.eventService.dispatchEvent(o)},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(r.getColDef().sortingOrder?o=r.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?o=this.gridOptionsService.get("sortingOrder"):o=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 i=o.indexOf(r.getSort()),a=i<0,s=i==o.length-1,l;return a||s?l=o[0]:l=o[i+1],e.DEFAULT_SORTING_ORDER.indexOf(l)<0?(console.warn("AG Grid: invalid sort type "+l),null):l},t.prototype.getIndexedSortMap=function(){var r=this,o=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(c){return!!c.getSort()});if(this.columnModel.isPivotMode()){var i=this.gridOptionsService.isColumnsSortingCoupledToGroup();o=o.filter(function(c){var d=!!c.getAggFunc(),f=!c.isPrimary(),p=i?r.columnModel.getGroupDisplayColumnForGroup(c.getId()):c.getColDef().showRowGroup;return d||f||p})}var a=this.columnModel.getRowGroupColumns().filter(function(c){return!!c.getSort()}),s=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!a.length;s&&(o=jl([],Ta(new Set(o.map(function(c){var d;return(d=r.columnModel.getGroupDisplayColumnForGroup(c.getId()))!==null&&d!==void 0?d:c})))));var l={};o.forEach(function(c,d){return l[c.getId()]=d}),o.sort(function(c,d){var f=c.getSortIndex(),p=d.getSortIndex();if(f!=null&&p!=null)return f-p;if(f==null&&p==null){var h=l[c.getId()],v=l[d.getId()];return h>v?1:-1}else return p==null?-1:1});var u=new Map;return o.forEach(function(c,d){return u.set(c,d)}),s&&a.forEach(function(c){var d=r.columnModel.getGroupDisplayColumnForGroup(c.getId());u.set(c,u.get(d))}),u},t.prototype.getColumnsWithSortingOrdered=function(){return jl([],Ta(this.getIndexedSortMap().entries())).sort(function(r,o){var i=Ta(r,2),a=i[0],s=i[1],l=Ta(o,2),u=l[0],c=l[1];return s-c}).map(function(r){var o=Ta(r,1),i=o[0];return i})},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().filter(function(r){return r.getSort()}).map(function(r){return{sort:r.getSort(),colId:r.getId()}})},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().filter(function(r){return r.getSort()}).map(function(r){return{sort:r.getSort(),column:r}})},t.prototype.canColumnDisplayMixedSort=function(r){var o=this.gridOptionsService.isColumnsSortingCoupledToGroup(),i=!!r.getColDef().showRowGroup;return o&&i},t.prototype.getDisplaySortForColumn=function(r){var o=this.columnModel.getSourceColumnsForGroupColumn(r);if(!this.canColumnDisplayMixedSort(r)||!o?.length)return r.getSort();var i=r.getColDef().field!=null||!!r.getColDef().valueGetter,a=i?jl([r],Ta(o)):o,s=a[0].getSort(),l=a.every(function(u){return u.getSort()==s});return l?s:"mixed"},t.prototype.getDisplaySortIndexForColumn=function(r){return this.getIndexedSortMap().get(r)};var e;return t.DEFAULT_SORTING_ORDER=["asc","desc",null],II([w("columnModel")],t.prototype,"columnModel",void 0),t=e=II([H("sortController")],t),t}(F),Rz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Tz=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},xz=function(n){Rz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setMouseOver=function(e){this.selectedColumns=e;var r={type:_.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(r)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:_.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},t=Tz([H("columnHoverService")],t),t}(F),Pz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Bw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Oz=function(n){Pz(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.executeNextFuncs=[],e.executeLaterFuncs=[],e.active=!1,e.animationThreadCount=0,e}return 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.gridOptionsService.is("suppressColumnMoveAnimation")||this.gridOptionsService.is("enableRtl")||(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=[],!(e.length===0&&r.length===0)&&(window.setTimeout(function(){return e.forEach(function(o){return o()})},0),window.setTimeout(function(){return r.forEach(function(o){return o()})},300))},Bw([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Bw([M],t.prototype,"postConstruct",null),t=Bw([H("columnAnimationService")],t),t}(F),Lz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ww=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Iz=function(n){Lz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.centerRowContainerCon=r.centerRowContainerCtrl,e.addManagedListener(e.eventService,_.EVENT_BODY_HEIGHT_CHANGED,e.checkPageSize.bind(e)),e.addManagedListener(e.eventService,_.EVENT_SCROLL_VISIBILITY_CHANGED,e.checkPageSize.bind(e)),e.checkPageSize()})},t.prototype.notActive=function(){return!this.gridOptionsService.is("paginationAutoPageSize")||this.centerRowContainerCon==null},t.prototype.checkPageSize=function(){var e=this;if(!this.notActive()){var r=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(r>0){var o=function(){var i=e.gridOptionsService.getRowHeightAsNumber(),a=Math.floor(r/i);e.gridOptionsService.set("paginationPageSize",a)};this.isBodyRendered?wo(function(){return o()},50)():(o(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},Ww([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Ww([M],t.prototype,"postConstruct",null),t=Ww([H("paginationAutoPageSizeService")],t),t}(F),Dz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),DI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},zA=function(n){Dz(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.cacheVersion=0,e}return t.prototype.init=function(){this.active=this.gridOptionsService.is("valueCache"),this.neverExpires=this.gridOptionsService.is("valueCacheNeverExpires")},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]},DI([M],t.prototype,"init",null),t=DI([H("valueCache")],t),t}(F),Az=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),tg=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Fz="paste",bz=function(n){Az(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(){this.rowModel.getType()==="clientSide"&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,_.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==Fz&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,r){if(!this.gridOptionsService.is("suppressChangeDetection")){var o=[e];if(this.clientSideRowModel&&!e.isRowPinned()){var i=this.gridOptionsService.is("aggregateOnlyChangedColumns"),a=new ev(i,this.clientSideRowModel.getRootNode());a.addParentNode(e.parent,[r]),this.clientSideRowModel.doAggregate(a),a.forEachChangedNodeDepthFirst(function(s){o.push(s)})}this.rowRenderer.refreshCells({rowNodes:o})}},tg([w("rowModel")],t.prototype,"rowModel",void 0),tg([w("rowRenderer")],t.prototype,"rowRenderer",void 0),tg([M],t.prototype,"init",null),t=tg([H("changeDetectionService")],t),t}(F),Mz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),AI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Nz=function(n){Mz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return 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){var r=function(){function o(){}return o.prototype.refresh=function(i){return!1},o.prototype.getGui=function(){return this.eGui},o.prototype.init=function(i){var a=e(i),s=typeof a;if(s==="string"||s==="number"||s==="boolean"){this.eGui=tr("<span>"+a+"</span>");return}if(a==null){this.eGui=tr("<span></span>");return}this.eGui=a},o}();return r},t.prototype.doesImplementIComponent=function(e){return e?e.prototype&&"getGui"in e.prototype:!1},AI([w("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=AI([H("agComponentUtils")],t),t}(F),Gz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Uw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},kz=function(n){Gz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return 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)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","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]},Uw([w("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Uw([M],t.prototype,"postConstruct",null),t=Uw([H("componentMetadataProvider")],t),t}(F),Hz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),jw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Vz=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},Bz=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},Wz=25,FI=10,zw=8,Uz=4,qw=4,$w=6,jz={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:Uz*5,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:zw*7,headerCellMinWidth:48,listItemHeight:zw*4,rowHeight:zw*6,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:qw*8,headerCellMinWidth:24,listItemHeight:qw*6,rowHeight:qw*7,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:$w*8,headerCellMinWidth:36,listItemHeight:$w*4,rowHeight:$w*7,chartMenuPanelWidth:240}},bI={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},qA=function(n){Hz(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.calculatedSizes={},e}return t.prototype.postConstruct=function(){var e=this,r,o=(r=this.getTheme().el)!==null&&r!==void 0?r:this.eGridDiv;this.mutationObserver=new MutationObserver(function(){e.calculatedSizes={},e.fireGridStylesChangedEvent()}),this.mutationObserver.observe(o||this.eGridDiv,{attributes:!0,attributeFilter:["class"]})},t.prototype.fireGridStylesChangedEvent=function(){var e={type:_.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.getSassVariable=function(e){var r=this.getTheme(),o=r.themeFamily,i=r.el;if(!(!o||o.indexOf("ag-theme")!==0)){this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[o]||(this.calculatedSizes[o]={});var a=this.calculatedSizes[o][e];return a??(this.calculatedSizes[o][e]=this.calculateValueForSassProperty(e,o,i),this.calculatedSizes[o][e])}},t.prototype.calculateValueForSassProperty=function(e,r,o){var i,a="ag-theme-"+(r.match("material")?"material":r.match("balham")?"balham":r.match("alpine")?"alpine":"custom"),s=jz[a][e],l=this.gridOptionsService.getDocument();if(o||(o=this.eGridDiv),!bI[e])return s;var u=bI[e],c=l.createElement("div"),d=Array.from(o.classList);(i=c.classList).add.apply(i,Bz([r],Vz(d))),c.style.position="absolute";var f=u.reduce(function(v,C){var m=l.createElement("div");return m.style.position="static",m.classList.add(C),v.appendChild(m),m},c),p=0;if(l.body){l.body.appendChild(c);var h=e.toLowerCase().indexOf("height")!==-1?"height":"width";p=parseInt(window.getComputedStyle(f)[h],10),l.body.removeChild(c)}return p||s},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){return this.getSassVariable("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),!o)r=r.parentElement||void 0;else{var a=r.className.match(e);a&&(i=a);break}if(!o)return{allThemes:i};var s=o[0];return{theme:s,el:r,themeFamily:s.replace(/-dark$/,""),allThemes:i}},t.prototype.getFromTheme=function(e,r){var o;return(o=this.getSassVariable(r))!==null&&o!==void 0?o:e},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(Wz,"rowHeight")},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},t.prototype.refreshRowHeightVariable=function(){var e=this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(),r=this.gridOptionsService.getNum("rowHeight");if(r==null||isNaN(r)||!isFinite(r))return-1;var o=r+"px";return e!=o?(this.eGridDiv.style.setProperty("--ag-line-height",o),r):e!=""?parseFloat(e):-1},t.prototype.getMinColWidth=function(){var e=this.getFromTheme(null,"headerCellMinWidth");return D(e)?Math.max(e,FI):FI},t.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),n.prototype.destroy.call(this)},jw([w("eGridDiv")],t.prototype,"eGridDiv",void 0),jw([M],t.prototype,"postConstruct",null),t=jw([H("environment")],t),t}(F),zz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),rg=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},qz=function(n,t){return function(e,r){t(e,r,n)}},$z=function(n){zz(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=WD(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl(),r=e.getScrollFeature().getVScrollPosition().top,o=this.getUiBodyHeight(),i=r!==this.scrollY||o!==this.uiBodyHeight;i&&(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:_.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=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==r&&(this.divStretchOffset=r,this.eventService.dispatchEvent({type:_.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),r=e.getScrollFeature().getVScrollPosition();return r.bottom-r.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var r=this.modelHeight-this.getUiBodyHeight(),o=e/r,i=this.maxScrollY*o;return i},rg([w("ctrlsService")],t.prototype,"ctrlsService",void 0),rg([qz(0,er("loggerFactory"))],t.prototype,"agWire",null),rg([M],t.prototype,"postConstruct",null),t=rg([H("rowContainerHeightService")],t),t}(F),Kz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),MI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$A=function(n){Kz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.isRowSelectableFunc=this.gridOptionsService.get("isRowSelectable")},t.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){var r=function(o){return o.childrenAfterGroup};this.recurseDown(e.childrenAfterGroup,r)}},t.prototype.recurseDown=function(e,r){var o=this;e&&e.forEach(function(i){if(i.group){i.hasChildren()&&o.recurseDown(r(i),r);var a;if(o.groupSelectsChildren){var s=(r(i)||[]).find(function(l){return l.selectable===!0});a=D(s)}else a=o.isRowSelectableFunc?o.isRowSelectableFunc(i):!1;i.setRowSelectable(a)}})},MI([M],t.prototype,"init",null),t=MI([H("selectableService")],t),t}(F),Yz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Kn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Xz=function(n){Yz(t,n);function t(){var e=n.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e.areListenersSetup=!1,e}return t.prototype.postConstruct=function(){var e=this.gridOptionsService.is("enableRtl");this.setTemplate(this.getTemplate());var r=this,o=r.btFirst,i=r.btPrevious,a=r.btNext,s=r.btLast;this.activateTabIndex([o,i,a,s]),o.insertAdjacentElement("afterbegin",_t(e?"last":"first",this.gridOptionsService)),i.insertAdjacentElement("afterbegin",_t(e?"next":"previous",this.gridOptionsService)),a.insertAdjacentElement("afterbegin",_t(e?"previous":"next",this.gridOptionsService)),s.insertAdjacentElement("afterbegin",_t(e?"first":"last",this.gridOptionsService)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.onPaginationChanged()},t.prototype.onPaginationChanged=function(){var e=this.gridOptionsService.is("pagination"),r=e&&!this.gridOptionsService.is("suppressPaginationPanel");this.setDisplayed(r),r&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels())},t.prototype.setupListeners=function(){var e=this;this.areListenersSetup||(this.addManagedListener(this.eventService,_.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(r){var o=r.el,i=r.fn;e.addManagedListener(o,"click",i),e.addManagedListener(o,"keydown",function(a){(a.key===O.ENTER||a.key===O.SPACE)&&(a.preventDefault(),i())})}),this.areListenersSetup=!0)},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,r=this.paginationProxy.getCurrentPage(),o=e?r+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},t.prototype.formatNumber=function(e){var r=this.gridOptionsService.getCallback("paginationNumberFormatter");if(r){var o={value:e};return r(o)}var i=this.localeService.getLocaleTextFunc(),a=i("thousandSeparator",","),s=i("decimalSeparator",".");return GS(e,a,s)},t.prototype.getTemplate=function(){var e=this.localeService.getLocaleTextFunc(),r=e("page","Page"),o=e("to","to"),i=e("of","of"),a=e("firstPage","First Page"),s=e("previousPage","Previous Page"),l=e("nextPage","Next Page"),u=e("lastPage","Last Page"),c=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+c+`">
<span class="ag-paging-row-summary-panel" role="status">
<span id="ag-`+c+`-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>
<span id="ag-`+c+'-to">'+o+`</span>
<span id="ag-`+c+`-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>
<span id="ag-`+c+'-of">'+i+`</span>
<span id="ag-`+c+`-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>
</span>
<span class="ag-paging-page-summary-panel" role="presentation">
<div ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="`+a+`"></div>
<div ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="`+s+`"></div>
<span class="ag-paging-description" role="status">
<span id="ag-`+c+'-start-page">'+r+`</span>
<span id="ag-`+c+`-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>
<span id="ag-`+c+'-of-page">'+i+`</span>
<span id="ag-`+c+`-of-page-number" ref="lbTotal" class="ag-paging-number"></span>
</span>
<div ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="`+l+`"></div>
<div ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="`+u+`"></div>
</span>
</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=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var i=this.isZeroPagesToDisplay(),a=r&&e===o-1;this.nextButtonDisabled=a||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){OS(e,r),e.classList.toggle("ag-disabled",r)},t.prototype.updateRowLabels=function(){var e=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),o=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null,a,s;if(this.isZeroPagesToDisplay()?a=s=0:(a=r*e+1,s=a+r-1,o&&s>i&&(s=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(a),this.rowNodeBlockLoader.isLoading()){var l=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=l("pageLastRowUnknown","?")}else this.lbLastRowOnPage.innerHTML=this.formatNumber(s)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.getTotalPages();return e&&r===0},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.getTotalPages(),o=e?this.paginationProxy.getMasterRowCount():null;if(o===1){var i=this.paginationProxy.getRow(0),a=i&&i.group&&!(i.groupData||i.aggData);if(a){this.setTotalLabelsToZero();return}}if(e)this.lbTotal.innerHTML=this.formatNumber(r),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var s=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=s,this.lbRecordCount.innerHTML=s}},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)},Kn([w("paginationProxy")],t.prototype,"paginationProxy",void 0),Kn([w("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Kn([G("btFirst")],t.prototype,"btFirst",void 0),Kn([G("btPrevious")],t.prototype,"btPrevious",void 0),Kn([G("btNext")],t.prototype,"btNext",void 0),Kn([G("btLast")],t.prototype,"btLast",void 0),Kn([G("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Kn([G("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Kn([G("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Kn([G("lbCurrent")],t.prototype,"lbCurrent",void 0),Kn([G("lbTotal")],t.prototype,"lbTotal",void 0),Kn([M],t.prototype,"postConstruct",null),t}(se),Qz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Kl;(function(n){n[n.Loading=0]="Loading",n[n.NoRows=1]="NoRows"})(Kl||(Kl={}));var Jz=function(n){Qz(t,n);function t(){var e=n.call(this,t.TEMPLATE)||this;return e.inProgress=!1,e.destroyRequested=!1,e.manuallyDisplayed=!1,e}return t.prototype.updateLayoutClasses=function(e,r){var o=this.eOverlayWrapper.classList;o.toggle(g.LayoutCssClasses.AUTO_HEIGHT,r.autoHeight),o.toggle(g.LayoutCssClasses.NORMAL,r.normal),o.toggle(g.LayoutCssClasses.PRINT,r.print)},t.prototype.postConstruct=function(){this.createManagedBean(new a_(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.addManagedListener(this.eventService,_.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData")&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},t.prototype.setWrapperTypeClass=function(e){var r=this.eOverlayWrapper.classList;r.toggle("ag-overlay-loading-wrapper",e===Kl.Loading),r.toggle("ag-overlay-no-rows-wrapper",e===Kl.NoRows)},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.is("suppressLoadingOverlay")){var e={},r=this.userComponentFactory.getLoadingOverlayCompDetails(e),o=r.newAgStackInstance();this.showOverlay(o,Kl.Loading)}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.is("suppressNoRowsOverlay")){var e={},r=this.userComponentFactory.getNoRowsOverlayCompDetails(e),o=r.newAgStackInstance();this.showOverlay(o,Kl.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,{skipAriaHidden:!0}))},t.prototype.destroyActiveOverlay=function(){if(this.inProgress){this.destroyRequested=!0;return}this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),vr(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},t.prototype.destroy=function(){this.destroyActiveOverlay(),n.prototype.destroy.call(this)},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),r=this.gridOptionsService.is("suppressNoRowsOverlay");e&&!r?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){this.columnModel.isReady()&&!this.paginationProxy.isEmpty()&&!this.manuallyDisplayed&&this.hideOverlay()},t.TEMPLATE=`
<div class="ag-overlay" aria-hidden="true">
<div class="ag-overlay-panel">
<div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>
</div>
</div>`,zl([w("userComponentFactory")],t.prototype,"userComponentFactory",void 0),zl([w("paginationProxy")],t.prototype,"paginationProxy",void 0),zl([w("gridApi")],t.prototype,"gridApi",void 0),zl([w("columnModel")],t.prototype,"columnModel",void 0),zl([G("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),zl([M],t.prototype,"postConstruct",null),t}(se),Zz=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ng=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},KA=function(n){Zz(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getFirstRow=function(){var e=0,r;return this.pinnedRowModel.getPinnedTopRowCount()?r="top":this.rowModel.getRowCount()?(r=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(r="bottom"),r===void 0?null:{rowIndex:e,rowPinned:r}},t.prototype.getLastRow=function(){var e,r=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),i=this.pinnedRowModel.getPinnedTopRowCount();return o?(r="bottom",e=o-1):this.rowModel.getRowCount()?(r=null,e=this.paginationProxy.getPageLastRow()):i&&(r="top",e=i-1),e===void 0?null:{rowIndex:e,rowPinned:r}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,r){return!e&&!r?!0:e&&!r||!e&&r?!1:e.rowIndex===r.rowIndex&&e.rowPinned==r.rowPinned},t.prototype.before=function(e,r){switch(e.rowPinned){case"top":if(r.rowPinned!=="top")return!0;break;case"bottom":if(r.rowPinned!=="bottom")return!1;break;default:if(D(r.rowPinned))return r.rowPinned!=="top";break}return e.rowIndex<r.rowIndex},t.prototype.rowMax=function(e){var r=this,o;return e.forEach(function(i){(o===void 0||r.before(o,i))&&(o=i)}),o},t.prototype.rowMin=function(e){var r=this,o;return e.forEach(function(i){(o===void 0||r.before(i,o))&&(o=i)}),o},ng([w("rowModel")],t.prototype,"rowModel",void 0),ng([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ng([w("paginationProxy")],t.prototype,"paginationProxy",void 0),t=ng([H("rowPositionUtils")],t),t}(F),eq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),tq=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},YA=function(n){eq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createId=function(e){var r=e.rowIndex,o=e.rowPinned,i=e.column;return this.createIdFromValues({rowIndex:r,column:i,rowPinned:o})},t.prototype.createIdFromValues=function(e){var r=e.rowIndex,o=e.rowPinned,i=e.column;return r+"."+(o??"null")+"."+i.getId()},t.prototype.equals=function(e,r){var o=e.column===r.column,i=e.rowPinned===r.rowPinned,a=e.rowIndex===r.rowIndex;return o&&i&&a},t=tq([H("cellPositionUtils")],t),t}(F),rq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ld=function(){function n(t){this.cellValueChanges=t}return n}(),Kw=function(n){rq(t,n);function t(e,r,o,i){var a=n.call(this,e)||this;return a.initialRange=r,a.finalRange=o,a.ranges=i,a}return t}(ld),NI=function(){function n(t){this.actionStack=[],this.maxStackSize=t||n.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return n.prototype.pop=function(){return this.actionStack.pop()},n.prototype.push=function(t){var e=t.cellValueChanges&&t.cellValueChanges.length>0;e&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},n.prototype.clear=function(){this.actionStack=[]},n.prototype.getCurrentStackSize=function(){return this.actionStack.length},n.DEFAULT_STACK_SIZE=10,n}(),nq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),bg=function(){return bg=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},bg.apply(this,arguments)},Xo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},oq=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},iq=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},aq=function(n){nq(t,n);function t(){var e=n!==null&&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=e.activeCellEdit!==null&&e.cellPositionUtils.equals(e.activeCellEdit,o),a=e.activeRowEdit!==null&&e.rowPositionUtils.sameRow(e.activeRowEdit,o),s=i||a||e.isPasting||e.isRangeInAction;if(s){var l=r.rowPinned,u=r.rowIndex,c=r.column,d=r.oldValue,f=r.value,p={rowPinned:l,rowIndex:u,columnId:c.getColId(),newValue:f,oldValue:d};e.cellValueChanges.push(p)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return t.prototype.init=function(){var e=this;if(this.gridOptionsService.is("undoRedoCellEditing")){var r=this.gridOptionsService.getNum("undoRedoCellEditingLimit");r<=0||(this.undoStack=new NI(r),this.redoStack=new NI(r),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,_.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,_.EVENT_MODEL_UPDATED,function(o){o.keepUndoRedoStack||e.clearStacks()}),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,_.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(e){var r={type:_.EVENT_UNDO_STARTED,source:e};this.eventService.dispatchEvent(r);var o=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),i={type:_.EVENT_UNDO_ENDED,source:e,operationPerformed:o};this.eventService.dispatchEvent(i)},t.prototype.redo=function(e){var r={type:_.EVENT_REDO_STARTED,source:e};this.eventService.dispatchEvent(r);var o=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),i={type:_.EVENT_REDO_ENDED,source:e,operationPerformed:o};this.eventService.dispatchEvent(i)},t.prototype.undoRedo=function(e,r,o,i,a){if(!e)return!1;var s=e.pop();return!s||!s.cellValueChanges?!1:(this.processAction(s,function(l){return l[i]},a),s instanceof Kw?this.processRange(s.ranges||[s[o]]):this.processCell(s.cellValueChanges),r.push(s),!0)},t.prototype.processAction=function(e,r,o){var i=this;e.cellValueChanges.forEach(function(a){var s=a.rowIndex,l=a.rowPinned,u=a.columnId,c={rowIndex:s,rowPinned:l},d=i.getRowNode(c);d.displayed&&d.setDataValue(u,r(a),o)})},t.prototype.processRange=function(e){var r=this,o;this.rangeService.removeAllCellRanges(!0),e.forEach(function(i,a){if(i){var s=i.startRow,l=i.endRow;a===e.length-1&&(o={rowPinned:s.rowPinned,rowIndex:s.rowIndex,columnId:i.startColumn.getColId()},r.setLastFocusedCell(o));var u={rowStartIndex:s.rowIndex,rowStartPinned:s.rowPinned,rowEndIndex:l.rowIndex,rowEndPinned:l.rowPinned,columnStart:i.startColumn,columns:i.columns};r.rangeService.addCellRange(u)}})},t.prototype.processCell=function(e){var r=e[0],o=r.rowIndex,i=r.rowPinned,a={rowIndex:o,rowPinned:i},s=this.getRowNode(a),l={rowPinned:r.rowPinned,rowIndex:s.rowIndex,columnId:r.columnId};this.setLastFocusedCell(l,!!this.rangeService)},t.prototype.setLastFocusedCell=function(e,r){var o=e.rowIndex,i=e.columnId,a=e.rowPinned,s=this.gridBodyCtrl.getScrollFeature(),l=this.columnModel.getGridColumn(i);if(l){s.ensureIndexVisible(o),s.ensureColumnVisible(l);var u={rowIndex:o,column:l,rowPinned:a};this.focusService.setFocusedCell(bg(bg({},u),{forceBrowserFocus:!0})),r&&this.rangeService.setRangeToCell(u)}},t.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_ROW_EDITING_STARTED,function(r){e.activeRowEdit={rowIndex:r.rowIndex,rowPinned:r.rowPinned}}),this.addManagedListener(this.eventService,_.EVENT_ROW_EDITING_STOPPED,function(){var r=new ld(e.cellValueChanges);e.pushActionsToUndoStack(r),e.activeRowEdit=null})},t.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_CELL_EDITING_STARTED,function(r){e.activeCellEdit={column:r.column,rowIndex:r.rowIndex,rowPinned:r.rowPinned}}),this.addManagedListener(this.eventService,_.EVENT_CELL_EDITING_STOPPED,function(r){e.activeCellEdit=null;var o=r.valueChanged&&!e.activeRowEdit&&!e.isPasting&&!e.isRangeInAction;if(o){var i=new ld(e.cellValueChanges);e.pushActionsToUndoStack(i)}})},t.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_PASTE_START,function(){e.isPasting=!0}),this.addManagedListener(this.eventService,_.EVENT_PASTE_END,function(){var r=new ld(e.cellValueChanges);e.pushActionsToUndoStack(r),e.isPasting=!1})},t.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_FILL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,_.EVENT_FILL_END,function(r){var o=new Kw(e.cellValueChanges,r.initialRange,r.finalRange);e.pushActionsToUndoStack(o),e.isRangeInAction=!1})},t.prototype.addCellKeyListeners=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,_.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,function(){var r;e.rangeService&&e.gridOptionsService.is("enableRangeSelection")?r=new Kw(e.cellValueChanges,void 0,void 0,iq([],oq(e.rangeService.getCellRanges()))):r=new ld(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"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Xo([w("focusService")],t.prototype,"focusService",void 0),Xo([w("ctrlsService")],t.prototype,"ctrlsService",void 0),Xo([w("rowModel")],t.prototype,"rowModel",void 0),Xo([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Xo([w("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),Xo([w("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Xo([w("columnModel")],t.prototype,"columnModel",void 0),Xo([_e("rangeService")],t.prototype,"rangeService",void 0),Xo([M],t.prototype,"init",null),t=Xo([H("undoRedoService")],t),t}(F),sq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},XA=function(n){sq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.findHeader=function(e,r){var o,i,a;if(e.column instanceof Wt?(i="getDisplayedGroup"+r,o=this.columnModel[i](e.column)):(a="getDisplayedCol"+r,o=this.columnModel[a](e.column)),!!o){var s=e.headerRowIndex,l=this.getHeaderRowType(s);if(l===g.HeaderRowType.COLUMN_GROUP){var u=o;if(u.isPadding()&&this.isAnyChildSpanningHeaderHeight(u)){var c=this.getColumnVisibleChild(u,s,r),d=c.nextFocusColumn,f=c.nextRow;d&&(o=d,s=f)}}return{column:o,headerRowIndex:s}}},t.prototype.isAnyChildSpanningHeaderHeight=function(e){return e?e.getLeafColumns().some(function(r){return r.isSpanHeaderHeight()}):!1},t.prototype.getColumnVisibleParent=function(e,r){var o=this.getHeaderRowType(r),i=o===g.HeaderRowType.FLOATING_FILTER,a=o===g.HeaderRowType.COLUMN,s=i?e:e.getParent(),l=r-1;if(a&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;s&&s.isPadding();)s=s.getParent(),l--;l<0&&(s=e,l=r)}return{nextFocusColumn:s,nextRow:l}},t.prototype.getColumnVisibleChild=function(e,r,o){o===void 0&&(o="After");var i=this.getHeaderRowType(r),a=e,s=r+1;if(i===g.HeaderRowType.COLUMN_GROUP){var l=e.getLeafColumns(),u=o==="After"?l[0]:Ge(l);if(this.isAnyChildSpanningHeaderHeight(u.getParent())){a=u;for(var c=u.getParent();c&&c!==e;)c=c.getParent(),s++}else a=e.getDisplayedChildren()[0]}return{nextFocusColumn:a,nextRow:s}},t.prototype.getHeaderRowType=function(e){var r=this.ctrlsService.getHeaderRowContainerCtrl();if(r)return r.getRowType(e)},t.prototype.findColAtEdgeForHeaderRow=function(e,r){var o=this.columnModel.getAllDisplayedColumns(),i=o[r==="start"?0:o.length-1];if(i){var a=this.ctrlsService.getHeaderRowContainerCtrl(i.getPinned()),s=a.getRowType(e);if(s==g.HeaderRowType.COLUMN_GROUP){var l=this.columnModel.getColumnGroupAtLevel(i,e);return{headerRowIndex:e,column:l}}return{headerRowIndex:s==null?-1:e,column:i}}},Yw([w("columnModel")],t.prototype,"columnModel",void 0),Yw([w("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Yw([H("headerPositionUtils")],t),t}(F),lq=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},uq=function(){function n(){}return n.prototype.buildColumnDefs=function(t,e,r){var o=this,i=[],a={};return t.forEach(function(s){for(var l=o.createDefFromColumn(s,e,r),u=!0,c=l,d=s.getOriginalParent(),f=null;d;){var p=null;if(d.isPadding()){d=d.getOriginalParent();continue}var h=a[d.getGroupId()];if(h){h.children.push(c),u=!1;break}if(p=o.createDefFromGroup(d),p&&(p.children=[c],a[p.groupId]=p,c=p,d=d.getOriginalParent()),d!=null&&f===d){u=!1;break}f=d}u&&i.push(c)}),i},n.prototype.createDefFromGroup=function(t){var e=hg(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e},n.prototype.createDefFromColumn=function(t,e,r){var o=hg(t.getColDef());return o.colId=t.getColId(),o.width=t.getActualWidth(),o.rowGroup=t.isRowGroupActive(),o.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,o.pivot=t.isPivotActive(),o.pivotIndex=t.isPivotActive()?r.indexOf(t):null,o.aggFunc=t.isValueActive()?t.getAggFunc():null,o.hide=t.isVisible()?void 0:!0,o.pinned=t.isPinned()?t.getPinned():null,o.sort=t.getSort()?t.getSort():null,o.sortIndex=t.getSortIndex()!=null?t.getSortIndex():null,o},n=lq([H("columnDefFactory")],n),n}(),Xw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},cq=function(){function n(){}return n.prototype.getInitialRowClasses=function(t){var e=[];return D(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"),oS(e,this.processClassesFromGridOptions(t.rowNode)),oS(e,this.preProcessRowClassRules(t.rowNode)),e.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&e.push("ag-row-first"),t.lastRowOnPage&&e.push("ag-row-last"),t.fullWidthRow&&(t.pinned==="left"&&e.push("ag-cell-last-left-pinned"),t.pinned==="right"&&e.push("ag-cell-first-right-pinned")),e},n.prototype.processClassesFromGridOptions=function(t){var e=[],r=function(l){typeof l=="string"?e.push(l):Array.isArray(l)&&l.forEach(function(u){return e.push(u)})},o=this.gridOptionsService.get("rowClass");if(o){if(typeof o=="function")return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];r(o)}var i=this.gridOptionsService.getCallback("getRowClass");if(i){var a={data:t.data,node:t,rowIndex:t.rowIndex},s=i(a);r(s)}return e},n.prototype.preProcessRowClassRules=function(t){var e=[];return this.processRowClassRules(t,function(r){e.push(r)},function(r){}),e},n.prototype.processRowClassRules=function(t,e,r){var o={data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};this.stylingService.processClassRules(this.gridOptionsService.get("rowClassRules"),o,e,r)},n.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},Xw([w("stylingService")],n.prototype,"stylingService",void 0),Xw([w("gridOptionsService")],n.prototype,"gridOptionsService",void 0),n=Xw([H("rowCssClassCalculator")],n),n}(),dq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),og=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},QA=function(n){dq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(){var e=this;this.isAccentedSort=this.gridOptionsService.is("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",function(r){return e.isAccentedSort=r.currentValue}),this.addManagedPropertyListener("autoGroupColumnDef",function(){return e.primaryColumnsSortGroups=e.gridOptionsService.isColumnsSortingCoupledToGroup()})},t.prototype.doFullSort=function(e,r){var o=function(a,s){return{currentPos:s,rowNode:a}},i=e.map(o);return i.sort(this.compareRowNodes.bind(this,r)),i.map(function(a){return a.rowNode})},t.prototype.compareRowNodes=function(e,r,o){for(var i=r.rowNode,a=o.rowNode,s=0,l=e.length;s<l;s++){var u=e[s],c=u.sort==="desc",d=this.getValue(i,u.column),f=this.getValue(a,u.column),p=void 0,h=this.getComparator(u,i);h?p=h(d,f,i,a,c):p=Q.defaultComparator(d,f,this.isAccentedSort);var v=!isNaN(p);if(v&&p!==0)return u.sort==="asc"?p:p*-1}return r.currentPos-o.currentPos},t.prototype.getComparator=function(e,r){var o=e.column,i=o.getColDef().comparator;if(i!=null)return i;if(o.getColDef().showRowGroup){var a=!r.group&&o.getColDef().field;if(a){var s=this.columnModel.getPrimaryColumn(a);if(s)return s.getColDef().comparator}}},t.prototype.getValue=function(e,r){var o,i;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(r,e,!1,!1);var a=e.rowGroupColumn===r;if(a){var s=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive());if(s){var l=r.getColDef().keyCreator;if(l)return e.key;var u=(o=e.allLeafChildren)===null||o===void 0?void 0:o[0];return u?this.valueService.getValue(r,u,!1,!1):void 0}var c=this.columnModel.getGroupDisplayColumnForGroup(r.getId());return c?(i=e.groupData)===null||i===void 0?void 0:i[c.getId()]:void 0}if(!(e.group&&r.getColDef().showRowGroup))return this.valueService.getValue(r,e,!1,!1)},og([w("valueService")],t.prototype,"valueService",void 0),og([w("columnModel")],t.prototype,"columnModel",void 0),og([M],t.prototype,"init",null),t=og([H("rowNodeSorter")],t),t}(F),fq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pq=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},JA=function(n){fq(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.ready=!1,r.readyCallbacks=[],r}e=t,t.prototype.checkReady=function(){if(this.ready=this.gridCtrl!=null&&this.gridBodyCtrl!=null&&this.centerRowContainerCtrl!=null&&this.leftRowContainerCtrl!=null&&this.rightRowContainerCtrl!=null&&this.bottomCenterRowContainerCtrl!=null&&this.bottomLeftRowContainerCtrl!=null&&this.bottomRightRowContainerCtrl!=null&&this.topCenterRowContainerCtrl!=null&&this.topLeftRowContainerCtrl!=null&&this.topRightRowContainerCtrl!=null&&this.stickyTopCenterRowContainerCtrl!=null&&this.stickyTopLeftRowContainerCtrl!=null&&this.stickyTopRightRowContainerCtrl!=null&&this.centerHeaderRowContainerCtrl!=null&&this.leftHeaderRowContainerCtrl!=null&&this.rightHeaderRowContainerCtrl!=null&&this.fakeHScrollComp!=null&&this.fakeVScrollComp!=null&&this.gridHeaderCtrl!=null,this.ready){var r=this.createReadyParams();this.readyCallbacks.forEach(function(o){return o(r)}),this.readyCallbacks.length=0}},t.prototype.whenReady=function(r){this.ready?r(this.createReadyParams()):this.readyCallbacks.push(r)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollComp=function(r){this.fakeHScrollComp=r,this.checkReady()},t.prototype.registerFakeVScrollComp=function(r){this.fakeVScrollComp=r,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(r){this.gridHeaderCtrl=r,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(r){this.centerRowContainerCtrl=r,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(r){this.leftRowContainerCtrl=r,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(r){this.rightRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(r){this.topCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(r){this.topLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(r){this.topRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopCenterRowContainerCtrl=function(r){this.stickyTopCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopLeftRowContainerCon=function(r){this.stickyTopLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopRightRowContainerCtrl=function(r){this.stickyTopRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(r){this.bottomCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(r){this.bottomLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(r){this.bottomRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerHeaderContainer=function(r,o){switch(o){case"left":this.leftHeaderRowContainerCtrl=r;break;case"right":this.rightHeaderRowContainerCtrl=r;break;default:this.centerHeaderRowContainerCtrl=r;break}this.checkReady()},t.prototype.registerGridBodyCtrl=function(r){this.gridBodyCtrl=r,this.checkReady()},t.prototype.registerGridCtrl=function(r){this.gridCtrl=r,this.checkReady()},t.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},t.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(r){switch(r){case"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}};var e;return t.NAME="ctrlsService",t=e=pq([H(e.NAME)],t),t}(F),hq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gq=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vq=function(n){hq(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.registry={},e}return t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var r=this.registry[e];if(r!=null)return new r},t=gq([H("ctrlsFactory")],t),t}(F),mq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),td=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ZA=function(n){mq(t,n);function t(e,r){var o=n.call(this,e)||this;return o.direction=r,o.hideTimeout=null,o}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,_.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",NS()||Na())},t.prototype.initialiseInvisibleScrollbar=function(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=hd(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},t.prototype.addActiveListenerToggles=function(){var e=this,r=["mouseenter","mousedown","touchstart"],o=["mouseleave","touchend"],i=this.getGui();r.forEach(function(a){return e.addManagedListener(i,a,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!0)})}),o.forEach(function(a){return e.addManagedListener(i,a,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!1)})})},t.prototype.onScrollVisibilityChanged=function(){var e=this;this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame(function(){return e.setScrollVisible()})},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,_.EVENT_BODY_SCROLL,function(r){r.direction===e.direction&&(e.hideTimeout!==null&&(window.clearTimeout(e.hideTimeout),e.hideTimeout=null),e.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))}),this.addManagedListener(this.eventService,_.EVENT_BODY_SCROLL_END,function(){e.hideTimeout=window.setTimeout(function(){e.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),e.hideTimeout=null},400)})},t.prototype.attemptSettingScrollPosition=function(e){var r=this,o=this.getViewport();ES(function(){return ka(o)},function(){return r.setScrollPosition(e)},100)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},t.prototype.onScrollCallback=function(e){this.addManagedListener(this.getViewport(),"scroll",e)},td([G("eViewport")],t.prototype,"eViewport",void 0),td([G("eContainer")],t.prototype,"eContainer",void 0),td([w("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),td([w("ctrlsService")],t.prototype,"ctrlsService",void 0),td([w("animationFrameService")],t.prototype,"animationFrameService",void 0),t}(se),yq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),rd=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Cq=function(n){yq(t,n);function t(){return n.call(this,t.TEMPLATE,"horizontal")||this}return t.prototype.postConstruct=function(){var e=this;n.prototype.postConstruct.call(this);var r=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,_.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",r),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new l_(function(o){return e.eContainer.style.width=o+"px"}))},t.prototype.initialiseInvisibleScrollbar=function(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gridOptionsService.is("enableRtl"),n.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},t.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},t.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=e+"px"}},t.prototype.onScrollVisibilityChanged=function(){n.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),r=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&e,i=this.gridOptionsService.getScrollbarWidth();o&&(r+=i),eo(this.eRightSpacer,r),this.eRightSpacer.classList.toggle("ag-scroller-corner",r<=i);var a=this.columnModel.getDisplayedColumnsLeftWidth(),s=this.enableRtl&&e;s&&(a+=i),eo(this.eLeftSpacer,a),this.eLeftSpacer.classList.toggle("ag-scroller-corner",a<=i)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),r=this.invisibleScrollbar,o=this.gridOptionsService.is("suppressHorizontalScroll"),i=e&&this.gridOptionsService.getScrollbarWidth()||0,a=i===0&&r?16:i,s=o?0:a;this.addOrRemoveCssClass("ag-scrollbar-invisible",r),Ps(this.getGui(),s),Ps(this.eViewport,s),Ps(this.eContainer,s),this.setDisplayed(e,{skipAriaHidden:!0})},t.prototype.getScrollPosition=function(){return md(this.getViewport(),this.enableRtl)},t.prototype.setScrollPosition=function(e){ka(this.getViewport())||this.attemptSettingScrollPosition(e),yd(this.getViewport(),e,this.enableRtl)},t.TEMPLATE=`<div class="ag-body-horizontal-scroll" aria-hidden="true">
<div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>
<div class="ag-body-horizontal-scroll-viewport" ref="eViewport">
<div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>
</div>
<div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>
</div>`,rd([G("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),rd([G("eRightSpacer")],t.prototype,"eRightSpacer",void 0),rd([w("columnModel")],t.prototype,"columnModel",void 0),rd([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),rd([M],t.prototype,"postConstruct",null),t}(ZA),wq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Sq=function(n){wq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener("domLayout",e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsService.isDomLayout("print"),r=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=e?0:this.columnModel.getDisplayedColumnsRightWidth();r!=this.leftWidth&&(this.leftWidth=r,this.eventService.dispatchEvent({type:_.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:_.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},Qw([w("columnModel")],t.prototype,"columnModel",void 0),Qw([M],t.prototype,"postConstruct",null),t=Qw([H("pinnedWidthService")],t),t}(F),_q=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ig=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Eq=function(n){_q(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.events=[],e}return t.prototype.postConstruct=function(){this.rowModel.getType()=="clientSide"&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var r=this;if(this.clientSideRowModel==null){this.eventService.dispatchEvent(e);return}this.events.push(e);var o=function(){r.clientSideRowModel&&r.clientSideRowModel.onRowGroupOpened(),r.events.forEach(function(i){return r.eventService.dispatchEvent(i)}),r.events=[]};this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(o)),this.dispatchExpandedDebounced()},ig([w("animationFrameService")],t.prototype,"animationFrameService",void 0),ig([w("rowModel")],t.prototype,"rowModel",void 0),ig([M],t.prototype,"postConstruct",null),t=ig([H("rowNodeEventThrottle")],t),t}(F),SS=function(){return SS=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},SS.apply(this,arguments)},xa=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},GI=function(n,t){return function(e,r){t(e,r,n)}},kI=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},HI=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n};function Rq(n){if(typeof n=="number")return n;if(typeof n=="string")return parseInt(n,10)}function ag(n){return n===!0||n==="true"}var eF=function(){function n(){var e=this;this.destroyed=!1,this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new Li,this.globalEventHandlerFactory=function(r){return function(o,i){if(!e.destroyed){var a=t.alwaysSyncGlobalEvents.has(o);if(!(a&&!r||!a&&r)){var s=ud.getCallbackForEvent(o);typeof e.gridOptions[s]=="function"&&e.gridOptions[s](i)}}}}}t=n,Object.defineProperty(n.prototype,"context",{get:function(){return this.gridOptions.context},enumerable:!1,configurable:!0}),n.prototype.agWire=function(e,r){this.gridOptions.api=e,this.gridOptions.columnApi=r,this.api=e,this.columnApi=r},n.prototype.init=function(){this.gridOptionLookup=new Set(HI(HI([],kI(ud.ALL_PROPERTIES)),kI(ud.EVENT_CALLBACKS)));var e=!this.is("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandlerFactory().bind(this),e),this.eventService.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.getScrollbarWidth()},n.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},n.prototype.is=function(e){return ag(this.gridOptions[e])},n.prototype.get=function(e){return this.gridOptions[e]},n.prototype.getNum=function(e){return Rq(this.gridOptions[e])},n.prototype.getCallback=function(e){return this.mergeGridCommonParams(this.gridOptions[e])},n.prototype.exists=function(e){return D(this.gridOptions[e])},n.prototype.mergeGridCommonParams=function(e){var r=this;if(e){var o=function(i){var a=i;return a.api=r.api,a.columnApi=r.columnApi,a.context=r.context,e(a)};return o}return e},n.prototype.__setPropertyOnly=function(e,r){var o=this.gridOptions[e];return this.gridOptionLookup.has(e)&&(this.gridOptions[e]=r),o!==r},n.prototype.set=function(e,r,o,i,a){if(o===void 0&&(o=!1),i===void 0&&(i={}),a===void 0&&(a=void 0),this.gridOptionLookup.has(e)){var s=this.gridOptions[e];if(o||s!==r){this.gridOptions[e]=r;var l=SS({type:e,currentValue:r,previousValue:s,changeSet:a},i);this.propertyEventService.dispatchEvent(l)}}},n.prototype.addEventListener=function(e,r){this.propertyEventService.addEventListener(e,r)},n.prototype.removeEventListener=function(e,r){this.propertyEventService.removeEventListener(e,r)},n.prototype.getGridId=function(){return this.api.getGridId()},n.prototype.getScrollbarWidth=function(){if(this.scrollbarWidth==null){var e=typeof this.gridOptions.scrollbarWidth=="number"&&this.gridOptions.scrollbarWidth>=0,r=e?this.gridOptions.scrollbarWidth:zD();r!=null&&(this.scrollbarWidth=r,this.eventService.dispatchEvent({type:_.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},n.prototype.isRowModelType=function(e){return this.gridOptions.rowModelType===e||e==="clientSide"&&Z(this.gridOptions.rowModelType)},n.prototype.isDomLayout=function(e){var r,o=(r=this.gridOptions.domLayout)!==null&&r!==void 0?r:"normal";return o===e},n.prototype.isRowSelection=function(){return this.gridOptions.rowSelection==="single"||this.gridOptions.rowSelection==="multiple"},n.prototype.useAsyncEvents=function(){return!this.is("suppressAsyncEvents")},n.prototype.isGetRowHeightFunction=function(){return typeof this.gridOptions.getRowHeight=="function"},n.prototype.getRowHeightForNode=function(e,r,o){if(r===void 0&&(r=!1),o==null&&(o=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(r)return{height:o,estimated:!0};var i={node:e,data:e.data},a=this.getCallback("getRowHeight")(i);if(this.isNumeric(a))return a===0&&ge(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,a),estimated:!1}}if(e.detail&&this.is("masterDetail"))return this.getMasterDetailRowHeight();var s=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o;return{height:s,estimated:!1}},n.prototype.getMasterDetailRowHeight=function(){return this.is("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},n.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||Z(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var e=this.environment.refreshRowHeightVariable();return e!==-1?e:(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},n.prototype.isNumeric=function(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)},n.prototype.getDomDataKey=function(){return this.domDataKey},n.prototype.getDomData=function(e,r){var o=e[this.getDomDataKey()];return o?o[r]:void 0},n.prototype.setDomData=function(e,r,o){var i=this.getDomDataKey(),a=e[i];Z(a)&&(a={},e[i]=a),a[r]=o},n.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&D(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&D(e)?e:document},n.prototype.getWindow=function(){var e=this.getDocument();return e.defaultView||window},n.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},n.prototype.getAsyncTransactionWaitMillis=function(){return D(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},n.prototype.isAnimateRows=function(){return this.is("ensureDomOrder")?!1:this.is("animateRows")},n.prototype.isGroupRowsSticky=function(){return!(this.is("suppressGroupRowsSticky")||this.is("paginateChildRows")||this.is("groupHideOpenParents"))},n.prototype.isColumnsSortingCoupledToGroup=function(){var e=this.gridOptions.autoGroupColumnDef,r=this.isRowModelType("clientSide");return r&&!e?.comparator&&!this.is("treeData")},n.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;if(typeof e=="function")return this.getCallback("groupAggFiltering");if(ag(e))return function(){return!0}},n.prototype.isGroupIncludeFooterTrueOrCallback=function(){var e=this.gridOptions.groupIncludeFooter;return ag(e)||typeof e=="function"},n.prototype.getGroupIncludeFooter=function(){var e=this.gridOptions.groupIncludeFooter;return typeof e=="function"?this.getCallback("groupIncludeFooter"):ag(e)?function(){return!0}:function(){return!1}},n.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?aS("multipleColumns",this.gridOptions.groupDisplayType):this.is("groupHideOpenParents")},n.prototype.isGroupUseEntireRow=function(e){return e?!1:this.gridOptions.groupDisplayType?aS("groupRows",this.gridOptions.groupDisplayType):!1};var t;return n.alwaysSyncGlobalEvents=new Set([_.EVENT_GRID_PRE_DESTROYED]),xa([w("gridOptions")],n.prototype,"gridOptions",void 0),xa([w("eventService")],n.prototype,"eventService",void 0),xa([w("environment")],n.prototype,"environment",void 0),xa([w("eGridDiv")],n.prototype,"eGridDiv",void 0),xa([GI(0,er("gridApi")),GI(1,er("columnApi"))],n.prototype,"agWire",null),xa([M],n.prototype,"init",null),xa([Mt],n.prototype,"destroy",null),n=t=xa([H("gridOptionsService")],n),n}(),Tq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),xq=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tF=function(n){Tq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getLocaleTextFunc=function(){var e=this.gridOptionsService.getCallback("getLocaleText");if(e)return function(o,i,a){var s={key:o,defaultValue:i,variableValues:a};return e(s)};var r=this.gridOptionsService.get("localeText");return function(o,i,a){var s=r&&r[o];if(s&&a&&a.length)for(var l=0;!(l>=a.length);){var u=s.indexOf("${variable}");if(u===-1)break;s=s.replace("${variable}",a[l++])}return s??i}},t=xq([H("localeService")],t),t}(F),Pq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Oq=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Lq=function(n){Pq(t,n);function t(){return n.call(this,t.TEMPLATE,"vertical")||this}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.createManagedBean(new j0(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this),this.addManagedListener(this.eventService,_.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onRowContainerHeightChanged.bind(this))},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),r=this.invisibleScrollbar,o=e&&this.gridOptionsService.getScrollbarWidth()||0,i=o===0&&r?16:o;this.addOrRemoveCssClass("ag-scrollbar-invisible",r),eo(this.getGui(),i),eo(this.eViewport,i),eo(this.eContainer,i),this.setDisplayed(e,{skipAriaHidden:!0})},t.prototype.onRowContainerHeightChanged=function(){var e=this.ctrlsService.getGridBodyCtrl(),r=e.getBodyViewportElement();this.eViewport.scrollTop!=r.scrollTop&&(this.eViewport.scrollTop=r.scrollTop)},t.prototype.getScrollPosition=function(){return this.getViewport().scrollTop},t.prototype.setScrollPosition=function(e){ka(this.getViewport())||this.attemptSettingScrollPosition(e),this.getViewport().scrollTop=e},t.TEMPLATE=`<div class="ag-body-vertical-scroll" aria-hidden="true">
<div class="ag-body-vertical-scroll-viewport" ref="eViewport">
<div class="ag-body-vertical-scroll-container" ref="eContainer"></div>
</div>
</div>`,Oq([M],t.prototype,"postConstruct",null),t}(ZA),Iq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qr=function(){return Qr=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Qr.apply(this,arguments)},_s=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Qo=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},nd=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},VI={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},BI=["january","february","march","april","may","june","july","august","september","october","november","december"],rF=function(n){Iq(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.dataTypeDefinitions={},e.isWaitingForRowData=!1,e.isColumnTypeOverrideInDataTypeDefinitions=!1,e.columnStateUpdatesPendingInference={},e.columnStateUpdateListenerDestroyFuncs=[],e}return t.prototype.init=function(){var e=this;this.groupHideOpenParents=this.gridOptionsService.is("groupHideOpenParents"),this.addManagedPropertyListener("groupHideOpenParents",function(){e.groupHideOpenParents=e.gridOptionsService.is("groupHideOpenParents")}),this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",function(){e.processDataTypeDefinitions(),e.columnModel.recreateColumnDefs("gridOptionsChanged")})},t.prototype.processDataTypeDefinitions=function(){var e=this,r,o=this.getDefaultDataTypes();this.dataTypeDefinitions={},Object.entries(o).forEach(function(a){var s=Qo(a,2),l=s[0],u=s[1];e.dataTypeDefinitions[l]=Qr(Qr({},u),{groupSafeValueFormatter:e.createGroupSafeValueFormatter(u)})});var i=(r=this.gridOptionsService.get("dataTypeDefinitions"))!==null&&r!==void 0?r:{};this.dataTypeMatchers={},Object.entries(i).forEach(function(a){var s=Qo(a,2),l=s[0],u=s[1],c=e.processDataTypeDefinition(u,i,[l],o);c&&(e.dataTypeDefinitions[l]=c,u.dataTypeMatcher&&(e.dataTypeMatchers[l]=u.dataTypeMatcher))}),this.checkObjectValueHandlers(o),["dateString","text","number","boolean","date"].forEach(function(a){var s=e.dataTypeMatchers[a];s&&delete e.dataTypeMatchers[a],e.dataTypeMatchers[a]=s??o[a].dataTypeMatcher})},t.prototype.mergeDataTypeDefinitions=function(e,r){var o=Qr(Qr({},e),r);return e.columnTypes&&r.columnTypes&&r.appendColumnTypes&&(o.columnTypes=nd(nd([],Qo(this.convertColumnTypes(e.columnTypes))),Qo(this.convertColumnTypes(r.columnTypes)))),o},t.prototype.processDataTypeDefinition=function(e,r,o,i){var a,s=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){var l=i[s];if(!this.validateDataTypeDefinition(e,l,s))return;a=this.mergeDataTypeDefinitions(l,e)}else{if(o.includes(s)){ge(function(){return console.warn('AG Grid: Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.')},"dataTypeExtendsCircularRef");return}var u=r[s];if(!this.validateDataTypeDefinition(e,u,s))return;var c=this.processDataTypeDefinition(u,r,nd(nd([],Qo(o)),[s]),i);if(!c)return;a=this.mergeDataTypeDefinitions(c,e)}return Qr(Qr({},a),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(a)})},t.prototype.validateDataTypeDefinition=function(e,r,o){return r?r.baseDataType!==e.baseDataType?(ge(function(){return console.warn('AG Grid: The "baseDataType" property of a data type definition must match that of its parent.')},"dataTypeBaseTypesMatch"),!1):!0:(ge(function(){return console.warn("AG Grid: The data type definition "+o+" does not exist.")},"dataTypeDefMissing"+o),!1)},t.prototype.createGroupSafeValueFormatter=function(e){var r=this;if(e.valueFormatter)return function(o){var i,a;if(!((i=o.node)===null||i===void 0)&&i.group){var s=o.column.getAggFunc();if(s){if(s==="first"||s==="last")return e.valueFormatter(o);if(e.baseDataType==="number"&&s!=="count"){if(typeof o.value=="number")return e.valueFormatter(o);if(typeof o.value=="object"){if(!o.value)return;if("toNumber"in o.value)return e.valueFormatter(Qr(Qr({},o),{value:o.value.toNumber()}));if("value"in o.value)return e.valueFormatter(Qr(Qr({},o),{value:o.value.value}))}}}return}else if(r.groupHideOpenParents&&o.column.isRowGroupActive())return typeof o.value!="string"||!((a=e.dataTypeMatcher)===null||a===void 0)&&a.call(e,o.value)?e.valueFormatter(o):void 0;return e.valueFormatter(o)}},t.prototype.updateColDefAndGetDataTypeDefinitionColumnType=function(e,r,o){var i=r.cellDataType,a=r.field;if(i===void 0&&(i=e.cellDataType),(i==null||i===!0)&&(i=this.canInferCellDataType(e,r)?this.inferCellDataType(a,o):!1),!i){e.cellDataType=!1;return}var s=this.dataTypeDefinitions[i];if(!s){ge(function(){return console.warn('AG Grid: Missing data type definition - "'+i+'"')},"dataTypeMissing"+i);return}return e.cellDataType=i,s.groupSafeValueFormatter&&(e.valueFormatter=s.groupSafeValueFormatter),s.valueParser&&(e.valueParser=s.valueParser),s.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,s,o),s.columnTypes},t.prototype.updateColDefAndGetColumnType=function(e,r,o){var i,a,s=this.updateColDefAndGetDataTypeDefinitionColumnType(e,r,o),l=(a=(i=r.type)!==null&&i!==void 0?i:s)!==null&&a!==void 0?a:e.type;return e.type=l,l?this.convertColumnTypes(l):void 0},t.prototype.addColumnListeners=function(e){if(this.isWaitingForRowData){var r=this.columnStateUpdatesPendingInference[e.getColId()];if(r){var o=function(i){r.add(i.key)};e.addEventListener(Ne.EVENT_STATE_UPDATED,o),this.columnStateUpdateListenerDestroyFuncs.push(function(){return e.removeEventListener(Ne.EVENT_STATE_UPDATED,o)})}}},t.prototype.canInferCellDataType=function(e,r){var o=this,i;if(this.rowModel.getType()!=="clientSide")return!1;var a={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(this.doColDefPropsPreventInference(r,a))return!1;var s=r.type===null?e.type:r.type;if(s){var l=(i=this.gridOptionsService.get("columnTypes"))!==null&&i!==void 0?i:{},u=this.convertColumnTypes(s).some(function(c){var d=l[c.trim()];return d&&o.doColDefPropsPreventInference(d,a)});if(u)return!1}return!this.doColDefPropsPreventInference(e,a)},t.prototype.doColDefPropsPreventInference=function(e,r){var o=this;return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(function(i){var a=Qo(i,2),s=a[0],l=a[1];return o.doesColDefPropPreventInference(e,r,s,l)})},t.prototype.doesColDefPropPreventInference=function(e,r,o,i){if(!r[o])return!1;var a=e[o];return a===null?(r[o]=!1,!1):i===void 0?!!a:a===i},t.prototype.inferCellDataType=function(e,r){var o;if(e){var i,a=this.getInitialData();if(a){var s=e.indexOf(".")>=0&&!this.gridOptionsService.is("suppressFieldDotNotation");i=Yl(a,e,s)}else this.initWaitForRowData(r);if(i!=null){var l=Qo((o=Object.entries(this.dataTypeMatchers).find(function(c){var d=Qo(c,2),f=d[0],p=d[1];return p(i)}))!==null&&o!==void 0?o:["object"],1),u=l[0];return u}}},t.prototype.getInitialData=function(){var e=this.gridOptionsService.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;var r=this.rowModel.getRootNode().allLeafChildren;return r?.length?r[0].data:null},t.prototype.initWaitForRowData=function(e){var r=this;if(this.columnStateUpdatesPendingInference[e]=new Set,!this.isWaitingForRowData){this.isWaitingForRowData=!0;var o=this.isColumnTypeOverrideInDataTypeDefinitions;o&&this.columnModel.queueResizeOperations();var i=this.addManagedListener(this.eventService,_.EVENT_ROW_DATA_UPDATE_STARTED,function(a){var s=a.firstRowData;if(s){i?.(),r.isWaitingForRowData=!1,r.processColumnsPendingInference(s,o),r.columnStateUpdatesPendingInference={},o&&r.columnModel.processResizeOperations();var l={type:_.EVENT_DATA_TYPES_INFERRED};r.eventService.dispatchEvent(l)}})}},t.prototype.isPendingInference=function(){return this.isWaitingForRowData},t.prototype.processColumnsPendingInference=function(e,r){var o=this;this.initialData=e;var i=[];this.columnStateUpdateListenerDestroyFuncs.forEach(function(l){return l()}),this.columnStateUpdateListenerDestroyFuncs=[];var a={},s={};Object.entries(this.columnStateUpdatesPendingInference).forEach(function(l){var u=Qo(l,2),c=u[0],d=u[1],f=o.columnModel.getGridColumn(c);if(f){var p=f.getColDef();if(o.columnModel.resetColumnDefIntoColumn(f)){var h=f.getColDef();if(r&&h.type&&h.type!==p.type){var v=o.getUpdatedColumnState(f,d);v.rowGroup&&v.rowGroupIndex==null&&(a[c]=v),v.pivot&&v.pivotIndex==null&&(s[c]=v),i.push(v)}}}}),r&&i.push.apply(i,nd([],Qo(this.columnModel.generateColumnStateForRowGroupAndPivotIndexes(a,s)))),i.length&&this.columnModel.applyColumnState({state:i},"cellDataTypeInferred"),this.initialData=null},t.prototype.getUpdatedColumnState=function(e,r){var o=this.columnModel.getColumnStateFromColDef(e);return r.forEach(function(i){delete o[i],i==="rowGroup"?delete o.rowGroupIndex:i==="pivot"&&delete o.pivotIndex}),o},t.prototype.checkObjectValueHandlers=function(e){var r=this.dataTypeDefinitions.object,o=e.object;this.hasObjectValueParser=r.valueParser!==o.valueParser,this.hasObjectValueFormatter=r.valueFormatter!==o.valueFormatter},t.prototype.convertColumnTypes=function(e){var r=[];if(e instanceof Array){var o=e.some(function(i){return typeof i!="string"});o?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):r=e}else typeof e=="string"?r=e.split(","):console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");return r},t.prototype.getDateStringTypeDefinition=function(){return this.dataTypeDefinitions.dateString},t.prototype.getDateParserFunction=function(){return this.getDateStringTypeDefinition().dateParser},t.prototype.getDateFormatterFunction=function(){return this.getDateStringTypeDefinition().dateFormatter},t.prototype.getDataTypeDefinition=function(e){var r=e.getColDef();if(r.cellDataType)return this.dataTypeDefinitions[r.cellDataType]},t.prototype.getBaseDataType=function(e){var r;return(r=this.getDataTypeDefinition(e))===null||r===void 0?void 0:r.baseDataType},t.prototype.checkType=function(e,r){var o;if(r==null)return!0;var i=(o=this.getDataTypeDefinition(e))===null||o===void 0?void 0:o.dataTypeMatcher;return i?i(r):!0},t.prototype.validateColDef=function(e){e.cellDataType==="object"&&(e.valueFormatter===this.dataTypeDefinitions.object.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&ge(function(){return console.warn('AG Grid: Cell data type is "object" but no value formatter has been provided. Please either provide an object data type definition with a value formatter, or set "colDef.valueFormatter"')},"dataTypeObjectValueFormatter"),e.editable&&e.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&ge(function(){return console.warn('AG Grid: Cell data type is "object" but no value parser has been provided. Please either provide an object data type definition with a value parser, or set "colDef.valueParser"')},"dataTypeObjectValueParser"))},t.prototype.setColDefPropertiesForBaseDataType=function(e,r,o){var i=this,a=function(d,f,p){var h=d.getColDef().valueFormatter;return h===r.groupSafeValueFormatter&&(h=r.valueFormatter),i.valueFormatterService.formatValue(d,f,p,h)},s=J.__isRegistered(g.ModuleNames.SetFilterModule,this.context.getGridId()),l=this.localeService.getLocaleTextFunc(),u=function(d){var f=e.filterParams;e.filterParams=typeof f=="object"?Qr(Qr({},f),d):d};switch(e.useValueFormatterForExport=!0,e.useValueParserForImport=!0,r.baseDataType){case"number":{e.cellEditor="agNumberCellEditor",s&&u({comparator:function(d,f){var p=d==null?0:parseInt(d),h=f==null?0:parseInt(f);return p===h?0:p>h?1:-1}});break}case"boolean":{e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.suppressKeyboardEvent=function(d){return!!d.colDef.editable&&d.event.key===O.SPACE},u(s?{valueFormatter:function(d){return D(d.value)?l(String(d.value),d.value?"True":"False"):l("blanks","(Blanks)")}}:{maxNumConditions:1,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:function(d,f){return f},numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:function(d,f){return f===!1},numberOfInputs:0}]});break}case"date":{e.cellEditor="agDateCellEditor",e.keyCreator=function(d){return a(d.column,d.node,d.value)},s&&u({valueFormatter:function(d){var f=a(d.column,d.node,d.value);return D(f)?f:l("blanks","(Blanks)")},treeList:!0,treeListFormatter:function(d,f){if(f===1&&d!=null){var p=BI[Number(d)-1];return l(p,VI[p])}return d??l("blanks","(Blanks)")}});break}case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=function(d){return a(d.column,d.node,d.value)};var c=this.getDateParserFunction();u(s?{valueFormatter:function(d){var f=a(d.column,d.node,d.value);return D(f)?f:l("blanks","(Blanks)")},treeList:!0,treeListPathGetter:function(d){var f=c(d??void 0);return f?[String(f.getFullYear()),String(f.getMonth()+1),String(f.getDate())]:null},treeListFormatter:function(d,f){if(f===1&&d!=null){var p=BI[Number(d)-1];return l(p,VI[p])}return d??l("blanks","(Blanks)")}}:{comparator:function(d,f){var p=c(f);return f==null||p<d?-1:p>d?1:0}});break}case"object":{e.cellEditorParams={useFormatter:!0},e.comparator=function(d,f){var p=i.columnModel.getPrimaryColumn(o),h=p?.getColDef();if(!p||!h)return 0;var v=d==null?"":a(p,null,d),C=f==null?"":a(p,null,f);return v===C?0:v>C?1:-1},e.keyCreator=function(d){return a(d.column,d.node,d.value)},s?u({valueFormatter:function(d){var f=a(d.column,d.node,d.value);return D(f)?f:l("blanks","(Blanks)")}}):e.filterValueGetter=function(d){return a(d.column,d.node,i.valueService.getValue(d.column,d.node))};break}}},t.prototype.getDefaultDataTypes=function(){var e=function(o){return!!o.match("^\\d{4}-\\d{2}-\\d{2}$")},r=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:function(o){return o.newValue===""?null:Number(o.newValue)},valueFormatter:function(o){return o.value==null?"":typeof o.value!="number"||isNaN(o.value)?r("invalidNumber","Invalid Number"):String(o.value)},dataTypeMatcher:function(o){return typeof o=="number"}},text:{baseDataType:"text",valueParser:function(o){return o.newValue===""?null:fd(o.newValue)},dataTypeMatcher:function(o){return typeof o=="string"}},boolean:{baseDataType:"boolean",valueParser:function(o){return o.newValue===""?null:String(o.newValue).toLowerCase()==="true"},valueFormatter:function(o){return o.value==null?"":String(o.value)},dataTypeMatcher:function(o){return typeof o=="boolean"}},date:{baseDataType:"date",valueParser:function(o){return Jr(o.newValue==null?null:String(o.newValue))},valueFormatter:function(o){var i;return o.value==null?"":!(o.value instanceof Date)||isNaN(o.value.getTime())?r("invalidDate","Invalid Date"):(i=Zn(o.value,!1))!==null&&i!==void 0?i:""},dataTypeMatcher:function(o){return o instanceof Date}},dateString:{baseDataType:"dateString",dateParser:function(o){var i;return(i=Jr(o))!==null&&i!==void 0?i:void 0},dateFormatter:function(o){var i;return(i=Zn(o??null,!1))!==null&&i!==void 0?i:void 0},valueParser:function(o){return e(String(o.newValue))?o.newValue:null},valueFormatter:function(o){return e(String(o.value))?o.value:""},dataTypeMatcher:function(o){return typeof o=="string"&&e(o)}},object:{baseDataType:"object",valueParser:function(){return null},valueFormatter:function(o){var i;return(i=fd(o.value))!==null&&i!==void 0?i:""}}}},_s([w("rowModel")],t.prototype,"rowModel",void 0),_s([w("columnModel")],t.prototype,"columnModel",void 0),_s([w("columnUtils")],t.prototype,"columnUtils",void 0),_s([w("valueService")],t.prototype,"valueService",void 0),_s([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),_s([M],t.prototype,"init",null),t=_s([H("dataTypeService")],t),t}(F),Dq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),WI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},nF=function(n){Dq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.parseValue=function(e,r,o,i){var a=e.getColDef(),s={node:r,data:r?.data,oldValue:i,newValue:o,colDef:a,column:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context},l=a.valueParser;return D(l)?typeof l=="function"?l(s):this.expressionService.evaluate(l,s):o},WI([w("expressionService")],t.prototype,"expressionService",void 0),t=WI([H("valueParserService")],t),t}(F),UI=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},jI=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},Aq=function(){function n(t,e,r){if(!e){console.error("AG Grid: no gridOptions provided to the grid");return}this.gridOptions=e,new oF().create(t,e,function(o){var i=new UA(t);o.createBean(i)},void 0,r)}return n.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},n}(),Fq=1,oF=function(){function n(){}return n.prototype.create=function(t,e,r,o,i){var a=this,s,l=!!e.debug,u=(s=e.gridId)!==null&&s!==void 0?s:String(Fq++),c=this.getRegisteredModules(i,u),d=this.createBeansList(e.rowModelType,c,u),f=this.createProvidedBeans(t,e,i);if(d){var p={providedBeanInstances:f,beanClasses:d,debug:l,gridId:u},h=new Fg("AG Grid",function(){return e.debug}),v=new Fg("Context",function(){return p.debug}),C=new oD(p,v),m=C.getBean("beans");this.registerModuleUserComponents(m,c),this.registerStackComponents(m,c),this.registerControllers(m,c),r(C),m.ctrlsService.whenReady(function(){a.setColumnsAndData(m),a.dispatchGridReadyEvent(m);var y=J.__isRegistered(g.ModuleNames.EnterpriseCoreModule,u);h.log("initialised successfully, enterprise = "+y)}),o&&o(C)}},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,e){var r=t?t.modules:null,o=J.__getRegisteredModules(e),i=[],a={},s=function(l,u,c){var d=function(f){a[f.moduleName]||(a[f.moduleName]=!0,i.push(f),J.__register(f,l,c))};d(u),u.dependantModules&&u.dependantModules.forEach(function(f){return s(l,f,c)})};return r&&r.forEach(function(l){return s(!0,l,e)}),o&&o.forEach(function(l){return s(!J.__isPackageBased(),l,void 0)}),i},n.prototype.registerModuleUserComponents=function(t,e){var r=this.extractModuleEntity(e,function(o){return o.userComponents?o.userComponents:[]});r.forEach(function(o){t.userComponentRegistry.registerDefaultComponent(o.componentName,o.componentClass)})},n.prototype.createProvidedBeans=function(t,e,r){var o=r?r.frameworkOverrides:null;Z(o)&&(o=new bA);var i={gridOptions:e,eGridDiv:t,globalEventListener:r?r.globalEventListener:null,globalSyncEventListener:r?r.globalSyncEventListener:null,frameworkOverrides:o};return r&&r.providedBeanInstances&&Object.assign(i,r.providedBeanInstances),i},n.prototype.createAgStackComponentsList=function(t){var e=[{componentName:"AgCheckbox",componentClass:Rd},{componentName:"AgRadioButton",componentClass:ZS},{componentName:"AgToggleButton",componentClass:_A},{componentName:"AgInputTextField",componentClass:Ha},{componentName:"AgInputTextArea",componentClass:EA},{componentName:"AgInputNumberField",componentClass:$g},{componentName:"AgInputDateField",componentClass:RA},{componentName:"AgInputRange",componentClass:TA},{componentName:"AgRichSelect",componentClass:xA},{componentName:"AgSelect",componentClass:qg},{componentName:"AgSlider",componentClass:PA},{componentName:"AgGridBody",componentClass:q0},{componentName:"AgHeaderRoot",componentClass:cA},{componentName:"AgSortIndicator",componentClass:Yg},{componentName:"AgPagination",componentClass:Xz},{componentName:"AgOverlayWrapper",componentClass:Jz},{componentName:"AgGroupComponent",componentClass:OA},{componentName:"AgPanel",componentClass:p_},{componentName:"AgDialog",componentClass:DA},{componentName:"AgRowContainer",componentClass:J0},{componentName:"AgFakeHorizontalScroll",componentClass:Cq},{componentName:"AgFakeVerticalScroll",componentClass:Lq},{componentName:"AgAutocomplete",componentClass:FA}],r=this.extractModuleEntity(t,function(o){return o.agStackComponents?o.agStackComponents:[]});return e=e.concat(r),e},n.prototype.createBeansList=function(t,e,r){t===void 0&&(t="clientSide");var o=e.filter(function(u){return!u.rowModel||u.rowModel===t}),i={clientSide:g.ModuleNames.ClientSideRowModelModule,infinite:g.ModuleNames.InfiniteRowModelModule,serverSide:g.ModuleNames.ServerSideRowModelModule,viewport:g.ModuleNames.ViewportRowModelModule};if(!i[t]){console.error("AG Grid: could not find row model for rowModelType = "+t);return}if(J.__assertRegistered(i[t],"rowModelType = '"+t+"'",r)){var a=[s_,KA,YA,XA,Iz,k0,b0,Nz,kz,pA,N0,$z,dA,tF,iB,yA,G0,ED,Li,eF,AA,pz,V0,SD,lA,wA,vA,HA,vD,VA,NA,Y0,zA,kA,BA,_D,gA,fA,Ft,GA,Os,K0,qA,MA,mA,SA,$0,jA,xz,Oz,$A,$V,bz,hA,aq,RD,uq,cq,CA,QA,JA,Sq,Eq,vq,rF,nF,H0],s=this.extractModuleEntity(o,function(u){return u.beans?u.beans:[]});a.push.apply(a,jI([],UI(s)));var l=[];return a.forEach(function(u){l.indexOf(u)<0&&l.push(u)}),l}},n.prototype.extractModuleEntity=function(t,e){return[].concat.apply([],jI([],UI(t.map(e))))},n.prototype.setColumnsAndData=function(t){var e=t.gridOptionsService.get("columnDefs");t.columnModel.setColumnDefs(e||[],"gridInitializing"),t.rowModel.start()},n.prototype.dispatchGridReadyEvent=function(t){var e={type:_.EVENT_GRID_READY};t.eventService.dispatchEvent(e)},n}(),bq=function(){function n(){}return n.prototype.wrap=function(t,e,r,o){var i=this;r===void 0&&(r=[]);var a=this.createWrapper(t,o);return e.forEach(function(s){i.createMethod(a,s,!0)}),r.forEach(function(s){i.createMethod(a,s,!1)}),a},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}(),Mq={columnGroup:["column","stackedColumn","normalizedColumn"],barGroup:["bar","stackedBar","normalizedBar"],pieGroup:["pie","doughnut"],lineGroup:["line"],scatterGroup:["scatter","bubble"],areaGroup:["area","stackedArea","normalizedArea"],histogramGroup:["histogram"],combinationGroup:["columnLineCombo","areaColumnCombo","customCombo"]},Nq=["chartSettings","chartData","chartFormat"],Gq=["chartUnlink","chartLink","chartDownload"],kq={settings:"chartSettings",data:"chartData",format:"chartFormat"},Hq=0;(function(n){n.InsideBase="insideBase",n.InsideEnd="insideEnd",n.Center="center",n.OutsideEnd="outsideEnd"})(g.BarColumnLabelPlacement||(g.BarColumnLabelPlacement={}));var Zl=typeof global>"u"?{}:global;Zl.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement;Zl.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement;Zl.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement;Zl.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement;Zl.Node=typeof Node>"u"?{}:Node;Zl.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var od=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},id=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},Vq=function(){function n(t,e,r,o,i,a){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsService=e,this.eventService=r,this.columnModel=o,this.beans=a,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.gridOptionsService.is("suppressParentsInRowNodes"),this.isRowMasterFunc=this.gridOptionsService.get("isRowMaster"),this.doingMasterDetail=this.gridOptionsService.is("masterDetail")},n.prototype.getCopyOfNodesMap=function(){return Q.cloneObject(this.allNodesMap)},n.prototype.getRowNode=function(t){return this.allNodesMap[t]},n.prototype.setRowData=function(t){var e=this;if(typeof t=="string"){console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first");return}this.dispatchRowDataUpdateStartedEvent(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)},n.prototype.updateRowData=function(t,e){this.dispatchRowDataUpdateStartedEvent(t.add);var r={remove:[],update:[],add:[]},o=[];return this.executeRemove(t,r,o),this.executeUpdate(t,r,o),this.executeAdd(t,r),this.updateSelection(o,"rowDataChanged"),e&&Q.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),r},n.prototype.dispatchRowDataUpdateStartedEvent=function(t){var e={type:_.EVENT_ROW_DATA_UPDATE_STARTED,firstRowData:t?.length?t[0]:null};this.eventService.dispatchEvent(e)},n.prototype.updateSelection=function(t,e){var r=t.length>0;if(r&&this.selectionService.setNodesSelected({newValue:!1,nodes:t,suppressFinishActions:!0,source:e}),this.selectionService.updateGroupsFromChildrenSelections(e),r){var o={type:_.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(o)}},n.prototype.executeAdd=function(t,e){var r=this,o,i=t.add,a=t.addIndex;if(!Q.missingOrEmpty(i)){var s=i.map(function(v){return r.createNode(v,r.rootNode,n.TOP_LEVEL)});if(typeof a=="number"&&a>=0){var l=this.rootNode.allLeafChildren,u=l.length,c=a,d=this.gridOptionsService.is("treeData");if(d&&a>0&&u>0){for(var f=0;f<u;f++)if(((o=l[f])===null||o===void 0?void 0:o.rowIndex)==a-1){c=f+1;break}}var p=l.slice(0,c),h=l.slice(c,l.length);this.rootNode.allLeafChildren=id(id(id([],od(p)),od(s)),od(h))}else this.rootNode.allLeafChildren=id(id([],od(this.rootNode.allLeafChildren)),od(s));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(!Q.missingOrEmpty(i)){var a={};i.forEach(function(s){var l=o.lookupRowNode(s);l&&(l.isSelected()&&r.push(l),l.clearRowTopAndRowIndex(),a[l.id]=!0,delete o.allNodesMap[l.id],e.remove.push(l))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(s){return!a[s.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},n.prototype.executeUpdate=function(t,e,r){var o=this,i=t.update;Q.missingOrEmpty(i)||i.forEach(function(a){var s=o.lookupRowNode(a);s&&(s.updateData(a),!s.selectable&&s.isSelected()&&r.push(s),o.setMasterForRow(s,a,n.TOP_LEVEL,!1),e.update.push(s))})},n.prototype.lookupRowNode=function(t){var e=this.gridOptionsService.getCallback("getRowId"),r;if(e){var o=e({data:t,level:0});if(r=this.allNodesMap[o],!r)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}),!r)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 ce(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){var i=this.gridOptionsService.is("treeData");if(i)t.setMaster(!1),o&&(t.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?t.setMaster(this.isRowMasterFunc(e)):t.setMaster(!0):t.setMaster(!1),o){var a=this.columnModel.getRowGroupColumns(),s=a?a.length:0,l=r+s;t.expanded=t.master?this.isExpanded(l):!1}},n.prototype.isExpanded=function(t){var e=this.gridOptionsService.getNum("groupDefaultExpanded");return e===-1?!0:t<e},n.TOP_LEVEL=0,n.ROOT_NODE_ID="ROOT_NODE_ID",n}(),Bq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ad=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},sd=function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},ei;(function(n){n[n.Normal=0]="Normal",n[n.AfterFilter=1]="AfterFilter",n[n.AfterFilterAndSort=2]="AfterFilterAndSort",n[n.PivotNodes=3]="PivotNodes"})(ei||(ei={}));var Wq=function(n){Bq(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.onRowHeightChanged_debounced=Q.debounce(e.onRowHeightChanged.bind(e),100),e.rowsToDisplay=[],e}return t.prototype.init=function(){var e=this,r=this.refreshModel.bind(this,{step:g.ClientSideRowModelSteps.EVERYTHING}),o=!this.gridOptionsService.is("suppressAnimationFrame"),i=this.refreshModel.bind(this,{step:g.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:o});this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,i),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,r),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:g.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,_.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,r),this.addManagedListener(this.eventService,_.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanges.bind(this));var a=this.refreshModel.bind(this,{step:g.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:o});this.addManagedPropertyListeners(["groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupIncludeFooter"],a);var s=this.refreshModel.bind(this,{step:g.ClientSideRowModelSteps.AGGREGATE,keepRenderedRows:!0,animate:o});this.addManagedPropertyListeners(["groupIncludeTotalFooter"],s),this.rootNode=new ce(this.beans),this.nodeManager=new Vq(this.rootNode,this.gridOptionsService,this.eventService,this.columnModel,this.selectionService,this.beans),this.addManagedPropertyListener("treeData",function(){e.setRowData(e.rootNode.allLeafChildren.map(function(l){return l.data}))})},t.prototype.start=function(){var e=this.gridOptionsService.get("rowData");e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,r,o,i){var a,s=!1;do{a=!1;for(var l=this.getRowIndexAtPixel(e),u=this.getRowIndexAtPixel(r),c=Math.max(l,o),d=Math.min(u,i),f=c;f<=d;f++){var p=this.getRow(f);if(p.rowHeightEstimated){var h=this.gridOptionsService.getRowHeightForNode(p);p.setRowHeight(h.height),a=!0,s=!0}}a&&this.setRowTopAndRowIndex()}while(a);return s},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.environment.getDefaultRowHeight(),r=0,o=new Set,i=this.gridOptionsService.isDomLayout("normal"),a=0;a<this.rowsToDisplay.length;a++){var s=this.rowsToDisplay[a];if(s.id!=null&&o.add(s.id),s.rowHeight==null){var l=this.gridOptionsService.getRowHeightForNode(s,i,e);s.setRowHeight(l.height,l.estimated)}s.setRowTop(r),s.setRowIndex(a),r+=s.rowHeight}return o},t.prototype.clearRowTopAndRowIndex=function(e,r){var o=e.isActive(),i=function(s){s&&s.id!=null&&!r.has(s.id)&&s.clearRowTopAndRowIndex()},a=function(s){if(i(s),i(s.detailNode),i(s.sibling),s.hasChildren()&&s.childrenAfterGroup){var l=s.level==-1,u=o&&!l&&!s.expanded;u||s.childrenAfterGroup.forEach(a)}};a(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,r,o){var i=this;o===void 0&&(o=0);var a=this.getRowIndexAtPixel(r),s=this.getRow(a),l=!this.gridOptionsService.is("suppressAnimationFrame");return s===e[0]?!1:(e.forEach(function(u){Q.removeFromArray(i.rootNode.allLeafChildren,u)}),e.forEach(function(u,c){Q.insertIntoArray(i.rootNode.allLeafChildren,u,Math.max(a+o,0)+c)}),this.refreshModel({step:g.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:l}),!0)},t.prototype.highlightRowAtPixel=function(e,r){var o=r!=null?this.getRowIndexAtPixel(r):null,i=o!=null?this.getRow(o):null;if(!i||!e||i===e||r==null){this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null);return}var a=this.getHighlightPosition(r,i);this.lastHighlightedRow&&this.lastHighlightedRow!==i&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),i.setHighlighted(a),this.lastHighlightedRow=i},t.prototype.getHighlightPosition=function(e,r){if(!r){var o=this.getRowIndexAtPixel(e);if(r=this.getRow(o||0),!r)return g.RowHighlightPosition.Below}var i=r.rowTop,a=r.rowHeight;return e-i<a/2?g.RowHighlightPosition.Above:g.RowHighlightPosition.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(){var e=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(e)return 1;var r=this.rootNode.childrenAfterAggFilter;return r?r.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){var r=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(r)return e;var o=this.rootNode.childrenAfterSort[e];if(this.gridOptionsService.is("groupHideOpenParents"))for(;o.expanded&&o.childrenAfterSort&&o.childrenAfterSort.length>0;)o=o.childrenAfterSort[0];return o.rowIndex},t.prototype.getRowBounds=function(e){if(Q.missing(this.rowsToDisplay))return null;var r=this.rowsToDisplay[e];return r?{rowTop:r.rowTop,rowHeight:r.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:g.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var r=this.gridOptionsService.isAnimateRows(),o=e.columns.length===0||e.columns.some(function(a){return a.isPrimary()}),i=o?g.ClientSideRowModelSteps.FILTER:g.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:i,keepRenderedRows:!0,animate:r})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:g.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return"clientSide"},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:g.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:g.ClientSideRowModelSteps.AGGREGATE})},t.prototype.createChangePath=function(e){var r=Q.missingOrEmpty(e),o=new ev(!1,this.rootNode);return(r||this.gridOptionsService.is("treeData"))&&o.setInactive(),o},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsService.is("suppressModelUpdateAfterUpdateTransaction")||e.rowNodeTransactions==null)return!1;var r=e.rowNodeTransactions.filter(function(i){return i.add!=null&&i.add.length>0||i.remove!=null&&i.remove.length>0}),o=r==null||r.length==0;return o},t.prototype.buildRefreshModelParams=function(e){var r=g.ClientSideRowModelSteps.EVERYTHING,o={everything:g.ClientSideRowModelSteps.EVERYTHING,group:g.ClientSideRowModelSteps.EVERYTHING,filter:g.ClientSideRowModelSteps.FILTER,map:g.ClientSideRowModelSteps.MAP,aggregate:g.ClientSideRowModelSteps.AGGREGATE,sort:g.ClientSideRowModelSteps.SORT,pivot:g.ClientSideRowModelSteps.PIVOT};if(Q.exists(e)&&(r=o[e]),Q.missing(r)){console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));return}var i=!this.gridOptionsService.is("suppressAnimationFrame"),a={step:r,keepRenderedRows:!0,keepEditingRows:!0,animate:i};return a},t.prototype.refreshModel=function(e){var r=typeof e=="object"&&"step"in e?e:this.buildRefreshModelParams(e);if(r&&!this.isSuppressModelUpdateAfterUpdateTransaction(r)){var o=this.createChangePath(r.rowNodeTransactions);switch(r.step){case g.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(r.groupState,r.rowNodeTransactions,r.rowNodeOrder,o,!!r.afterColumnsChanged);case g.ClientSideRowModelSteps.FILTER:this.doFilter(o);case g.ClientSideRowModelSteps.PIVOT:this.doPivot(o);case g.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(o);case g.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(o);case g.ClientSideRowModelSteps.SORT:this.doSort(r.rowNodeTransactions,o);case g.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var i=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(o,i);var a={type:_.EVENT_MODEL_UPDATED,animate:r.animate,keepRenderedRows:r.keepRenderedRows,newData:r.newData,newPage:!1,keepUndoRedoStack:r.keepUndoRedoStack};this.eventService.dispatchEvent(a)}},t.prototype.isEmpty=function(){var e=Q.missing(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return Q.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return Q.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,r){var o=!r,i=!1,a=[],s=this.gridOptionsService.is("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort(function(l){if(!i){if(o&&(l===r||l===e)&&(i=!0,l.group&&s)){a.push.apply(a,sd([],ad(l.allLeafChildren)));return}if(!o){if(l!==r&&l!==e)return;o=!0}var u=!l.group||!s;if(u){a.push(l);return}}}),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()||this.rowsToDisplay.length===0)return-1;var r=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;var i=Q.last(this.rowsToDisplay);if(i.rowTop<=e)return this.rowsToDisplay.length-1;for(var a=-1,s=-1;;){var l=Math.floor((r+o)/2),u=this.rowsToDisplay[l];if(this.isRowInPixel(u,e))return l;u.rowTop<e?r=l+1:u.rowTop>e&&(o=l-1);var c=a===r&&s===o;if(c)return l;a=r,s=o}},t.prototype.isRowInPixel=function(e,r){var o=e.rowTop,i=e.rowTop+e.rowHeight,a=o<=r&&i>r;return a},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(r,o){return e(r,o)})},t.prototype.forEachNode=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:sd([],ad(this.rootNode.childrenAfterGroup||[])),callback:e,recursionType:ei.Normal,index:0,includeFooterNodes:r})},t.prototype.forEachNodeAfterFilter=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:sd([],ad(this.rootNode.childrenAfterAggFilter||[])),callback:e,recursionType:ei.AfterFilter,index:0,includeFooterNodes:r})},t.prototype.forEachNodeAfterFilterAndSort=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:sd([],ad(this.rootNode.childrenAfterSort||[])),callback:e,recursionType:ei.AfterFilterAndSort,index:0,includeFooterNodes:r})},t.prototype.forEachPivotNode=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:ei.PivotNodes,index:0,includeFooterNodes:r})},t.prototype.recursivelyWalkNodesAndCallback=function(e){for(var r,o=e.nodes,i=e.callback,a=e.recursionType,s=e.includeFooterNodes,l=e.index,u=0;u<o.length;u++){var c=o[u];if(i(c,l++),c.hasChildren()&&!c.footer){var d=null;switch(a){case ei.Normal:d=c.childrenAfterGroup;break;case ei.AfterFilter:d=c.childrenAfterAggFilter;break;case ei.AfterFilterAndSort:d=c.childrenAfterSort;break;case ei.PivotNodes:d=c.leafGroup?null:c.childrenAfterSort;break}d&&(l=this.recursivelyWalkNodesAndCallback({nodes:sd([],ad(d)),callback:i,recursionType:a,index:l,includeFooterNodes:s}))}}var f=(r=o[0])===null||r===void 0?void 0:r.parent;if(!s||!f)return l;var p=f===this.rootNode;if(p){var h=this.gridOptionsService.is("groupIncludeTotalFooter");if(!h)return l}else{var v=this.gridOptionsService.getGroupIncludeFooter();if(!v({node:f}))return l}return f.createFooter(),i(f.sibling,l++),l},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.gridOptionsService.is("treeData"),o=this.columnModel.isPivotActive(),i=function(l){l&&l.forEach(function(u){var c=function(){u.expanded=e,i(u.childrenAfterGroup)};if(r){var d=Q.exists(u.childrenAfterGroup);d&&c();return}if(o){var f=!u.leafGroup;f&&c();return}var p=u.group;p&&c()})};this.rootNode&&i(this.rootNode.childrenAfterGroup),this.refreshModel({step:g.ClientSideRowModelSteps.MAP});var a=e?"expandAll":"collapseAll",s={type:_.EVENT_EXPAND_COLLAPSE_ALL,source:a};this.eventService.dispatchEvent(s)},t.prototype.doSort=function(e,r){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:r})},t.prototype.doRowGrouping=function(e,r,o,i,a){if(this.groupStage){if(r?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:r,rowNodeOrder:o,changedPath:i}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:a}),this.restoreGroupState(e)),this.gridOptionsService.is("groupSelectsChildren")){var s=this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",i);if(s){var l={type:_.EVENT_SELECTION_CHANGED,source:"rowGroupChanged"};this.eventService.dispatchEvent(l)}}}else 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&&Q.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(r,o){typeof e[o]=="boolean"&&(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.gridOptionsService.is("rememberGroupStateWhenNewData"))return null;var e={};return Q.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){var r=typeof e=="string"&&e.indexOf(ce.ID_PREFIX_ROW_GROUP)==0;if(r){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");var o={type:_.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(o),this.refreshModel({step:g.ClientSideRowModelSteps.EVERYTHING,groupState:r,newData:!0})},t.prototype.batchUpdateRowData=function(e,r){var o=this;if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];var i=this.gridOptionsService.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){o.executeBatchUpdateRowData()},i)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:r})},t.prototype.flushAsyncTransactions=function(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var r=[],o=[],i=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach(function(s){var l=e.nodeManager.updateRowData(s.rowDataTransaction,void 0);o.push(l),s.callback&&r.push(s.callback.bind(null,l)),typeof s.rowDataTransaction.addIndex=="number"&&(i=!0)}),this.commonUpdateRowData(o,void 0,i),r.length>0&&window.setTimeout(function(){r.forEach(function(s){return s()})},0),o.length>0){var a={type:_.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(a)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,r){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,r),i=typeof e.addIndex=="number";return this.commonUpdateRowData([o],r,i),o},t.prototype.createRowNodeOrder=function(){var e=this.gridOptionsService.is("suppressMaintainUnsortedOrder");if(!e){var r={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var o=0;o<this.rootNode.allLeafChildren.length;o++){var i=this.rootNode.allLeafChildren[o];r[i.id]=o}return r}},t.prototype.commonUpdateRowData=function(e,r,o){var i=!this.gridOptionsService.is("suppressAnimationFrame");o&&(r=this.createRowNodeOrder()),this.refreshModel({step:g.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:r,keepRenderedRows:!0,keepEditingRows:!0,animate:i}),this.filterManager.onNewRowsLoaded("rowDataUpdated");var a={type:_.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(a)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:g.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},t.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},t.prototype.resetRowHeights=function(){var e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),this.rootNode.sibling&&this.rootNode.sibling.setRowHeight(this.rootNode.sibling.rowHeight,!0),e&&this.onRowHeightChanged()},t.prototype.resetRowHeightsForAllRowNodes=function(){var e=!1;return this.forEachNode(function(r){r.setRowHeight(r.rowHeight,!0);var o=r.detailNode;o&&o.setRowHeight(o.rowHeight,!0),r.sibling&&r.sibling.setRowHeight(r.sibling.rowHeight,!0),e=!0}),e},t.prototype.onGridStylesChanges=function(){this.columnModel.isAutoRowHeightActive()||this.resetRowHeights()},Yr([w("columnModel")],t.prototype,"columnModel",void 0),Yr([w("selectionService")],t.prototype,"selectionService",void 0),Yr([w("filterManager")],t.prototype,"filterManager",void 0),Yr([w("valueCache")],t.prototype,"valueCache",void 0),Yr([w("beans")],t.prototype,"beans",void 0),Yr([w("filterStage")],t.prototype,"filterStage",void 0),Yr([w("sortStage")],t.prototype,"sortStage",void 0),Yr([w("flattenStage")],t.prototype,"flattenStage",void 0),Yr([_e("groupStage")],t.prototype,"groupStage",void 0),Yr([_e("aggregationStage")],t.prototype,"aggregationStage",void 0),Yr([_e("pivotStage")],t.prototype,"pivotStage",void 0),Yr([_e("filterAggregatesStage")],t.prototype,"filterAggregatesStage",void 0),Yr([M],t.prototype,"init",null),t=Yr([H("rowModel")],t),t}(F),Uq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},jq=function(n){Uq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.execute=function(e){var r=e.changedPath;this.filterService.filter(r)},zI([w("filterService")],t.prototype,"filterService",void 0),t=zI([H("filterStage")],t),t}(F),zq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),sg=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},qq=function(n){zq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.execute=function(e){var r=this,o=this.sortController.getSortOptions(),i=Q.exists(o)&&o.length>0,a=i&&Q.exists(e.rowNodeTransactions)&&this.gridOptionsService.is("deltaSort"),s=o.some(function(l){var u=r.gridOptionsService.isColumnsSortingCoupledToGroup();return u?l.column.isPrimary()&&l.column.isRowGroupActive():!!l.column.getColDef().showRowGroup});this.sortService.sort(o,i,a,e.rowNodeTransactions,e.changedPath,s)},sg([w("sortService")],t.prototype,"sortService",void 0),sg([w("sortController")],t.prototype,"sortController",void 0),sg([w("columnModel")],t.prototype,"columnModel",void 0),t=sg([H("sortStage")],t),t}(F),$q=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Kq=function(n){$q(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.execute=function(e){var r=e.rowNode,o=[],i=this.columnModel.isPivotMode(),a=i&&r.leafGroup,s=a?[r]:r.childrenAfterSort,l=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(l,s,o,i,0);var u=o.length>0,c=!a&&u&&l.groupIncludeTotalFooter;return c&&(r.createFooter(),this.addRowNodeToRowsToDisplay(l,r.sibling,o,0)),o},t.prototype.getFlattenDetails=function(){var e=this.gridOptionsService.is("groupRemoveSingleChildren"),r=!e&&this.gridOptionsService.is("groupRemoveLowestSingleChildren");return{groupRemoveLowestSingleChildren:r,groupRemoveSingleChildren:e,isGroupMultiAutoColumn:this.gridOptionsService.isGroupMultiAutoColumn(),hideOpenParents:this.gridOptionsService.is("groupHideOpenParents"),groupIncludeTotalFooter:this.gridOptionsService.is("groupIncludeTotalFooter"),getGroupIncludeFooter:this.gridOptionsService.getGroupIncludeFooter()}},t.prototype.recursivelyAddToRowsToDisplay=function(e,r,o,i,a){if(!Q.missingOrEmpty(r))for(var s=0;s<r.length;s++){var l=r[s],u=l.hasChildren(),c=i&&!u,d=e.groupRemoveSingleChildren&&u&&l.childrenAfterGroup.length===1,f=e.groupRemoveLowestSingleChildren&&u&&l.leafGroup&&l.childrenAfterGroup.length===1,p=i&&l.leafGroup,h=e.hideOpenParents&&l.expanded&&!l.master&&!p,v=!c&&!h&&!d&&!f;if(v&&this.addRowNodeToRowsToDisplay(e,l,o,a),!(i&&l.leafGroup)){if(u){var C=d||f;if(l.expanded||C){var m=C?a:a+1;this.recursivelyAddToRowsToDisplay(e,l.childrenAfterSort,o,i,m);var y=e.getGroupIncludeFooter({node:l});y?(l.createFooter(),this.addRowNodeToRowsToDisplay(e,l.sibling,o,m)):l.destroyFooter()}}else if(l.master&&l.expanded){var S=this.createDetailNode(l);this.addRowNodeToRowsToDisplay(e,S,o,a)}}}},t.prototype.addRowNodeToRowsToDisplay=function(e,r,o,i){o.push(r),r.setUiLevel(e.isGroupMultiAutoColumn?0:i)},t.prototype.createDetailNode=function(e){if(Q.exists(e.detailNode))return e.detailNode;var r=new ce(this.beans);return r.detail=!0,r.selectable=!1,r.parent=e,Q.exists(e.id)&&(r.id="detail_"+e.id),r.data=e.data,r.level=e.level+1,e.detailNode=r,r},Jw([w("columnModel")],t.prototype,"columnModel",void 0),Jw([w("beans")],t.prototype,"beans",void 0),t=Jw([H("flattenStage")],t),t}(F),Yq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),lg=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Xq=function(n){Yq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(){this.postSortFunc=this.gridOptionsService.getCallback("postSortRows")},t.prototype.sort=function(e,r,o,i,a,s){var l=this,u=this.gridOptionsService.is("groupMaintainOrder"),c=this.columnModel.getAllGridColumns().some(function(h){return h.isRowGroupActive()}),d={};o&&i&&(d=this.calculateDirtyNodes(i));var f=this.columnModel.isPivotMode(),p=function(h){l.pullDownGroupDataForHideOpenParents(h.childrenAfterAggFilter,!0);var v=f&&h.leafGroup,C=u&&c&&!h.leafGroup&&!s;if(C){var m=h.childrenAfterAggFilter.slice(0);if(h.childrenAfterSort){var y={};h.childrenAfterSort.forEach(function(E,R){y[E.id]=R}),m.sort(function(E,R){var x,P;return((x=y[E.id])!==null&&x!==void 0?x:0)-((P=y[R.id])!==null&&P!==void 0?P:0)})}h.childrenAfterSort=m}else!r||v?h.childrenAfterSort=h.childrenAfterAggFilter.slice(0):o?h.childrenAfterSort=l.doDeltaSort(h,d,a,e):h.childrenAfterSort=l.rowNodeSorter.doFullSort(h.childrenAfterAggFilter,e);if(h.sibling&&(h.sibling.childrenAfterSort=h.childrenAfterSort),l.updateChildIndexes(h),l.postSortFunc){var S={nodes:h.childrenAfterSort};l.postSortFunc(S)}};a&&a.forEachChangedNodeDepthFirst(p),this.updateGroupDataForHideOpenParents(a)},t.prototype.calculateDirtyNodes=function(e){var r={},o=function(i){i&&i.forEach(function(a){return r[a.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 a=this,s=e.childrenAfterAggFilter,l=e.childrenAfterSort;if(!l)return this.rowNodeSorter.doFullSort(s,i);var u={},c=[];s.forEach(function(h){r[h.id]||!o.canSkip(h)?c.push(h):u[h.id]=!0});var d=l.filter(function(h){return u[h.id]}),f=function(h,v){return{currentPos:v,rowNode:h}},p=c.map(f).sort(function(h,v){return a.rowNodeSorter.compareRowNodes(i,h,v)});return this.mergeSortedArrays(i,p,d.map(f)).map(function(h){var v=h.rowNode;return v})},t.prototype.mergeSortedArrays=function(e,r,o){for(var i=[],a=0,s=0;a<r.length&&s<o.length;){var l=this.rowNodeSorter.compareRowNodes(e,r[a],o[s]);l<0?i.push(r[a++]):i.push(o[s++])}for(;a<r.length;)i.push(r[a++]);for(;s<o.length;)i.push(o[s++]);return i},t.prototype.updateChildIndexes=function(e){if(!Q.missing(e.childrenAfterSort))for(var r=e.childrenAfterSort,o=0;o<r.length;o++){var i=r[o],a=o===0,s=o===e.childrenAfterSort.length-1;i.setFirstChild(a),i.setLastChild(s),i.setChildIndex(o)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var r=this;if(this.gridOptionsService.is("groupHideOpenParents")){if(this.gridOptionsService.is("treeData")){var o="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).";return Q.doOnce(function(){return console.warn(o)},"sortService.hideOpenParentsWithTreeData"),!1}var i=function(a){r.pullDownGroupDataForHideOpenParents(a.childrenAfterSort,!1),a.childrenAfterSort.forEach(function(s){s.hasChildren()&&i(s)})};e&&e.executeFromRootNode(function(a){return i(a)})}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,r){var o=this;!this.gridOptionsService.is("groupHideOpenParents")||Q.missing(e)||e.forEach(function(i){var a=o.columnModel.getGroupDisplayColumns();a.forEach(function(s){var l=s.getColDef().showRowGroup;if(typeof l!="string"){console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");return}var u=l,c=o.columnModel.getPrimaryColumn(u),d=c===i.rowGroupColumn;if(!d)if(r)i.setGroupValue(s.getId(),void 0);else{var f=i.getFirstChildOfFirstChild(c);f&&i.setGroupValue(s.getId(),f.key)}})})},lg([w("columnModel")],t.prototype,"columnModel",void 0),lg([w("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),lg([M],t.prototype,"init",null),t=lg([H("sortService")],t),t}(F),Qq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qI=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Jq=function(n){Qq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.filter=function(e){var r=this.filterManager.isChildFilterPresent();this.filterNodes(r,e)},t.prototype.filterNodes=function(e,r){var o=this,i=function(u,c){u.hasChildren()&&e&&!c?u.childrenAfterFilter=u.childrenAfterGroup.filter(function(d){var f=d.childrenAfterFilter&&d.childrenAfterFilter.length>0,p=d.data&&o.filterManager.doesRowPassFilter({rowNode:d});return f||p}):u.childrenAfterFilter=u.childrenAfterGroup,u.sibling&&(u.sibling.childrenAfterFilter=u.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var a=function(u,c){if(u.childrenAfterGroup)for(var d=0;d<u.childrenAfterGroup.length;d++){var f=u.childrenAfterGroup[d],p=c||o.filterManager.doesRowPassFilter({rowNode:f});f.childrenAfterGroup?a(u.childrenAfterGroup[d],p):i(f,p)}i(u,c)},s=function(u){return a(u,!1)};r.executeFromRootNode(s)}else{var l=function(u){return i(u,!1)};r.forEachChangedNodeDepthFirst(l,!0)}},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsService.is("treeData")&&!this.gridOptionsService.is("excludeChildrenWhenTreeDataFiltering")},qI([w("filterManager")],t.prototype,"filterManager",void 0),t=qI([H("filterService")],t),t}(F),Zq=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ug=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},e$=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return i},t$=function(n){Zq(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.rowModel.getType()==="clientSide"&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){var e=this.gridOptionsService.exists("getRowId"),r=this.gridOptionsService.is("resetRowDataOnUpdate");return r?!1:e},t.prototype.setRowData=function(e){var r=this.createTransactionForRowData(e);if(r){var o=e$(r,2),i=o[0],a=o[1];this.clientSideRowModel.updateRowData(i,a)}},t.prototype.createTransactionForRowData=function(e){if(Q.missing(this.clientSideRowModel)){console.error("AG Grid: ImmutableService only works with ClientSideRowModel");return}var r=this.gridOptionsService.getCallback("getRowId");if(r==null){console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!");return}var o={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),a=this.gridOptionsService.is("suppressMaintainUnsortedOrder"),s=a?void 0:{};return Q.exists(e)&&e.forEach(function(l,u){var c=r({data:l,level:0}),d=i[c];if(s&&(s[c]=u),d){var f=d.data!==l;f&&o.update.push(l),i[c]=void 0}else o.add.push(l)}),Q.iterateObject(i,function(l,u){u&&o.remove.push(u.data)}),[o,s]},ug([w("rowModel")],t.prototype,"rowModel",void 0),ug([w("rowRenderer")],t.prototype,"rowRenderer",void 0),ug([M],t.prototype,"postConstruct",null),t=ug([H("immutableService")],t),t}(F),r$="30.2.1",n$={version:r$,moduleName:g.ModuleNames.ClientSideRowModelModule,rowModel:"clientSide",beans:[Wq,jq,qq,Kq,Xq,Jq,t$]},o$=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zw=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$I=function(n){o$(t,n);function t(e,r,o){var i=n.call(this,e)||this;return i.parentCache=r,i.params=o,i.startRow=e*o.blockSize,i.endRow=i.startRow+o.blockSize,i}return t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,r,o){Q.exists(r)?e.setDataAndId(r,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,r=this.createLoadParams();if(Q.missing(this.params.datasource.getRows)){console.warn("AG Grid: datasource is missing getRows method");return}window.setTimeout(function(){e.params.datasource.getRows(r)},0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){var e={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.context};return e},t.prototype.forEachNode=function(e,r,o){var i=this;this.rowNodes.forEach(function(a,s){var l=i.startRow+s;l<o&&e(a,r.next())})},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,r){r===void 0&&(r=!1),r||(this.lastAccessed=this.params.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},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 ce(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,a){var s=e.rowData?e.rowData[a]:void 0;!i.id&&i.alreadyRendered&&s&&(r.rowNodes[a]=new ce(r.beans),r.rowNodes[a].setRowIndex(i.rowIndex),r.rowNodes[a].setRowTop(i.rowTop),r.rowNodes[a].setRowHeight(i.rowHeight),i.clearRowTopAndRowIndex()),r.setDataAndId(r.rowNodes[a],s,r.startRow+a)});var o=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,o)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},Zw([w("beans")],t.prototype,"beans",void 0),Zw([M],t.prototype,"postConstruct",null),Zw([Mt],t.prototype,"destroyRowNodes",null),t}(Og),i$=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),cg=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},a$=function(n,t){return function(e,r){t(e,r,n)}},s$=function(n){i$(t,n);function t(e){var r=n.call(this)||this;return r.lastRowIndexKnown=!1,r.blocks={},r.blockCount=0,r.rowCount=e.initialRowCount,r.params=e,r}return t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,r){r===void 0&&(r=!1);var o=Math.floor(e/this.params.blockSize),i=this.blocks[o];if(!i){if(r)return;i=this.createBlock(o)}return i.getRow(e)},t.prototype.createBlock=function(e){var r=this.createBean(new $I(e,this,this.params));return this.blocks[r.getId()]=r,this.blockCount++,this.purgeBlocksIfNeeded(r),this.params.rowNodeBlockLoader.addBlock(r),r},t.prototype.refreshCache=function(){var e=this.blockCount==0;if(e){this.purgeCache();return}this.getBlocksInOrder().forEach(function(r){return r.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(r){return e.destroyBlock(r)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,r){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+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}),i=function(u,c){return c.getLastAccessed()-u.getLastAccessed()};o.sort(i);var a=this.params.maxBlocksInCache>0,s=a?this.params.maxBlocksInCache-1:null,l=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach(function(u,c){var d=u.getState()===$I.STATE_WAITING_TO_LOAD&&c>=l,f=a?c>=s:!1;if(d||f){if(r.isBlockCurrentlyDisplayed(u)||r.isBlockFocused(u))return;r.removeBlockFromCache(u)}})},t.prototype.isBlockFocused=function(e){var r=this.focusService.getFocusCellToUseAfterRefresh();if(!r||r.rowPinned!=null)return!1;var o=e.getStartRow(),i=e.getEndRow(),a=r.rowIndex>=o&&r.rowIndex<i;return a},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(typeof r=="number"&&r>=0)this.rowCount=r,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(e.getId()+1)*this.params.blockSize,i=o+this.params.overflowSize;this.rowCount<i&&(this.rowCount=i)}},t.prototype.setRowCount=function(e,r){this.rowCount=e,Q.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 As;this.getBlocksInOrder().forEach(function(i){return i.forEachNode(e,o,r.rowCount)})},t.prototype.getBlocksInOrder=function(){var e=function(o,i){return o.getId()-i.getId()},r=Q.getAllValuesInObject(this.blocks).sort(e);return r},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:_.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,r=[];this.getBlocksInOrder().forEach(function(o){var i=o.getId()*e.params.blockSize;i>=e.rowCount&&r.push(o)}),r.length>0&&r.forEach(function(o){return e.destroyBlock(o)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(r){return e.removeBlockFromCache(r)}),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,r){var o=this,i=[],a=-1,s=!1,l=new As;Q.missing(e)&&(s=!0);var u=!1;this.getBlocksInOrder().forEach(function(d){if(!u){if(s&&a+1!==d.getId()){u=!0;return}a=d.getId(),d.forEachNode(function(f){var p=f===e||f===r;(s||p)&&i.push(f),p&&(s=!s)},l,o.rowCount)}});var c=u||s;return c?[]:i},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,cg([w("rowRenderer")],t.prototype,"rowRenderer",void 0),cg([w("focusService")],t.prototype,"focusService",void 0),cg([a$(0,er("loggerFactory"))],t.prototype,"setBeans",null),cg([Mt],t.prototype,"destroyAllBlocks",null),t}(F),l$=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Pa=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},u$=function(n){l$(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,r,o,i){return!1},t.prototype.init=function(){var e=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){if(this.gridOptionsService.exists("initialGroupOrderComparator")){var e="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.";Q.doOnce(function(){return console.warn(e)},"IRM.InitialGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,_.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,_.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){var e;this.cacheParams?e=this.isSortModelDifferent():e=!0,e&&this.reset()},t.prototype.isSortModelDifferent=function(){return!Q.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return"infinite"},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,r){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,r):[]},t.prototype.reset=function(){if(this.datasource){var e=this.gridOptionsService.getCallback("getRowId"),r=e!=null;r||this.selectionService.reset(),this.resetCache();var o=this.createModelUpdatedEvent();this.eventService.dispatchEvent(o)}},t.prototype.createModelUpdatedEvent=function(){return{type:_.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.gridOptionsService.getNum("infiniteInitialRowCount"),1),maxBlocksInCache:this.gridOptionsService.getNum("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheOverflowSize"),1),blockSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheBlockSize"),100),lastAccessedSequence:new As},this.infiniteCache=this.createBean(new s$(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(this.rowHeight!==0){var r=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return r>o?o:r}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){var r=this.getRowNode(e.id);return!!r},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return this.infiniteCache?this.infiniteCache.isLastRowIndexKnown():!1},t.prototype.setRowCount=function(e,r){this.infiniteCache&&this.infiniteCache.setRowCount(e,r)},Pa([w("filterManager")],t.prototype,"filterManager",void 0),Pa([w("sortController")],t.prototype,"sortController",void 0),Pa([w("selectionService")],t.prototype,"selectionService",void 0),Pa([w("rowRenderer")],t.prototype,"rowRenderer",void 0),Pa([w("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Pa([M],t.prototype,"init",null),Pa([Mt],t.prototype,"destroyDatasource",null),t=Pa([H("rowModel")],t),t}(F),c$="30.2.1",d$={version:c$,moduleName:g.ModuleNames.InfiniteRowModelModule,rowModel:"infinite",beans:[u$]},iF=function(){function n(){}return n.prototype.setBeans=function(t){this.beans=t},n.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return(t==null||!t.length)&&(t=this.getDefaultFileName()),t.indexOf(".")===-1?t+"."+e:t},n.prototype.getData=function(t){var e=this.createSerializingSession(t),r=this.beans.gridSerializer.serialize(e,t);return r},n}(),aF=function(){function n(t){this.groupColumns=[];var e=t.columnModel,r=t.valueService,o=t.gridOptionsService,i=t.valueFormatterService,a=t.valueParserService,s=t.processCellCallback,l=t.processHeaderCallback,u=t.processGroupHeaderCallback,c=t.processRowGroupCallback;this.columnModel=e,this.valueService=r,this.gridOptionsService=o,this.valueFormatterService=i,this.valueParserService=a,this.processCellCallback=s,this.processHeaderCallback=l,this.processGroupHeaderCallback=u,this.processRowGroupCallback=c}return n.prototype.prepare=function(t){this.groupColumns=t.filter(function(e){return!!e.getColDef().showRowGroup})},n.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return e??""},n.prototype.extractRowCellValue=function(t,e,r,o,i){var a=this.gridOptionsService.is("groupHideOpenParents"),s=(!a||i.footer)&&this.shouldRenderGroupSummaryCell(i,t,e)?this.createValueForGroupNode(i):this.valueService.getValue(t,i),l=this.processCell({accumulatedRowIndex:r,rowNode:i,column:t,value:s,processCellCallback:this.processCellCallback,type:o});return l},n.prototype.shouldRenderGroupSummaryCell=function(t,e,r){var o,i=t&&t.group;if(!i)return!1;var a=this.groupColumns.indexOf(e);if(a!==-1){if(((o=t.groupData)===null||o===void 0?void 0:o[e.getId()])!=null||this.gridOptionsService.isRowModelType("serverSide")&&t.group)return!0;if(t.footer&&t.level===-1){var s=e.getColDef(),l=s==null||s.showRowGroup===!0;return l||s.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var u=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return r===0&&u},n.prototype.getHeaderName=function(t,e){return t?t({column:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},n.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context});var e=t.footer,r=[t.key];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,r.push(t.key);var o=r.reverse().join(" -> ");return e?"Total "+o:o},n.prototype.processCell=function(t){var e=this,r,o=t.accumulatedRowIndex,i=t.rowNode,a=t.column,s=t.value,l=t.processCellCallback,u=t.type;return l?{value:(r=l({accumulatedRowIndex:o,column:a,node:i,value:s,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,type:u,parseValue:function(c){return e.valueParserService.parseValue(a,i,c,e.valueService.getValue(a,i))},formatValue:function(c){var d;return(d=e.valueFormatterService.formatValue(a,i,c))!==null&&d!==void 0?d:c}}))!==null&&r!==void 0?r:""}:a.getColDef().useValueFormatterForExport?{value:s??"",valueFormatted:this.valueFormatterService.formatValue(a,i,s)}:{value:s??""}},n}(),sF=function(){function n(){}return n.download=function(t,e){var r=document.defaultView||window;if(!r){console.warn("AG Grid: There is no `window` associated with the current `document`");return}var o=document.createElement("a"),i=r.URL.createObjectURL(e);o.setAttribute("href",i),o.setAttribute("download",t),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:r})),document.body.removeChild(o),r.setTimeout(function(){r.URL.revokeObjectURL(i)},0)},n}(),f$=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),KI=`\r
`,p$=function(n){f$(t,n);function t(e){var r=n.call(this,e)||this;r.isFirstLine=!0,r.result="";var o=e.suppressQuotes,i=e.columnSeparator;return r.suppressQuotes=o,r.columnSeparator=i,r}return t.prototype.addCustomContent=function(e){var r=this;e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,KI),this.result+=e):e.forEach(function(o){r.beginNewLine(),o.forEach(function(i,a){a!==0&&(r.result+=r.columnSeparator),r.result+=r.putInQuotes(i.data.value||""),i.mergeAcross&&r.appendEmptyCells(i.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,r,o,i){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(r),this.appendEmptyCells(i)},t.prototype.appendEmptyCells=function(e){for(var r=1;r<=e;r++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,r){r!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,r,o){var i;r!=0&&(this.result+=this.columnSeparator);var a=this.extractRowCellValue(e,r,r,"csv",o);this.result+=this.putInQuotes((i=a.valueFormatted)!==null&&i!==void 0?i:a.value)},t.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(e==null)return'""';var r;typeof e=="string"?r=e:typeof e.toString=="function"?r=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),r="");var o=r.replace(/"/g,'""');return'"'+o+'"'},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=KI),this.isFirstLine=!1},t}(aF),h$=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Oa=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},lF=function(n){h$(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var r=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},r,e)},t.prototype.export=function(e){if(this.isExportSuppressed())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 sF.download(this.getFileName(r.fileName),i),o},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,r){r===void 0&&(r=!1);var o=r?Object.assign({},e):this.getMergedParams(e);return this.getData(o)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var r=this,o=r.columnModel,i=r.valueService,a=r.gridOptionsService,s=r.valueFormatterService,l=r.valueParserService,u=e,c=u.processCellCallback,d=u.processHeaderCallback,f=u.processGroupHeaderCallback,p=u.processRowGroupCallback,h=u.suppressQuotes,v=u.columnSeparator;return new p$({columnModel:o,valueService:i,gridOptionsService:a,valueFormatterService:s,valueParserService:l,processCellCallback:c||void 0,processHeaderCallback:d||void 0,processGroupHeaderCallback:f||void 0,processRowGroupCallback:p||void 0,suppressQuotes:h||!1,columnSeparator:v||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.is("suppressCsvExport")},Oa([w("columnModel")],t.prototype,"columnModel",void 0),Oa([w("valueService")],t.prototype,"valueService",void 0),Oa([w("gridSerializer")],t.prototype,"gridSerializer",void 0),Oa([w("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Oa([w("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Oa([w("valueParserService")],t.prototype,"valueParserService",void 0),Oa([M],t.prototype,"postConstruct",null),t=Oa([H("csvCreator")],t),t}(iF),g$=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),La=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){n[n.HEADER_GROUPING=0]="HEADER_GROUPING",n[n.HEADER=1]="HEADER",n[n.BODY=2]="BODY"})(g.RowType||(g.RowType={}));var uF=function(n){g$(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.serialize=function(e,r){r===void 0&&(r={});var o=this.getColumnsToExport(r.allColumns,r.columnKeys),i=Q.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));return i(e).parse()},t.prototype.processRow=function(e,r,o,i){var a=r.shouldRowBeSkipped||function(){return!1},s=this.gridOptionsService.context,l=this.gridOptionsService.api,u=this.gridOptionsService.columnApi,c=this.gridOptionsService.is("groupRemoveSingleChildren"),d=this.gridOptionsService.is("groupRemoveLowestSingleChildren"),f=r.rowPositions!=null,p=f||!!r.onlySelected,h=this.gridOptionsService.is("groupHideOpenParents")&&!p,v=this.columnModel.isPivotMode()?i.leafGroup:!i.group,C=!!i.footer,m=r.skipGroups||r.skipRowGroups,y=d&&i.leafGroup,S=i.allChildrenCount===1&&(c||y);if(m&&r.skipGroups&&Q.doOnce(function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")},"gridSerializer-skipGroups"),!(!v&&!C&&(r.skipRowGroups||S||h)||r.onlySelected&&!i.isSelected()||r.skipPinnedTop&&i.rowPinned==="top"||r.skipPinnedBottom&&i.rowPinned==="bottom")){var E=i.level===-1;if(!(E&&!v&&!C)){var R=a({node:i,api:l,columnApi:u,context:s});if(!R){var x=e.onNewBodyRow(i);if(o.forEach(function(T,L){x.onColumn(T,L,i)}),r.getCustomContentBelowRow){var P=r.getCustomContentBelowRow({node:i,api:l,columnApi:u,context:s});P&&e.addCustomContent(P)}}}}},t.prototype.appendContent=function(e){return function(r){var o=e.customFooter||e.appendContent;return o&&(e.customFooter&&Q.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&&Q.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&&Q.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 a=new xS,s=o.displayedGroupCreator.createDisplayedGroups(r,a,null);o.recursivelyAddHeaderGroups(s,i,e.processGroupHeaderCallback)}return i}},t.prototype.exportHeaders=function(e,r){return function(o){if(!e.skipHeader&&!e.skipColumnHeaders){var i=o.onNewHeaderRow();r.forEach(function(a,s){i.onColumn(a,s,void 0)})}else e.skipHeader&&Q.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")},"gridSerializer-skipHeader");return o}},t.prototype.processPinnedTopRows=function(e,r){var o=this;return function(i){var a=o.processRow.bind(o,i,e,r);return e.rowPositions?e.rowPositions.filter(function(s){return s.rowPinned==="top"}).sort(function(s,l){return s.rowIndex-l.rowIndex}).map(function(s){return o.pinnedRowModel.getPinnedTopRow(s.rowIndex)}).forEach(a):o.pinnedRowModel.forEachPinnedTopRow(a),i}},t.prototype.processRows=function(e,r){var o=this;return function(i){var a=o.rowModel,s=a.getType(),l=s==="clientSide",u=s==="serverSide",c=!l&&e.onlySelected,d=o.processRow.bind(o,i,e,r),f=e.exportedRows,p=f===void 0?"filteredAndSorted":f;if(e.rowPositions)e.rowPositions.filter(function(v){return v.rowPinned==null}).sort(function(v,C){return v.rowIndex-C.rowIndex}).map(function(v){return a.getRow(v.rowIndex)}).forEach(d);else if(o.columnModel.isPivotMode())l?a.forEachPivotNode(d,!0):u?a.forEachNodeAfterFilterAndSort(d,!0):a.forEachNode(d);else if(e.onlySelectedAllPages||c){var h=o.selectionService.getSelectedNodes();o.replicateSortedOrder(h),h.forEach(d)}else p==="all"?a.forEachNode(d):l||u?a.forEachNodeAfterFilterAndSort(d,!0):a.forEachNode(d);return i}},t.prototype.replicateSortedOrder=function(e){var r=this,o=this.sortController.getSortOptions(),i=function(a,s){var l,u,c,d;return a.rowIndex!=null&&s.rowIndex!=null?a.rowIndex-s.rowIndex:a.level===s.level?((l=a.parent)===null||l===void 0?void 0:l.id)===((u=s.parent)===null||u===void 0?void 0:u.id)?r.rowNodeSorter.compareRowNodes(o,{rowNode:a,currentPos:(c=a.rowIndex)!==null&&c!==void 0?c:-1},{rowNode:s,currentPos:(d=s.rowIndex)!==null&&d!==void 0?d:-1}):i(a.parent,s.parent):a.level>s.level?i(a.parent,s):i(a,s.parent)};e.sort(i)},t.prototype.processPinnedBottomRows=function(e,r){var o=this;return function(i){var a=o.processRow.bind(o,i,e,r);return e.rowPositions?e.rowPositions.filter(function(s){return s.rowPinned==="bottom"}).sort(function(s,l){return s.rowIndex-l.rowIndex}).map(function(s){return o.pinnedRowModel.getPinnedBottomRow(s.rowIndex)}).forEach(a):o.pinnedRowModel.forEachPinnedBottomRow(a),i}},t.prototype.getColumnsToExport=function(e,r){e===void 0&&(e=!1);var o=this.columnModel.isPivotMode();if(r&&r.length)return this.columnModel.getGridColumns(r);if(e&&!o){var i=this.gridOptionsService.is("treeData")?this.columnModel.getGridColumns([Is]):[];return i.concat(this.columnModel.getAllGridColumns()||[])}return this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,r,o){var i=[];e.forEach(function(a){var s=a;s.getChildren&&s.getChildren().forEach(function(l){return i.push(l)})}),e.length>0&&e[0]instanceof Wt&&this.doAddHeaderHeader(r,e,o),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,r,o)},t.prototype.doAddHeaderHeader=function(e,r,o){var i=this,a=e.onNewHeaderGroupingRow(),s=0;r.forEach(function(l){var u=l,c;o?c=o({columnGroup:u,api:i.gridOptionsService.api,columnApi:i.gridOptionsService.columnApi,context:i.gridOptionsService.context}):c=i.columnModel.getDisplayNameForColumnGroup(u,"header");var d=u.getLeafColumns().reduce(function(f,p,h,v){var C=Q.last(f),m=p.getColumnGroupShow()==="open";return m?(!C||C[1]!=null)&&(C=[h],f.push(C)):C&&C[1]==null&&(C[1]=h-1),h===v.length-1&&C&&C[1]==null&&(C[1]=h),f},[]);a.onColumn(u,c||"",s++,u.getLeafColumns().length-1,d)})},La([w("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),La([w("columnModel")],t.prototype,"columnModel",void 0),La([w("rowModel")],t.prototype,"rowModel",void 0),La([w("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),La([w("selectionService")],t.prototype,"selectionService",void 0),La([w("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),La([w("sortController")],t.prototype,"sortController",void 0),t=La([H("gridSerializer")],t),t}(F),v$="30.2.1",cF={version:v$,moduleName:g.ModuleNames.CsvExportModule,beans:[lF,uF]},dg=`\r
`,m$=function(){function n(){}return n.createHeader=function(t){t===void 0&&(t={});var e="<?",r="?>",o=["version"];t.version||(t.version="1.0"),t.encoding&&o.push("encoding"),t.standalone&&o.push("standalone");var i=o.map(function(a){return a+'="'+t[a]+'"'}).join(" ");return e+"xml "+i+" "+r},n.createXml=function(t,e){var r=this,o="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach(function(a){Object.keys(a.map).forEach(function(s){o+=r.returnAttributeIfPopulated(a.prefix+s,a.map[s],e)})}),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach(function(a){o+=r.returnAttributeIfPopulated(a,t.properties.rawMap[a],e)}));var i="<"+t.name+o;return!t.children&&t.textNode==null?i+"/>"+dg:t.textNode!=null?i+">"+t.textNode+"</"+t.name+">"+dg:(i+=">"+dg,t.children&&t.children.forEach(function(a){i+=r.createXml(a,e)}),i+"</"+t.name+">"+dg)},n.returnAttributeIfPopulated=function(t,e,r){if(!e&&e!==""&&e!==0)return"";var o=e;return typeof e=="boolean"&&r&&(o=r(e))," "+t+'="'+o+'"'},n}(),y$=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},C$=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]),w$=function(){function n(){}return 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){r===void 0&&(r=!1),this.files.push({path:t,created:new Date,content:e,isBase64:r})},n.getContent=function(t){t===void 0&&(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;t===void 0&&(t="");var o=this.folders.concat(this.files),i=o.length,a="",s=0,l=0;try{for(var u=y$(o),c=u.next();!c.done;c=u.next()){var d=c.value,f=this.getHeader(d,s),p=f.fileHeader,h=f.folderHeader,v=f.content;s+=p.length+v.length,l+=h.length,t+=p+v,a+=h}}catch(m){e={error:m}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}var C=this.buildFolderEnd(i,l,s);return t+a+C},n.getHeader=function(t,e){var r=t.content,o=t.path,i=t.created,a=t.isBase64,s=Q.utf8_encode,l=Q.decToHex,u=s(o),c=u!==o,d=this.convertTime(i),f=this.convertDate(i),p="";if(c){var h=l(1,1)+l(this.getFromCrc32Table(u),4)+u;p="up"+l(h.length,2)+h}var v=r?this.getConvertedContent(r,a):{size:0,content:""},C=v.size,m=v.content,y=`
\0`+(c?"\0\b":"\0\0")+"\0\0"+l(d,2)+l(f,2)+l(C?this.getFromCrc32Table(m):0,4)+l(C,4)+l(C,4)+l(u.length,2)+l(p.length,2),S="PK"+y+u+p,E="PK\0"+y+"\0\0\0\0\0\0"+(r?"\0\0\0\0":"\0\0\0")+l(e,4)+u+p;return{fileHeader:S,folderHeader:E,content:m||""}},n.getConvertedContent=function(t,e){return e===void 0&&(e=!1),e&&(t=t.split(";base64,")[1]),t=e?atob(t):t,{size:t.length,content:t}},n.buildFolderEnd=function(t,e,r){var o=Q.decToHex;return"PK\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);for(var i=-1,a=0,s=0,l=0,o=0;o<e;o++)a=r[o],s=(i^a)&255,l=C$[s],i=i>>>8^l;return i^-1},n.convertTime=function(t){var e=t.getHours();return e<<=6,e=e|t.getMinutes(),e<<=5,e=e|t.getSeconds()/2,e},n.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e=e|t.getMonth()+1,e<<=5,e=e|t.getDate(),e},n.folders=[],n.files=[],n}();J.__registerModules([n$,d$,cF],!1,void 0);g.AbstractHeaderCellCtrl=Td;g.AgAbstractField=QS;g.AgAbstractLabel=XS;g.AgAutocomplete=FA;g.AgCheckbox=Rd;g.AgDialog=DA;g.AgGroupComponent=OA;g.AgInputDateField=RA;g.AgInputNumberField=$g;g.AgInputRange=TA;g.AgInputTextArea=EA;g.AgInputTextField=Ha;g.AgMenuItemComponent=ql;g.AgMenuList=LA;g.AgMenuPanel=IA;g.AgPanel=p_;g.AgPickerField=JS;g.AgPromise=yn;g.AgRadioButton=ZS;g.AgRichSelect=xA;g.AgSelect=qg;g.AgSlider=PA;g.AgStackComponentsRegistry=RD;g.AgToggleButton=_A;g.AlignedGridsService=NA;g.AnimateShowChangeCellRenderer=T0;g.AnimateSlideCellRenderer=x0;g.AnimationFrameService=hA;g.AutoScrollService=o_;g.AutoWidthCalculator=gA;g.Autowired=w;g.BaseComponentWrapper=bq;g.BaseCreator=iF;g.BaseGridSerializingSession=aF;g.Bean=H;g.BeanStub=F;g.Beans=s_;g.BodyDropPivotTarget=Z0;g.BodyDropTarget=tA;g.CHART_TOOLBAR_ALLOW_LIST=Gq;g.CHART_TOOL_PANEL_ALLOW_LIST=Nq;g.CHART_TOOL_PANEL_MENU_OPTIONS=kq;g.CellComp=Q0;g.CellCtrl=ba;g.CellNavigationService=MA;g.CellPositionUtils=YA;g.ChangedPath=ev;g.CheckboxCellEditor=F0;g.CheckboxCellRenderer=A0;g.CheckboxSelectionComponent=n_;g.ColDefUtil=CD;g.Column=Ne;g.ColumnApi=GA;g.ColumnFactory=vD;g.ColumnGroup=Wt;g.ColumnKeyCreator=YI;g.ColumnModel=SD;g.ColumnUtils=_D;g.Component=se;g.ComponentUtil=ud;g.Context=oD;g.CssClassApplier=c_;g.CssClassManager=i0;g.CsvCreator=lF;g.CsvExportModule=cF;g.CtrlsService=JA;g.CustomTooltipFeature=zg;g.DEFAULT_CHART_GROUPS=Mq;g.DataTypeService=rF;g.DateCellEditor=I0;g.DateFilter=t_;g.DateStringCellEditor=D0;g.DisplayedGroupCreator=ED;g.Downloader=sF;g.DragAndDropService=Ft;g.DragService=G0;g.Environment=qA;g.EventService=Li;g.Events=_;g.ExpressionService=HA;g.FilterManager=V0;g.FloatingFilterMapper=M0;g.FocusService=Os;g.GROUP_AUTO_COLUMN_ID=Is;g.Grid=Aq;g.GridApi=k0;g.GridBodyComp=q0;g.GridBodyCtrl=U0;g.GridComp=UA;g.GridCoreCreator=oF;g.GridCtrl=WA;g.GridHeaderComp=cA;g.GridHeaderCtrl=uA;g.GridOptionsService=eF;g.GridSerializer=uF;g.GroupCellRenderer=mS;g.GroupCellRendererCtrl=O0;g.GroupInstanceIdCreator=xS;g.HeaderCellCtrl=iA;g.HeaderFilterCellComp=B0;g.HeaderFilterCellCtrl=nA;g.HeaderGroupCellCtrl=aA;g.HeaderNavigationService=lA;g.HeaderPositionUtils=XA;g.HeaderRowComp=rA;g.HeaderRowContainerComp=pg;g.HeaderRowContainerCtrl=sA;g.HeaderRowCtrl=fg;g.HorizontalResizeService=dA;g.KeyCode=O;g.LargeTextCellEditor=E0;g.LocaleService=tF;g.Logger=Fg;g.LoggerFactory=BA;g.ManagedFocusFeature=Di;g.ModuleRegistry=J;g.MouseEventService=K0;g.MoveColumnFeature=eA;g.NavigationService=Y0;g.NumberCellEditor=L0;g.NumberFilter=r_;g.NumberSequence=As;g.Optional=_e;g.PaginationProxy=wA;g.PinnedRowModel=yA;g.PopupComponent=Va;g.PopupEditorWrapper=X0;g.PopupService=AA;g.PositionableFeature=YS;g.PostConstruct=M;g.PreConstruct=rS;g.PreDestroy=Mt;g.PropertyKeys=Jo;g.ProvidedColumnGroup=gt;g.ProvidedFilter=wd;g.Qualifier=er;g.QuerySelector=ZB;g.RefSelector=G;g.ResizeObserverService=pA;g.RowContainerComp=J0;g.RowContainerCtrl=u_;g.RowCtrl=Ma;g.RowNode=ce;g.RowNodeBlock=Og;g.RowNodeBlockLoader=CA;g.RowNodeSorter=QA;g.RowPositionUtils=KA;g.RowRenderer=vA;g.ScalarFilter=At;g.ScrollVisibleService=$0;g.SelectCellEditor=R0;g.SelectableService=$A;g.SetLeftFeature=Zg;g.SimpleFilter=tt;g.SortController=jA;g.SortIndicatorComp=Yg;g.StandardMenuFactory=fA;g.StylingService=SA;g.TabGuardComp=xd;g.TabGuardCtrl=oA;g.TabbedLayout=o2;g.TemplateService=VA;g.TextCellEditor=vS;g.TextFilter=Kg;g.TextFloatingFilter=_0;g.Timer=YB;g.TooltipFeature=Jg;g.TouchListener=Zr;g.UserComponentFactory=N0;g.UserComponentRegistry=b0;g.ValueCache=zA;g.ValueFormatterService=mA;g.ValueParserService=nF;g.ValueService=kA;g.VanillaFrameworkOverrides=bA;g.VirtualList=f_;g.VirtualListDragFeature=jU;g.XmlFactory=m$;g.ZipContainer=w$;g._=Q;g.__FORCE_MODULE_DETECTION=Hq;g.getRowContainerTypeForName=z0;g.simpleHttpRequest=i2});var fF=z((pie,dF)=>{"use strict";var S$="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";dF.exports=S$});var vF=z((hie,gF)=>{"use strict";var _$=fF();function pF(){}function hF(){}hF.resetWarningCache=pF;gF.exports=function(){function n(r,o,i,a,s,l){if(l!==_$){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}n.isRequired=n;function t(){return n}var e={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:t,element:n,elementType:n,instanceOf:t,node:n,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:hF,resetWarningCache:pF};return e.PropTypes=e,e}});var yF=z((mie,mF)=>{mF.exports=vF()();var gie,vie});var h_=z(eu=>{"use strict";var E$=eu&&eu.__extends||function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();Object.defineProperty(eu,"__esModule",{value:!0});eu.ReactComponent=void 0;var R$=function(){function n(){}return n}(),T$=function(n){E$(t,n);function t(e,r,o){var i=n.call(this)||this;return i.portal=null,i.reactComponent=e,i.portalManager=r,i.componentType=o,i.statelessComponent=i.isStateless(i.reactComponent),i}return t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},t.prototype.createParentElement=function(e){var r=this.portalManager.getComponentWrappingElement(),o=document.createElement(r||"div");return o.classList.add("ag-react-container"),e.reactContainer=o,o},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;if(this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses())){var r=this.componentInstance.getReactContainerClasses();r.forEach(function(o){return e.eParentElement.classList.add(o)})}},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},t.prototype.hasSymbol=function(){return typeof Symbol=="function"&&Symbol.for},t.prototype.isStateless=function(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()},t.prototype.hasMethod=function(e){var r=this.getFrameworkComponentInstance();return!!r&&r[e]!==null||this.fallbackMethodAvailable(e)},t.prototype.callMethod=function(e,r){var o=this,i=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,r&&r[0]?r[0]:{});if(!i){setTimeout(function(){return o.callMethod(e,r)});return}var a=i[e];if(a)return a.apply(i,r);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,r&&r[0]?r[0]:{})},t.prototype.addMethod=function(e,r){this[e]=r},t}(R$);eu.ReactComponent=T$});var ub=z(tu=>{"use strict";var HF=te();function pe(n){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+n,e=1;e<arguments.length;e++)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified React error #"+n+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var en=Object.prototype.hasOwnProperty,x$=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,CF={},wF={};function VF(n){return en.call(wF,n)?!0:en.call(CF,n)?!1:x$.test(n)?wF[n]=!0:(CF[n]=!0,!1)}function Fr(n,t,e,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=e,this.propertyName=n,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){rr[n]=new Fr(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var t=n[0];rr[t]=new Fr(t,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){rr[n]=new Fr(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){rr[n]=new Fr(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){rr[n]=new Fr(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){rr[n]=new Fr(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){rr[n]=new Fr(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){rr[n]=new Fr(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){rr[n]=new Fr(n,5,!1,n.toLowerCase(),null,!1,!1)});var E_=/[\-:]([a-z])/g;function R_(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var t=n.replace(E_,R_);rr[t]=new Fr(t,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var t=n.replace(E_,R_);rr[t]=new Fr(t,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var t=n.replace(E_,R_);rr[t]=new Fr(t,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){rr[n]=new Fr(n,1,!1,n.toLowerCase(),null,!1,!1)});rr.xlinkHref=new Fr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){rr[n]=new Fr(n,1,!1,n.toLowerCase(),null,!0,!0)});var nv={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},P$=["Webkit","ms","Moz","O"];Object.keys(nv).forEach(function(n){P$.forEach(function(t){t=t+n.charAt(0).toUpperCase()+n.substring(1),nv[t]=nv[n]})});var O$=/["'&<>]/;function Ar(n){if(typeof n=="boolean"||typeof n=="number")return""+n;n=""+n;var t=O$.exec(n);if(t){var e="",r,o=0;for(r=t.index;r<n.length;r++){switch(n.charCodeAt(r)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==r&&(e+=n.substring(o,r)),o=r+1,e+=t}n=o!==r?e+n.substring(o,r):e}return n}var L$=/([A-Z])/g,I$=/^ms-/,y_=Array.isArray;function Ai(n,t){return{insertionMode:n,selectedValue:t}}function D$(n,t,e){switch(t){case"select":return Ai(1,e.value!=null?e.value:e.defaultValue);case"svg":return Ai(2,null);case"math":return Ai(3,null);case"foreignObject":return Ai(1,null);case"table":return Ai(4,null);case"thead":case"tbody":case"tfoot":return Ai(5,null);case"colgroup":return Ai(7,null);case"tr":return Ai(6,null)}return 4<=n.insertionMode||n.insertionMode===0?Ai(1,null):n}var SF=new Map;function BF(n,t,e){if(typeof e!="object")throw Error(pe(62));t=!0;for(var r in e)if(en.call(e,r)){var o=e[r];if(o!=null&&typeof o!="boolean"&&o!==""){if(r.indexOf("--")===0){var i=Ar(r);o=Ar((""+o).trim())}else{i=r;var a=SF.get(i);a!==void 0||(a=Ar(i.replace(L$,"-$1").toLowerCase().replace(I$,"-ms-")),SF.set(i,a)),i=a,o=typeof o=="number"?o===0||en.call(nv,r)?""+o:o+"px":Ar((""+o).trim())}t?(t=!1,n.push(' style="',i,":",o)):n.push(";",i,":",o)}}t||n.push('"')}function Sn(n,t,e,r){switch(e){case"style":BF(n,t,r);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N"){if(t=rr.hasOwnProperty(e)?rr[e]:null,t!==null){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(e=t.attributeName,t.type){case 3:r&&n.push(" ",e,'=""');break;case 4:r===!0?n.push(" ",e,'=""'):r!==!1&&n.push(" ",e,'="',Ar(r),'"');break;case 5:isNaN(r)||n.push(" ",e,'="',Ar(r),'"');break;case 6:!isNaN(r)&&1<=r&&n.push(" ",e,'="',Ar(r),'"');break;default:t.sanitizeURL&&(r=""+r),n.push(" ",e,'="',Ar(r),'"')}}else if(VF(e)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(t=e.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}n.push(" ",e,'="',Ar(r),'"')}}}function ov(n,t,e){if(t!=null){if(e!=null)throw Error(pe(60));if(typeof t!="object"||!("__html"in t))throw Error(pe(61));t=t.__html,t!=null&&n.push(""+t)}}function A$(n){var t="";return HF.Children.forEach(n,function(e){e!=null&&(t+=e)}),t}function g_(n,t,e,r){n.push(ai(e));var o=e=null,i;for(i in t)if(en.call(t,i)){var a=t[i];if(a!=null)switch(i){case"children":e=a;break;case"dangerouslySetInnerHTML":o=a;break;default:Sn(n,r,i,a)}}return n.push(">"),ov(n,o,e),typeof e=="string"?(n.push(Ar(e)),null):e}var F$=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_F=new Map;function ai(n){var t=_F.get(n);if(t===void 0){if(!F$.test(n))throw Error(pe(65,n));t="<"+n,_F.set(n,t)}return t}function b$(n,t,e,r,o){switch(t){case"select":n.push(ai("select"));var i=null,a=null;for(c in e)if(en.call(e,c)){var s=e[c];if(s!=null)switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"defaultValue":case"value":break;default:Sn(n,r,c,s)}}return n.push(">"),ov(n,a,i),i;case"option":a=o.selectedValue,n.push(ai("option"));var l=s=null,u=null,c=null;for(i in e)if(en.call(e,i)){var d=e[i];if(d!=null)switch(i){case"children":s=d;break;case"selected":u=d;break;case"dangerouslySetInnerHTML":c=d;break;case"value":l=d;default:Sn(n,r,i,d)}}if(a!=null)if(e=l!==null?""+l:A$(s),y_(a)){for(r=0;r<a.length;r++)if(""+a[r]===e){n.push(' selected=""');break}}else""+a===e&&n.push(' selected=""');else u&&n.push(' selected=""');return n.push(">"),ov(n,c,s),s;case"textarea":n.push(ai("textarea")),c=a=i=null;for(s in e)if(en.call(e,s)&&(l=e[s],l!=null))switch(s){case"children":c=l;break;case"value":i=l;break;case"defaultValue":a=l;break;case"dangerouslySetInnerHTML":throw Error(pe(91));default:Sn(n,r,s,l)}if(i===null&&a!==null&&(i=a),n.push(">"),c!=null){if(i!=null)throw Error(pe(92));if(y_(c)&&1<c.length)throw Error(pe(93));i=""+c}return typeof i=="string"&&i[0]===`
`&&n.push(`
`),i!==null&&n.push(Ar(""+i)),null;case"input":n.push(ai("input")),l=c=s=i=null;for(a in e)if(en.call(e,a)&&(u=e[a],u!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(pe(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":s=u;break;case"checked":c=u;break;case"value":i=u;break;default:Sn(n,r,a,u)}return c!==null?Sn(n,r,"checked",c):l!==null&&Sn(n,r,"checked",l),i!==null?Sn(n,r,"value",i):s!==null&&Sn(n,r,"value",s),n.push("/>"),null;case"menuitem":n.push(ai("menuitem"));for(var f in e)if(en.call(e,f)&&(i=e[f],i!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(pe(400));default:Sn(n,r,f,i)}return n.push(">"),null;case"title":n.push(ai("title")),i=null;for(d in e)if(en.call(e,d)&&(a=e[d],a!=null))switch(d){case"children":i=a;break;case"dangerouslySetInnerHTML":throw Error(pe(434));default:Sn(n,r,d,a)}return n.push(">"),i;case"listing":case"pre":n.push(ai(t)),a=i=null;for(l in e)if(en.call(e,l)&&(s=e[l],s!=null))switch(l){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;default:Sn(n,r,l,s)}if(n.push(">"),a!=null){if(i!=null)throw Error(pe(60));if(typeof a!="object"||!("__html"in a))throw Error(pe(61));e=a.__html,e!=null&&(typeof e=="string"&&0<e.length&&e[0]===`
`?n.push(`
`,e):n.push(""+e))}return typeof i=="string"&&i[0]===`
`&&n.push(`
`),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":n.push(ai(t));for(var p in e)if(en.call(e,p)&&(i=e[p],i!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(pe(399,t));default:Sn(n,r,p,i)}return n.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return g_(n,e,t,r);case"html":return o.insertionMode===0&&n.push("<!DOCTYPE html>"),g_(n,e,t,r);default:if(t.indexOf("-")===-1&&typeof e.is!="string")return g_(n,e,t,r);n.push(ai(t)),a=i=null;for(u in e)if(en.call(e,u)&&(s=e[u],s!=null))switch(u){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"style":BF(n,r,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:VF(u)&&typeof s!="function"&&typeof s!="symbol"&&n.push(" ",u,'="',Ar(s),'"')}return n.push(">"),ov(n,a,i),i}}function EF(n,t,e){if(n.push('<!--$?--><template id="'),e===null)throw Error(pe(395));return n.push(e),n.push('"></template>')}function M$(n,t,e,r){switch(e.insertionMode){case 0:case 1:return n.push('<div hidden id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 2:return n.push('<svg aria-hidden="true" style="display:none" id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 3:return n.push('<math aria-hidden="true" style="display:none" id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 4:return n.push('<table hidden id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 5:return n.push('<table hidden><tbody id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 6:return n.push('<table hidden><tr id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');case 7:return n.push('<table hidden><colgroup id="'),n.push(t.segmentPrefix),t=r.toString(16),n.push(t),n.push('">');default:throw Error(pe(397))}}function N$(n,t){switch(t.insertionMode){case 0:case 1:return n.push("</div>");case 2:return n.push("</svg>");case 3:return n.push("</math>");case 4:return n.push("</table>");case 5:return n.push("</tbody></table>");case 6:return n.push("</tr></table>");case 7:return n.push("</colgroup></table>");default:throw Error(pe(397))}}var G$=/[<\u2028\u2029]/g;function v_(n){return JSON.stringify(n).replace(G$,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function k$(n,t){return t=t===void 0?"":t,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:t+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:n}}function RF(n,t,e,r){return e.generateStaticMarkup?(n.push(Ar(t)),!1):(t===""?n=r:(r&&n.push("<!-- -->"),n.push(Ar(t)),n=!0),n)}var Ld=Object.assign,H$=Symbol.for("react.element"),WF=Symbol.for("react.portal"),UF=Symbol.for("react.fragment"),jF=Symbol.for("react.strict_mode"),zF=Symbol.for("react.profiler"),qF=Symbol.for("react.provider"),$F=Symbol.for("react.context"),KF=Symbol.for("react.forward_ref"),YF=Symbol.for("react.suspense"),XF=Symbol.for("react.suspense_list"),QF=Symbol.for("react.memo"),T_=Symbol.for("react.lazy"),V$=Symbol.for("react.scope"),B$=Symbol.for("react.debug_trace_mode"),W$=Symbol.for("react.legacy_hidden"),U$=Symbol.for("react.default_value"),TF=Symbol.iterator;function C_(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case UF:return"Fragment";case WF:return"Portal";case zF:return"Profiler";case jF:return"StrictMode";case YF:return"Suspense";case XF:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case $F:return(n.displayName||"Context")+".Consumer";case qF:return(n._context.displayName||"Context")+".Provider";case KF:var t=n.render;return n=n.displayName,n||(n=t.displayName||t.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case QF:return t=n.displayName||null,t!==null?t:C_(n.type)||"Memo";case T_:t=n._payload,n=n._init;try{return C_(n(t))}catch{}}return null}var JF={};function xF(n,t){if(n=n.contextTypes,!n)return JF;var e={},r;for(r in n)e[r]=t[r];return e}var bs=null;function pv(n,t){if(n!==t){n.context._currentValue2=n.parentValue,n=n.parent;var e=t.parent;if(n===null){if(e!==null)throw Error(pe(401))}else{if(e===null)throw Error(pe(401));pv(n,e)}t.context._currentValue2=t.value}}function ZF(n){n.context._currentValue2=n.parentValue,n=n.parent,n!==null&&ZF(n)}function eb(n){var t=n.parent;t!==null&&eb(t),n.context._currentValue2=n.value}function tb(n,t){if(n.context._currentValue2=n.parentValue,n=n.parent,n===null)throw Error(pe(402));n.depth===t.depth?pv(n,t):tb(n,t)}function rb(n,t){var e=t.parent;if(e===null)throw Error(pe(402));n.depth===e.depth?pv(n,e):rb(n,e),t.context._currentValue2=t.value}function lv(n){var t=bs;t!==n&&(t===null?eb(n):n===null?ZF(t):t.depth===n.depth?pv(t,n):t.depth>n.depth?tb(t,n):rb(t,n),bs=n)}var PF={isMounted:function(){return!1},enqueueSetState:function(n,t){n=n._reactInternals,n.queue!==null&&n.queue.push(t)},enqueueReplaceState:function(n,t){n=n._reactInternals,n.replace=!0,n.queue=[t]},enqueueForceUpdate:function(){}};function OF(n,t,e,r){var o=n.state!==void 0?n.state:null;n.updater=PF,n.props=e,n.state=o;var i={queue:[],replace:!1};n._reactInternals=i;var a=t.contextType;if(n.context=typeof a=="object"&&a!==null?a._currentValue2:r,a=t.getDerivedStateFromProps,typeof a=="function"&&(a=a(e,o),o=a==null?o:Ld({},o,a),n.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function"&&(typeof n.UNSAFE_componentWillMount=="function"||typeof n.componentWillMount=="function"))if(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&PF.enqueueReplaceState(n,n.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&t.length===1)n.state=t[0];else{for(i=a?t[0]:n.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];s=typeof s=="function"?s.call(n,i,e,r):s,s!=null&&(o?(o=!1,i=Ld({},i,s)):Ld(i,s))}n.state=i}else i.queue=null}var j$={id:1,overflow:""};function w_(n,t,e){var r=n.id;n=n.overflow;var o=32-iv(r)-1;r&=~(1<<o),e+=1;var i=32-iv(t)+o;if(30<i){var a=o-o%5;return i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,{id:1<<32-iv(t)+o|e<<o|r,overflow:i+n}}return{id:1<<i|e<<o|r,overflow:n}}var iv=Math.clz32?Math.clz32:$$,z$=Math.log,q$=Math.LN2;function $$(n){return n>>>=0,n===0?32:31-(z$(n)/q$|0)|0}function K$(n,t){return n===t&&(n!==0||1/n===1/t)||n!==n&&t!==t}var Y$=typeof Object.is=="function"?Object.is:K$,Fi=null,x_=null,av=null,$e=null,Pd=!1,uv=!1,Id=0,Ba=null,hv=0;function Fs(){if(Fi===null)throw Error(pe(321));return Fi}function LF(){if(0<hv)throw Error(pe(312));return{memoizedState:null,queue:null,next:null}}function P_(){return $e===null?av===null?(Pd=!1,av=$e=LF()):(Pd=!0,$e=av):$e.next===null?(Pd=!1,$e=$e.next=LF()):(Pd=!0,$e=$e.next),$e}function O_(){x_=Fi=null,uv=!1,av=null,hv=0,$e=Ba=null}function nb(n,t){return typeof t=="function"?t(n):t}function IF(n,t,e){if(Fi=Fs(),$e=P_(),Pd){var r=$e.queue;if(t=r.dispatch,Ba!==null&&(e=Ba.get(r),e!==void 0)){Ba.delete(r),r=$e.memoizedState;do r=n(r,e.action),e=e.next;while(e!==null);return $e.memoizedState=r,[r,t]}return[$e.memoizedState,t]}return n=n===nb?typeof t=="function"?t():t:e!==void 0?e(t):t,$e.memoizedState=n,n=$e.queue={last:null,dispatch:null},n=n.dispatch=X$.bind(null,Fi,n),[$e.memoizedState,n]}function DF(n,t){if(Fi=Fs(),$e=P_(),t=t===void 0?null:t,$e!==null){var e=$e.memoizedState;if(e!==null&&t!==null){var r=e[1];e:if(r===null)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Y$(t[o],r[o])){r=!1;break e}r=!0}if(r)return e[0]}}return n=n(),$e.memoizedState=[n,t],n}function X$(n,t,e){if(25<=hv)throw Error(pe(301));if(n===Fi)if(uv=!0,n={action:e,next:null},Ba===null&&(Ba=new Map),e=Ba.get(t),e===void 0)Ba.set(t,n);else{for(t=e;t.next!==null;)t=t.next;t.next=n}}function Q$(){throw Error(pe(394))}function tv(){}var AF={readContext:function(n){return n._currentValue2},useContext:function(n){return Fs(),n._currentValue2},useMemo:DF,useReducer:IF,useRef:function(n){Fi=Fs(),$e=P_();var t=$e.memoizedState;return t===null?(n={current:n},$e.memoizedState=n):t},useState:function(n){return IF(nb,n)},useInsertionEffect:tv,useLayoutEffect:function(){},useCallback:function(n,t){return DF(function(){return n},t)},useImperativeHandle:tv,useEffect:tv,useDebugValue:tv,useDeferredValue:function(n){return Fs(),n},useTransition:function(){return Fs(),[!1,Q$]},useId:function(){var n=x_.treeContext,t=n.overflow;n=n.id,n=(n&~(1<<32-iv(n)-1)).toString(32)+t;var e=sv;if(e===null)throw Error(pe(404));return t=Id++,n=":"+e.idPrefix+"R"+n,0<t&&(n+="H"+t.toString(32)),n+":"},useMutableSource:function(n,t){return Fs(),t(n._source)},useSyncExternalStore:function(n,t,e){if(e===void 0)throw Error(pe(407));return e()}},sv=null,m_=HF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function J$(n){return console.error(n),null}function Od(){}function Z$(n,t,e,r,o,i,a,s,l){var u=[],c=new Set;return t={destination:null,responseState:t,progressiveChunkSize:r===void 0?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?J$:o,onAllReady:i===void 0?Od:i,onShellReady:a===void 0?Od:a,onShellError:s===void 0?Od:s,onFatalError:l===void 0?Od:l},e=cv(t,0,null,e,!1,!1),e.parentFlushed=!0,n=L_(t,n,null,e,c,JF,null,j$),u.push(n),t}function L_(n,t,e,r,o,i,a,s){n.allPendingTasks++,e===null?n.pendingRootTasks++:e.pendingTasks++;var l={node:t,ping:function(){var u=n.pingedTasks;u.push(l),u.length===1&&ab(n)},blockedBoundary:e,blockedSegment:r,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(l),l}function cv(n,t,e,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:e,lastPushedText:o,textEmbedded:i}}function Dd(n,t){if(n=n.onError(t),n!=null&&typeof n!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof n+'" instead');return n}function dv(n,t){var e=n.onShellError;e(t),e=n.onFatalError,e(t),n.destination!==null?(n.status=2,n.destination.destroy(t)):(n.status=1,n.fatalError=t)}function FF(n,t,e,r,o){for(Fi={},x_=t,Id=0,n=e(r,o);uv;)uv=!1,Id=0,hv+=1,$e=null,n=e(r,o);return O_(),n}function bF(n,t,e,r){var o=e.render(),i=r.childContextTypes;if(i!=null){var a=t.legacyContext;if(typeof e.getChildContext!="function")r=a;else{e=e.getChildContext();for(var s in e)if(!(s in i))throw Error(pe(108,C_(r)||"Unknown",s));r=Ld({},a,e)}t.legacyContext=r,_n(n,t,o),t.legacyContext=a}else _n(n,t,o)}function MF(n,t){if(n&&n.defaultProps){t=Ld({},t),n=n.defaultProps;for(var e in n)t[e]===void 0&&(t[e]=n[e]);return t}return t}function S_(n,t,e,r,o){if(typeof e=="function")if(e.prototype&&e.prototype.isReactComponent){o=xF(e,t.legacyContext);var i=e.contextType;i=new e(r,typeof i=="object"&&i!==null?i._currentValue2:o),OF(i,e,r,o),bF(n,t,i,e)}else{i=xF(e,t.legacyContext),o=FF(n,t,e,r,i);var a=Id!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)OF(o,e,r,i),bF(n,t,o,e);else if(a){r=t.treeContext,t.treeContext=w_(r,1,0);try{_n(n,t,o)}finally{t.treeContext=r}}else _n(n,t,o)}else if(typeof e=="string"){switch(o=t.blockedSegment,i=b$(o.chunks,e,r,n.responseState,o.formatContext),o.lastPushedText=!1,a=o.formatContext,o.formatContext=D$(a,e,r),__(n,t,i),o.formatContext=a,e){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",e,">")}o.lastPushedText=!1}else{switch(e){case W$:case B$:case jF:case zF:case UF:_n(n,t,r.children);return;case XF:_n(n,t,r.children);return;case V$:throw Error(pe(343));case YF:e:{e=t.blockedBoundary,o=t.blockedSegment,i=r.fallback,r=r.children,a=new Set;var s={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null},l=cv(n,o.chunks.length,s,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var u=cv(n,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=s,t.blockedSegment=u;try{if(__(n,t,r),n.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("<!-- -->"),u.status=1,fv(s,u),s.pendingTasks===0)break e}catch(c){u.status=4,s.forceClientRender=!0,s.errorDigest=Dd(n,c)}finally{t.blockedBoundary=e,t.blockedSegment=o}t=L_(n,i,e,l,a,t.legacyContext,t.context,t.treeContext),n.pingedTasks.push(t)}return}if(typeof e=="object"&&e!==null)switch(e.$$typeof){case KF:if(r=FF(n,t,e.render,r,o),Id!==0){e=t.treeContext,t.treeContext=w_(e,1,0);try{_n(n,t,r)}finally{t.treeContext=e}}else _n(n,t,r);return;case QF:e=e.type,r=MF(e,r),S_(n,t,e,r,o);return;case qF:if(o=r.children,e=e._context,r=r.value,i=e._currentValue2,e._currentValue2=r,a=bs,bs=r={parent:a,depth:a===null?0:a.depth+1,context:e,parentValue:i,value:r},t.context=r,_n(n,t,o),n=bs,n===null)throw Error(pe(403));r=n.parentValue,n.context._currentValue2=r===U$?n.context._defaultValue:r,n=bs=n.parent,t.context=n;return;case $F:r=r.children,r=r(e._currentValue2),_n(n,t,r);return;case T_:o=e._init,e=o(e._payload),r=MF(e,r),S_(n,t,e,r,void 0);return}throw Error(pe(130,e==null?e:typeof e,""))}}function _n(n,t,e){if(t.node=e,typeof e=="object"&&e!==null){switch(e.$$typeof){case H$:S_(n,t,e.type,e.props,e.ref);return;case WF:throw Error(pe(257));case T_:var r=e._init;e=r(e._payload),_n(n,t,e);return}if(y_(e)){NF(n,t,e);return}if(e===null||typeof e!="object"?r=null:(r=TF&&e[TF]||e["@@iterator"],r=typeof r=="function"?r:null),r&&(r=r.call(e))){if(e=r.next(),!e.done){var o=[];do o.push(e.value),e=r.next();while(!e.done);NF(n,t,o)}return}throw n=Object.prototype.toString.call(e),Error(pe(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n))}typeof e=="string"?(r=t.blockedSegment,r.lastPushedText=RF(t.blockedSegment.chunks,e,n.responseState,r.lastPushedText)):typeof e=="number"&&(r=t.blockedSegment,r.lastPushedText=RF(t.blockedSegment.chunks,""+e,n.responseState,r.lastPushedText))}function NF(n,t,e){for(var r=e.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=w_(i,r,o);try{__(n,t,e[o])}finally{t.treeContext=i}}}function __(n,t,e){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return _n(n,t,e)}catch(l){if(O_(),typeof l=="object"&&l!==null&&typeof l.then=="function"){e=l;var a=t.blockedSegment,s=cv(n,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,n=L_(n,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,e.then(n,n),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,lv(i)}else throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,lv(i),l}}function eK(n){var t=n.blockedBoundary;n=n.blockedSegment,n.status=3,ib(this,t,n)}function ob(n,t,e){var r=n.blockedBoundary;n.blockedSegment.status=3,r===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,n=e===void 0?Error(pe(432)):e,r.errorDigest=t.onError(n),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(o){return ob(o,t,e)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(r=t.onAllReady,r()))}function fv(n,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var e=t.children[0];e.id=t.id,e.parentFlushed=!0,e.status===1&&fv(n,e)}else n.completedSegments.push(t)}function ib(n,t,e){if(t===null){if(e.parentFlushed){if(n.completedRootSegment!==null)throw Error(pe(389));n.completedRootSegment=e}n.pendingRootTasks--,n.pendingRootTasks===0&&(n.onShellError=Od,t=n.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(e.parentFlushed&&e.status===1&&fv(t,e),t.parentFlushed&&n.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(eK,n),t.fallbackAbortableTasks.clear()):e.parentFlushed&&e.status===1&&(fv(t,e),t.completedSegments.length===1&&t.parentFlushed&&n.partialBoundaries.push(t)));n.allPendingTasks--,n.allPendingTasks===0&&(n=n.onAllReady,n())}function ab(n){if(n.status!==2){var t=bs,e=m_.current;m_.current=AF;var r=sv;sv=n.responseState;try{var o=n.pingedTasks,i;for(i=0;i<o.length;i++){var a=o[i],s=n,l=a.blockedSegment;if(l.status===0){lv(a.context);try{_n(s,a,a.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("<!-- -->"),a.abortSet.delete(a),l.status=1,ib(s,a.blockedBoundary,l)}catch(h){if(O_(),typeof h=="object"&&h!==null&&typeof h.then=="function"){var u=a.ping;h.then(u,u)}else{a.abortSet.delete(a),l.status=4;var c=a.blockedBoundary,d=h,f=Dd(s,d);if(c===null?dv(s,d):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=f,c.parentFlushed&&s.clientRenderedBoundaries.push(c))),s.allPendingTasks--,s.allPendingTasks===0){var p=s.onAllReady;p()}}}finally{}}}o.splice(0,i),n.destination!==null&&I_(n,n.destination)}catch(h){Dd(n,h),dv(n,h)}finally{sv=r,m_.current=e,e===AF&&lv(t)}}}function rv(n,t,e){switch(e.parentFlushed=!0,e.status){case 0:var r=e.id=n.nextSegmentId++;return e.lastPushedText=!1,e.textEmbedded=!1,n=n.responseState,t.push('<template id="'),t.push(n.placeholderPrefix),n=r.toString(16),t.push(n),t.push('"></template>');case 1:e.status=2;var o=!0;r=e.chunks;var i=0;e=e.children;for(var a=0;a<e.length;a++){for(o=e[a];i<o.index;i++)t.push(r[i]);o=gv(n,t,o)}for(;i<r.length-1;i++)t.push(r[i]);return i<r.length&&(o=t.push(r[i])),o;default:throw Error(pe(390))}}function gv(n,t,e){var r=e.boundary;if(r===null)return rv(n,t,e);if(r.parentFlushed=!0,r.forceClientRender)return n.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("<!--$!-->"),t.push("<template"),r&&(t.push(' data-dgst="'),r=Ar(r),t.push(r),t.push('"')),t.push("></template>")),rv(n,t,e),n=n.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),n;if(0<r.pendingTasks){r.rootSegmentID=n.nextSegmentId++,0<r.completedSegments.length&&n.partialBoundaries.push(r);var o=n.responseState,i=o.nextSuspenseID++;return o=o.boundaryPrefix+i.toString(16),r=r.id=o,EF(t,n.responseState,r),rv(n,t,e),t.push("<!--/$-->")}if(r.byteSize>n.progressiveChunkSize)return r.rootSegmentID=n.nextSegmentId++,n.completedBoundaries.push(r),EF(t,n.responseState,r.id),rv(n,t,e),t.push("<!--/$-->");if(n.responseState.generateStaticMarkup||t.push("<!--$-->"),e=r.completedSegments,e.length!==1)throw Error(pe(391));return gv(n,t,e[0]),n=n.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),n}function GF(n,t,e){return M$(t,n.responseState,e.formatContext,e.id),gv(n,t,e),N$(t,e.formatContext)}function kF(n,t,e){for(var r=e.completedSegments,o=0;o<r.length;o++)sb(n,t,e,r[o]);if(r.length=0,n=n.responseState,r=e.id,e=e.rootSegmentID,t.push(n.startInlineScript),n.sentCompleteBoundaryFunction?t.push('$RC("'):(n.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),r===null)throw Error(pe(395));return e=e.toString(16),t.push(r),t.push('","'),t.push(n.segmentPrefix),t.push(e),t.push('")<\/script>')}function sb(n,t,e,r){if(r.status===2)return!0;var o=r.id;if(o===-1){if((r.id=e.rootSegmentID)===-1)throw Error(pe(392));return GF(n,t,r)}return GF(n,t,r),n=n.responseState,t.push(n.startInlineScript),n.sentCompleteSegmentFunction?t.push('$RS("'):(n.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(n.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(n.placeholderPrefix),t.push(o),t.push('")<\/script>')}function I_(n,t){try{var e=n.completedRootSegment;if(e!==null&&n.pendingRootTasks===0){gv(n,t,e),n.completedRootSegment=null;var r=n.responseState.bootstrapChunks;for(e=0;e<r.length-1;e++)t.push(r[e]);e<r.length&&t.push(r[e])}var o=n.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var a=o[i];r=t;var s=n.responseState,l=a.id,u=a.errorDigest,c=a.errorMessage,d=a.errorComponentStack;if(r.push(s.startInlineScript),s.sentClientRenderFunction?r.push('$RX("'):(s.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),l===null)throw Error(pe(395));if(r.push(l),r.push('"'),u||c||d){r.push(",");var f=v_(u||"");r.push(f)}if(c||d){r.push(",");var p=v_(c||"");r.push(p)}if(d){r.push(",");var h=v_(d);r.push(h)}if(!r.push(")<\/script>")){n.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var v=n.completedBoundaries;for(i=0;i<v.length;i++)if(!kF(n,t,v[i])){n.destination=null,i++,v.splice(0,i);return}v.splice(0,i);var C=n.partialBoundaries;for(i=0;i<C.length;i++){var m=C[i];e:{o=n,a=t;var y=m.completedSegments;for(s=0;s<y.length;s++)if(!sb(o,a,m,y[s])){s++,y.splice(0,s);var S=!1;break e}y.splice(0,s),S=!0}if(!S){n.destination=null,i++,C.splice(0,i);return}}C.splice(0,i);var E=n.completedBoundaries;for(i=0;i<E.length;i++)if(!kF(n,t,E[i])){n.destination=null,i++,E.splice(0,i);return}E.splice(0,i)}finally{n.allPendingTasks===0&&n.pingedTasks.length===0&&n.clientRenderedBoundaries.length===0&&n.completedBoundaries.length===0&&t.push(null)}}function tK(n,t){try{var e=n.abortableTasks;e.forEach(function(r){return ob(r,n,t)}),e.clear(),n.destination!==null&&I_(n,n.destination)}catch(r){Dd(n,r),dv(n,r)}}function rK(){}function lb(n,t,e,r){var o=!1,i=null,a="",s={push:function(u){return u!==null&&(a+=u),!0},destroy:function(u){o=!0,i=u}},l=!1;if(n=Z$(n,k$(e,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,rK,void 0,function(){l=!0},void 0,void 0),ab(n),tK(n,r),n.status===1)n.status=2,s.destroy(n.fatalError);else if(n.status!==2&&n.destination===null){n.destination=s;try{I_(n,s)}catch(u){Dd(n,u),dv(n,u)}}if(o)throw i;if(!l)throw Error(pe(426));return a}tu.renderToNodeStream=function(){throw Error(pe(207))};tu.renderToStaticMarkup=function(n,t){return lb(n,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};tu.renderToStaticNodeStream=function(){throw Error(pe(208))};tu.renderToString=function(n,t){return lb(n,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};tu.version="18.3.1"});var sM=z(Q_=>{"use strict";var Nb=te();function ve(n){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+n,e=1;e<arguments.length;e++)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified React error #"+n+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Rn=null,Tn=0;function K(n,t){if(t.length!==0)if(512<t.length)0<Tn&&(n.enqueue(new Uint8Array(Rn.buffer,0,Tn)),Rn=new Uint8Array(512),Tn=0),n.enqueue(t);else{var e=Rn.length-Tn;e<t.length&&(e===0?n.enqueue(Rn):(Rn.set(t.subarray(0,e),Tn),n.enqueue(Rn),t=t.subarray(e)),Rn=new Uint8Array(512),Tn=0),Rn.set(t,Tn),Tn+=t.length}}function rt(n,t){return K(n,t),!0}function cb(n){Rn&&0<Tn&&(n.enqueue(new Uint8Array(Rn.buffer,0,Tn)),Rn=null,Tn=0)}var Gb=new TextEncoder;function me(n){return Gb.encode(n)}function V(n){return Gb.encode(n)}function kb(n,t){typeof n.error=="function"?n.error(t):n.close()}var tn=Object.prototype.hasOwnProperty,nK=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,db={},fb={};function Hb(n){return tn.call(fb,n)?!0:tn.call(db,n)?!1:nK.test(n)?fb[n]=!0:(db[n]=!0,!1)}function br(n,t,e,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=e,this.propertyName=n,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){or[n]=new br(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var t=n[0];or[t]=new br(t,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){or[n]=new br(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){or[n]=new br(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){or[n]=new br(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){or[n]=new br(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){or[n]=new br(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){or[n]=new br(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){or[n]=new br(n,5,!1,n.toLowerCase(),null,!1,!1)});var W_=/[\-:]([a-z])/g;function U_(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var t=n.replace(W_,U_);or[t]=new br(t,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var t=n.replace(W_,U_);or[t]=new br(t,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var t=n.replace(W_,U_);or[t]=new br(t,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){or[n]=new br(n,1,!1,n.toLowerCase(),null,!1,!1)});or.xlinkHref=new br("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){or[n]=new br(n,1,!1,n.toLowerCase(),null,!0,!0)});var yv={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},oK=["Webkit","ms","Moz","O"];Object.keys(yv).forEach(function(n){oK.forEach(function(t){t=t+n.charAt(0).toUpperCase()+n.substring(1),yv[t]=yv[n]})});var iK=/["'&<>]/;function nr(n){if(typeof n=="boolean"||typeof n=="number")return""+n;n=""+n;var t=iK.exec(n);if(t){var e="",r,o=0;for(r=t.index;r<n.length;r++){switch(n.charCodeAt(r)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==r&&(e+=n.substring(o,r)),o=r+1,e+=t}n=o!==r?e+n.substring(o,r):e}return n}var aK=/([A-Z])/g,sK=/^ms-/,G_=Array.isArray,lK=V("<script>"),uK=V("<\/script>"),cK=V('<script src="'),dK=V('<script type="module" src="'),pb=V('" async=""><\/script>'),fK=/(<\/|<)(s)(cript)/gi;function pK(n,t,e,r){return""+t+(e==="s"?"\\u0073":"\\u0053")+r}function hK(n,t,e,r,o){n=n===void 0?"":n,t=t===void 0?lK:V('<script nonce="'+nr(t)+'">');var i=[];if(e!==void 0&&i.push(t,me((""+e).replace(fK,pK)),uK),r!==void 0)for(e=0;e<r.length;e++)i.push(cK,me(nr(r[e])),pb);if(o!==void 0)for(r=0;r<o.length;r++)i.push(dK,me(nr(o[r])),pb);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:V(n+"P:"),segmentPrefix:V(n+"S:"),boundaryPrefix:n+"B:",idPrefix:n,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function si(n,t){return{insertionMode:n,selectedValue:t}}function gK(n){return si(n==="http://www.w3.org/2000/svg"?2:n==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function vK(n,t,e){switch(t){case"select":return si(1,e.value!=null?e.value:e.defaultValue);case"svg":return si(2,null);case"math":return si(3,null);case"foreignObject":return si(1,null);case"table":return si(4,null);case"thead":case"tbody":case"tfoot":return si(5,null);case"colgroup":return si(7,null);case"tr":return si(6,null)}return 4<=n.insertionMode||n.insertionMode===0?si(1,null):n}var j_=V("<!-- -->");function hb(n,t,e,r){return t===""?r:(r&&n.push(j_),n.push(me(nr(t))),!0)}var gb=new Map,mK=V(' style="'),vb=V(":"),yK=V(";");function Vb(n,t,e){if(typeof e!="object")throw Error(ve(62));t=!0;for(var r in e)if(tn.call(e,r)){var o=e[r];if(o!=null&&typeof o!="boolean"&&o!==""){if(r.indexOf("--")===0){var i=me(nr(r));o=me(nr((""+o).trim()))}else{i=r;var a=gb.get(i);a!==void 0||(a=V(nr(i.replace(aK,"-$1").toLowerCase().replace(sK,"-ms-"))),gb.set(i,a)),i=a,o=typeof o=="number"?o===0||tn.call(yv,r)?me(""+o):me(o+"px"):me(nr((""+o).trim()))}t?(t=!1,n.push(mK,i,vb,o)):n.push(yK,i,vb,o)}}t||n.push(Ms)}var Wa=V(" "),ru=V('="'),Ms=V('"'),mb=V('=""');function En(n,t,e,r){switch(e){case"style":Vb(n,t,r);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N"){if(t=or.hasOwnProperty(e)?or[e]:null,t!==null){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(e=me(t.attributeName),t.type){case 3:r&&n.push(Wa,e,mb);break;case 4:r===!0?n.push(Wa,e,mb):r!==!1&&n.push(Wa,e,ru,me(nr(r)),Ms);break;case 5:isNaN(r)||n.push(Wa,e,ru,me(nr(r)),Ms);break;case 6:!isNaN(r)&&1<=r&&n.push(Wa,e,ru,me(nr(r)),Ms);break;default:t.sanitizeURL&&(r=""+r),n.push(Wa,e,ru,me(nr(r)),Ms)}}else if(Hb(e)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(t=e.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}n.push(Wa,me(e),ru,me(nr(r)),Ms)}}}var Ua=V(">"),yb=V("/>");function Cv(n,t,e){if(t!=null){if(e!=null)throw Error(ve(60));if(typeof t!="object"||!("__html"in t))throw Error(ve(61));t=t.__html,t!=null&&n.push(me(""+t))}}function CK(n){var t="";return Nb.Children.forEach(n,function(e){e!=null&&(t+=e)}),t}var D_=V(' selected=""');function A_(n,t,e,r){n.push(li(e));var o=e=null,i;for(i in t)if(tn.call(t,i)){var a=t[i];if(a!=null)switch(i){case"children":e=a;break;case"dangerouslySetInnerHTML":o=a;break;default:En(n,r,i,a)}}return n.push(Ua),Cv(n,o,e),typeof e=="string"?(n.push(me(nr(e))),null):e}var F_=V(`
`),wK=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Cb=new Map;function li(n){var t=Cb.get(n);if(t===void 0){if(!wK.test(n))throw Error(ve(65,n));t=V("<"+n),Cb.set(n,t)}return t}var SK=V("<!DOCTYPE html>");function _K(n,t,e,r,o){switch(t){case"select":n.push(li("select"));var i=null,a=null;for(c in e)if(tn.call(e,c)){var s=e[c];if(s!=null)switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"defaultValue":case"value":break;default:En(n,r,c,s)}}return n.push(Ua),Cv(n,a,i),i;case"option":a=o.selectedValue,n.push(li("option"));var l=s=null,u=null,c=null;for(i in e)if(tn.call(e,i)){var d=e[i];if(d!=null)switch(i){case"children":s=d;break;case"selected":u=d;break;case"dangerouslySetInnerHTML":c=d;break;case"value":l=d;default:En(n,r,i,d)}}if(a!=null)if(e=l!==null?""+l:CK(s),G_(a)){for(r=0;r<a.length;r++)if(""+a[r]===e){n.push(D_);break}}else""+a===e&&n.push(D_);else u&&n.push(D_);return n.push(Ua),Cv(n,c,s),s;case"textarea":n.push(li("textarea")),c=a=i=null;for(s in e)if(tn.call(e,s)&&(l=e[s],l!=null))switch(s){case"children":c=l;break;case"value":i=l;break;case"defaultValue":a=l;break;case"dangerouslySetInnerHTML":throw Error(ve(91));default:En(n,r,s,l)}if(i===null&&a!==null&&(i=a),n.push(Ua),c!=null){if(i!=null)throw Error(ve(92));if(G_(c)&&1<c.length)throw Error(ve(93));i=""+c}return typeof i=="string"&&i[0]===`
`&&n.push(F_),i!==null&&n.push(me(nr(""+i))),null;case"input":n.push(li("input")),l=c=s=i=null;for(a in e)if(tn.call(e,a)&&(u=e[a],u!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(ve(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":s=u;break;case"checked":c=u;break;case"value":i=u;break;default:En(n,r,a,u)}return c!==null?En(n,r,"checked",c):l!==null&&En(n,r,"checked",l),i!==null?En(n,r,"value",i):s!==null&&En(n,r,"value",s),n.push(yb),null;case"menuitem":n.push(li("menuitem"));for(var f in e)if(tn.call(e,f)&&(i=e[f],i!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(ve(400));default:En(n,r,f,i)}return n.push(Ua),null;case"title":n.push(li("title")),i=null;for(d in e)if(tn.call(e,d)&&(a=e[d],a!=null))switch(d){case"children":i=a;break;case"dangerouslySetInnerHTML":throw Error(ve(434));default:En(n,r,d,a)}return n.push(Ua),i;case"listing":case"pre":n.push(li(t)),a=i=null;for(l in e)if(tn.call(e,l)&&(s=e[l],s!=null))switch(l){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;default:En(n,r,l,s)}if(n.push(Ua),a!=null){if(i!=null)throw Error(ve(60));if(typeof a!="object"||!("__html"in a))throw Error(ve(61));e=a.__html,e!=null&&(typeof e=="string"&&0<e.length&&e[0]===`
`?n.push(F_,me(e)):n.push(me(""+e)))}return typeof i=="string"&&i[0]===`
`&&n.push(F_),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":n.push(li(t));for(var p in e)if(tn.call(e,p)&&(i=e[p],i!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(ve(399,t));default:En(n,r,p,i)}return n.push(yb),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return A_(n,e,t,r);case"html":return o.insertionMode===0&&n.push(SK),A_(n,e,t,r);default:if(t.indexOf("-")===-1&&typeof e.is!="string")return A_(n,e,t,r);n.push(li(t)),a=i=null;for(u in e)if(tn.call(e,u)&&(s=e[u],s!=null))switch(u){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"style":Vb(n,r,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Hb(u)&&typeof s!="function"&&typeof s!="symbol"&&n.push(Wa,me(u),ru,me(nr(s)),Ms)}return n.push(Ua),Cv(n,a,i),i}}var EK=V("</"),RK=V(">"),TK=V('<template id="'),xK=V('"></template>'),PK=V("<!--$-->"),OK=V('<!--$?--><template id="'),LK=V('"></template>'),IK=V("<!--$!-->"),DK=V("<!--/$-->"),AK=V("<template"),FK=V('"'),bK=V(' data-dgst="');V(' data-msg="');V(' data-stck="');var MK=V("></template>");function wb(n,t,e){if(K(n,OK),e===null)throw Error(ve(395));return K(n,e),rt(n,LK)}var NK=V('<div hidden id="'),GK=V('">'),kK=V("</div>"),HK=V('<svg aria-hidden="true" style="display:none" id="'),VK=V('">'),BK=V("</svg>"),WK=V('<math aria-hidden="true" style="display:none" id="'),UK=V('">'),jK=V("</math>"),zK=V('<table hidden id="'),qK=V('">'),$K=V("</table>"),KK=V('<table hidden><tbody id="'),YK=V('">'),XK=V("</tbody></table>"),QK=V('<table hidden><tr id="'),JK=V('">'),ZK=V("</tr></table>"),e4=V('<table hidden><colgroup id="'),t4=V('">'),r4=V("</colgroup></table>");function n4(n,t,e,r){switch(e.insertionMode){case 0:case 1:return K(n,NK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,GK);case 2:return K(n,HK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,VK);case 3:return K(n,WK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,UK);case 4:return K(n,zK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,qK);case 5:return K(n,KK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,YK);case 6:return K(n,QK),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,JK);case 7:return K(n,e4),K(n,t.segmentPrefix),K(n,me(r.toString(16))),rt(n,t4);default:throw Error(ve(397))}}function o4(n,t){switch(t.insertionMode){case 0:case 1:return rt(n,kK);case 2:return rt(n,BK);case 3:return rt(n,jK);case 4:return rt(n,$K);case 5:return rt(n,XK);case 6:return rt(n,ZK);case 7:return rt(n,r4);default:throw Error(ve(397))}}var i4=V('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),a4=V('$RS("'),s4=V('","'),l4=V('")<\/script>'),u4=V('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),c4=V('$RC("'),d4=V('","'),f4=V('")<\/script>'),p4=V('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),h4=V('$RX("'),g4=V('"'),v4=V(")<\/script>"),b_=V(","),m4=/[<\u2028\u2029]/g;function M_(n){return JSON.stringify(n).replace(m4,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var bd=Object.assign,y4=Symbol.for("react.element"),Bb=Symbol.for("react.portal"),Wb=Symbol.for("react.fragment"),Ub=Symbol.for("react.strict_mode"),jb=Symbol.for("react.profiler"),zb=Symbol.for("react.provider"),qb=Symbol.for("react.context"),$b=Symbol.for("react.forward_ref"),Kb=Symbol.for("react.suspense"),Yb=Symbol.for("react.suspense_list"),Xb=Symbol.for("react.memo"),z_=Symbol.for("react.lazy"),C4=Symbol.for("react.scope"),w4=Symbol.for("react.debug_trace_mode"),S4=Symbol.for("react.legacy_hidden"),_4=Symbol.for("react.default_value"),Sb=Symbol.iterator;function k_(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Wb:return"Fragment";case Bb:return"Portal";case jb:return"Profiler";case Ub:return"StrictMode";case Kb:return"Suspense";case Yb:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case qb:return(n.displayName||"Context")+".Consumer";case zb:return(n._context.displayName||"Context")+".Provider";case $b:var t=n.render;return n=n.displayName,n||(n=t.displayName||t.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Xb:return t=n.displayName||null,t!==null?t:k_(n.type)||"Memo";case z_:t=n._payload,n=n._init;try{return k_(n(t))}catch{}}return null}var Qb={};function _b(n,t){if(n=n.contextTypes,!n)return Qb;var e={},r;for(r in n)e[r]=t[r];return e}var Gs=null;function Ov(n,t){if(n!==t){n.context._currentValue=n.parentValue,n=n.parent;var e=t.parent;if(n===null){if(e!==null)throw Error(ve(401))}else{if(e===null)throw Error(ve(401));Ov(n,e)}t.context._currentValue=t.value}}function Jb(n){n.context._currentValue=n.parentValue,n=n.parent,n!==null&&Jb(n)}function Zb(n){var t=n.parent;t!==null&&Zb(t),n.context._currentValue=n.value}function eM(n,t){if(n.context._currentValue=n.parentValue,n=n.parent,n===null)throw Error(ve(402));n.depth===t.depth?Ov(n,t):eM(n,t)}function tM(n,t){var e=t.parent;if(e===null)throw Error(ve(402));n.depth===e.depth?Ov(n,e):tM(n,e),t.context._currentValue=t.value}function Ev(n){var t=Gs;t!==n&&(t===null?Zb(n):n===null?Jb(t):t.depth===n.depth?Ov(t,n):t.depth>n.depth?eM(t,n):tM(t,n),Gs=n)}var Eb={isMounted:function(){return!1},enqueueSetState:function(n,t){n=n._reactInternals,n.queue!==null&&n.queue.push(t)},enqueueReplaceState:function(n,t){n=n._reactInternals,n.replace=!0,n.queue=[t]},enqueueForceUpdate:function(){}};function Rb(n,t,e,r){var o=n.state!==void 0?n.state:null;n.updater=Eb,n.props=e,n.state=o;var i={queue:[],replace:!1};n._reactInternals=i;var a=t.contextType;if(n.context=typeof a=="object"&&a!==null?a._currentValue:r,a=t.getDerivedStateFromProps,typeof a=="function"&&(a=a(e,o),o=a==null?o:bd({},o,a),n.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function"&&(typeof n.UNSAFE_componentWillMount=="function"||typeof n.componentWillMount=="function"))if(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&Eb.enqueueReplaceState(n,n.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&t.length===1)n.state=t[0];else{for(i=a?t[0]:n.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];s=typeof s=="function"?s.call(n,i,e,r):s,s!=null&&(o?(o=!1,i=bd({},i,s)):bd(i,s))}n.state=i}else i.queue=null}var E4={id:1,overflow:""};function H_(n,t,e){var r=n.id;n=n.overflow;var o=32-wv(r)-1;r&=~(1<<o),e+=1;var i=32-wv(t)+o;if(30<i){var a=o-o%5;return i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,{id:1<<32-wv(t)+o|e<<o|r,overflow:i+n}}return{id:1<<i|e<<o|r,overflow:n}}var wv=Math.clz32?Math.clz32:x4,R4=Math.log,T4=Math.LN2;function x4(n){return n>>>=0,n===0?32:31-(R4(n)/T4|0)|0}function P4(n,t){return n===t&&(n!==0||1/n===1/t)||n!==n&&t!==t}var O4=typeof Object.is=="function"?Object.is:P4,bi=null,q_=null,Sv=null,Ke=null,Ad=!1,Rv=!1,Md=0,ja=null,Lv=0;function Ns(){if(bi===null)throw Error(ve(321));return bi}function Tb(){if(0<Lv)throw Error(ve(312));return{memoizedState:null,queue:null,next:null}}function $_(){return Ke===null?Sv===null?(Ad=!1,Sv=Ke=Tb()):(Ad=!0,Ke=Sv):Ke.next===null?(Ad=!1,Ke=Ke.next=Tb()):(Ad=!0,Ke=Ke.next),Ke}function K_(){q_=bi=null,Rv=!1,Sv=null,Lv=0,Ke=ja=null}function rM(n,t){return typeof t=="function"?t(n):t}function xb(n,t,e){if(bi=Ns(),Ke=$_(),Ad){var r=Ke.queue;if(t=r.dispatch,ja!==null&&(e=ja.get(r),e!==void 0)){ja.delete(r),r=Ke.memoizedState;do r=n(r,e.action),e=e.next;while(e!==null);return Ke.memoizedState=r,[r,t]}return[Ke.memoizedState,t]}return n=n===rM?typeof t=="function"?t():t:e!==void 0?e(t):t,Ke.memoizedState=n,n=Ke.queue={last:null,dispatch:null},n=n.dispatch=L4.bind(null,bi,n),[Ke.memoizedState,n]}function Pb(n,t){if(bi=Ns(),Ke=$_(),t=t===void 0?null:t,Ke!==null){var e=Ke.memoizedState;if(e!==null&&t!==null){var r=e[1];e:if(r===null)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!O4(t[o],r[o])){r=!1;break e}r=!0}if(r)return e[0]}}return n=n(),Ke.memoizedState=[n,t],n}function L4(n,t,e){if(25<=Lv)throw Error(ve(301));if(n===bi)if(Rv=!0,n={action:e,next:null},ja===null&&(ja=new Map),e=ja.get(t),e===void 0)ja.set(t,n);else{for(t=e;t.next!==null;)t=t.next;t.next=n}}function I4(){throw Error(ve(394))}function vv(){}var Ob={readContext:function(n){return n._currentValue},useContext:function(n){return Ns(),n._currentValue},useMemo:Pb,useReducer:xb,useRef:function(n){bi=Ns(),Ke=$_();var t=Ke.memoizedState;return t===null?(n={current:n},Ke.memoizedState=n):t},useState:function(n){return xb(rM,n)},useInsertionEffect:vv,useLayoutEffect:function(){},useCallback:function(n,t){return Pb(function(){return n},t)},useImperativeHandle:vv,useEffect:vv,useDebugValue:vv,useDeferredValue:function(n){return Ns(),n},useTransition:function(){return Ns(),[!1,I4]},useId:function(){var n=q_.treeContext,t=n.overflow;n=n.id,n=(n&~(1<<32-wv(n)-1)).toString(32)+t;var e=_v;if(e===null)throw Error(ve(404));return t=Md++,n=":"+e.idPrefix+"R"+n,0<t&&(n+="H"+t.toString(32)),n+":"},useMutableSource:function(n,t){return Ns(),t(n._source)},useSyncExternalStore:function(n,t,e){if(e===void 0)throw Error(ve(407));return e()}},_v=null,N_=Nb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function D4(n){return console.error(n),null}function Fd(){}function A4(n,t,e,r,o,i,a,s,l){var u=[],c=new Set;return t={destination:null,responseState:t,progressiveChunkSize:r===void 0?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?D4:o,onAllReady:i===void 0?Fd:i,onShellReady:a===void 0?Fd:a,onShellError:s===void 0?Fd:s,onFatalError:l===void 0?Fd:l},e=Tv(t,0,null,e,!1,!1),e.parentFlushed=!0,n=Y_(t,n,null,e,c,Qb,null,E4),u.push(n),t}function Y_(n,t,e,r,o,i,a,s){n.allPendingTasks++,e===null?n.pendingRootTasks++:e.pendingTasks++;var l={node:t,ping:function(){var u=n.pingedTasks;u.push(l),u.length===1&&iM(n)},blockedBoundary:e,blockedSegment:r,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(l),l}function Tv(n,t,e,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:e,lastPushedText:o,textEmbedded:i}}function Nd(n,t){if(n=n.onError(t),n!=null&&typeof n!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof n+'" instead');return n}function xv(n,t){var e=n.onShellError;e(t),e=n.onFatalError,e(t),n.destination!==null?(n.status=2,kb(n.destination,t)):(n.status=1,n.fatalError=t)}function Lb(n,t,e,r,o){for(bi={},q_=t,Md=0,n=e(r,o);Rv;)Rv=!1,Md=0,Lv+=1,Ke=null,n=e(r,o);return K_(),n}function Ib(n,t,e,r){var o=e.render(),i=r.childContextTypes;if(i!=null){var a=t.legacyContext;if(typeof e.getChildContext!="function")r=a;else{e=e.getChildContext();for(var s in e)if(!(s in i))throw Error(ve(108,k_(r)||"Unknown",s));r=bd({},a,e)}t.legacyContext=r,xn(n,t,o),t.legacyContext=a}else xn(n,t,o)}function Db(n,t){if(n&&n.defaultProps){t=bd({},t),n=n.defaultProps;for(var e in n)t[e]===void 0&&(t[e]=n[e]);return t}return t}function V_(n,t,e,r,o){if(typeof e=="function")if(e.prototype&&e.prototype.isReactComponent){o=_b(e,t.legacyContext);var i=e.contextType;i=new e(r,typeof i=="object"&&i!==null?i._currentValue:o),Rb(i,e,r,o),Ib(n,t,i,e)}else{i=_b(e,t.legacyContext),o=Lb(n,t,e,r,i);var a=Md!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)Rb(o,e,r,i),Ib(n,t,o,e);else if(a){r=t.treeContext,t.treeContext=H_(r,1,0);try{xn(n,t,o)}finally{t.treeContext=r}}else xn(n,t,o)}else if(typeof e=="string"){switch(o=t.blockedSegment,i=_K(o.chunks,e,r,n.responseState,o.formatContext),o.lastPushedText=!1,a=o.formatContext,o.formatContext=vK(a,e,r),B_(n,t,i),o.formatContext=a,e){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(EK,me(e),RK)}o.lastPushedText=!1}else{switch(e){case S4:case w4:case Ub:case jb:case Wb:xn(n,t,r.children);return;case Yb:xn(n,t,r.children);return;case C4:throw Error(ve(343));case Kb:e:{e=t.blockedBoundary,o=t.blockedSegment,i=r.fallback,r=r.children,a=new Set;var s={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null},l=Tv(n,o.chunks.length,s,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var u=Tv(n,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=s,t.blockedSegment=u;try{if(B_(n,t,r),u.lastPushedText&&u.textEmbedded&&u.chunks.push(j_),u.status=1,Pv(s,u),s.pendingTasks===0)break e}catch(c){u.status=4,s.forceClientRender=!0,s.errorDigest=Nd(n,c)}finally{t.blockedBoundary=e,t.blockedSegment=o}t=Y_(n,i,e,l,a,t.legacyContext,t.context,t.treeContext),n.pingedTasks.push(t)}return}if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $b:if(r=Lb(n,t,e.render,r,o),Md!==0){e=t.treeContext,t.treeContext=H_(e,1,0);try{xn(n,t,r)}finally{t.treeContext=e}}else xn(n,t,r);return;case Xb:e=e.type,r=Db(e,r),V_(n,t,e,r,o);return;case zb:if(o=r.children,e=e._context,r=r.value,i=e._currentValue,e._currentValue=r,a=Gs,Gs=r={parent:a,depth:a===null?0:a.depth+1,context:e,parentValue:i,value:r},t.context=r,xn(n,t,o),n=Gs,n===null)throw Error(ve(403));r=n.parentValue,n.context._currentValue=r===_4?n.context._defaultValue:r,n=Gs=n.parent,t.context=n;return;case qb:r=r.children,r=r(e._currentValue),xn(n,t,r);return;case z_:o=e._init,e=o(e._payload),r=Db(e,r),V_(n,t,e,r,void 0);return}throw Error(ve(130,e==null?e:typeof e,""))}}function xn(n,t,e){if(t.node=e,typeof e=="object"&&e!==null){switch(e.$$typeof){case y4:V_(n,t,e.type,e.props,e.ref);return;case Bb:throw Error(ve(257));case z_:var r=e._init;e=r(e._payload),xn(n,t,e);return}if(G_(e)){Ab(n,t,e);return}if(e===null||typeof e!="object"?r=null:(r=Sb&&e[Sb]||e["@@iterator"],r=typeof r=="function"?r:null),r&&(r=r.call(e))){if(e=r.next(),!e.done){var o=[];do o.push(e.value),e=r.next();while(!e.done);Ab(n,t,o)}return}throw n=Object.prototype.toString.call(e),Error(ve(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n))}typeof e=="string"?(r=t.blockedSegment,r.lastPushedText=hb(t.blockedSegment.chunks,e,n.responseState,r.lastPushedText)):typeof e=="number"&&(r=t.blockedSegment,r.lastPushedText=hb(t.blockedSegment.chunks,""+e,n.responseState,r.lastPushedText))}function Ab(n,t,e){for(var r=e.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=H_(i,r,o);try{B_(n,t,e[o])}finally{t.treeContext=i}}}function B_(n,t,e){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return xn(n,t,e)}catch(l){if(K_(),typeof l=="object"&&l!==null&&typeof l.then=="function"){e=l;var a=t.blockedSegment,s=Tv(n,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,n=Y_(n,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,e.then(n,n),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,Ev(i)}else throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,Ev(i),l}}function F4(n){var t=n.blockedBoundary;n=n.blockedSegment,n.status=3,oM(this,t,n)}function nM(n,t,e){var r=n.blockedBoundary;n.blockedSegment.status=3,r===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,n=e===void 0?Error(ve(432)):e,r.errorDigest=t.onError(n),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(o){return nM(o,t,e)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(r=t.onAllReady,r()))}function Pv(n,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var e=t.children[0];e.id=t.id,e.parentFlushed=!0,e.status===1&&Pv(n,e)}else n.completedSegments.push(t)}function oM(n,t,e){if(t===null){if(e.parentFlushed){if(n.completedRootSegment!==null)throw Error(ve(389));n.completedRootSegment=e}n.pendingRootTasks--,n.pendingRootTasks===0&&(n.onShellError=Fd,t=n.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(e.parentFlushed&&e.status===1&&Pv(t,e),t.parentFlushed&&n.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(F4,n),t.fallbackAbortableTasks.clear()):e.parentFlushed&&e.status===1&&(Pv(t,e),t.completedSegments.length===1&&t.parentFlushed&&n.partialBoundaries.push(t)));n.allPendingTasks--,n.allPendingTasks===0&&(n=n.onAllReady,n())}function iM(n){if(n.status!==2){var t=Gs,e=N_.current;N_.current=Ob;var r=_v;_v=n.responseState;try{var o=n.pingedTasks,i;for(i=0;i<o.length;i++){var a=o[i],s=n,l=a.blockedSegment;if(l.status===0){Ev(a.context);try{xn(s,a,a.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(j_),a.abortSet.delete(a),l.status=1,oM(s,a.blockedBoundary,l)}catch(h){if(K_(),typeof h=="object"&&h!==null&&typeof h.then=="function"){var u=a.ping;h.then(u,u)}else{a.abortSet.delete(a),l.status=4;var c=a.blockedBoundary,d=h,f=Nd(s,d);if(c===null?xv(s,d):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=f,c.parentFlushed&&s.clientRenderedBoundaries.push(c))),s.allPendingTasks--,s.allPendingTasks===0){var p=s.onAllReady;p()}}}finally{}}}o.splice(0,i),n.destination!==null&&X_(n,n.destination)}catch(h){Nd(n,h),xv(n,h)}finally{_v=r,N_.current=e,e===Ob&&Ev(t)}}}function mv(n,t,e){switch(e.parentFlushed=!0,e.status){case 0:var r=e.id=n.nextSegmentId++;return e.lastPushedText=!1,e.textEmbedded=!1,n=n.responseState,K(t,TK),K(t,n.placeholderPrefix),n=me(r.toString(16)),K(t,n),rt(t,xK);case 1:e.status=2;var o=!0;r=e.chunks;var i=0;e=e.children;for(var a=0;a<e.length;a++){for(o=e[a];i<o.index;i++)K(t,r[i]);o=Iv(n,t,o)}for(;i<r.length-1;i++)K(t,r[i]);return i<r.length&&(o=rt(t,r[i])),o;default:throw Error(ve(390))}}function Iv(n,t,e){var r=e.boundary;if(r===null)return mv(n,t,e);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,rt(t,IK),K(t,AK),r&&(K(t,bK),K(t,me(nr(r))),K(t,FK)),rt(t,MK),mv(n,t,e);else if(0<r.pendingTasks){r.rootSegmentID=n.nextSegmentId++,0<r.completedSegments.length&&n.partialBoundaries.push(r);var o=n.responseState,i=o.nextSuspenseID++;o=V(o.boundaryPrefix+i.toString(16)),r=r.id=o,wb(t,n.responseState,r),mv(n,t,e)}else if(r.byteSize>n.progressiveChunkSize)r.rootSegmentID=n.nextSegmentId++,n.completedBoundaries.push(r),wb(t,n.responseState,r.id),mv(n,t,e);else{if(rt(t,PK),e=r.completedSegments,e.length!==1)throw Error(ve(391));Iv(n,t,e[0])}return rt(t,DK)}function Fb(n,t,e){return n4(t,n.responseState,e.formatContext,e.id),Iv(n,t,e),o4(t,e.formatContext)}function bb(n,t,e){for(var r=e.completedSegments,o=0;o<r.length;o++)aM(n,t,e,r[o]);if(r.length=0,n=n.responseState,r=e.id,e=e.rootSegmentID,K(t,n.startInlineScript),n.sentCompleteBoundaryFunction?K(t,c4):(n.sentCompleteBoundaryFunction=!0,K(t,u4)),r===null)throw Error(ve(395));return e=me(e.toString(16)),K(t,r),K(t,d4),K(t,n.segmentPrefix),K(t,e),rt(t,f4)}function aM(n,t,e,r){if(r.status===2)return!0;var o=r.id;if(o===-1){if((r.id=e.rootSegmentID)===-1)throw Error(ve(392));return Fb(n,t,r)}return Fb(n,t,r),n=n.responseState,K(t,n.startInlineScript),n.sentCompleteSegmentFunction?K(t,a4):(n.sentCompleteSegmentFunction=!0,K(t,i4)),K(t,n.segmentPrefix),o=me(o.toString(16)),K(t,o),K(t,s4),K(t,n.placeholderPrefix),K(t,o),rt(t,l4)}function X_(n,t){Rn=new Uint8Array(512),Tn=0;try{var e=n.completedRootSegment;if(e!==null&&n.pendingRootTasks===0){Iv(n,t,e),n.completedRootSegment=null;var r=n.responseState.bootstrapChunks;for(e=0;e<r.length-1;e++)K(t,r[e]);e<r.length&&rt(t,r[e])}var o=n.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var a=o[i];r=t;var s=n.responseState,l=a.id,u=a.errorDigest,c=a.errorMessage,d=a.errorComponentStack;if(K(r,s.startInlineScript),s.sentClientRenderFunction?K(r,h4):(s.sentClientRenderFunction=!0,K(r,p4)),l===null)throw Error(ve(395));if(K(r,l),K(r,g4),(u||c||d)&&(K(r,b_),K(r,me(M_(u||"")))),(c||d)&&(K(r,b_),K(r,me(M_(c||"")))),d&&(K(r,b_),K(r,me(M_(d)))),!rt(r,v4)){n.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var f=n.completedBoundaries;for(i=0;i<f.length;i++)if(!bb(n,t,f[i])){n.destination=null,i++,f.splice(0,i);return}f.splice(0,i),cb(t),Rn=new Uint8Array(512),Tn=0;var p=n.partialBoundaries;for(i=0;i<p.length;i++){var h=p[i];e:{o=n,a=t;var v=h.completedSegments;for(s=0;s<v.length;s++)if(!aM(o,a,h,v[s])){s++,v.splice(0,s);var C=!1;break e}v.splice(0,s),C=!0}if(!C){n.destination=null,i++,p.splice(0,i);return}}p.splice(0,i);var m=n.completedBoundaries;for(i=0;i<m.length;i++)if(!bb(n,t,m[i])){n.destination=null,i++,m.splice(0,i);return}m.splice(0,i)}finally{cb(t),n.allPendingTasks===0&&n.pingedTasks.length===0&&n.clientRenderedBoundaries.length===0&&n.completedBoundaries.length===0&&t.close()}}function Mb(n,t){try{var e=n.abortableTasks;e.forEach(function(r){return nM(r,n,t)}),e.clear(),n.destination!==null&&X_(n,n.destination)}catch(r){Nd(n,r),xv(n,r)}}Q_.renderToReadableStream=function(n,t){return new Promise(function(e,r){var o,i,a=new Promise(function(c,d){i=c,o=d}),s=A4(n,hK(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),gK(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,function(){var c=new ReadableStream({type:"bytes",pull:function(d){if(s.status===1)s.status=2,kb(d,s.fatalError);else if(s.status!==2&&s.destination===null){s.destination=d;try{X_(s,d)}catch(f){Nd(s,f),xv(s,f)}}},cancel:function(){Mb(s)}},{highWaterMark:0});c.allReady=a,e(c)},function(c){a.catch(function(){}),r(c)},o);if(t&&t.signal){var l=t.signal,u=function(){Mb(s,l.reason),l.removeEventListener("abort",u)};l.addEventListener("abort",u)}iM(s)})};Q_.version="18.3.1"});var J_=z(ks=>{"use strict";var nu,lM;nu=ub(),lM=sM();ks.version=nu.version;ks.renderToString=nu.renderToString;ks.renderToStaticMarkup=nu.renderToStaticMarkup;ks.renderToNodeStream=nu.renderToNodeStream;ks.renderToStaticNodeStream=nu.renderToStaticNodeStream;ks.renderToReadableStream=lM.renderToReadableStream});var eE=z(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});var b4=0;function M4(){return"agPortalKey_"+ ++b4}Z_.default=M4});var cM=z(za=>{"use strict";var N4=za&&za.__extends||function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),G4=za&&za.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(za,"__esModule",{value:!0});za.LegacyReactComponent=void 0;var uM=te(),k4=Rl(),H4=Pt(),V4=h_(),B4=J_(),W4=G4(eE()),U4=function(n){N4(t,n);function t(e,r,o,i){var a=n.call(this,e,o,i)||this;return a.staticMarkup=null,a.staticRenderTime=0,a.parentComponent=r,a}return t.prototype.init=function(e){var r=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new H4.AgPromise(function(o){return r.createReactComponent(e,o)})},t.prototype.createReactComponent=function(e,r){var o=this;this.isStatelessComponent()||(e.ref=function(s){o.componentInstance=s,o.addParentContainerStyleAndClasses(),o.removeStaticMarkup()});var i=uM.createElement(this.reactComponent,e),a=k4.createPortal(i,this.eParentElement,W4.default());this.portal=a,this.portalManager.mountReactPortal(a,this,function(s){r(s),o.isStatelessComponent()&&(o.isSlowRenderer()&&o.removeStaticMarkup(),setTimeout(function(){o.removeStaticMarkup()}))})},t.prototype.fallbackMethodAvailable=function(e){return!1},t.prototype.fallbackMethod=function(e,r){},t.prototype.isSlowRenderer=function(){return this.staticRenderTime>=t.SLOW_RENDERING_THRESHOLD},t.prototype.isNullValue=function(){return this.staticMarkup===""},t.prototype.renderStaticMarkup=function(e){if(!(this.parentComponent.isDisableStaticMarkup()||!this.componentType.cellRenderer)){var r=console.error,o=uM.createElement(this.reactComponent,e);try{console.error=function(){};var i=Date.now(),a=B4.renderToStaticMarkup(o);this.staticRenderTime=Date.now()-i,console.error=r,a===""?this.staticMarkup=a:a&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=a,this.eParentElement.appendChild(this.staticMarkup))}catch{}finally{console.error=r}}},t.prototype.removeStaticMarkup=function(){this.parentComponent.isDisableStaticMarkup()||!this.componentType.cellRenderer||this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},t.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())},t.SLOW_RENDERING_THRESHOLD=3,t}(V4.ReactComponent);za.LegacyReactComponent=U4});var tE=z(ui=>{"use strict";var j4=ui&&ui.__extends||function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Dv=ui&&ui.__assign||function(){return Dv=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Dv.apply(this,arguments)},z4=ui&&ui.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ui,"__esModule",{value:!0});ui.NewReactComponent=void 0;var dM=te(),q4=Rl(),$4=Pt(),K4=h_(),Y4=J_(),fM=z4(eE()),X4=function(n){j4(t,n);function t(e,r,o){var i=n.call(this,e,r,o)||this;return i.oldPortal=null,i.key=fM.default(),i.portalKey=fM.default(),i}return t.prototype.init=function(e){var r=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new $4.AgPromise(function(o){return r.createReactComponent(o)})},t.prototype.createOrUpdatePortal=function(e){var r=this;this.isStatelessComponent()||(e.ref=function(o){r.componentInstance=o,r.addParentContainerStyleAndClasses()}),this.reactElement=dM.createElement(this.reactComponent,Dv(Dv({},e),{key:this.key})),this.portal=q4.createPortal(this.reactElement,this.eParentElement,this.portalKey)},t.prototype.createReactComponent=function(e){this.portalManager.mountReactPortal(this.portal,this,function(r){e(r)})},t.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},t.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())},t.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var r=console.error;try{console.error=function(){};var o=Y4.renderToStaticMarkup(dM.createElement(this.reactComponent,e));return o===""}catch{}finally{console.error=r}return!1},t.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},t.prototype.fallbackMethod=function(e,r){var o=this[e+"Component"];if(o)return o.bind(this)(r)},t.prototype.fallbackMethodAvailable=function(e){var r=this[e+"Component"];return!!r},t}(K4.ReactComponent);ui.NewReactComponent=X4});var rE=z(qa=>{"use strict";var Av=qa&&qa.__spreadArray||function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n};Object.defineProperty(qa,"__esModule",{value:!0});qa.PortalManager=qa.LegacyPortalManager=void 0;var Q4=function(){function n(t,e,r){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=e||"div",this.parent=t,this.maxComponentCreationTimeMs=r||n.MAX_COMPONENT_CREATION_TIME_IN_MS}return n.prototype.getPortals=function(){return this.portals},n.prototype.destroy=function(){this.destroyed=!0},n.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},n.prototype.getComponentWrappingElement=function(){return this.wrappingElement},n.prototype.mountReactPortal=function(t,e,r){this.portals=Av(Av([],this.portals),[t]),this.waitForInstance(e,r),this.batchUpdate()},n.prototype.updateReactPortal=function(t,e){this.portals[this.portals.indexOf(t)]=e,this.batchUpdate()},n.prototype.batchUpdate=function(){var t=this;this.hasPendingPortalUpdate||(setTimeout(function(){t.destroyed||t.parent.forceUpdate(function(){t.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},n.prototype.waitForInstance=function(t,e,r){var o=this;if(r===void 0&&(r=Date.now()),this.destroyed){e(null);return}if(t.rendered())e(t);else{if(Date.now()-r>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){if(t.isNullValue()){e(t);return}console.error("AG Grid: React Component '"+t.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");return}window.setTimeout(function(){o.waitForInstance(t,e,r)})}},n.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,n}();qa.LegacyPortalManager=Q4;var J4=function(){function n(t,e,r){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=e||"div",this.refresher=t,this.maxComponentCreationTimeMs=r||n.MAX_COMPONENT_CREATION_TIME_IN_MS}return n.prototype.getPortals=function(){return this.portals},n.prototype.destroy=function(){this.destroyed=!0},n.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},n.prototype.getComponentWrappingElement=function(){return this.wrappingElement},n.prototype.mountReactPortal=function(t,e,r){this.portals=Av(Av([],this.portals),[t]),this.waitForInstance(e,r),this.batchUpdate()},n.prototype.updateReactPortal=function(t,e){this.portals[this.portals.indexOf(t)]=e,this.batchUpdate()},n.prototype.batchUpdate=function(){var t=this;this.hasPendingPortalUpdate||(setTimeout(function(){t.destroyed||(t.refresher(),t.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)},n.prototype.waitForInstance=function(t,e,r){var o=this;if(r===void 0&&(r=Date.now()),this.destroyed){e(null);return}if(t.rendered())e(t);else{if(Date.now()-r>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){if(t.isNullValue()){e(t);return}console.error("AG Grid: React Component '"+t.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");return}window.setTimeout(function(){o.waitForInstance(t,e,r)})}},n.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,n}();qa.PortalManager=J4});var mr=z(ou=>{"use strict";var Z4=ou&&ou.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ou,"__esModule",{value:!0});ou.BeansContext=void 0;var eY=Z4(te());ou.BeansContext=eY.default.createContext({})});var Hs=z(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.createSyncJsComp=iu.showJsComp=void 0;var tY=function(n,t,e,r){var o=!n||n.componentFromFramework||t.isDestroyed();if(!o){var i=n.newAgStackInstance();if(i){var a,s,l=!1;return i.then(function(u){if(l){t.destroyBean(u);return}a=u,s=a.getGui(),e.appendChild(s),pM(r,a)}),function(){l=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r&&pM(r,void 0))}}}};iu.showJsComp=tY;var pM=function(n,t){if(n)if(n instanceof Function){var e=n;e(t)}else{var r=n;r.current=t}},rY=function(n){var t=n.newAgStackInstance();if(t)return t.resolveNow(null,function(e){return e})};iu.createSyncJsComp=rY});var Pn=z(Ut=>{"use strict";var nE=Ut&&Ut.__assign||function(){return nE=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},nE.apply(this,arguments)},hM=Ut&&Ut.__spreadArray||function(n,t){for(var e=0,r=t.length,o=n.length;e<r;e++,o++)n[o]=t[e];return n},nY=Ut&&Ut.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getNextValueIfDifferent=Ut.agFlushSync=Ut.isComponentStateless=Ut.CssClasses=Ut.classesList=void 0;var oE=nY(Rl()),oY=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=n.filter(function(r){return r!=null&&r!==""});return e.join(" ")};Ut.classesList=oY;var iY=function(){function n(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.classesMap={},e.forEach(function(o){t.classesMap[o]=!0})}return n.prototype.setClass=function(t,e){var r=!!this.classesMap[t]==e;if(r)return this;var o=new n;return o.classesMap=nE({},this.classesMap),o.classesMap[t]=e,o},n.prototype.toString=function(){var t=this,e=Object.keys(this.classesMap).filter(function(r){return t.classesMap[r]}).join(" ");return e},n}();Ut.CssClasses=iY;var aY=function(n){var t=function(){return typeof Symbol=="function"&&Symbol.for},e=function(){return t()?Symbol.for("react.memo"):60115};return typeof n=="function"&&!(n.prototype&&n.prototype.isReactComponent)||typeof n=="object"&&n.$$typeof===e()};Ut.isComponentStateless=aY;var sY=oE.default.createRoot!=null&&oE.default.flushSync!=null,lY=function(n,t){sY&&n?oE.default.flushSync(t):t()};Ut.agFlushSync=lY;function uY(n,t,e){if(t==null||n==null)return t;if(n===t||t.length===0&&n.length===0)return n;if(e||n.length===0&&t.length>0||n.length>0&&t.length===0)return t;for(var r=[],o=[],i=new Map,a=new Map,s=0;s<t.length;s++){var l=t[s];a.set(l.getInstanceId(),l)}for(var s=0;s<n.length;s++){var l=n[s];i.set(l.getInstanceId(),l),a.has(l.getInstanceId())&&r.push(l)}for(var s=0;s<t.length;s++){var l=t[s],u=l.getInstanceId();i.has(u)||o.push(l)}return r.length===n.length&&o.length===0?n:r.length===0&&o.length===t.length?t:hM(hM([],r),o)}Ut.getNextValueIfDifferent=uY});var mM=z(Ro=>{"use strict";var bv=Ro&&Ro.__assign||function(){return bv=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},bv.apply(this,arguments)},cY=Ro&&Ro.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),dY=Ro&&Ro.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),fY=Ro&&Ro.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&cY(t,n,e);return dY(t,n),t};Object.defineProperty(Ro,"__esModule",{value:!0});var gM=Pt(),be=fY(te()),pY=mr(),hY=Hs(),Fv=Pn(),vM=be.forwardRef(function(n,t){var e=be.useContext(pY.BeansContext).context,r=be.useRef(null),o=be.useRef(null),i=be.useRef(null),a=be.useRef(null),s=be.useRef(null),l=be.useRef(),u=be.useState(),c=u[0],d=u[1],f=be.useState(),p=f[0],h=f[1],v=be.useState(),C=v[0],m=v[1],y=be.useState(function(){return new Fv.CssClasses}),S=y[0],E=y[1],R=be.useState(function(){return new Fv.CssClasses("ag-hidden")}),x=R[0],P=R[1],T=be.useState(function(){return new Fv.CssClasses("ag-hidden")}),L=T[0],I=T[1],b=be.useState(function(){return new Fv.CssClasses("ag-invisible")}),W=b[0],Y=b[1];be.useImperativeHandle(t,function(){return{refresh:function(){return!1}}}),be.useLayoutEffect(function(){return hY.showJsComp(c,e,o.current)},[c]);var ue=be.useCallback(function(mt){if(r.current=mt,!r.current){e.destroyBean(l.current),l.current=null;return}var lt={setInnerRenderer:function(Se,ot){d(Se),m(ot)},setChildCount:function(Se){return h(Se)},addOrRemoveCssClass:function(Se,ot){return E(function(sr){return sr.setClass(Se,ot)})},setContractedDisplayed:function(Se){return I(function(ot){return ot.setClass("ag-hidden",!Se)})},setExpandedDisplayed:function(Se){return P(function(ot){return ot.setClass("ag-hidden",!Se)})},setCheckboxVisible:function(Se){return Y(function(ot){return ot.setClass("ag-invisible",!Se)})}};l.current=e.createBean(new gM.GroupCellRendererCtrl),l.current.init(lt,r.current,i.current,a.current,s.current,vM,n)},[]),ee=be.useMemo(function(){return"ag-cell-wrapper "+S.toString()},[S]),oe=be.useMemo(function(){return"ag-group-expanded "+x.toString()},[x]),U=be.useMemo(function(){return"ag-group-contracted "+L.toString()},[L]),$=be.useMemo(function(){return"ag-group-checkbox "+W.toString()},[W]),ne=c&&c.componentFromFramework,Me=ne?c.componentClass:void 0,Ve=c==null&&C!=null,De=gM._.escapeString(C,!0);return be.default.createElement("span",bv({className:ee,ref:ue},n.colDef?{}:{role:"gridcell"}),be.default.createElement("span",{className:oe,ref:a}),be.default.createElement("span",{className:U,ref:s}),be.default.createElement("span",{className:$,ref:i}),be.default.createElement("span",{className:"ag-group-value",ref:o},Ve&&be.default.createElement(be.default.Fragment,null,De),ne&&be.default.createElement(Me,bv({},c.params))),be.default.createElement("span",{className:"ag-group-child-count"},p))});Ro.default=vM});var yM=z(To=>{"use strict";var Nv=To&&To.__assign||function(){return Nv=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Nv.apply(this,arguments)},gY=To&&To.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),vY=To&&To.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),mY=To&&To.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&gY(t,n,e);return vY(t,n),t};Object.defineProperty(To,"__esModule",{value:!0});var ir=mY(te()),yY=mr(),Mv=Pt(),CY=Pn(),wY=Hs(),SY=function(n){var t=n.ctrl,e=ir.useContext(yY.BeansContext).context,r=t.getColId(),o=ir.useState(),i=o[0],a=o[1],s=ir.useRef(null),l=ir.useRef(null),u=ir.useRef(null),c=ir.useRef(),d=ir.useRef();d.current||(d.current=new Mv.CssClassManager(function(){return s.current}));var f=ir.useCallback(function(C){var m;if(s.current=C,!!s.current){var y={setWidth:function(E){s.current&&(s.current.style.width=E)},addOrRemoveCssClass:function(E,R){return d.current.addOrRemoveCssClass(E,R)},setAriaDescription:function(E){s.current&&Mv._.setAriaDescription(s.current,E)},setAriaSort:function(E){s.current&&(E?Mv._.setAriaSort(s.current,E):Mv._.removeAriaSort(s.current))},setUserCompDetails:function(E){return a(E)},getUserCompInstance:function(){return c.current||void 0}};t.setComp(y,s.current,l.current,u.current);var S=t.getSelectAllGui();(m=l.current)===null||m===void 0||m.insertAdjacentElement("afterend",S)}},[]);ir.useLayoutEffect(function(){return wY.showJsComp(i,e,u.current,c)},[i]),ir.useEffect(function(){t.setDragSource(s.current)},[i]);var p=ir.useMemo(function(){var C=i?.componentFromFramework&&CY.isComponentStateless(i.componentClass);return!!C},[i]),h=i&&i.componentFromFramework,v=i&&i.componentClass;return ir.default.createElement("div",{ref:f,className:"ag-header-cell","col-id":r,role:"columnheader",tabIndex:-1},ir.default.createElement("div",{ref:l,className:"ag-header-cell-resize",role:"presentation"}),ir.default.createElement("div",{ref:u,className:"ag-header-cell-comp-wrapper",role:"presentation"},h&&p&&ir.default.createElement(v,Nv({},i.params)),h&&!p&&ir.default.createElement(v,Nv({},i.params,{ref:c}))))};To.default=ir.memo(SY)});var wM=z(xo=>{"use strict";var iE=xo&&xo.__assign||function(){return iE=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},iE.apply(this,arguments)},_Y=xo&&xo.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),EY=xo&&xo.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),RY=xo&&xo.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&_Y(t,n,e);return EY(t,n),t};Object.defineProperty(xo,"__esModule",{value:!0});var jt=RY(te()),TY=mr(),xY=Hs(),CM=Pn(),PY=function(n){var t=jt.useContext(TY.BeansContext).context,e=n.ctrl,r=jt.useState(function(){return new CM.CssClasses}),o=r[0],i=r[1],a=jt.useState(function(){return new CM.CssClasses}),s=a[0],l=a[1],u=jt.useState("false"),c=u[0],d=u[1],f=jt.useState(),p=f[0],h=f[1],v=jt.useState(),C=v[0],m=v[1],y=jt.useMemo(function(){return e.getColId()},[]),S=jt.useRef(null),E=jt.useRef(null),R=jt.useCallback(function(I){if(S.current=I,!!S.current){var b={setWidth:function(W){S.current&&(S.current.style.width=W)},addOrRemoveCssClass:function(W,Y){return i(function(ue){return ue.setClass(W,Y)})},setUserCompDetails:function(W){return m(W)},setResizableDisplayed:function(W){l(function(Y){return Y.setClass("ag-hidden",!W)}),d(W?"false":"true")},setAriaExpanded:function(W){return h(W)}};e.setComp(b,S.current,E.current)}},[]);jt.useLayoutEffect(function(){return xY.showJsComp(C,t,S.current)},[C]),jt.useEffect(function(){S.current&&e.setDragSource(S.current)},[C]);var x=jt.useMemo(function(){return"ag-header-group-cell "+o.toString()},[o]),P=jt.useMemo(function(){return"ag-header-cell-resize "+s.toString()},[s]),T=C&&C.componentFromFramework,L=C&&C.componentClass;return jt.default.createElement("div",{ref:R,className:x,"col-id":y,role:"columnheader",tabIndex:-1,"aria-expanded":p},T&&jt.default.createElement(L,iE({},C.params)),jt.default.createElement("div",{ref:E,"aria-hidden":c,className:P}))};xo.default=jt.memo(PY)});var SM=z(Po=>{"use strict";var kv=Po&&Po.__assign||function(){return kv=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},kv.apply(this,arguments)},OY=Po&&Po.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),LY=Po&&Po.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),IY=Po&&Po.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&OY(t,n,e);return LY(t,n),t};Object.defineProperty(Po,"__esModule",{value:!0});var nt=IY(te()),DY=mr(),AY=Pt(),Gv=Pn(),FY=Hs(),bY=function(n){var t=nt.useContext(DY.BeansContext).context,e=nt.useState(function(){return new Gv.CssClasses("ag-header-cell","ag-floating-filter")}),r=e[0],o=e[1],i=nt.useState(function(){return new Gv.CssClasses}),a=i[0],s=i[1],l=nt.useState(function(){return new Gv.CssClasses("ag-floating-filter-button","ag-hidden")}),u=l[0],c=l[1],d=nt.useState("false"),f=d[0],p=d[1],h=nt.useState(),v=h[0],C=h[1],m=nt.useRef(null),y=nt.useRef(null),S=nt.useRef(null),E=nt.useRef(null),R=nt.useRef(),x=nt.useRef(),P=function(oe){oe!=null&&R.current&&R.current(oe)},T=n.ctrl,L=nt.useCallback(function(oe){if(m.current=oe,!!m.current){x.current=new AY.AgPromise(function($){R.current=$});var U={addOrRemoveCssClass:function($,ne){return o(function(Me){return Me.setClass($,ne)})},addOrRemoveBodyCssClass:function($,ne){return s(function(Me){return Me.setClass($,ne)})},setButtonWrapperDisplayed:function($){c(function(ne){return ne.setClass("ag-hidden",!$)}),p($?"false":"true")},setWidth:function($){m.current&&(m.current.style.width=$)},setCompDetails:function($){return C($)},getFloatingFilterComp:function(){return x.current?x.current:null},setMenuIcon:function($){var ne;return(ne=E.current)===null||ne===void 0?void 0:ne.appendChild($)}};T.setComp(U,m.current,E.current,y.current)}},[]);nt.useLayoutEffect(function(){return FY.showJsComp(v,t,y.current,P)},[v]);var I=nt.useMemo(function(){return r.toString()},[r]),b=nt.useMemo(function(){return a.toString()},[a]),W=nt.useMemo(function(){return u.toString()},[u]),Y=nt.useMemo(function(){var oe=v&&v.componentFromFramework&&Gv.isComponentStateless(v.componentClass);return!!oe},[v]),ue=v&&v.componentFromFramework,ee=v&&v.componentClass;return nt.default.createElement("div",{ref:L,className:I,role:"gridcell",tabIndex:-1},nt.default.createElement("div",{ref:y,className:b,role:"presentation"},ue&&Y&&nt.default.createElement(ee,kv({},v.params)),ue&&!Y&&nt.default.createElement(ee,kv({},v.params,{ref:P}))),nt.default.createElement("div",{ref:S,"aria-hidden":f,className:W,role:"presentation"},nt.default.createElement("button",{ref:E,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))};Po.default=nt.memo(bY)});var RM=z(Oo=>{"use strict";var MY=Oo&&Oo.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),NY=Oo&&Oo.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),GY=Oo&&Oo.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&MY(t,n,e);return NY(t,n),t},aE=Oo&&Oo.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Oo,"__esModule",{value:!0});var _M=Pt(),rn=GY(te()),kY=aE(yM()),HY=aE(wM()),VY=aE(SM()),EM=Pn(),BY=function(n){var t=n.ctrl,e=rn.useMemo(function(){return t.getTopAndHeight()},[]),r=e.topOffset,o=e.rowHeight,i=t.getAriaRowIndex(),a=t.getHeaderRowClass(),s=rn.useMemo(function(){return t.getTransform()},[]),l=rn.useState(function(){return o+"px"}),u=l[0],c=l[1],d=rn.useState(function(){return r+"px"}),f=d[0],p=d[1],h=rn.useState(function(){return t.getHeaderCtrls()}),v=h[0],C=h[1],m=rn.useRef(null),y=rn.useCallback(function(R){if(m.current=R,!!R){var x={setHeight:function(P){return c(P)},setTop:function(P){return p(P)},setHeaderCtrls:function(P,T,L){EM.agFlushSync(L,function(){C(function(I){return EM.getNextValueIfDifferent(I,P,T)})})},setWidth:function(P){m.current&&(m.current.style.width=P)}};t.setComp(x,!1)}},[]),S=rn.useMemo(function(){return{transform:s,height:u,top:f}},[s,u,f]),E=rn.useCallback(function(R){switch(t.getType()){case _M.HeaderRowType.COLUMN_GROUP:return rn.default.createElement(HY.default,{ctrl:R,key:R.getInstanceId()});case _M.HeaderRowType.FLOATING_FILTER:return rn.default.createElement(VY.default,{ctrl:R,key:R.getInstanceId()});default:return rn.default.createElement(kY.default,{ctrl:R,key:R.getInstanceId()})}},[]);return rn.default.createElement("div",{ref:y,className:a,role:"row",style:S,"aria-rowindex":i},v.map(E))};Oo.default=rn.memo(BY)});var TM=z(Lo=>{"use strict";var WY=Lo&&Lo.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),UY=Lo&&Lo.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),jY=Lo&&Lo.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&WY(t,n,e);return UY(t,n),t},zY=Lo&&Lo.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Lo,"__esModule",{value:!0});var Mr=jY(te()),qY=mr(),$Y=Pt(),KY=zY(RM()),YY=function(n){var t=Mr.useState(!0),e=t[0],r=t[1],o=Mr.useState([]),i=o[0],a=o[1],s=Mr.useContext(qY.BeansContext).context,l=Mr.useRef(null),u=Mr.useRef(null),c=Mr.useRef(null),d=n.pinned==="left",f=n.pinned==="right",p=!d&&!f,h=Mr.useCallback(function(m){if(l.current=m,!l.current){s.destroyBean(c.current),c.current=null;return}var y={setDisplayed:r,setCtrls:function(S){return a(S)},setCenterWidth:function(S){u.current&&(u.current.style.width=S)},setViewportScrollLeft:function(S){l.current&&(l.current.scrollLeft=S)},setPinnedContainerWidth:function(S){l.current&&(l.current.style.width=S,l.current.style.minWidth=S,l.current.style.maxWidth=S)}};c.current=s.createBean(new $Y.HeaderRowContainerCtrl(n.pinned)),c.current.setComp(y,l.current)},[]),v=e?"":"ag-hidden",C=function(){return i.map(function(m){return Mr.default.createElement(KY.default,{ctrl:m,key:m.getInstanceId()})})};return Mr.default.createElement(Mr.default.Fragment,null,d&&Mr.default.createElement("div",{ref:h,className:"ag-pinned-left-header "+v,"aria-hidden":!e,role:"presentation"},C()),f&&Mr.default.createElement("div",{ref:h,className:"ag-pinned-right-header "+v,"aria-hidden":!e,role:"presentation"},C()),p&&Mr.default.createElement("div",{ref:h,className:"ag-header-viewport "+v,role:"presentation"},Mr.default.createElement("div",{ref:u,className:"ag-header-container",role:"rowgroup"},C())))};Lo.default=Mr.memo(YY)});var xM=z(Io=>{"use strict";var XY=Io&&Io.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),QY=Io&&Io.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),JY=Io&&Io.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&XY(t,n,e);return QY(t,n),t},ZY=Io&&Io.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Io,"__esModule",{value:!0});var On=JY(te()),e6=mr(),t6=Pt(),r6=Pn(),sE=ZY(TM()),n6=function(){var n=On.useState(function(){return new r6.CssClasses}),t=n[0],e=n[1],r=On.useState(),o=r[0],i=r[1],a=On.useContext(e6.BeansContext).context,s=On.useRef(null),l=On.useRef(null),u=On.useCallback(function(f){if(s.current=f,!f){a.destroyBean(l.current),l.current=null;return}var p={addOrRemoveCssClass:function(h,v){return e(function(C){return C.setClass(h,v)})},setHeightAndMinHeight:function(h){return i(h)}};l.current=a.createBean(new t6.GridHeaderCtrl),l.current.setComp(p,s.current,s.current)},[]),c=On.useMemo(function(){var f=t.toString();return"ag-header "+f},[t]),d=On.useMemo(function(){return{height:o,minHeight:o}},[o]);return On.default.createElement("div",{ref:u,className:c,style:d,role:"presentation"},On.default.createElement(sE.default,{pinned:"left"}),On.default.createElement(sE.default,{pinned:null}),On.default.createElement(sE.default,{pinned:"right"}))};Io.default=On.memo(n6)});var Hv=z(lE=>{"use strict";Object.defineProperty(lE,"__esModule",{value:!0});var o6=te(),i6=function(n,t){o6.useEffect(function(){var e=t.current;if(e){var r=e.parentElement;if(r){var o=document.createComment(n);return r.insertBefore(o,e),function(){r.removeChild(o)}}}},[n])};lE.default=i6});var PM=z(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});Vv.useEffectOnce=void 0;var au=te(),a6=function(n){var t=au.useRef(n),e=au.useRef(),r=au.useRef(!1),o=au.useRef(!1),i=au.useState(0),a=i[1];r.current&&(o.current=!0),au.useEffect(function(){return r.current||(e.current=t.current(),r.current=!0),a(function(s){return s+1}),function(){o.current&&e.current&&e.current()}},[])};Vv.useEffectOnce=a6});var OM=z(Mi=>{"use strict";var s6=Mi&&Mi.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),l6=Mi&&Mi.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u6=Mi&&Mi.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&s6(t,n,e);return l6(t,n),t};Object.defineProperty(Mi,"__esModule",{value:!0});var c6=Pt(),Gd=u6(te()),d6=Rl(),f6=mr(),p6=PM(),h6=function(n){var t=Gd.useState(),e=t[0],r=t[1],o=Gd.useContext(f6.BeansContext),i=o.context,a=o.popupService,s=o.localeService,l=o.gridOptionsService;return p6.useEffectOnce(function(){var u=n.editDetails,c=n.cellCtrl,d=n.eParentCell,f=u.compDetails,p=l.is("stopEditingWhenCellsLoseFocus"),h=i.createBean(new c6.PopupEditorWrapper(f.params)),v=h.getGui();if(n.jsChildComp){var C=n.jsChildComp.getGui();C&&v.appendChild(C)}var m={column:c.getColumn(),rowNode:c.getRowNode(),type:"popupCellEditor",eventSource:d,ePopup:v,position:u.popupPosition,keepWithinBounds:!0},y=a.positionPopupByComponent.bind(a,m),S=s.getLocaleTextFunc(),E=a.addPopup({modal:p,eChild:v,closeOnEsc:!0,closedCallback:function(){c.onPopupEditorClosed()},anchorToElement:d,positionCallback:y,ariaLabel:S("ariaLabelCellEditor","Cell Editor")}),R=E?E.hideFunc:void 0;return r(h),n.jsChildComp&&n.jsChildComp.afterGuiAttached&&n.jsChildComp.afterGuiAttached(),function(){R?.(),i.destroyBean(h)}}),Gd.default.createElement(Gd.default.Fragment,null,e&&n.wrappedContent&&d6.createPortal(n.wrappedContent,e.getGui()))};Mi.default=Gd.memo(h6)});var LM=z(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});var Bv=te(),g6=mr(),v6=function(n,t,e,r,o,i){var a=Bv.useContext(g6.BeansContext).context,s=Bv.useCallback(function(){var l=o.current;if(l){var u=l.getGui();u&&u.parentElement&&u.parentElement.removeChild(u),a.destroyBean(l),o.current=void 0}},[]);Bv.useEffect(function(){var l=n!=null,u=n&&n.compDetails&&!n.compDetails.componentFromFramework,c=t&&e==null,d=l&&u&&!c;if(!d){s();return}var f=n.compDetails;if(o.current){var p=o.current,h=p.refresh!=null&&n.force==!1,v=h?p.refresh(f.params):!1,C=v===!0||v===void 0;if(C)return;s()}var m=f.newAgStackInstance();if(m){var y=m.resolveNow(null,function(R){return R});if(y){var S=y.getGui();if(S){var E=t?e:i.current;E.appendChild(S),o.current=y}}}},[n,t,r]),Bv.useEffect(function(){return s},[])};uE.default=v6});var AM=z(yr=>{"use strict";var su=yr&&yr.__assign||function(){return su=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},su.apply(this,arguments)},m6=yr&&yr.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),y6=yr&&yr.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),C6=yr&&yr.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&m6(t,n,e);return y6(t,n),t},DM=yr&&yr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(yr,"__esModule",{value:!0});yr.CellCompState=void 0;var Wv=Pt(),re=C6(te()),w6=Pn(),IM=DM(OM()),S6=DM(LM()),_6=mr(),E6=Hs(),R6;(function(n){n[n.ShowValue=0]="ShowValue",n[n.EditValue=1]="EditValue"})(R6=yr.CellCompState||(yr.CellCompState={}));var T6=function(n,t,e){var r=e.getColumn();if(!n&&t.isPopup&&t.isPopup()){var o="AG Grid: Found an issue in column "+r.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.";Wv._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+e.getColumn().getColId())}if(n&&t.getPopupPosition&&t.getPopupPosition()!=null){var i="AG Grid: Found an issue in column "+r.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.";Wv._.doOnce(function(){return console.warn(i)},"jsEditorComp-getPopupPosition-"+e.getColumn().getColId())}},x6=function(n,t,e,r,o,i){var a=n.compDetails,s=a.componentClass,l=a.componentFromFramework&&!n.popup,u=a.componentFromFramework&&n.popup,c=!a.componentFromFramework&&n.popup;return re.default.createElement(re.default.Fragment,null,l&&re.default.createElement(s,su({},n.compDetails.params,{ref:t})),u&&re.default.createElement(IM.default,{editDetails:n,cellCtrl:o,eParentCell:r,wrappedContent:re.default.createElement(s,su({},n.compDetails.params,{ref:e}))}),c&&i&&re.default.createElement(IM.default,{editDetails:n,cellCtrl:o,eParentCell:r,jsChildComp:i}))},P6=function(n,t,e,r,o,i,a){var s=n.compDetails,l=n.value,u=!s,c=s&&s.componentFromFramework,d=s&&s.componentClass,f=l?.toString?l.toString():l,p=function(){return re.default.createElement(re.default.Fragment,null,u&&re.default.createElement(re.default.Fragment,null,f),c&&!i&&re.default.createElement(d,su({},s.params,{key:t,ref:r})),c&&i&&re.default.createElement(d,su({},s.params,{key:t})))};return re.default.createElement(re.default.Fragment,null,o?re.default.createElement("span",{role:"presentation",id:"cell-"+e,className:"ag-cell-value",ref:a},p()):p())},O6=function(n){var t=re.useContext(_6.BeansContext).context,e=n.cellCtrl,r=n.printLayout,o=n.editingRow,i=e.getTabIndex(),a=e.getColumnIdSanitised(),s=e.getInstanceId(),l=re.useState(function(){return e.getIsCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}}),u=l[0],c=l[1],d=re.useState(),f=d[0],p=d[1],h=re.useState(1),v=h[0],C=h[1],m=re.useState(),y=m[0],S=m[1],E=re.useState(!1),R=E[0],x=E[1],P=re.useState(!1),T=P[0],L=P[1],I=re.useState(!1),b=I[0],W=I[1],Y=re.useState(),ue=Y[0],ee=Y[1],oe=re.useMemo(function(){return e.isForceWrapper()},[e]),U=re.useRef(null),$=re.useRef(null),ne=re.useRef(),Me=re.useRef(),Ve=re.useRef(),De=re.useRef([]),mt=re.useRef(),lt=re.useState(0),Se=lt[0],ot=lt[1],sr=re.useCallback(function(Xe){mt.current=Xe,ot(function(Ct){return Ct+1})},[]),Gr=u!=null&&(R||b||T),yt=oe||Gr,Le=re.useCallback(function(Xe,Ct){if(Me.current=Ct,Ct){T6(Xe,Ct,e);var on=Ct.isCancelBeforeStart&&Ct.isCancelBeforeStart();on&&setTimeout(function(){e.stopEditing(!0),e.focusCell(!0)})}},[e]),kr=re.useCallback(function(Xe){return Le(!0,Xe)},[Le]),Ae=re.useCallback(function(Xe){return Le(!1,Xe)},[Le]),lr=re.useRef();lr.current||(lr.current=new Wv.CssClassManager(function(){return U.current})),S6.default(u,yt,mt.current,Se,ne,U);var ci=re.useRef();re.useLayoutEffect(function(){var Xe=ci.current,Ct=u;if(ci.current=u,!(Xe==null||Xe.compDetails==null||Ct==null||Ct.compDetails==null)){var on=Xe.compDetails,Ee=Ct.compDetails;if(on.componentClass==Ee.componentClass&&!($.current==null||$.current.refresh==null)){var wt=$.current.refresh(Ee.params);wt!=!0&&C(function(Nt){return Nt+1})}}},[u]),re.useLayoutEffect(function(){var Xe=f&&!f.compDetails.componentFromFramework;if(Xe){var Ct=f.compDetails,on=f.popup===!0,Ee=E6.createSyncJsComp(Ct);if(Ee){var wt=Ee.getGui();if(Le(on,Ee),!on){var Nt=(oe?Ve:U).current;Nt?.appendChild(wt),Ee.afterGuiAttached&&Ee.afterGuiAttached()}return ee(Ee),function(){t.destroyBean(Ee),Le(on,void 0),ee(void 0),wt&&wt.parentElement&&wt.parentElement.removeChild(wt)}}}},[f]);var Us=re.useCallback(function(Xe){if(Ve.current=Xe,!Ve.current){De.current.forEach(function(Ee){return Ee()}),De.current=[];return}var Ct=function(Ee){var wt;if(Ee){var Nt=Ee.getGui();(wt=Ve.current)===null||wt===void 0||wt.insertAdjacentElement("afterbegin",Nt),De.current.push(function(){t.destroyBean(Ee),Wv._.removeFromParent(Nt)})}return Ee};if(R){var on=e.createSelectionCheckbox();Ct(on)}b&&Ct(e.createDndSource()),T&&Ct(e.createRowDragComp())},[e,t,b,T,R]),js=re.useCallback(function(Xe){if(U.current=Xe,!!U.current&&e){var Ct={addOrRemoveCssClass:function(Ee,wt){return lr.current.addOrRemoveCssClass(Ee,wt)},setUserStyles:function(Ee){return S(Ee)},getFocusableElement:function(){return U.current},setIncludeSelection:function(Ee){return x(Ee)},setIncludeRowDrag:function(Ee){return L(Ee)},setIncludeDndSource:function(Ee){return W(Ee)},getCellEditor:function(){return Me.current||null},getCellRenderer:function(){return $.current?$.current:ne.current},getParentOfValue:function(){return mt.current?mt.current:Ve.current?Ve.current:U.current},setRenderDetails:function(Ee,wt,Nt){c(function(Et){return Et?.compDetails!==Ee||Et?.value!==wt||Et?.force!==Nt?{value:wt,compDetails:Ee,force:Nt}:Et})},setEditDetails:function(Ee,wt,Nt){Ee?(p({compDetails:Ee,popup:wt,popupPosition:Nt}),wt||c(void 0)):p(void 0)}},on=Ve.current||void 0;e.setComp(Ct,U.current,on,r,o)}},[]),zs=re.useMemo(function(){var Xe=u&&u.compDetails&&u.compDetails.componentFromFramework&&w6.isComponentStateless(u.compDetails.componentClass);return!!Xe},[u]);re.useLayoutEffect(function(){var Xe;U.current&&(lr.current.addOrRemoveCssClass("ag-cell-value",!yt),lr.current.addOrRemoveCssClass("ag-cell-inline-editing",!!f&&!f.popup),lr.current.addOrRemoveCssClass("ag-cell-popup-editing",!!f&&!!f.popup),lr.current.addOrRemoveCssClass("ag-cell-not-inline-editing",!f||!!f.popup),(Xe=e.getRowCtrl())===null||Xe===void 0||Xe.setInlineEditingCss(!!f),e.shouldRestoreFocus()&&!e.isEditing()&&U.current.focus({preventScroll:!0}))});var Hi=function(){return re.default.createElement(re.default.Fragment,null,u!=null&&P6(u,v,s,$,yt,zs,sr),f!=null&&x6(f,Ae,kr,U.current,e,ue))};return re.default.createElement("div",{ref:js,style:y,tabIndex:i,role:"gridcell","col-id":a},yt?re.default.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:Us},Hi()):Hi())};yr.default=re.memo(O6)});var FM=z(Ln=>{"use strict";var Uv=Ln&&Ln.__assign||function(){return Uv=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Uv.apply(this,arguments)},L6=Ln&&Ln.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),I6=Ln&&Ln.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),D6=Ln&&Ln.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&L6(t,n,e);return I6(t,n),t},A6=Ln&&Ln.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ln,"__esModule",{value:!0});var je=D6(te()),F6=Pt(),b6=Hs(),cE=Pn(),M6=mr(),N6=A6(AM()),G6=function(n){var t=je.useContext(M6.BeansContext).context,e=n.rowCtrl,r=n.containerType,o=e.getTabIndex(),i=je.useRef(e.getDomOrder()),a=e.isFullWidth(),s=e.getRowNode().displayed,l=je.useState(function(){return s?e.getRowIndex():null}),u=l[0],c=l[1],d=je.useState(function(){return e.getRowId()}),f=d[0],p=d[1],h=je.useState(function(){return e.getBusinessKey()}),v=h[0],C=h[1],m=je.useState(function(){return e.getRowStyles()}),y=m[0],S=m[1],E=je.useState(function(){return null}),R=E[0],x=E[1],P=je.useState(),T=P[0],L=P[1],I=je.useState(function(){return s?e.getInitialRowTop(r):void 0}),b=I[0],W=I[1],Y=je.useState(function(){return s?e.getInitialTransform(r):void 0}),ue=Y[0],ee=Y[1],oe=je.useRef(null),U=je.useRef(),$=je.useRef(!1),ne=je.useState(0),Me=ne[0],Ve=ne[1];je.useEffect(function(){var Le;if(!$.current&&T&&!(Me>10)){var kr=(Le=oe.current)===null||Le===void 0?void 0:Le.firstChild;kr?(e.setupDetailRowAutoHeight(kr),$.current=!0):Ve(function(Ae){return Ae+1})}},[T,Me]);var De=je.useRef();De.current||(De.current=new F6.CssClassManager(function(){return oe.current}));var mt=je.useCallback(function(Le){if(oe.current=Le,!oe.current){e.unsetComp(r);return}if(e.isAlive()){var kr={setTop:W,setTransform:ee,addOrRemoveCssClass:function(Ae,lr){return De.current.addOrRemoveCssClass(Ae,lr)},setDomOrder:function(Ae){return i.current=Ae},setRowIndex:c,setRowId:p,setRowBusinessKey:C,setUserStyles:S,setCellCtrls:function(Ae,lr){cE.agFlushSync(lr,function(){x(function(ci){return cE.getNextValueIfDifferent(ci,Ae,i.current)})})},showFullWidth:function(Ae){return L(Ae)},getFullWidthCellRenderer:function(){return U.current}};e.setComp(kr,oe.current,r)}},[]);je.useLayoutEffect(function(){return b6.showJsComp(T,t,oe.current,U)},[T]);var lt=je.useMemo(function(){var Le={top:b,transform:ue};return Object.assign(Le,y),Le},[b,ue,y]),Se=a&&T&&T.componentFromFramework,ot=!a&&R!=null,sr=je.useMemo(function(){var Le=T?.componentFromFramework&&cE.isComponentStateless(T.componentClass);return!!Le},[T]),Gr=function(){return R?.map(function(Le){return je.default.createElement(N6.default,{cellCtrl:Le,editingRow:e.isEditing(),printLayout:e.isPrintLayout(),key:Le.getInstanceId()})})},yt=function(){var Le=T.componentClass;return je.default.createElement(je.default.Fragment,null,sr&&je.default.createElement(Le,Uv({},T.params)),!sr&&je.default.createElement(Le,Uv({},T.params,{ref:U})))};return je.default.createElement("div",{ref:mt,role:"row",style:lt,"row-index":u,"row-id":f,"row-business-key":v,tabIndex:o},ot&&Gr(),Se&&yt())};Ln.default=je.memo(G6)});var MM=z(Do=>{"use strict";var k6=Do&&Do.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),H6=Do&&Do.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),V6=Do&&Do.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&k6(t,n,e);return H6(t,n),t},bM=Do&&Do.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Do,"__esModule",{value:!0});var Vs=Pt(),vt=V6(te()),jv=Pn(),B6=bM(Hv()),W6=bM(FM()),U6=mr(),j6=function(n){var t=vt.useContext(U6.BeansContext).context,e=n.name,r=vt.useMemo(function(){return Vs.getRowContainerTypeForName(e)},[e]),o=vt.useRef(null),i=vt.useRef(null),a=vt.useRef([]),s=vt.useState(function(){return[]}),l=s[0],u=s[1],c=vt.useRef(!1),d=vt.useRef(),f=vt.useMemo(function(){return Vs.RowContainerCtrl.getRowContainerCssClasses(e)},[e]),p=vt.useMemo(function(){return jv.classesList(f.viewport)},[f]),h=vt.useMemo(function(){return jv.classesList(f.container)},[f]),v=e===Vs.RowContainerName.CENTER||e===Vs.RowContainerName.TOP_CENTER||e===Vs.RowContainerName.BOTTOM_CENTER||e===Vs.RowContainerName.STICKY_TOP_CENTER,C=v?o:i;B6.default(" AG Row Container "+e+" ",C);var m=vt.useCallback(function(){return v?o.current!=null&&i.current!=null:i.current!=null},[]),y=vt.useCallback(function(){return v?o.current==null&&i.current==null:i.current==null},[]),S=vt.useCallback(function(){if(y()&&(t.destroyBean(d.current),d.current=null),m()){var P=function(L){jv.agFlushSync(L,function(){u(function(I){return jv.getNextValueIfDifferent(I,a.current,c.current)})})},T={setViewportHeight:function(L){o.current&&(o.current.style.height=L)},setRowCtrls:function(L,I){var b=I&&a.current.length>0&&L.length>0;a.current=L,P(b)},setDomOrder:function(L){c.current!=L&&(c.current=L,P(!1))},setContainerWidth:function(L){i.current&&(i.current.style.width=L)}};d.current=t.createBean(new Vs.RowContainerCtrl(e)),d.current.setComp(T,i.current,o.current)}},[m,y]),E=vt.useCallback(function(P){i.current=P,S()},[S]),R=vt.useCallback(function(P){o.current=P,S()},[S]),x=function(){return vt.default.createElement("div",{className:h,ref:E,role:l.length?"rowgroup":"presentation"},l.map(function(P){return vt.default.createElement(W6.default,{rowCtrl:P,containerType:r,key:P.getInstanceId()})}))};return vt.default.createElement(vt.default.Fragment,null,v?vt.default.createElement("div",{className:p,ref:R,role:"presentation"},x()):x())};Do.default=vt.memo(j6)});var NM=z(Ao=>{"use strict";var z6=Ao&&Ao.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),q6=Ao&&Ao.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),$6=Ao&&Ao.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&z6(t,n,e);return q6(t,n),t},dE=Ao&&Ao.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ao,"__esModule",{value:!0});var Ot=Pt(),ye=$6(te()),K6=mr(),Y6=dE(xM()),kd=dE(Hv()),X6=dE(MM()),lu=Pn(),Q6=function(){var n=ye.useContext(K6.BeansContext),t=n.context,e=n.agStackComponentsRegistry,r=n.resizeObserverService,o=ye.useState(""),i=o[0],a=o[1],s=ye.useState(0),l=s[0],u=s[1],c=ye.useState(0),d=c[0],f=c[1],p=ye.useState("0px"),h=p[0],v=p[1],C=ye.useState("0px"),m=C[0],y=C[1],S=ye.useState("100%"),E=S[0],R=S[1],x=ye.useState(""),P=x[0],T=x[1],L=ye.useState(""),I=L[0],b=L[1],W=ye.useState(null),Y=W[0],ue=W[1],ee=ye.useState(""),oe=ee[0],U=ee[1],$=ye.useState(null),ne=$[0],Me=$[1],Ve=ye.useState("ag-layout-normal"),De=Ve[0],mt=Ve[1],lt=ye.useRef();lt.current||(lt.current=new Ot.CssClassManager(function(){return Se.current}));var Se=ye.useRef(null),ot=ye.useRef(null),sr=ye.useRef(null),Gr=ye.useRef(null),yt=ye.useRef(null),Le=ye.useRef(null),kr=ye.useRef([]),Ae=ye.useRef([]);kd.default(" AG Grid Body ",Se),kd.default(" AG Pinned Top ",ot),kd.default(" AG Sticky Top ",sr),kd.default(" AG Middle ",yt),kd.default(" AG Pinned Bottom ",Le);var lr=ye.useCallback(function(Et){if(Se.current=Et,!Se.current){t.destroyBeans(kr.current),Ae.current.forEach(function(Gt){return Gt()}),kr.current=[],Ae.current=[];return}if(t){var uu=function(Gt){var Mo=e.getComponentClass(Gt),wE=t.createBean(new Mo);return kr.current.push(wE),wE},Vi=function(Gt,Mo){Gt.appendChild(Mo),Ae.current.push(function(){return Gt.removeChild(Mo)})};Vi(Se.current,document.createComment(" AG Fake Horizontal Scroll ")),Vi(Se.current,uu("AG-FAKE-HORIZONTAL-SCROLL").getGui()),Vi(Se.current,document.createComment(" AG Overlay Wrapper ")),Vi(Se.current,uu("AG-OVERLAY-WRAPPER").getGui()),Gr.current&&(Vi(Gr.current,document.createComment(" AG Fake Vertical Scroll ")),Vi(Gr.current,uu("AG-FAKE-VERTICAL-SCROLL").getGui()));var Qv={setRowAnimationCssOnBodyViewport:a,setColumnCount:function(Gt){Se.current&&Ot._.setAriaColCount(Se.current,Gt)},setRowCount:function(Gt){Se.current&&Ot._.setAriaRowCount(Se.current,Gt)},setTopHeight:u,setBottomHeight:f,setStickyTopHeight:v,setStickyTopTop:y,setStickyTopWidth:R,setTopDisplay:T,setBottomDisplay:b,setColumnMovingCss:function(Gt,Mo){return lt.current.addOrRemoveCssClass(Gt,Mo)},updateLayoutClasses:mt,setAlwaysVerticalScrollClass:ue,setPinnedTopBottomOverflowY:U,setCellSelectableCss:function(Gt,Mo){return Me(Mo?Gt:null)},setBodyViewportWidth:function(Gt){yt.current&&(yt.current.style.width=Gt)},registerBodyViewportResizeListener:function(Gt){if(yt.current){var Mo=r.observeResize(yt.current,Gt);Ae.current.push(function(){return Mo()})}}},Vd=t.createBean(new Ot.GridBodyCtrl);kr.current.push(Vd),Vd.setComp(Qv,Se.current,yt.current,ot.current,Le.current,sr.current)}},[]),ci=ye.useMemo(function(){return lu.classesList("ag-root","ag-unselectable",De)},[De]),Us=ye.useMemo(function(){return lu.classesList("ag-body-viewport",i,De,Y,ne)},[i,De,Y,ne]),js=ye.useMemo(function(){return lu.classesList("ag-body",De)},[De]),zs=ye.useMemo(function(){return lu.classesList("ag-floating-top",ne)},[ne]),Hi=ye.useMemo(function(){return lu.classesList("ag-sticky-top",ne)},[ne]),Xe=ye.useMemo(function(){return lu.classesList("ag-floating-bottom",ne)},[ne]),Ct=ye.useMemo(function(){return{height:l,minHeight:l,display:P,overflowY:oe}},[l,P,oe]),on=ye.useMemo(function(){return{height:h,top:m,width:E}},[h,m,E]),Ee=ye.useMemo(function(){return{height:d,minHeight:d,display:I,overflowY:oe}},[d,I,oe]),wt=function(Et){return ye.default.createElement(X6.default,{name:Et,key:Et+"-container"})},Nt=function(Et){var uu=Et.section,Vi=Et.children,Qv=Et.className,Vd=Et.style;return ye.default.createElement("div",{ref:uu,className:Qv,role:"presentation",style:Vd},Vi.map(wt))};return ye.default.createElement("div",{ref:lr,className:ci,role:"treegrid"},ye.default.createElement(Y6.default,null),Nt({section:ot,className:zs,style:Ct,children:[Ot.RowContainerName.TOP_LEFT,Ot.RowContainerName.TOP_CENTER,Ot.RowContainerName.TOP_RIGHT,Ot.RowContainerName.TOP_FULL_WIDTH]}),ye.default.createElement("div",{className:js,ref:Gr,role:"presentation"},Nt({section:yt,className:Us,children:[Ot.RowContainerName.LEFT,Ot.RowContainerName.CENTER,Ot.RowContainerName.RIGHT,Ot.RowContainerName.FULL_WIDTH]})),Nt({section:sr,className:Hi,style:on,children:[Ot.RowContainerName.STICKY_TOP_LEFT,Ot.RowContainerName.STICKY_TOP_CENTER,Ot.RowContainerName.STICKY_TOP_RIGHT,Ot.RowContainerName.STICKY_TOP_FULL_WIDTH]}),Nt({section:Le,className:Xe,style:Ee,children:[Ot.RowContainerName.BOTTOM_LEFT,Ot.RowContainerName.BOTTOM_CENTER,Ot.RowContainerName.BOTTOM_RIGHT,Ot.RowContainerName.BOTTOM_FULL_WIDTH]}))};Ao.default=ye.memo(Q6)});var GM=z(Ni=>{"use strict";var J6=Ni&&Ni.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),Z6=Ni&&Ni.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),e5=Ni&&Ni.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&J6(t,n,e);return Z6(t,n),t};Object.defineProperty(Ni,"__esModule",{value:!0});var In=e5(te()),zv=Pt(),t5=mr(),r5=function(n,t){var e=n.children,r=n.eFocusableElement,o=n.onTabKeyDown,i=n.gridCtrl,a=In.useContext(t5.BeansContext).context,s=In.useRef(null),l=In.useRef(null),u=In.useRef(),c=function(v){var C=v==null?void 0:parseInt(v,10).toString();[s,l].forEach(function(m){var y,S;C===void 0?(y=m.current)===null||y===void 0||y.removeAttribute("tabindex"):(S=m.current)===null||S===void 0||S.setAttribute("tabindex",C)})};In.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){var v;(v=u.current)===null||v===void 0||v.forceFocusOutOfContainer()}}});var d=In.useCallback(function(){if(!s.current&&!l.current){a.destroyBean(u.current),u.current=null;return}if(s.current&&l.current){var v={setTabIndex:c};u.current=a.createBean(new zv.TabGuardCtrl({comp:v,eTopGuard:s.current,eBottomGuard:l.current,eFocusableElement:r,onTabKeyDown:o,focusInnerElement:function(C){return i.focusInnerElement(C)}}))}},[]),f=In.useCallback(function(v){s.current=v,d()},[d]),p=In.useCallback(function(v){l.current=v,d()},[d]),h=function(v){var C=v==="top"?zv.TabGuardClassNames.TAB_GUARD_TOP:zv.TabGuardClassNames.TAB_GUARD_BOTTOM;return In.default.createElement("div",{className:zv.TabGuardClassNames.TAB_GUARD+" "+C,role:"presentation",ref:v==="top"?f:p})};return In.default.createElement(In.default.Fragment,null,h("top"),e,h("bottom"))},n5=In.forwardRef(r5);Ni.default=In.memo(n5)});var VM=z(Fo=>{"use strict";var o5=Fo&&Fo.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),i5=Fo&&Fo.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),a5=Fo&&Fo.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&o5(t,n,e);return i5(t,n),t},fE=Fo&&Fo.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Fo,"__esModule",{value:!0});var kM=Pt(),Ye=a5(te()),s5=mr(),l5=fE(NM()),u5=fE(Hv()),c5=fE(GM()),HM=Pn(),d5=function(n){var t=n.context,e=Ye.useState(""),r=e[0],o=e[1],i=Ye.useState(""),a=i[0],s=i[1],l=Ye.useState(""),u=l[0],c=l[1],d=Ye.useState(null),f=d[0],p=d[1],h=Ye.useState(null),v=h[0],C=h[1],m=Ye.useState(!1),y=m[0],S=m[1],E=Ye.useState(),R=E[0],x=E[1],P=Ye.useRef(null),T=Ye.useRef(null),L=Ye.useRef(),I=Ye.useState(null),b=I[0],W=I[1],Y=Ye.useRef(function(){}),ue=Ye.useCallback(function(){},[]),ee=Ye.useMemo(function(){return t.isDestroyed()?null:t.getBean("beans")},[t]);u5.default(" AG Grid ",T);var oe=Ye.useCallback(function(Ve){if(T.current=Ve,!T.current){t.destroyBean(P.current),P.current=null;return}if(!t.isDestroyed()){P.current=t.createBean(new kM.GridCtrl);var De=P.current;Y.current=De.focusInnerElement.bind(De);var mt={destroyGridUi:function(){},setRtlClass:o,addOrRemoveKeyboardFocusClass:function(lt){return s(lt?kM.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){var lt;(lt=L.current)===null||lt===void 0||lt.forceFocusOutOfContainer()},updateLayoutClasses:c,getFocusableContainers:function(){var lt,Se,ot=[],sr=(lt=T.current)===null||lt===void 0?void 0:lt.querySelector(".ag-root"),Gr=(Se=T.current)===null||Se===void 0?void 0:Se.querySelector(".ag-side-bar:not(.ag-hidden)");return sr&&ot.push(sr),Gr&&ot.push(Gr),ot},setCursor:p,setUserSelect:C};De.setComp(mt,T.current,T.current),S(!0)}},[]);Ye.useEffect(function(){if(!(!R||!ee||!P.current||!b||!T.current)){var Ve=P.current,De=[],mt=ee.agStackComponentsRegistry,lt=mt.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),Se=mt.getComponentClass("AG-SIDE-BAR"),ot=mt.getComponentClass("AG-STATUS-BAR"),sr=mt.getComponentClass("AG-WATERMARK"),Gr=mt.getComponentClass("AG-PAGINATION"),yt=[],Le=T.current;if(Ve.showDropZones()&&lt){var kr=t.createBean(new lt),Ae=kr.getGui();Le.insertAdjacentElement("afterbegin",Ae),yt.push(Ae),De.push(kr)}if(Ve.showSideBar()&&Se){var lr=t.createBean(new Se),Ae=lr.getGui(),ci=b.querySelector(".ag-tab-guard-bottom");ci&&(ci.insertAdjacentElement("beforebegin",Ae),yt.push(Ae)),De.push(lr)}if(Ve.showStatusBar()&&ot){var Us=t.createBean(new ot),Ae=Us.getGui();Le.insertAdjacentElement("beforeend",Ae),yt.push(Ae),De.push(Us)}if(Gr){var js=t.createBean(new Gr),Ae=js.getGui();Le.insertAdjacentElement("beforeend",Ae),yt.push(Ae),De.push(js)}if(Ve.showWatermark()&&sr){var zs=t.createBean(new sr),Ae=zs.getGui();Le.insertAdjacentElement("beforeend",Ae),yt.push(Ae),De.push(zs)}return function(){t.destroyBeans(De),yt.forEach(function(Hi){Hi.parentElement&&Hi.parentElement.removeChild(Hi)})}}},[R,b,ee]);var U=Ye.useMemo(function(){return HM.classesList("ag-root-wrapper",r,a,u)},[r,a,u]),$=Ye.useMemo(function(){return HM.classesList("ag-root-wrapper-body","ag-focus-managed",u)},[u]),ne=Ye.useMemo(function(){return{userSelect:v??"",WebkitUserSelect:v??"",cursor:f??""}},[v,f]),Me=Ye.useCallback(function(Ve){L.current=Ve,x(Ve!==null)},[]);return Ye.default.createElement("div",{ref:oe,className:U,style:ne,role:"presentation"},Ye.default.createElement("div",{className:$,ref:W,role:"presentation"},y&&b&&ee&&Ye.default.createElement(s5.BeansContext.Provider,{value:ee},Ye.default.createElement(c5.default,{ref:Me,eFocusableElement:b,onTabKeyDown:ue,gridCtrl:P.current},Ye.default.createElement(l5.default,null)))))};Fo.default=Ye.memo(d5)});var qv=z(wr=>{"use strict";var f5=wr&&wr.__extends||function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pE=wr&&wr.__assign||function(){return pE=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},pE.apply(this,arguments)},p5=wr&&wr.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),h5=wr&&wr.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),g5=wr&&wr.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&p5(t,n,e);return h5(t,n),t},v5=wr&&wr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(wr,"__esModule",{value:!0});wr.AgGridReactUi=void 0;var Gi=Pt(),Cr=g5(te()),m5=tE(),y5=rE(),C5=hE(),w5=v5(VM()),S5=function(n){var t,e,r=Cr.useRef(null),o=Cr.useRef(null),i=Cr.useRef(null),a=Cr.useRef([]),s=Cr.useRef([]),l=Cr.useRef(n),u=Cr.useRef(!1),c=Cr.useState(void 0),d=c[0],f=c[1],p=Cr.useCallback(function(S){S.rowDataChangeDetectionStrategy&&Gi._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},[]),h=Cr.useState(0),v=h[1],C=Cr.useCallback(function(S){if(o.current=S,!o.current){a.current.forEach(function(L){return L()}),a.current.length=0;return}var E=n.modules||[];i.current||(i.current=new y5.PortalManager(function(){return v(function(L){return L+1})},n.componentWrappingElement,n.maxComponentCreationTimeMs),a.current.push(function(){var L;(L=i.current)===null||L===void 0||L.destroy(),i.current=null}));var R={providedBeanInstances:{frameworkComponentWrapper:new _5(i.current)},modules:E,frameworkOverrides:new C5.ReactFrameworkOverrides(!0)};r.current=n.gridOptions||{},r.current=Gi.ComponentUtil.copyAttributesToGridOptions(r.current,n),p(n);var x=function(L){f(L),a.current.push(function(){L.destroy()});var I=L.getBean(Gi.CtrlsService.NAME);I.whenReady(function(){if(!L.isDestroyed()&&r.current){var b=r.current.api;b&&n.setGridApi&&n.setGridApi(b,r.current.columnApi)}})},P=function(L){var I=L.getBean(Gi.CtrlsService.NAME);I.whenReady(function(){s.current.forEach(function(b){return b()}),s.current.length=0,u.current=!0})},T=new Gi.GridCoreCreator;T.create(o.current,r.current,x,P,R)},[]),m=Cr.useMemo(function(){return pE({height:"100%"},n.containerStyle||{})},[n.containerStyle]),y=Cr.useCallback(function(S){u.current?S():s.current.push(S)},[]);return Cr.useEffect(function(){var S={};E5(l.current,n,S),l.current=n,y(function(){var E;!((E=r.current)===null||E===void 0)&&E.api&&Gi.ComponentUtil.processOnChange(S,r.current.api)})},[n]),Cr.default.createElement("div",{style:m,className:n.className,ref:C},d&&!d.isDestroyed()?Cr.default.createElement(w5.default,{context:d}):null,(e=(t=i.current)===null||t===void 0?void 0:t.getPortals())!==null&&e!==void 0?e:null)};wr.AgGridReactUi=S5;var _5=function(n){f5(t,n);function t(e){var r=n.call(this)||this;return r.parent=e,r}return t.prototype.createWrapper=function(e,r){return new m5.NewReactComponent(e,this.parent,r)},t}(Gi.BaseComponentWrapper);function E5(n,t,e){var r=!!t.debug;Object.keys(t).forEach(function(o){Gi.ComponentUtil.ALL_PROPERTIES_SET.has(o)&&n[o]!==t[o]&&(r&&console.log(" agGridReact: ["+o+"] property changed"),e[o]={previousValue:n[o],currentValue:t[o]})}),Gi.ComponentUtil.EVENT_CALLBACKS.forEach(function(o){n[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] event callback changed"),e[o]={previousValue:n[o],currentValue:t[o]})})}});var UM=z(bo=>{"use strict";var gE=bo&&bo.__assign||function(){return gE=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},gE.apply(this,arguments)},R5=bo&&bo.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),T5=bo&&bo.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),x5=bo&&bo.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&R5(t,n,e);return T5(t,n),t};Object.defineProperty(bo,"__esModule",{value:!0});var ar=x5(te()),BM=Pn(),WM=Pt(),P5=mr(),O5=qv(),L5=function(n,t){var e=ar.useContext(P5.BeansContext),r=e.ctrlsFactory,o=e.context,i=e.gridOptionsService,a=e.resizeObserverService,s=e.clientSideRowModel,l=e.serverSideRowModel,u=ar.useState(function(){return new BM.CssClasses}),c=u[0],d=u[1],f=ar.useState(function(){return new BM.CssClasses}),p=f[0],h=f[1],v=ar.useState(),C=v[0],m=v[1],y=ar.useState(),S=y[0],E=y[1],R=ar.useRef(),x=ar.useRef(null),P=ar.useRef(),T=ar.useMemo(function(){return WM.ModuleRegistry.__getGridRegisteredModules(n.api.getGridId())},[n]),L=ar.useMemo(function(){return c.toString()+" ag-details-row"},[c]),I=ar.useMemo(function(){return p.toString()+" ag-details-grid"},[p]);t&&ar.useImperativeHandle(t,function(){return{refresh:function(){var Y,ue;return(ue=(Y=R.current)===null||Y===void 0?void 0:Y.refresh())!==null&&ue!==void 0?ue:!1}}}),n.template&&WM._.doOnce(function(){return console.warn("AG Grid: detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://ag-grid.com/react-data-grid/master-detail-custom-detail/")},"React_detailCellRenderer.template");var b=ar.useCallback(function(Y){if(x.current=Y,!x.current){o.destroyBean(R.current),P.current&&P.current();return}var ue={addOrRemoveCssClass:function(U,$){return d(function(ne){return ne.setClass(U,$)})},addOrRemoveDetailGridCssClass:function(U,$){return h(function(ne){return ne.setClass(U,$)})},setDetailGrid:function(U){return m(U)},setRowData:function(U){return E(U)},getGui:function(){return x.current}},ee=r.getInstance("detailCellRenderer");if(ee&&(o.createBean(ee),ee.init(ue,n),R.current=ee,i.is("detailRowAutoHeight"))){var oe=function(){if(x.current!=null){var U=x.current.clientHeight;if(U!=null&&U>0){var $=function(){n.node.setRowHeight(U),s?s.onRowHeightChanged():l&&l.onRowHeightChanged()};setTimeout($,0)}}};P.current=a.observeResize(x.current,oe),oe()}},[]),W=ar.useCallback(function(Y,ue){var ee;(ee=R.current)===null||ee===void 0||ee.registerDetailWithMaster(Y,ue)},[]);return ar.default.createElement("div",{className:L,ref:b},C&&ar.default.createElement(O5.AgGridReactUi,gE({className:I},C,{modules:T,rowData:S,setGridApi:W})))};bo.default=ar.forwardRef(L5)});var hE=z($a=>{"use strict";var I5=$a&&$a.__extends||function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zM=$a&&$a.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty($a,"__esModule",{value:!0});$a.ReactFrameworkOverrides=void 0;var D5=Pt(),jM=zM(mM()),A5=zM(UM()),F5=function(n){I5(t,n);function t(e){var r=n.call(this)||this;return r.frameworkComponents={agGroupCellRenderer:jM.default,agGroupRowRenderer:jM.default,agDetailCellRenderer:A5.default},r.reactUi=e,r.renderingEngine=e?"react":"vanilla",r}return t.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},t.prototype.isFrameworkComponent=function(e){if(!e)return!1;var r=e.prototype,o=r&&"getGui"in r;return!o},t}(D5.VanillaFrameworkOverrides);$a.ReactFrameworkOverrides=F5});var mE=z(Sr=>{"use strict";var $M=Sr&&Sr.__extends||function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),$v=Sr&&Sr.__assign||function(){return $v=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},$v.apply(this,arguments)},b5=Sr&&Sr.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),M5=Sr&&Sr.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),N5=Sr&&Sr.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&b5(t,n,e);return M5(t,n),t},G5=Sr&&Sr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.AgGridReactLegacy=void 0;var Nr=Pt(),Ka=G5(yF()),qM=N5(te()),k5=cM(),H5=tE(),V5=rE(),B5=hE(),vE=function(n){$M(t,n);function t(e){var r=n.call(this,e)||this;return r.props=e,r.api=null,r.destroyed=!1,r.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],r.portalManager=new V5.LegacyPortalManager(r,e.componentWrappingElement,e.maxComponentCreationTimeMs),r}return t.prototype.render=function(){var e=this;return qM.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(r){e.eGridDiv=r}},this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return $v({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this.props.modules||[],r={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new W5(this,this.portalManager)},modules:e,frameworkOverrides:new B5.ReactFrameworkOverrides(!1)},o=this.props.gridOptions||{};this.gridOptions=Nr.ComponentUtil.copyAttributesToGridOptions(o,this.props),this.checkForDeprecations(this.props),new Nr.Grid(this.eGridDiv,this.gridOptions,r),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},t.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&Nr._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},t.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,r){var o={};this.extractGridPropertyChanges(e,r,o),this.processSynchronousChanges(o),this.processAsynchronousChanges(o)},t.prototype.extractGridPropertyChanges=function(e,r,o){var i=!!r.debug;Object.keys(r).forEach(function(a){Nr.ComponentUtil.ALL_PROPERTIES_SET.has(a)&&e[a]!==r[a]&&(i&&console.log("agGridReact: ["+a+"] property changed"),o[a]={previousValue:e[a],currentValue:r[a]})}),Nr.ComponentUtil.EVENT_CALLBACKS.forEach(function(a){e[a]!==r[a]&&(i&&console.log("agGridReact: ["+a+"] event callback changed"),o[a]={previousValue:e[a],currentValue:r[a]})})},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},t.prototype.isDisableStaticMarkup=function(){return this.props.disableStaticMarkup===!0},t.prototype.isLegacyComponentRendering=function(){return this.props.legacyComponentRendering===!0},t.prototype.processSynchronousChanges=function(e){var r=$v({},e);if(Object.keys(r).length>0){var o={};this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(i){r[i]&&(o[i]=r[i],delete r[i])}),Object.keys(o).length>0&&this.api&&Nr.ComponentUtil.processOnChange(o,this.api)}return r},t.prototype.processAsynchronousChanges=function(e){var r=this;Object.keys(e).length>0&&window.setTimeout(function(){r.api&&Nr.ComponentUtil.processOnChange(e,r.api)})},t.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,t.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:t.MAX_COMPONENT_CREATION_TIME_IN_MS},t}(qM.Component);Sr.AgGridReactLegacy=vE;vE.propTypes={gridOptions:Ka.default.object};Bs(Nr.ComponentUtil.EVENT_CALLBACKS,Ka.default.func);Bs(Nr.ComponentUtil.BOOLEAN_PROPERTIES,Ka.default.bool);Bs(Nr.ComponentUtil.STRING_PROPERTIES,Ka.default.string);Bs(Nr.ComponentUtil.OBJECT_PROPERTIES,Ka.default.object);Bs(Nr.ComponentUtil.ARRAY_PROPERTIES,Ka.default.array);Bs(Nr.ComponentUtil.NUMBER_PROPERTIES,Ka.default.number);Bs(Nr.ComponentUtil.FUNCTION_PROPERTIES,Ka.default.func);function Bs(n,t){n.forEach(function(e){vE[e]=t})}var W5=function(n){$M(t,n);function t(e,r){var o=n.call(this)||this;return o.agGridReact=e,o.portalManager=r,o}return t.prototype.createWrapper=function(e,r){return this.agGridReact.isLegacyComponentRendering()?new k5.LegacyReactComponent(e,this.agGridReact,this.portalManager,r):new H5.NewReactComponent(e,this.portalManager,r)},t}(Nr.BaseComponentWrapper)});var KM=z(nn=>{"use strict";var U5=nn&&nn.__extends||function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Kv=nn&&nn.__assign||function(){return Kv=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},Kv.apply(this,arguments)},j5=nn&&nn.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),z5=nn&&nn.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),q5=nn&&nn.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&j5(t,n,e);return z5(t,n),t};Object.defineProperty(nn,"__esModule",{value:!0});nn.AgGridReact=void 0;var yE=q5(te()),$5=mE(),K5=qv(),Y5=function(n){U5(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.setGridApi=function(r,o){e.api=r,e.columnApi=o},e}return t.prototype.render=function(){var e=this.props.suppressReactUi?yE.default.createElement($5.AgGridReactLegacy,Kv({},this.props,{setGridApi:this.setGridApi})):yE.default.createElement(K5.AgGridReactUi,Kv({},this.props,{setGridApi:this.setGridApi}));return e},t}(yE.Component);nn.AgGridReact=Y5});var YM=z(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.ChangeDetectionStrategyType=void 0;var X5;(function(n){n.IdentityCheck="IdentityCheck",n.DeepValueCheck="DeepValueCheck",n.NoCheck="NoCheck"})(X5=Hd.ChangeDetectionStrategyType||(Hd.ChangeDetectionStrategyType={}))});var XM=z(Dn=>{"use strict";var Q5=Dn&&Dn.__createBinding||(Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]}),J5=Dn&&Dn.__exportStar||function(n,t){for(var e in n)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&Q5(t,n,e)};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.AgGridReactFire=Dn.AgGridReactLegacy=Dn.AgGridReact=void 0;var Z5=KM();Object.defineProperty(Dn,"AgGridReact",{enumerable:!0,get:function(){return Z5.AgGridReact}});var e8=mE();Object.defineProperty(Dn,"AgGridReactLegacy",{enumerable:!0,get:function(){return e8.AgGridReactLegacy}});var t8=qv();Object.defineProperty(Dn,"AgGridReactFire",{enumerable:!0,get:function(){return t8.AgGridReactUi}});J5(YM(),Dn)});var QM=de(()=>{});var JM=de(()=>{});var ZM=de(()=>{});var eN,ki,CE,r8,tN,rN=de(()=>{eN=B(XM()),ki=B(te());QM();JM();ZM();CE=B(le()),r8={flex:1,minWidth:100,width:150,maxWidth:300,sortable:!0,filter:!1,resizable:!0,editable:!1,autoHeight:!0,wrapText:!0,sortingOrder:["asc","desc",null],unSortIcon:!1,valueFormatter:n=>`${n.value}`},tN=({rowData:n,columnDefs:t,onCellValueChanged:e,isEditing:r=!1})=>{let[o,i]=(0,ki.useState)(null),[a,s]=(0,ki.useState)(!1),l=(0,ki.useCallback)(c=>{i(c.api),s(!0)},[]),u=(0,ki.useCallback)(c=>{e&&e(c)},[e]);return(0,ki.useEffect)(()=>{if(!o||!a)return;requestAnimationFrame(()=>{let d=t.map(f=>({...f,editable:r}));o.setColumnDefs(d),o.setRowData(n),requestAnimationFrame(()=>{o&&o.sizeColumnsToFit()})})},[o,a,n,t,r]),(0,ki.useEffect)(()=>{if(!o||!a)return;let c=()=>{requestAnimationFrame(()=>{o&&o.sizeColumnsToFit()})};return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[o,a]),(0,CE.jsx)("div",{className:"tableEnhancements-grid-wrapper",style:{height:"400px",width:"100%",overflow:"auto",minWidth:"200px",display:"flex",flexDirection:"column"},children:(0,CE.jsx)(eN.AgGridReact,{className:"ag-theme-balham",rowData:n,columnDefs:t,defaultColDef:r8,onGridReady:l,onCellValueChanged:u,stopEditingWhenCellsLoseFocus:!0,domLayout:"normal",enableRtl:!1,headerHeight:25,rowHeight:25,animateRows:!0,enableCellTextSelection:!1,ensureDomOrder:!0,suppressScrollOnNewData:!0,rowSelection:"multiple",suppressRowClickSelection:!0,suppressRowDeselection:!0,sortingOrder:["asc","desc"],multiSortKey:"ctrl",pagination:!1,paginationPageSize:10,suppressPaginationPanel:!1,suppressMovableColumns:!1,suppressDragLeaveHidesColumns:!0,rowBuffer:10,suppressColumnVirtualisation:!1})})}});var nN=de(()=>{});var oN={};Jv(oN,{default:()=>o8});var zt,pt,n8,o8,iN=de(()=>{Rc();fn();zt=B(te());qL();rN();nN();pt=B(le()),n8=()=>{let{additionalProps:n}=bp(),t=n?.logger,e=n?.tables??[],r=n?.manager,o=n?.onSave,[i,a]=(0,zt.useState)(0),[s,l]=(0,zt.useState)(e),[u,c]=(0,zt.useState)([]),[d,f]=(0,zt.useState)([]),[p,h]=(0,zt.useState)(!0),[v,C]=(0,zt.useState)(!1),m=s[i],y=(0,zt.useCallback)(()=>{C(!0)},[]),S=(0,zt.useCallback)(()=>{C(!1),l(e)},[e]);(0,zt.useEffect)(()=>{if(!m)return;let L=m.headers.map(b=>({field:b.field,headerName:b.headerName||b.content,sortable:b.sortable??!0,filter:b.filterable??!0,resizable:b.resizable??!0,editable:!0}));f(L);let I=m.cells.map((b,W)=>{let Y={__rowIndex:W};return b.forEach((ue,ee)=>{let oe=m.headers[ee].field;Y[oe]=ue.content}),Y});c(I)},[m]),(0,zt.useEffect)(()=>{l(e)},[e]);let E=(0,zt.useCallback)(L=>{let{data:I,colDef:b,newValue:W}=L;if(!I||!b.field)return;let Y=I.__rowIndex,ue=b.field,ee=m.headers.findIndex(U=>U.field===ue);if(ee===-1)return;let oe={content:W,alignment:m.cells[Y][ee].alignment};l(U=>{let $=[...U],ne={...$[i]},Me=[...ne.cells];return Me[Y]=[...Me[Y]],Me[Y][ee]=oe,ne.cells=Me,$[i]=ne,$}),c(U=>{let $=[...U];return $[Y]={...$[Y],[ue]:W,__rowIndex:Y},$})},[m,i]),R=(0,zt.useCallback)(L=>{a(L)},[]),x=(0,zt.useCallback)(L=>{l(I=>{let b=[...I];return b[i]=L,b})},[i]),P=(0,zt.useCallback)(async()=>{try{o&&(await o(s),C(!1))}catch(L){t?.throwError(new Error("Error saving tables"),L)}},[o,s,t]),T=(0,zt.useCallback)(()=>{h(L=>!L)},[]);return(0,pt.jsx)("div",{className:"tableEnhancements-modal",children:s.length>0&&(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsxs)("div",{className:"tableEnhancements-header",children:[(0,pt.jsx)("div",{className:"tableEnhancements-header-left",children:(0,pt.jsx)("select",{value:i,onChange:L=>R(Number(L.target.value)),className:"tableEnhancements-select",children:s.map((L,I)=>(0,pt.jsxs)("option",{value:I,children:["Table ",I+1," ",L.referenceId?`\uFF1A${L.referenceId}`:""]},I))})}),(0,pt.jsxs)("div",{className:"tableEnhancements-header-right",children:[(0,pt.jsx)("button",{className:`tableEnhancements-btn ${p?"active":""}`,onClick:T,children:p?A("toolkit.tableEnhancements.formula.hide_calculator"):A("toolkit.tableEnhancements.formula.show_calculator")}),v?(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)("button",{className:"tableEnhancements-btn primary",onClick:P,children:A("toolkit.tableEnhancements.formula.update")}),(0,pt.jsx)("button",{className:"tableEnhancements-btn secondary",onClick:S,children:A("toolkit.tableEnhancements.formula.cancel")})]}):(0,pt.jsx)("button",{className:"tableEnhancements-btn primary",onClick:y,children:A("toolkit.tableEnhancements.formula.edit_table")})]})]}),(0,pt.jsx)("div",{className:"tableEnhancements-modal-content",children:(0,pt.jsx)("div",{className:"tableEnhancements-grid-container",children:m?(0,pt.jsx)(tN,{rowData:u,columnDefs:d,onCellValueChanged:E,isEditing:v}):(0,pt.jsx)("div",{className:"tableEnhancements-no-data",children:A("toolkit.tableEnhancements.formula.no_table_data")})})}),p&&m&&r&&(0,pt.jsx)("div",{className:"tableEnhancements-calculator",children:(0,pt.jsx)(zL,{table:m,manager:r,onCalculate:x,logger:t})})]})})},o8=n8});var i8={};Jv(i8,{default:()=>Xv});module.exports=pN(i8);di();var aN=require("obsidian");di();var zO=require("obsidian"),qO=B(te()),$O=B(wC());fn();var hP=B(le()),Tl=({children:n,className:t="",variant:e="default",size:r="medium",...o})=>(0,hP.jsx)("button",{className:`rht-button rht-button-${e} rht-button-${r} ${t}`,...o,children:n});var gP=B(te());var xl=B(le()),nc=gP.forwardRef(({className:n="",error:t,value:e,onChange:r,type:o="text",prefix:i,...a},s)=>{let l=u=>{let c=u.target.value;r(c)};return(0,xl.jsxs)("div",{className:"rht-input-wrapper",children:[i&&(0,xl.jsx)("div",{className:"rht-input-prefix",children:i}),(0,xl.jsx)("input",{ref:s,className:`rht-input ${t?"rht-input-error":""} ${n}`,value:e,onChange:l,type:o,...a}),t&&(0,xl.jsx)("div",{className:"rht-input-error-message",children:t})]})});nc.displayName="Input";var Uo=B(te());var Pl=B(le()),fp=({value:n,onChange:t,suggestions:e=[],placeholder:r,disabled:o=!1})=>{let[i,a]=Uo.useState(!1),[s,l]=Uo.useState(-1),u=Uo.useRef(null),c=Uo.useRef(null),d=Uo.useMemo(()=>{if(!n.trim())return e;let v=n.toLowerCase().trim();return e.filter(C=>C.toLowerCase().includes(v)).sort((C,m)=>{let y=C.toLowerCase().startsWith(v),S=m.toLowerCase().startsWith(v);return y&&!S?-1:!y&&S?1:C.length-m.length})},[e,n]),f=v=>{let C=v.target.value;t(C),e.length>0?(a(!0),l(-1)):(a(!1),l(-1))},p=v=>{if(!(!i||d.length===0))switch(v.key){case"ArrowDown":v.preventDefault(),l(C=>C<d.length-1?C+1:0);break;case"ArrowUp":v.preventDefault(),l(C=>C>0?C-1:d.length-1);break;case"Enter":v.preventDefault(),s>=0&&h(d[s]);break;case"Escape":a(!1),l(-1),c.current?.blur();break}},h=v=>{t(v),a(!1),l(-1),c.current?.blur()};return Uo.useEffect(()=>{let v=C=>{u.current&&!u.current.contains(C.target)&&(a(!1),l(-1))};return document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[]),(0,Pl.jsxs)("div",{className:"rht-suggestion-input-container",ref:u,children:[(0,Pl.jsx)("input",{ref:c,className:`rht-suggestion-input ${o?"disabled":""}`,value:n,onChange:f,onKeyDown:p,onFocus:()=>{e.length>0&&a(!0)},placeholder:r,disabled:o}),i&&d.length>0&&(0,Pl.jsx)("div",{className:"rht-suggestion-input-dropdown",children:d.map((v,C)=>(0,Pl.jsx)("div",{className:`rht-suggestion-input-option ${C===s?"selected":""}`,onClick:()=>h(v),children:v},v))})]})};_i();var da=B(te());var Hn=B(le()),MP=({values:n,onChange:t,suggestions:e=[],placeholder:r})=>{let[o,i]=da.useState(""),[a,s]=da.useState(!1),[l,u]=da.useState(-1),c=da.useRef(null),d=da.useMemo(()=>e.filter(y=>y.toLowerCase().includes(o.toLowerCase())&&!n.includes(y)),[e,o,n]),f=y=>{y&&!n.includes(y)&&(t([...n,y.trim()]),i(""),s(!1),u(-1))},p=y=>{switch(y.key){case"ArrowDown":y.preventDefault(),d.length>0&&(s(!0),u(S=>S<d.length-1?S+1:S));break;case"ArrowUp":y.preventDefault(),d.length>0&&(s(!0),u(S=>S>0?S-1:S));break;case"Enter":y.preventDefault(),l>=0&&d.length>0?f(d[l]):o.trim()&&f(o);break;case"Escape":s(!1),u(-1);break;case",":case";":y.preventDefault(),o.trim()&&f(o);break}},h=y=>{let S=y.target.value;if(i(S),S.includes(",")||S.includes(";")){S.split(/[,;]/).map(R=>R.trim()).filter(Boolean).forEach(R=>f(R));return}if(e.length>0){let E=e.some(R=>R.toLowerCase().includes(S.toLowerCase())&&!n.includes(R));s(E),E&&u(-1)}},v=y=>{c.current?.contains(y.target)&&e.filter(S=>!n.includes(S)).length>0&&s(!0)},C=y=>{f(y),i(""),u(-1),s(!1)};return(0,Hn.jsxs)("div",{className:"rht-tag-input",ref:c,onFocusCapture:v,onBlurCapture:y=>{requestAnimationFrame(()=>{c.current?.contains(y.relatedTarget)||(s(!1),u(-1))})},children:[(0,Hn.jsxs)("div",{className:"rht-tag-input-container",children:[(0,Hn.jsx)("input",{type:"text",value:o,onChange:h,onKeyDown:p,placeholder:r,className:"rht-tag-input-field"}),a&&d.length>0&&(0,Hn.jsx)("div",{className:"rht-tag-suggestions",onMouseDown:y=>{y.preventDefault()},children:d.map((y,S)=>(0,Hn.jsx)("div",{className:`rht-tag-suggestion-item ${S===l?"selected":""}`,onMouseDown:E=>{E.preventDefault(),C(y)},onMouseEnter:()=>u(S),children:y},S))})]}),(0,Hn.jsx)("div",{className:"rht-tags-container",children:n.map((y,S)=>(0,Hn.jsxs)("div",{className:"rht-tag-item","aria-label":y,children:[(0,Hn.jsx)("span",{className:"rht-tag-text",children:y}),(0,Hn.jsx)("span",{className:"rht-tag-remove",onClick:()=>t(n.filter(E=>E!==y)),"aria-label":"Remove tag",children:(0,Hn.jsx)(fs,{size:14})})]},S))})]})};_i();var NP=B(te());var Vn=B(le()),Vt=({name:n,desc:t,icon:e,children:r,collapsible:o,defaultCollapsed:i})=>{let[a,s]=NP.useState(i);return(0,Vn.jsxs)("div",{className:`rht-setting-item ${o?"is-collapsible":""}`,children:[(0,Vn.jsxs)("div",{className:"rht-setting-item-info",children:[(0,Vn.jsxs)("div",{className:"rht-setting-item-heading",onClick:o?()=>s(!a):void 0,children:[e&&(0,Vn.jsx)("span",{className:"rht-setting-item-icon",children:e}),(0,Vn.jsx)("div",{className:"rht-setting-item-name",children:n}),o&&(0,Vn.jsx)("span",{className:"rht-setting-item-collapse-icon",children:a?(0,Vn.jsx)(ds,{size:16}):(0,Vn.jsx)(cs,{size:16})})]}),t&&(0,Vn.jsx)("div",{className:"rht-setting-item-description",children:t})]}),r&&!a&&(0,Vn.jsx)("div",{className:"rht-setting-item-control",children:r})]})};var gp=B(te());function vp(n,t){let e=n.getManager(t),[r,o]=(0,gp.useState)(e.getConfig()),i=(0,gp.useCallback)(a=>{let s=JSON.parse(JSON.stringify(r));Object.entries(a).forEach(([l,u])=>{if(l.includes(".")){let c=l.split("."),d=s;for(let f=0;f<c.length-1;f++)d[c[f]]||(d[c[f]]={}),d=d[c[f]];d[c[c.length-1]]=u}else Array.isArray(u)?s[l]=u:typeof u=="object"&&u!==null?s[l]={...s[l],...u}:s[l]=u}),e.setConfig(s),o(e.getConfig())},[e,r]);return{config:r,updateConfig:i}}var mp=require("obsidian"),GP=B(te()),kP=n=>(0,GP.useMemo)(()=>{let t={folders:new Set,files:new Set,keys:new Set};return n.vault.getAllLoadedFiles().forEach(r=>{if(r instanceof mp.TFolder)t.folders.add(r);else if(r instanceof mp.TFile){t.files.add(r);let i=n.metadataCache.getCache(r.path)?.frontmatter;i&&Object.keys(i).forEach(a=>{t.keys.add(a)})}}),{folderSuggestions:Array.from(t.folders).map(r=>r.path).sort((r,o)=>{let i=r.split("/").length,a=o.split("/").length;return i!==a?i-a:r.localeCompare(o)}),fileSuggestions:Array.from(t.files).map(r=>r.path),keySuggestions:Array.from(t.keys)}},[n]);fn();var Yt=B(te());var X=B(le()),Bk=(n,t,e)=>{let r=(0,Yt.useMemo)(()=>n.getManager("folderTemplates"),[n]),[o,i]=(0,Yt.useState)([]),[a,s]=(0,Yt.useState)([]),[l,u]=(0,Yt.useState)("");(0,Yt.useEffect)(()=>{if(!r)return;let p=r.getTemplatesService(),h=t?.templatesFolderPath||p.getDefaultTemplatesFolderPath();u(h);let v=n.settings.toolkit.folderTemplates?.data;v?.templates&&i(v.templates)},[n,r,t]);let c=(0,Yt.useCallback)(async p=>{if(!r||!p){s([]);return}let v=await r.getTemplatesService().getTemplateFileOptions(p);s(v.map(C=>C.value))},[r]);(0,Yt.useEffect)(()=>{c(l)},[l,c]);let d=(0,Yt.useCallback)(async p=>{let h=n.settings.toolkit.folderTemplates;h&&(h.data.templates=p,h.data.lastModified=new Date().toISOString(),await n.saveData(n.settings),i(p))},[n]),f=(0,Yt.useCallback)(p=>{u(p),e({templatesFolderPath:p}),c(p)},[e,c]);return{templates:o,templateFileOptions:a,templatesPath:l,updateTemplates:d,updateTemplatesPath:f,setTemplates:i}},VP=({plugin:n})=>{let{config:t,updateConfig:e}=vp(n,"folderTemplates"),{folderSuggestions:r}=kP(n.app),{templates:o,templateFileOptions:i,templatesPath:a,updateTemplates:s,updateTemplatesPath:l,setTemplates:u}=Bk(n,t,e),[c,d]=(0,Yt.useState)(-1),[f,p]=(0,Yt.useState)(!1),[h,v]=(0,Yt.useState)(null),C=(0,Yt.useMemo)(()=>({add:()=>{let m={Folder:"",TemplateFile:"",FileNameRule:""};d(o.length),v(m),p(!0)},edit:m=>{v({...o[m]}),d(m),p(!1)},save:async()=>{if(!h||!h.Folder.trim()||!h.TemplateFile.trim())return;let m=[...o];f?m.push(h):m[c]=h,await s(m),d(-1),v(null),p(!1)},cancel:()=>{d(-1),v(null),p(!1)},delete:async m=>{let y=o.filter((S,E)=>E!==m);await s(y),d(-1),v(null),p(!1)},update:(m,y)=>{h&&v({...h,[m]:y})}}),[o,s,f,c,h]);return(0,X.jsxs)("div",{className:"rht-toolkit-detail-settings",children:[(0,X.jsx)(Vt,{name:A("toolkit.folderTemplates.settings.templatesFolderPath.title"),desc:A("toolkit.folderTemplates.settings.templatesFolderPath.description"),children:(0,X.jsx)(fp,{value:a,onChange:l,suggestions:r,placeholder:A("toolkit.folderTemplates.settings.templatesFolderPath.placeholder")})}),(0,X.jsx)(Vt,{name:A("toolkit.folderTemplates.settings.ignoredFolders.title"),desc:A("toolkit.folderTemplates.settings.ignoredFolders.description"),collapsible:!0,defaultCollapsed:!0,children:(0,X.jsx)(MP,{values:t?.ignoredFolders||[],onChange:m=>e({ignoredFolders:m}),suggestions:r,placeholder:A("toolkit.folderTemplates.settings.ignoredFolders.placeholder")})}),(0,X.jsx)(Vt,{name:A("toolkit.folderTemplates.settings.templateManagement.title"),desc:"",collapsible:!0,defaultCollapsed:!1,children:(0,X.jsxs)("div",{className:"RHT__FT-template-management",children:[(0,X.jsx)("div",{className:"RHT__FT-template-header",children:(0,X.jsx)(Tl,{onClick:C.add,className:"RHT__FT-add-button",disabled:c!==-1,children:A("toolkit.folderTemplates.settings.templateManagement.addTemplate")})}),(0,X.jsx)("div",{className:"RHT__FT-template-list",children:o.length===0&&!f?(0,X.jsxs)("div",{className:"RHT__FT-template-list-empty",children:[(0,X.jsx)("span",{className:"RHT__FT-template-list-empty-icon",children:"\u{1F5C2}\uFE0F"}),(0,X.jsx)("div",{className:"RHT__FT-template-list-empty-title",children:A("toolkit.folderTemplates.settings.emptyState.title")}),(0,X.jsx)("div",{className:"RHT__FT-template-list-empty-description",children:A("toolkit.folderTemplates.settings.emptyState.description")})]}):(0,X.jsxs)(X.Fragment,{children:[o.map((m,y)=>(0,X.jsx)(HP,{template:m,editingTemplate:h,index:y,isEditing:c===y,isAdding:!1,folderSuggestions:r,templateFileOptions:i,onEdit:()=>C.edit(y),onSave:C.save,onCancel:C.cancel,onDelete:()=>C.delete(y),onUpdate:C.update},y)),f&&h&&(0,X.jsx)(HP,{template:h,editingTemplate:h,index:o.length,isEditing:!0,isAdding:!0,folderSuggestions:r,templateFileOptions:i,onEdit:()=>{},onSave:C.save,onCancel:C.cancel,onDelete:()=>{},onUpdate:C.update},"new-template")]})})]})})]})},HP=({template:n,editingTemplate:t,index:e,isEditing:r,isAdding:o=!1,folderSuggestions:i,templateFileOptions:a,onEdit:s,onSave:l,onCancel:u,onDelete:c,onUpdate:d})=>{let f=r&&t?t:n,p=()=>{l()};return r?(0,X.jsx)("div",{className:"RHT__FT-template-item RHT__FT-editing",children:(0,X.jsxs)("div",{className:"RHT__FT-template-form-compact",children:[(0,X.jsxs)("div",{className:"RHT__FT-form-header",children:[(0,X.jsx)("span",{className:"RHT__FT-template-number",children:e+1}),(0,X.jsx)("span",{className:"RHT__FT-form-title",children:o?A("toolkit.folderTemplates.settings.templateForm.addNewTemplate"):A("toolkit.folderTemplates.settings.templateForm.editTemplateConfig")}),(0,X.jsxs)("div",{className:"RHT__FT-form-actions-header",children:[(0,X.jsxs)(Tl,{onClick:p,disabled:!f.Folder.trim()||!f.TemplateFile.trim(),size:"small",className:"RHT__FT-save-button",children:["\u{1F4BE}"," ",A("toolkit.folderTemplates.settings.actions.save")]}),(0,X.jsxs)(Tl,{onClick:u,variant:"outline",size:"small",className:"RHT__FT-cancel-button",children:["\u274C"," ",A("toolkit.folderTemplates.settings.actions.cancel")]})]})]}),(0,X.jsxs)("div",{className:"RHT__FT-form-grid",children:[(0,X.jsxs)("div",{className:"RHT__FT-form-field",children:[(0,X.jsxs)("label",{className:"RHT__FT-form-label",children:["\u{1F4C1}"," ",A("toolkit.folderTemplates.settings.templateForm.targetFolder")]}),(0,X.jsx)(fp,{value:f.Folder,onChange:h=>d("Folder",h),suggestions:i,placeholder:A("toolkit.folderTemplates.settings.templateForm.targetFolderPlaceholder")})]}),(0,X.jsxs)("div",{className:"RHT__FT-form-field",children:[(0,X.jsxs)("label",{className:"RHT__FT-form-label",children:["\u{1F4C4}"," ",A("toolkit.folderTemplates.settings.templateForm.templateFile")]}),(0,X.jsx)(fp,{value:f.TemplateFile,onChange:h=>d("TemplateFile",h),suggestions:a,placeholder:A("toolkit.folderTemplates.settings.templateForm.templateFilePlaceholder")})]}),(0,X.jsxs)("div",{className:"RHT__FT-form-field RHT__FT-form-field-full",children:[(0,X.jsxs)("label",{className:"RHT__FT-form-label",children:["\u{1F3F7}\uFE0F"," ",A("toolkit.folderTemplates.settings.templateForm.fileNameRule"),(0,X.jsx)("span",{className:"RHT__FT-form-label-optional",children:A("toolkit.folderTemplates.settings.templateForm.optional")})]}),(0,X.jsx)(nc,{value:f.FileNameRule||"",onChange:h=>d("FileNameRule",h),placeholder:A("toolkit.folderTemplates.settings.templateForm.fileNameRulePlaceholder")})]})]})]})}):(0,X.jsxs)("div",{className:"RHT__FT-template-item",children:[(0,X.jsx)("div",{className:"RHT__FT-template-status"}),(0,X.jsxs)("div",{className:"RHT__FT-template-row-compact",children:[(0,X.jsxs)("div",{className:"RHT__FT-template-info-compact",children:[(0,X.jsx)("span",{className:"RHT__FT-template-number",children:e+1}),(0,X.jsxs)("div",{className:"RHT__FT-template-path-chain",children:[(0,X.jsx)("span",{className:"RHT__FT-template-folder",children:n.Folder||"/"}),(0,X.jsx)("span",{className:"RHT__FT-template-separator",children:"\u2192"}),(0,X.jsx)("span",{className:"RHT__FT-template-file",children:n.TemplateFile||A("toolkit.folderTemplates.settings.templateForm.noTemplateSelected")}),n.FileNameRule&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)("span",{className:"RHT__FT-template-separator",children:"|"}),(0,X.jsx)("span",{className:"RHT__FT-template-rule",children:n.FileNameRule})]})]})]}),(0,X.jsxs)("div",{className:"RHT__FT-template-actions-compact",children:[(0,X.jsx)(Tl,{onClick:s,size:"small",className:"RHT__FT-edit-button",children:A("toolkit.folderTemplates.settings.actions.edit")}),(0,X.jsx)(Tl,{onClick:c,size:"small",variant:"outline",className:"RHT__FT-delete-button",children:A("toolkit.folderTemplates.settings.actions.delete")})]})]})]})};var _C=B(te());var EC=B(le()),Bn=({checked:n,onChange:t,className:e="",disabled:r=!1,"aria-label":o})=>{let i=_C.useCallback(()=>{r||t(!n)},[n,r,t]),a=_C.useCallback(s=>{r||(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t(!n))},[n,r,t]);return(0,EC.jsx)("div",{className:`rht-toggle ${n?"is-enabled":""} ${r?"is-disabled":""} ${e}`,onClick:i,role:"switch","aria-checked":n,"aria-disabled":r,"aria-label":o,tabIndex:r?-1:0,onKeyDown:a,children:(0,EC.jsx)("div",{className:"rht-toggle-slider"})})};var Ol=B(te());var Ei=B(le()),yp=({value:n,onValueChange:t,options:e,placeholder:r="Select an option",className:o="",error:i})=>{let[a,s]=Ol.useState(!1),l=Ol.useRef(null),u=e.find(c=>c.value===n);return Ol.useEffect(()=>{let c=d=>{l.current&&!l.current.contains(d.target)&&s(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),(0,Ei.jsxs)("div",{className:"rht-select-wrapper",ref:l,children:[(0,Ei.jsxs)("div",{className:`rht-select ${a?"rht-select-open":""} ${i?"rht-select-error":""} ${o}`,onClick:()=>s(!a),children:[(0,Ei.jsx)("span",{className:"rht-select-value",children:u?u.label:r}),(0,Ei.jsx)("span",{className:"rht-select-arrow",children:"\u25BC"})]}),a&&(0,Ei.jsx)("div",{className:"rht-select-dropdown",children:e.map(c=>(0,Ei.jsx)("div",{className:`rht-select-option ${c.value===n?"rht-select-option-selected":""}`,onClick:()=>{t(c.value),s(!1)},children:c.label},c.value))}),i&&(0,Ei.jsx)("div",{className:"rht-select-error-message",children:i})]})};fn();var fo=B(le()),BP=({plugin:n})=>{let{config:t,updateConfig:e}=vp(n,"quickPath"),r=async o=>{try{await e(o)}catch(i){console.error("Failed to update config:",i)}};return(0,fo.jsxs)("div",{className:"rht-toolkit-detail-settings",children:[(0,fo.jsx)(Vt,{name:A("toolkit.quickPath.settings.addEditorMenu.title"),desc:A("toolkit.quickPath.settings.addEditorMenu.description"),children:(0,fo.jsx)(Bn,{checked:t.addEditorMenu,onChange:o=>r({addEditorMenu:o})})}),(0,fo.jsx)(Vt,{name:A("toolkit.quickPath.settings.addFileMenu.title"),desc:A("toolkit.quickPath.settings.addFileMenu.description"),children:(0,fo.jsx)(Bn,{checked:t.addFileMenu,onChange:o=>r({addFileMenu:o})})}),(0,fo.jsx)(Vt,{name:A("toolkit.quickPath.settings.absolutePath.title"),desc:A("toolkit.quickPath.settings.absolutePath.description"),children:(0,fo.jsx)(Bn,{checked:t.useAbsolutePath,onChange:o=>r({useAbsolutePath:o})})}),(0,fo.jsx)(Vt,{name:A("toolkit.quickPath.settings.separator.title"),desc:A("toolkit.quickPath.settings.separator.description"),children:(0,fo.jsx)(yp,{value:t.pathSeparator,onValueChange:o=>r({pathSeparator:o}),options:[{label:A("toolkit.quickPath.settings.separator.newline"),value:`
`},{label:A("toolkit.quickPath.settings.separator.comma"),value:", "},{label:A("toolkit.quickPath.settings.separator.semicolon"),value:"; "}]})})]})};var RC=B(le()),WP=()=>(0,RC.jsx)("div",{className:"rht-toolkit-detail-settings",children:(0,RC.jsx)("h1",{children:"TableEnhancementsSettings"})});_i();var po=B(le()),UP=({app:n,plugin:t,moduleId:e,onNavigateBack:r})=>{let o=()=>{switch(e){case"quickPath":return(0,po.jsx)(BP,{plugin:t});case"tableEnhancements":return(0,po.jsx)(WP,{});case"folderTemplates":return(0,po.jsx)(VP,{plugin:t});default:return null}};return(0,po.jsxs)("div",{className:"rht-toolkit-detail",children:[(0,po.jsxs)("div",{className:"rht-toolkit-detail-header",children:[(0,po.jsxs)("span",{className:"rht-back-button",onClick:r,"aria-label":A("common.back"),children:[(0,po.jsx)(ic,{size:16}),A("common.back")]}),(0,po.jsx)("h2",{children:A(`toolkit.${e}.title`)})]}),(0,po.jsx)("div",{className:"rht-toolkit-detail-content",children:o()})]})};var zo=B(le()),jP=({title:n,icon:t,description:e,actions:r,className:o,children:i})=>(0,zo.jsxs)("div",{className:`rht-card ${o}`,children:[(0,zo.jsxs)("div",{className:"rht-card-header",children:[(0,zo.jsxs)("div",{className:"rht-card-title",children:[t&&(0,zo.jsx)(t,{size:20,className:"rht-card-icon"}),(0,zo.jsx)("h3",{className:"rht-card-title-text",children:n})]}),r&&(0,zo.jsx)("div",{className:"rht-card-actions",children:r})]}),e&&(0,zo.jsx)("p",{className:"rht-card-description",children:e}),i&&(0,zo.jsx)("div",{className:"rht-card-content",children:i})]});$s();var Ri=B(te()),zP=({plugin:n,onActivated:t})=>{let[e,r]=Ri.useState(0),[o,i]=Ri.useState(!1),a=Ri.useRef(),s=Boolean(n.settings.config.developer?.enableCount>0);Ri.useEffect(()=>()=>{n.settings.config.developer?.enabled&&n.updateSettings({config:{...n.settings.config,developer:{...n.settings.config.developer,enabled:!1}}})},[n]);let l=Ri.useCallback(()=>{if(s){n.updateSettings({config:{...n.settings.config,developer:{enabled:!0,lastEnabled:new Date().toISOString(),enableCount:n.settings.config.developer?.enabled?n.settings.config.developer?.enableCount||0:(n.settings.config.developer?.enableCount||0)+1}}}),t();return}r(u=>{let c=u+1;return a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{r(0),i(!1)},1e3),c>=5&&i(!0),c>=7?(n.updateSettings({config:{...n.settings.config,developer:{enabled:!0,lastEnabled:No(),enableCount:(n.settings.config.developer?.enableCount||0)+1}}}),t(),0):c})},[n,t,s]);return{showHint:o&&!s,handleVersionClick:l}};di();_i();var pc={config:{version:"1.0.0",logger:em,developer:{enabled:!1,enableCount:0},menu:{useSubMenu:!0}},toolkit:{}},Cp={quickPath:{icon:lc,iconName:"link"},tableEnhancements:{icon:fc,iconName:"table"},folderTemplates:{icon:ca,iconName:"folder-cog"}};fn();var qo=B(te()),qP=({plugin:n,onNavigateToDetail:t})=>{let[e,r]=(0,qo.useState)([]),[o,i]=(0,qo.useState)(!0),[a,s]=(0,qo.useState)(null),l=(0,qo.useCallback)(()=>{try{let d=Object.entries(Cp).filter(([f])=>f!=="obReader").map(([f,p])=>{let h=f,v=n.getManager(h);return{id:h,icon:p.icon,enabled:v?.isEnabled()??!1,title:A(`toolkit.${h}.title`),description:A(`toolkit.${h}.description`),openSettings:()=>t(h)}}).sort((f,p)=>f.id.localeCompare(p.id));r(d),s(null)}catch(d){s(d instanceof Error?d:new Error("Failed to initialize toolkits"))}finally{i(!1)}},[n]);(0,qo.useEffect)(()=>{l()},[l]);let u=(0,qo.useCallback)(async(d,f)=>{try{let p=n.getManager(d);p&&(f?await p.enable():await p.disable(),r(h=>h.map(v=>v.id===d?{...v,enabled:f}:v)))}catch(p){s(p instanceof Error?p:new Error("Failed to update toolkit"))}},[n]),c=(0,qo.useCallback)(()=>{l()},[l]);return{toolkits:e,updateToolkit:u,loading:o,error:a,refreshToolkits:c}};fn();var qC=B(zC(),1),hs=B(zC(),1),VO=qC.default.default||qC.default;_i();var UO=B(te());_i();var BO=B(te());var Wn=B(le()),_c=({name:n,desc:t,icon:e,children:r,collapsible:o,defaultCollapsed:i})=>{let[a,s]=BO.useState(i);return(0,Wn.jsxs)("div",{className:`rht-overview-setting-item ${o?"is-collapsible":""}`,children:[(0,Wn.jsxs)("div",{className:"rht-overview-setting-item-info",children:[(0,Wn.jsxs)("div",{className:"rht-overview-setting-item-heading",onClick:o?()=>s(!a):void 0,children:[e&&(0,Wn.jsx)("span",{className:"rht-overview-setting-item-icon",children:e}),(0,Wn.jsx)("div",{className:"rht-overview-setting-item-name",children:n}),o&&(0,Wn.jsx)("span",{className:"rht-overview-setting-item-collapse-icon",children:a?(0,Wn.jsx)(ds,{size:16}):(0,Wn.jsx)(cs,{size:16})})]}),t&&(0,Wn.jsx)("div",{className:"rht-overview-setting-item-description",children:t})]}),r&&!a&&(0,Wn.jsx)("div",{className:"rht-overview-setting-item-control",children:r})]})};di();fn();var Lp=B(te());var Lr=B(le()),WO=({plugin:n,logger:t})=>{let[e,r]=Lp.useState(n.settings.config.logger);Lp.useEffect(()=>{r(n.settings.config.logger)},[n.settings.config.logger]);let o=async(a,s)=>{try{let l={...n.settings.config};a.split(".").reduce((u,c,d,f)=>(d===f.length-1?u[c]=s:u[c]={...u[c]},u[c]),l),r(l.logger),await n.updateSettings({config:l}),t.debug(`Updated config ${a}:`,s)}catch(l){t.error(`Failed to update config ${a}:`,l)}},i=Object.entries(Bd).filter(([a,s])=>typeof s=="number").map(([a,s])=>({value:s,label:a}));return(0,Lr.jsxs)(_c,{name:A("common.developer.title"),desc:A("common.developer.description"),collapsible:!0,defaultCollapsed:!0,children:[(0,Lr.jsx)(Vt,{name:A("common.developer.logger.level"),children:(0,Lr.jsx)(yp,{options:i,value:e.level,onValueChange:a=>o("logger.level",Number(a))})}),(0,Lr.jsx)(Vt,{name:A("common.developer.logger.showTimestamp"),children:(0,Lr.jsx)(Bn,{checked:e.showTimestamp,onChange:a=>o("logger.showTimestamp",a)})}),(0,Lr.jsx)(Vt,{name:A("common.developer.logger.showLevel"),children:(0,Lr.jsx)(Bn,{checked:e.showLevel,onChange:a=>o("logger.showLevel",a)})}),(0,Lr.jsx)(Vt,{name:A("common.developer.logger.console"),children:(0,Lr.jsx)(Bn,{checked:e.console,onChange:a=>o("logger.console",a)})}),(0,Lr.jsx)(Vt,{name:A("common.developer.logger.showNotifications"),children:(0,Lr.jsx)(Bn,{checked:e.showNotifications,onChange:a=>o("logger.showNotifications",a)})}),(0,Lr.jsx)(Vt,{name:A("common.developer.logger.noticeTimeout"),children:(0,Lr.jsx)(nc,{type:"number",value:e.noticeTimeout,onChange:a=>o("logger.noticeTimeout",Number(a))})})]})};var ft=B(le()),jO=({plugin:n,logger:t,config:e,onNavigateToDetail:r,onVersionClick:o})=>{let{toolkits:i,updateToolkit:a}=qP({plugin:n,onNavigateToDetail:r}),{showHint:s,handleVersionClick:l}=zP({plugin:n,onActivated:o}),[u,c]=UO.useState(e.menu),d=async(p,h)=>{try{let v={...n.settings.config};p.split(".").reduce((C,m,y,S)=>(y===S.length-1?C[m]=h:C[m]={...C[m]},C[m]),v),await n.updateSettings({config:v}),t.debug(`Updated config ${p}:`,h)}catch(v){t.error(`Failed to update config ${p}:`,v)}},f=async(p,h)=>{try{let v=n.getManager(p);if(!v)throw new Error(`Manager not found for toolkit: ${p}`);h?await v.enable():await v.disable(),await a(p,h)}catch(v){t.error(`Failed to ${h?"enable":"disable"} toolkit ${p}:`,v)}};return(0,ft.jsxs)("div",{className:"rht-toolkit-overview",children:[(0,ft.jsxs)("div",{className:"rht-toolkit-header",children:[(0,ft.jsxs)("div",{className:"rht-toolkit-header-left",children:[(0,ft.jsx)("h2",{children:A("common.overview.title")}),(0,ft.jsx)("p",{children:VO(A("common.overview.description"))})]}),(0,ft.jsxs)("div",{className:"rht-toolkit-header-right",children:[(0,ft.jsxs)("span",{className:"rht-version-text",onClick:l,children:["Version: ",n.manifest.version]}),s&&(0,ft.jsx)("small",{className:"rht-version-hint",children:A("common.overview.version_hint")})]})]}),(0,ft.jsx)(_c,{name:A("common.general.title"),collapsible:!0,defaultCollapsed:!0,children:(0,ft.jsx)(Vt,{name:A("common.general.menu.useSubMenu"),children:(0,ft.jsx)(Bn,{checked:u.useSubMenu,onChange:async p=>{await d("menu.useSubMenu",p),c(h=>({...h,useSubMenu:p}))}})})}),(0,ft.jsx)(_c,{name:A("common.toolkit.title"),desc:A("common.toolkit.description"),collapsible:!0,defaultCollapsed:!1,children:(0,ft.jsx)("div",{className:"rht-toolkit-grid",children:i.map(p=>(0,ft.jsx)(jP,{className:p.id,title:A(`toolkit.${p.id}.title`),icon:p.icon,description:A(`toolkit.${p.id}.description`),actions:(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(Bn,{checked:p.enabled,onChange:h=>f(p.id,h),"aria-label":A("common.toggle_toolkit")}),(0,ft.jsx)("span",{className:"rht-toolkit-settings-btn",onClick:()=>r(p.id),"aria-label":A("common.settings"),children:(0,ft.jsx)(dc,{size:16})})]})},p.id))})}),n.settings.config.developer?.enabled&&(0,ft.jsx)(WO,{plugin:n,logger:t})]})};var ha=B(le()),Ec=class extends zO.PluginSettingTab{constructor(e,r){super(e,r);this.root=null;this.currentView="overview";this.plugin=r,this.logger=Hr.getRootLogger()}display(){let{containerEl:e}=this;e.empty(),this.root||(this.root=(0,$O.createRoot)(e)),this.renderContent()}hide(){this.root&&(this.root.unmount(),this.root=null),this.containerEl.empty(),this.currentView="overview"}renderContent(){this.root?.render((0,ha.jsx)(qO.StrictMode,{children:(0,ha.jsx)("div",{className:"rht-settings-container",children:this.currentView==="overview"?(0,ha.jsx)(ha.Fragment,{children:(0,ha.jsx)(jO,{plugin:this.plugin,logger:this.logger,config:this.plugin.settings.config,onNavigateToDetail:e=>{this.currentView=e,this.renderContent()},onVersionClick:()=>this.renderContent()})}):(0,ha.jsx)(UP,{app:this.app,plugin:this.plugin,moduleId:this.currentView,onNavigateBack:()=>{this.currentView="overview",this.renderContent()}})})}))}};di();var Ip=class{constructor(t){this.managers=new Map;this.toolkitMenu=null;this.menuRegistrations=new Map;this.plugin=t,this.settings={...pc}}async initialize(){await this.loadSettings(),Qe.debug("Plugin manager initialized with settings:",this.settings)}async loadSettings(){try{let t=await this.plugin.loadData();t?(this.settings=this.mergeSettings(t),this.settings.config?.logger&&Hr.initRootLogger(this.settings.config.logger)):(this.settings={...pc},await this.saveSettings())}catch(t){Qe.error("Error loading settings:",t),this.settings={...pc},await this.saveSettings()}}deepMerge(t,e){if(!e||typeof e!="object"||Array.isArray(e))return t;let r={...t};for(let o in e)e.hasOwnProperty(o)&&(r[o]&&typeof r[o]=="object"&&!Array.isArray(r[o])?r[o]=this.deepMerge(r[o],e[o]):r[o]=e[o]);return r}validateAndFilterToolkit(t){return!t||typeof t!="object"?{}:Object.keys(Cp).reduce((r,o)=>(t[o]&&(r[o]=t[o]),r),{})}mergeSettings(t){let e=structuredClone(pc);if(!t||typeof t!="object")return e;t.config&&(e.config=this.deepMerge(e.config,t.config));let r=this.validateAndFilterToolkit(t.toolkit);return Object.keys(r).length>0&&(e.toolkit=this.deepMerge(e.toolkit,r)),e}async saveSettings(){try{await this.plugin.saveData(this.settings),Qe.debug("Settings saved:",this.settings)}catch(t){Qe.error("Error saving settings:",t)}}getSettings(){return this.settings}registerManagers(t){Object.entries(t).forEach(([e,r])=>{if(this.managers.has(e)){Qe.warn(`Manager already registered for module: ${e}`);return}try{let o=new r(this.plugin,e,this.settings);this.managers.set(e,o),o.onload().catch(i=>{Qe.error(`Failed to load manager: ${e}`,i)})}catch(o){Qe.error(`Failed to create manager: ${e}`,o)}}),Qe.info(`Registered managers: ${Object.keys(t)}`)}getManager(t){return this.managers.get(t)}getToolkitMenu(t,e){if(!this.managers.get(e)?.isEnabled()||!this.settings.config.menu.useSubMenu)return t;let o=t.items?.find(i=>i.titleEl?.textContent==="RavenHogwartsToolkit");return o?this.toolkitMenu=o.submenu:t.addItem(i=>{i.setTitle("RavenHogwartsToolkit"),i.setIcon("gavel"),this.toolkitMenu=i.setSubmenu()}),this.toolkitMenu}clearMenuItems(t){try{if(t){if(this.menuRegistrations.delete(t),this.toolkitMenu){let e=this.toolkitMenu.items||[];this.toolkitMenu.items=e.filter(r=>!(r.titleEl?.textContent||"").includes(t))}}else this.menuRegistrations.clear(),this.toolkitMenu&&(this.toolkitMenu.items=[],this.toolkitMenu=null)}catch(e){Qe.error("Error clearing menu items:",e)}}async updateSettings(t){Qe.debug("Updating settings",t),this.settings={...this.settings,...t},t.config?.logger&&Hr.initRootLogger(t.config.logger),await this.saveSettings()}unload(){try{this.clearMenuItems(),this.toolkitMenu=null,this.managers.forEach((t,e)=>{try{t.onunload?.(),Qe.debug(`Unloaded manager: ${e}`)}catch(r){Qe.error(`Error unloading manager: ${e}`,r)}}),this.managers.clear(),this.menuRegistrations.clear()}catch(t){Qe.error("Error during plugin unload:",t)}}get pluginSettings(){return this.settings}};di();fn();$s();var KO=require("obsidian"),ga=class extends KO.Component{constructor(e,r,o){super();this.plugin=e;this.moduleId=r;this.settings=o;this.registeredCommands=[];this.eventRefs=[];this.app=this.plugin.app,this.logger=Hr.getLogger(this.moduleId),this.initPromise=this.initializeModule()}async initializeModule(){if(!this.settings.toolkit[this.moduleId])this.settings.toolkit[this.moduleId]={config:this.getDefaultConfig(),data:{lastModified:No()}};else{let e=this.getDefaultConfig(),r=this.settings.toolkit[this.moduleId].config,o=this.settings.toolkit[this.moduleId].data;this.settings.toolkit[this.moduleId]={config:this.cleanConfig(r,e),data:o}}await this.plugin.saveData(this.settings),this.logger.debug("Module settings initialized:",this.moduleId),this.config=this.settings.toolkit[this.moduleId].config,this.data=this.settings.toolkit[this.moduleId].data}cleanConfig(e,r){if(typeof r!="object"||Array.isArray(r)||r===null)return e??r;let o={};for(let i in r)i in e?o[i]=this.cleanConfig(e[i],r[i]):o[i]=r[i];return o}async onload(){await this.waitForInitialization(),this.isEnabled()&&await this.onModuleLoad()}async onunload(){this.cleanupModule(),this.onModuleUnload()}registerEvent(e){this.isEnabled()&&(super.registerEvent(e),typeof e=="function"&&this.eventRefs.push(e))}unregisterEvents(){this.eventRefs.filter(e=>typeof e=="function").forEach(e=>e()),this.eventRefs=[]}addCommand(e){let r={...e,id:e.id.includes(this.moduleId)?e.id:`${this.moduleId}.${e.id}`,name:`${this.moduleId}: ${e.name}`,checkCallback:o=>o?this.isEnabled():this.isEnabled()&&e.callback?(e.callback(),!0):!1};this.plugin.addCommand(r),this.registeredCommands.push(r.id)}addRibbonIcon(e,r,o){this.plugin.addRibbonIcon(e,r,o)}unregisterCommand(e){let r=`${this.plugin.manifest.id}:${this.moduleId}.${e}`;this.app.commands?.removeCommand?.(r)}unregisterAllCommands(){this.registeredCommands.forEach(e=>{this.unregisterCommand(e)}),this.registeredCommands=[]}addMenuItem(e,r,o={}){if(!this.isPluginEnabled()||!this.isEnabled())return;let a=this.plugin.pluginManager.getSettings().config.menu.useSubMenu,s=e.items?.find(f=>f.titleEl?.textContent==="RavenHogwartsToolkit");if(a){let f=e.items||[];if(f.map((h,v)=>h.titleEl?.textContent?.includes(this.moduleId)?v:-1).filter(h=>h!==-1).reverse().forEach(h=>{f.splice(h,1)}),s?.submenu&&s.submenu.items?.filter(v=>v.titleEl?.textContent?.includes(this.moduleId))?.length>0)return}else if(e.items?.filter(p=>p.titleEl?.textContent?.includes(this.moduleId))?.length>0)return;let{showSeparator:l=!1}=o,c=(Array.isArray(r)?r:[r]).sort((f,p)=>(f.order||0)-(p.order||0)),d=this.plugin.pluginManager.getToolkitMenu(e,this.moduleId);c.forEach(f=>{d.addItem(p=>{p.setTitle(`${this.moduleId}: ${f.title}`),f.icon&&p.setIcon(f.icon),f.callback&&p.onClick(f.callback)})}),l&&d.addSeparator()}async waitForInitialization(){await this.initPromise}async saveSettings(){try{this.settings.toolkit[this.moduleId]={config:this.config,data:this.data},await this.plugin.saveData(this.settings),this.logger.debug("Settings saved for module:",this.moduleId)}catch(e){this.logger.throwError(new Error(`Error saving settings for module: ${this.moduleId}`),e)}}async updateConfig(e){try{this.logger.debug("Updating config for module:",this.moduleId,e);let r={...this.config};this.config={...this.config,...e},this.data.lastModified=new Date().toISOString(),await this.saveSettings(),JSON.stringify(r)!==JSON.stringify(this.config)&&this.onConfigChange?.()}catch(r){this.logger.throwError(new Error(`Error updating config for module: ${this.moduleId}`),r)}}isEnabled(){return this.config.enabled}async enable(){this.isEnabled()||(await this.updateConfig({enabled:!0}),await this.onModuleLoad(),this.onEnable())}async disable(){this.isEnabled()&&(this.cleanupModule(),await this.updateConfig({enabled:!1}),this.onDisable())}onEnable(){this.logger.info("Module enabled:",this.moduleId)}onDisable(){this.logger.info("Module disabled:",this.moduleId)}cleanupModule(){this.unregisterAllCommands(),this.unregisterEvents(),this.plugin.pluginManager.clearMenuItems(this.moduleId),this.onModuleCleanup?.(),this.logger.debug(`Cleaned up module: ${this.moduleId}`)}t(e,...r){return A(e,...r)}async getData(){return await this.waitForInitialization(),this.data}async updateData(e){try{this.logger.debug("Updating data for module:",this.moduleId,e),this.data={...this.data,...e},this.data.lastModified=new Date().toISOString(),await this.saveSettings()}catch(r){this.logger.throwError(new Error(`Error updating data for module: ${this.moduleId}`),r)}}getConfig(){return this.config}async setConfig(e){await this.updateConfig(e)}getApp(){return this.app}getPlugin(){return this.plugin}registerEventHandlers(){this.isEnabled()}isPluginEnabled(){return this.plugin.app.plugins.enabledPlugins.has(this.plugin.manifest.id)}};var Bt=require("obsidian");var at=require("obsidian"),Dp=class{constructor(t,e){this.app=t;this.logger=e}getDefaultTemplatesFolderPath(){if(this.isCoreTemplatePluginEnabled()){let t=this.app.internalPlugins.plugins.templates.instance.options.folder;if(t&&t.trim())return t}return"templates"}isCoreTemplatePluginEnabled(){return this.app.internalPlugins.plugins.templates&&this.app.internalPlugins.plugins.templates.enabled}async getTemplateFiles(t){if(!t.trim())return[];let e=(0,at.normalizePath)(t),r=this.app.vault.getAbstractFileByPath(e);if(!r||!(r instanceof at.TFolder))return[];let o=[],i=a=>{for(let s of a.children)s instanceof at.TFile&&s.extension==="md"?o.push(s):s instanceof at.TFolder&&i(s)};return i(r),o}findMatchingTemplate(t,e){let r=(0,at.normalizePath)(t),o=e.sort((i,a)=>a.Folder.length-i.Folder.length);for(let i of o){let a=(0,at.normalizePath)(i.Folder);if(r===a)return i;if(!(a===""||a==="/")&&a.length>0&&r.startsWith(a+"/"))return i}for(let i of o){let a=(0,at.normalizePath)(i.Folder);if(a===""||a==="/")return i}return null}async getTemplateFile(t){if(!t.trim())return null;let e=(0,at.normalizePath)(t),r=this.app.vault.getAbstractFileByPath(e);return r instanceof at.TFile?r:(this.logger.warn(`Template file not found: ${e}`),null)}async readTemplateContent(t){try{return await this.app.vault.read(t)}catch(e){throw this.logger.error(`Failed to read template file: ${t.path}`,e),new Error(`\u65E0\u6CD5\u8BFB\u53D6\u6A21\u677F\u6587\u4EF6: ${t.path}`)}}generateTemplateVariables(t,e){let r=new Date,o={"{{date}}":r.toISOString().split("T")[0],"{{time}}":r.toTimeString().split(" ")[0],"{{title}}":t||""};return e&&Object.assign(o,e),o}replaceTemplateVariables(t,e){let r=t;r=this.replaceDynamicDateTimeVariables(r);for(let[o,i]of Object.entries(e))if(i!==void 0){let a=new RegExp(this.escapeRegExp(o),"g");r=r.replace(a,i)}return r}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}replaceDynamicDateTimeVariables(t){let e=new Date,r=/\{\{(date|time):([^}]+)\}\}/g;return t.replace(r,(o,i,a)=>{try{return this.formatDate(e,a.trim())}catch(s){return this.logger.warn(`Failed to format date/time: ${o}`,s),o}})}formatDate(t,e){let r={YYYY:t.getFullYear().toString(),YY:t.getFullYear().toString().slice(-2),MM:String(t.getMonth()+1).padStart(2,"0"),M:(t.getMonth()+1).toString(),DD:String(t.getDate()).padStart(2,"0"),D:t.getDate().toString(),HH:String(t.getHours()).padStart(2,"0"),H:t.getHours().toString(),hh:String(t.getHours()%12||12).padStart(2,"0"),h:(t.getHours()%12||12).toString(),mm:String(t.getMinutes()).padStart(2,"0"),m:t.getMinutes().toString(),ss:String(t.getSeconds()).padStart(2,"0"),s:t.getSeconds().toString(),A:t.getHours()>=12?"PM":"AM",a:t.getHours()>=12?"pm":"am"},o=e,i=Object.keys(r).sort((a,s)=>s.length-a.length);for(let a of i)o=o.replace(new RegExp(this.escapeRegExp(a),"g"),r[a]);return o}generateFileName(t,e,r){return!t.FileNameRule||!t.FileNameRule.trim()?r:this.replaceTemplateVariables(t.FileNameRule,e).replace(/[<>:"/\\|?*]/g,"-")}async createFileFromTemplate(t,e,r,o,i){try{let a=(0,at.normalizePath)(`${o}/${r.TemplateFile}`),s=await this.getTemplateFile(a);if(!s)return new at.Notice(`\u6A21\u677F\u6587\u4EF6\u4E0D\u5B58\u5728: ${a}`),null;let l=await this.readTemplateContent(s),u=this.generateTemplateVariables(e,i),c=this.replaceTemplateVariables(l,u),d=this.generateFileName(r,u,e),f=(0,at.normalizePath)(`${t}/${d}.md`);if(this.app.vault.getAbstractFileByPath(f))return new at.Notice(`\u6587\u4EF6\u5DF2\u5B58\u5728: ${f}`),null;let h=await this.app.vault.create(f,c);return this.logger.info(`Created file from template: ${f}`),new at.Notice(`\u5DF2\u521B\u5EFA\u6587\u4EF6: ${d}.md`),h}catch(a){return this.logger.error("Failed to create file from template",a),new at.Notice(`\u521B\u5EFA\u6587\u4EF6\u5931\u8D25: ${a.message}`),null}}async validateTemplate(t,e){let r=[];if((!t.Folder||!t.Folder.trim())&&r.push("\u6587\u4EF6\u5939\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A"),(!t.TemplateFile||!t.TemplateFile.trim())&&r.push("\u6A21\u677F\u6587\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"),t.Folder&&t.Folder.trim()){let o=(0,at.normalizePath)(t.Folder),i=this.app.vault.getAbstractFileByPath(o);(!i||!(i instanceof at.TFolder))&&r.push(`\u76EE\u6807\u6587\u4EF6\u5939\u4E0D\u5B58\u5728: ${o}`)}if(t.TemplateFile&&t.TemplateFile.trim()&&e){let o=(0,at.normalizePath)(`${e}/${t.TemplateFile}`);await this.getTemplateFile(o)||r.push(`\u6A21\u677F\u6587\u4EF6\u4E0D\u5B58\u5728: ${o}`)}return{isValid:r.length===0,errors:r}}async getTemplateFileOptions(t){let e=await this.getTemplateFiles(t),r=(0,at.normalizePath)(t);return e.map(o=>{let i=o.path.startsWith(r+"/")?o.path.substring(r.length+1):o.path;return{value:i,label:`${o.basename} (${i})`}})}getFolderOptions(){let t=[];return this.app.vault.getAllLoadedFiles().forEach(e=>{e instanceof at.TFolder&&t.push({value:e.path,label:e.path||"/"})}),t.sort((e,r)=>e.value.localeCompare(r.value)),t}};var YO={enabled:!0,templatesFolderPath:"",ignoredFolders:[]};var Ap=class extends ga{constructor(e,r,o){super(e,r,o);this.processingFiles=new Map;this.lastProcessedTime=0;this.DEBOUNCE_DELAY=1e3;this.templatesService=new Dp(this.app,this.logger)}getDefaultConfig(){return YO}async onModuleLoad(){this.logger.info("Loading folder templates manager"),this.registerCommands(),this.registerEventHandlers()}onModuleUnload(){this.logger.info("Unloading folder templates manager"),this.unregisterEventHandlers()}onModuleCleanup(){}registerCommands(){}registerEventHandlers(){this.isEnabled()&&this.app.workspace.onLayoutReady(()=>{this.updateTriggerFileOnCreation()})}unregisterEventHandlers(){this.triggerOnFileCreationEvent&&(this.app.vault.offref(this.triggerOnFileCreationEvent),this.triggerOnFileCreationEvent=void 0)}updateTriggerFileOnCreation(){this.isEnabled()?(this.triggerOnFileCreationEvent=this.app.vault.on("create",e=>{e instanceof Bt.TFile&&this.handleFileCreate(e)}),this.registerEvent(this.triggerOnFileCreationEvent)):this.unregisterEventHandlers()}async handleFileCreate(e){if(!(e instanceof Bt.TFile)||e.extension!=="md")return;let r=e.path,o=Date.now();if(o-this.lastProcessedTime<this.DEBOUNCE_DELAY){this.logger.debug(`File creation event too soon after last processing, skipping: ${r}`);return}if(this.processingFiles.has(r)){this.logger.debug(`File ${r} is already being processed, skipping`);return}this.lastProcessedTime=o;let i=this.processFileCreation(e);this.processingFiles.set(r,i);try{await i}finally{this.processingFiles.delete(r)}}async processFileCreation(e){try{if(!await this.validateFileExistence(e))return;let o=await this.validateAndPrepareFile(e);if(!o)return;let i=await this.findMatchingTemplate(o);if(!i)return;await this.executeTemplateApplicationInProcess(i)}catch(r){this.logger.error("Error processing file creation:",r)}}async validateFileExistence(e){let r=this.app.vault.getAbstractFileByPath(e.path);if(!r||!(r instanceof Bt.TFile))return this.logger.debug(`File no longer exists, skipping: ${e.path}`),!1;let o=1e5;return e.stat.size>o?(this.logger.debug(`Skipped template application for ${e.path} because file size exceeds ${o} bytes`),!1):!0}async validateAndPrepareFile(e){let r=e.parent?.path||"",o=this.data?.templates||[];return o.length===0?(this.logger.debug("No templates configured"),null):this.isFolderIgnored(r)?(this.logger.debug(`Folder is in ignored list, skipping template application: ${r}`),null):{originalFile:e,folderPath:r,templates:o,fileName:e.basename}}isFolderIgnored(e){let r=this.config?.ignoredFolders||[];if(r.length===0)return!1;let o=(0,Bt.normalizePath)(e);for(let i of r){let a=(0,Bt.normalizePath)(i);if(o===a||a.length>0&&o.startsWith(a+"/")||(a===""||a==="/")&&o==="")return!0}return!1}async findMatchingTemplate(e){let r=this.templatesService.findMatchingTemplate(e.folderPath,e.templates);if(!r)return this.logger.debug(`No matching template found for folder: ${e.folderPath}`),null;let o=this.config?.templatesFolderPath||this.templatesService.getDefaultTemplatesFolderPath();if(!o)return this.logger.warn("Templates folder path not configured"),null;let i=this.templatesService.generateTemplateVariables(e.fileName),a=this.convertTemplateVariables(i);return{...e,matchingTemplate:r,templatesFolderPath:o,variables:a}}async executeTemplateApplicationInProcess(e){let{originalFile:r,matchingTemplate:o,templatesFolderPath:i,variables:a,fileName:s}=e;try{await new Promise(d=>setTimeout(d,300));let l=this.app.vault.getAbstractFileByPath(r.path);if(!l||!(l instanceof Bt.TFile)){this.logger.debug(`File no longer exists, skipping: ${r.path}`);return}let u=await this.prepareTemplateContent(o,i,a);if(!u)return;let c=this.templatesService.generateFileName(o,a,s);if(c!==s){let d=await this.renameFileBeforeTemplateApplication(l,c);d?l=d:this.logger.warn(`File rename failed, continuing with original file: ${l.path}`)}await this.app.vault.process(l,d=>d.trim().length>0?(this.logger.debug(`File already has content, skipping template application: ${l.path}`),d):(this.logger.info(`Applied template to file: ${l.path}`),u.processedContent)),new Bt.Notice(`\u5DF2\u5E94\u7528\u6A21\u677F\u5230\u6587\u4EF6: ${l.name}`)}catch(l){this.handleProcessingError(l,r.path)}}async prepareTemplateContent(e,r,o){try{let i=`${r}/${e.TemplateFile}`,a=await this.templatesService.getTemplateFile(i);if(!a)return this.logger.warn(`Template file not found: ${i}`),null;let s=await this.templatesService.readTemplateContent(a);return{processedContent:this.templatesService.replaceTemplateVariables(s,o)}}catch(i){return this.logger.error("Failed to prepare template content:",i),null}}async renameFileBeforeTemplateApplication(e,r){let o=e.parent?.path||"",i=(0,Bt.normalizePath)(o?`${o}/${r}.md`:`${r}.md`);if(this.app.vault.getAbstractFileByPath(i))return this.logger.warn(`Target file already exists: ${i}`),new Bt.Notice(`\u76EE\u6807\u6587\u4EF6\u5DF2\u5B58\u5728: ${r}.md`),null;try{await this.app.vault.rename(e,i),this.logger.info(`File renamed from ${e.name} to ${r}.md`);let s=this.app.vault.getAbstractFileByPath(i);return s instanceof Bt.TFile?s:(this.logger.error(`Failed to get renamed file: ${i}`),null)}catch(s){return this.logger.error(`Failed to rename file from ${e.path} to ${i}:`,s),new Bt.Notice(`\u6587\u4EF6\u91CD\u547D\u540D\u5931\u8D25: ${s instanceof Error?s.message:String(s)}`),null}}async renameFileAfterTemplateApplication(e,r){let o=e.parent?.path||"",i=(0,Bt.normalizePath)(o?`${o}/${r}.md`:`${r}.md`);if(this.app.vault.getAbstractFileByPath(i)){this.logger.warn(`Target file already exists: ${i}`),new Bt.Notice(`\u76EE\u6807\u6587\u4EF6\u5DF2\u5B58\u5728: ${r}.md`);return}try{await this.app.vault.rename(e,i),this.logger.info(`File renamed from ${e.name} to ${r}.md`)}catch(s){this.logger.error(`Failed to rename file from ${e.path} to ${i}:`,s),new Bt.Notice(`\u6587\u4EF6\u91CD\u547D\u540D\u5931\u8D25: ${s instanceof Error?s.message:String(s)}`)}}handleProcessingError(e,r){if(e.code==="ENOENT"){this.logger.debug(`File operation failed due to ENOENT, likely deleted by another process: ${r}`);return}if(e instanceof Error&&e.message.includes("no such file or directory")){this.logger.debug(`File operation failed, file likely deleted by another process: ${r}`);return}this.logger.error(`Failed to process file ${r}:`,e),!e.code&&!e.message.includes("no such file")&&!e.message.includes("ENOENT")&&new Bt.Notice(`\u5904\u7406\u6587\u4EF6\u5931\u8D25: ${e instanceof Error?e.message:String(e)}`)}convertTemplateVariables(e){let r={};for(let[o,i]of Object.entries(e))i!==void 0&&(r[o]=i);return r}onConfigChange(){this.unregisterEventHandlers(),this.registerEventHandlers()}getTemplatesService(){return this.templatesService}};var QO=require("obsidian");var XO={enabled:!0,useAbsolutePath:!1,pathSeparator:`
`,addEditorMenu:!0,addFileMenu:!0};var Fp=class extends ga{getDefaultConfig(){return XO}async onModuleLoad(){this.logger.info("Loading quick path manager"),this.basePath=this.app.vault.adapter.getBasePath()?.replace(/\\/g,"/")||"",this.registerCommands(),this.registerEventHandlers()}onModuleUnload(){this.logger.info("Unloading quick path manager")}onModuleCleanup(){}registerCommands(){this.addCommand({id:"copyPath",name:this.t("toolkit.quickPath.command.copy_filePath"),callback:()=>{let e=this.app.workspace.getActiveFile();if(e){let r=this.getPath(e);this.copyToClipboard(r)}}}),this.addCommand({id:"copyParentPath",name:this.t("toolkit.quickPath.command.copy_folderPath"),callback:()=>{let e=this.app.workspace.getActiveFile(),r=e&&this.getParentPath(e);r?this.copyToClipboard(r):this.logger.notice(this.t("toolkit.quickPath.status.no_parent_path"))}})}registerEventHandlers(){this.isEnabled()&&(this.config.addFileMenu&&(this.registerEvent(this.app.workspace.on("file-menu",this.handleFileMenu.bind(this))),this.registerEvent(this.app.workspace.on("files-menu",this.handleFilesMenu.bind(this)))),this.config.addEditorMenu&&this.registerEvent(this.app.workspace.on("editor-menu",this.handleEditorMenu.bind(this))))}handleFileMenu(e,r){this.isEnabled()&&this.config.addFileMenu&&(r instanceof QO.TFolder?this.addMenuItem(e,{title:this.t("toolkit.quickPath.file_menu.copy_folderPath"),icon:"folder-closed",callback:()=>{let o=this.getPath(r);this.copyToClipboard(o)}}):this.addMenuItem(e,{title:this.t("toolkit.quickPath.file_menu.copy_filePath"),icon:"file-text",callback:()=>{let o=this.getPath(r);this.copyToClipboard(o)}}))}handleFilesMenu(e,r){this.isEnabled()&&this.addMenuItem(e,{title:this.t("toolkit.quickPath.file_menu.copy_filesPath"),icon:"copy",callback:()=>{let o=r.map(i=>this.getPath(i)).join(this.config.pathSeparator||`
`);this.copyToClipboard(o)}})}handleEditorMenu(e,r){this.isEnabled()&&this.config.addEditorMenu&&this.addMenuItem(e,[{title:this.t("toolkit.quickPath.editor_menu.paste_filePath"),icon:"copy",order:1,callback:()=>{let o=this.app.workspace.getActiveFile();if(o){let i=this.getPath(o);this.copyToClipboard(i,!1),r.replaceSelection(i)}}},{title:this.t("toolkit.quickPath.editor_menu.paste_folderPath"),icon:"folder",order:2,callback:()=>{let o=this.app.workspace.getActiveFile(),i=o&&this.getParentPath(o);i?(this.copyToClipboard(i,!1),r.replaceSelection(i)):this.logger.notice(this.t("toolkit.quickPath.status.no_parent_path"))}}],{showSeparator:!0})}getParentPath(e){let r=this.config.useAbsolutePath?`${this.basePath}/${e.path}`:e.path,o=r.lastIndexOf("/");return o===-1?null:r.substring(0,o)}getPath(e){return this.config.useAbsolutePath?`${this.basePath}/${e.path}`:e.path}copyToClipboard(e,r=!0){navigator.clipboard.writeText(e).then(()=>{this.logger.debug("Copied to clipboard:",e),r&&this.logger.notice(this.t("toolkit.quickPath.status.copy_success"))}).catch(o=>{this.logger.error("Failed to copy to clipboard",o),r&&this.logger.notice(this.t("toolkit.quickPath.status.copy_failed"))})}onConfigChange(){this.unregisterEvents(),this.registerEventHandlers()}};Rc();$s();di();async function rL(n,t){try{await this.app.fileManager.processFrontMatter(n,e=>{t(e)})}catch(e){Qe.error(`Failed to update front matter for file ${n.path}: ${e.message}`)}}async function nL(n,t,e){try{await this.app.fileManager.processFrontMatter(n,r=>{if(t in r){let o=r[t];r[e]=o,delete r[t]}})}catch(r){Qe.error(`Failed to replace front matter key from ${t} to ${e} for file ${n.path}: ${r.message}`)}}var Jt=[];for(let n=0;n<256;++n)Jt.push((n+256).toString(16).slice(1));function oL(n,t=0){return(Jt[n[t+0]]+Jt[n[t+1]]+Jt[n[t+2]]+Jt[n[t+3]]+"-"+Jt[n[t+4]]+Jt[n[t+5]]+"-"+Jt[n[t+6]]+Jt[n[t+7]]+"-"+Jt[n[t+8]]+Jt[n[t+9]]+"-"+Jt[n[t+10]]+Jt[n[t+11]]+Jt[n[t+12]]+Jt[n[t+13]]+Jt[n[t+14]]+Jt[n[t+15]]).toLowerCase()}var $C,iH=new Uint8Array(16);function KC(){if(!$C){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$C=crypto.getRandomValues.bind(crypto)}return $C(iH)}var aH=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),YC={randomUUID:aH};function sH(n,t,e){if(YC.randomUUID&&!t&&!n)return YC.randomUUID();n=n||{};let r=n.random??n.rng?.()??KC();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let o=0;o<16;++o)t[e+o]=r[o];return t}return oL(r)}var XC=sH;var Tc=class{constructor(t={}){this.defaultOptions={prefix:"",length:8,charset:"0123456789abcdefghijklmnopqrstuvwxyz",separator:"-",timePrefix:!1,uppercase:!1};this.options={...this.defaultOptions,...t}}generateRandomString(t){if(t<=0)return"";let r=XC().replace(/-/g,"");if(this.options.charset===this.defaultOptions.charset)return r.slice(0,t);{let o="",i=this.options.charset,a=i.length;for(let s=0;s<t;s++){let l=parseInt(r.slice(s*2,s*2+2),16);o+=i[l%a]}return o}}generate(){let t="";return this.options.timePrefix&&(t+=Date.now().toString(36),this.options.prefix&&(t+=this.options.separator)),this.options.prefix&&(t+=this.options.prefix),(this.options.prefix||this.options.timePrefix)&&this.options.separator&&(t+=this.options.separator),t+=this.generateRandomString(this.options.length),this.options.uppercase?t.toUpperCase():t}updateOptions(t){this.options={...this.options,...t}}reset(){this.options={...this.defaultOptions}}},KQ=new Tc;var Ws=require("obsidian");var Mp=class{constructor(t,e){this.logger=t,this.config={preserveFormat:!1,parseInlineStyles:!0,parseCaption:!1,delimiter:"|",...e}}parseTables(t,e){try{let r=[],o=t.split(`
`),i={...this.config,...e};for(let a=0;a<o.length;a++)if(this.isTableHeader(o[a],i)&&this.isTableAlignment(o[a+1],i))try{let s={filePath:"",startLine:a,endLine:a},l=this.parseTable(o.slice(a).join(`
`),s);r.push(l),a=l.position.endLine}catch(s){this.logger.error("Parse table error:",s)}return r}catch(r){return this.logger.error("Parse tables error:",r),[]}}parseTable(t,e){let r=t.split(`
`),o=this.parseHeaders(r[0]),i=this.parseAlignments(r[1]),a=[],s=e.startLine+1,l="";for(let c=2;c<r.length;c++){let d=r[c].trim();if(d===""){s=e.startLine+c-1;break}if(d.startsWith("^")){l=d.substring(1),s=e.startLine+c;break}if(!this.isTableRow(d)){s=e.startLine+c-1;break}a.push(this.parseRow(d)),s=e.startLine+c}let u={headers:o.map((c,d)=>({field:`col${d+1}`,content:c,alignment:i[d]})),cells:a.map(c=>c.map((d,f)=>({content:d,alignment:i[f]}))),position:{...e,endLine:s},referenceId:l};return this.validateTable(u)||this.logger.throwError(new Error("Invalid table structure")),u}validateTable(t){try{if(!t.headers||!t.cells||t.headers.length===0)return!1;let e=t.headers.length;return t.cells.every(r=>r.length===e)}catch(e){return this.logger.error("Validate table error:",e),!1}}isTableHeader(t,e){if(!t)return!1;let r=e.delimiter||"|",o=t.trim();if(!o.startsWith(r)||!o.endsWith(r))return!1;let i=o.split(r).slice(1,-1).map(a=>a.trim());return i.length>0&&!i.every(a=>a==="")}isTableAlignment(t,e){if(!t)return!1;let r=e.delimiter||"|",o=t.trim();return!o.startsWith(r)||!o.endsWith(r)?!1:o.split(r).map(a=>a.trim()).filter(a=>a!=="").every(a=>/^:?-+:?$/.test(a))}isTableRow(t){let e=t.trim();return e.startsWith("|")&&e.endsWith("|")}parseHeaders(t){let e=this.config.delimiter||"|";return t.split(e).slice(1,-1).map(r=>r.trim())}parseAlignments(t){return t.split(this.config.delimiter||"|").map(e=>e.trim()).filter(e=>e!=="").map(e=>e.startsWith(":")&&e.endsWith(":")?"center":e.endsWith(":")?"right":"left")}parseRow(t){let e=this.config.delimiter||"|";return t.split(e).slice(1,-1).map(r=>r.trim())}};var Np=class{constructor(t,e){this.logger=t,this.config={preserveFormat:!1,parseInlineStyles:!0,parseCaption:!1,delimiter:"|",...e}}generateFromAgGrid(t,e,r,o){try{let a=e.getAllDisplayedColumns().map(c=>c.getColDef()),s=this.generateHeaders(a),l=[];t.forEachNode(c=>{c.data&&l.push(this.generateCells(c.data,a))});let u={headers:s,cells:l,position:r,referenceId:o};return this.validateTable(u)||this.logger.throwError(new Error("Invalid table structure")),u}catch(i){this.logger.throwError(new Error("Generate from AG Grid error"),i)}}generateTableText(t){try{let e=this.generateHeaderRow(t.headers),r=this.generateAlignmentRow(t.headers),o=t.cells.map(a=>this.generateDataRow(a)),i=[e,r,...o];return t.referenceId&&i.push(`^${t.referenceId}`),i.join(`
`)}catch(e){this.logger.throwError(new Error("Generate table text error"),e)}}generateHeaders(t){return t.map(e=>({field:e.field||"",content:(e.headerName||e.field||"").trim(),alignment:this.getColumnAlignment(e)}))}generateCells(t,e){return e.map(r=>({content:this.formatCellValue(t[r.field||""],r),alignment:this.getColumnAlignment(r)}))}generateHeaderRow(t){let e=this.config.delimiter||"|",r=t.map(o=>` ${o.content} `);return`${e}${r.join(e)}${e}`}generateAlignmentRow(t){let e=this.config.delimiter||"|",r=t.map(o=>{let a=o.content.length,s=Math.max(3,a);switch(o.alignment){case"center":return`:${"-".repeat(s-2)}:`;case"right":return`${"-".repeat(s-1)}:`;default:return`${"-".repeat(s)}`}});return`${e} ${r.join(` ${e} `)} ${e}`}generateDataRow(t){let e=this.config.delimiter||"|",r=t.map(o=>` ${o.content} `);return`${e}${r.join(e)}${e}`}getColumnAlignment(t){if(!t.type)return"left";let e=Array.isArray(t.type)?t.type[0]:t.type;if(!e)return"left";switch(e.toLowerCase()){case"numericcolumn":case"number":return"right";case"centeraligned":return"center";default:return"left"}}formatCellValue(t,e){return t==null?"":typeof t=="number"?t.toString():typeof t=="boolean"?t?"true":"false":t instanceof Date?t.toISOString():t.toString()}validateTable(t){try{if(!t.headers||!t.cells||t.headers.length===0)return!1;let e=t.headers.length;return t.cells.every(r=>r.length===e)}catch(e){return this.logger.error("Validate table error:",e),!1}}};$s();var lH=Math.pow(10,8)*24*60*60*1e3,JQ=-lH,Gp=6048e5,iL=864e5,kp=6e4,Hp=36e5,aL=1e3;var uH=3600;var sL=uH*24,ZQ=sL*7,cH=sL*365.2425,dH=cH/12,eJ=dH*3,QC=Symbol.for("constructDateFrom");function Oe(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&QC in n?n[QC](t):n instanceof Date?new n.constructor(t):new Date(t)}function ie(n,t){return Oe(t||n,n)}function Vp(n,t,e){let r=ie(n,e?.in);return isNaN(t)?Oe(e?.in||n,NaN):(t&&r.setDate(r.getDate()+t),r)}var fH={};function jn(){return fH}function qr(n,t){let e=jn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,o=ie(n,t?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function go(n,t){return qr(n,{...t,weekStartsOn:1})}function Bp(n,t){let e=ie(n,t?.in),r=e.getFullYear(),o=Oe(e,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);let i=go(o),a=Oe(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);let s=go(a);return e.getTime()>=i.getTime()?r+1:e.getTime()>=s.getTime()?r:r-1}function vs(n){let t=ie(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function Il(n,...t){let e=Oe.bind(null,n||t.find(r=>typeof r=="object"));return t.map(e)}function JC(n,t){let e=ie(n,t?.in);return e.setHours(0,0,0,0),e}function Wp(n,t,e){let[r,o]=Il(e?.in,n,t),i=JC(r),a=JC(o),s=+i-vs(i),l=+a-vs(a);return Math.round((s-l)/iL)}function lL(n,t){let e=Bp(n,t),r=Oe(t?.in||n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),go(r)}function uL(n,t){let e=+ie(n)-+ie(t);return e<0?-1:e>0?1:e}function cL(n,t){let e=+ie(n)-+ie(t);return e>0?-1:e<0?1:e}function dL(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Dl(n){return!(!dL(n)&&typeof n!="number"||isNaN(+ie(n)))}function pL(n,t,e){let[r,o]=Il(e?.in,n,t),i=fL(r,o),a=Math.abs(Wp(r,o));r.setDate(r.getDate()-i*a);let s=Number(fL(r,o)===-i),l=i*(a-s);return l===0?0:l}function fL(n,t){let e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function Up(n){return t=>{let r=(n?Math[n]:Math.trunc)(t);return r===0?0:r}}function hL(n,t,e){let[r,o]=Il(e?.in,n,t),i=(+r-+o)/Hp;return Up(e?.roundingMethod)(i)}function gL(n,t){return+ie(n)-+ie(t)}function vL(n,t,e){let r=gL(n,t)/kp;return Up(e?.roundingMethod)(r)}function mL(n,t){let e=ie(n,t?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}var pH={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yL=(n,t,e)=>{let r,o=pH[n];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function jp(n){return(t={})=>{let e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}var hH={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gH={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vH={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},CL={date:jp({formats:hH,defaultWidth:"full"}),time:jp({formats:gH,defaultWidth:"full"}),dateTime:jp({formats:vH,defaultWidth:"full"})};var mH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wL=(n,t,e,r)=>mH[n];function Al(n){return(t,e)=>{let r=e?.context?String(e.context):"standalone",o;if(r==="formatting"&&n.formattingValues){let a=n.defaultFormattingWidth||n.defaultWidth,s=e?.width?String(e.width):a;o=n.formattingValues[s]||n.formattingValues[a]}else{let a=n.defaultWidth,s=e?.width?String(e.width):n.defaultWidth;o=n.values[s]||n.values[a]}let i=n.argumentCallback?n.argumentCallback(t):t;return o[i]}}var yH={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},CH={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wH={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},SH={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},_H={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},EH={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},RH=(n,t)=>{let e=Number(n),r=e%100;if(r>20||r<10)switch(r%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},SL={ordinalNumber:RH,era:Al({values:yH,defaultWidth:"wide"}),quarter:Al({values:CH,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Al({values:wH,defaultWidth:"wide"}),day:Al({values:SH,defaultWidth:"wide"}),dayPeriod:Al({values:_H,defaultWidth:"wide",formattingValues:EH,defaultFormattingWidth:"wide"})};function Fl(n){return(t,e={})=>{let r=e.width,o=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=t.match(o);if(!i)return null;let a=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?xH(s,d=>d.test(a)):TH(s,d=>d.test(a)),u;u=n.valueCallback?n.valueCallback(l):l,u=e.valueCallback?e.valueCallback(u):u;let c=t.slice(a.length);return{value:u,rest:c}}}function TH(n,t){for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function xH(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function _L(n){return(t,e={})=>{let r=t.match(n.matchPattern);if(!r)return null;let o=r[0],i=t.match(n.parsePattern);if(!i)return null;let a=n.valueCallback?n.valueCallback(i[0]):i[0];a=e.valueCallback?e.valueCallback(a):a;let s=t.slice(o.length);return{value:a,rest:s}}}var PH=/^(\d+)(th|st|nd|rd)?/i,OH=/\d+/i,LH={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},IH={any:[/^b/i,/^(a|c)/i]},DH={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},AH={any:[/1/i,/2/i,/3/i,/4/i]},FH={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},bH={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MH={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},NH={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},GH={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kH={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},EL={ordinalNumber:_L({matchPattern:PH,parsePattern:OH,valueCallback:n=>parseInt(n,10)}),era:Fl({matchPatterns:LH,defaultMatchWidth:"wide",parsePatterns:IH,defaultParseWidth:"any"}),quarter:Fl({matchPatterns:DH,defaultMatchWidth:"wide",parsePatterns:AH,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Fl({matchPatterns:FH,defaultMatchWidth:"wide",parsePatterns:bH,defaultParseWidth:"any"}),day:Fl({matchPatterns:MH,defaultMatchWidth:"wide",parsePatterns:NH,defaultParseWidth:"any"}),dayPeriod:Fl({matchPatterns:GH,defaultMatchWidth:"any",parsePatterns:kH,defaultParseWidth:"any"})};var xc={code:"en-US",formatDistance:yL,formatLong:CL,formatRelative:wL,localize:SL,match:EL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function RL(n,t){let e=ie(n,t?.in);return Wp(e,mL(e))+1}function zp(n,t){let e=ie(n,t?.in),r=+go(e)-+lL(e);return Math.round(r/Gp)+1}function bl(n,t){let e=ie(n,t?.in),r=e.getFullYear(),o=jn(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Oe(t?.in||n,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);let s=qr(a,t),l=Oe(t?.in||n,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);let u=qr(l,t);return+e>=+s?r+1:+e>=+u?r:r-1}function TL(n,t){let e=jn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,o=bl(n,t),i=Oe(t?.in||n,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),qr(i,t)}function qp(n,t){let e=ie(n,t?.in),r=+qr(e,t)-+TL(e,t);return Math.round(r/Gp)+1}function Fe(n,t){let e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}var Ti={y(n,t){let e=n.getFullYear(),r=e>0?e:1-e;return Fe(t==="yy"?r%100:r,t.length)},M(n,t){let e=n.getMonth();return t==="M"?String(e+1):Fe(e+1,2)},d(n,t){return Fe(n.getDate(),t.length)},a(n,t){let e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return Fe(n.getHours()%12||12,t.length)},H(n,t){return Fe(n.getHours(),t.length)},m(n,t){return Fe(n.getMinutes(),t.length)},s(n,t){return Fe(n.getSeconds(),t.length)},S(n,t){let e=t.length,r=n.getMilliseconds(),o=Math.trunc(r*Math.pow(10,e-3));return Fe(o,t.length)}};var Ml={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ZC={G:function(n,t,e){let r=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){let r=n.getFullYear(),o=r>0?r:1-r;return e.ordinalNumber(o,{unit:"year"})}return Ti.y(n,t)},Y:function(n,t,e,r){let o=bl(n,r),i=o>0?o:1-o;if(t==="YY"){let a=i%100;return Fe(a,2)}return t==="Yo"?e.ordinalNumber(i,{unit:"year"}):Fe(i,t.length)},R:function(n,t){let e=Bp(n);return Fe(e,t.length)},u:function(n,t){let e=n.getFullYear();return Fe(e,t.length)},Q:function(n,t,e){let r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Fe(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){let r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Fe(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){let r=n.getMonth();switch(t){case"M":case"MM":return Ti.M(n,t);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){let r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return Fe(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){let o=qp(n,r);return t==="wo"?e.ordinalNumber(o,{unit:"week"}):Fe(o,t.length)},I:function(n,t,e){let r=zp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):Fe(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Ti.d(n,t)},D:function(n,t,e){let r=RL(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):Fe(r,t.length)},E:function(n,t,e){let r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){let o=n.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Fe(i,2);case"eo":return e.ordinalNumber(i,{unit:"day"});case"eee":return e.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(o,{width:"short",context:"formatting"});case"eeee":default:return e.day(o,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){let o=n.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Fe(i,t.length);case"co":return e.ordinalNumber(i,{unit:"day"});case"ccc":return e.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(o,{width:"narrow",context:"standalone"});case"cccccc":return e.day(o,{width:"short",context:"standalone"});case"cccc":default:return e.day(o,{width:"wide",context:"standalone"})}},i:function(n,t,e){let r=n.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Fe(o,t.length);case"io":return e.ordinalNumber(o,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});case"iiii":default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){let o=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(n,t,e){let r=n.getHours(),o;switch(r===12?o=Ml.noon:r===0?o=Ml.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(n,t,e){let r=n.getHours(),o;switch(r>=17?o=Ml.evening:r>=12?o=Ml.afternoon:r>=4?o=Ml.morning:o=Ml.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let r=n.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return Ti.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Ti.H(n,t)},K:function(n,t,e){let r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):Fe(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):Fe(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Ti.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Ti.s(n,t)},S:function(n,t){return Ti.S(n,t)},X:function(n,t,e){let r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return PL(r);case"XXXX":case"XX":return ms(r);case"XXXXX":case"XXX":default:return ms(r,":")}},x:function(n,t,e){let r=n.getTimezoneOffset();switch(t){case"x":return PL(r);case"xxxx":case"xx":return ms(r);case"xxxxx":case"xxx":default:return ms(r,":")}},O:function(n,t,e){let r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xL(r,":");case"OOOO":default:return"GMT"+ms(r,":")}},z:function(n,t,e){let r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xL(r,":");case"zzzz":default:return"GMT"+ms(r,":")}},t:function(n,t,e){let r=Math.trunc(+n/1e3);return Fe(r,t.length)},T:function(n,t,e){return Fe(+n,t.length)}};function xL(n,t=""){let e=n>0?"-":"+",r=Math.abs(n),o=Math.trunc(r/60),i=r%60;return i===0?e+String(o):e+String(o)+t+Fe(i,2)}function PL(n,t){return n%60===0?(n>0?"-":"+")+Fe(Math.abs(n)/60,2):ms(n,t)}function ms(n,t=""){let e=n>0?"-":"+",r=Math.abs(n),o=Fe(Math.trunc(r/60),2),i=Fe(r%60,2);return e+o+t+i}var OL=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},LL=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},HH=(n,t)=>{let e=n.match(/(P+)(p+)?/)||[],r=e[1],o=e[2];if(!o)return OL(n,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",OL(r,t)).replace("{{time}}",LL(o,t))},Pc={p:LL,P:HH};var VH=/^D+$/,BH=/^Y+$/,WH=["D","DD","YY","YYYY"];function $p(n){return VH.test(n)}function Kp(n){return BH.test(n)}function Oc(n,t,e){let r=UH(n,t,e);if(console.warn(r),WH.includes(n))throw new RangeError(r)}function UH(n,t,e){let r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var jH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qH=/^'([^]*?)'?$/,$H=/''/g,KH=/[a-zA-Z]/;function Lc(n,t,e){let r=jn(),o=e?.locale??r.locale??xc,i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=ie(n,e?.in);if(!Dl(s))throw new RangeError("Invalid time value");let l=t.match(zH).map(c=>{let d=c[0];if(d==="p"||d==="P"){let f=Pc[d];return f(c,o.formatLong)}return c}).join("").match(jH).map(c=>{if(c==="''")return{isToken:!1,value:"'"};let d=c[0];if(d==="'")return{isToken:!1,value:YH(c)};if(ZC[d])return{isToken:!0,value:c};if(d.match(KH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:c}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));let u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(c=>{if(!c.isToken)return c.value;let d=c.value;(!e?.useAdditionalWeekYearTokens&&Kp(d)||!e?.useAdditionalDayOfYearTokens&&$p(d))&&Oc(d,t,String(n));let f=ZC[d[0]];return f(s,d,o.localize,u)}).join("")}function YH(n){let t=n.match(qH);return t?t[1].replace($H,"'"):n}function IL(){return Object.assign({},jn())}function DL(n,t){let e=ie(n,t?.in).getDay();return e===0?7:e}function AL(n,t){let e=XH(t)?new t(0):Oe(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function XH(n){return typeof n=="function"&&n.prototype?.constructor===n}var QH=10,Yp=class{constructor(){N(this,"subPriority",0)}validate(t,e){return!0}},Xp=class extends Yp{constructor(t,e,r,o,i){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=o,i&&(this.subPriority=i)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}},Qp=class extends Yp{constructor(e,r){super();N(this,"priority",QH);N(this,"subPriority",-1);this.context=e||(o=>Oe(r,o))}set(e,r){return r.timestampIsSet?e:Oe(e,AL(e,this.context))}};var q=class{run(t,e,r,o){let i=this.parse(t,e,r,o);return i?{setter:new Xp(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,e,r){return!0}};var Jp=class extends q{constructor(){super(...arguments);N(this,"priority",140);N(this,"incompatibleTokens",["R","u","t","T"])}parse(e,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"});case"GGGGG":return o.era(e,{width:"narrow"});case"GGGG":default:return o.era(e,{width:"wide"})||o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"})}}set(e,r,o){return r.era=o,e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}};var xe={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},zn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function He(n,t){return n&&{value:t(n.value),rest:n.rest}}function Re(n,t){let e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function qn(n,t){let e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};let r=e[1]==="+"?1:-1,o=e[2]?parseInt(e[2],10):0,i=e[3]?parseInt(e[3],10):0,a=e[5]?parseInt(e[5],10):0;return{value:r*(o*Hp+i*kp+a*aL),rest:t.slice(e[0].length)}}function Zp(n){return Re(xe.anyDigitsSigned,n)}function fe(n,t){switch(n){case 1:return Re(xe.singleDigit,t);case 2:return Re(xe.twoDigits,t);case 3:return Re(xe.threeDigits,t);case 4:return Re(xe.fourDigits,t);default:return Re(new RegExp("^\\d{1,"+n+"}"),t)}}function Nl(n,t){switch(n){case 1:return Re(xe.singleDigitSigned,t);case 2:return Re(xe.twoDigitsSigned,t);case 3:return Re(xe.threeDigitsSigned,t);case 4:return Re(xe.fourDigitsSigned,t);default:return Re(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Gl(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function eh(n,t){let e=t>0,r=e?t:1-t,o;if(r<=50)o=n||100;else{let i=r+50,a=Math.trunc(i/100)*100,s=n>=i%100;o=n+a-(s?100:0)}return e?o:1-o}function th(n){return n%400===0||n%4===0&&n%100!==0}var rh=class extends q{constructor(){super(...arguments);N(this,"priority",130);N(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,r,o){let i=a=>({year:a,isTwoDigitYear:r==="yy"});switch(r){case"y":return He(fe(4,e),i);case"yo":return He(o.ordinalNumber(e,{unit:"year"}),i);default:return He(fe(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,o){let i=e.getFullYear();if(o.isTwoDigitYear){let s=eh(o.year,i);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}let a=!("era"in r)||r.era===1?o.year:1-o.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}};var nh=class extends q{constructor(){super(...arguments);N(this,"priority",130);N(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,r,o){let i=a=>({year:a,isTwoDigitYear:r==="YY"});switch(r){case"Y":return He(fe(4,e),i);case"Yo":return He(o.ordinalNumber(e,{unit:"year"}),i);default:return He(fe(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,o,i){let a=bl(e,i);if(o.isTwoDigitYear){let l=eh(o.year,a);return e.setFullYear(l,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),qr(e,i)}let s=!("era"in r)||r.era===1?o.year:1-o.year;return e.setFullYear(s,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),qr(e,i)}};var oh=class extends q{constructor(){super(...arguments);N(this,"priority",130);N(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,r){return r==="R"?Nl(4,e):Nl(r.length,e)}set(e,r,o){let i=Oe(e,0);return i.setFullYear(o,0,4),i.setHours(0,0,0,0),go(i)}};var ih=class extends q{constructor(){super(...arguments);N(this,"priority",130);N(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,r){return r==="u"?Nl(4,e):Nl(r.length,e)}set(e,r,o){return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}};var ah=class extends q{constructor(){super(...arguments);N(this,"priority",120);N(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,r,o){switch(r){case"Q":case"QQ":return fe(r.length,e);case"Qo":return o.ordinalNumber(e,{unit:"quarter"});case"QQQ":return o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(e,{width:"wide",context:"formatting"})||o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=1&&r<=4}set(e,r,o){return e.setMonth((o-1)*3,1),e.setHours(0,0,0,0),e}};var sh=class extends q{constructor(){super(...arguments);N(this,"priority",120);N(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,r,o){switch(r){case"q":case"qq":return fe(r.length,e);case"qo":return o.ordinalNumber(e,{unit:"quarter"});case"qqq":return o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(e,{width:"wide",context:"standalone"})||o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=1&&r<=4}set(e,r,o){return e.setMonth((o-1)*3,1),e.setHours(0,0,0,0),e}};var lh=class extends q{constructor(){super(...arguments);N(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);N(this,"priority",110)}parse(e,r,o){let i=a=>a-1;switch(r){case"M":return He(Re(xe.month,e),i);case"MM":return He(fe(2,e),i);case"Mo":return He(o.ordinalNumber(e,{unit:"month"}),i);case"MMM":return o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(e,{width:"wide",context:"formatting"})||o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}};var uh=class extends q{constructor(){super(...arguments);N(this,"priority",110);N(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,r,o){let i=a=>a-1;switch(r){case"L":return He(Re(xe.month,e),i);case"LL":return He(fe(2,e),i);case"Lo":return He(o.ordinalNumber(e,{unit:"month"}),i);case"LLL":return o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(e,{width:"wide",context:"standalone"})||o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}};function FL(n,t,e){let r=ie(n,e?.in),o=qp(r,e)-t;return r.setDate(r.getDate()-o*7),ie(r,e?.in)}var ch=class extends q{constructor(){super(...arguments);N(this,"priority",100);N(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,r,o){switch(r){case"w":return Re(xe.week,e);case"wo":return o.ordinalNumber(e,{unit:"week"});default:return fe(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,o,i){return qr(FL(e,o,i),i)}};function bL(n,t,e){let r=ie(n,e?.in),o=zp(r,e)-t;return r.setDate(r.getDate()-o*7),r}var dh=class extends q{constructor(){super(...arguments);N(this,"priority",100);N(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,r,o){switch(r){case"I":return Re(xe.week,e);case"Io":return o.ordinalNumber(e,{unit:"week"});default:return fe(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,o){return go(bL(e,o))}};var JH=[31,28,31,30,31,30,31,31,30,31,30,31],ZH=[31,29,31,30,31,30,31,31,30,31,30,31],fh=class extends q{constructor(){super(...arguments);N(this,"priority",90);N(this,"subPriority",1);N(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,r,o){switch(r){case"d":return Re(xe.date,e);case"do":return o.ordinalNumber(e,{unit:"date"});default:return fe(r.length,e)}}validate(e,r){let o=e.getFullYear(),i=th(o),a=e.getMonth();return i?r>=1&&r<=ZH[a]:r>=1&&r<=JH[a]}set(e,r,o){return e.setDate(o),e.setHours(0,0,0,0),e}};var ph=class extends q{constructor(){super(...arguments);N(this,"priority",90);N(this,"subpriority",1);N(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,r,o){switch(r){case"D":case"DD":return Re(xe.dayOfYear,e);case"Do":return o.ordinalNumber(e,{unit:"date"});default:return fe(r.length,e)}}validate(e,r){let o=e.getFullYear();return th(o)?r>=1&&r<=366:r>=1&&r<=365}set(e,r,o){return e.setMonth(0,o),e.setHours(0,0,0,0),e}};function kl(n,t,e){let r=jn(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=ie(n,e?.in),a=i.getDay(),l=(t%7+7)%7,u=7-o,c=t<0||t>6?t-(a+u)%7:(l+u)%7-(a+u)%7;return Vp(i,c,e)}var hh=class extends q{constructor(){super(...arguments);N(this,"priority",90);N(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,i){return e=kl(e,o,i),e.setHours(0,0,0,0),e}};var gh=class extends q{constructor(){super(...arguments);N(this,"priority",90);N(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,r,o,i){let a=s=>{let l=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return He(fe(r.length,e),a);case"eo":return He(o.ordinalNumber(e,{unit:"day"}),a);case"eee":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeeee":return o.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,i){return e=kl(e,o,i),e.setHours(0,0,0,0),e}};var vh=class extends q{constructor(){super(...arguments);N(this,"priority",90);N(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,r,o,i){let a=s=>{let l=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return He(fe(r.length,e),a);case"co":return He(o.ordinalNumber(e,{unit:"day"}),a);case"ccc":return o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"ccccc":return o.day(e,{width:"narrow",context:"standalone"});case"cccccc":return o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(e,{width:"wide",context:"standalone"})||o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,i){return e=kl(e,o,i),e.setHours(0,0,0,0),e}};function ML(n,t,e){let r=ie(n,e?.in),o=DL(r,e),i=t-o;return Vp(r,i,e)}var mh=class extends q{constructor(){super(...arguments);N(this,"priority",90);N(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,r,o){let i=a=>a===0?7:a;switch(r){case"i":case"ii":return fe(r.length,e);case"io":return o.ordinalNumber(e,{unit:"day"});case"iii":return He(o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return He(o.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return He(o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),i);case"iiii":default:return He(o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,r){return r>=1&&r<=7}set(e,r,o){return e=ML(e,o),e.setHours(0,0,0,0),e}};var yh=class extends q{constructor(){super(...arguments);N(this,"priority",80);N(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Gl(o),0,0,0),e}};var Ch=class extends q{constructor(){super(...arguments);N(this,"priority",80);N(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Gl(o),0,0,0),e}};var wh=class extends q{constructor(){super(...arguments);N(this,"priority",80);N(this,"incompatibleTokens",["a","b","t","T"])}parse(e,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Gl(o),0,0,0),e}};var Sh=class extends q{constructor(){super(...arguments);N(this,"priority",70);N(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,r,o){switch(r){case"h":return Re(xe.hour12h,e);case"ho":return o.ordinalNumber(e,{unit:"hour"});default:return fe(r.length,e)}}validate(e,r){return r>=1&&r<=12}set(e,r,o){let i=e.getHours()>=12;return i&&o<12?e.setHours(o+12,0,0,0):!i&&o===12?e.setHours(0,0,0,0):e.setHours(o,0,0,0),e}};var _h=class extends q{constructor(){super(...arguments);N(this,"priority",70);N(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,r,o){switch(r){case"H":return Re(xe.hour23h,e);case"Ho":return o.ordinalNumber(e,{unit:"hour"});default:return fe(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,o){return e.setHours(o,0,0,0),e}};var Eh=class extends q{constructor(){super(...arguments);N(this,"priority",70);N(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,r,o){switch(r){case"K":return Re(xe.hour11h,e);case"Ko":return o.ordinalNumber(e,{unit:"hour"});default:return fe(r.length,e)}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.getHours()>=12&&o<12?e.setHours(o+12,0,0,0):e.setHours(o,0,0,0),e}};var Rh=class extends q{constructor(){super(...arguments);N(this,"priority",70);N(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,r,o){switch(r){case"k":return Re(xe.hour24h,e);case"ko":return o.ordinalNumber(e,{unit:"hour"});default:return fe(r.length,e)}}validate(e,r){return r>=1&&r<=24}set(e,r,o){let i=o<=24?o%24:o;return e.setHours(i,0,0,0),e}};var Th=class extends q{constructor(){super(...arguments);N(this,"priority",60);N(this,"incompatibleTokens",["t","T"])}parse(e,r,o){switch(r){case"m":return Re(xe.minute,e);case"mo":return o.ordinalNumber(e,{unit:"minute"});default:return fe(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,o){return e.setMinutes(o,0,0),e}};var xh=class extends q{constructor(){super(...arguments);N(this,"priority",50);N(this,"incompatibleTokens",["t","T"])}parse(e,r,o){switch(r){case"s":return Re(xe.second,e);case"so":return o.ordinalNumber(e,{unit:"second"});default:return fe(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,o){return e.setSeconds(o,0),e}};var Ph=class extends q{constructor(){super(...arguments);N(this,"priority",30);N(this,"incompatibleTokens",["t","T"])}parse(e,r){let o=i=>Math.trunc(i*Math.pow(10,-r.length+3));return He(fe(r.length,e),o)}set(e,r,o){return e.setMilliseconds(o),e}};var Oh=class extends q{constructor(){super(...arguments);N(this,"priority",10);N(this,"incompatibleTokens",["t","T","x"])}parse(e,r){switch(r){case"X":return qn(zn.basicOptionalMinutes,e);case"XX":return qn(zn.basic,e);case"XXXX":return qn(zn.basicOptionalSeconds,e);case"XXXXX":return qn(zn.extendedOptionalSeconds,e);case"XXX":default:return qn(zn.extended,e)}}set(e,r,o){return r.timestampIsSet?e:Oe(e,e.getTime()-vs(e)-o)}};var Lh=class extends q{constructor(){super(...arguments);N(this,"priority",10);N(this,"incompatibleTokens",["t","T","X"])}parse(e,r){switch(r){case"x":return qn(zn.basicOptionalMinutes,e);case"xx":return qn(zn.basic,e);case"xxxx":return qn(zn.basicOptionalSeconds,e);case"xxxxx":return qn(zn.extendedOptionalSeconds,e);case"xxx":default:return qn(zn.extended,e)}}set(e,r,o){return r.timestampIsSet?e:Oe(e,e.getTime()-vs(e)-o)}};var Ih=class extends q{constructor(){super(...arguments);N(this,"priority",40);N(this,"incompatibleTokens","*")}parse(e){return Zp(e)}set(e,r,o){return[Oe(e,o*1e3),{timestampIsSet:!0}]}};var Dh=class extends q{constructor(){super(...arguments);N(this,"priority",20);N(this,"incompatibleTokens","*")}parse(e){return Zp(e)}set(e,r,o){return[Oe(e,o),{timestampIsSet:!0}]}};var NL={G:new Jp,y:new rh,Y:new nh,R:new oh,u:new ih,Q:new ah,q:new sh,M:new lh,L:new uh,w:new ch,I:new dh,d:new fh,D:new ph,E:new hh,e:new gh,c:new vh,i:new mh,a:new yh,b:new Ch,B:new wh,h:new Sh,H:new _h,K:new Eh,k:new Rh,m:new Th,s:new xh,S:new Ph,X:new Oh,x:new Lh,t:new Ih,T:new Dh};var eV=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rV=/^'([^]*?)'?$/,nV=/''/g,oV=/\S/,iV=/[a-zA-Z]/;function ew(n,t,e,r){let o=()=>Oe(r?.in||e,NaN),i=IL(),a=r?.locale??i.locale??xc,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return n?o():ie(e,r?.in);let u={firstWeekContainsDate:s,weekStartsOn:l,locale:a},c=[new Qp(r?.in,e)],d=t.match(tV).map(C=>{let m=C[0];if(m in Pc){let y=Pc[m];return y(C,a.formatLong)}return C}).join("").match(eV),f=[];for(let C of d){!r?.useAdditionalWeekYearTokens&&Kp(C)&&Oc(C,t,n),!r?.useAdditionalDayOfYearTokens&&$p(C)&&Oc(C,t,n);let m=C[0],y=NL[m];if(y){let{incompatibleTokens:S}=y;if(Array.isArray(S)){let R=f.find(x=>S.includes(x.token)||x.token===m);if(R)throw new RangeError(`The format string mustn't contain \`${R.fullToken}\` and \`${C}\` at the same time`)}else if(y.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);f.push({token:m,fullToken:C});let E=y.run(n,C,a.match,u);if(!E)return o();c.push(E.setter),n=E.rest}else{if(m.match(iV))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");if(C==="''"?C="'":m==="'"&&(C=aV(C)),n.indexOf(C)===0)n=n.slice(C.length);else return o()}}if(n.length>0&&oV.test(n))return o();let p=c.map(C=>C.priority).sort((C,m)=>m-C).filter((C,m,y)=>y.indexOf(C)===m).map(C=>c.filter(m=>m.priority===C).sort((m,y)=>y.subPriority-m.subPriority)).map(C=>C[0]),h=ie(e,r?.in);if(isNaN(+h))return o();let v={};for(let C of p){if(!C.validate(h,u))return o();let m=C.set(h,v,u);Array.isArray(m)?(h=m[0],Object.assign(v,m[1])):h=m}return h}function aV(n){return n.match(rV)[1].replace(nV,"'")}ys();var Ac=class extends Error{constructor(e,r){super(r);this.type=e;this.name="ParseError"}},Ah=class{static parse(t){let e=/^(\w+)\s*\(\s*\[(.*?)\](?:\s*,\s*(?:'([^']*(?::[^']*)?)'|"([^"]*(?::[^"]*)?)")?)?\s*\)$/,r=t.match(e);if(!r)throw new Ac("INVALID_FORMAT",`Invalid formula format: ${t}`);let[o,i,a,s,l]=r,u=a.split(",").map(d=>d.trim());if(!Object.values(Dc).includes(i))throw new Ac("UNKNOWN_FUNCTION",`Unknown function: ${i}`);if(u.some(d=>!d))throw new Ac("INVALID_COLUMNS","Invalid column name");return{function:i,columns:u,modifier:s||l}}};ys();var sV=10,Fh=class{constructor(t){this.logger=t;this.defaultDateFormats=["yyyy-MM-dd'T'HH:mm:ssXXX","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","HH:mm:ss","HH:mm"];this.initializeStrategies()}initializeStrategies(){this.strategies={["Count"]:(t,e,r)=>{let o=this.getColumnValues(t,e);switch(r){case"values":return o.filter(i=>i.trim()!=="").length;case"empty":return o.filter(i=>i.trim()==="").length;case"unique":return new Set(o.filter(i=>i.trim()!=="")).size;default:return o.length}},["Sum"]:(t,e)=>{let r=this.getNumericValues(t,e);return this.sum(r)},["Average"]:(t,e)=>{let r=this.getNumericValues(t,e);return this.average(r)},["Min"]:(t,e)=>{let r=this.getNumericValues(t,e);return Math.min(...r)},["Max"]:(t,e)=>{let r=this.getNumericValues(t,e);return Math.max(...r)},["Median"]:(t,e)=>{let r=this.getNumericValues(t,e);return this.median(r)},["Mode"]:(t,e)=>{let r=this.getNumericValues(t,e);return this.mode(r)},["StdDev"]:(t,e)=>{let r=this.getNumericValues(t,e);return this.standardDeviation(r)},["Variance"]:(t,e)=>{let r=this.getNumericValues(t,e);return this.variance(r)},["TimeEarliest"]:(t,e,r)=>{let o=this.getDateValues(t,e,r);if(o.length===0)return"";let i=this.earliest(o);return i?r?Lc(i,r):Lc(i,"yyyy-MM-dd"):""},["TimeLatest"]:(t,e,r)=>{let o=this.getDateValues(t,e,r);if(o.length===0)return"";let i=this.latest(o);return i?r?Lc(i,r):Lc(i,"yyyy-MM-dd"):""},["TimeSpan"]:(t,e,r)=>{let o,i="days";if(r){let u=r.split(":");if(u.length===2)[o,i]=u;else if(u.length===1){let c=u[0];["days","hours","minutes"].includes(c)?i=c:o=c}}let a=this.getDateValues(t,e,o);if(a.length===0)return 0;let s=this.earliest(a),l=this.latest(a);if(!s||!l)return 0;switch(i){case"minutes":return vL(l,s);case"hours":return hL(l,s);case"days":default:return pL(l,s)}}}}calculate(t,e){try{let r=Ah.parse(e.formula),o=this.strategies[r.function];o||this.logger.throwError(new Error(`Unsupported function: ${r.function}`));let i=o(t,r.columns,r.modifier);return e.result=i,e.lastCalculatedAt=No(),i}catch(r){this.logger.throwError(new Error("Calculation failed"),r)}}getColumnValues(t,e){let r=e.map(o=>{let i=t.headers.findIndex(a=>a.content===o);return i===-1&&this.logger.throwError(new Error(`Column not found: ${o}`)),i});return t.cells.flatMap(o=>r.map(i=>o[i].content))}getNumericValues(t,e){return this.getColumnValues(t,e).map(r=>parseFloat(r)).filter(r=>!isNaN(r))}parseDate(t,e){if(e)try{let r=ew(t,e,new Date);if(Dl(r))return r}catch{this.logger.warn(`Failed to parse date using custom format: ${e}`)}for(let r of this.defaultDateFormats)try{let o=ew(t,r,new Date);if(Dl(o))return o}catch{continue}try{let r=new Date(t);if(Dl(r))return r}catch{this.logger.warn(`Failed to parse date: ${t}`)}return null}getDateValues(t,e,r){return this.getColumnValues(t,e).map(o=>this.parseDate(o.trim(),r)).filter(o=>o!==null)}sum(t){return this.fixPrecision(t.reduce((e,r)=>e+r,0))}average(t){return t.length===0?0:this.fixPrecision(this.sum(t)/t.length)}median(t){if(t.length===0)return 0;let e=[...t].sort((o,i)=>o-i),r=Math.floor(e.length/2);return this.fixPrecision(e.length%2===0?(e[r-1]+e[r])/2:e[r])}mode(t){if(t.length===0)return 0;let e=new Map;t.forEach(i=>e.set(i,(e.get(i)||0)+1));let r=0,o=t[0];for(let[i,a]of e.entries())a>r&&(r=a,o=i);return this.fixPrecision(o)}variance(t){if(t.length===0)return 0;let e=this.average(t);return this.fixPrecision(this.average(t.map(r=>Math.pow(r-e,2))))}standardDeviation(t){return this.fixPrecision(Math.sqrt(this.variance(t)))}fixPrecision(t,e=sV){if(!isFinite(t))return t;let r=Math.pow(10,e);return Math.round(t*r)/r}earliest(t){if(t.length===0)return this.logger.warn("No dates found"),null;let e=t[0];for(let r=1;r<t.length;r++)uL(t[r],e)==-1&&(e=t[r]);return e}latest(t){if(t.length===0)return this.logger.warn("No dates found"),null;let e=t[0];for(let r=1;r<t.length;r++)cL(t[r],e)==-1&&(e=t[r]);return e}};var GL={enabled:!0};ys();var Yv=class extends ga{constructor(e,r,o){super(e,r,o);this.tables=[];this.modal=null;this.savedCalculations=new Map;this.parser=new Mp(this.logger),this.generator=new Np(this.logger),this.calculationService=new Fh(this.logger),this.uuidGenerator=new Tc({prefix:"table",length:12})}getDefaultConfig(){return GL}async onModuleLoad(){this.logger.info("Loading table enhancements manager"),await this.loadSavedCalculations(),this.registerCommands(),this.registerEventHandlers()}onModuleUnload(){this.logger.info("Unloading table enhancements manager")}onModuleCleanup(){this.modal&&(this.modal.close(),this.modal=null),this.tables=[],this.savedCalculations.clear()}registerCommands(){this.addCommand({id:"table-enhancements-editor",name:this.t("toolkit.tableEnhancements.command.table_enhancements"),callback:()=>{this.showTableEditor()}})}registerEventHandlers(){this.registerEvent(this.app.workspace.on("editor-menu",this.handleEditorMenu.bind(this))),this.registerEvent(this.app.workspace.on("file-menu",this.handleFileMenu.bind(this)))}handleEditorMenu(e,r){this.isEnabled()&&this.addMenuItem(e,{title:this.t("toolkit.tableEnhancements.editor_menu.table_enhancements"),icon:"wand",order:1,callback:()=>{this.showTableEditor()}},{showSeparator:!0})}handleFileMenu(e,r){this.isEnabled()&&(r instanceof Ws.TFolder||this.addMenuItem(e,{title:this.t("toolkit.tableEnhancements.file_menu.table_enhancements"),icon:"wand",order:1,callback:()=>{this.showTableEditor()}}))}async loadSavedCalculations(){try{let e=await this.getData();e?.savedCalculations&&(Object.entries(e.savedCalculations).forEach(([r,o])=>{this.savedCalculations.set(r,o)}),this.logger.debug("Loaded saved calculations:",this.savedCalculations.size))}catch(e){this.logger.throwError(new Error("Error loading saved calculations"),e)}}async saveCalculations(){try{let e={};this.savedCalculations.forEach((r,o)=>{e[o]=r}),await this.updateData({savedCalculations:e})}catch(e){this.logger.error("Error saving calculations:",e)}}getSavedCalculations(e){return e?this.savedCalculations.get(e)||[]:[]}async addCalculation(e,r){e||this.logger.throwError(new Error("Table ID is required"));let o=this.getSavedCalculations(e);o.push({...r,createdAt:No(),updatedAt:No()}),this.savedCalculations.set(e,o),await this.saveCalculations()}async deleteCalculation(e,r){if(!e)return;let o=this.getSavedCalculations(e);o.splice(r,1),this.savedCalculations.set(e,o),await this.saveCalculations()}async updateCalculation(e,r,o){if(!e)return;let i=this.getSavedCalculations(e);r>=0&&r<i.length&&(i[r]={...i[r],...o,updatedAt:No()},this.savedCalculations.set(e,i),await this.saveCalculations())}async replaceFrontMatterProperty(e,r){try{let o=this.app.workspace.getActiveViewOfType(Ws.MarkdownView);o?.file||this.logger.throwError(new Error("No active markdown view found")),await nL(o.file,e,r)}catch(o){this.logger.throwError(new Error("Failed to replace front matter property"),o)}}async executeCalculation(e,r){try{let o=this.calculationService.calculate(e,r.config),a=this.getSavedCalculations(e.referenceId).findIndex(s=>s.config.formula===r.config.formula&&s.config.output.type===r.config.output.type&&s.config.output.value===r.config.output.value);if(a!==-1&&await this.updateCalculation(e.referenceId,a,{config:{...r.config,result:o}}),r.config.output.type==="frontmatter"){let s=this.app.workspace.getActiveViewOfType(Ws.MarkdownView);s?.file||this.logger.throwError(new Error("No active markdown view")),rL(s.file,l=>{l[r.config.output.value]=o}),this.logger.debug(`Updated frontmatter: ${r.config.output.value} = ${o}`)}}catch(o){this.logger.throwError(new Error("Error executing calculation"),o)}}async parseCurrentTables(){try{let e=this.app.workspace.getActiveViewOfType(Ws.MarkdownView);e?.file||this.logger.throwError(new Error("No active markdown view found"));let r=await this.app.vault.read(e.file),o=e.file.path;this.tables=this.parser.parseTables(r).map(i=>({...i,position:{...i.position,filePath:o}})),this.logger.debug(`Parsed ${this.tables.length} tables from current file`)}catch(e){this.logger.throwError(new Error("Error parsing current tables"),e)}}async showTableEditor(){try{if(await this.parseCurrentTables(),!this.tables||this.tables.length===0)return;this.modal&&(this.modal.close(),this.modal=null),this.modal=new gs(this.app,this.plugin,()=>Promise.resolve().then(()=>(iN(),oN)),{logger:this.logger,tables:this.tables,manager:this,onSave:async e=>{try{await this.saveTables(e),this.modal?.close(),this.modal=null}catch(r){this.logger.throwError(new Error("Error saving tables"),r)}}}),this.modal.open()}catch(e){this.logger.error("Error showing table editor:",e),this.modal&&(this.modal.close(),this.modal=null)}}async saveTables(e){try{let r=this.app.workspace.getActiveViewOfType(Ws.MarkdownView);r?.file||this.logger.throwError(new Error("No active markdown view found"));let i=(await this.app.vault.read(r.file)).split(`
`),a=0;for(let s=0;s<e.length;s++){let l=e[s],u=this.tables[s];if(!u||!u.position){this.logger.error("Original table or position not found",{table:l,originalTable:u});continue}let c=u.position.startLine+a,d=u.position.endLine+a,f=!1;JSON.stringify(u.cells)!==JSON.stringify(l.cells)&&(f=!0,this.logger.debug("Table cells modified")),(this.savedCalculations.has(l.referenceId||"")||this.savedCalculations.has(u.referenceId||""))&&(f=!0,this.logger.debug("Table has calculations")),f&&!l.referenceId&&(l.referenceId=this.uuidGenerator.generate(),this.logger.debug("Generated new ID for table:",l.referenceId));let C=this.generator.generateTableText({...l,position:{...u.position,startLine:c,endLine:d}}).split(`
`);if(i.splice(c,d-c+1,...C),s<e.length-1){let m=c+C.length,y=m;for(;y<i.length&&i[y].trim()==="";)y++;y<i.length&&(i.splice(m,y-m),i.splice(m,0,""),a+=1-(y-m))}a+=C.length-(d-c+1)}await this.app.vault.modify(r.file,i.join(`
`)),await this.parseCurrentTables(),this.logger.debug("Tables saved successfully")}catch(r){this.logger.throwError(new Error("Save tables error"),r)}}async saveCalculatedTable(e){try{let r=this.uuidGenerator.generate(),o={...e,referenceId:r},i=this.tables.findIndex(s=>s.position&&e.position&&s.position.startLine===e.position.startLine&&s.position.endLine===e.position.endLine);i===-1&&this.logger.throwError(new Error("Original table not found"));let a=[...this.tables];return a[i]=o,await this.saveTables(a),r}catch(r){this.logger.throwError(new Error("Save calculated table error"),r)}}async executeAndSaveCalculation(e,r,o){try{if(e.referenceId||(e.referenceId=await this.saveCalculatedTable(e)),o!==void 0&&r.config?.output.type==="frontmatter"){let a=this.getSavedCalculations(e.referenceId)[o].config.output.value;a!==r.config.output.value&&await this.replaceFrontMatterProperty(a,r.config.output.value)}await this.executeCalculation(e,r),o!==void 0?await this.updateCalculation(e.referenceId,o,r):await this.addCalculation(e.referenceId,r)}catch(i){this.logger.throwError(new Error("Failed to execute and save calculation"),i)}}onConfigChange(){this.registerEventHandlers()}};var Xv=class extends aN.Plugin{constructor(){super(...arguments);this.registeredMenus={}}async onload(){try{this.pluginManager=new Ip(this),await this.pluginManager.initialize(),await this.registerToolkit(),this.addSettingTab(new Ec(this.app,this))}catch(e){Qe.error("Plugin load error",e),Qe.notice("Plugin load error: "+e.message)}}async onunload(){try{await this.pluginManager?.unload(),Qe.info("Plugin unloaded successfully")}catch(e){Qe.error("Plugin unload error:",e)}}async registerToolkit(){let e={tableEnhancements:Yv,quickPath:Fp,folderTemplates:Ap};await this.pluginManager.registerManagers(e)}async updateSettings(e){await this.pluginManager.updateSettings(e)}getManager(e){return this.pluginManager.getManager(e)}get settings(){return this.pluginManager.pluginSettings}};
/*! Bundled license information:
react/cjs/react.production.min.js:
(**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
scheduler/cjs/scheduler.production.min.js:
(**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react-dom/cjs/react-dom.production.min.js:
(**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react/cjs/react-jsx-runtime.production.min.js:
(**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/shared/src/utils.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/defaultAttributes.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/Icon.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/createLucideIcon.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/arrow-left.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/arrow-right.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/chevron-down.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/chevron-right.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/circle-play.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/circle-x.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/equal.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/folder-cog.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/link.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/pencil-line.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/plus.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/settings.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/table.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/x.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/lucide-react.js:
(**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
ag-grid-community/dist/ag-grid-community.cjs.js:
(**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v30.2.1
* @link https://www.ag-grid.com/
' * @license MIT
*)
(**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
* @version v30.2.1
* @link https://www.ag-grid.com/
* @license MIT
*)
react-dom/cjs/react-dom-server-legacy.browser.production.min.js:
(**
* @license React
* react-dom-server-legacy.browser.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react-dom/cjs/react-dom-server.browser.production.min.js:
(**
* @license React
* react-dom-server.browser.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
*/