@riab/illumis-components 1.0.19 → 1.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,667 +0,0 @@
1
- (function(Da){typeof define=="function"&&define.amd?define(Da):Da()})((function(){"use strict";function Da(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ct={},Ta=[],Co=()=>{},Tb=()=>!1,Uu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),xg=e=>e.startsWith("onUpdate:"),Gt=Object.assign,Fg=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yI=Object.prototype.hasOwnProperty,St=(e,t)=>yI.call(e,t),Ge=Array.isArray,Aa=e=>Bl(e)==="[object Map]",$u=e=>Bl(e)==="[object Set]",Ab=e=>Bl(e)==="[object Date]",Ze=e=>typeof e=="function",qt=e=>typeof e=="string",Zi=e=>typeof e=="symbol",Dt=e=>e!==null&&typeof e=="object",Ib=e=>(Dt(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),Mb=Object.prototype.toString,Bl=e=>Mb.call(e),SI=e=>Bl(e).slice(8,-1),ju=e=>Bl(e)==="[object Object]",Ku=e=>qt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hl=Da(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qu=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},RI=/-\w/g,Mn=qu(e=>e.replace(RI,t=>t.slice(1).toUpperCase())),xI=/\B([A-Z])/g,ti=qu(e=>e.replace(xI,"-$1").toLowerCase()),Qu=qu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pg=qu(e=>e?`on${Qu(e)}`:""),ni=(e,t)=>!Object.is(e,t),Yu=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},kb=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Eg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Dg=e=>{const t=qt(e)?Number(e):NaN;return isNaN(t)?e:t};let Lb;const Zu=()=>Lb||(Lb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Uo(e){if(Ge(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=qt(i)?DI(i):Uo(i);if(o)for(const r in o)t[r]=o[r]}return t}else if(qt(e)||Dt(e))return e}const FI=/;(?![^(]*\))/g,PI=/:([^]+)/,EI=/\/\*[^]*?\*\//g;function DI(e){const t={};return e.replace(EI,"").split(FI).forEach(n=>{if(n){const i=n.split(PI);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ft(e){let t="";if(qt(e))t=e;else if(Ge(e))for(let n=0;n<e.length;n++){const i=ft(e[n]);i&&(t+=i+" ")}else if(Dt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const TI=Da("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ob(e){return!!e||e===""}function AI(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Ju(e[i],t[i]);return n}function Ju(e,t){if(e===t)return!0;let n=Ab(e),i=Ab(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=Zi(e),i=Zi(t),n||i)return e===t;if(n=Ge(e),i=Ge(t),n||i)return n&&i?AI(e,t):!1;if(n=Dt(e),i=Dt(t),n||i){if(!n||!i)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const s in e){const a=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(a&&!l||!a&&l||!Ju(e[s],t[s]))return!1}}return String(e)===String(t)}function _b(e,t){return e.findIndex(n=>Ju(n,t))}const Nb=e=>!!(e&&e.__v_isRef===!0),Je=e=>qt(e)?e:e==null?"":Ge(e)||Dt(e)&&(e.toString===Mb||!Ze(e.toString))?Nb(e)?Je(e.value):JSON.stringify(e,Bb,2):String(e),Bb=(e,t)=>Nb(t)?Bb(e,t.value):Aa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o],r)=>(n[Tg(i,r)+" =>"]=o,n),{})}:$u(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Tg(n))}:Zi(t)?Tg(t):Dt(t)&&!Ge(t)&&!ju(t)?String(t):t,Tg=(e,t="")=>{var n;return Zi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ii;class II{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ii,!t&&ii&&(this.index=(ii.scopes||(ii.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ii;try{return ii=this,t()}finally{ii=n}}}on(){++this._on===1&&(this.prevScope=ii,ii=this)}off(){this._on>0&&--this._on===0&&(ii=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function MI(){return ii}let It;const Ag=new WeakSet;class Hb{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ii&&ii.active&&ii.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ag.has(this)&&(Ag.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Vb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,jb(this),Wb(this);const t=It,n=Ji;It=this,Ji=!0;try{return this.fn()}finally{zb(this),It=t,Ji=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Lg(t);this.deps=this.depsTail=void 0,jb(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ag.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){kg(this)&&this.run()}get dirty(){return kg(this)}}let Gb=0,Gl,Vl;function Vb(e,t=!1){if(e.flags|=8,t){e.next=Vl,Vl=e;return}e.next=Gl,Gl=e}function Ig(){Gb++}function Mg(){if(--Gb>0)return;if(Vl){let t=Vl;for(Vl=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Gl;){let t=Gl;for(Gl=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function Wb(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zb(e){let t,n=e.depsTail,i=n;for(;i;){const o=i.prevDep;i.version===-1?(i===n&&(n=o),Lg(i),kI(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=n}function kg(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ub(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ub(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wl)||(e.globalVersion=Wl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!kg(e))))return;e.flags|=2;const t=e.dep,n=It,i=Ji;It=e,Ji=!0;try{Wb(e);const o=e.fn(e._value);(t.version===0||ni(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{It=n,Ji=i,zb(e),e.flags&=-3}}function Lg(e,t=!1){const{dep:n,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Lg(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function kI(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ji=!0;const $b=[];function wo(){$b.push(Ji),Ji=!1}function bo(){const e=$b.pop();Ji=e===void 0?!0:e}function jb(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=It;It=void 0;try{t()}finally{It=n}}}let Wl=0;class LI{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Xu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!It||!Ji||It===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==It)n=this.activeLink=new LI(It,this),It.deps?(n.prevDep=It.depsTail,It.depsTail.nextDep=n,It.depsTail=n):It.deps=It.depsTail=n,Kb(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=It.depsTail,n.nextDep=void 0,It.depsTail.nextDep=n,It.depsTail=n,It.deps===n&&(It.deps=i)}return n}trigger(t){this.version++,Wl++,this.notify(t)}notify(t){Ig();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Mg()}}}function Kb(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Kb(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ed=new WeakMap,xs=Symbol(""),Og=Symbol(""),zl=Symbol("");function kn(e,t,n){if(Ji&&It){let i=ed.get(e);i||ed.set(e,i=new Map);let o=i.get(n);o||(i.set(n,o=new Xu),o.map=i,o.key=n),o.track()}}function $o(e,t,n,i,o,r){const s=ed.get(e);if(!s){Wl++;return}const a=l=>{l&&l.trigger()};if(Ig(),t==="clear")s.forEach(a);else{const l=Ge(e),u=l&&Ku(n);if(l&&n==="length"){const h=Number(i);s.forEach((f,g)=>{(g==="length"||g===zl||!Zi(g)&&g>=h)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),u&&a(s.get(zl)),t){case"add":l?u&&a(s.get("length")):(a(s.get(xs)),Aa(e)&&a(s.get(Og)));break;case"delete":l||(a(s.get(xs)),Aa(e)&&a(s.get(Og)));break;case"set":Aa(e)&&a(s.get(xs));break}}Mg()}function OI(e,t){const n=ed.get(e);return n&&n.get(t)}function Ia(e){const t=ut(e);return t===e?t:(kn(t,"iterate",zl),fi(e)?t:t.map(Xi))}function td(e){return kn(e=ut(e),"iterate",zl),e}function Ar(e,t){return qo(e)?ka(Ko(e)?Xi(t):t):Xi(t)}const _I={__proto__:null,[Symbol.iterator](){return _g(this,Symbol.iterator,e=>Ar(this,e))},concat(...e){return Ia(this).concat(...e.map(t=>Ge(t)?Ia(t):t))},entries(){return _g(this,"entries",e=>(e[1]=Ar(this,e[1]),e))},every(e,t){return jo(this,"every",e,t,void 0,arguments)},filter(e,t){return jo(this,"filter",e,t,n=>n.map(i=>Ar(this,i)),arguments)},find(e,t){return jo(this,"find",e,t,n=>Ar(this,n),arguments)},findIndex(e,t){return jo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jo(this,"findLast",e,t,n=>Ar(this,n),arguments)},findLastIndex(e,t){return jo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ng(this,"includes",e)},indexOf(...e){return Ng(this,"indexOf",e)},join(e){return Ia(this).join(e)},lastIndexOf(...e){return Ng(this,"lastIndexOf",e)},map(e,t){return jo(this,"map",e,t,void 0,arguments)},pop(){return Ul(this,"pop")},push(...e){return Ul(this,"push",e)},reduce(e,...t){return qb(this,"reduce",e,t)},reduceRight(e,...t){return qb(this,"reduceRight",e,t)},shift(){return Ul(this,"shift")},some(e,t){return jo(this,"some",e,t,void 0,arguments)},splice(...e){return Ul(this,"splice",e)},toReversed(){return Ia(this).toReversed()},toSorted(e){return Ia(this).toSorted(e)},toSpliced(...e){return Ia(this).toSpliced(...e)},unshift(...e){return Ul(this,"unshift",e)},values(){return _g(this,"values",e=>Ar(this,e))}};function _g(e,t,n){const i=td(e),o=i[t]();return i!==e&&!fi(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const NI=Array.prototype;function jo(e,t,n,i,o,r){const s=td(e),a=s!==e&&!fi(e),l=s[t];if(l!==NI[t]){const f=l.apply(e,r);return a?Xi(f):f}let u=n;s!==e&&(a?u=function(f,g){return n.call(this,Ar(e,f),g,e)}:n.length>2&&(u=function(f,g){return n.call(this,f,g,e)}));const h=l.call(s,u,i);return a&&o?o(h):h}function qb(e,t,n,i){const o=td(e);let r=n;return o!==e&&(fi(e)?n.length>3&&(r=function(s,a,l){return n.call(this,s,a,l,e)}):r=function(s,a,l){return n.call(this,s,Ar(e,a),l,e)}),o[t](r,...i)}function Ng(e,t,n){const i=ut(e);kn(i,"iterate",zl);const o=i[t](...n);return(o===-1||o===!1)&&Ma(n[0])?(n[0]=ut(n[0]),i[t](...n)):o}function Ul(e,t,n=[]){wo(),Ig();const i=ut(e)[t].apply(e,n);return Mg(),bo(),i}const BI=Da("__proto__,__v_isRef,__isVue"),Qb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zi));function HI(e){Zi(e)||(e=String(e));const t=ut(this);return kn(t,"has",e),t.hasOwnProperty(e)}class Yb{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(o?r?ny:ty:r?ey:Xb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const s=Ge(t);if(!o){let l;if(s&&(l=_I[n]))return l;if(n==="hasOwnProperty")return HI}const a=Reflect.get(t,n,Qt(t)?t:i);if((Zi(n)?Qb.has(n):BI(n))||(o||kn(t,"get",n),r))return a;if(Qt(a)){const l=s&&Ku(n)?a:a.value;return o&&Dt(l)?Gg(l):l}return Dt(a)?o?Gg(a):Hg(a):a}}class Zb extends Yb{constructor(t=!1){super(!1,t)}set(t,n,i,o){let r=t[n];const s=Ge(t)&&Ku(n);if(!this._isShallow){const u=qo(r);if(!fi(i)&&!qo(i)&&(r=ut(r),i=ut(i)),!s&&Qt(r)&&!Qt(i))return u||(r.value=i),!0}const a=s?Number(n)<t.length:St(t,n),l=Reflect.set(t,n,i,Qt(t)?t:o);return t===ut(o)&&(a?ni(i,r)&&$o(t,"set",n,i):$o(t,"add",n,i)),l}deleteProperty(t,n){const i=St(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&i&&$o(t,"delete",n,void 0),o}has(t,n){const i=Reflect.has(t,n);return(!Zi(n)||!Qb.has(n))&&kn(t,"has",n),i}ownKeys(t){return kn(t,"iterate",Ge(t)?"length":xs),Reflect.ownKeys(t)}}class Jb extends Yb{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const GI=new Zb,VI=new Jb,WI=new Zb(!0),zI=new Jb(!0),Bg=e=>e,nd=e=>Reflect.getPrototypeOf(e);function UI(e,t,n){return function(...i){const o=this.__v_raw,r=ut(o),s=Aa(r),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=o[e](...i),h=n?Bg:t?ka:Xi;return!t&&kn(r,"iterate",l?Og:xs),Gt(Object.create(u),{next(){const{value:f,done:g}=u.next();return g?{value:f,done:g}:{value:a?[h(f[0]),h(f[1])]:h(f),done:g}}})}}function id(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function $I(e,t){const n={get(o){const r=this.__v_raw,s=ut(r),a=ut(o);e||(ni(o,a)&&kn(s,"get",o),kn(s,"get",a));const{has:l}=nd(s),u=t?Bg:e?ka:Xi;if(l.call(s,o))return u(r.get(o));if(l.call(s,a))return u(r.get(a));r!==s&&r.get(o)},get size(){const o=this.__v_raw;return!e&&kn(ut(o),"iterate",xs),o.size},has(o){const r=this.__v_raw,s=ut(r),a=ut(o);return e||(ni(o,a)&&kn(s,"has",o),kn(s,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const s=this,a=s.__v_raw,l=ut(a),u=t?Bg:e?ka:Xi;return!e&&kn(l,"iterate",xs),a.forEach((h,f)=>o.call(r,u(h),u(f),s))}};return Gt(n,e?{add:id("add"),set:id("set"),delete:id("delete"),clear:id("clear")}:{add(o){!t&&!fi(o)&&!qo(o)&&(o=ut(o));const r=ut(this);return nd(r).has.call(r,o)||(r.add(o),$o(r,"add",o,o)),this},set(o,r){!t&&!fi(r)&&!qo(r)&&(r=ut(r));const s=ut(this),{has:a,get:l}=nd(s);let u=a.call(s,o);u||(o=ut(o),u=a.call(s,o));const h=l.call(s,o);return s.set(o,r),u?ni(r,h)&&$o(s,"set",o,r):$o(s,"add",o,r),this},delete(o){const r=ut(this),{has:s,get:a}=nd(r);let l=s.call(r,o);l||(o=ut(o),l=s.call(r,o)),a&&a.call(r,o);const u=r.delete(o);return l&&$o(r,"delete",o,void 0),u},clear(){const o=ut(this),r=o.size!==0,s=o.clear();return r&&$o(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=UI(o,e,t)}),n}function od(e,t){const n=$I(e,t);return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(St(n,o)&&o in i?n:i,o,r)}const jI={get:od(!1,!1)},KI={get:od(!1,!0)},qI={get:od(!0,!1)},QI={get:od(!0,!0)},Xb=new WeakMap,ey=new WeakMap,ty=new WeakMap,ny=new WeakMap;function YI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ZI(e){return e.__v_skip||!Object.isExtensible(e)?0:YI(SI(e))}function Hg(e){return qo(e)?e:rd(e,!1,GI,jI,Xb)}function JI(e){return rd(e,!1,WI,KI,ey)}function Gg(e){return rd(e,!0,VI,qI,ty)}function XI(e){return rd(e,!0,zI,QI,ny)}function rd(e,t,n,i,o){if(!Dt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=ZI(e);if(r===0)return e;const s=o.get(e);if(s)return s;const a=new Proxy(e,r===2?i:n);return o.set(e,a),a}function Ko(e){return qo(e)?Ko(e.__v_raw):!!(e&&e.__v_isReactive)}function qo(e){return!!(e&&e.__v_isReadonly)}function fi(e){return!!(e&&e.__v_isShallow)}function Ma(e){return e?!!e.__v_raw:!1}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function iy(e){return!St(e,"__v_skip")&&Object.isExtensible(e)&&kb(e,"__v_skip",!0),e}const Xi=e=>Dt(e)?Hg(e):e,ka=e=>Dt(e)?Gg(e):e;function Qt(e){return e?e.__v_isRef===!0:!1}function be(e){return oy(e,!1)}function yo(e){return oy(e,!0)}function oy(e,t){return Qt(e)?e:new eM(e,t)}class eM{constructor(t,n){this.dep=new Xu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ut(t),this._value=n?t:Xi(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||fi(t)||qo(t);t=i?t:ut(t),ni(t,n)&&(this._rawValue=t,this._value=i?t:Xi(t),this.dep.trigger())}}function Vn(e){return Qt(e)?e.value:e}function tM(e){return Ze(e)?e():Vn(e)}const nM={get:(e,t,n)=>t==="__v_raw"?e:Vn(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return Qt(o)&&!Qt(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function ry(e){return Ko(e)?e:new Proxy(e,nM)}class iM{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Xu,{get:i,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function sy(e){return new iM(e)}function oM(e){const t=Ge(e)?new Array(e.length):{};for(const n in e)t[n]=ay(e,n);return t}class rM{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._raw=ut(t);let o=!0,r=t;if(!Ge(t)||!Ku(String(n)))do o=!Ma(r)||fi(r);while(o&&(r=r.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Vn(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Qt(this._raw[this._key])){const n=this._object[this._key];if(Qt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return OI(this._raw,this._key)}}class sM{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function aM(e,t,n){return Qt(e)?e:Ze(e)?new sM(e):Dt(e)&&arguments.length>1?ay(e,t,n):be(e)}function ay(e,t,n){return new rM(e,t,n)}class lM{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Xu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&It!==this)return Vb(this,!0),!0}get value(){const t=this.dep.track();return Ub(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cM(e,t,n=!1){let i,o;return Ze(e)?i=e:(i=e.get,o=e.set),new lM(i,o,n)}const sd={},ad=new WeakMap;let Fs;function uM(e,t=!1,n=Fs){if(n){let i=ad.get(n);i||ad.set(n,i=[]),i.push(e)}}function dM(e,t,n=Ct){const{immediate:i,deep:o,once:r,scheduler:s,augmentJob:a,call:l}=n,u=P=>o?P:fi(P)||o===!1||o===0?Qo(P,1):Qo(P);let h,f,g,m,v=!1,w=!1;if(Qt(e)?(f=()=>e.value,v=fi(e)):Ko(e)?(f=()=>u(e),v=!0):Ge(e)?(w=!0,v=e.some(P=>Ko(P)||fi(P)),f=()=>e.map(P=>{if(Qt(P))return P.value;if(Ko(P))return u(P);if(Ze(P))return l?l(P,2):P()})):Ze(e)?t?f=l?()=>l(e,2):e:f=()=>{if(g){wo();try{g()}finally{bo()}}const P=Fs;Fs=h;try{return l?l(e,3,[m]):e(m)}finally{Fs=P}}:f=Co,t&&o){const P=f,F=o===!0?1/0:o;f=()=>Qo(P(),F)}const b=MI(),y=()=>{h.stop(),b&&b.active&&Fg(b.effects,h)};if(r&&t){const P=t;t=(...F)=>{P(...F),y()}}let R=w?new Array(e.length).fill(sd):sd;const S=P=>{if(!(!(h.flags&1)||!h.dirty&&!P))if(t){const F=h.run();if(o||v||(w?F.some((A,k)=>ni(A,R[k])):ni(F,R))){g&&g();const A=Fs;Fs=h;try{const k=[F,R===sd?void 0:w&&R[0]===sd?[]:R,m];R=F,l?l(t,3,k):t(...k)}finally{Fs=A}}}else h.run()};return a&&a(S),h=new Hb(f),h.scheduler=s?()=>s(S,!1):S,m=P=>uM(P,!1,h),g=h.onStop=()=>{const P=ad.get(h);if(P){if(l)l(P,4);else for(const F of P)F();ad.delete(h)}},t?i?S(!0):R=h.run():s?s(S.bind(null,!0),!0):h.run(),y.pause=h.pause.bind(h),y.resume=h.resume.bind(h),y.stop=y,y}function Qo(e,t=1/0,n){if(t<=0||!Dt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Qt(e))Qo(e.value,t,n);else if(Ge(e))for(let i=0;i<e.length;i++)Qo(e[i],t,n);else if($u(e)||Aa(e))e.forEach(i=>{Qo(i,t,n)});else if(ju(e)){for(const i in e)Qo(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Qo(e[i],t,n)}return e}const $l=[];let Vg=!1;function _le(e,...t){if(Vg)return;Vg=!0,wo();const n=$l.length?$l[$l.length-1].component:null,i=n&&n.appContext.config.warnHandler,o=hM();if(i)La(i,n,11,[e+t.map(r=>{var s,a;return(a=(s=r.toString)==null?void 0:s.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,o.map(({vnode:r})=>`at <${rS(n,r.type)}>`).join(`
2
- `),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push(`
3
- `,...fM(o)),console.warn(...r)}bo(),Vg=!1}function hM(){let e=$l[$l.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function fM(e){const t=[];return e.forEach((n,i)=>{t.push(...i===0?[]:[`
4
- `],...gM(n))}),t}function gM({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,o=` at <${rS(e.component,e.type,i)}`,r=">"+n;return e.props?[o,...pM(e.props),r]:[o+r]}function pM(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(i=>{t.push(...ly(i,e[i]))}),n.length>3&&t.push(" ..."),t}function ly(e,t,n){return qt(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Qt(t)?(t=ly(e,ut(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ze(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ut(t),n?t:[`${e}=`,t])}function La(e,t,n,i){try{return i?e(...i):e()}catch(o){ld(o,t,n)}}function eo(e,t,n,i){if(Ze(e)){const o=La(e,t,n,i);return o&&Ib(o)&&o.catch(r=>{ld(r,t,n)}),o}if(Ge(e)){const o=[];for(let r=0;r<e.length;r++)o.push(eo(e[r],t,n,i));return o}}function ld(e,t,n,i=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Ct;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const h=a.ec;if(h){for(let f=0;f<h.length;f++)if(h[f](e,l,u)===!1)return}a=a.parent}if(r){wo(),La(r,null,10,[e,l,u]),bo();return}}mM(e,n,o,i,s)}function mM(e,t,n,i=!0,o=!1){if(o)throw e;console.error(e)}const Wn=[];let So=-1;const Oa=[];let Ir=null,_a=0;const cy=Promise.resolve();let cd=null;function Mr(e){const t=cd||cy;return e?t.then(this?e.bind(this):e):t}function vM(e){let t=So+1,n=Wn.length;for(;t<n;){const i=t+n>>>1,o=Wn[i],r=jl(o);r<e||r===e&&o.flags&2?t=i+1:n=i}return t}function Wg(e){if(!(e.flags&1)){const t=jl(e),n=Wn[Wn.length-1];!n||!(e.flags&2)&&t>=jl(n)?Wn.push(e):Wn.splice(vM(t),0,e),e.flags|=1,uy()}}function uy(){cd||(cd=cy.then(fy))}function CM(e){Ge(e)?Oa.push(...e):Ir&&e.id===-1?Ir.splice(_a+1,0,e):e.flags&1||(Oa.push(e),e.flags|=1),uy()}function dy(e,t,n=So+1){for(;n<Wn.length;n++){const i=Wn[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;Wn.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function hy(e){if(Oa.length){const t=[...new Set(Oa)].sort((n,i)=>jl(n)-jl(i));if(Oa.length=0,Ir){Ir.push(...t);return}for(Ir=t,_a=0;_a<Ir.length;_a++){const n=Ir[_a];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ir=null,_a=0}}const jl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function fy(e){try{for(So=0;So<Wn.length;So++){const t=Wn[So];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),La(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;So<Wn.length;So++){const t=Wn[So];t&&(t.flags&=-2)}So=-1,Wn.length=0,hy(),cd=null,(Wn.length||Oa.length)&&fy()}}let Sn=null,gy=null;function ud(e){const t=Sn;return Sn=e,gy=e&&e.type.__scopeId||null,t}function zn(e,t=Sn,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&wd(-1);const r=ud(t);let s;try{s=e(...o)}finally{ud(r),i._d&&wd(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function Ps(e,t){if(Sn===null)return e;const n=Sd(Sn),i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,s,a,l=Ct]=t[o];r&&(Ze(r)&&(r={mounted:r,updated:r}),r.deep&&Qo(s),i.push({dir:r,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function Es(e,t,n,i){const o=e.dirs,r=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];r&&(a.oldValue=r[s].value);let l=a.dir[i];l&&(wo(),eo(l,n,8,[e.el,a,e,t]),bo())}}function wM(e,t){if(On){let n=On.provides;const i=On.parent&&On.parent.provides;i===n&&(n=On.provides=Object.create(i)),n[e]=t}}function Kl(e,t,n=!1){const i=Xo();if(i||Ba){let o=Ba?Ba._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ze(t)?t.call(i&&i.proxy):t}}const bM=Symbol.for("v-scx"),yM=()=>Kl(bM);function SM(e,t){return zg(e,null,{flush:"sync"})}function Jt(e,t,n){return zg(e,t,n)}function zg(e,t,n=Ct){const{immediate:i,deep:o,flush:r,once:s}=n,a=Gt({},n),l=t&&i||!t&&r!=="post";let u;if(oc){if(r==="sync"){const m=yM();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=Co,m.resume=Co,m.pause=Co,m}}const h=On;a.call=(m,v,w)=>eo(m,h,v,w);let f=!1;r==="post"?a.scheduler=m=>{pi(m,h&&h.suspense)}:r!=="sync"&&(f=!0,a.scheduler=(m,v)=>{v?m():Wg(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,h&&(m.id=h.uid,m.i=h))};const g=dM(e,t,a);return oc&&(u?u.push(g):l&&g()),g}function RM(e,t,n){const i=this.proxy,o=qt(e)?e.includes(".")?py(i,e):()=>i[e]:e.bind(i,i);let r;Ze(t)?r=t:(r=t.handler,n=t);const s=ic(this),a=zg(o,r.bind(i),n);return s(),a}function py(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o<n.length&&i;o++)i=i[n[o]];return i}}const xM=Symbol("_vte"),my=e=>e.__isTeleport,Yo=Symbol("_leaveCb"),dd=Symbol("_enterCb");function FM(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return kr(()=>{e.isMounted=!0}),Ds(()=>{e.isUnmounting=!0}),e}const Ai=[Function,Array],vy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ai,onEnter:Ai,onAfterEnter:Ai,onEnterCancelled:Ai,onBeforeLeave:Ai,onLeave:Ai,onAfterLeave:Ai,onLeaveCancelled:Ai,onBeforeAppear:Ai,onAppear:Ai,onAfterAppear:Ai,onAppearCancelled:Ai},Cy=e=>{const t=e.subTree;return t.component?Cy(t.component):t},PM={name:"BaseTransition",props:vy,setup(e,{slots:t}){const n=Xo(),i=FM();return()=>{const o=t.default&&Sy(t.default(),!0);if(!o||!o.length)return;const r=wy(o),s=ut(e),{mode:a}=s;if(i.isLeaving)return $g(r);const l=yy(r);if(!l)return $g(r);let u=Ug(l,s,i,n,f=>u=f);l.type!==Ln&&ql(l,u);let h=n.subTree&&yy(n.subTree);if(h&&h.type!==Ln&&!Ms(h,l)&&Cy(n).type!==Ln){let f=Ug(h,s,i,n);if(ql(h,f),a==="out-in"&&l.type!==Ln)return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,h=void 0},$g(r);a==="in-out"&&l.type!==Ln?f.delayLeave=(g,m,v)=>{const w=by(i,h);w[String(h.key)]=h,g[Yo]=()=>{m(),g[Yo]=void 0,delete u.delayedLeave,h=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return r}}};function wy(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ln){t=n;break}}return t}const EM=PM;function by(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function Ug(e,t,n,i,o){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:h,onEnterCancelled:f,onBeforeLeave:g,onLeave:m,onAfterLeave:v,onLeaveCancelled:w,onBeforeAppear:b,onAppear:y,onAfterAppear:R,onAppearCancelled:S}=t,P=String(e.key),F=by(n,e),A=(N,M)=>{N&&eo(N,i,9,M)},k=(N,M)=>{const E=M[1];A(N,M),Ge(N)?N.every(I=>I.length<=1)&&E():N.length<=1&&E()},L={mode:s,persisted:a,beforeEnter(N){let M=l;if(!n.isMounted)if(r)M=b||l;else return;N[Yo]&&N[Yo](!0);const E=F[P];E&&Ms(e,E)&&E.el[Yo]&&E.el[Yo](),A(M,[N])},enter(N){let M=u,E=h,I=f;if(!n.isMounted)if(r)M=y||u,E=R||h,I=S||f;else return;let B=!1;const W=N[dd]=J=>{B||(B=!0,J?A(I,[N]):A(E,[N]),L.delayedLeave&&L.delayedLeave(),N[dd]=void 0)};M?k(M,[N,W]):W()},leave(N,M){const E=String(e.key);if(N[dd]&&N[dd](!0),n.isUnmounting)return M();A(g,[N]);let I=!1;const B=N[Yo]=W=>{I||(I=!0,M(),W?A(w,[N]):A(v,[N]),N[Yo]=void 0,F[E]===e&&delete F[E])};F[E]=e,m?k(m,[N,B]):B()},clone(N){const M=Ug(N,t,n,i,o);return o&&o(M),M}};return L}function $g(e){if(fd(e))return e=Lr(e),e.children=null,e}function yy(e){if(!fd(e))return my(e.type)&&e.children?wy(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ze(n.default))return n.default()}}function ql(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ql(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Sy(e,t=!1,n){let i=[],o=0;for(let r=0;r<e.length;r++){let s=e[r];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===bt?(s.patchFlag&128&&o++,i=i.concat(Sy(s.children,t,a))):(t||s.type!==Ln)&&i.push(a!=null?Lr(s,{key:a}):s)}if(o>1)for(let r=0;r<i.length;r++)i[r].patchFlag=-2;return i}function wt(e,t){return Ze(e)?Gt({name:e.name},t,{setup:e}):e}function jg(){const e=Xo();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ry(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function DM(e){const t=Xo(),n=yo(null);if(t){const o=t.refs===Ct?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>n.value,set:r=>n.value=r})}return n}const hd=new WeakMap;function Ql(e,t,n,i,o=!1){if(Ge(e)){e.forEach((v,w)=>Ql(v,t&&(Ge(t)?t[w]:t),n,i,o));return}if(Na(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Ql(e,t,n,i.component.subTree);return}const r=i.shapeFlag&4?Sd(i.component):i.el,s=o?null:r,{i:a,r:l}=e,u=t&&t.r,h=a.refs===Ct?a.refs={}:a.refs,f=a.setupState,g=ut(f),m=f===Ct?Tb:v=>St(g,v);if(u!=null&&u!==l){if(xy(t),qt(u))h[u]=null,m(u)&&(f[u]=null);else if(Qt(u)){u.value=null;const v=t;v.k&&(h[v.k]=null)}}if(Ze(l))La(l,a,12,[s,h]);else{const v=qt(l),w=Qt(l);if(v||w){const b=()=>{if(e.f){const y=v?m(l)?f[l]:h[l]:l.value;if(o)Ge(y)&&Fg(y,r);else if(Ge(y))y.includes(r)||y.push(r);else if(v)h[l]=[r],m(l)&&(f[l]=h[l]);else{const R=[r];l.value=R,e.k&&(h[e.k]=R)}}else v?(h[l]=s,m(l)&&(f[l]=s)):w&&(l.value=s,e.k&&(h[e.k]=s))};if(s){const y=()=>{b(),hd.delete(e)};y.id=-1,hd.set(e,y),pi(y,n)}else xy(e),b()}}}function xy(e){const t=hd.get(e);t&&(t.flags|=8,hd.delete(e))}Zu().requestIdleCallback,Zu().cancelIdleCallback;const Na=e=>!!e.type.__asyncLoader,fd=e=>e.type.__isKeepAlive;function TM(e,t){Fy(e,"a",t)}function AM(e,t){Fy(e,"da",t)}function Fy(e,t,n=On){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(gd(t,i,n),n){let o=n.parent;for(;o&&o.parent;)fd(o.parent.vnode)&&IM(i,t,n,o),o=o.parent}}function IM(e,t,n,i){const o=gd(t,e,i,!0);pd(()=>{Fg(i[t],o)},n)}function gd(e,t,n=On,i=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{wo();const a=ic(n),l=eo(t,n,e,s);return a(),bo(),l});return i?o.unshift(r):o.push(r),r}}const Zo=e=>(t,n=On)=>{(!oc||e==="sp")&&gd(e,(...i)=>t(...i),n)},MM=Zo("bm"),kr=Zo("m"),kM=Zo("bu"),LM=Zo("u"),Ds=Zo("bum"),pd=Zo("um"),OM=Zo("sp"),_M=Zo("rtg"),NM=Zo("rtc");function BM(e,t=On){gd("ec",e,t)}const HM="components";function Ts(e,t){return VM(HM,e,!0,t)||e}const GM=Symbol.for("v-ndc");function VM(e,t,n=!0,i=!1){const o=Sn||On;if(o){const r=o.type;{const a=oS(r,!1);if(a&&(a===t||a===Mn(t)||a===Qu(Mn(t))))return r}const s=Py(o[e]||r[e],t)||Py(o.appContext[e],t);return!s&&i?r:s}}function Py(e,t){return e&&(e[t]||e[Mn(t)]||e[Qu(Mn(t))])}function Ii(e,t,n,i){let o;const r=n,s=Ge(e);if(s||qt(e)){const a=s&&Ko(e);let l=!1,u=!1;a&&(l=!fi(e),u=qo(e),e=td(e)),o=new Array(e.length);for(let h=0,f=e.length;h<f;h++)o[h]=t(l?u?ka(Xi(e[h])):Xi(e[h]):e[h],h,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,r)}else if(Dt(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,r));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const h=a[l];o[l]=t(e[h],h,l,r)}}else o=[];return o}function As(e,t,n={},i,o){if(Sn.ce||Sn.parent&&Na(Sn.parent)&&Sn.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),se(),an(bt,null,[Oe("slot",n,i&&i())],u?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),se();const s=r&&Ey(r(n)),a=n.key||s&&s.key,l=an(bt,{key:(a&&!Zi(a)?a:`_${t}`)+(!s&&i?"_fb":"")},s||(i?i():[]),s&&e._===1?64:-2);return r&&r._c&&(r._d=!0),l}function Ey(e){return e.some(t=>tc(t)?!(t.type===Ln||t.type===bt&&!Ey(t.children)):!0)?e:null}const Kg=e=>e?tS(e)?Sd(e):Kg(e.parent):null,Yl=Gt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Kg(e.parent),$root:e=>Kg(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ay(e),$forceUpdate:e=>e.f||(e.f=()=>{Wg(e.update)}),$nextTick:e=>e.n||(e.n=Mr.bind(e.proxy)),$watch:e=>RM.bind(e)}),qg=(e,t)=>e!==Ct&&!e.__isScriptSetup&&St(e,t),WM={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:o,props:r,accessCache:s,type:a,appContext:l}=e;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(qg(i,t))return s[t]=1,i[t];if(o!==Ct&&St(o,t))return s[t]=2,o[t];if(St(r,t))return s[t]=3,r[t];if(n!==Ct&&St(n,t))return s[t]=4,n[t];Qg&&(s[t]=0)}}const u=Yl[t];let h,f;if(u)return t==="$attrs"&&kn(e.attrs,"get",""),u(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Ct&&St(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,St(f,t))return f[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:r}=e;return qg(o,t)?(o[t]=n,!0):i!==Ct&&St(i,t)?(i[t]=n,!0):St(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,props:r,type:s}},a){let l;return!!(n[a]||e!==Ct&&a[0]!=="$"&&St(e,a)||qg(t,a)||St(r,a)||St(i,a)||St(Yl,a)||St(o.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:St(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zl(e){return Ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function zM(e,t){const n=Zl(e);for(const i in t){if(i.startsWith("__skip"))continue;let o=n[i];o?Ge(o)||Ze(o)?o=n[i]={type:o,default:t[i]}:o.default=t[i]:o===null&&(o=n[i]={default:t[i]}),o&&t[`__skip_${i}`]&&(o.skipFactory=!0)}return n}function Jo(e,t){return!e||!t?e||t:Ge(e)&&Ge(t)?e.concat(t):Gt({},Zl(e),Zl(t))}let Qg=!0;function UM(e){const t=Ay(e),n=e.proxy,i=e.ctx;Qg=!1,t.beforeCreate&&Dy(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:l,inject:u,created:h,beforeMount:f,mounted:g,beforeUpdate:m,updated:v,activated:w,deactivated:b,beforeDestroy:y,beforeUnmount:R,destroyed:S,unmounted:P,render:F,renderTracked:A,renderTriggered:k,errorCaptured:L,serverPrefetch:N,expose:M,inheritAttrs:E,components:I,directives:B,filters:W}=t;if(u&&$M(u,i,null),s)for(const fe in s){const ve=s[fe];Ze(ve)&&(i[fe]=ve.bind(n))}if(o){const fe=o.call(n,n);Dt(fe)&&(e.data=Hg(fe))}if(Qg=!0,r)for(const fe in r){const ve=r[fe],De=Ze(ve)?ve.bind(n,n):Ze(ve.get)?ve.get.bind(n,n):Co,oe=!Ze(ve)&&Ze(ve.set)?ve.set.bind(n):Co,H=de({get:De,set:oe});Object.defineProperty(i,fe,{enumerable:!0,configurable:!0,get:()=>H.value,set:Q=>H.value=Q})}if(a)for(const fe in a)Ty(a[fe],i,n,fe);if(l){const fe=Ze(l)?l.call(n):l;Reflect.ownKeys(fe).forEach(ve=>{wM(ve,fe[ve])})}h&&Dy(h,e,"c");function me(fe,ve){Ge(ve)?ve.forEach(De=>fe(De.bind(n))):ve&&fe(ve.bind(n))}if(me(MM,f),me(kr,g),me(kM,m),me(LM,v),me(TM,w),me(AM,b),me(BM,L),me(NM,A),me(_M,k),me(Ds,R),me(pd,P),me(OM,N),Ge(M))if(M.length){const fe=e.exposed||(e.exposed={});M.forEach(ve=>{Object.defineProperty(fe,ve,{get:()=>n[ve],set:De=>n[ve]=De,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===Co&&(e.render=F),E!=null&&(e.inheritAttrs=E),I&&(e.components=I),B&&(e.directives=B),N&&Ry(e)}function $M(e,t,n=Co){Ge(e)&&(e=Yg(e));for(const i in e){const o=e[i];let r;Dt(o)?"default"in o?r=Kl(o.from||i,o.default,!0):r=Kl(o.from||i):r=Kl(o),Qt(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[i]=r}}function Dy(e,t,n){eo(Ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ty(e,t,n,i){let o=i.includes(".")?py(n,i):()=>n[i];if(qt(e)){const r=t[e];Ze(r)&&Jt(o,r)}else if(Ze(e))Jt(o,e.bind(n));else if(Dt(e))if(Ge(e))e.forEach(r=>Ty(r,t,n,i));else{const r=Ze(e.handler)?e.handler.bind(n):t[e.handler];Ze(r)&&Jt(o,r,e)}}function Ay(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!i?l=t:(l={},o.length&&o.forEach(u=>md(l,u,s,!0)),md(l,t,s)),Dt(t)&&r.set(t,l),l}function md(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&md(e,r,n,!0),o&&o.forEach(s=>md(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const a=jM[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const jM={data:Iy,props:My,emits:My,methods:Jl,computed:Jl,beforeCreate:Un,created:Un,beforeMount:Un,mounted:Un,beforeUpdate:Un,updated:Un,beforeDestroy:Un,beforeUnmount:Un,destroyed:Un,unmounted:Un,activated:Un,deactivated:Un,errorCaptured:Un,serverPrefetch:Un,components:Jl,directives:Jl,watch:qM,provide:Iy,inject:KM};function Iy(e,t){return t?e?function(){return Gt(Ze(e)?e.call(this,this):e,Ze(t)?t.call(this,this):t)}:t:e}function KM(e,t){return Jl(Yg(e),Yg(t))}function Yg(e){if(Ge(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Un(e,t){return e?[...new Set([].concat(e,t))]:t}function Jl(e,t){return e?Gt(Object.create(null),e,t):t}function My(e,t){return e?Ge(e)&&Ge(t)?[...new Set([...e,...t])]:Gt(Object.create(null),Zl(e),Zl(t??{})):t}function qM(e,t){if(!e)return t;if(!t)return e;const n=Gt(Object.create(null),e);for(const i in t)n[i]=Un(e[i],t[i]);return n}function ky(){return{app:null,config:{isNativeTag:Tb,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let QM=0;function YM(e,t){return function(i,o=null){Ze(i)||(i=Gt({},i)),o!=null&&!Dt(o)&&(o=null);const r=ky(),s=new WeakSet,a=[];let l=!1;const u=r.app={_uid:QM++,_component:i,_props:o,_container:null,_context:r,_instance:null,version:Ek,get config(){return r.config},set config(h){},use(h,...f){return s.has(h)||(h&&Ze(h.install)?(s.add(h),h.install(u,...f)):Ze(h)&&(s.add(h),h(u,...f))),u},mixin(h){return r.mixins.includes(h)||r.mixins.push(h),u},component(h,f){return f?(r.components[h]=f,u):r.components[h]},directive(h,f){return f?(r.directives[h]=f,u):r.directives[h]},mount(h,f,g){if(!l){const m=u._ceVNode||Oe(i,o);return m.appContext=r,g===!0?g="svg":g===!1&&(g=void 0),e(m,h,g),l=!0,u._container=h,h.__vue_app__=u,Sd(m.component)}},onUnmount(h){a.push(h)},unmount(){l&&(eo(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(h,f){return r.provides[h]=f,u},runWithContext(h){const f=Ba;Ba=u;try{return h()}finally{Ba=f}}};return u}}let Ba=null;function gi(e,t,n=Ct){const i=Xo(),o=Mn(t),r=ti(t),s=Ly(e,o),a=sy((l,u)=>{let h,f=Ct,g;return SM(()=>{const m=e[o];ni(h,m)&&(h=m,u())}),{get(){return l(),n.get?n.get(h):h},set(m){const v=n.set?n.set(m):m;if(!ni(v,h)&&!(f!==Ct&&ni(m,f)))return;const w=i.vnode.props;w&&(t in w||o in w||r in w)&&(`onUpdate:${t}`in w||`onUpdate:${o}`in w||`onUpdate:${r}`in w)||(h=m,u()),i.emit(`update:${t}`,v),ni(m,v)&&ni(m,f)&&!ni(v,g)&&u(),f=m,g=v}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||Ct:a,done:!1}:{done:!0}}}},a}const Ly=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Mn(t)}Modifiers`]||e[`${ti(t)}Modifiers`];function ZM(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Ct;let o=n;const r=t.startsWith("update:"),s=r&&Ly(i,t.slice(7));s&&(s.trim&&(o=n.map(h=>qt(h)?h.trim():h)),s.number&&(o=n.map(Eg)));let a,l=i[a=Pg(t)]||i[a=Pg(Mn(t))];!l&&r&&(l=i[a=Pg(ti(t))]),l&&eo(l,e,6,o);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,eo(u,e,6,o)}}const JM=new WeakMap;function Oy(e,t,n=!1){const i=n?JM:t.emitsCache,o=i.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!Ze(e)){const l=u=>{const h=Oy(u,t,!0);h&&(a=!0,Gt(s,h))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(Dt(e)&&i.set(e,null),null):(Ge(r)?r.forEach(l=>s[l]=null):Gt(s,r),Dt(e)&&i.set(e,s),s)}function vd(e,t){return!e||!Uu(t)?!1:(t=t.slice(2).replace(/Once$/,""),St(e,t[0].toLowerCase()+t.slice(1))||St(e,ti(t))||St(e,t))}function Nle(){}function _y(e){const{type:t,vnode:n,proxy:i,withProxy:o,propsOptions:[r],slots:s,attrs:a,emit:l,render:u,renderCache:h,props:f,data:g,setupState:m,ctx:v,inheritAttrs:w}=e,b=ud(e);let y,R;try{if(n.shapeFlag&4){const P=o||i,F=P;y=Ro(u.call(F,P,h,f,m,g,v)),R=a}else{const P=t;y=Ro(P.length>1?P(f,{attrs:a,slots:s,emit:l}):P(f,null)),R=t.props?a:XM(a)}}catch(P){Xl.length=0,ld(P,e,1),y=Oe(Ln)}let S=y;if(R&&w!==!1){const P=Object.keys(R),{shapeFlag:F}=S;P.length&&F&7&&(r&&P.some(xg)&&(R=ek(R,r)),S=Lr(S,R,!1,!0))}return n.dirs&&(S=Lr(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&ql(S,n.transition),y=S,ud(b),y}const XM=e=>{let t;for(const n in e)(n==="class"||n==="style"||Uu(n))&&((t||(t={}))[n]=e[n]);return t},ek=(e,t)=>{const n={};for(const i in e)(!xg(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function tk(e,t,n){const{props:i,children:o,component:r}=e,{props:s,children:a,patchFlag:l}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Ny(i,s,u):!!s;if(l&8){const h=t.dynamicProps;for(let f=0;f<h.length;f++){const g=h[f];if(s[g]!==i[g]&&!vd(u,g))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:i===s?!1:i?s?Ny(i,s,u):!0:!!s;return!1}function Ny(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o<i.length;o++){const r=i[o];if(t[r]!==e[r]&&!vd(n,r))return!0}return!1}function nk({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const By={},Hy=()=>Object.create(By),Gy=e=>Object.getPrototypeOf(e)===By;function ik(e,t,n,i=!1){const o={},r=Hy();e.propsDefaults=Object.create(null),Vy(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=i?o:JI(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ok(e,t,n,i){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,a=ut(o),[l]=e.propsOptions;let u=!1;if((i||s>0)&&!(s&16)){if(s&8){const h=e.vnode.dynamicProps;for(let f=0;f<h.length;f++){let g=h[f];if(vd(e.emitsOptions,g))continue;const m=t[g];if(l)if(St(r,g))m!==r[g]&&(r[g]=m,u=!0);else{const v=Mn(g);o[v]=Zg(l,a,v,m,e,!1)}else m!==r[g]&&(r[g]=m,u=!0)}}}else{Vy(e,t,o,r)&&(u=!0);let h;for(const f in a)(!t||!St(t,f)&&((h=ti(f))===f||!St(t,h)))&&(l?n&&(n[f]!==void 0||n[h]!==void 0)&&(o[f]=Zg(l,a,f,void 0,e,!0)):delete o[f]);if(r!==a)for(const f in r)(!t||!St(t,f))&&(delete r[f],u=!0)}u&&$o(e.attrs,"set","")}function Vy(e,t,n,i){const[o,r]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(Hl(l))continue;const u=t[l];let h;o&&St(o,h=Mn(l))?!r||!r.includes(h)?n[h]=u:(a||(a={}))[h]=u:vd(e.emitsOptions,l)||(!(l in i)||u!==i[l])&&(i[l]=u,s=!0)}if(r){const l=ut(n),u=a||Ct;for(let h=0;h<r.length;h++){const f=r[h];n[f]=Zg(o,l,f,u[f],e,!St(u,f))}}return s}function Zg(e,t,n,i,o,r){const s=e[n];if(s!=null){const a=St(s,"default");if(a&&i===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&Ze(l)){const{propsDefaults:u}=o;if(n in u)i=u[n];else{const h=ic(o);i=u[n]=l.call(null,t),h()}}else i=l;o.ce&&o.ce._setProp(n,i)}s[0]&&(r&&!a?i=!1:s[1]&&(i===""||i===ti(n))&&(i=!0))}return i}const rk=new WeakMap;function Wy(e,t,n=!1){const i=n?rk:t.propsCache,o=i.get(e);if(o)return o;const r=e.props,s={},a=[];let l=!1;if(!Ze(e)){const h=f=>{l=!0;const[g,m]=Wy(f,t,!0);Gt(s,g),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!r&&!l)return Dt(e)&&i.set(e,Ta),Ta;if(Ge(r))for(let h=0;h<r.length;h++){const f=Mn(r[h]);zy(f)&&(s[f]=Ct)}else if(r)for(const h in r){const f=Mn(h);if(zy(f)){const g=r[h],m=s[f]=Ge(g)||Ze(g)?{type:g}:Gt({},g),v=m.type;let w=!1,b=!0;if(Ge(v))for(let y=0;y<v.length;++y){const R=v[y],S=Ze(R)&&R.name;if(S==="Boolean"){w=!0;break}else S==="String"&&(b=!1)}else w=Ze(v)&&v.name==="Boolean";m[0]=w,m[1]=b,(w||St(m,"default"))&&a.push(f)}}const u=[s,a];return Dt(e)&&i.set(e,u),u}function zy(e){return e[0]!=="$"&&!Hl(e)}const Jg=e=>e==="_"||e==="_ctx"||e==="$stable",Xg=e=>Ge(e)?e.map(Ro):[Ro(e)],sk=(e,t,n)=>{if(t._n)return t;const i=zn((...o)=>Xg(t(...o)),n);return i._c=!1,i},Uy=(e,t,n)=>{const i=e._ctx;for(const o in e){if(Jg(o))continue;const r=e[o];if(Ze(r))t[o]=sk(o,r,i);else if(r!=null){const s=Xg(r);t[o]=()=>s}}},$y=(e,t)=>{const n=Xg(t);e.slots.default=()=>n},jy=(e,t,n)=>{for(const i in t)(n||!Jg(i))&&(e[i]=t[i])},ak=(e,t,n)=>{const i=e.slots=Hy();if(e.vnode.shapeFlag&32){const o=t._;o?(jy(i,t,n),n&&kb(i,"_",o,!0)):Uy(t,i)}else t&&$y(e,t)},lk=(e,t,n)=>{const{vnode:i,slots:o}=e;let r=!0,s=Ct;if(i.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:jy(o,t,n):(r=!t.$stable,Uy(t,o)),s=t}else t&&($y(e,t),s={default:1});if(r)for(const a in o)!Jg(a)&&s[a]==null&&delete o[a]},pi=fk;function ck(e){return uk(e)}function uk(e,t){const n=Zu();n.__VUE__=!0;const{insert:i,remove:o,patchProp:r,createElement:s,createText:a,createComment:l,setText:u,setElementText:h,parentNode:f,nextSibling:g,setScopeId:m=Co,insertStaticContent:v}=e,w=(O,V,U,ne=null,te=null,Z=null,Se=void 0,Ce=null,he=!!V.dynamicChildren)=>{if(O===V)return;O&&!Ms(O,V)&&(ne=Fe(O),Q(O,te,Z,!0),O=null),V.patchFlag===-2&&(he=!1,V.dynamicChildren=null);const{type:ie,ref:ke,shapeFlag:Te}=V;switch(ie){case Cd:b(O,V,U,ne);break;case Ln:y(O,V,U,ne);break;case tp:O==null&&R(V,U,ne,Se);break;case bt:I(O,V,U,ne,te,Z,Se,Ce,he);break;default:Te&1?F(O,V,U,ne,te,Z,Se,Ce,he):Te&6?B(O,V,U,ne,te,Z,Se,Ce,he):(Te&64||Te&128)&&ie.process(O,V,U,ne,te,Z,Se,Ce,he,Ve)}ke!=null&&te?Ql(ke,O&&O.ref,Z,V||O,!V):ke==null&&O&&O.ref!=null&&Ql(O.ref,null,Z,O,!0)},b=(O,V,U,ne)=>{if(O==null)i(V.el=a(V.children),U,ne);else{const te=V.el=O.el;V.children!==O.children&&u(te,V.children)}},y=(O,V,U,ne)=>{O==null?i(V.el=l(V.children||""),U,ne):V.el=O.el},R=(O,V,U,ne)=>{[O.el,O.anchor]=v(O.children,V,U,ne,O.el,O.anchor)},S=({el:O,anchor:V},U,ne)=>{let te;for(;O&&O!==V;)te=g(O),i(O,U,ne),O=te;i(V,U,ne)},P=({el:O,anchor:V})=>{let U;for(;O&&O!==V;)U=g(O),o(O),O=U;o(V)},F=(O,V,U,ne,te,Z,Se,Ce,he)=>{if(V.type==="svg"?Se="svg":V.type==="math"&&(Se="mathml"),O==null)A(V,U,ne,te,Z,Se,Ce,he);else{const ie=O.el&&O.el._isVueCE?O.el:null;try{ie&&ie._beginPatch(),N(O,V,te,Z,Se,Ce,he)}finally{ie&&ie._endPatch()}}},A=(O,V,U,ne,te,Z,Se,Ce)=>{let he,ie;const{props:ke,shapeFlag:Te,transition:He,dirs:ze}=O;if(he=O.el=s(O.type,Z,ke&&ke.is,ke),Te&8?h(he,O.children):Te&16&&L(O.children,he,null,ne,te,ep(O,Z),Se,Ce),ze&&Es(O,null,ne,"created"),k(he,O,O.scopeId,Se,ne),ke){for(const rt in ke)rt!=="value"&&!Hl(rt)&&r(he,rt,null,ke[rt],Z,ne);"value"in ke&&r(he,"value",null,ke.value,Z),(ie=ke.onVnodeBeforeMount)&&xo(ie,ne,O)}ze&&Es(O,null,ne,"beforeMount");const Xe=dk(te,He);Xe&&He.beforeEnter(he),i(he,V,U),((ie=ke&&ke.onVnodeMounted)||Xe||ze)&&pi(()=>{ie&&xo(ie,ne,O),Xe&&He.enter(he),ze&&Es(O,null,ne,"mounted")},te)},k=(O,V,U,ne,te)=>{if(U&&m(O,U),ne)for(let Z=0;Z<ne.length;Z++)m(O,ne[Z]);if(te){let Z=te.subTree;if(V===Z||Zy(Z.type)&&(Z.ssContent===V||Z.ssFallback===V)){const Se=te.vnode;k(O,Se,Se.scopeId,Se.slotScopeIds,te.parent)}}},L=(O,V,U,ne,te,Z,Se,Ce,he=0)=>{for(let ie=he;ie<O.length;ie++){const ke=O[ie]=Ce?Or(O[ie]):Ro(O[ie]);w(null,ke,V,U,ne,te,Z,Se,Ce)}},N=(O,V,U,ne,te,Z,Se)=>{const Ce=V.el=O.el;let{patchFlag:he,dynamicChildren:ie,dirs:ke}=V;he|=O.patchFlag&16;const Te=O.props||Ct,He=V.props||Ct;let ze;if(U&&Is(U,!1),(ze=He.onVnodeBeforeUpdate)&&xo(ze,U,V,O),ke&&Es(V,O,U,"beforeUpdate"),U&&Is(U,!0),(Te.innerHTML&&He.innerHTML==null||Te.textContent&&He.textContent==null)&&h(Ce,""),ie?M(O.dynamicChildren,ie,Ce,U,ne,ep(V,te),Z):Se||ve(O,V,Ce,null,U,ne,ep(V,te),Z,!1),he>0){if(he&16)E(Ce,Te,He,U,te);else if(he&2&&Te.class!==He.class&&r(Ce,"class",null,He.class,te),he&4&&r(Ce,"style",Te.style,He.style,te),he&8){const Xe=V.dynamicProps;for(let rt=0;rt<Xe.length;rt++){const it=Xe[rt],Ut=Te[it],$t=He[it];($t!==Ut||it==="value")&&r(Ce,it,Ut,$t,te,U)}}he&1&&O.children!==V.children&&h(Ce,V.children)}else!Se&&ie==null&&E(Ce,Te,He,U,te);((ze=He.onVnodeUpdated)||ke)&&pi(()=>{ze&&xo(ze,U,V,O),ke&&Es(V,O,U,"updated")},ne)},M=(O,V,U,ne,te,Z,Se)=>{for(let Ce=0;Ce<V.length;Ce++){const he=O[Ce],ie=V[Ce],ke=he.el&&(he.type===bt||!Ms(he,ie)||he.shapeFlag&198)?f(he.el):U;w(he,ie,ke,null,ne,te,Z,Se,!0)}},E=(O,V,U,ne,te)=>{if(V!==U){if(V!==Ct)for(const Z in V)!Hl(Z)&&!(Z in U)&&r(O,Z,V[Z],null,te,ne);for(const Z in U){if(Hl(Z))continue;const Se=U[Z],Ce=V[Z];Se!==Ce&&Z!=="value"&&r(O,Z,Ce,Se,te,ne)}"value"in U&&r(O,"value",V.value,U.value,te)}},I=(O,V,U,ne,te,Z,Se,Ce,he)=>{const ie=V.el=O?O.el:a(""),ke=V.anchor=O?O.anchor:a("");let{patchFlag:Te,dynamicChildren:He,slotScopeIds:ze}=V;ze&&(Ce=Ce?Ce.concat(ze):ze),O==null?(i(ie,U,ne),i(ke,U,ne),L(V.children||[],U,ke,te,Z,Se,Ce,he)):Te>0&&Te&64&&He&&O.dynamicChildren&&O.dynamicChildren.length===He.length?(M(O.dynamicChildren,He,U,te,Z,Se,Ce),(V.key!=null||te&&V===te.subTree)&&Ky(O,V,!0)):ve(O,V,U,ke,te,Z,Se,Ce,he)},B=(O,V,U,ne,te,Z,Se,Ce,he)=>{V.slotScopeIds=Ce,O==null?V.shapeFlag&512?te.ctx.activate(V,U,ne,Se,he):W(V,U,ne,te,Z,Se,he):J(O,V,he)},W=(O,V,U,ne,te,Z,Se)=>{const Ce=O.component=wk(O,ne,te);if(fd(O)&&(Ce.ctx.renderer=Ve),bk(Ce,!1,Se),Ce.asyncDep){if(te&&te.registerDep(Ce,me,Se),!O.el){const he=Ce.subTree=Oe(Ln);y(null,he,V,U),O.placeholder=he.el}}else me(Ce,O,V,U,te,Z,Se)},J=(O,V,U)=>{const ne=V.component=O.component;if(tk(O,V,U))if(ne.asyncDep&&!ne.asyncResolved){fe(ne,V,U);return}else ne.next=V,ne.update();else V.el=O.el,ne.vnode=V},me=(O,V,U,ne,te,Z,Se)=>{const Ce=()=>{if(O.isMounted){let{next:Te,bu:He,u:ze,parent:Xe,vnode:rt}=O;{const wn=qy(O);if(wn){Te&&(Te.el=rt.el,fe(O,Te,Se)),wn.asyncDep.then(()=>{O.isUnmounted||Ce()});return}}let it=Te,Ut;Is(O,!1),Te?(Te.el=rt.el,fe(O,Te,Se)):Te=rt,He&&Yu(He),(Ut=Te.props&&Te.props.onVnodeBeforeUpdate)&&xo(Ut,Xe,Te,rt),Is(O,!0);const $t=_y(O),Yt=O.subTree;O.subTree=$t,w(Yt,$t,f(Yt.el),Fe(Yt),O,te,Z),Te.el=$t.el,it===null&&nk(O,$t.el),ze&&pi(ze,te),(Ut=Te.props&&Te.props.onVnodeUpdated)&&pi(()=>xo(Ut,Xe,Te,rt),te)}else{let Te;const{el:He,props:ze}=V,{bm:Xe,m:rt,parent:it,root:Ut,type:$t}=O,Yt=Na(V);Is(O,!1),Xe&&Yu(Xe),!Yt&&(Te=ze&&ze.onVnodeBeforeMount)&&xo(Te,it,V),Is(O,!0);{Ut.ce&&Ut.ce._def.shadowRoot!==!1&&Ut.ce._injectChildStyle($t);const wn=O.subTree=_y(O);w(null,wn,U,ne,O,te,Z),V.el=wn.el}if(rt&&pi(rt,te),!Yt&&(Te=ze&&ze.onVnodeMounted)){const wn=V;pi(()=>xo(Te,it,wn),te)}(V.shapeFlag&256||it&&Na(it.vnode)&&it.vnode.shapeFlag&256)&&O.a&&pi(O.a,te),O.isMounted=!0,V=U=ne=null}};O.scope.on();const he=O.effect=new Hb(Ce);O.scope.off();const ie=O.update=he.run.bind(he),ke=O.job=he.runIfDirty.bind(he);ke.i=O,ke.id=O.uid,he.scheduler=()=>Wg(ke),Is(O,!0),ie()},fe=(O,V,U)=>{V.component=O;const ne=O.vnode.props;O.vnode=V,O.next=null,ok(O,V.props,ne,U),lk(O,V.children,U),wo(),dy(O),bo()},ve=(O,V,U,ne,te,Z,Se,Ce,he=!1)=>{const ie=O&&O.children,ke=O?O.shapeFlag:0,Te=V.children,{patchFlag:He,shapeFlag:ze}=V;if(He>0){if(He&128){oe(ie,Te,U,ne,te,Z,Se,Ce,he);return}else if(He&256){De(ie,Te,U,ne,te,Z,Se,Ce,he);return}}ze&8?(ke&16&&Ie(ie,te,Z),Te!==ie&&h(U,Te)):ke&16?ze&16?oe(ie,Te,U,ne,te,Z,Se,Ce,he):Ie(ie,te,Z,!0):(ke&8&&h(U,""),ze&16&&L(Te,U,ne,te,Z,Se,Ce,he))},De=(O,V,U,ne,te,Z,Se,Ce,he)=>{O=O||Ta,V=V||Ta;const ie=O.length,ke=V.length,Te=Math.min(ie,ke);let He;for(He=0;He<Te;He++){const ze=V[He]=he?Or(V[He]):Ro(V[He]);w(O[He],ze,U,null,te,Z,Se,Ce,he)}ie>ke?Ie(O,te,Z,!0,!1,Te):L(V,U,ne,te,Z,Se,Ce,he,Te)},oe=(O,V,U,ne,te,Z,Se,Ce,he)=>{let ie=0;const ke=V.length;let Te=O.length-1,He=ke-1;for(;ie<=Te&&ie<=He;){const ze=O[ie],Xe=V[ie]=he?Or(V[ie]):Ro(V[ie]);if(Ms(ze,Xe))w(ze,Xe,U,null,te,Z,Se,Ce,he);else break;ie++}for(;ie<=Te&&ie<=He;){const ze=O[Te],Xe=V[He]=he?Or(V[He]):Ro(V[He]);if(Ms(ze,Xe))w(ze,Xe,U,null,te,Z,Se,Ce,he);else break;Te--,He--}if(ie>Te){if(ie<=He){const ze=He+1,Xe=ze<ke?V[ze].el:ne;for(;ie<=He;)w(null,V[ie]=he?Or(V[ie]):Ro(V[ie]),U,Xe,te,Z,Se,Ce,he),ie++}}else if(ie>He)for(;ie<=Te;)Q(O[ie],te,Z,!0),ie++;else{const ze=ie,Xe=ie,rt=new Map;for(ie=Xe;ie<=He;ie++){const nn=V[ie]=he?Or(V[ie]):Ro(V[ie]);nn.key!=null&&rt.set(nn.key,ie)}let it,Ut=0;const $t=He-Xe+1;let Yt=!1,wn=0;const Si=new Array($t);for(ie=0;ie<$t;ie++)Si[ie]=0;for(ie=ze;ie<=Te;ie++){const nn=O[ie];if(Ut>=$t){Q(nn,te,Z,!0);continue}let bn;if(nn.key!=null)bn=rt.get(nn.key);else for(it=Xe;it<=He;it++)if(Si[it-Xe]===0&&Ms(nn,V[it])){bn=it;break}bn===void 0?Q(nn,te,Z,!0):(Si[bn-Xe]=ie+1,bn>=wn?wn=bn:Yt=!0,w(nn,V[bn],U,null,te,Z,Se,Ce,he),Ut++)}const Go=Yt?hk(Si):Ta;for(it=Go.length-1,ie=$t-1;ie>=0;ie--){const nn=Xe+ie,bn=V[nn],wr=V[nn+1],Dn=nn+1<ke?wr.el||Yy(wr):ne;Si[ie]===0?w(null,bn,U,Dn,te,Z,Se,Ce,he):Yt&&(it<0||ie!==Go[it]?H(bn,U,Dn,2):it--)}}},H=(O,V,U,ne,te=null)=>{const{el:Z,type:Se,transition:Ce,children:he,shapeFlag:ie}=O;if(ie&6){H(O.component.subTree,V,U,ne);return}if(ie&128){O.suspense.move(V,U,ne);return}if(ie&64){Se.move(O,V,U,Ve);return}if(Se===bt){i(Z,V,U);for(let Te=0;Te<he.length;Te++)H(he[Te],V,U,ne);i(O.anchor,V,U);return}if(Se===tp){S(O,V,U);return}if(ne!==2&&ie&1&&Ce)if(ne===0)Ce.beforeEnter(Z),i(Z,V,U),pi(()=>Ce.enter(Z),te);else{const{leave:Te,delayLeave:He,afterLeave:ze}=Ce,Xe=()=>{O.ctx.isUnmounted?o(Z):i(Z,V,U)},rt=()=>{Z._isLeaving&&Z[Yo](!0),Te(Z,()=>{Xe(),ze&&ze()})};He?He(Z,Xe,rt):rt()}else i(Z,V,U)},Q=(O,V,U,ne=!1,te=!1)=>{const{type:Z,props:Se,ref:Ce,children:he,dynamicChildren:ie,shapeFlag:ke,patchFlag:Te,dirs:He,cacheIndex:ze}=O;if(Te===-2&&(te=!1),Ce!=null&&(wo(),Ql(Ce,null,U,O,!0),bo()),ze!=null&&(V.renderCache[ze]=void 0),ke&256){V.ctx.deactivate(O);return}const Xe=ke&1&&He,rt=!Na(O);let it;if(rt&&(it=Se&&Se.onVnodeBeforeUnmount)&&xo(it,V,O),ke&6)Ee(O.component,U,ne);else{if(ke&128){O.suspense.unmount(U,ne);return}Xe&&Es(O,null,V,"beforeUnmount"),ke&64?O.type.remove(O,V,U,Ve,ne):ie&&!ie.hasOnce&&(Z!==bt||Te>0&&Te&64)?Ie(ie,V,U,!1,!0):(Z===bt&&Te&384||!te&&ke&16)&&Ie(he,V,U),ne&&j(O)}(rt&&(it=Se&&Se.onVnodeUnmounted)||Xe)&&pi(()=>{it&&xo(it,V,O),Xe&&Es(O,null,V,"unmounted")},U)},j=O=>{const{type:V,el:U,anchor:ne,transition:te}=O;if(V===bt){ce(U,ne);return}if(V===tp){P(O);return}const Z=()=>{o(U),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(O.shapeFlag&1&&te&&!te.persisted){const{leave:Se,delayLeave:Ce}=te,he=()=>Se(U,Z);Ce?Ce(O.el,Z,he):he()}else Z()},ce=(O,V)=>{let U;for(;O!==V;)U=g(O),o(O),O=U;o(V)},Ee=(O,V,U)=>{const{bum:ne,scope:te,job:Z,subTree:Se,um:Ce,m:he,a:ie}=O;Qy(he),Qy(ie),ne&&Yu(ne),te.stop(),Z&&(Z.flags|=8,Q(Se,O,V,U)),Ce&&pi(Ce,V),pi(()=>{O.isUnmounted=!0},V)},Ie=(O,V,U,ne=!1,te=!1,Z=0)=>{for(let Se=Z;Se<O.length;Se++)Q(O[Se],V,U,ne,te)},Fe=O=>{if(O.shapeFlag&6)return Fe(O.component.subTree);if(O.shapeFlag&128)return O.suspense.next();const V=g(O.anchor||O.el),U=V&&V[xM];return U?g(U):V};let Le=!1;const $e=(O,V,U)=>{let ne;O==null?V._vnode&&(Q(V._vnode,null,null,!0),ne=V._vnode.component):w(V._vnode||null,O,V,null,null,null,U),V._vnode=O,Le||(Le=!0,dy(ne),hy(),Le=!1)},Ve={p:w,um:Q,m:H,r:j,mt:W,mc:L,pc:ve,pbc:M,n:Fe,o:e};return{render:$e,hydrate:void 0,createApp:YM($e)}}function ep({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Is({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function dk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ky(e,t,n=!1){const i=e.children,o=t.children;if(Ge(i)&&Ge(o))for(let r=0;r<i.length;r++){const s=i[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Or(o[r]),a.el=s.el),!n&&a.patchFlag!==-2&&Ky(s,a)),a.type===Cd&&(a.patchFlag!==-1?a.el=s.el:a.__elIndex=r+(e.type===bt?1:0)),a.type===Ln&&!a.el&&(a.el=s.el)}}function hk(e){const t=e.slice(),n=[0];let i,o,r,s,a;const l=e.length;for(i=0;i<l;i++){const u=e[i];if(u!==0){if(o=n[n.length-1],e[o]<u){t[i]=o,n.push(i);continue}for(r=0,s=n.length-1;r<s;)a=r+s>>1,e[n[a]]<u?r=a+1:s=a;u<e[n[r]]&&(r>0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function qy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qy(t)}function Qy(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Yy(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Yy(t.subTree):null}const Zy=e=>e.__isSuspense;function fk(e,t){t&&t.pendingBranch?Ge(e)?t.effects.push(...e):t.effects.push(e):CM(e)}const bt=Symbol.for("v-fgt"),Cd=Symbol.for("v-txt"),Ln=Symbol.for("v-cmt"),tp=Symbol.for("v-stc"),Xl=[];let mi=null;function se(e=!1){Xl.push(mi=e?null:[])}function gk(){Xl.pop(),mi=Xl[Xl.length-1]||null}let ec=1;function wd(e,t=!1){ec+=e,e<0&&mi&&t&&(mi.hasOnce=!0)}function Jy(e){return e.dynamicChildren=ec>0?mi||Ta:null,gk(),ec>0&&mi&&mi.push(e),e}function pe(e,t,n,i,o,r){return Jy(q(e,t,n,i,o,r,!0))}function an(e,t,n,i,o){return Jy(Oe(e,t,n,i,o,!0))}function tc(e){return e?e.__v_isVNode===!0:!1}function Ms(e,t){return e.type===t.type&&e.key===t.key}const Xy=({key:e})=>e??null,bd=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?qt(e)||Qt(e)||Ze(e)?{i:Sn,r:e,k:t,f:!!n}:e:null);function q(e,t=null,n=null,i=0,o=null,r=e===bt?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xy(t),ref:t&&bd(t),scopeId:gy,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Sn};return a?(np(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=qt(n)?8:16),ec>0&&!s&&mi&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&mi.push(l),l}const Oe=pk;function pk(e,t=null,n=null,i=0,o=null,r=!1){if((!e||e===GM)&&(e=Ln),tc(e)){const a=Lr(e,t,!0);return n&&np(a,n),ec>0&&!r&&mi&&(a.shapeFlag&6?mi[mi.indexOf(e)]=a:mi.push(a)),a.patchFlag=-2,a}if(Pk(e)&&(e=e.__vccOpts),t){t=mk(t);let{class:a,style:l}=t;a&&!qt(a)&&(t.class=ft(a)),Dt(l)&&(Ma(l)&&!Ge(l)&&(l=Gt({},l)),t.style=Uo(l))}const s=qt(e)?1:Zy(e)?128:my(e)?64:Dt(e)?4:Ze(e)?2:0;return q(e,t,n,i,o,s,r,!0)}function mk(e){return e?Ma(e)||Gy(e)?Gt({},e):e:null}function Lr(e,t,n=!1,i=!1){const{props:o,ref:r,patchFlag:s,children:a,transition:l}=e,u=t?nc(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Xy(u),ref:t&&t.ref?n&&r?Ge(r)?r.concat(bd(t)):[r,bd(t)]:bd(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==bt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Lr(e.ssContent),ssFallback:e.ssFallback&&Lr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&ql(h,l.clone(h)),h}function to(e=" ",t=0){return Oe(Cd,null,e,t)}function gt(e="",t=!1){return t?(se(),an(Ln,null,e)):Oe(Ln,null,e)}function Ro(e){return e==null||typeof e=="boolean"?Oe(Ln):Ge(e)?Oe(bt,null,e.slice()):tc(e)?Or(e):Oe(Cd,null,String(e))}function Or(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Lr(e)}function np(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Ge(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),np(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Gy(t)?t._ctx=Sn:o===3&&Sn&&(Sn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ze(t)?(t={default:t,_ctx:Sn},n=32):(t=String(t),i&64?(n=16,t=[to(t)]):n=8);e.children=t,e.shapeFlag|=n}function nc(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const o in i)if(o==="class")t.class!==i.class&&(t.class=ft([t.class,i.class]));else if(o==="style")t.style=Uo([t.style,i.style]);else if(Uu(o)){const r=t[o],s=i[o];s&&r!==s&&!(Ge(r)&&r.includes(s))&&(t[o]=r?[].concat(r,s):s)}else o!==""&&(t[o]=i[o])}return t}function xo(e,t,n,i=null){eo(e,t,7,[n,i])}const vk=ky();let Ck=0;function wk(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||vk,r={uid:Ck++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new II(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wy(i,o),emitsOptions:Oy(i,o),emit:null,emitted:null,propsDefaults:Ct,inheritAttrs:i.inheritAttrs,ctx:Ct,data:Ct,props:Ct,attrs:Ct,slots:Ct,refs:Ct,setupState:Ct,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=ZM.bind(null,r),e.ce&&e.ce(r),r}let On=null;const Xo=()=>On||Sn;let yd,ip;{const e=Zu(),t=(n,i)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(i),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};yd=t("__VUE_INSTANCE_SETTERS__",n=>On=n),ip=t("__VUE_SSR_SETTERS__",n=>oc=n)}const ic=e=>{const t=On;return yd(e),e.scope.on(),()=>{e.scope.off(),yd(t)}},eS=()=>{On&&On.scope.off(),yd(null)};function tS(e){return e.vnode.shapeFlag&4}let oc=!1;function bk(e,t=!1,n=!1){t&&ip(t);const{props:i,children:o}=e.vnode,r=tS(e);ik(e,i,r,t),ak(e,o,n||t);const s=r?yk(e,t):void 0;return t&&ip(!1),s}function yk(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,WM);const{setup:i}=n;if(i){wo();const o=e.setupContext=i.length>1?Rk(e):null,r=ic(e),s=La(i,e,0,[e.props,o]),a=Ib(s);if(bo(),r(),(a||e.sp)&&!Na(e)&&Ry(e),a){if(s.then(eS,eS),t)return s.then(l=>{nS(e,l)}).catch(l=>{ld(l,e,0)});e.asyncDep=s}else nS(e,s)}else iS(e)}function nS(e,t,n){Ze(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Dt(t)&&(e.setupState=ry(t)),iS(e)}function iS(e,t,n){const i=e.type;e.render||(e.render=i.render||Co);{const o=ic(e);wo();try{UM(e)}finally{bo(),o()}}}const Sk={get(e,t){return kn(e,"get",""),e[t]}};function Rk(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sk),slots:e.slots,emit:e.emit,expose:t}}function Sd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ry(iy(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yl)return Yl[n](e)},has(t,n){return n in t||n in Yl}})):e.proxy}const xk=/(?:^|[-_])\w/g,Fk=e=>e.replace(xk,t=>t.toUpperCase()).replace(/[-_]/g,"");function oS(e,t=!0){return Ze(e)?e.displayName||e.name:e.name||t&&e.__name}function rS(e,t,n=!1){let i=oS(t);if(!i&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(i=o[1])}if(!i&&e){const o=r=>{for(const s in r)if(r[s]===t)return s};i=o(e.components)||e.parent&&o(e.parent.type.components)||o(e.appContext.components)}return i?Fk(i):n?"App":"Anonymous"}function Pk(e){return Ze(e)&&"__vccOpts"in e}const de=(e,t)=>cM(e,t,oc);function rc(e,t,n){try{wd(-1);const i=arguments.length;return i===2?Dt(t)&&!Ge(t)?tc(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&tc(n)&&(n=[n]),Oe(e,t,n))}finally{wd(1)}}const Ek="3.5.27";let op;const sS=typeof window<"u"&&window.trustedTypes;if(sS)try{op=sS.createPolicy("vue",{createHTML:e=>e})}catch{}const aS=op?e=>op.createHTML(e):e=>e,Dk="http://www.w3.org/2000/svg",Tk="http://www.w3.org/1998/Math/MathML",er=typeof document<"u"?document:null,lS=er&&er.createElement("template"),Ak={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t==="svg"?er.createElementNS(Dk,e):t==="mathml"?er.createElementNS(Tk,e):n?er.createElement(e,{is:n}):er.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>er.createTextNode(e),createComment:e=>er.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>er.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{lS.innerHTML=aS(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const a=lS.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},_r="transition",sc="animation",ac=Symbol("_vtc"),cS={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ik=Gt({},vy,cS),Rd=(e=>(e.displayName="Transition",e.props=Ik,e))((e,{slots:t})=>rc(EM,Mk(e),t)),ks=(e,t=[])=>{Ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},uS=e=>e?Ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Mk(e){const t={};for(const I in e)I in cS||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:u=s,appearToClass:h=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,v=kk(o),w=v&&v[0],b=v&&v[1],{onBeforeEnter:y,onEnter:R,onEnterCancelled:S,onLeave:P,onLeaveCancelled:F,onBeforeAppear:A=y,onAppear:k=R,onAppearCancelled:L=S}=t,N=(I,B,W,J)=>{I._enterCancelled=J,Ls(I,B?h:a),Ls(I,B?u:s),W&&W()},M=(I,B)=>{I._isLeaving=!1,Ls(I,f),Ls(I,m),Ls(I,g),B&&B()},E=I=>(B,W)=>{const J=I?k:R,me=()=>N(B,I,W);ks(J,[B,me]),dS(()=>{Ls(B,I?l:r),tr(B,I?h:a),uS(J)||hS(B,i,w,me)})};return Gt(t,{onBeforeEnter(I){ks(y,[I]),tr(I,r),tr(I,s)},onBeforeAppear(I){ks(A,[I]),tr(I,l),tr(I,u)},onEnter:E(!1),onAppear:E(!0),onLeave(I,B){I._isLeaving=!0;const W=()=>M(I,B);tr(I,f),I._enterCancelled?(tr(I,g),pS(I)):(pS(I),tr(I,g)),dS(()=>{I._isLeaving&&(Ls(I,f),tr(I,m),uS(P)||hS(I,i,b,W))}),ks(P,[I,W])},onEnterCancelled(I){N(I,!1,void 0,!0),ks(S,[I])},onAppearCancelled(I){N(I,!0,void 0,!0),ks(L,[I])},onLeaveCancelled(I){M(I),ks(F,[I])}})}function kk(e){if(e==null)return null;if(Dt(e))return[rp(e.enter),rp(e.leave)];{const t=rp(e);return[t,t]}}function rp(e){return Dg(e)}function tr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ac]||(e[ac]=new Set)).add(t)}function Ls(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[ac];n&&(n.delete(t),n.size||(e[ac]=void 0))}function dS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Lk=0;function hS(e,t,n,i){const o=e._endId=++Lk,r=()=>{o===e._endId&&i()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:l}=Ok(e,t);if(!s)return i();const u=s+"end";let h=0;const f=()=>{e.removeEventListener(u,g),r()},g=m=>{m.target===e&&++h>=l&&f()};setTimeout(()=>{h<l&&f()},a+1),e.addEventListener(u,g)}function Ok(e,t){const n=window.getComputedStyle(e),i=v=>(n[v]||"").split(", "),o=i(`${_r}Delay`),r=i(`${_r}Duration`),s=fS(o,r),a=i(`${sc}Delay`),l=i(`${sc}Duration`),u=fS(a,l);let h=null,f=0,g=0;t===_r?s>0&&(h=_r,f=s,g=r.length):t===sc?u>0&&(h=sc,f=u,g=l.length):(f=Math.max(s,u),h=f>0?s>u?_r:sc:null,g=h?h===_r?r.length:l.length:0);const m=h===_r&&/\b(?:transform|all)(?:,|$)/.test(i(`${_r}Property`).toString());return{type:h,timeout:f,propCount:g,hasTransform:m}}function fS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>gS(n)+gS(e[i])))}function gS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function pS(e){return(e?e.ownerDocument:document).body.offsetHeight}function _k(e,t,n){const i=e[ac];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const xd=Symbol("_vod"),mS=Symbol("_vsh"),sp={name:"show",beforeMount(e,{value:t},{transition:n}){e[xd]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):lc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),lc(e,!0),i.enter(e)):i.leave(e,()=>{lc(e,!1)}):lc(e,t))},beforeUnmount(e,{value:t}){lc(e,t)}};function lc(e,t){e.style.display=t?e[xd]:"none",e[mS]=!t}const Nk=Symbol(""),Bk=/(?:^|;)\s*display\s*:/;function Hk(e,t,n){const i=e.style,o=qt(n);let r=!1;if(n&&!o){if(t)if(qt(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Fd(i,a,"")}else for(const s in t)n[s]==null&&Fd(i,s,"");for(const s in n)s==="display"&&(r=!0),Fd(i,s,n[s])}else if(o){if(t!==n){const s=i[Nk];s&&(n+=";"+s),i.cssText=n,r=Bk.test(n)}}else t&&e.removeAttribute("style");xd in e&&(e[xd]=r?i.display:"",e[mS]&&(i.display="none"))}const vS=/\s*!important$/;function Fd(e,t,n){if(Ge(n))n.forEach(i=>Fd(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Gk(e,t);vS.test(n)?e.setProperty(ti(i),n.replace(vS,""),"important"):e[i]=n}}const CS=["Webkit","Moz","ms"],ap={};function Gk(e,t){const n=ap[t];if(n)return n;let i=Mn(t);if(i!=="filter"&&i in e)return ap[t]=i;i=Qu(i);for(let o=0;o<CS.length;o++){const r=CS[o]+i;if(r in e)return ap[t]=r}return t}const wS="http://www.w3.org/1999/xlink";function bS(e,t,n,i,o,r=TI(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(wS,t.slice(6,t.length)):e.setAttributeNS(wS,t,n):n==null||r&&!Ob(n)?e.removeAttribute(t):e.setAttribute(t,r?"":Zi(n)?String(n):n)}function yS(e,t,n,i,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?aS(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Ob(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(o||t)}function Os(e,t,n,i){e.addEventListener(t,n,i)}function Vk(e,t,n,i){e.removeEventListener(t,n,i)}const SS=Symbol("_vei");function Wk(e,t,n,i,o=null){const r=e[SS]||(e[SS]={}),s=r[t];if(i&&s)s.value=i;else{const[a,l]=zk(t);if(i){const u=r[t]=jk(i,o);Os(e,a,u,l)}else s&&(Vk(e,a,s,l),r[t]=void 0)}}const RS=/(?:Once|Passive|Capture)$/;function zk(e){let t;if(RS.test(e)){t={};let i;for(;i=e.match(RS);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ti(e.slice(2)),t]}let lp=0;const Uk=Promise.resolve(),$k=()=>lp||(Uk.then(()=>lp=0),lp=Date.now());function jk(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;eo(Kk(i,n.value),t,5,[i])};return n.value=e,n.attached=$k(),n}function Kk(e,t){if(Ge(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const xS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qk=(e,t,n,i,o,r)=>{const s=o==="svg";t==="class"?_k(e,i,s):t==="style"?Hk(e,n,i):Uu(t)?xg(t)||Wk(e,t,n,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qk(e,t,i,s))?(yS(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&bS(e,t,i,s,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!qt(i))?yS(e,Mn(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),bS(e,t,i,s))};function Qk(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&xS(t)&&Ze(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return xS(t)&&qt(n)?!1:t in e}const FS={};function cp(e,t,n){let i=wt(e,t);ju(i)&&(i=Gt({},i,t));class o extends up{constructor(s){super(i,s,n)}}return o.def=i,o}const Yk=typeof HTMLElement<"u"?HTMLElement:class{};class up extends Yk{constructor(t,n={},i=MS){super(),this._def=t,this._props=n,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&i!==MS?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Gt({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof up){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Mr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(i,o=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:s}=i;let a;if(r&&!Ge(r))for(const l in r){const u=r[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Dg(this._props[l])),(a||(a=Object.create(null)))[Mn(l)]=!0)}this._numberProps=a,this._resolveProps(i),this.shadowRoot&&this._applyStyles(s),this._mount(i)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(i=>{i.configureApp=this._def.configureApp,t(this._def=i,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const i in n)St(this,i)||Object.defineProperty(this,i,{get:()=>Vn(n[i])})}_resolveProps(t){const{props:n}=t,i=Ge(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&i.includes(o)&&this._setProp(o,this[o]);for(const o of i.map(Mn))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(r){this._setProp(o,r,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let i=n?this.getAttribute(t):FS;const o=Mn(t);n&&this._numberProps&&this._numberProps[o]&&(i=Dg(i)),this._setProp(o,i,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,i=!0,o=!1){if(n!==this._props[t]&&(this._dirty=!0,n===FS?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),o&&this._instance&&this._update(),i)){const r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),n===!0?this.setAttribute(ti(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ti(t),n+""):n||this.removeAttribute(ti(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),hp(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=Oe(this._def,Gt(t,this._props));return this._instance||(n.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const o=(r,s)=>{this.dispatchEvent(new CustomEvent(r,ju(s[0])?Gt({detail:s},s[0]):{detail:s}))};i.emit=(r,...s)=>{o(r,s),ti(r)!==r&&o(ti(r),s)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const i=this._nonce;for(let o=t.length-1;o>=0;o--){const r=document.createElement("style");i&&r.setAttribute("nonce",i),r.textContent=t[o],this.shadowRoot.prepend(r)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const i=n.nodeType===1&&n.getAttribute("slot")||"default";(t[i]||(t[i]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let i=0;i<t.length;i++){const o=t[i],r=o.getAttribute("name")||"default",s=this._slots[r],a=o.parentNode;if(s)for(const l of s){if(n&&l.nodeType===1){const u=n+"-s",h=document.createTreeWalker(l,1);l.setAttribute(u,"");let f;for(;f=h.nextNode();)f.setAttribute(u,"")}a.insertBefore(l,o)}else for(;o.firstChild;)a.insertBefore(o.firstChild,o);a.removeChild(o)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const i of t){const o=i.querySelectorAll("slot");for(let r=0;r<o.length;r++)n.add(o[r])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}const Pd=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ge(t)?n=>Yu(t,n):t};function Zk(e){e.target.composing=!0}function PS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ha=Symbol("_assign");function ES(e,t,n){return t&&(e=e.trim()),n&&(e=Eg(e)),e}const Jk={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e[Ha]=Pd(o);const r=i||o.props&&o.props.type==="number";Os(e,t?"change":"input",s=>{s.target.composing||e[Ha](ES(e.value,n,r))}),(n||r)&&Os(e,"change",()=>{e.value=ES(e.value,n,r)}),t||(Os(e,"compositionstart",Zk),Os(e,"compositionend",PS),Os(e,"change",PS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:o,number:r}},s){if(e[Ha]=Pd(s),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?Eg(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||o&&e.value.trim()===l)||(e.value=l))}},dp={deep:!0,created(e,t,n){e[Ha]=Pd(n),Os(e,"change",()=>{const i=e._modelValue,o=Xk(e),r=e.checked,s=e[Ha];if(Ge(i)){const a=_b(i,o),l=a!==-1;if(r&&!l)s(i.concat(o));else if(!r&&l){const u=[...i];u.splice(a,1),s(u)}}else if($u(i)){const a=new Set(i);r?a.add(o):a.delete(o),s(a)}else s(TS(e,r))})},mounted:DS,beforeUpdate(e,t,n){e[Ha]=Pd(n),DS(e,t,n)}};function DS(e,{value:t,oldValue:n},i){e._modelValue=t;let o;if(Ge(t))o=_b(t,i.props.value)>-1;else if($u(t))o=t.has(i.props.value);else{if(t===n)return;o=Ju(t,TS(e,!0))}e.checked!==o&&(e.checked=o)}function Xk(e){return"_value"in e?e._value:e.value}function TS(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const eL=["ctrl","shift","alt","meta"],tL={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>eL.some(n=>e[`${n}Key`]&&!t.includes(n))},mt=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=((o,...r)=>{for(let s=0;s<t.length;s++){const a=tL[t[s]];if(a&&a(o,t))return}return e(o,...r)}))},nL={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Xt=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=(o=>{if(!("key"in o))return;const r=ti(o.key);if(t.some(s=>s===r||nL[s]===r))return e(o)}))},iL=Gt({patchProp:qk},Ak);let AS;function IS(){return AS||(AS=ck(iL))}const hp=((...e)=>{IS().render(...e)}),MS=((...e)=>{const t=IS().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=rL(i);if(!o)return;const r=t._component;!Ze(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,oL(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t});function oL(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rL(e){return qt(e)?document.querySelector(e):e}function Tt(e){if(e?.length)return e[e.length-1]}function Nr(e,t,n){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o++)if(e[o]!==t[o]&&!n?.(e[o],t[o]))return!1;return!0}function cc(e,t){if(e){for(const n of e)if(t(n))return!0}}function Fo(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function sL(e,t){let n=0,i=0;for(;n<e.length;n++)t.includes(e[n])||(e[i]=e[n],i++);for(;i<e.length;)e.pop()}function kS(e,t,n){for(let i=0;i<t.length;i++)Fo(e,t[i]);for(let i=t.length-1;i>=0;i--)e.splice(n,0,t[i])}var nr=e=>e==null||e===""?null:e;function Pe(e){return e!=null&&e!==""}function Vt(e){return!Pe(e)}var fp=e=>e!=null&&typeof e.toString=="function"?e.toString():null,uc=(e,t)=>{const n=e?JSON.stringify(e):null,i=t?JSON.stringify(t):null;return n===i},aL=(e,t,n=!1)=>e==null?t==null?0:-1:t==null?1:(typeof e=="object"&&e.toNumber&&(e=e.toNumber()),typeof t=="object"&&t.toNumber&&(t=t.toNumber()),!n||typeof e!="string"?e>t?1:e<t?-1:0:e.localeCompare(t)),_s=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,n){const i=t?this.allAsyncListeners:this.allSyncListeners;let o=i.get(e);return!o&&n&&(o=new Set,i.set(e,o)),o}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,n=!1){this.getListeners(e,n,!0).add(t)}removeEventListener(e,t,n=!1){const i=this.getListeners(e,n,!1);i&&(i.delete(t),i.size===0&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const n=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:i}=this,o=a=>{const l=i?()=>i.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},r=this.getListeners(n,t,!1);if((r?.size??0)>0){const a=new Set(r);for(const l of a)r?.has(l)&&o(()=>l(e))}const s=this.getGlobalListeners(t);if(s.size>0){const a=new Set(s);for(const l of a)o(()=>l(n,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)},n=this.frameworkOverrides;n?n.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}},lL=/[&<>"']/g,cL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ga(e){return e?.toString().toString()??null}function dc(e){return Ga(e)?.replace(lL,t=>cL[t])??null}function LS(e){return typeof e=="string"&&e.startsWith("=")&&e.length>1}function uL(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,n=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(n,"$1 $2$3").replace(/\./g," ").split(" ").map(o=>o.substring(0,1).toUpperCase()+(o.length>1?o.substring(1,o.length):"")).join(" ")}function Po(e){return e.eRootDiv.getRootNode()}function Lt(e){return Po(e).activeElement}function un(e){const{gos:t,eRootDiv:n}=e;let i=null;const o=t.get("getDocument");return o&&Pe(o)?i=o():n&&(i=n.ownerDocument),i&&Pe(i)?i:document}function gp(e){const t=Lt(e);return t===null||t===un(e).body}function pp(e){return un(e).defaultView||window}function mp(e){let t=null,n=null;try{t=un(e).fullscreenElement}catch{}finally{t||(t=Po(e));const i=t.querySelector("body");i?n=i:t instanceof ShadowRoot?n=t:t instanceof Document?n=t?.documentElement:n=t}return n}function dL(e){return mp(e)?.clientWidth??(window.innerWidth||-1)}function hL(e){return mp(e)?.clientHeight??(window.innerHeight||-1)}function no(e,t,n){n==null||typeof n=="string"&&n==""?OS(e,t):Mi(e,t,n)}function Mi(e,t,n){e.setAttribute(_S(t),n.toString())}function OS(e,t){e.removeAttribute(_S(t))}function _S(e){return`aria-${e}`}function Br(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function fL(e){const t=e?.direction;return t==="asc"?"ascending":t==="desc"?"descending":t==="mixed"?"other":"none"}function gL(e){return e.getAttribute("aria-label")}function Va(e,t){no(e,"label",t)}function hc(e,t){no(e,"labelledby",t)}function NS(e,t){no(e,"live",t)}function pL(e,t){no(e,"atomic",t)}function mL(e,t){no(e,"relevant",t)}function vp(e,t){no(e,"invalid",t)}function vL(e,t){no(e,"disabled",t)}function BS(e,t){no(e,"hidden",t)}function Cp(e,t){Mi(e,"expanded",t)}function CL(e,t){Mi(e,"setsize",t)}function wL(e,t){Mi(e,"posinset",t)}function bL(e,t){Mi(e,"multiselectable",t)}function yL(e,t){Mi(e,"rowcount",t)}function fc(e,t){Mi(e,"rowindex",t)}function SL(e,t){Mi(e,"rowspan",t)}function RL(e,t){Mi(e,"colcount",t)}function HS(e,t){Mi(e,"colindex",t)}function xL(e,t){Mi(e,"colspan",t)}function FL(e,t){Mi(e,"sort",t)}function PL(e){OS(e,"sort")}function GS(e,t){no(e,"selected",t)}function EL(e,t){no(e,"controls",t)}function DL(e,t){EL(e,t.id),hc(t,e.id)}function VS(e,t){no(e,"owns",t)}function Ed(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var TL="[tabindex], input, select, button, textarea, [href]",WS="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function gc(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(WS)?!1:Li(e)}function xt(e,t,n={}){const{skipAriaHidden:i}=n;e.classList.toggle("ag-hidden",!t),i||BS(e,!t)}function AL(e,t,n={}){const{skipAriaHidden:i}=n;e.classList.toggle("ag-invisible",!t),i||BS(e,!t)}function pc(e,t){const n="disabled",i=t?r=>r.setAttribute(n,""):r=>r.removeAttribute(n);i(e);const o=e.querySelectorAll("input")??[];for(const r of o)i(r)}function Ns(e,t,n){let i=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof n=="number"){if(++i>n)break}else if(e===n)break}return!1}function Bs(e){const{height:t,width:n,borderTopWidth:i,borderRightWidth:o,borderBottomWidth:r,borderLeftWidth:s,paddingTop:a,paddingRight:l,paddingBottom:u,paddingLeft:h,marginTop:f,marginRight:g,marginBottom:m,marginLeft:v,boxSizing:w}=window.getComputedStyle(e),b=Number.parseFloat;return{height:b(t||"0"),width:b(n||"0"),borderTopWidth:b(i||"0"),borderRightWidth:b(o||"0"),borderBottomWidth:b(r||"0"),borderLeftWidth:b(s||"0"),paddingTop:b(a||"0"),paddingRight:b(l||"0"),paddingBottom:b(u||"0"),paddingLeft:b(h||"0"),marginTop:b(f||"0"),marginRight:b(g||"0"),marginBottom:b(m||"0"),marginLeft:b(v||"0"),boxSizing:w}}function wp(e){const t=Bs(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function mc(e){const t=Bs(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function zS(e){const{height:t,marginBottom:n,marginTop:i}=Bs(e);return Math.floor(t+n+i)}function Dd(e){const{width:t,marginLeft:n,marginRight:i}=Bs(e);return Math.floor(t+n+i)}function US(e){const t=e.getBoundingClientRect(),{borderTopWidth:n,borderLeftWidth:i,borderRightWidth:o,borderBottomWidth:r}=Bs(e);return{top:t.top+(n||0),left:t.left+(i||0),right:t.right+(o||0),bottom:t.bottom+(r||0)}}function Td(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n)),n}function Ad(e,t,n){n&&(t*=-1),e.scrollLeft=t}function Rn(e){for(;e?.firstChild;)e.firstChild.remove()}function ki(e){e?.parentNode&&e.remove()}function $S(e){return!!e.offsetParent}function Li(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!$S(e)||window.getComputedStyle(e).visibility!=="visible")}function bp(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function jS(e,t,n){n&&n.nextSibling===t||(e.firstChild?n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.prepend(t):e.appendChild(t))}function KS(e,t){for(let n=0;n<t.length;n++){const i=t[n],o=e.children[n];o!==i&&e.insertBefore(i,o)}}function IL(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function vc(e,t){if(t)for(const n of Object.keys(t)){const i=t[n];if(!n?.length||i==null)continue;const o=IL(n),r=i.toString(),s=r.replace(/\s*!important/g,""),a=s.length!=r.length?"important":void 0;e.style.setProperty(o,s,a)}}function Cc(e){return()=>{const t=e();return t?qS(t)||ML(t):!0}}function qS(e){return e.clientWidth<e.scrollWidth}function ML(e){return e.clientHeight<e.scrollHeight}function Id(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Eo(e,t)}function Eo(e,t){t=yp(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function wc(e,t){t=yp(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function yp(e){return typeof e=="number"?`${e}px`:e}function Sp(e){return e instanceof Node||e instanceof HTMLElement}function oi(e,t,n){n==null||n===""?e.removeAttribute(t):e.setAttribute(t,n.toString())}function kL(e,t){if(!t.isContentEditable)return;const n=pp(e).getSelection();if(!n)return;const i=un(e).createRange();i.selectNodeContents(t),i.collapse(!1),n.removeAllRanges(),n.addRange(i)}function Hr(e,t,n){const o=pp(e).ResizeObserver,r=o?new o(n):null;return r?.observe(t),()=>r?.disconnect()}function ir(e,t){const n=pp(e);n.requestAnimationFrame?n.requestAnimationFrame(t):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame(t):n.setTimeout(t,0)}var QS="data-ref",Rp;function YS(){return Rp??(Rp=document.createTextNode(" ")),Rp.cloneNode()}function Hs(e){const{attrs:t,children:n,cls:i,ref:o,role:r,tag:s}=e,a=document.createElement(s);if(i&&(a.className=i),o&&a.setAttribute(QS,o),r&&a.setAttribute("role",r),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(n)if(typeof n=="string")a.textContent=n;else{let l=!0;for(const u of n)u&&(typeof u=="string"?(a.appendChild(document.createTextNode(u)),l=!1):typeof u=="function"?a.appendChild(u()):(l&&(a.appendChild(YS()),l=!1),a.append(Hs(u)),a.appendChild(YS())))}return a}var LL=["touchstart","touchend","touchmove","touchcancel","scroll"],OL=["wheel"],xp={},Md=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n=>{if(typeof xp[n]=="boolean")return xp[n];const i=document.createElement(e[n]||"div");return n="on"+n,xp[n]=n in i}})();function _L(e,t){return!t||!e?!1:BL(t).indexOf(e)>=0}function NL(e){const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}function BL(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():NL(t)}function HL(e,t,n){const i=GL(t);let o;i!=null&&(o={passive:i}),e.addEventListener(t,n,o)}var GL=e=>{const t=LL.includes(e),n=OL.includes(e);if(t)return!0;if(n)return!1};function ZS(e,t,n){if(n===0)return!1;const i=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(i,o)<=n}var Wa=(e,t)=>{const n=e.identifier;for(let i=0,o=t.length;i<o;++i){const r=t[i];if(r.identifier===n)return r}return null};function bc(e,t){return e.gos.isElementInThisInstance(t.target)}function VL(e,t,n){const o=e.getBoundingClientRect().height,r=dL(n)-2,s=hL(n)-2;if(!e.offsetParent)return;const l=US(e.offsetParent),{clientY:u,clientX:h}=t;let f=u-l.top-o/2,g=h-l.left-10;const m=un(n),v=m.defaultView||window,w=v.pageYOffset||m.documentElement.scrollTop,b=v.pageXOffset||m.documentElement.scrollLeft;r>0&&g+e.clientWidth>r+b&&(g=r+b-e.clientWidth),g<0&&(g=0),s>0&&f+e.clientHeight>s+w&&(f=s+w-e.clientHeight),f<0&&(f=0),e.style.left=`${g}px`,e.style.top=`${f}px`}var kd=(e,...t)=>{for(const n of t){const[i,o,r,s]=n;i.addEventListener(o,r,s),e.push(n)}},Fp=e=>{if(e){for(const[t,n,i,o]of e)t.removeEventListener(n,i,o);e.length=0}},Gr=e=>{e.cancelable&&e.preventDefault()};function WL(e,t){return t}function JS(e){return e?.getLocaleTextFunc()??WL}function zL(e,t,n,i){const o=t[n];return e.getLocaleTextFunc()(n,typeof o=="function"?o(i):o,i)}function UL(e){return(t,n,i)=>e({key:t,defaultValue:n,variableValues:i})}function $L(e){return(t,n,i)=>{let o=e?.[t];if(o&&i?.length){let r=0;for(;!(r>=i.length||o.indexOf("${variable}")===-1);)o=o.replace("${variable}",i[r++])}return o??n}}var $n=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,n){this.localEventService||(this.localEventService=new _s),this.localEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.localEventService?.removeEventListener(e,t,n)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const n=[];for(const i of Object.keys(t)){const o=t[i];o&&n.push(this._setupListener(e,i,o))}return n}_setupListener(e,t,n){if(this.destroyed)return()=>null;let i;if(jL(e))e.__addEventListener(t,n),i=()=>(e.__removeEventListener(t,n),null);else{const o=KL(e);e instanceof HTMLElement?HL(e,t,n):o?e.addListener(t,n):e.addEventListener(t,n),i=o?()=>(e.removeListener(t,n),null):()=>(e.removeEventListener(t,n),null)}return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==i),null)}setupPropertyListener(e,t){const{gos:n}=this;n.addPropertyEventListener(e,t);const i=()=>(n.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==i),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const n=e.join("-")+this.propertyListenerId++,i=o=>{if(o.changeSet){if(o.changeSet&&o.changeSet.id===this.lastChangeSetIdLookup[n])return;this.lastChangeSetIdLookup[n]=o.changeSet.id}const r={type:"propertyChanged",changeSet:o.changeSet,source:o.source};t(r)};for(const o of e)this.setupPropertyListener(o,i)}getLocaleTextFunc(){return JS(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n}createBean(e,t,n){return(t||this.stubContext).createBean(e,n)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function jL(e){return e.__addEventListener!==void 0}function KL(e){return e.eventServiceType==="global"}var X=class extends $n{},Pp=new Set,Ld=(e,t)=>{Pp.has(t)||(Pp.add(t),e())};Ld._set=Pp;var qL={pending:!1,funcs:[]},QL={pending:!1,funcs:[]};function Ep(e,t="setTimeout",n){const i=t==="raf"?QL:qL;if(i.funcs.push(e),i.pending)return;i.pending=!0;const o=()=>{const r=i.funcs.slice();i.funcs.length=0,i.pending=!1;for(const s of r)s()};t==="raf"?ir(n,o):window.setTimeout(o,0)}function gn(e,t,n){let i;return function(...o){const r=this;return window.clearTimeout(i),i=window.setTimeout(function(){e.isAlive()&&t.apply(r,o)},n),i}}function XS(e,t){let n=0;return function(...i){const o=this,r=Date.now();r-n<t||(n=r,e.apply(o,i))}}function YL(e,t,n,i=100){const o=Date.now();let r=null,s=!1;const a=()=>{r!=null&&(window.clearInterval(r),r=null)};e.addDestroyFunc(a);const l=()=>{const u=Date.now()-o>i;(t()||u)&&(n(),s=!0,a())};l(),s||(r=window.setInterval(l,10))}var e0=new Set(["__proto__","constructor","prototype"]);function ZL(e,t){if(e!=null){if(Array.isArray(e)){for(let n=0;n<e.length;n++)t(n.toString(),e[n]);return}for(const n of Object.keys(e).filter(i=>!e0.has(i)))t(n,e[n])}}function jn(e,t,n=!0,i=!1){Pe(t)&&ZL(t,(o,r)=>{let s=e[o];s!==r&&(i&&s==null&&r!=null&&typeof r=="object"&&r.constructor===Object&&(s={},e[o]=s),t0(r)&&t0(s)&&!Array.isArray(s)?jn(s,r,n,i):(n||r!==void 0)&&(e[o]=r))})}function t0(e){return typeof e=="object"&&e!==null}var Dp=class Tr{static applyGlobalGridOptions(t){if(!Tr.gridOptions)return{...t};let n={};return jn(n,Tr.gridOptions,!0,!0),Tr.mergeStrategy==="deep"?jn(n,t,!0,!0):n={...n,...t},Tr.gridOptions.context&&(n.context=Tr.gridOptions.context),t.context&&(Tr.mergeStrategy==="deep"&&n.context&&jn(t.context,n.context,!0,!0),n.context=t.context),n}static applyGlobalGridOption(t,n){if(Tr.mergeStrategy==="deep"){const i=JL(t);if(i&&typeof i=="object"&&typeof n=="object")return Tr.applyGlobalGridOptions({[t]:n})[t]}return n}};Dp.gridOptions=void 0,Dp.mergeStrategy="shallow";var Tp=Dp;function JL(e){return Tp.gridOptions?.[e]}var XL={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipSwitchShowDelay:200,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,refreshAfterGroupEdit:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupHideColumnsUntilExpanded:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,enableFilterHandlers:!1},n0="https://www.ag-grid.com";function Vr(e,t,...n){e.get("debug")&&console.log("AG Grid: "+t,...n)}function yc(e,...t){Ld(()=>i0(e,...t),e+t?.join(""))}function za(e,...t){Ld(()=>eO(e,...t),e+t?.join(""))}function eO(e,...t){console.error("AG Grid: "+e,...t)}function i0(e,...t){console.warn("AG Grid: "+e,...t)}var o0=new Set,Od={},Ua={},_d,r0=!1,s0=!1,tO=!1;function nO(e){const[t,n]=e.version.split(".")||[],[i,o]=_d.split(".")||[];return t===i&&n===o}function iO(e){_d||(_d=e.version);const t=i=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${i} Please update all modules to the same version.`;e.version?nO(e)||za(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${_d}.`)):za(t(`'${e.moduleName}' is incompatible.`));const n=e.validate?.();n&&!n.isValid&&za(`${n.message}`)}function $a(e,t,n=!1){n||(r0=!0),iO(e);const i=e.rowModels??["all"];o0.add(e);let o;t!==void 0?(s0=!0,Ua[t]===void 0&&(Ua[t]={}),o=Ua[t]):o=Od;for(const r of i)o[r]===void 0&&(o[r]={}),o[r][e.moduleName]=e;if(e.dependsOn)for(const r of e.dependsOn)$a(r,t,n)}function oO(e){delete Ua[e]}function Ap(e,t,n){const i=o=>!!Od[o]?.[e]||!!Ua[t]?.[o]?.[e];return i(n)||i("all")}function Ip(){return s0}function rO(e,t){const n=Ua[e]??{};return[...Object.values(Od.all??{}),...Object.values(n.all??{}),...Object.values(Od[t]??{}),...Object.values(n[t]??{})]}function sO(){return new Set(o0)}function aO(){return r0}function a0(){return tO}var lO=class{static register(e){$a(e,void 0)}static registerModules(e){for(const t of e)$a(t,void 0)}},Re="35.2.1",l0=2e3,c0=100,u0="_version_",d0=null,ja=`${n0}/javascript-data-grid`;function cO(e){d0=e}function uO(e){ja=e}function h0(e,t,n){return d0?.(e,t)??[gO(e,t,n)]}function Mp(e,t,n,i,o){e(`${i?"warning":"error"} #${t}`,...h0(t,n,o))}function dO(e){if(!e)return String(e);const t={};for(const n of Object.keys(e))typeof e[n]!="object"&&typeof e[n]!="function"&&(t[n]=e[n]);return JSON.stringify(t)}function hO(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=dO(e)),t}function Nd(e){return e===void 0?"undefined":e===null?"null":e}function kp(e,t){return`${e}?${t.toString()}`}function fO(e,t,n){const i=Array.from(t.entries()).sort((r,s)=>s[1].length-r[1].length);let o=kp(e,t);for(const[r,s]of i){if(r===u0)continue;const a=o.length-n;if(a<=0)break;const l="...",u=a+l.length,h=s.length-u>c0?s.slice(0,s.length-u)+l:s.slice(0,c0)+l;t.set(r,h),o=kp(e,t)}return o}function f0(e,t){const n=new URLSearchParams;if(n.append(u0,Re),t)for(const r of Object.keys(t))n.append(r,hO(t[r]));const i=`${ja}/errors/${e}`,o=kp(i,n);return o.length<=l0?o:fO(i,n,l0)}var gO=(e,t,n)=>{const i=f0(e,t);return`${`${n?n+`
5
- `:""}Visit ${i}`}${n?"":`
6
- Alternatively register the ValidationModule to see the full message in the console.`}`};function le(...e){Mp(yc,e[0],e[1],!0)}function vt(...e){Mp(za,e[0],e[1],!1)}function Sc(e,t,n){Mp(za,e,t,!1,n)}function pO(e,t){const n=t[0];return`error #${n} `+h0(n,t[1],e).join(" ")}function Do(...e){return pO(void 0,e)}function g0(e,t){return e.get("rowModelType")===t}function en(e,t){return g0(e,"clientSide")}function Rc(e,t){return g0(e,"serverSide")}function xn(e,t){return e.get("domLayout")===t}function Gs(e){return Vd(e)!==void 0}function p0(e){return typeof e.get("getRowHeight")=="function"}function mO(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function vO({gos:e,formula:t}){const n=e.get("rowNumbers");return n||!!t?.active&&n!==!1}function Wr(e,t,n=!1,i){const{gos:o,environment:r}=e;if(i==null&&(i=r.getDefaultRowHeight()),p0(o)){if(n)return{height:i,estimated:!0};const l={node:t,data:t.data},u=o.getCallback("getRowHeight")(l);if(Lp(u))return u===0&&le(23),{height:Math.max(1,u),estimated:!1}}if(t.detail&&o.get("masterDetail"))return CO(o);const s=o.get("rowHeight");return{height:s&&Lp(s)?s:i,estimated:!1}}function CO(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return Lp(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Vs(e){const{environment:t,gos:n}=e,i=n.get("rowHeight");if(!i||Vt(i))return t.getDefaultRowHeight();const o=t.refreshRowHeightVariable();return o!==-1?o:(le(24),t.getDefaultRowHeight())}function Lp(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function m0(e,t,n){const i=t[e.getDomDataKey()];return i?i[n]:void 0}function Ws(e,t,n,i){const o=e.getDomDataKey();let r=t[o];Vt(r)&&(r={},t[o]=r),r[n]=i}function Ka(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function v0(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||xn(e,"print"))}function or(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function Bd(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function C0(e){return e.get("grandTotalRow")}function wO(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function bO(e){return wO(e)&&e.get("groupHideColumnsUntilExpanded")&&en(e)}function w0(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function b0(e,t,n){return!!t.group&&!t.footer&&w0(e,n)}function qa(e){const t=e.getCallback("getRowId");return t===void 0?t:n=>{let i=t(n);return typeof i!="string"&&(Ld(()=>le(25,{id:i}),"getRowIdString"),i=String(i)),i}}function yO(e,t){const n=e.get("groupHideParentOfSingleChild");return!!(n===!0||n==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function SO(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function Qa(e){return e?.checkboxes??!0}function Hd(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function Gd(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function Op(e){return e?.hideDisabledCheckboxes??!1}function RO(e){return typeof e.get("rowSelection")!="string"}function rr(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function Ya(e){const t=e.get("cellSelection")??!1;return(typeof t=="object"&&t.enableColumnSelection)??!1}function y0(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const n=e.get("suppressRowClickSelection"),i=e.get("suppressRowDeselection");return n&&i?!1:n?"enableDeselection":i?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function xO(e){const t=y0(e);return t===!0||t==="enableSelection"}function FO(e){const t=y0(e);return t===!0||t==="enableDeselection"}function _p(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function Vd(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function xc(e){return Vd(e)==="multiRow"}function PO(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function Wd(e){const t=e.get("rowSelection");if(typeof t=="string"){const n=e.get("groupSelectsChildren"),i=e.get("groupSelectsFiltered");return n&&i?"filteredDescendants":n?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function S0(e,t=!0){const n=e.get("rowSelection");return typeof n!="object"?t?"all":void 0:n.mode==="multiRow"?n.selectAll:"all"}function EO(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function Fc(e){const t=Wd(e);return t==="descendants"||t==="filteredDescendants"}function R0(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function DO(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function ri(e){return e.get("columnMenu")==="legacy"}function TO(e){return!ri(e)}function AO(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function IO(e,t,n){typeof e!="object"&&(e={});const i={...e};for(const o of n){const r=t[o];typeof r<"u"&&(i[o]=r)}return i}function MO(e,t){if(!e)return;const n={};let i=!1;for(const s of Object.keys(e))n[s]=e[s],i=!0;if(!i)return;const o={type:"gridOptionsChanged",options:n};t.dispatchEvent(o);const r={type:"componentStateChanged",...n};t.dispatchEvent(r)}function Ue(e,t){return e.addCommon(t)}function kO({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var LO={resizable:!0,sortable:!0},OO=0;function x0(){return OO++}function zr(e){return e instanceof zs}var _O=["asc","desc",null],NO=[{type:"absolute",direction:"asc"},{type:"absolute",direction:"desc"},null],zs=class extends X{constructor(e,t,n,i){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=i,this.isColumn=!0,this.instanceId=x0(),this.autoHeaderHeight=null,this.sortDef=Oi(),this._wasSortExplicitlyRemoved=!1,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.formulaRef=null,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new _s,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=dc(n)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}initState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:n,colFlex:i}}=this;t?.initCol(this);const o=e.hide;o!==void 0?this.visible=!o:this.visible=!e.initialHide,n?.initCol(this),i?.initCol(this)}setColDef(e,t,n){const i=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),i&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",n)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.initState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:n}}=this,i=e.get("suppressFieldDotNotation");this.fieldContainsDots=Pe(t)&&t.includes(".")&&!i,this.tooltipFieldContainsDots=Pe(n)&&n.includes(".")&&!i}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}addPivotListener(){const e=this.beans.pivotColDefSvc,t=this.colDef.pivotValueColumn;!e||!t||this.addManagedListeners(t,{colDefChanged:n=>{const i=e.recreateColDef(this.colDef);this.setColDef(i,i,n.source)}})}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){const t=e.width??e.initialWidth??200;return Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const n=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,n)}removeEventListener(e,t){const n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,n)}createColumnFunctionCallbackParams(e){return Ue(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable({rowNode:e,column:this})??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??LO[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const n=this.createColumnFunctionCallbackParams(e);return t(n)}return!1}createColumnEvent(e,t){return Ue(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sortDef.direction}getSortDef(){return this.sortDef.direction?this.sortDef:null}getColDefAllowedSortTypes(){const e=[],{sort:t,initialSort:n}=this.colDef,i=t===null?t:sr(t?.type),o=n===null?n:sr(n?.type);return i&&e.push(i),o&&e.push(o),e}getSortingOrder(){const e=this.getColDefAllowedSortTypes().includes("absolute")?NO:_O;return(this.colDef.sortingOrder??this.gos.get("sortingOrder")??e).map(t=>Oi(t))}getAvailableSortTypes(){const e=this.getSortingOrder().reduce((t,n)=>(n.direction&&t.push(n.type),t),this.getColDefAllowedSortTypes());return new Set(e)}get wasSortExplicitlyRemoved(){return this._wasSortExplicitlyRemoved}setSortDef(e,t=!1){t||(this._wasSortExplicitlyRemoved=!e.direction),this.sortDef=e}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.getSort()==="asc"}isSortDescending(){return this.getSort()==="desc"}isSortNone(){return Vt(this.getSort())}isSorting(){return Pe(this.getSort())}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return le(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const n=e===!0;this.visible!==n&&(this.visible=n,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();for(;e?.isPadding();)e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e?.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let n=!0;for(;e;){if(!e.isPadding()){n=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:n}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return Ue(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Vt(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)}getRowSpan(e){if(Vt(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)}setActualWidth(e,t,n=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}isAllowFormula(){return this.colDef.allowFormula===!0}dispatchColEvent(e,t,n){const i=this.createColumnEvent(e,t);n&&jn(i,n),this.colEventSvc.dispatchEvent(i)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function Oi(e){return Za(e)?{direction:e.direction,type:e.type}:{direction:Ud(e),type:sr(e)}}function Ur(e){return e==="asc"||e==="desc"||e===null}function Np(e){return e==="default"||e==="absolute"}function Za(e){if(!e||typeof e!="object")return!1;const t=e;return Np(t.type)&&Ur(t.direction)}function zd(e,t){return e?t?e.type===t.type&&e.direction===t.direction:e?e.direction===null:!0:t?t.direction===null:!0}function Ud(e){return Ur(e)?e:null}function sr(e){return Np(e)?e:"default"}function BO(e,t,n){const o=n?.()??t.sortSvc.getDisplaySortForColumn(e),r=sr(o?.type),s=Ud(o?.direction),a=e.getAvailableSortTypes(),l=a.has("default"),u=a.has("absolute");return{isDefaultSortAllowed:l,isAbsoluteSortAllowed:u,isAbsoluteSort:r==="absolute",isDefaultSort:r==="default",isAscending:s==="asc",isDescending:s==="desc",direction:s}}function _n(e){return e instanceof $d}var $d=class extends X{constructor(e,t,n,i){super(),this.colGroupDef=e,this.groupId=t,this.padding=n,this.level=i,this.isColumn=!1,this.expandable=!1,this.instanceId=x0(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(const t of this.children)zr(t)?e(t):_n(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)zr(t)?e.push(t):_n(t)&&t.addLeafColumns(e)}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);for(const t of this.getLeafColumns())t.__addEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=()=>{for(const t of this.getLeafColumns())t.__removeEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,n=!1;const i=this.findChildrenRemovingPadding();for(let r=0,s=i.length;r<s;r++){const a=i[r];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,n=!0):l==="closed"?(t=!0,n=!0):(e=!0,t=!0)}const o=e&&t&&n;this.expandable!==o&&(this.expandable=o,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=n=>{for(const i of n)_n(i)&&i.isPadding()?t(i.children):e.push(i)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},HO={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function F0(e,t,n){const i={},o=e.gos;return Object.assign(i,o.get("defaultColGroupDef")),Object.assign(i,t),o.validateColDef(i,n),i}var GO=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=fp(e);let n=0;for(;;){let i=e??t;if(i?n!==0&&(i+="_"+n):i=n,!this.existingKeys[i]){const o=String(i);return e&&n>0&&le(273,{providedId:e,usedId:o}),this.existingKeys[o]=!0,o}n++}}},VO=(e,t)=>{_n(e)&&e.setupExpandable(),e.originalParent=t};function WO(e,t=null,n,i,o){const r=new GO,{existingCols:s,existingGroups:a,existingColKeys:l}=zO(i);r.addExistingKeys(l);const u=P0(e,t,0,n,s,r,a,o),{colGroupSvc:h}=e,f=h?.findMaxDepth(u,0)??0,g=h?h.balanceColumnTree(u,0,f,r):u;return ar(null,g,VO),{columnTree:g,treeDepth:f}}function zO(e){const t=[],n=[],i=[];return e&&ar(null,e,o=>{if(_n(o)){const r=o;n.push(r)}else{const r=o;i.push(r.getId()),t.push(r)}}),{existingCols:t,existingGroups:n,existingColKeys:i}}function P0(e,t,n,i,o,r,s,a){if(!t)return[];const{colGroupSvc:l}=e,u=new Array(t.length);for(let h=0;h<u.length;h++){const f=t[h];l&&QO(f)?u[h]=l.createProvidedColumnGroup(i,f,n,o,r,s,a):u[h]=UO(e,i,f,o,r,a)}return u}function UO(e,t,n,i,o,r){const s=jO(n,i);s&&i?.splice(s.idx,1);let a=s?.column;if(a){const l=Bp(e,n,a.getColId());a.setColDef(l,n,r),$O(e,a,l,r)}else{const l=o.getUniqueKey(n.colId,n.field),u=Bp(e,n,l);a=new zs(u,n,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function E0(e,t,n,i,o,r,s,a){const{sortSvc:l,pinnedCols:u,colFlex:h}=e;n!==void 0&&t.setVisible(!n,a),l&&(l.updateColSort(t,i,a),o!==void 0&&l.setColSortIndex(t,o)),r!==void 0&&u?.setColPinned(t,r),s!==void 0&&h?.setColFlex(t,s)}function $O(e,t,n,i){E0(e,t,n.hide,n.sort,n.sortIndex,n.pinned,n.flex,i);const o=t.getFlex();if(!(o!=null&&o>0))if(n.width!=null)t.setActualWidth(n.width,i);else{const r=t.getActualWidth();t.setActualWidth(r,i)}}function jO(e,t){if(t)for(let n=0;n<t.length;n++){const i=t[n].getUserProvidedColDef();if(!i)continue;if(e.colId!=null){if(t[n].getId()===e.colId)return{idx:n,column:t[n]};continue}if(e.field!=null){if(i.field===e.field)return{idx:n,column:t[n]};continue}if(i===e)return{idx:n,column:t[n]}}}function Bp(e,t,n,i){const{gos:o,dataTypeSvc:r}=e,s={},a=o.get("defaultColDef");jn(s,a,!1,!0);const l=KO(e,s,t,n);l&&qO(e,l,s);const u=s.cellDataType;jn(s,t,!1,!0),u!==void 0&&(s.cellDataType=u);const h=o.get("autoGroupColumnDef"),f=or(o);return t.rowGroup&&h&&f&&jn(s,{sort:h.sort,initialSort:h.initialSort},!1,!0),r?.postProcess(s),r?.validateColDef(s,t,a,n),o.validateColDef(s,n,i),s}function KO(e,t,n,i){const o=e.dataTypeSvc?.updateColDefAndGetColumnType(t,n,i),r=n.type??o??t.type;return t.type=r,r?qd(r):void 0}function qO(e,t,n){if(!t.length)return;const i=Object.assign({},HO),o=e.gos.get("columnTypes")||{};for(const r of Object.keys(o)){const s=o[r];r in i?le(34,{key:r}):(s.type&&le(35),i[r]=s)}for(const r of t){const s=i[r.trim()];s?jn(n,s,!1,!0):le(36,{t:r})}}function QO(e){return e.children!==void 0}function ar(e,t,n){if(t)for(let i=0;i<t.length;i++){const o=t[i];_n(o)&&ar(o,o.getChildren(),n),n(o,e)}}var jd="ag-Grid-AutoColumn",D0="ag-Grid-SelectionColumn",T0="ag-Grid-RowNumbersColumn";function A0(e){const t=[],n=i=>{for(let o=0;o<i.length;o++){const r=i[o];zr(r)?t.push(r):_n(r)&&n(r.getChildren())}};return n(e),t}function lr(e){return e.reduce((t,n)=>t+n.getActualWidth(),0)}function Kd(e,t,n){const i={};if(!t)return;ar(null,t,r=>{i[r.getInstanceId()]=r}),n&&ar(null,n,r=>{i[r.getInstanceId()]=null});const o=Object.values(i).filter(r=>r!=null);e.context.destroyBeans(o)}function Hp(e){return e.getId().startsWith(jd)}function $r(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(D0)??!1}function Kn(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(T0)??!1}function YO(e){return $r(e)||Kn(e)}function qd(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function ZO(e,t){return Nr(e,t,(n,i)=>n.getColId()===i.getColId())}function JO(e){e.map={};for(const t of e.list)e.map[t.getId()]=t}function Ja(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function Pc(e,t){return e===t||e.colId==t||e.getColDef()===t}var XO=(e,t)=>(n,i)=>{const o={value1:void 0,value2:void 0};let r=!1;return e&&(e[n]!==void 0&&(o.value1=e[n],r=!0),Pe(i)&&e[i]!==void 0&&(o.value2=e[i],r=!0)),!r&&t&&(t[n]!==void 0&&(o.value1=t[n]),Pe(i)&&t[i]!==void 0&&(o.value2=t[i])),o};function e_(e,t){const n={...e,sort:void 0,colId:t},i=I0(e);return i&&(n.sort=i.direction,n.sortType=i.type),n}function I0(e){const{sort:t,initialSort:n}=e,i=Za(t)||Ur(t),o=Za(n)||Ur(n);return i?Oi(t):o?Oi(n):null}function M0(e,t){return e+"_"+t}function tn(e){return e instanceof Ec}var Ec=class extends X{constructor(e,t,n,i){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=n,this.pinned=i,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.colIdSanitised=dc(this.getUniqueId())}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return M0(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){for(const e of this.displayedChildren)tn(e)&&e.checkLeft();if(this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=Tt(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;for(const t of this.displayedChildren??[])e+=t.getActualWidth();return e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;for(const t of this.displayedChildren)t.isResizable()&&(e=!0);return e}getMinWidth(){let e=0;for(const t of this.displayedChildren)e+=t.getMinWidth();return e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){for(const t of this.displayedChildren??[])zr(t)?e.push(t):tn(t)&&t.addDisplayedLeafColumns(e)}addLeafColumns(e){for(const t of this.children??[])zr(t)?e.push(t):tn(t)&&t.addLeafColumns(e)}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e?.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e?.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}for(const n of this.children??[]){if(tn(n)&&!n.displayedChildren?.length)continue;switch(n.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(n);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(n);break;default:this.displayedChildren.push(n);break}}this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},K={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},t_=65,n_=67,i_=86,o_=68,r_=90,s_=89;function k0(e){const{keyCode:t}=e;let n;switch(t){case t_:n=K.A;break;case n_:n=K.C;break;case i_:n=K.V;break;case o_:n=K.D;break;case r_:n=K.Z;break;case s_:n=K.Y;break;default:n=e.code}return n}function a_(e,t){return new Ot(n=>{n(window.setInterval(e,t))})}var Ot=class Wu{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(n=>this.onDone(n),n=>this.onReject(n))}static all(t){return t.length?new Wu(n=>{let i=t.length;const o=new Array(i);t.forEach((r,s)=>{r.then(a=>{o[s]=a,i--,i===0&&n(o)})})}):Wu.resolve()}static resolve(t=null){return new Wu(n=>n(t))}then(t){return new Wu(n=>{this.status===1?n(t(this.resolution)):this.waiters.push(i=>n(t(i)))})}onDone(t){this.status=1,this.resolution=t;for(const n of this.waiters)n(t)}onReject(t){}},l_=class extends $n{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.dragSource=null,this.dragImageCompPromise=null,this.dragImageComp=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.dropTargets=[],this.externalDropZoneCount=0,this.lastDropTarget=null}addDragSource(e,t=!1){const n={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:i=>this.onDragStart(e,i),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(n),this.beans.dragSvc.addDragSource(n)}setDragImageCompIcon(e,t=!1){const n=this.dragImageComp;n&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,n.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:n}=this;for(let i=0,o=t.length;i<o;i++)if(t[i].dragSource===e){const r=t[i];n.dragSvc?.removeDragSource(r),t.splice(i,1);break}}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:n}=this,i=n.dragSvc;for(const o of e)i?.removeDragSource(o);e.length=0,t.length=0,this.externalDropZoneCount=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){const e=this.lastMouseEvent;e&&this.onDragging(e,!0)}onDragStart(e,t){this.lastMouseEvent=t,this.dragSource=e,this.dragItem=e.getDragItem();const n=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-n.left,this.dragInitialSourcePointerOffsetY=t.clientY-n.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:n}=this;if(t?.onDragStopped?.(),n){const i=this.dropTargetEvent(n,e,!1);n.onDragStop?.(i)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:n}=this;if(e?.onDragCancelled?.(),t&&n){const i=this.dropTargetEvent(t,n,!1);t.onDragCancel?.(i)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const n=this.findCurrentDropTarget(e),{lastDropTarget:i,dragSource:o,dragItem:r}=this;let s=!1;if(n!==i){if(s=!0,i){const a=this.dropTargetEvent(i,e,t);i.onDragLeave?.(a)}if(i!==null&&!n?this.handleExit(o,r):i===null&&n&&this.handleEnter(o,r),n){const a=this.dropTargetEvent(n,e,t);n.onDragEnter?.(a)}this.lastDropTarget=n}else if(n){const a=this.dropTargetEvent(n,e,t);n.onDragging?.(a),a?.changed&&(s=!0)}this.lastMouseEvent=e,s&&this.updateDragImageComp()}clearDragAndDropProperties(){this.removeDragImageComp(this.dragImageComp),this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.lastDropTarget=null,this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.dragSource=null}getAllContainersFromDropTarget(e){const t=e.getContainer(),n=e.getSecondaryContainers?.(),i=n?.length;if(!i)return[[t]];const o=new Array(i+1);o[0]=[t];for(let r=0;r<i;++r)o[r+1]=n[r];return o}isMouseOnDropTarget(e,t){const n=this.getAllContainersFromDropTarget(t);let i=!1;const o=(a,l)=>{for(const u of l){const{width:h,height:f,left:g,right:m,top:v,bottom:w}=u.getBoundingClientRect();if(h===0||f===0)return!1;const b=a.clientX>=g&&a.clientX<m,y=a.clientY>=v&&a.clientY<w;if(!b||!y)return!1}return!0};for(const a of n)if(o(e,a)){i=!0;break}const{eElement:r,type:s}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(r)?!1:i&&t.isInterestedIn(s,r)}findCurrentDropTarget(e){const t=[],n=this.dropTargets;for(let s=0,a=n.length;s<a;++s){const l=n[s];this.isMouseOnDropTarget(e,l)&&t.push(l)}const i=t.length;if(i===0)return null;if(i===1)return t[0];const r=Po(this.beans).elementsFromPoint(e.clientX,e.clientY);for(let s=0,a=r.length;s<a;++s){const l=r[s];for(let u=0,h=t.length;u<h;u++){const f=t[u],g=this.getAllContainersFromDropTarget(f);let m=!1;for(let v=0,w=g.length;v<w&&!m;v++){const b=g[v];for(let y=0,R=b.length;y<R;y++)if(b[y]===l){m=!0;break}}if(m)return f}}return null}addDropTarget(e){this.dropTargets.push(e),e.external&&this.externalDropZoneCount++}removeDropTarget(e){const t=e.getContainer(),n=this.dropTargets;let i=0;for(let o=0,r=n.length;o<r;++o){const s=n[o];if(s.getContainer()===t){s.external&&--this.externalDropZoneCount;continue}i!==o&&(n[i]=s),++i}n.length=i}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){const t=this.dropTargets;for(let n=0,i=t.length;n<i;++n){const o=t[n];if(o.external&&o.getContainer()===e)return o}return null}dropTargetEvent(e,t,n){const{dragSource:i,dragItem:o,lastDraggingEvent:r,lastMouseEvent:s,dragInitialSourcePointerOffsetX:a,dragInitialSourcePointerOffsetY:l}=this,u=e.getContainer(),h=u.getBoundingClientRect(),{clientX:f,clientY:g}=t,m=f-(s?.clientX||0),v=g-(s?.clientY||0),w=this.createEvent({event:t,x:f-h.left,y:g-h.top,vDirection:v>0?"down":v<0?"up":null,hDirection:m<0?"left":m>0?"right":null,initialSourcePointerOffsetX:a,initialSourcePointerOffsetY:l,dragSource:i,fromNudge:n,dragItem:o,dropZoneTarget:u,dropTarget:r?.dropTarget??null,changed:!!r?.changed});return this.lastDraggingEvent=w,w}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&VL(t,e,this.beans)}removeDragImageComp(e){this.dragImageComp===e&&(this.dragImageComp=null),e&&(e.getGui()?.remove(),this.destroyBean(e))}createAndUpdateDragImageComp(e){const t=this.createDragImageComp(e)??null;this.dragImageCompPromise=t,t?.then(n=>{const i=this.lastMouseEvent;if(t!==this.dragImageCompPromise||!i||!this.isAlive()){this.destroyBean(n);return}this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const o=this.dragImageComp;o!==n&&(this.dragImageComp=n,this.removeDragImageComp(o)),n&&(this.appendDragImageComp(n),this.updateDragImageComp(),this.positionDragImageComp(i))})}appendDragImageComp(e){const t=e.getGui(),n=t.style;n.position="absolute",n.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(n.pointerEvents="none"),this.gos.setInstanceDomData(t),this.beans.environment.applyThemeClasses(t),n.top="20px",n.left="20px";const i=mp(this.beans);i?i.appendChild(t):this.warnNoBody()}updateDragImageComp(){const{dragImageComp:e,dragSource:t,lastDropTarget:n,lastDraggingEvent:i,dragImageLastLabel:o}=this;if(!e)return;this.setDragImageCompIcon(n?.getIconName?.(i)??null);let r=t?.dragItemName;typeof r=="function"&&(r=r(i)),r||(r=""),o!==r&&(this.dragImageLastLabel=r,e.setLabel(r))}};function L0(e){return typeof e=="object"&&!!e.component}function c_(e){return e?e.prototype&&"getGui"in e.prototype:!1}function O0(e,t,n,i){const{name:o}=n;let r,s,a,l,u,h;if(t){const f=t,g=f[o+"Selector"],m=g?g(i):null,v=w=>{typeof w=="string"?r=w:w!=null&&w!==!0&&(e.isFrameworkComponent(w)?a=w:s=w)};m?(v(m.component),l=m.params,u=m.popup,h=m.popupPosition):v(f[o])}return{compName:r,jsComp:s,fwComp:a,paramsFromSelector:l,popupFromSelector:u,popupPositionFromSelector:h}}var u_=class extends X{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,n,i=!1){return this.getCompDetails(this.gridOptions,e,t,n,i)}getCompDetails(e,t,n,i,o=!1){const{name:r,cellRenderer:s}=t;let{compName:a,jsComp:l,fwComp:u,paramsFromSelector:h,popupFromSelector:f,popupPositionFromSelector:g}=O0(this.beans.frameworkOverrides,e,t,i),m,v;const w=S=>{const P=this.registry.getUserComponent(r,S);P&&(l=P.componentFromFramework?void 0:P.component,u=P.componentFromFramework?P.component:void 0,m=P.params,v=P.processParams)};if(a!=null&&w(a),l==null&&u==null&&n!=null&&w(n),l&&s&&!c_(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!u){const{validation:S}=this.beans;o&&(a!==n||!n)?a?S?.isProvidedUserComp(a)||vt(50,{compName:a}):n?S||vt(260,{...this.gos.getModuleErrorParams(),propName:r,compName:n}):vt(216,{name:r}):n&&!S&&vt(146,{comp:n});return}const b=this.mergeParams(e,t,i,h,m,v),y=l==null,R=l??u;return{componentFromFramework:y,componentClass:R,params:b,type:t,popupFromSelector:f,popupPositionFromSelector:g,newAgStackInstance:()=>this.newAgStackInstance(R,y,b,t)}}newAgStackInstance(e,t,n,i){const o=!t;let r;o?r=new e:r=this.frameworkCompWrapper.wrap(e,i.mandatoryMethods,i.optionalMethods,i),this.createBean(r);const s=r.init?.(n);return s==null?Ot.resolve(r):s.then(()=>r)}mergeParams(e,t,n,i=null,o,r){const s={...n,...o},l=e?.[t.name+"Params"];if(typeof l=="function"){const u=l(n);jn(s,u)}else typeof l=="object"&&jn(s,l);return jn(s,i),r?r(s):s}},d_={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},h_={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},f_={name:"headerComponent",optionalMethods:["refresh"]},g_={name:"innerHeaderComponent"},p_={name:"innerHeaderGroupComponent"},m_={name:"headerGroupComponent"},v_={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},C_={name:"loadingCellRenderer",cellRenderer:!0},w_={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},b_={name:"tooltipComponent"},Gp={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},y_={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},S_={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},R_={name:"loadingCellRenderer",cellRenderer:!0},x_={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},F_={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function P_(e,t){return e.getCompDetailsFromGridOptions(h_,"agDragAndDropImage",t,!0)}function E_(e,t,n){return e.getCompDetails(t,f_,"agColumnHeader",n)}function D_(e,t,n){return e.getCompDetails(t,g_,void 0,n)}function T_(e,t){const n=t.columnGroup.getColGroupDef();return e.getCompDetails(n,m_,"agColumnGroupHeader",t)}function A_(e,t,n){return e.getCompDetails(t,p_,void 0,n)}function I_(e,t){return e.getCompDetailsFromGridOptions(S_,void 0,t,!0)}function M_(e,t){return e.getCompDetailsFromGridOptions(R_,"agLoadingCellRenderer",t,!0)}function k_(e,t){return e.getCompDetailsFromGridOptions(x_,"agGroupRowRenderer",t,!0)}function L_(e,t){return e.getCompDetailsFromGridOptions(F_,"agDetailCellRenderer",t,!0)}function _0(e,t,n){return e.getCompDetails(t,v_,void 0,n)}function N0(e,t,n){return e.getCompDetails(t,C_,"agSkeletonCellRenderer",n,!0)}function B0(e,t,n){return e.getCompDetails(t,w_,"agCellEditor",n,!0)}function O_(e,t,n,i){const o=t.filter;return L0(o)&&(t={filter:o.component,filterParams:t.filterParams}),e.getCompDetails(t,Gp,i,n,!0)}function __(e,t,n){return e.getCompDetails(t,d_,"agDateInput",n,!0)}function N_(e,t){return e.getCompDetails(t.colDef,b_,"agTooltipComponent",t,!0)}function B_(e,t,n,i){return e.getCompDetails(t,y_,i,n)}function H0(e,t){return O0(e,t,Gp)}function Vp(e,t,n){return e.mergeParams(t,Gp,n)}var H_=class extends l_{createEvent(e){return Ue(this.gos,e)}createDragImageComp(e){const{gos:t,beans:n}=this;return P_(n.userCompFactory,Ue(t,{dragSource:e}))?.newAgStackInstance()}handleEnter(e,t){e?.onGridEnter?.(t)}handleExit(e,t){e?.onGridExit?.(t)}warnNoBody(){le(54)}isDropZoneWithinThisGrid(e){return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget)}registerGridDropTarget(e,t){const n={getContainer:e,isInterestedIn:i=>i===1||i===0,getIconName:()=>"notAllowed"};this.addDropTarget(n),t.addDestroyFunc(()=>this.removeDropTarget(n))}};function G0(e){return!!e.operator}var V0="ag-resizer-wrapper",jr=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),G_={tag:"div",cls:V0,children:[jr("eTopLeft","topLeft"),jr("eTop","top"),jr("eTopRight","topRight"),jr("eRight","right"),jr("eBottomRight","bottomRight"),jr("eBottom","bottom"),jr("eBottomLeft","bottomLeft"),jr("eLeft","left")]},V_=class extends $n{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config={popup:!1,...t}}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(e){const{clientHeight:t,clientWidth:n}=this.offsetParent,i=n/2-this.getWidth()/2,o=t/2-this.getHeight()/2;this.offsetElement(i,o,e)}initialisePosition(e){if(this.positioned)return;const{centered:t,forcePopupParentAsOffsetParent:n,minWidth:i,width:o,minHeight:r,height:s,x:a,y:l}=this.config;this.offsetParent||this.setOffsetParent();let u=0,h=0;const f=Li(this.element);if(f){const g=this.findBoundaryElement(),m=window.getComputedStyle(g);if(m.minWidth!=null){const v=g.offsetWidth-this.element.offsetWidth;h=Number.parseInt(m.minWidth,10)-v}if(m.minHeight!=null){const v=g.offsetHeight-this.element.offsetHeight;u=Number.parseInt(m.minHeight,10)-v}}if(this.minHeight=r||u,this.minWidth=i||h,o&&this.setWidth(o),s&&this.setHeight(s),(!o||!s)&&this.refreshSize(),t)this.center(e);else if(a||l)this.offsetElement(a,l,e);else if(f&&n){let g=this.boundaryEl,m=!0;if(g||(g=this.findBoundaryElement(),m=!1),g){const v=Number.parseFloat(g.style.top),w=Number.parseFloat(g.style.left);m?this.offsetElement(Number.isNaN(w)?0:w,Number.isNaN(v)?0:v,e):this.setPosition(w,v)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(n),this.moveElementDragListener=n):(this.dragSvc?.removeDragSource(n),this.moveElementDragListener=void 0)}setResizable(e){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}}for(const t of Object.keys(e)){const n=!!e[t],i=this.getResizerElement(t),o={dragStartPixels:0,eElement:i,onDragStart:r=>this.onResizeStart(r,t),onDragging:this.onResize.bind(this),onDragStop:r=>this.onResizeEnd(r,t)};(n||!this.isAlive()&&!n)&&(n?(this.dragSvc?.addDragSource(o),this.resizeListeners.push(o),i.style.pointerEvents="all"):i.style.pointerEvents="none",this.resizable[t]=n)}}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,n=this.element;let i=!1;if(typeof e=="string"&&e.includes("%"))wc(n,e),e=zS(n),i=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const o=this.getAvailableHeight();o&&e>o&&(e=o)}this.getHeight()!==e&&(i?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?wc(n,e):(n.style.height=`${e}px`,n.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:Number.parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:n}=this.offsetParent;if(!n)return null;const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),r=e?this.position.y:i.top,s=e?0:o.top;let a=0;if(t){const u=this.element.parentElement;if(u){const{bottom:h}=u.getBoundingClientRect();a=h-i.bottom}}return n+s-r-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:n}=this.config;let i=!1;if(typeof e=="string"&&e.includes("%"))Eo(t,e),e=Dd(t),i=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:o}=this.offsetParent,r=n?this.position.x:this.element.getBoundingClientRect().left;o&&e+r>o&&(e=o-r)}this.getWidth()!==e&&(i?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Eo(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:Number.parseFloat(e)))}offsetElement(e=0,t=0,n){const{forcePopupParentAsOffsetParent:i}=this.config,o=i?this.boundaryEl:this.element;o&&(this.popupSvc?.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t}),postProcessCallback:n}),this.setPosition(Number.parseFloat(o.style.left),Number.parseFloat(o.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const n=this.getAvailableHeight();this.element.style.setProperty("max-height",`${n}px`)};e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=Hr(this.beans,this.popupSvc?.getPopupParent(),t)):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:n,isTop:i,anywhereWithin:o,topBuffer:r}=e,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!n,!!o,s)?0:s,u=this.shouldSkipY(t,!!i,r,a)?0:a;return{movementX:l,movementY:u}}shouldSkipX(e,t,n,i){const o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:o.left;let l=a<=0&&r.left>=e.clientX||r.right<=e.clientX&&r.right<=s.right;return l?!0:(t?l=i<0&&e.clientX>a+r.left||i>0&&e.clientX<a+r.left:n?l=i<0&&e.clientX>s.right||i>0&&e.clientX<a+r.left:l=i<0&&e.clientX>s.right||i>0&&e.clientX<s.right,l)}shouldSkipY(e,t,n=0,i){const o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:o.top;let l=a<=0&&r.top>=e.clientY||r.bottom<=e.clientY&&r.bottom<=s.bottom;return l?!0:(t?l=i<0&&e.clientY>a+r.top+n||i>0&&e.clientY<a+r.top:l=i<0&&e.clientY>s.bottom||i>0&&e.clientY<s.bottom,l)}createResizeMap(){const e=t=>({element:this.element.querySelector(`[data-ref=${t}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(Hs(G_)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0,this.element.querySelector(`.${V0}`)?.remove(),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:n,forcePopupParentAsOffsetParent:i}=this.config;!n&&!i&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(n=>!n.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,n=0;for(const i of e){const o=!!i.style.flex&&i.style.flex!=="0 0 auto";if(i===this.element)continue;let r=this.minHeight||0,s=this.minWidth||0;if(o){const a=window.getComputedStyle(i);a.minHeight&&(r=Number.parseInt(a.minHeight,10)),a.minWidth&&(s=Number.parseInt(a.minWidth,10))}else r=i.offsetHeight,s=i.offsetWidth;t+=r,n+=s}return{height:t,width:n}}applySizeToSiblings(e){let t=null;const n=this.getSiblings();if(n){for(let i=0;i<n.length;i++){const o=n[i];o!==t&&(e?o.style.height=`${o.offsetHeight}px`:o.style.width=`${o.offsetWidth}px`,o.style.flex="0 0 auto",o===this.element&&(t=n[i+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:n}=this.config,{isTop:i,isRight:o,isBottom:r,isLeft:s}=this.currentResizer,a=o||s,l=r||i,{movementX:u,movementY:h}=this.calculateMouseMovement({e,isLeft:s,isTop:i}),f=this.position.x,g=this.position.y;let m=0,v=0;if(a&&u){const w=s?-1:1,b=this.getWidth(),y=b+u*w;let R=!1;s&&(m=b-y,(f+m<=0||y<=this.minWidth)&&(R=!0,m=0)),R||this.setWidth(y)}if(l&&h){const w=i?-1:1,b=this.getHeight(),y=b+h*w;let R=!1;i?(v=b-y,(g+v<=0||y<=this.minHeight)&&(R=!0,v=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&b<y&&this.getMinSizeOfSiblings().height+y>this.element.parentElement.offsetHeight&&(R=!0),R||this.setHeight(y)}this.updateDragStartPosition(e.clientX,e.clientY),((t||n)&&m||v)&&this.offsetElement(f+m,g+v)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:n}=this.position;let i;this.config.calculateTopBuffer&&(i=this.config.calculateTopBuffer());const{movementX:o,movementY:r}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:i});this.offsetElement(t+o,n+r),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},W_=class extends V_{},ge=null;function W0(e){return typeof e?.getGui=="function"}var z0=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.includes(" ")){const i=(e||"").split(" ");if(i.length>1){for(const o of i)this.toggleCss(o,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},z_=0,Xa=class extends $n{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=z_++,this.cssManager=new z0(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(n=>[n.selector,n])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui()),this.addGlobalCss()}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(QS):null}applyElementsToComponent(e,t,n,i=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const o=this[t];if(o===ge)this[t]=i??e;else{const r=n?.[t];if(!this.suppressDataRefValidation&&!r)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${o}`)}}}createChildComponentsFromTags(e,t){const n=[];for(const i of e.childNodes??[])n.push(i);for(const i of n){if(!(i instanceof HTMLElement))continue;const o=this.createComponentFromElement(i,r=>{const s=r.getGui();if(s)for(const a of i.attributes??[])s.setAttribute(a.name,a.value)},t);if(o){if(o.addItems&&i.children.length){this.createChildComponentsFromTags(i,t);const r=Array.prototype.slice.call(i.children);o.addItems(r)}this.swapComponentForNode(o,e,i)}else i.childNodes&&this.createChildComponentsFromTags(i,t)}}createComponentFromElement(e,t,n){const i=e.nodeName,o=this.getDataRefAttribute(e),r=i.indexOf("AG-")===0,s=r?this.componentSelectors.get(i):null;let a=null;if(s){const l=n&&o?n[o]:void 0;a=new s.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(r)throw new Error(`selector: ${i}`);return this.applyElementsToComponent(e,o,n,a),a}swapComponentForNode(e,t,n){const i=e.getGui();t.replaceChild(i,n),t.insertBefore(document.createComment(n.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){const n=t??this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const i of e)i.setAttribute("tabindex",n.toString())}setTemplate(e,t,n){let i;typeof e=="string"||e==null?i=bp(e):i=Hs(e),this.setTemplateFromElement(i,t,n)}setTemplateFromElement(e,t,n,i=!1){if(this.eGui=e,this.suppressDataRefValidation=i,t)for(let o=0;o<t.length;o++){const r=t[o];this.componentSelectors.set(r.selector,r)}this.wireTemplate(e,n)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let n=t;return e==null?null:(n||(n=this.eGui),Sp(e)?{element:e,parent:n}:{element:e.getGui(),parent:n})}prependChild(e,t){const{element:n,parent:i}=this.getContainerAndElement(e,t)||{};!n||!i||i.prepend(n)}appendChild(e,t){const{element:n,parent:i}=this.getContainerAndElement(e,t)||{};!n||!i||i.appendChild(n)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:n}=t;AL(this.eGui,e,{skipAriaHidden:n})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:n}=t;xt(this.eGui,e,{skipAriaHidden:n});const i={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(i)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,n){this.eGui.addEventListener(e,t,n),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css===U0?(this.css=[e],this.addGlobalCss()):(this.css||(this.css=[]),this.css.push(e))}addGlobalCss(){if(Array.isArray(this.css)){const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}this.css=U0}},U0=Symbol(),Ft=class extends Xa{},Wp,zp,Up,$p,jp,Kp,qp;function Kr(){return Wp===void 0&&(Wp=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Wp}function el(){return zp===void 0&&(zp=/(firefox)/i.test(navigator.userAgent)),zp}function $0(){return Up===void 0&&(Up=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Up}function Us(){return $p===void 0&&($p=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),$p}function Qp(e){if(!e)return null;const t=e.tabIndex,n=e.getAttribute("tabIndex");return t===-1&&(n===null||n===""&&!el())?null:t.toString()}function U_(){if(qp!==void 0)return qp;if(!document.body)return-1;let e=1e6;const t=el()?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){const i=e*2;if(n.style.height=i+"px",i>t||n.clientHeight!==i)break;e=i}return n.remove(),qp=e,e}function Yp(){return Kp==null&&j0(),Kp}function j0(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let n=t.offsetWidth-t.clientWidth;n===0&&t.clientWidth===0&&(n=null),t.parentNode&&t.remove(),n!=null&&(Kp=n,jp=n===0)}function K0(){return jp==null&&j0(),jp}var Zp=!1,Qd=0;function $_(e){Qd>0||(e.addEventListener("keydown",Yd),e.addEventListener("mousedown",Yd))}function j_(e){Qd>0||(e.removeEventListener("keydown",Yd),e.removeEventListener("mousedown",Yd))}function Yd(e){const t=Zp,n=e.type==="keydown";n&&(e.ctrlKey||e.metaKey||e.altKey)||t!==n&&(Zp=n)}function K_(e){const t=un(e);return $_(t),Qd++,()=>{Qd--,j_(t)}}function q0(){return Zp}function $s(e,t,n=!1){const i=TL;let o=WS;t&&(o+=", "+t),n&&(o+=', [tabindex="-1"]');const r=Array.prototype.slice.apply(e.querySelectorAll(i)).filter(l=>Li(l)),s=Array.prototype.slice.apply(e.querySelectorAll(o));return s.length?((l,u)=>l.filter(h=>u.indexOf(h)===-1))(r,s):r}function js(e,t=!1,n=!1,i=!1){const o=$s(e,i?".ag-tab-guard":null,n),r=t?Tt(o):o[0];return r?(r.focus({preventScroll:!0}),!0):!1}function Ks(e,t,n,i){const o=$s(t,n?':not([tabindex="-1"])':null),r=Lt(e);let s;n?s=o.findIndex(l=>l.contains(r)):s=o.indexOf(r);const a=s+(i?-1:1);return a<0||a>=o.length?null:o[a]}function Q0(e,t=5){let n=0;for(;e&&Qp(e)===null&&++n<=t;)e=e.parentElement;return Qp(e)===null?null:e}var q_="ag-focus-managed",Y0=class extends $n{constructor(e,t={isStopPropagation:()=>!1,stopPropagation:()=>{}},n={}){super(),this.eFocusable=e,this.stopPropagationCallbacks=t,this.callbacks=n,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:i=>{if(i.defaultPrevented)return;const o=Ks(this.beans,this.eFocusable,!1,i.shiftKey);o&&(o.focus(),i.preventDefault())},...n}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:n}}=this;e.classList.add(q_),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),n&&this.addManagedElementListeners(e,{focusout:n})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||this.stopPropagationCallbacks.isStopPropagation(t))return;const{callbacks:n}=this;if(n.shouldStopEventPropagation(t)){this.stopPropagationCallbacks.stopPropagation(t);return}t.key===K.TAB?n.onTabKeyDown(t):n.handleKeyDown&&n.handleKeyDown(t)}})}},Z0="__ag_Grid_Stop_Propagation";function qs(e){e[Z0]=!0}function cr(e){return e[Z0]===!0}var J0={isStopPropagation:cr,stopPropagation:qs},Dc=class extends Y0{constructor(e,t){super(e,J0,t)}},Q_={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",bigintFilter:"BigInt Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd",filterSummaryInactive:"is (All)",filterSummaryContains:"contains",filterSummaryNotContains:"does not contain",filterSummaryTextEquals:"equals",filterSummaryTextNotEqual:"does not equal",filterSummaryStartsWith:"begins with",filterSummaryEndsWith:"ends with",filterSummaryBlank:"is blank",filterSummaryNotBlank:"is not blank",filterSummaryEquals:"=",filterSummaryNotEqual:"!=",filterSummaryGreaterThan:">",filterSummaryGreaterThanOrEqual:">=",filterSummaryLessThan:"<",filterSummaryLessThanOrEqual:"<=",filterSummaryInRange:"between",yesterday:"Yesterday",today:"Today",tomorrow:"Tomorrow",last7Days:"Last 7 Days",lastWeek:"Last Week",thisWeek:"This Week",nextWeek:"Next Week",last30Days:"Last 30 Days",lastMonth:"Last Month",thisMonth:"This Month",nextMonth:"Next Month",last90Days:"Last 90 Days",lastQuarter:"Last Quarter",thisQuarter:"This Quarter",nextQuarter:"Next Quarter",lastYear:"Last Year",thisYear:"This Year",yearToDate:"Year To Date",nextYear:"Next Year",last6Months:"Last 6 Months",last12Months:"Last 12 Months",last24Months:"Last 24 Months",filterSummaryInRangeValues:e=>`(${e[0]}, ${e[1]})`,filterSummaryTextQuote:e=>`"${e[0]}"`,minDateValidation:e=>`Date must be after ${e[0]}`,maxDateValidation:e=>`Date must be before ${e[0]}`,strictMinValueValidation:e=>`Must be greater than ${e[0]}`,strictMaxValueValidation:e=>`Must be less than ${e[0]}`};function io(e,t,n){return zL(e,Q_,t,n)}function Jp(e,t){const{debounceMs:n}=e;return Zd(e)?(n!=null&&le(71),0):n??t}function Zd(e){return(e.buttons?.indexOf("apply")??-1)>=0}function X0(e,t,n,i){let o=io(e,n);if(typeof t=="function"){const r=io(e,i);o=t({filterOptionKey:i,filterOption:r,placeholder:o})}else typeof t=="string"&&(o=t);return o}var Y_=class extends Ft{constructor(e,t){super(),this.filterNameKey=e,this.cssIdentifier=t,this.applyActive=!1,this.debouncePending=!1,this.defaultDebounceMs=0}postConstruct(){const e={tag:"div",cls:`ag-filter-body-wrapper ag-${this.cssIdentifier}-body-wrapper`,children:[this.createBodyTemplate()]};this.setTemplate(e,this.getAgComponents()),this.createManagedBean(new Dc(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=this.createBean(new W_(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}))}handleKeyDown(e){}init(e){const t=e;this.setParams(t),this.setModelIntoUi(t.state.model,!0).then(()=>this.updateUiVisibility())}areStatesEqual(e,t){return e===t}refresh(e){const t=e,n=this.params;this.params=t;const{source:i,state:o,additionalEventAttributes:r}=t;i==="colDef"&&this.updateParams(t,n);const s=this.state;this.state=o;const a=r?.fromAction;return(a&&a!=="apply"||o.model!==s.model||!this.areStatesEqual(o.state,s.state))&&this.setModelIntoUi(o.model),!0}setParams(e){this.params=e,this.state=e.state,this.commonUpdateParams(e)}updateParams(e,t){this.commonUpdateParams(e,t)}commonUpdateParams(e,t){this.applyActive=Zd(e),this.setupApplyDebounced()}doesFilterPass(e){le(283);const{getHandler:t,model:n,column:i}=this.params;return t().doesFilterPass({...e,model:n,handlerParams:this.beans.colFilter.getHandlerParams(i)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return le(284),this.params.model!=null}setupApplyDebounced(){const e=Jp(this.params,this.defaultDebounceMs),t=gn(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return le(285),this.params.model}setModel(e){le(286);const{beans:t,params:n}=this;return t.colFilter.setModelForColumnLegacy(n.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){const{params:t,state:{valid:n=!0,model:i}}=this;if(!n)return!1;const o=!this.areModelsEqual(t.model,i);return o&&t.onAction("apply",e),o}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();const n=this.getModelFromUi(),i={model:n,state:this.getState(),valid:this.canApply(n)};this.state=i;const{params:o,gos:r,eventSvc:s,applyActive:a}=this;o.onStateChange(i),o.onUiChange(this.getUiChangeEventParams()),r.get("enableFilterHandlers")||s.dispatchEvent({type:"filterModified",column:o.column,filterInstance:this}),i.valid&&(e??(e=a?void 0:"debounce"),e==="immediately"?this.doApplyModel({afterFloatingFilter:t,afterDataChange:!1}):e==="debounce"&&this.applyDebounced())}getState(){}getUiChangeEventParams(){}afterGuiAttached(e){this.lastContainerType=e?.container,this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:n}=this;if(!t)return;const i=e==="floatingFilter"||e==="columnFilter";i?(t.restoreLastSize(),t.setResizable(n.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(i)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e,t){return io(this,e,t)}getPositionableElement(){return this.getGui()}areModelsEqual(e,t){return e===t||e==null&&t==null?!0:e==null||t==null?!1:this.areNonNullModelsEqual(e,t)}},Xp=class extends Xa{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e?.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},Jd=class extends Xp{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange(()=>e.validate())}destroy(){this.eEditor.destroy(),this.errorMessages=null,super.destroy()}};function To(e){const t=e.rowModel;return t.getType()==="clientSide"?t:void 0}function Xd(e){const t=e.rowModel;return t.getType()==="infinite"?t:void 0}function Z_(e){const t=e.rowModel;return t.getType()==="serverSide"?t:void 0}var eR="row-group-",em="t-",tm="b-",J_=0,qr=class{constructor(e){this.id=void 0,this.destroyed=!1,this._groupData=void 0,this.master=!1,this.detail=void 0,this.rowIndex=null,this.field=null,this.rowGroupColumn=null,this.key=null,this.sourceRowIndex=-1,this._leafs=void 0,this.childrenAfterGroup=null,this.childrenAfterFilter=null,this.childrenAfterAggFilter=null,this.childrenAfterSort=null,this.allChildrenCount=null,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this._expanded=void 0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=J_++,this.alreadyRendered=!1,this.formulaRowIndex=null,this.hovered=!1,this.__selected=!1,this.beans=e}get groupData(){const e=this._groupData;return e!==void 0?e:this.footer?this.sibling?.groupData:this.beans.groupStage?.loadGroupData(this)??null}set groupData(e){this._groupData=e}get primaryRow(){let e=this.footer&&this.sibling?this.sibling:this;const{pinnedSibling:t}=e;return t&&e.rowPinned&&(e=t,e.footer&&e.sibling&&(e=e.sibling)),e}get allLeafChildren(){const e=this._leafs;return e===void 0?this.beans.groupStage?.loadLeafs?.(this)??null:e}set allLeafChildren(e){this._leafs=e}get expanded(){const e=this.beans.expansionSvc;return e?e.isExpanded(this):this.level===-1?!0:!!this._expanded}set expanded(e){this._expanded=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:n,eventSvc:i}=this.beans,o=this.data;this.data=e,n?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();const r=this.createDataChangedEvent(e,o,t);if(this.__localEventService?.dispatchEvent(r),this.sibling){this.sibling.data=e;const a=this.sibling.createDataChangedEvent(e,o,t);this.sibling.__localEventService?.dispatchEvent(a)}i.dispatchEvent({type:"rowNodeDataChanged",node:this});const s=this.pinnedSibling;s&&(s.data=e,s.__localEventService?.dispatchEvent(s.createDataChangedEvent(e,o,t)),i.dispatchEvent({type:"rowNodeDataChanged",node:s}))}updateDataOnDetailNode(){const e=this.detailNode;e&&(e.data=this.data)}createDataChangedEvent(e,t,n){return{type:"dataChanged",node:this,oldData:t,newData:e,update:n}}getRowIndexString(){return this.rowIndex==null?(vt(13),null):this.rowPinned==="top"?em+this.rowIndex:this.rowPinned==="bottom"?tm+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:n}=this.beans,i=n?.createDaemonNode?.(this),o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),n&&(n.updateRowSelectable(this),n.syncInRowNode(this,i));const r=this.createDataChangedEvent(e,o,!1);this.__localEventService?.dispatchEvent(r)}setId(e){const t=qa(this.beans.gos);if(t)if(this.data){const n=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:n.length>0?n:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(eR)&&vt(14,{groupPrefix:eR})}else this.id=void 0;else this.id=e}setRowTop(e){if(this.oldRowTop=this.rowTop,this.rowTop===e)return;this.rowTop=e,this.dispatchRowEvent("topChanged");const t=e!==null;this.displayed!==t&&(this.displayed=t,this.dispatchRowEvent("displayedChanged"))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,n){this.beans.expansionSvc?.setExpanded(this,e,t,n)}setDataValue(e,t,n){const{colModel:i,valueSvc:o,gos:r,editSvc:s}=this.beans;if(e==null)return!1;let a=i.getCol(e)??i.getColDefCol(e);if(!a)return!1;if(!this.group){const h=a.getColDef();h.pivotValueColumn&&(a=h.pivotValueColumn)}const l=o.getValueForDisplay({column:a,node:this,from:"data"}).value;if(r.get("readOnlyEdit")){const{beans:{eventSvc:h},data:f,rowIndex:g,rowPinned:m}=this;return h.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:g,rowPinned:m,column:a,colDef:a.colDef,data:f,node:this,oldValue:l,newValue:t,value:t,source:n}),!1}if(n!=="data"&&s&&!s.committing){const h=s.setDataValue({rowNode:this,column:a},t,n);if(h!=null)return h}const u=o.setValue(this,a,t,n);return this.dispatchCellChangedEvent(a,t,l),u&&this.pinnedSibling?.dispatchCellChangedEvent(a,t,l),u}getDataValue(e,t="data"){const{colModel:n,valueSvc:i,formula:o}=this.beans;if(e==null)return;const r=n.getCol(e)??n.getColDefCol(e);if(!r)return;const s=t==="data-raw",a=s||t==="value"?"data":t;let l=i.getValue(r,this,a,s);if(!s&&(o&&r.isAllowFormula()&&o.isFormula(l)&&(l=o.resolveValue(r,this)),t!=="data"&&r.getAggFunc()&&typeof l=="object"&&l!=null)){if(typeof l.toNumber=="function")return l.toNumber();if("value"in l)return l.value}return l}updateHasChildren(){let e=this.group&&!this.footer||!!this.childrenAfterGroup?.length;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,n){const i={type:"cellChanged",node:this,column:e,newValue:t,oldValue:n};this.__localEventService?.dispatchEvent(i)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){if(this.footer)return this.sibling.isSelected();const e=this.rowPinned&&this.pinnedSibling;return e?e.isSelected():this.__selected}depthFirstSearch(e){const t=this.childrenAfterGroup;if(t)for(let n=0,i=t.length;n<i;++n)t[n].depthFirstSearch(e);e(this)}getAggregatedChildren(e,t){const n=this.beans;return n.aggChildrenSvc?.getAggregatedChildren(this,n.colModel.getCol(e),t)??[]}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,n="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:n})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){(this.__localEventService??(this.__localEventService=new _s)).addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e);const n=this.__localEventService??(this.__localEventService=new _s);this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,n);const i=this.frameworkEventListenerService?.wrap(e,t)??t;n.addEventListener(e,i)}removeEventListener(e,t){const n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,n)}removeLocalListener(e,t){const n=this.__localEventService;n&&(n.removeEventListener(e,t),n.noRegisteredListenersExist()&&(this.__localEventService=null))}isFullWidthCell(){if(le(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t?.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}getFirstChild(){const e=this.childStore;return e?e.getFirstNode():this.childrenAfterSort?.[0]??null}_destroy(e){if(this.destroyed)return!1;this.destroyed=!0;const t=this.pinnedSibling;if(t?.rowPinned&&!this.rowPinned&&this.beans.pinnedRowModel?.pinRow(t,null),e?this.clearRowTopAndRowIndex():(this.setRowTop(null),this.setRowIndex(null)),!this.footer){const n=this.detailNode;n&&n._destroy(e);const i=this.sibling;i&&i._destroy(e)}return!0}};function X_(e,t,n){return Ue(t,{type:n,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var e2=new Set(["__autoHeights","__checkAutoHeightsDebounced","__localEventService","__objectId","_groupData","_leafs","childStore","groupValue","oldRowTop","sticky","treeNodeFlags","treeParent"]),t2=(e,t)=>{const n=new qr(t);for(const i of Object.keys(e))e2.has(i)||(n[i]=e[i]);return n.oldRowTop=null,n},nm=(e,t,n)=>{if(!n)return;let i=n.rowIndex;if(i==null)return;i+=t;const o=e.getRowCount();for(;i>=0&&i<o;){const r=e.getRow(i);if(!r||!r.footer&&!r.detail)return r;i+=t}},tR=class{constructor(e,t){this.beans=e,this.floating=t,this.all=new Set,this.visible=new Set,this.order=[],this.queued=new Set}size(){return this.visible.size}add(e){const{all:t,visible:n,order:i}=this;t.has(e)||(t.add(e),n.add(e),i.push(e),this.sort())}delete(e){this.all.delete(e),this.visible.delete(e),this.queued.delete(e.id),Fo(this.order,e)}has(e){return this.visible.has(e)}forEach(e){this.order.forEach(e)}getByIndex(e){return this.order[e]}getById(e){for(const t of this.visible)if(t.id==e)return t}clear(){const{all:e,visible:t,order:n,queued:i}=this;e.clear(),i.clear(),t.clear(),n.length=0}sort(){const{sortSvc:e,rowNodeSorter:t,gos:n}=this.beans,i=e?.getSortOptions()??[],o=this.order,r=o2(o);if(o.sort((a,l)=>t?.compareRowNodes(i,a,l)||(a.pinnedSibling?.rowIndex??0)-(l.pinnedSibling?.rowIndex??0)),!r)return;const s=C0(n);s==="bottom"||s==="pinnedBottom"?this.order.push(r):this.order.unshift(r)}hide(e){const{all:t,visible:n}=this,i=n.size;return t.forEach(o=>e(o)?n.delete(o):n.add(o)),this.order=Array.from(n),this.sort(),i!=n.size}queue(e){this.queued.add(e)}unqueue(e){this.queued.delete(e)}forEachQueued(e){this.queued.forEach(e)}};function nR(e){if(e.level===-1)return!0;const t=e.parent;return t?.childrenAfterSort?.some(n=>n==e)?nR(t):!1}function im(e,t){const{gos:n,rowModel:i,filterManager:o}=e;return Rc(n)?!i.getRowNode(t.id):o?.isAnyFilterPresent()?!nR(t):n.get("pivotMode")?!t.group:!1}function n2(e){return!!e.footer&&e.level===-1}function i2(e){return!!e.pinnedSibling&&n2(e.pinnedSibling)}function o2(e){const t=e.findIndex(i2);if(t>-1)return e.splice(t,1)?.[0]}var iR=class extends X{constructor(){super(...arguments),this.csrm=null}postConstruct(){const{gos:e,beans:t}=this;this.top=new tR(t,"top"),this.bottom=new tR(t,"bottom"),this.csrm=To(t)??null;const n=o=>im(t,o.pinnedSibling),i=()=>{const o=e.get("isRowPinned");o&&e.get("enableRowPinning")&&t.rowModel.forEachNode(r=>this.pinRow(r,o(r)),!0),this.refreshRowPositions(),this.dispatchRowPinnedEvents()};this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:({keepRenderedRows:o})=>{this.tryToEmptyQueues(),this.pinGrandTotalRow();let r=!1;this.forContainers(a=>{r||(r=a.hide(n))});const s=this.refreshRowPositions();(!o||s||r)&&this.dispatchRowPinnedEvents()},columnRowGroupChanged:()=>{this.forContainers(s2),this.refreshRowPositions()},rowNodeDataChanged:({node:o})=>{(e.get("isRowPinnable")?.(o)??!0)||this.pinRow(o,null)},firstDataRendered:i}),this.addManagedPropertyListener("pivotMode",()=>{this.forContainers(o=>o.hide(n)),this.dispatchRowPinnedEvents()}),this.addManagedPropertyListener("grandTotalRow",({currentValue:o})=>{this._grandTotalPinned=o==="pinnedBottom"?"bottom":o==="pinnedTop"?"top":null}),this.addManagedPropertyListener("isRowPinned",i)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){this.forContainers(t=>{const n=[];t.forEach(i=>n.push(i)),n.forEach(i=>this.pinRow(i,null)),t.clear()}),e&&this.dispatchRowPinnedEvents()}pinRow(e,t,n){if(t!=null&&e.destroyed)return;if(e.footer){const s=e.level;if(s>-1)return;if(s===-1){this._grandTotalPinned=t,this.csrm?.reMapRows();return}}const i=e.rowPinned??e.pinnedSibling?.rowPinned;if(i!=null&&t!=null&&t!=i){const s=e.rowPinned?e:e.pinnedSibling,a=e.rowPinned?e.pinnedSibling:e;this.pinRow(s,null,n),this.pinRow(a,t,n);return}const r=n&&a2(this.beans,e,n);if(r){r.forEach(s=>this.pinRow(s,t));return}if(t==null){const s=e.rowPinned?e:e.pinnedSibling,a=this.findPinnedRowNode(s);if(!a)return;a.delete(s);const l=s.pinnedSibling;om(s),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(l)}else{const s=oR(this.beans,e,t),a=this.getContainer(t);a.add(s),im(this.beans,e)&&a.hide(l=>im(this.beans,l.pinnedSibling)),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(e)}}isManual(){return!0}isEmpty(e){return this.getContainer(e).size()===0}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){let e=!1,t=0;const n=i=>{if(i.rowHeightEstimated){const o=Wr(this.beans,i);i.setRowTop(t),i.setRowHeight(o.height),t+=o.height,e=!0}};return this.bottom.forEach(n),t=0,this.top.forEach(n),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}getPinnedTopTotalHeight(){return rR(this.top)}getPinnedBottomTotalHeight(){return rR(this.bottom)}getPinnedTopRowCount(){return this.top.size()}getPinnedBottomRowCount(){return this.bottom.size()}getPinnedTopRow(e){return this.top.getByIndex(e)}getPinnedBottomRow(e){return this.bottom.getByIndex(e)}getPinnedRowById(e,t){return this.getContainer(t).getById(e)}forEachPinnedRow(e,t){this.getContainer(e).forEach(t)}getPinnedState(){const e=t=>{const n=[];return this.forEachPinnedRow(t,i=>{const o=i.pinnedSibling?.id;o!=null&&n.push(o)}),n};return{top:e("top"),bottom:e("bottom")}}setPinnedState(e){this.forContainers((t,n)=>{for(const i of e[n]){const o=this.beans.rowModel.getRowNode(i);o?this.pinRow(o,n):t.queue(i)}})}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(e){this._grandTotalPinned=e}tryToEmptyQueues(){this.forContainers((e,t)=>{const n=new Set;e.forEachQueued(i=>{const o=this.beans.rowModel.getRowNode(i);o&&n.add(o)});for(const i of n)e.unqueue(i.id),this.pinRow(i,t)})}pinGrandTotalRow(){const{csrm:e,beans:t,_grandTotalPinned:n}=this;if(!e)return;const i=e.rootNode?.sibling;if(!i)return;const o=i.pinnedSibling,r=o&&this.findPinnedRowNode(o);if(n){if(r&&r.floating!==n&&(om(o),r.delete(o)),!r||r.floating!==n){const s=oR(t,i,n);this.getContainer(n).add(s)}}else{if(!r)return;om(o),r.delete(o)}}onGridStylesChanges(e){e.rowHeightChanged&&this.forContainers(t=>t.forEach(n=>n.setRowHeight(n.rowHeight,!0)))}getContainer(e){return e==="top"?this.top:this.bottom}findPinnedRowNode(e){if(this.top.has(e))return this.top;if(this.bottom.has(e))return this.bottom}refreshRowPositions(e){const t=i=>r2(this.beans,i);if(e)return t(this.getContainer(e));let n=!1;return this.forContainers(i=>{const o=t(i);n||(n=o)}),n}forContainers(e){e(this.top,"top"),e(this.bottom,"bottom")}dispatchRowPinnedEvents(e){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),e?.dispatchRowEvent("rowPinned")}};function r2(e,t){let n=0,i=!1;return t.forEach((o,r)=>{if(i||(i=o.rowTop!==n),o.setRowTop(n),o.rowHeightEstimated||o.rowHeight==null){const s=Wr(e,o).height;i||(i=o.rowHeight!==s),o.setRowHeight(s)}o.setRowIndex(r),n+=o.rowHeight}),i}function oR(e,t,n){if(t.pinnedSibling)return t.pinnedSibling;const i=t2(t,e);i.setRowTop(null),i.setRowIndex(null),i.rowPinned=n;const o=n==="top"?em:tm;return i.id=`${o}${n}-${t.id}`,i.pinnedSibling=t,t.pinnedSibling=i,i}function om(e){if(!e.pinnedSibling)return;e.rowPinned=null,e._destroy(!1);const t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function s2(e){const t=new Set;e.forEach(n=>{n.group&&t.add(n)}),t.forEach(n=>e.delete(n))}function a2(e,t,n){const{rowSpanSvc:i}=e,o=(n&&i?.isCellSpanning(n,t))??!1;if(n&&o)return i?.getCellSpan(n,t)?.spannedNodes}function rR(e){const t=e.size();if(t===0)return 0;const n=e.getByIndex(t-1);return n===void 0?0:n.rowTop+n.rowHeight}var sR=class extends X{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){const e=this.gos;this.setPinnedRowData(e.get("pinnedTopRowData"),"top"),this.setPinnedRowData(e.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",t=>this.setPinnedRowData(t.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",t=>this.setPinnedRowData(t.currentValue,"bottom")),this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(e){return this.getCache(e).order.length===0}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}onGridStylesChanges(e){if(e.rowHeightChanged){const t=n=>{n.setRowHeight(n.rowHeight,!0)};Ac(this.pinnedBottomRows,t),Ac(this.pinnedTopRows,t)}}ensureRowHeightsValid(){let e=!1,t=0;const n=i=>{if(i.rowHeightEstimated){const o=Wr(this.beans,i);i.setRowTop(t),i.setRowHeight(o.height),t+=o.height,e=!0}};return Ac(this.pinnedBottomRows,n),t=0,Ac(this.pinnedTopRows,n),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const n=this.getCache(t);if(e===void 0){n.order.length=0,n.cache={};return}const i=qa(this.gos),o=t==="top"?em:tm,r=new Set(n.order),s=[],a=new Set;let l=0,u=-1;for(const h of e){const f=i?.({data:h,level:0,rowPinned:t})??o+this.nextId++;if(a.has(f)){le(96,{id:f,data:h});continue}u++,a.add(f),s.push(f);const g=Tc(n,f);if(g!==void 0)g.data!==h&&g.updateData(h),l+=this.setRowTopAndRowIndex(g,l,u),r.delete(f);else{const m=new qr(this.beans);m.id=f,m.data=h,m.rowPinned=t,l+=this.setRowTopAndRowIndex(m,l,u),n.cache[f]=m,n.order.push(f)}}for(const h of r)Tc(n,h)?.clearRowTopAndRowIndex(),delete n.cache[h];n.order=s}setRowTopAndRowIndex(e,t,n){return e.setRowTop(t),e.setRowHeight(Wr(this.beans,e).height),e.setRowIndex(n),e.rowHeight}getPinnedTopTotalHeight(){return aR(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return aR(this.pinnedBottomRows)}getPinnedTopRowCount(){return sm(this.pinnedTopRows)}getPinnedBottomRowCount(){return sm(this.pinnedBottomRows)}getPinnedTopRow(e){return rm(this.pinnedTopRows,e)}getPinnedBottomRow(e){return rm(this.pinnedBottomRows,e)}getPinnedRowById(e,t){return Tc(this.getCache(t),e)}forEachPinnedRow(e,t){return Ac(this.getCache(e),t)}getCache(e){return e==="top"?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){}setGrandTotalPinned(){}};function aR(e){const t=sm(e);if(t===0)return 0;const n=rm(e,t-1);return n===void 0?0:n.rowTop+n.rowHeight}function Tc(e,t){return e.cache[t]}function rm(e,t){return Tc(e,e.order[t])}function Ac(e,t){e.order.forEach((n,i)=>{const o=Tc(e,n);o&&t(o,i)})}function sm(e){return e.order.length}var l2=class extends X{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){const{gos:e}=this,t=()=>{const n=e.get("enableRowPinning"),i=C0(e),r=!!n||(i==="pinnedBottom"||i==="pinnedTop"),s=r?this.inner instanceof sR:this.inner instanceof iR;this.inner&&s&&this.destroyBean(this.inner),(s||!this.inner)&&(this.inner=this.createManagedBean(r?new iR:new sR))};this.addManagedPropertyListeners(["enableRowPinning","grandTotalRow"],t),t()}reset(){return this.inner.reset()}isEmpty(e){return this.inner.isEmpty(e)}isManual(){return this.inner.isManual()}isRowsToRender(e){return this.inner.isRowsToRender(e)}pinRow(e,t,n){return this.inner.pinRow(e,t,n)}ensureRowHeightsValid(){return this.inner.ensureRowHeightsValid()}getPinnedRowById(e,t){return this.inner.getPinnedRowById(e,t)}getPinnedTopTotalHeight(){return this.inner.getPinnedTopTotalHeight()}getPinnedBottomTotalHeight(){return this.inner.getPinnedBottomTotalHeight()}getPinnedTopRowCount(){return this.inner.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.inner.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.inner.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.inner.getPinnedBottomRow(e)}forEachPinnedRow(e,t){return this.inner.forEachPinnedRow(e,t)}getPinnedState(){return this.inner.getPinnedState()}setPinnedState(e){return this.inner.setPinnedState(e)}setGrandTotalPinned(e){return this.inner.setGrandTotalPinned(e)}getGrandTotalPinned(){return this.inner.getGrandTotalPinned()}},c2=500,u2=550,eh,d2=e=>{if(!eh)eh=new WeakSet;else if(eh.has(e))return!1;return eh.add(e),!0},Qs=class{constructor(e,t=!1){this.eElement=e,this.preventClick=t,this.startListener=null,this.handlers=[],this.eventSvc=void 0,this.touchStart=null,this.lastTapTime=null,this.longPressTimer=0,this.moved=!1}addEventListener(e,t){let n=this.eventSvc;if(!n){if(n===null)return;this.eventSvc=n=new _s;const i=this.onTouchStart.bind(this);this.startListener=i,this.eElement.addEventListener("touchstart",i,{passive:!0})}n.addEventListener(e,t)}removeEventListener(e,t){this.eventSvc?.removeEventListener(e,t)}onTouchStart(e){if(this.touchStart||!d2(e))return;const t=e.touches[0];this.touchStart=t;const n=this.handlers;if(!n.length){const i=this.eElement,o=i.ownerDocument,r=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this),a=this.onTouchCancel.bind(this),l={passive:!0},u={passive:!1};kd(n,[i,"touchmove",r,l],[o,"touchcancel",a,l],[o,"touchend",s,u],[o,"contextmenu",Gr,u])}this.clearLongPress(),this.longPressTimer=window.setTimeout(()=>{this.longPressTimer=0,this.touchStart===t&&!this.moved&&(this.moved=!0,this.eventSvc?.dispatchEvent({type:"longTap",touchStart:t,touchEvent:e}))},u2)}onTouchMove(e){const{moved:t,touchStart:n}=this;if(!t&&n){const i=Wa(n,e.touches);i&&!ZS(i,n,4)&&(this.clearLongPress(),this.moved=!0)}}onTouchEnd(e){const t=this.touchStart;!t||!Wa(t,e.changedTouches)||(this.moved||(this.eventSvc?.dispatchEvent({type:"tap",touchStart:t}),this.checkDoubleTap(t)),this.preventClick&&Gr(e),this.cancel())}onTouchCancel(e){const t=this.touchStart;!t||!Wa(t,e.changedTouches)||(this.lastTapTime=null,this.cancel())}checkDoubleTap(e){let t=Date.now();const n=this.lastTapTime;n&&t-n>c2&&(this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:e}),t=null),this.lastTapTime=t}cancel(){this.clearLongPress(),Fp(this.handlers),this.touchStart=null}clearLongPress(){window.clearTimeout(this.longPressTimer),this.longPressTimer=0,this.moved=!1}destroy(){const e=this.startListener;e&&(this.startListener=null,this.eElement.removeEventListener("touchstart",e)),this.cancel(),this.eElement=null,this.eventSvc=null}},h2=1,f2=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=h2++,e?.beanClasses&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){this.id=e.id,this.beans.context=this,this.destroyCallback=e.destroyCallback;for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];for(const t of e.beanClasses){const n=new t;n.beanName?this.beans[n.beanName]=n:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(n)}for(const t of e.derivedBeans??[]){const{beanName:n,bean:i}=t(this);this.beans[n]=i,this.createdBeans.push(i)}e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){return this.initBeans([e],t),e}initBeans(e,t){const n=this.beans;for(const i of e)i.preWireBeans?.(n),i.wireBeans?.(n);for(const i of e)i.preConstruct?.();t&&e.forEach(t);for(const i of e)i.postConstruct?.()}getBeans(){return this.beans}getBean(e){return this.beans[e]}getId(){return this.id}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[],this.destroyCallback?.()}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}};function g2(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var p2=["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","rowSpanSvc","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"],lR=Object.fromEntries(p2.map((e,t)=>[e,t]));function m2(e,t){const n=(e.beanName?lR[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,i=(t.beanName?lR[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return n-i}function v2(e,t){return e?.beanName==="gridDestroySvc"?-1:t?.beanName==="gridDestroySvc"?1:0}function C2(e){const{rowIndex:t,rowPinned:n,column:i}=e;return`${t}.${n??"null"}.${i.getId()}`}function am(e,t){const n=e.column===t.column,i=e.rowPinned===t.rowPinned,o=e.rowIndex===t.rowIndex;return n&&i&&o}function w2(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(Pe(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function b2(e,t){return!e&&!t?!0:!e||!t?!1:e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}function cR(e){let t=0,n;const{pinnedRowModel:i,rowModel:o,pageBounds:r}=e;return i?.getPinnedTopRowCount()?n="top":o.getRowCount()?(n=null,t=r.getFirstRow()):i?.getPinnedBottomRowCount()&&(n="bottom"),n===void 0?null:{rowIndex:t,rowPinned:n}}function uR(e){let t,n=null;const{pinnedRowModel:i,pageBounds:o}=e,r=i?.getPinnedBottomRowCount(),s=i?.getPinnedTopRowCount();return r?(n="bottom",t=r-1):e.rowModel.getRowCount()?t=o.getLastRow():s&&(n="top",t=s-1),t===void 0?null:{rowIndex:t,rowPinned:n}}function Ao(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function tl(e,t){const n=e.spannedRowRenderer?.getCellByPosition(t);if(n)return n;const i=e.rowRenderer.getRowByPosition(t);return i?i.getCellCtrl(t.column):null}function y2(e,t,n){const{rowModel:i,pinnedRowModel:o}=e;let r;return r??(r=i?.getRowNode(t)),n?r??(r=o?.getPinnedRowById(t,n)):(r??(r=o?.getPinnedRowById(t,"top")),r??(r=o?.getPinnedRowById(t,"bottom"))),r}function th(e,t,n=!1){const{rowIndex:i,rowPinned:o}=t,{pageBounds:r,pinnedRowModel:s,rowModel:a}=e;if(i===0)return o==="top"?null:o==="bottom"&&a.isRowsToRender()?{rowIndex:r.getLastRow(),rowPinned:null}:s?.isRowsToRender("top")?{rowIndex:s.getPinnedTopRowCount()-1,rowPinned:"top"}:null;if(n){const l=o?void 0:a.getRow(i);return hR(e,l,!0)??{rowIndex:i-1,rowPinned:o}}return{rowIndex:i-1,rowPinned:o}}function dR(e,t,n=!1){const{rowIndex:i,rowPinned:o}=t,{pageBounds:r,pinnedRowModel:s,rowModel:a}=e;if(S2(e,t))return o==="bottom"?null:o==="top"&&a.isRowsToRender()?{rowIndex:r.getFirstRow(),rowPinned:null}:s?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;if(n){const l=o?void 0:a.getRow(i);return hR(e,l)??{rowIndex:i+1,rowPinned:o}}return{rowIndex:i+1,rowPinned:o}}function hR(e,t,n=!1){const{gos:i,rowRenderer:o}=e;if(!t?.sticky||!v0(i))return;const r=o.getStickyTopRowCtrls(),s=o.getStickyBottomRowCtrls(),a=!s.some(f=>f.rowNode.rowIndex===t.rowIndex),l=a?r:s,u=(n?-1:1)*(a?-1:1);let h;for(let f=0;f<l.length;f++)if(l[f].rowNode.rowIndex===t.rowIndex){h=l[f+u];break}return h?{rowIndex:h.rowNode.rowIndex,rowPinned:null}:void 0}function S2(e,t){const{rowPinned:n,rowIndex:i}=t,{pinnedRowModel:o,pageBounds:r}=e;return n==="top"?(o?.getPinnedTopRowCount()??0)-1<=i:n==="bottom"?(o?.getPinnedBottomRowCount()??0)-1<=i:r.getLastRow()<=i}function R2(e,t,n){t.addManagedElementListeners(n,{keydown:i=>{if(!i.defaultPrevented&&!D2(i)&&i.key===K.TAB){const o=i.shiftKey;Ks(e,n,!1,o)||nl(e,o)&&i.preventDefault()}}})}function x2(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function oo(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.exclusive}function Ic(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.exclusive}function nl(e,t,n=!1){const i=e.ctrlsSvc.get("gridCtrl"),o=i.focusNextInnerContainer(t);return o===!0?!0:o===!1?o:((n||!t&&!i.isDetailGrid()&&i.isFocusInsideGridBody())&&i.forceFocusOutOfContainer(t),!1)}function F2(e,t){const n=e.focusSvc,i=n.getFocusedCell();if(i&&t&&am(i,t)){const{rowIndex:o,rowPinned:r,column:s}=t;gp(e)&&n.setFocusedCell({rowIndex:o,column:s,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!q0()})}}function P2(e,t){const n=e.getFocusableContainerName();return n==="gridBody"?t():fR(e,()=>$s(e.getGui(),".ag-tab-guard").length>0)?n:null}function fR(e,t){e.setAllowFocus?.(!0);try{return t()}finally{e.setAllowFocus?.(!1)}}var E2="__ag_Grid_Skip_Focusable_Container";function D2(e){return e[E2]===!0}function _i(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function lm(e){const t=[],n=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const i of n){if(!i)continue;const o=i.getGroupRowCount()||0;for(let r=0;r<o;r++){const s=i.getGroupRowCtrlAtIndex(r),a=t[r];if(s){const l=T2(e,s);(a==null||l>a)&&(t[r]=l)}}}return t}function T2(e,t){let i=e.colModel.isPivotMode()?I2(e):pR(e);const o=t.getHeaderCellCtrls();for(const r of o){const{column:s}=r,a=s.getAutoHeaderHeight();a!=null&&a>i&&s.isAutoHeaderHeight()&&(i=a)}return i}function cm(e){let n=e.colModel.isPivotMode()?A2(e):Mc(e);return e.colModel.forAllCols(i=>{const o=i.getAutoHeaderHeight();o!=null&&o>n&&i.isAutoHeaderHeight()&&(n=o)}),n}function Mc(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function gR(e){return e.gos.get("floatingFiltersHeight")??Mc(e)}function pR(e){return e.gos.get("groupHeaderHeight")??Mc(e)}function A2(e){return e.gos.get("pivotHeaderHeight")??Mc(e)}function I2(e){return e.gos.get("pivotGroupHeaderHeight")??pR(e)}function M2(e,t){return e.headerRowIndex===t.headerRowIndex&&e.column===t.column}function k2(e){return e?.headerRowIndex!=null}var L2=class extends X{setComp(e,t,n){this.comp=e,this.eGui=t;const{beans:i}=this,{headerNavigation:o,touchSvc:r,ctrlsSvc:s}=i;o&&this.createManagedBean(new Dc(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,i),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,i)}),this.onPivotModeChanged(i),this.setupHeaderHeight();const a=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:a}),r?.mockHeaderContextMenu(this,a),s.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({headerRowsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>ir(this.beans,()=>e()),stylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const n=lm(e).reduce((s,a)=>s+a,0),i=cm(e);e.filterManager?.hasFloatingFilters()&&(t+=gR(e)),t+=n,t+=i;const o=e.environment.getHeaderRowBorderWidth(),r=t+o;if(this.headerHeightWithBorder!==r){this.headerHeightWithBorder=r;const s=`${r}px`;this.comp.setHeightAndMinHeight(s)}this.headerHeight!==t&&(this.headerHeight=t,this.eventSvc.dispatchEvent({type:"headerHeightChanged"}))}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const n=e.visibleCols.allCols.some(i=>i.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",n)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),n=e.shiftKey,i=n!==t?"LEFT":"RIGHT",{beans:o}=this,{headerNavigation:r,focusSvc:s}=o;(r.navigateHorizontally(i,!0,e)||!n&&s.focusOverlay(!1)||nl(o,n,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:n}=this.beans;switch(e.key){case K.LEFT:t="LEFT";case K.RIGHT:{Pe(t)||(t="RIGHT"),n.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case K.UP:t="UP";case K.DOWN:{Pe(t)||(t="DOWN"),n.navigateVertically(t,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:n,beans:i}=this;!t&&n.contains(Lt(i))||n.contains(t)||(i.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,n){const{menuSvc:i,ctrlsSvc:o}=this.beans;if(!e&&!n||!i?.isHeaderContextMenuEnabled())return;const{target:r}=e??t;(r===this.eGui||r===o.getHeaderRowContainerCtrl()?.eViewport)&&i.showHeaderContextMenu(void 0,e,n)}},um=class extends Ft{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},O2={tag:"div",cls:"ag-header-cell",role:"columnheader",children:[{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"},{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"}]},_2=class extends um{constructor(e){super(O2,e),this.eResize=ge,this.eHeaderCompWrapper=ge,this.headerCompVersion=0}postConstruct(){const e=this.getGui(),t=()=>{const i=this.ctrl.getSelectAllGui();i&&(this.eResize.insertAdjacentElement("afterend",i),this.addDestroyFunc(()=>i.remove()))},n={setWidth:i=>e.style.width=i,toggleCss:(i,o)=>this.toggleCss(i,o),setUserStyles:i=>vc(e,i),setAriaSort:i=>i?FL(e,i):PL(e),setUserCompDetails:i=>this.setUserCompDetails(i),getUserCompInstance:()=>this.headerComp,refreshSelectAllGui:t,removeSelectAllGui:()=>this.ctrl.getSelectAllGui()?.remove()};this.ctrl.setComp(n,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0),t()}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.headerCompGui?.remove(),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(e){this.headerCompVersion++;const t=this.headerCompVersion;e.newAgStackInstance().then(n=>this.afterCompCreated(t,n))}afterCompCreated(e,t){if(e!=this.headerCompVersion||!this.isAlive()){this.destroyBean(t);return}this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},N2={tag:"div",cls:"ag-header-group-cell",role:"columnheader",children:[{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"},{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"}]},B2=class extends um{constructor(e){super(N2,e),this.eResize=ge,this.eHeaderCompWrapper=ge}postConstruct(){const e=this.getGui(),t=(i,o)=>o!=null?e.setAttribute(i,o):e.removeAttribute(i),n={toggleCss:(i,o)=>this.toggleCss(i,o),setUserStyles:i=>vc(e,i),setHeaderWrapperHidden:i=>{i?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:i=>{i!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${i}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",i!=null)},setResizableDisplayed:i=>xt(this.eResize,i),setWidth:i=>e.style.width=i,setAriaExpanded:i=>t("aria-expanded",i),setUserCompDetails:i=>this.setUserCompDetails(i),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(n,e,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(e){e.newAgStackInstance().then(t=>this.afterHeaderCompCreated(t))}afterHeaderCompCreated(e){const t=()=>this.destroyBean(e);if(!this.isAlive()){t();return}const n=this.getGui(),i=e.getGui();this.eHeaderCompWrapper.appendChild(i),this.addDestroyFunc(t),this.headerGroupComp=e,this.ctrl.setDragSource(n)}},H2={tag:"div",cls:"ag-header-cell ag-floating-filter",role:"gridcell",children:[{tag:"div",ref:"eFloatingFilterBody",role:"presentation"},{tag:"div",ref:"eButtonWrapper",cls:"ag-floating-filter-button ag-hidden",role:"presentation",children:[{tag:"button",ref:"eButtonShowMainFilter",cls:"ag-button ag-floating-filter-button-button",attrs:{type:"button",tabindex:"-1"}}]}]},G2=class extends um{constructor(e){super(H2,e),this.eFloatingFilterBody=ge,this.eButtonWrapper=ge,this.eButtonShowMainFilter=ge}postConstruct(){const e=this.getGui(),t={toggleCss:(n,i)=>this.toggleCss(n,i),setUserStyles:n=>vc(e,n),addOrRemoveBodyCssClass:(n,i)=>this.eFloatingFilterBody.classList.toggle(n,i),setButtonWrapperDisplayed:n=>xt(this.eButtonWrapper,n),setCompDetails:n=>this.setCompDetails(n),getFloatingFilterComp:()=>this.compPromise,setWidth:n=>e.style.width=n,setMenuIcon:n=>this.eButtonShowMainFilter.appendChild(n)};this.ctrl.setComp(t,e,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(e){if(!e){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=e.newAgStackInstance(),this.compPromise.then(t=>this.afterCompCreated(t))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp?.getGui().remove(),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp)}afterCompCreated(e){if(e){if(!this.isAlive()){this.destroyBean(e);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached?.()}}},V2=class extends Ft{constructor(e){super({tag:"div",cls:e.headerRowClass,role:"row"}),this.ctrl=e,this.headerComps={}}postConstruct(){this.getGui().setAttribute("tabindex",String(this.gos.get("tabIndex"))),fc(this.getGui(),this.ctrl.getAriaRowIndex());const t={setHeight:n=>this.getGui().style.height=n,setTop:n=>this.getGui().style.top=n,setHeaderCtrls:(n,i)=>this.setHeaderCtrls(n,i),setWidth:n=>this.getGui().style.width=n,setRowIndex:n=>fc(this.getGui(),n)};this.ctrl.setComp(t,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(e,t){if(!this.isAlive())return;const n=this.headerComps;this.headerComps={};for(const i of e){const o=i.instanceId;let r=n[o];delete n[o],r==null&&(r=this.createHeaderComp(i),this.getGui().appendChild(r.getGui())),this.headerComps[o]=r}if(Object.values(n).forEach(i=>{i.getGui().remove(),this.destroyBean(i)}),t){const i=Object.values(this.headerComps);i.sort((r,s)=>{const a=r.getCtrl().column.getLeft(),l=s.getCtrl().column.getLeft();return a-l});const o=i.map(r=>r.getGui());KS(this.getGui(),o)}}createHeaderComp(e){let t;switch(this.ctrl.type){case"group":t=new B2(e);break;case"filter":t=new G2(e);break;default:t=new _2(e);break}return this.createBean(t),t.setParentComponent(this),t}},dm=class extends X{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=xn(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:n}=this.beans,i=t.bodyWidth,o=t.getColsLeftWidth(),r=t.getDisplayedColumnsRightWidth();let s;e?s=i+o+r:(s=i,this.addSpacer&&(this.gos.get("enableRtl")?o:r)===0&&n.verticalScrollShowing&&(s+=n.getScrollbarWidth())),this.callback(s)}};function kc(e,t,n){return n&&e.addDestroyFunc(()=>t.destroyBean(n)),n??e}var hm=class extends X{constructor(e,t,n,i){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=i,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=n}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?Tt(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,n=e.get("suppressColumnMoveAnimation"),i=Pe(this.columnOrGroup.getOldLeft());t?.isActive()&&i&&!n?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),n=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=n,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===n&&this.setLeft(n)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:n,visibleCols:i}=this.beans;if(!xn(n,"print")||e.getPinned()==="left")return t;const r=i.getColsLeftWidth();if(e.getPinned()==="right"){const s=i.bodyWidth;return r+s+t}return r+t}setLeft(e){if(Pe(e)&&(this.eCell.style.left=`${e}px`),tn(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&xL(this.ariaEl,t.length)}}},W2="ag-column-first",z2="ag-column-last";function mR(e,t,n,i){return Vt(e)?[]:$2(e.headerClass,e,t,n,i)}function vR(e,t,n){e.toggleCss(W2,n.isColAtEdge(t,"first")),e.toggleCss(z2,n.isColAtEdge(t,"last"))}function U2(e,t,n,i){return Ue(t,{colDef:e,column:n,columnGroup:i})}function $2(e,t,n,i,o){if(Vt(e))return[];let r;if(typeof e=="function"){const s=U2(t,n,i,o);r=e(s)}else r=e;return typeof r=="string"?[r]:Array.isArray(r)?[...r]:[]}var j2=0,CR="headerCtrl",fm=class extends X{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.reAttemptToFocus=!1,this.instanceId=e.getUniqueId()+"-"+j2++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}setComp(e,t,n,i,o){t.setAttribute("col-id",this.column.colIdSanitised),this.wireComp(e,t,n,i,o),this.reAttemptToFocus&&(this.reAttemptToFocus=!1,this.focus(this.lastFocusEvent??void 0))}shouldStopEventPropagation(e){const{headerRowIndex:t,column:n}=this.beans.focusSvc.focusedHeader,i=n.getDefinition(),o=i?.suppressHeaderKeyboardEvent;if(!Pe(o))return!1;const r=Ue(this.gos,{colDef:i,column:n,headerRowIndex:t,event:e});return!!o(r)}getWrapperHasFocus(){return Lt(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}refreshHeaderStyles(){const e=this.column.getDefinition();if(!e)return;const{headerStyle:t}=e;let n;if(typeof t=="function"){const i=this.getHeaderClassParams();n=t(i)}else n=t;n&&this.comp.setUserStyles(n)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:n,compBean:i}=e,{beans:o}=this,r=f=>{if(!this.isAlive()||!i.isAlive())return;const{paddingTop:g,paddingBottom:m,borderBottomWidth:v,borderTopWidth:w}=Bs(this.eGui),b=g+m+v+w,R=t.offsetHeight+b;if(f<5){const P=!un(o)?.contains(t),F=R==0;if(P||F){Ep(()=>r(f+1),"raf",o);return}}this.setColHeaderHeight(this.column,R)};let s=!1,a;const l=()=>{const f=this.column.isAutoHeaderHeight();f&&!s&&u(),!f&&s&&h()},u=()=>{s=!0,this.comp.toggleCss("ag-header-cell-auto-height",!0),r(0),a=Hr(this.beans,t,()=>r(0))},h=()=>{s=!1,a&&a(),this.comp.toggleCss("ag-header-cell-auto-height",!1),a=void 0};l(),i.addDestroyFunc(()=>h()),i.addManagedListeners(this.column,{widthChanged:()=>s&&r(0)}),i.addManagedEventListeners({sortChanged:()=>{s&&window.setTimeout(()=>r(0))}}),n&&n(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:n,eGui:i}=this;!e||!t||!i||(vR(e,t,n.visibleCols),HS(i,n.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=oo(this.beans);this.eGui&&oi(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=Lt(this.beans),n=e.key===K.LEFT||e.key===K.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey)return;if((this.isResizing||n)&&(e.preventDefault(),e.stopImmediatePropagation()),(e.ctrlKey||e.metaKey)&&k0(e)===K.C)return this.beans.clipboardSvc?.copyToClipboard();if(!n)return;const r=e.key===K.LEFT!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const s=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(s,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(r)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:n}=this.beans;return n?n.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:n}=this;let i=e.key===K.LEFT!==t.get("enableRtl");const o=n.getPinned(),r=t.get("enableRtl");return o&&r!==(o==="right")&&(i=!i),(i?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{this.resizeFeature?.toggleColumnResizing(!1)},150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case K.PAGE_DOWN:case K.PAGE_UP:case K.PAGE_HOME:case K.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=CR,{eGui:n,gos:i}=this;Ws(i,n,t,this),e.addDestroyFunc(()=>Ws(i,n,t,null))}focus(e){if(!this.isAlive())return!1;const{eGui:t}=this;return t?(this.lastFocusEvent=e||null,t.focus()):this.reAttemptToFocus=!0,!0}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop?.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,n){const i=e??t,{menuSvc:o,gos:r}=this.beans;r.get("preventDefaultOnContextMenu")&&i.preventDefault(),o?.isHeaderContextMenuEnabled(n)&&o.showHeaderContextMenu(n,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",n)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:n}=this;e.isColumn?n.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):n.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},K2=class extends fm{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}wireComp(e,t,n,i,o){this.comp=e;const{rowCtrl:r,column:s,beans:a}=this,{colResize:l,context:u,colHover:h,rangeSvc:f}=a,g=kc(this,u,o);this.setGui(t,g),this.updateState(),this.setupWidth(g),this.setupMovingCss(g),this.setupMenuClass(g),this.setupSortableClass(g),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:i,checkMeasuringCallback:v=>this.setRefreshFunction("measuring",v),compBean:g}),this.addColumnHoverListener(g),this.setupFilterClass(g),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(g),this.setupSelectAll(g),this.setupUserComp(),this.refreshAria(),l?this.resizeFeature=g.createManagedBean(l.createResizeFeature(r.pinned,s,n,e,this)):xt(n,!1),h?.createHoverFeature(g,[s],t),f?.createRangeHighlightFeature(g,s,e),g.createManagedBean(new hm(s,t,a)),g.createManagedBean(new Dc(t,{shouldStopEventPropagation:v=>this.shouldStopEventPropagation(v),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(g),g.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),g.addManagedListeners(s,{colDefChanged:()=>this.refresh(),formulaRefChanged:()=>this.refresh(),headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const m=()=>this.checkDisplayName();g.addManagedEventListeners({columnValueChanged:m,columnRowGroupChanged:m,columnPivotChanged:m,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),g.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){this.beans.colResize?.resizeHeader(this.column,e,t)}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.colDef;return Ue(t.gos,{colDef:n,column:e,floatingFilter:!1})}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return E_(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:n,gos:i}=this.beans;return Ue(i,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!n&&(!this.openFilterEnabled||ri(this.gos)),showColumnMenu:(r,s)=>{e?.showColumnMenu({column:this.column,buttonElement:r,positionBy:"button",onClosedCallback:s})},showColumnMenuAfterMouseClick:(r,s)=>{e?.showColumnMenu({column:this.column,mouseEvent:r,positionBy:"mouse",onClosedCallback:s})},showFilter:r=>{e?.showFilterMenu({column:this.column,buttonElement:r,containerType:"columnFilter",positionBy:"button"})},progressSort:r=>{t?.progressSort(this.column,!!r,"uiColumnSorted")},setSort:(r,s)=>{t?.setSortForColumn(this.column,Oi(r),!!s,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(r,s)=>{i.assertModuleRegistered("Tooltip",3),this.setupTooltip(r,s)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createOptionalManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature?.setComp(this),e.addManagedPropertyListener("rowSelection",()=>{const n=t.createSelectAllFeature(this.column);n&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(n),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!n&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===K.SPACE?this.selectAllFeature?.onSpaceKeyDown(e):e.key===K.ENTER?this.onEnterKeyDown(e):e.key===K.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){const{column:t,gos:n,sortable:i,beans:o}=this;let r=!1;(e.ctrlKey||e.metaKey)&&(r=this.showMenuOnKeyPress(e,!0)),r||(!e.altKey&&Ya(n)?o.rangeSvc?.handleColumnSelection(t,e):i&&o.sortSvc?.progressSort(t,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){const n=this.comp.getUserCompInstance();return wR(n)&&n.onMenuKeyboardShortcut(t)?(e.preventDefault(),!0):!1}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),q0()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){const e=()=>{const t=this.column.getColDef(),n=mR(t,this.gos,this.column,null),i=this.userHeaderClasses;this.userHeaderClasses=new Set(n);for(const o of n)i.has(o)?i.delete(o):this.comp.toggleCss(o,!0);for(const o of i)this.comp.toggleCss(o,!1)};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!e?.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=!!e?.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria();for(const e of Object.values(this.refreshFunctions))e()}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==e.componentClass?this.attemptHeaderCompRefresh(e.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!t||!t.refresh?!1:t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const n=this.column.getActualWidth();this.comp.setWidth(`${n}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){const t=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){const t=()=>{this.comp?.toggleCss("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){const t=()=>{this.comp.toggleCss("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const t=()=>{const n=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",n),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=e===0,n=e===1;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",n)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:n,beans:i}=this,o=lm(this.beans),r=o.reduce((g,m)=>g+m,0)===0;if(n.toggleCss("ag-header-parent-hidden",r),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),n.toggleCss("ag-header-span-height",!1),n.toggleCss("ag-header-span-total",!1);return}const{numberOfParents:s,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();n.toggleCss("ag-header-span-height",s>0);const l=cm(i);if(s===0){n.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${l}px`);return}n.toggleCss("ag-header-span-total",a);const u=(this.column.getFirstRealParent()?.getLevel()??-1)+1,h=o.length-u;let f=0;for(let g=0;g<h;g++)f+=o[o.length-1-g];e.style.setProperty("top",`${-f}px`),e.style.setProperty("height",`${l+f}px`)}refreshAriaSort(){let e=null;const{beans:t,column:n,comp:i,sortable:o}=this;if(o){const r=this.getLocaleTextFunc(),s=t.sortSvc?.getDisplaySortForColumn(n)??null;i.setAriaSort(fL(s)),e=r("ariaSortableColumn","Press ENTER to sort")}else i.setAriaSort();this.setAriaDescriptionProperty("sort",e)}refreshAriaMenu(){let e=null;this.menuEnabled&&(e=this.getLocaleTextFunc()("ariaMenuColumn","Press ALT DOWN to open column menu")),this.setAriaDescriptionProperty("menu",e)}refreshAriaFilterButton(){let e=null;const{openFilterEnabled:t,gos:n}=this;t&&!ri(n)&&(e=this.getLocaleTextFunc()("ariaFilterColumn","Press CTRL ENTER to open filter")),this.setAriaDescriptionProperty("filterButton",e)}refreshAriaFiltered(){let e=null;this.column.isFilterActive()&&(e=this.getLocaleTextFunc()("ariaColumnFiltered","Column Filtered")),this.setAriaDescriptionProperty("filter",e)}refreshAriaCellSelection(){let e=null;const{gos:t,column:n}=this;Ya(t)&&!Kn(n)&&(e=this.getLocaleTextFunc()("ariaColumnCellSelection","Press Enter to toggle selection for all visible cells in this column")),this.setAriaDescriptionProperty("cellSelection",e)}setAriaDescriptionProperty(e,t){const n=this.ariaDescriptionProperties;t!=null?n.set(e,t):n.delete(e)}announceAriaDescription(){const{beans:e,eGui:t,ariaDescriptionProperties:n}=this;if(!t.contains(Lt(e)))return;const i=Array.from(n.keys()).sort((o,r)=>o==="filter"?-1:r.charCodeAt(0)-o.charCodeAt(0)).map(o=>n.get(o)).join(". ");e.ariaAnnounce?.announceValue(i,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered(),this.refreshAriaCellSelection()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=o=>this.handleMouseOverChange(o.type==="mouseenter"),n=()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},i=o=>this.handleContextMenuMouseEvent(o,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:n,contextmenu:i})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.toggleCss("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return wR(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function wR(e){return typeof e?.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}var q2=0,gm=class extends X{constructor(e,t,n){super(),this.rowIndex=e,this.pinned=t,this.type=n,this.instanceId=q2++,this.comp=null,this.allCtrls=[];let i="ag-header-row-column";n==="group"?i="ag-header-row-group":n==="filter"&&(i="ag-header-row-filter"),this.headerRowClass=`ag-header-row ${i}`}setRowIndex(e){this.rowIndex=e,this.comp?.setRowIndex(this.getAriaRowIndex()),this.onRowHeightChanged()}postConstruct(){this.isPrintLayout=xn(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.allCtrls.every(e=>e.eGui!=null):!1}setComp(e,t,n=!0){this.comp=e,t=kc(this,this.beans.context,t),n&&(this.setRowIndex(this.rowIndex),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),n=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:n,virtualColumnsChanged:i=>this.onVirtualColumnsChanged(i.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,stylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",n),e.addManagedPropertyListener("ensureDomOrder",i=>this.isEnsureDomOrder=i.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=xn(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){if(!this.comp)return;const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;return this.isPrintLayout?this.pinned!=null?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){if(!this.comp)return;const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){let e=0;const t=lm(this.beans);for(let o=0;o<t.length;o++){if(o===this.rowIndex&&this.type==="group")return{topOffset:e,rowHeight:t[o]};e+=t[o]}const n=cm(this.beans);if(this.type==="column")return{topOffset:e,rowHeight:n};e+=n;const i=gR(this.beans);return{topOffset:e,rowHeight:i}}onVirtualColumnsChanged(e=!1){if(!this.comp)return;const t=this.getUpdatedHeaderCtrls(),n=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,n,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const i of t)this.recycleAndCreateHeaderCtrls(i,this.ctrlsById,e);const n=i=>{const{focusSvc:o,visibleCols:r}=this.beans;return o.isHeaderWrapperFocused(i)?r.isVisible(i.column):!1};if(e)for(const[i,o]of e)n(o)?this.ctrlsById.set(i,o):this.destroyBean(o);return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,n){if(e.isEmptyGroup())return;const i=e.getUniqueId();let o;if(n&&(o=n.get(i),n.delete(i)),o&&o.column!=e&&(this.destroyBean(o),o=void 0),o==null)switch(this.type){case"filter":{o=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":o=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:o=this.createBean(new K2(e,this));break}t.set(i,o)}getColumnsInViewport(){if(!this.isPrintLayout)return this.getComponentsToRender();if(this.pinned)return[];const e=[];for(const t of["left",null,"right"])e.push(...this.getComponentsToRender(t));return e}getComponentsToRender(e=this.pinned){return this.type==="group"?this.beans.colViewport.getHeadersToRender(e,this.rowIndex):this.beans.colViewport.getColumnHeadersToRender(e)}focusHeader(e,t){const n=this.allCtrls.find(o=>o.column==e);return n?n.focus(t):!1}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,this.comp=null,super.destroy()}},Q2=class extends X{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:n,ctrlsSvc:i,colModel:o,colMoves:r}=this.beans;this.setupCenterWidth(),n?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(r,this.eViewport);const s=this.refresh.bind(this,!0);this.addManagedEventListeners({displayedColumnsChanged:s,advancedFilterEnabledChanged:s});const a=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;i.register(a,this),o.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,filterManager:n,visibleCols:i}=this.beans;let o=0;const r=t.getFocusHeaderToUseAfterRefresh(),s=()=>{const f=i.headerGroupRowCount;o=f,e||(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls));const g=this.groupsRowCtrls.length;if(g!==f){if(g>f){for(let m=f;m<g;m++)this.destroyBean(this.groupsRowCtrls[m]);this.groupsRowCtrls.length=f;return}for(let m=g;m<f;m++){const v=this.createBean(new gm(m,this.pinned,"group"));this.groupsRowCtrls.push(v)}}},a=()=>{const f=o++;if(this.hidden){this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl);return}this.columnsRowCtrl==null||!e?(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.columnsRowCtrl=this.createBean(new gm(f,this.pinned,"column"))):this.columnsRowCtrl.rowIndex!==f&&this.columnsRowCtrl.setRowIndex(f)},l=()=>{this.includeFloatingFilter=!!n?.hasFloatingFilters()&&!this.hidden;const f=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){f();return}e||f();const g=o++;this.filtersRowCtrl?this.filtersRowCtrl.rowIndex!==g&&this.filtersRowCtrl.setRowIndex(g):this.filtersRowCtrl=this.createBean(new gm(g,this.pinned,"filter"))},u=this.getAllCtrls();s(),a(),l();const h=this.getAllCtrls();this.comp.setCtrls(h),this.restoreFocusOnHeader(t,r),u.length!==h.length&&this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}getHeaderCtrlForColumn(e){const t=n=>n?.getHeaderCellCtrls().find(i=>i.column===e);if(zr(e))return t(this.columnsRowCtrl);if(this.groupsRowCtrls.length!==0)for(let n=0;n<this.groupsRowCtrls.length;n++){const i=t(this.groupsRowCtrls[n]);if(i)return i}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,n){const o=this.getAllCtrls()[e];return o?o.focusHeader(t,n):!1}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(e,t){const n=e?.createBodyDropTarget(this.pinned,t);n&&this.createManagedBean(n)}restoreFocusOnHeader(e,t){if(!t)return;const{column:n}=t;n.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t,scroll:!1})}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new dm(e=>this.comp.setCenterWidth(`${e}px`),!0))}},Y2={tag:"div",cls:"ag-pinned-left-header",role:"rowgroup"},Z2={tag:"div",cls:"ag-pinned-right-header",role:"rowgroup"},J2={tag:"div",cls:"ag-header-viewport",role:"rowgroup",attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eCenterContainer",cls:"ag-header-container",role:"presentation"}]},pm=class extends Ft{constructor(e){super(),this.eCenterContainer=ge,this.headerRowComps={},this.rowCompsList=[],this.pinned=e}postConstruct(){this.selectAndSetTemplate();const e={setDisplayed:n=>this.setDisplayed(n),setCtrls:n=>this.setCtrls(n),setCenterWidth:n=>this.eCenterContainer.style.width=n,setViewportScrollLeft:n=>this.getGui().scrollLeft=n,setPinnedContainerWidth:n=>{const i=this.getGui();i.style.width=n,i.style.maxWidth=n,i.style.minWidth=n}};this.createManagedBean(new Q2(this.pinned)).setComp(e,this.getGui())}selectAndSetTemplate(){const e=this.pinned=="left",t=this.pinned=="right",n=e?Y2:t?Z2:J2;this.setTemplate(n),this.eRowContainer=this.eCenterContainer!==ge?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(e){this.destroyBean(e),e.getGui().remove()}setCtrls(e){const t=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let n;const i=o=>{const r=o.getGui();r.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(r),n&&jS(this.eRowContainer,r,n),n=r};for(const o of e){const r=o.instanceId,s=t[r];delete t[r];const a=s||this.createBean(new V2(o));this.headerRowComps[r]=a,this.rowCompsList.push(a),i(a)}for(const o of Object.values(t))this.destroyRowComp(o)}},X2={tag:"div",cls:"ag-header",role:"presentation"},eN=class extends Ft{constructor(){super(X2)}postConstruct(){const e={toggleCss:(i,o)=>this.toggleCss(i,o),setHeightAndMinHeight:i=>{this.getGui().style.height=i,this.getGui().style.minHeight=i}};this.createManagedBean(new L2).setComp(e,this.getGui(),this.getFocusableElement());const n=i=>{this.createManagedBean(i),this.appendChild(i)};n(new pm("left")),n(new pm(null)),n(new pm("right"))}},tN={selector:"AG-HEADER-ROOT",component:eN},ro={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},mm=class extends X{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},n=t.autoHeight?ro.AUTO_HEIGHT:t.print?ro.PRINT:ro.NORMAL;this.view.updateLayoutClasses(n,t)}},bR=class extends Ft{constructor(e,t){super(),this.direction=t,this.eViewport=ge,this.eContainer=ge,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",$0()||Us())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=K0(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),n=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:n,touchend:n})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),ir(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.toggleCss("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.toggleCss("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(e){const t=this.eViewport;YL(this,()=>Li(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},nN={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eLeftSpacer",cls:"ag-horizontal-left-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eRightSpacer",cls:"ag-horizontal-right-spacer"}]},iN=class extends bR{constructor(){super(nN,"horizontal"),this.eLeftSpacer=ge,this.eRightSpacer=ge,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new dm(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const n=!this.enableRtl&&e,i=this.scrollVisibleSvc.getScrollbarWidth();n&&(t+=i),Eo(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=i);let o=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(o+=i),Eo(this.eLeftSpacer,o),this.eLeftSpacer.classList.toggle("ag-scroller-corner",o<=i)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,n=this.gos.get("suppressHorizontalScroll"),i=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,r=n?0:i===0&&t?16:i,s=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),wc(this.getGui(),r),wc(this.eViewport,r),wc(this.eContainer,r),r||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(s,100):s()}getScrollPosition(){return Td(this.eViewport,this.enableRtl)}setScrollPosition(e){Li(this.eViewport)||this.attemptSettingScrollPosition(e),Ad(this.eViewport,e,this.enableRtl)}},oN={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:iN},yR=class extends X{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,n=t!=null?`${t}px`:"";this.eContainer.style.height=n,this.eViewport&&(this.eViewport.style.height=n)}},rN={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]},sN=class extends bR{constructor(){super(rN,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new yR(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,n=this.invisibleScrollbar,i=t&&e.getScrollbarWidth()||0,o=i===0&&n?16:i;this.toggleCss("ag-scrollbar-invisible",n),Eo(this.getGui(),o),Eo(this.eViewport,o),Eo(this.eContainer,o),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const n=e.getGridBodyCtrl().eBodyViewport,i=this.getScrollPosition(),o=n.scrollTop;i!=o&&this.setScrollPosition(o,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!Li(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},aN={selector:"AG-FAKE-VERTICAL-SCROLL",component:sN},Qr="Viewport",SR="fakeVScrollComp",vm=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],RR=100,Cm=150,lN=class extends X{constructor(e){super(),this.clearRetryListenerFncs=[],this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.lastIsHorizontalScrollShowing=!1,this.scrollTimer=0,this.isScrollActive=!1,this.isVerticalPositionInvalidated=!0,this.isHorizontalPositionInvalidated=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=gn(this,()=>this.lastScrollSource[1]=null,Cm),this.resetLastVScrollDebounced=gn(this,()=>this.lastScrollSource[0]=null,Cm)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),this.clearRetryListenerFncs=[],window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const e=this.invalidateVerticalScroll.bind(this),t=this.invalidateHorizontalScroll.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),bodyHeightChanged:e,scrollGapChanged:t}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,n=>{this.centerRowsCtrl=n.center,this.fakeVScrollComp=n.fakeVScrollComp,this.fakeHScrollComp=n.fakeHScrollComp,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,Qr)});for(const e of vm){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.gos.get("debounceVerticalScrollbar"),t=e?gn(this,this.onVScroll.bind(this,Qr),RR):this.onVScroll.bind(this,Qr),n=e?gn(this,this.onVScroll.bind(this,SR),RR):this.onVScroll.bind(this,SR);this.addManagedElementListeners(this.eBodyViewport,{scroll:t}),this.registerScrollPartner(this.fakeVScrollComp,n)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.centerRowsCtrl!=null&&(e===void 0&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...vm,Qr]){if(this.lastScrollSource[1]===t)continue;const n=this.getViewportForSource(t);Ad(n,e,this.enableRtl)}}getViewportForSource(e){return e===Qr?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return this.lastScrollSource[t]==null?(t===0?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:n}=t;if(this.shouldBlockScrollUpdate(1,n,!0))return;const i=Td(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(i),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;const t=e===Qr?this.eBodyViewport.scrollTop:this.fakeVScrollComp.getScrollPosition();let n=t;if(this.shouldBlockScrollUpdate(0,n,!0))return;e===Qr?this.fakeVScrollComp.setScrollPosition(n):(this.eBodyViewport.scrollTop=t,n=this.eBodyViewport.scrollTop,this.invalidateVerticalScroll(),n!==t&&this.fakeVScrollComp.setScrollPosition(n,!0));const{animationFrameSvc:i}=this;i?.setScrollTop(n),this.nextScrollTop=n,i?.active?i.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.fakeHScrollComp.getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}isScrolling(){return this.isScrollActive}fireScrollEvent(e){const t={type:"bodyScroll",direction:e===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.isScrollActive=!0,this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.isScrollActive=!1,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},Cm)}shouldBlockScrollUpdate(e,t,n=!1){return n&&!Us()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=wp(this.eBodyViewport),{scrollHeight:n}=this.eBodyViewport;return e<0||e+t>n}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:n}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>n}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){const e=this.scrollLeft;let t=!1;for(const n of vm)if(this.getViewportForSource(n).scrollLeft!==e){t=!0;break}t&&this.onHScroll(Qr)}scrollGridIfNeeded(e=!1){const t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,e&&this.invalidateVerticalScroll(),this.redrawRowsAfterScroll()),t}setHorizontalScrollPosition(e,t=!1){const i=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl?e=e>0?0:i:e=Math.min(Math.max(e,0),i)),Ad(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.invalidateVerticalScroll(),this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){const{lastOffsetHeight:n,lastScrollTop:i}=this;return{top:i,bottom:i+n}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.setVerticalScrollPosition(0)}ensureNodeVisible(e,t=null){const{rowModel:n}=this.beans,i=n.getRowCount();let o=-1;for(let r=0;r<i;r++){const s=n.getRow(r);if(typeof e=="function"){if(s&&e(s)){o=r;break}}else if(e===s||e===s.data){o=r;break}}o>=0&&this.ensureIndexVisible(o,t)}ensureIndexVisible(e,t,n=0){if(xn(this.gos,"print"))return;const{rowModel:i}=this.beans,o=i.getRowCount();if(typeof e!="number"||e<0||e>=o){le(88,{index:e});return}this.clearRetryListeners();const{frameworkOverrides:r,pageBounds:s,rowContainerHeight:a,rowRenderer:l}=this.beans;r.wrapIncoming(()=>{const u=this.ctrlsSvc.getGridBodyCtrl(),h=i.getRow(e);let f,g,m=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:v,stickyBottomHeight:w}=u,b=h.rowTop,y=h.rowHeight,R=s.getPixelOffset(),S=h.rowTop-R,P=S+h.rowHeight,F=this.getVScrollPosition(),A=a.divStretchOffset,k=F.top+A,L=F.bottom+A,N=L-k,M=a.getScrollPositionForPixel(S),E=a.getScrollPositionForPixel(P-N),I=Math.min((M+E)/2,S),B=k+v>S,W=L-w<P;let J=null;t==="top"?J=M-v:t==="bottom"?J=E+w:t==="middle"?J=I:B?J=M-v:W&&(E-M>N?J=M-v:J=E+w),J!==null&&(this.setVerticalScrollPosition(J),l.redraw({afterScroll:!0})),f=b!==h.rowTop||y!==h.rowHeight,g=v!==u.stickyTopHeight||w!==u.stickyBottomHeight,m++}while((f||g)&&m<10);if(this.animationFrameSvc?.flushAllFrames(),n<10&&(h?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const v=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const w=this.getVScrollPosition().top;v!==w&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),!(e>=i.getRowCount())&&this.ensureIndexVisible(e,t,n+1)}})}})}clearRetryListeners(){for(const e of this.clearRetryListenerFncs)e();this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:n,frameworkOverrides:i}=this.beans,o=n.getCol(e);if(!o||o.isPinned()||!this.visibleCols.isColDisplayed(o))return;const r=this.getPositionedHorizontalScroll(o,t);i.wrapIncoming(()=>{r!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(r),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:n,columnAfterEnd:i}=this.isColumnOutsideViewport(e),o=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),r=this.centerRowsCtrl.getCenterWidth(),s=this.enableRtl;let a=(s?n:i)||o,l=s?i:n;t!=="auto"&&(a=t==="start",l=t==="end");const u=t==="middle";if(a||l||u){const{colLeft:h,colMiddle:f,colRight:g}=this.getColumnBounds(e);return u?f-r/2:a?s?g:h:s?h-r:g-r}return null}isColumnOutsideViewport(e){const{start:t,end:n}=this.getViewportBounds(),{colLeft:i,colRight:o}=this.getColumnBounds(e),r=this.enableRtl,s=r?t>o:n<o,a=r?n<i:t>i;return{columnBeforeStart:s,columnAfterEnd:a}}getColumnBounds(e){const t=this.enableRtl,n=this.visibleCols.bodyWidth,i=e.getActualWidth(),o=e.getLeft(),r=t?-1:1,s=t?n-o:o,a=s+i*r,l=s+i/2*r;return{colLeft:s,colMiddle:l,colRight:a}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),n=t,i=e+t;return{start:n,end:i,width:e}}},xR={horizontal:{overflow:e=>e.scrollWidth-e.clientWidth,scrollSize:e=>e.scrollWidth,clientSize:e=>e.clientWidth,opposite:"vertical"},vertical:{overflow:e=>e.scrollHeight-e.clientHeight,scrollSize:e=>e.scrollHeight,clientSize:e=>e.clientHeight,opposite:"horizontal"}};function cN(e,t,n=Yp()||0,i,o){return FR(e,t,"horizontal",n,i,o)}function uN(e,t,n=Yp()||0,i,o){return FR(e,t,"vertical",n,i,o)}function FR(e,t,n,i,o,r){const s=xR[n],a=xR[s.opposite],l=o?Li(o):!0,u=r?Li(r):!0,h=s.overflow(e);if(h<=0)return!1;if(!t||i===0)return!0;const f=a.overflow(t);if(f<=0)return!0;if(h<=i){if(l&&u&&dN({candidateOverflow:f,candidateScrollSize:a.scrollSize(t),candidateClientSize:a.clientSize(t),scrollbarWidth:i}))return!1;const g=s.clientSize(e)+i;return s.scrollSize(e)<=g}return!0}function dN({candidateOverflow:e,candidateScrollSize:t,candidateClientSize:n,scrollbarWidth:i}){if(e<=0||e>i)return!1;const o=n+i;return t>n&&t<=o}var hN=class extends X{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:n}=this,i=()=>{ir(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(i),n.registerBodyViewportResizeListener(i)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const n=this.centerContainerCtrl.getCenterWidth();n!==this.centerWidth&&(this.centerWidth=n,t?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=this.gridBodyCtrl.eBodyViewport,t=wp(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){if(!this.isAlive())return;const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const{centerContainerCtrl:e,beans:t}=this,n=e.getCenterWidth(),i=e.getViewportScrollLeft();t.colViewport.setScrollPosition(n,i)}};function PR(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}function nh(e,t,n,i){const o=t.getColDef().cellRendererParams?.suppressMouseEventHandling;return ER(e,t,n,i,o)}function fN(e,t,n,i){const o=t?.suppressMouseEventHandling;return ER(e,void 0,n,i,o)}function ER(e,t,n,i,o){return o?o(Ue(e,{column:t,node:n,event:i})):!1}function DR(e,t,n){let i=t;for(;i;){const o=m0(e,i,n);if(o)return o;i=i.parentElement}return null}var ih="cellCtrl";function wm(e,t){return DR(e,t,ih)}var oh="renderedRow";function gN(e,t){return DR(e,t,oh)}function bm(e,t,n,i,o){const r=i?i.getColDef().suppressKeyboardEvent:void 0;if(!r)return!1;const s=Ue(e,{event:t,editing:o,column:i,node:n,data:n.data,colDef:i.getColDef()});return!!(r&&r(s))}function pN(e){const{pinnedRowModel:t,rowModel:n,rangeSvc:i,visibleCols:o}=e;if(!i||o.allCols.length===0)return;const r=t?.isEmpty("top")??!0,s=t?.isEmpty("bottom")??!0,a=r?null:"top";let l,u;s?(l=null,u=n.getRowCount()-1):(l="bottom",u=t?.getPinnedBottomRowCount()??-1),i.setCellRange({rowStartIndex:0,rowStartPinned:a,rowEndIndex:u,rowEndPinned:l})}var mN=class extends X{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this),this.editSvc=this.beans.editSvc}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){let e="mousedown";Md("pointerdown")?e="pointerdown":Md("touchstart")&&(e="touchstart");const t=["dblclick","contextmenu","mouseover","mouseout","click",e];for(const n of t){const i=this.processMouseEvent.bind(this,n);this.addManagedElementListeners(this.element,{[n]:i})}}processMouseEvent(e,t){if(!bc(this.beans,t)||cr(t))return;const{cellCtrl:n,rowCtrl:i}=this.getControlsForEventTarget(t.target);e==="contextmenu"?(n?.column&&n.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,i,n)):(n&&n.onMouseEvent(e,t),i&&i.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:wm(t,e),rowCtrl:gN(t,e)}}processKeyboardEvent(e,t){const{cellCtrl:n,rowCtrl:i}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):i?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,e,t))}processCellKeyboardEvent(e,t,n){const i=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1;!bm(this.gos,n,e.rowNode,e.column,i)&&t==="keydown"&&(!i&&this.beans.navigation?.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,i),PR(n)&&e.processCharacter(n)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(n,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,n){const{rowNode:i}=e,{focusSvc:o,navigation:r}=this.beans,a=o.getFocusedCell()?.column;if(!bm(this.gos,n,i,a,!1)){const u=n.key;if(t==="keydown")switch(u){case K.PAGE_HOME:case K.PAGE_END:case K.PAGE_UP:case K.PAGE_DOWN:r?.handlePageScrollingKey(n,!0);break;case K.LEFT:case K.RIGHT:if(!this.gos.get("embedFullWidthRows"))break;case K.UP:case K.DOWN:e.onKeyboardNavigate(n);break;case K.TAB:e.onTabKeyDown(n);break}}t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",n))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!bc(this.beans,e))return;const n=k0(e),{clipboardSvc:i,undoRedo:o}=this.beans;if(n===K.A)return this.onCtrlAndA(e);if(n===K.C)return this.onCtrlAndC(i,e);if(n===K.D)return this.onCtrlAndD(i,e);if(n===K.V)return this.onCtrlAndV(i,e);if(n===K.X)return this.onCtrlAndX(i,e);if(n===K.Y)return this.onCtrlAndY(o);if(n===K.Z)return this.onCtrlAndZ(o,e)}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:n,selectionSvc:i},gos:o}=this;n&&rr(o)&&!EO(o)&&t.isRowsToRender()?pN(this.beans):i&&i.selectAllRowNodes({source:"keyboardSelectAll",selectAll:S0(o)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:n}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(n,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:n}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(n,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:n}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(n,{withOpenEditor:!0})||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){!this.gos.get("undoRedoCellEditing")||!e||(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e?.redo("ui")}},rh=e=>e.topRowCtrls,sh=e=>e.getStickyTopRowCtrls(),ah=e=>e.getStickyBottomRowCtrls(),lh=e=>e.bottomRowCtrls,ch=e=>e.allRowCtrls,ym=e=>e.getCtrls("top"),Sm=e=>e.getCtrls("center"),Rm=e=>e.getCtrls("bottom"),vN={center:{type:"center",name:"center-cols",getRowCtrls:ch,getSpannedRowCtrls:Sm},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:ch,getSpannedRowCtrls:Sm},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:ch,getSpannedRowCtrls:Sm},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:ch},topCenter:{type:"center",name:"floating-top",getRowCtrls:rh,getSpannedRowCtrls:ym},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:rh,getSpannedRowCtrls:ym},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:rh,getSpannedRowCtrls:ym},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:rh},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:sh},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:sh},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:sh},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:sh},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:ah},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:ah},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:ah},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:ah},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:lh,getSpannedRowCtrls:Rm},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:lh,getSpannedRowCtrls:Rm},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:lh,getSpannedRowCtrls:Rm},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:lh}};function TR(e){return`ag-${Lc(e).name}-viewport`}function AR(e){const t=Lc(e);return t.container??`ag-${t.name}-container`}function CN(e){return`ag-${Lc(e).name}-spanned-cells-container`}function Lc(e){return vN[e]}var wN=["topCenter","topLeft","topRight"],bN=["bottomCenter","bottomLeft","bottomRight"],yN=["center","left","right"],SN=["center","left","right","fullWidth"],RN=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],xN=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],FN=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],IR=["stickyTopCenter","stickyTopLeft","stickyTopRight"],MR=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],PN=[...IR,"stickyTopFullWidth",...MR,"stickyBottomFullWidth"],EN=[...wN,...bN,...yN,...IR,...MR],DN=class extends X{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=Lc(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new hN(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,n,i){this.comp=e,this.eContainer=t,this.eSpannedContainer=n,this.eViewport=i,this.createManagedBean(new mN(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:o,rangeSvc:r}=this.beans,s=()=>this.onPinnedWidthChanged();this.forContainers(xN,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(o?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:s})}),this.forContainers(FN,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(o?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:s})}),this.forContainers(SN,()=>this.createManagedBean(new yR(this.eContainer,this.name==="center"?i:void 0))),r&&this.forContainers(EN,()=>this.createManagedBean(r.createDragListenerFeature(this.eContainer))),this.forContainers(RN,()=>this.createManagedBean(new dm(a=>this.comp.setContainerWidth(`${a}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,n=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:n,displayedColumnsWidthChanged:n,displayedRowsChanged:i=>this.onDisplayedRowsChanged(i.afterScroll)}),n(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const i=this.options.getSpannedRowCtrls(e);i&&this.comp.setSpannedRowCtrls(i,!1)}})}listenOnDomOrder(){if(PN.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const n=this.gos.get("ensureDomOrder"),i=xn(this.gos,"print");this.comp.setDomOrder(n||i)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=n=>{e.dragging&&n.cancelable&&n.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),n=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,n,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return mc(this.eViewport)}getCenterViewportScrollLeft(){return Td(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=Hr(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return $S(this.eViewport)}getViewportScrollLeft(){return Td(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){const{beans:e,gos:t,eViewport:n}=this,i=t.get("alwaysShowHorizontalScroll"),{ctrlsSvc:o}=e,r=o.getGridBodyCtrl()?.eBodyViewport,s=o.get("fakeHScrollComp")?.getGui(),a=o.get("fakeVScrollComp")?.getGui();return i||cN(n,r,void 0,s,a)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){Ad(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||t.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}const n=xn(this.gos,"print"),o=this.gos.get("embedFullWidthRows")||n,r=t.filter(s=>{const a=s.isFullWidth();return this.options.fullWidth?!o&&a:o||!a});this.comp.setRowCtrls({rowCtrls:r,useFlushSync:e})}},kR="ag-force-vertical-scroll",TN="ag-selectable",AN="ag-column-moving",IN=class extends X{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,n,i,o,r,s){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=i,this.eBottom=o,this.eStickyTop=r,this.eStickyBottom=s,this.eCenterColsViewport=n.querySelector(`.${TR("center")}`),this.eFullWidthContainer=n.querySelector(`.${AR("fullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",a=>this.setCellTextSelection(a.currentValue)),this.createManagedBean(new mm(this.comp)),this.scrollFeature=this.createManagedBean(new lN(n)),this.beans.rowDragSvc?.setupRowDrag(n,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,n,o,r,s]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(i),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),n=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t,rowResizeStarted:n,rowResizeEnded:n}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){const t=e.type==="rowResizeStarted";this.eBodyViewport.classList.toggle("ag-prevent-animation",t)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const n=t&&e.getScrollbarWidth()||0,i=K0()?16:0,o=`calc(100% + ${n+i}px)`;ir(this.beans,()=>this.comp.setBodyViewportWidth(o)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t,gos:n}=this;let i=n.get("treeData");if(!i){const o=t.isPivotMode();i=(e?e.columns.length:0)>=(o?2:1)}this.comp.setGridRootRole(i?"treegrid":"grid")}addFocusListeners(e){for(const t of e)this.addManagedElementListeners(t,{focusin:n=>{const{target:i}=n,o=Ns(i,"ag-root",t);t.classList.toggle("ag-has-focus",!o)},focusout:n=>{const{target:i,relatedTarget:o}=n,r=t.contains(o),s=Ns(o,"ag-root",t);Ns(i,"ag-root",t)||(!r||s)&&t.classList.remove("ag-has-focus")}})}setColumnMovingCss(e){this.comp.setColumnMovingCss(AN,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(TN,e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){const e=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0),{rowModel:t}=this.beans,n=t.isLastRowIndexKnown()?t.getRowCount():-1,i=n===-1?-1:e+n;this.comp.setRowCount(i)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const{gos:e,comp:t,ctrlsSvc:n}=this,i=e.get("alwaysShowVerticalScroll"),o=i?kR:null,r=xn(e,"normal");t.setAlwaysVerticalScrollClass(o,i);const s=n.get("center")?.eViewport,a=n.get("fakeHScrollComp")?.getGui(),l=n.get("fakeVScrollComp")?.getGui();return i||r&&uN(this.eBodyViewport,s,void 0,l,a)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let n=t.sizesMeasured;const i=()=>{const o=n&&Ka(this.gos)&&!e.stretching,r=o?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(r,o)};i(),this.addManagedEventListeners({heightScaleChanged:i}),this.addManagedPropertyListener("animateRows",i),this.addManagedEventListeners({stylesChanged:()=>{!n&&t.sizesMeasured&&(n=!0,i())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:n,eTop:i,eBottom:o,beans:{popupSvc:r,touchSvc:s}}=this,a=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:a}),s?.mockBodyContextMenu(this,a),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,r)});const l=this.onStickyWheel.bind(this);for(const h of[t,n,i,o])this.addManagedElementListeners(h,{wheel:l});const u=this.onHorizontalWheel.bind(this);for(const h of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(h).eContainer,{wheel:u});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:n,shiftKey:i}=e;(i||Math.abs(t)>Math.abs(n))&&bc(this.beans,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e;this.scrollVertically(t)>0&&e.preventDefault()}onHorizontalWheel(e){const{deltaX:t,deltaY:n,shiftKey:i}=e;(i||Math.abs(t)>Math.abs(n))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:n}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||n})}onBodyViewportContextMenu(e,t,n){if(!e&&!n)return;this.gos.get("preventDefaultOnContextMenu")&&(e||n).preventDefault();const{target:i}=e||t;(i===this.eBodyViewport||i===this.ctrlsSvc.get("center").eViewport)&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:n,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e,beans:{environment:t}}=this,n=e?.getPinnedTopTotalHeight(),i=e?.getPinnedBottomTotalHeight(),o=t.getPinnedRowBorderWidth(),r=t.getRowBorderWidth(),s=o-r,a=n?s+n:0,l=i?s+i:0;this.comp.setTopHeight(a),this.comp.setBottomHeight(l),this.comp.setTopInvisible(a<=0),this.comp.setBottomInvisible(l<=0),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(!e)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{const t=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}setStickyTopOffsetTop(){const t=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(this.filterManager?.getHeaderHeight()??0),n=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let i=0;t>0&&(i+=t),n>0&&(i+=n),i>0&&(i+=1),this.comp.setStickyTopTop(`${i}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:n}=this,i=e?.getPinnedBottomTotalHeight()??0,r=t.horizontalScrollShowing&&t.getScrollbarWidth()||0,s=i+r;n.setStickyBottomBottom(`${s}px`)}};function dn(e){return Hs(e)}var MN=class extends Ft{constructor(e,t,n,i,o){super(),this.cellCtrl=t,this.rowResizerElement=null,this.rendererVersion=0,this.editorVersion=0,this.beans=e,this.gos=e.gos,this.column=t.column,this.rowNode=t.rowNode,this.eRow=i;const r=dn({tag:"div",role:t.getCellAriaRole(),attrs:{"comp-id":`${this.getCompId()}`,"col-id":t.column.colIdSanitised}});this.eCell=r;let s;t.isCellSpanning()?(s=dn({tag:"div",cls:"ag-spanned-cell-wrapper",role:"presentation"}),s.appendChild(r),this.setTemplateFromElement(s)):this.setTemplateFromElement(r),this.cellCssManager=new z0(()=>r),this.forceWrapper=t.isForceWrapper(),this.refreshWrapper(!1);const a={toggleCss:(l,u)=>this.cellCssManager.toggleCss(l,u),setUserStyles:l=>vc(r,l),getFocusableElement:()=>r,setIncludeSelection:l=>this.includeSelection=l,setIncludeRowDrag:l=>this.includeRowDrag=l,setIncludeDndSource:l=>this.includeDndSource=l,setRowResizerElement:l=>this.setRowResizerElement(l),setRenderDetails:(l,u,h)=>this.setRenderDetails(l,u,h),setEditDetails:(l,u,h)=>this.setEditDetails(l,u,h),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue(),refreshEditStyles:(l,u)=>this.refreshEditStyles(l,u)};t.setComp(a,r,s,this.eCellWrapper,n,o,void 0)}getParentOfValue(){return this.eCellValue??this.eCellWrapper??this.eCell}setRowResizerElement(e){this.rowResizerElement&&ki(this.rowResizerElement),this.rowResizerElement=e,e&&this.eCell.appendChild(e)}setRenderDetails(e,t,n){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=this.firstRender==null;const o=this.refreshWrapper(!1);this.refreshEditStyles(!1),e?!(n||o)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)),this.rowDraggingComp?.refreshVisibility(),this.rowResizerElement&&!this.rowResizerElement.parentElement&&this.eCell.appendChild(this.rowResizerElement)}setEditDetails(e,t,n){e?this.createCellEditorInstance(e,t,n):this.destroyEditor()}removeControls(){const e=this.beans.context;this.checkboxSelectionComp=e.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=e.destroyBean(this.dndSourceComp),this.rowDraggingComp=e.destroyBean(this.rowDraggingComp)}refreshWrapper(e){const t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,i=n&&this.eCellWrapper==null;i&&(this.eCellWrapper=dn({tag:"div",cls:"ag-cell-wrapper",role:"presentation"}),this.eCell.appendChild(this.eCellWrapper));const o=!n&&this.eCellWrapper!=null;o&&(ki(this.eCellWrapper),this.eCellWrapper=void 0),this.cellCssManager.toggleCss("ag-cell-value",!n);const r=!e&&n,s=r&&this.eCellValue==null;if(s){const u=this.cellCtrl.getCellValueClass();this.eCellValue=dn({tag:"span",cls:u,role:"presentation"}),this.eCellWrapper.appendChild(this.eCellValue)}const a=!r&&this.eCellValue!=null;a&&(ki(this.eCellValue),this.eCellValue=void 0);const l=i||o||s||a;return l&&this.removeControls(),!e&&t&&this.addControls(),l}addControls(){const{cellCtrl:e,eCellWrapper:t,eCellValue:n,includeRowDrag:i,includeDndSource:o,includeSelection:r}=this,s=a=>{a&&t.insertBefore(a.getGui(),n)};i&&this.rowDraggingComp==null&&(this.rowDraggingComp=e.createRowDragComp(),s(this.rowDraggingComp)),o&&this.dndSourceComp==null&&(this.dndSourceComp=e.createDndSource(),s(this.dndSourceComp)),r&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=e.createSelectionCheckbox(),s(this.checkboxSelectionComp))}createCellEditorInstance(e,t,n){const i=this.editorVersion,o=e.newAgStackInstance(),{params:r}=e;o.then(a=>this.afterCellEditorCreated(i,a,r,t,n)),Vt(this.cellEditor)&&r.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(e){const t=this.getParentOfValue();Rn(t);const n=Ga(e);n!=null&&(t.textContent=n)}destroyRenderer(){const{context:e}=this.beans;this.cellRenderer=e.destroyBean(this.cellRenderer),ki(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){const{context:e}=this.beans;(this.cellEditorPopupWrapper?.getGui().contains(Lt(this.beans))||this.cellCtrl.hasBrowserFocus())&&this.eCell.focus({preventScroll:!0}),this.hideEditorPopup?.(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),ki(this.cellEditorGui),this.cellCtrl.disableEditorTooltipFeature(),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(e){if(this.cellRenderer?.refresh==null||this.cellRendererClass!==e.componentClass)return!1;const t=this.cellRenderer.refresh(e.params);return t===!0||t===void 0}createCellRendererInstance(e){const t=this.rendererVersion,n=r=>s=>{if(this.rendererVersion!==t||!this.isAlive())return;const l=r.newAgStackInstance(),u=this.afterCellRendererCreated.bind(this,t,r.componentClass);l?.then(u)},{animationFrameSvc:i}=this.beans;let o;if(i?.active&&this.firstRender?o=(r,s=!1)=>{i.createTask(n(r),this.rowNode.rowIndex,"p2",r.componentFromFramework,s)}:o=r=>n(r)(),e.params?.deferRender&&!this.cellCtrl.rowNode.group){const{loadingComp:r,onReady:s}=this.cellCtrl.getDeferLoadingCellRenderer();r&&(o(r),s.then(()=>o(e,!0)))}else o(e)}afterCellRendererCreated(e,t,n){if(!this.isAlive()||e!==this.rendererVersion){this.beans.context.destroyBean(n);return}this.cellRenderer=n,this.cellRendererClass=t;const o=n.getGui();if(this.cellRendererGui=o,o!=null){const r=this.getParentOfValue();Rn(r),r.appendChild(o)}}afterCellEditorCreated(e,t,n,i,o){const r=e!==this.editorVersion,{context:s}=this.beans;if(r){s.destroyBean(t);return}if(t.isCancelBeforeStart?.()){s.destroyBean(t),this.cellCtrl.stopEditing(!0);return}if(!t.getGui){le(97,{colId:this.column.getId()}),s.destroyBean(t);return}this.cellEditor=t,this.cellEditorGui=t.getGui();const l=i||t.isPopup?.();l?this.addPopupCellEditor(n,o):this.addInCellEditor(),this.refreshEditStyles(!0,l),t.afterGuiAttached?.(),this.cellCtrl.enableEditorTooltipFeature(t),this.cellCtrl.cellEditorAttached()}refreshEditStyles(e,t){const{cellCssManager:n}=this;n.toggleCss("ag-cell-inline-editing",e&&!t),n.toggleCss("ag-cell-popup-editing",e&&!!t),n.toggleCss("ag-cell-not-inline-editing",!e||!!t)}addInCellEditor(){const{eCell:e}=this;e.contains(Lt(this.beans))&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),Rn(this.getParentOfValue()),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(e,t){const{gos:n,context:i,popupSvc:o,editSvc:r}=this.beans;n.get("editType")==="fullRow"&&le(98);const s=this.cellEditorPopupWrapper=i.createBean(r.createPopupEditorWrapper(e)),{cellEditor:a,cellEditorGui:l,eCell:u,rowNode:h,column:f,cellCtrl:g}=this,m=s.getGui();l&&m.appendChild(l);const v=n.get("stopEditingWhenCellsLoseFocus"),w=t??a.getPopupPosition?.()??"over",b=n.get("enableRtl"),y={ePopup:m,additionalParams:{column:f,rowNode:h},type:"popupCellEditor",eventSource:u,position:w,alignSide:b?"right":"left",keepWithinBounds:!0},R=o.positionPopupByComponent.bind(o,y),S=o.addPopup({modal:v,eChild:m,closeOnEsc:!0,closedCallback:P=>{g.onPopupEditorClosed(P)},anchorToElement:u,positionCallback:R,ariaOwns:u});S&&(this.hideEditorPopup=S.hideFunc)}detach(){this.getGui().remove()}destroy(){this.destroyRenderer(),this.destroyEditor(),this.removeControls(),super.destroy()}},kN=class extends Ft{constructor(e,t,n){super(),this.cellComps=new Map,this.beans=t,this.rowCtrl=e;const i=dn({tag:"div",role:"row",attrs:{"comp-id":`${this.getCompId()}`}});this.setInitialStyle(i,n),this.setTemplateFromElement(i);const o=i.style;this.domOrder=this.rowCtrl.getDomOrder();const r={setDomOrder:s=>this.domOrder=s,setCellCtrls:s=>this.setCellCtrls(s),showFullWidth:s=>this.showFullWidth(s),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,getFullWidthCellRendererParams:()=>this.fullWidthCellRendererParams,toggleCss:(s,a)=>this.toggleCss(s,a),setUserStyles:s=>vc(i,s),setTop:s=>o.top=s,setTransform:s=>o.transform=s,setRowIndex:s=>i.setAttribute("row-index",s),setRowId:s=>i.setAttribute("row-id",s),setRowBusinessKey:s=>i.setAttribute("row-business-key",s),refreshFullWidth:s=>{const a=s();return this.fullWidthCellRendererParams=a,this.fullWidthCellRenderer?.refresh?.(a)??!1}};e.setComp(r,this.getGui(),n,void 0),this.addDestroyFunc(()=>{e.unsetComp(n)})}setInitialStyle(e,t){const n=this.rowCtrl.getInitialTransform(t);if(n)e.style.setProperty("transform",n);else{const i=this.rowCtrl.getInitialRowTop(t);i&&e.style.setProperty("top",i)}}showFullWidth(e){const t=i=>{if(this.isAlive()){const o=i.getGui();this.getGui().appendChild(o),this.rowCtrl.setupDetailRowAutoHeight(o),this.setFullWidthRowComp(i,e.params)}else this.beans.context.destroyBean(i)};e.newAgStackInstance().then(t)}setCellCtrls(e){const t=new Map(this.cellComps);for(const n of e){const i=n.instanceId;this.cellComps.has(i)?t.delete(i):this.newCellComp(n)}this.destroyCells(t),this.ensureDomOrder(e)}ensureDomOrder(e){if(!this.domOrder)return;const t=[];for(const n of e){const i=this.cellComps.get(n.instanceId);i&&t.push(i.getGui())}KS(this.getGui(),t)}newCellComp(e){const t=this.beans.editSvc?.isEditing(e,{withOpenEditor:!0})??!1,n=new MN(this.beans,e,this.rowCtrl.printLayout,this.getGui(),t);this.cellComps.set(e.instanceId,n),this.getGui().appendChild(n.getGui())}destroy(){super.destroy(),this.destroyCells(this.cellComps)}setFullWidthRowComp(e,t){this.fullWidthCellRenderer=e,this.fullWidthCellRendererParams=t,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer),this.fullWidthCellRendererParams=void 0})}destroyCells(e){for(const t of e.values()){if(!t)continue;const n=t.cellCtrl.instanceId;this.cellComps.get(n)===t&&(t.detach(),t.destroy(),this.cellComps.delete(n))}}};function LN(e,t,n){const i=!!n.gos.get("enableCellSpan")&&!!t.getSpannedRowCtrls,o={tag:"div",ref:"eContainer",cls:AR(e),role:"rowgroup"};if(t.type==="center"||i){const r={tag:"div",ref:"eSpannedContainer",cls:`ag-spanning-container ${CN(e)}`,role:"presentation"};return o.role="presentation",{tag:"div",ref:"eViewport",cls:`ag-viewport ${TR(e)}`,role:"rowgroup",children:[o,i?r:null]}}return o}var ON=class extends Ft{constructor(e){super(),this.eViewport=ge,this.eContainer=ge,this.eSpannedContainer=ge,this.rowCompsNoSpan={},this.rowCompsWithSpan={},this.name=e?.name,this.options=Lc(this.name)}postConstruct(){this.setTemplate(LN(this.name,this.options,this.beans));const e={setHorizontalScroll:n=>this.eViewport.scrollLeft=n,setViewportHeight:n=>this.eViewport.style.height=n,setRowCtrls:({rowCtrls:n})=>this.setRowCtrls(n),setSpannedRowCtrls:n=>this.setRowCtrls(n,!0),setDomOrder:n=>{this.domOrder=n},setContainerWidth:n=>{this.eContainer.style.width=n,this.eSpannedContainer&&(this.eSpannedContainer.style.width=n)},setOffsetTop:n=>{const i=`translateY(${n})`;this.eContainer.style.transform=i,this.eSpannedContainer&&(this.eSpannedContainer.style.transform=i)}};this.createManagedBean(new DN(this.name)).setComp(e,this.eContainer,this.eSpannedContainer,this.eViewport)}destroy(){this.setRowCtrls([]),this.setRowCtrls([],!0),super.destroy(),this.lastPlacedElement=null}setRowCtrls(e,t){const{beans:n,options:i}=this,o=t?this.eSpannedContainer:this.eContainer,r=t?{...this.rowCompsWithSpan}:{...this.rowCompsNoSpan},s={};t?this.rowCompsWithSpan=s:this.rowCompsNoSpan=s,this.lastPlacedElement=null;const a=[];for(const l of e){const u=l.instanceId,h=r[u];let f;if(h)f=h,delete r[u];else{if(!l.rowNode.displayed)continue;f=new kN(l,n,i.type)}s[u]=f,a.push([f,!h])}this.removeOldRows(Object.values(r)),this.addRowNodes(a,o)}addRowNodes(e,t){const{domOrder:n}=this;for(const[i,o]of e){const r=i.getGui();n?this.ensureDomOrder(r,t):o&&t.appendChild(r)}}removeOldRows(e){for(const t of e)t.getGui().remove(),t.destroy()}ensureDomOrder(e,t){jS(t,e,this.lastPlacedElement),this.lastPlacedElement=e}},_N={selector:"AG-ROW-CONTAINER",component:ON};function Oc(e,t){return t.map(n=>{const i=`e${n[0].toUpperCase()+n.substring(1)}RowContainer`;return e[i]={name:n},{tag:"ag-row-container",ref:i,attrs:{name:n}}})}function NN(e){const t={},n={tag:"div",ref:"eGridRoot",cls:"ag-root ag-unselectable",children:[{tag:"ag-header-root"},{tag:"div",ref:"eTop",cls:"ag-floating-top",role:"presentation",children:Oc(t,["topLeft","topCenter","topRight","topFullWidth"])},{tag:"div",ref:"eBody",cls:"ag-body",role:"presentation",children:[{tag:"div",ref:"eBodyViewport",cls:"ag-body-viewport",role:"presentation",children:Oc(t,["left","center","right","fullWidth"])},{tag:"ag-fake-vertical-scroll"}]},{tag:"div",ref:"eStickyTop",cls:"ag-sticky-top",role:"presentation",children:Oc(t,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])},{tag:"div",ref:"eStickyBottom",cls:"ag-sticky-bottom",role:"presentation",children:Oc(t,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])},{tag:"div",ref:"eBottom",cls:"ag-floating-bottom",role:"presentation",children:Oc(t,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])},{tag:"ag-fake-horizontal-scroll"},e?{tag:"ag-overlay-wrapper"}:null]};return{paramsMap:t,elementParams:n}}var BN=class extends Ft{constructor(){super(...arguments),this.eGridRoot=ge,this.eBodyViewport=ge,this.eStickyTop=ge,this.eStickyBottom=ge,this.eTop=ge,this.eBottom=ge,this.eBody=ge}postConstruct(){const{overlays:e,rangeSvc:t}=this.beans,n=e?.getOverlayWrapperSelector(),{paramsMap:i,elementParams:o}=NN(!!n);this.setTemplate(o,[...n?[n]:[],oN,aN,tN,_N],i);const r=(a,l)=>{const u=`${a}px`;l.style.minHeight=u,l.style.height=u},s={setRowAnimationCssOnBodyViewport:(a,l)=>this.setRowAnimationCssOnBodyViewport(a,l),setColumnCount:a=>RL(this.getGui(),a),setRowCount:a=>yL(this.getGui(),a),setTopHeight:a=>r(a,this.eTop),setBottomHeight:a=>r(a,this.eBottom),setTopInvisible:a=>this.eTop.classList.toggle("ag-invisible",a),setBottomInvisible:a=>this.eBottom.classList.toggle("ag-invisible",a),setStickyTopHeight:a=>this.eStickyTop.style.height=a,setStickyTopTop:a=>this.eStickyTop.style.top=a,setStickyTopWidth:a=>this.eStickyTop.style.width=a,setStickyBottomHeight:a=>{this.eStickyBottom.style.height=a,this.eStickyBottom.classList.toggle("ag-invisible",a==="0px")},setStickyBottomBottom:a=>this.eStickyBottom.style.bottom=a,setStickyBottomWidth:a=>this.eStickyBottom.style.width=a,setColumnMovingCss:(a,l)=>this.toggleCss(a,l),updateLayoutClasses:(a,l)=>{const u=[this.eBodyViewport.classList,this.eBody.classList];for(const h of u)h.toggle(ro.AUTO_HEIGHT,l.autoHeight),h.toggle(ro.NORMAL,l.normal),h.toggle(ro.PRINT,l.print);this.toggleCss(ro.AUTO_HEIGHT,l.autoHeight),this.toggleCss(ro.NORMAL,l.normal),this.toggleCss(ro.PRINT,l.print)},setAlwaysVerticalScrollClass:(a,l)=>this.eBodyViewport.classList.toggle(kR,l),registerBodyViewportResizeListener:a=>{const l=Hr(this.beans,this.eBodyViewport,a);this.addDestroyFunc(()=>l())},setPinnedTopBottomOverflowY:a=>this.eTop.style.overflowY=this.eBottom.style.overflowY=a,setCellSelectableCss:(a,l)=>{for(const u of[this.eTop,this.eBodyViewport,this.eBottom])u.classList.toggle(a,l)},setBodyViewportWidth:a=>this.eBodyViewport.style.width=a,setGridRootRole:a=>Br(this.eGridRoot,a)};this.ctrl=this.createManagedBean(new IN),this.ctrl.setComp(s,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(t&&rr(this.gos)||xc(this.gos))&&bL(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(e,t){const n=this.eBodyViewport.classList;n.toggle("ag-row-animation",t),n.toggle("ag-row-no-animation",!t)}getFocusableContainerName(){return"gridBody"}},HN={selector:"AG-GRID-BODY",component:BN},xm={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},GN=class extends $n{constructor(e,t){super(),this.stopPropagationCallbacks=t,this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:n,eTopGuard:i,eBottomGuard:o,focusTrapActive:r,forceFocusOutWhenTabGuardsAreEmpty:s,isFocusableContainer:a,focusInnerElement:l,onFocusIn:u,onFocusOut:h,shouldStopEventPropagation:f,onTabKeyDown:g,handleKeyDown:m,isEmpty:v,eFocusableElement:w}=e;this.comp=n,this.eTopGuard=i,this.eBottomGuard=o,this.providedFocusInnerElement=l,this.eFocusableElement=w,this.focusTrapActive=!!r,this.forceFocusOutWhenTabGuardsAreEmpty=!!s,this.isFocusableContainer=!!a,this.providedFocusIn=u,this.providedFocusOut=h,this.providedShouldStopEventPropagation=f,this.providedOnTabKeyDown=g,this.providedHandleKeyDown=m,this.providedIsEmpty=v}postConstruct(){this.createManagedBean(new Y0(this.eFocusableElement,this.stopPropagationCallbacks,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards();for(const e of[this.eTopGuard,this.eBottomGuard])this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)})}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&(this.providedIsEmpty?this.providedIsEmpty():$s(this.eFocusableElement,".ag-tab-guard").length===0)){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;!(this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t))&&this.forceFocusOutWhenTabGuardsAreEmpty&&this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}findNextElementOutsideAndFocus(e){const t=un(this.beans),n=$s(t.body,null,!0),i=n.indexOf(e?this.eTopGuard:this.eBottomGuard);if(i===-1)return;let o,r;e?(o=0,r=i):(o=i+1,r=n.length);const s=n.slice(o,r),a=this.gos.get("tabIndex");s.sort((l,u)=>{const h=Number.parseInt(l.getAttribute("tabindex")||"0"),f=Number.parseInt(u.getAttribute("tabindex")||"0");return f===a?1:h===a?-1:h===0?1:f===0?-1:h-f}),s[e?s.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const n=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),n&&(n.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=$s(this.eFocusableElement);return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(-1,1)),t.length?(t[e?t.length-1:0].focus({preventScroll:!0}),!0):!1}getNextFocusableElement(e){return Ks(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},VN=class extends $n{constructor(e,t){super(),this.comp=e,this.stopPropagationCallbacks=t}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:n,eFocusableElement:i,stopPropagationCallbacks:o}=this,r=[t,n],s={setTabIndex:y=>{for(const R of r)y==null?R.removeAttribute("tabindex"):R.setAttribute("tabindex",y)}};this.addTabGuards(t,n);const{focusTrapActive:a=!1,onFocusIn:l,onFocusOut:u,focusInnerElement:h,handleKeyDown:f,onTabKeyDown:g,shouldStopEventPropagation:m,isEmpty:v,forceFocusOutWhenTabGuardsAreEmpty:w,isFocusableContainer:b}=e;this.tabGuardCtrl=this.createManagedBean(new GN({comp:s,focusTrapActive:a,eTopGuard:t,eBottomGuard:n,eFocusableElement:i,onFocusIn:l,onFocusOut:u,focusInnerElement:h,handleKeyDown:f,onTabKeyDown:g,shouldStopEventPropagation:m,isEmpty:v,forceFocusOutWhenTabGuardsAreEmpty:w,isFocusableContainer:b},o))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=un(this.beans).createElement("div"),n=e==="top"?xm.TAB_GUARD_TOP:xm.TAB_GUARD_BOTTOM;return t.classList.add(xm.TAB_GUARD,n),Br(t,"presentation"),t}addTabGuards(e,t){const n=this.eFocusableElement;n.prepend(e),n.append(t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];Rn(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,n){Sp(t)||(t=t.getGui());const{eBottomGuard:i}=this;i?i.before(t):e(t,n)}destroy(){const{eTopGuard:e,eBottomGuard:t}=this;ki(e),ki(t),super.destroy()}},WN=class extends Xa{initialiseTabGuard(e,t){this.tabGuardFeature=this.createManagedBean(new VN(this,t)),this.tabGuardFeature.initialiseTabGuard(e)}forceFocusOutOfContainer(e=!1){this.tabGuardFeature.forceFocusOutOfContainer(e)}appendChild(e,t){this.tabGuardFeature.appendChild(super.appendChild.bind(this),e,t)}},LR=class extends WN{initialiseTabGuard(e){super.initialiseTabGuard(e,J0)}},OR=(e,t)=>fR(e,()=>js(e.getGui(),t,!1,!0)),_R=e=>e?.getFocusableContainerName()??"external",zN=e=>e==null?"external":typeof e=="string"?e:"gridBody",UN=class extends X{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,n){this.view=e,this.eGridHostDiv=t,this.eGui=n,this.eGui.setAttribute("grid-id",this.beans.context.getId());const{dragAndDrop:i,ctrlsSvc:o}=this.beans;i?.registerGridDropTarget(()=>this.eGui,this),this.createManagedBean(new mm(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const r=Hr(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>r()),o.register("gridCtrl",this)}isDetailGrid(){return Q0(this.getGui())?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){const e=this.beans;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:e.registry?.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:e.registry?.getSelector("AG-STATUS-BAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){const{view:t}=this;e===!1?t.setCursor(null):t.setCursor(e===1?"ew-resize":"ns-resize")}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:n,nextIndex:i}=this.getNextFocusableIndex(t,e),o=n===-1?e?t.length-1:0:i,{gos:r,beans:{focusSvc:s,navigation:a}}=this,l=r.getCallback("tabToNextGridContainer");if(l){const u=s.getDefaultTabToNextGridContainerTarget({backwards:e,focusableContainers:t,nextIndex:o}),h=_R(t[o]),f=u==null&&h==="gridBody"?"gridBody":zN(u),g=l({backwards:e,previousContainer:_R(t[n]),nextContainer:f,defaultTarget:u});if(g!==void 0){if(typeof g=="boolean")return g;if(typeof g=="string"){if(g==="gridBody")return this.focusGridBodyDefault(e)||void 0;const m=t.find(v=>v.getFocusableContainerName()===g);if(!m){i0(`tabToNextGridContainer - ${g} container not found`);return}return OR(m,e)?!0:void 0}return k2(g)?s.focusHeaderPosition({headerPosition:g})||void 0:(a?.ensureCellVisible(g),s.setFocusedCell({...g,forceBrowserFocus:!0}),s.isCellFocused(g)||void 0)}}return this.focusNextInnerContainerDefault({backwards:e,focusableContainers:t,indexWithFocus:n,nextIndex:o})||void 0}focusInnerElement(e){const{gos:t,beans:n,beans:{focusSvc:i,visibleCols:o}}=this;if(t.getCallback("focusGridInnerElement")?.({fromBottom:!!e}))return!0;const s=this.getFocusableContainers();if(e)return this.focusNextInnerContainerDefault({backwards:!0,focusableContainers:s,indexWithFocus:s.length,nextIndex:s.length-1})?!0:i.focusGridView({column:Tt(o.allCols),backwards:!0});const a=o.allCols;if(t.get("headerHeight")===0||oo(n)){if(i.focusGridView({column:a[0],backwards:e}))return!0;for(let l=1;l<s.length;l++)if(js(s[l].getGui(),e))return!0;return!1}return i.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}isFocusInsideGridBody(){const e=this.getFocusableContainers(),{indexWithFocus:t}=this.getNextFocusableIndex(e);return e[t]?.getFocusableContainerName()==="gridBody"}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{indexWithFocus:n,nextIndex:i}=this.getNextFocusableIndex(t,e);this.focusNextInnerContainerDefault({backwards:!!e,focusableContainers:t,indexWithFocus:n,nextIndex:i})||this.forceFocusOutOfContainer(e)}isFocusable(){const e=this.beans;return!Ic(e)||!oo(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const n=Lt(this.beans),i=e.findIndex(o=>o.getGui().contains(n));return{indexWithFocus:i,nextIndex:i+(t?-1:1)}}focusGridBodyDefault(e){const{gos:t,beans:n,beans:{focusSvc:i,visibleCols:{allCols:o}}}=this;return e?i.focusGridView({column:Tt(o),backwards:!0}):t.get("headerHeight")===0||oo(n)?i.focusGridView({column:o[0]}):i.focusFirstHeader()}focusNextInnerContainerDefault(e){const{backwards:t,focusableContainers:n,indexWithFocus:i}=e,o=t?-1:1;for(let r=e.nextIndex;r>=0&&r<n.length;r+=o){const s=n[r];if(s.getFocusableContainerName()==="gridBody"&&(i===-1||(t?i>r:i<r))){if(this.focusGridBodyDefault(t))return!0;continue}if(OR(s,t))return!0}return!1}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},$N=class extends LR{constructor(e){super(),this.gridBody=ge,this.gridHeaderDropZones=ge,this.sideBar=ge,this.statusBar=ge,this.pagination=ge,this.rootWrapperBody=ge,this.eGridDiv=e}postConstruct(){const e={destroyGridUi:()=>this.destroyBean(this),setRtlClass:r=>this.addCss(r),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:r=>{this.getGui().style.userSelect=r??"",this.getGui().style.webkitUserSelect=r??""},setCursor:r=>{this.getGui().style.cursor=r??""}},t=this.createManagedBean(new UN),n=t.getOptionalSelectors(),i=this.createTemplate(n),o=[HN,...Object.values(n).filter(r=>!!r)];this.setTemplate(i,o),t.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:r=>t.focusInnerElement(r),forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:()=>!t.isFocusable()})}insertGridIntoDom(){const e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc(()=>{e.remove(),Vr(this.gos,"Grid removed from DOM")})}updateLayoutClasses(e,t){const n=this.rootWrapperBody.classList,{AUTO_HEIGHT:i,NORMAL:o,PRINT:r}=ro,{autoHeight:s,normal:a,print:l}=t;n.toggle(i,s),n.toggle(o,a),n.toggle(r,l),this.toggleCss(i,s),this.toggleCss(o,a),this.toggleCss(r,l)}createTemplate(e){const t=e.gridHeaderDropZonesSelector?{tag:"ag-grid-header-drop-zones",ref:"gridHeaderDropZones"}:null,n=e.sideBarSelector?{tag:"ag-side-bar",ref:"sideBar"}:null,i=e.statusBarSelector?{tag:"ag-status-bar",ref:"statusBar"}:null,o=e.watermarkSelector?{tag:"ag-watermark"}:null,r=e.paginationSelector?{tag:"ag-pagination",ref:"pagination"}:null;return{tag:"div",cls:"ag-root-wrapper",role:"presentation",children:[t,{tag:"div",ref:"rootWrapperBody",cls:"ag-root-wrapper-body",role:"presentation",children:[{tag:"ag-grid-body",ref:"gridBody"},n]},i,r,o]}}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(e=!1){if(!e&&this.pagination?.isDisplayed()){this.pagination.forceFocusOutOfContainer(e);return}super.forceFocusOutOfContainer(e)}getFocusableContainers(){const e=[...this.gridHeaderDropZones?.getFocusableContainers?.()??[],this.gridBody];for(const t of[this.sideBar,this.statusBar,this.pagination])t&&e.push(t);return e.filter(t=>Li(t.getGui()))}},qe=(e,t)=>{for(const n of Object.keys(t))t[n]=e;return t},NR={dispatchEvent:"CommunityCore",...qe("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...qe("GridState",{getState:0,setState:0}),...qe("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...qe("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...qe("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...qe("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...qe("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...qe("ValueCache",{expireValueCache:0}),...qe("CellApi",{getCellValue:0}),...qe("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...qe("Sort",{onSortChanged:0}),...qe("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...qe("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...qe("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...qe("HighlightChanges",{flashCells:0}),...qe("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...qe("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0}),...qe("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...qe("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...qe("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...qe("ColumnResize",{setColumnWidths:0}),...qe("ColumnHover",{isColumnHovered:0}),...qe("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...qe("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...qe("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...qe("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...qe("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...qe("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...qe("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...qe("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...qe("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,resetRowGroupExpansion:0}),...qe("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...qe("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0,onRowHeightChanged:0,resetRowHeights:0}),...qe("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...qe("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...qe("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...qe("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...qe("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...qe("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...qe("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...qe("ContextMenu",{showContextMenu:0}),...qe("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...qe("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...qe("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...qe("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...qe("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...qe("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...qe("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...qe("StatusBar",{getStatusPanel:0}),...qe("AiToolkit",{getStructuredSchema:0})},Fm={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},jN=(e,t)=>e.eventSvc.dispatchEvent(t),BR=class{};Reflect.defineProperty(BR,"name",{value:"GridApi"});var KN=class extends X{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new BR,this.fns={...Fm,dispatchEvent:jN},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(NR))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:n,beans:i}=this;n!==Fm&&(n[e]=i?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:n,fns:{[e]:i}}=this;return i?i(n,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:n,preDestroyLink:i}=this;if(!t)le(26,{fnName:e,preDestroyLink:i});else{const o=NR[e];n.assertModuleRegistered(o,`api.${e}`)&&le(27,{fnName:e,module:o})}}destroy(){super.destroy(),this.fns=Fm,this.beans=null}};function qN(e){return e.context.getId()}function QN(e){e.gridDestroySvc.destroy()}function YN(e){return e.gridDestroySvc.destroyCalled}function ZN(e,t){return e.gos.get(t)}function JN(e,t,n){HR(e,{[t]:n})}function HR(e,t){e.gos.updateGridOptions({options:t})}function XN(e,t){const n=t.replace(/Module$/,"");return e.gos.isModuleRegistered(n)}function eB(e,t,n){const i=si(e,t,n);if(i){const{className:r}=i;if(typeof r=="string"&&r.includes("ag-icon")||typeof r=="object"&&r["ag-icon"])return i}const o=dn({tag:"span"});return o.appendChild(i),o}function si(e,t,n){let i=null;e==="smallDown"?le(262):e==="smallLeft"?le(263):e==="smallRight"&&le(264);const o=n?.getColDef().icons;if(o&&(i=o[e]),t.gos&&!i){const r=t.gos.get("icons");r&&(i=r[e])}if(i){let r;if(typeof i=="function")r=i();else if(typeof i=="string")r=i;else{le(38,{iconName:e});return}if(typeof r=="string")return bp(r);if(Sp(r))return r;le(133,{iconName:e});return}else{const r=t.registry.getIcon(e);return r||t.validation?.validateIcon(e),dn({tag:"span",cls:`ag-icon ag-icon-${r??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var tB={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}},nB=class extends Ft{constructor(e,t,n){super(tB),this.rowNode=e,this.column=t,this.eCell=n}postConstruct(){this.getGui().appendChild(si("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",t=>{t.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const{rowNode:t,column:n,eCell:i,gos:o}=this,r=n.getColDef().dndSourceOnRowDrag,s=e.dataTransfer;if(s.setDragImage(i,0,0),r){const a=Ue(o,{rowNode:t,dragEvent:e});r(a)}else try{const a=JSON.stringify(t.data);s.setData("application/json",a),s.setData("text/plain",a)}catch{}}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}},iB=".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}.ag-dnd-ghost-not-allowed{border:var(--ag-drag-and-drop-image-not-allowed-border)}",oB={tag:"div",children:[{tag:"div",ref:"eGhost",cls:"ag-dnd-ghost ag-unselectable",children:[{tag:"span",ref:"eIcon",cls:"ag-dnd-ghost-icon ag-shake-left-to-right"},{tag:"div",ref:"eLabel",cls:"ag-dnd-ghost-label"}]}]},rB=class extends Ft{constructor(){super(),this.dragSource=null,this.eIcon=ge,this.eLabel=ge,this.eGhost=ge,this.registerCSS(iB)}postConstruct(){const e=t=>eB(t,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(oB),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eGhost:n,eIcon:i,dragSource:o,dropIconMap:r,gos:s}=this;Rn(i);let a=null;e||(e=o?.getDefaultIconName?o.getDefaultIconName():"notAllowed"),a=r[e],n.classList.toggle("ag-dnd-ghost-not-allowed",e==="notAllowed"),i.classList.toggle("ag-shake-left-to-right",t),!(a===r.hide&&s.get("suppressDragLeaveHidesColumns"))&&a&&i.appendChild(a)}setLabel(e){this.eLabel.textContent=e}};function sB(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)}function aB(e,t){const n=e.dragAndDrop?.findExternalZone(t.getContainer());n&&e.dragAndDrop?.removeDropTarget(n)}function lB(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)}function cB(e){const t=e.rowDropHighlightSvc;return t?{row:t.row,dropIndicatorPosition:t.position}:{row:null,dropIndicatorPosition:"none"}}function uB(e,t){const n=e.rowDropHighlightSvc;if(!n)return;const i=t?.row;let o=t?.dropIndicatorPosition;o!=="above"&&o!=="below"&&o!=="inside"&&(o="none");const r=i?.rowIndex;r==null||o==="none"?n.clear():n.set(i,o)}var GR=(e,t)=>{if(t!=null&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},dB=(e,t)=>{if(typeof PointerEvent>"u"||!(t instanceof PointerEvent))return null;const n=t.pointerId;if(!GR(e,n))return null;const i={eElement:e,pointerId:n,onLost(o){fB(i,o)}};return e.addEventListener("lostpointercapture",i.onLost),i},hB=e=>{if(!e)return;VR(e);const{eElement:t,pointerId:n}=e;if(t){try{t.releasePointerCapture(n)}catch{}e.eElement=null}},VR=e=>{const{eElement:t,onLost:n}=e;t&&n&&(t.removeEventListener("lostpointercapture",n),e.onLost=null)},fB=(e,t)=>{VR(e);const{eElement:n,pointerId:i}=e;n&&t.pointerId===i&&GR(n,i)},il,ol,Pm={passive:!0},Yr={passive:!1},Io=e=>{if(!ol)ol=new WeakSet;else if(ol.has(e))return!1;return ol.add(e),!0},gB=class extends $n{constructor(){super(...arguments),this.beanName="dragSvc",this.dragging=!1,this.drag=null,this.dragSources=[]}get startTarget(){return this.drag?.start.target??null}isPointer(){return!!il?.has(Po(this.beans))}hasPointerCapture(){const e=this.drag?.pointerCapture;return!!(e&&this.beans.eRootDiv.hasPointerCapture?.(e.pointerId))}destroy(){this.drag&&this.cancelDrag();const e=this.dragSources;for(const t of e)WR(t);e.length=0,super.destroy()}removeDragSource(e){const t=this.dragSources;for(let n=0,i=t.length;n<i;++n){const o=t[n];if(o.params===e){t.splice(n,1),WR(o);break}}}addDragSource(e){if(!this.isAlive())return;const{eElement:t,includeTouch:n}=e,i=[];let o;if(n){const u=t.style;u&&(o=u.touchAction,u.touchAction="none")}const r={handlers:i,params:e,oldTouchAction:o};this.dragSources.push(r),kd(i,[t,"pointerdown",u=>this.onPointerDown(e,u),Yr],[t,"mousedown",u=>this.onMouseDown(e,u)]);const l=this.gos.get("suppressTouch");n&&!l&&kd(i,[t,"touchstart",h=>this.onTouchStart(e,h),Yr])}cancelDrag(e){const t=this.drag;e??(e=t?.eElement),e&&this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),t?.params.onDragCancel?.(),this.destroyDrag()}shouldPreventMouseEvent(e){const t=e.type;return(t==="mousemove"||t==="pointermove")&&e.cancelable&&bc(this.beans,e)&&!gc(Dm(e))}initDrag(e,...t){this.drag=e;const n=this.beans,i=a=>this.onScroll(a),o=a=>this.onKeyDown(a),r=Po(n),s=un(n);kd(e.handlers,[r,"contextmenu",Gr],[r,"keydown",o],[s,"scroll",i,{capture:!0}],[s.defaultView||window,"scroll",i],...t)}destroyDrag(){this.dragging=!1;const e=this.drag;if(e){const t=e.rootEl;il?.get(t)===e&&il.delete(t),this.drag=null,hB(e.pointerCapture),Fp(e.handlers)}}onPointerDown(e,t){if(this.isPointer())return;const n=this.beans;if(ol?.has(t))return;const i=t.pointerType;if(i==="touch"&&(n.gos.get("suppressTouch")||!e.includeTouch||(e.stopPropagationForTouch&&t.stopPropagation(),gc(Dm(t))))||!t.isPrimary||i==="mouse"&&t.button!==0)return;this.destroyDrag();const o=Po(n),r=e.eElement,s=t.pointerId,a=new Em(o,e,t,s);il??(il=new WeakMap),il.set(o,a);const l=g=>{g.pointerId===s&&this.onMouseOrPointerMove(g)},u=g=>{g.pointerId===s&&this.onMouseOrPointerUp(g)},h=g=>{g.pointerId===s&&Io(g)&&this.cancelDrag()},f=g=>this.draggingPreventDefault(g);this.initDrag(a,[o,"pointerup",u],[o,"pointercancel",h],[o,"pointermove",l,Yr],[o,"touchmove",f,Yr],[r,"mousemove",f,Yr]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):Io(t)}onTouchStart(e,t){if(this.gos.get("suppressTouch")||!e.includeTouch||!Io(t)||gc(Dm(t)))return;if(e.stopPropagationForTouch&&t.stopPropagation(),this.isPointer()){this.dragging&&Gr(t);return}this.destroyDrag();const i=this.beans,o=Po(i),r=new Em(o,e,t.touches[0]),s=g=>this.onTouchMove(g),a=g=>this.onTouchUp(g),l=g=>this.onTouchCancel(g),u=g=>this.draggingPreventDefault(g),h=Po(i),f=t.target??e.eElement;this.initDrag(r,[f,"touchmove",s,Pm],[f,"touchend",a,Pm],[f,"touchcancel",l,Pm],[h,"touchmove",u,Yr],[h,"touchend",a,Yr],[h,"touchcancel",l,Yr]),e.dragStartPixels===0&&this.onMove(r.start)}draggingPreventDefault(e){this.dragging&&Gr(e)}onMouseDown(e,t){if(t.button!==0||ol?.has(t)||this.isPointer())return;const n=this.beans;this.destroyDrag();const i=new Em(Po(n),e,t),o=a=>this.onMouseOrPointerMove(a),r=a=>this.onMouseOrPointerUp(a),s=Po(n);this.initDrag(i,[s,"mousemove",o],[s,"mouseup",r]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):Io(t)}onScroll(e){if(!Io(e))return;const t=this.drag,n=t?.lastDrag;n&&this.dragging&&t.params?.onDragging?.(n)}onMouseOrPointerMove(e){Io(e)&&(Kr()&&un(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&Gr(e),this.onMove(e))}onTouchCancel(e){const t=this.drag;!t||!Io(e)||Wa(t.start,e.changedTouches)&&this.cancelDrag()}onTouchMove(e){const t=this.drag;if(!t||!Io(e))return;const n=Wa(t.start,e.touches);n&&(this.onMove(n),this.draggingPreventDefault(e))}onMove(e){const t=this.drag;if(!t)return;t.lastDrag=e;const n=t.params;if(!this.dragging){const i=t.start,r=n.dragStartPixels??4;if(ZS(e,i,r)||(this.dragging=!0,n.capturePointer&&(t.pointerCapture=dB(this.beans.eRootDiv,e)),this.eventSvc.dispatchEvent({type:"dragStarted",target:n.eElement}),n.onDragStart?.(i),this.drag!==t)||(n.onDragging?.(i),this.drag!==t))return}n.onDragging?.(e)}onTouchUp(e){const t=this.drag;t&&Io(e)&&this.onUp(Wa(t.start,e.changedTouches))}onMouseOrPointerUp(e){Io(e)&&this.onUp(e)}onUp(e){const t=this.drag;t&&(e||(e=t.lastDrag),e&&this.dragging&&(this.dragging=!1,t.params.onDragStop?.(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t.params.eElement})),this.destroyDrag())}onKeyDown(e){e.key===K.ESCAPE&&this.cancelDrag()}},WR=e=>{Fp(e.handlers);const t=e.oldTouchAction;if(t!=null){const n=e.params.eElement.style;n&&(n.touchAction=t)}},Em=class{constructor(e,t,n,i=null){this.rootEl=e,this.params=t,this.start=n,this.pointerId=i,this.handlers=[],this.lastDrag=null,this.pointerCapture=null,this.eElement=t.eElement}},Dm=e=>{const t=e.target;return t instanceof Element?t:null},pB=class extends gB{shouldPreventMouseEvent(e){return this.gos.get("enableCellTextSelection")&&super.shouldPreventMouseEvent(e)}},mB=class extends X{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(e){const t={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),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:n}=this.beans;return n.addDragSource(t),()=>n.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const n=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(n)}setResizeIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(1),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}},vB={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},uh={skipAriaHidden:!0},CB=class extends Ft{constructor(e,t,n,i,o,r=!1){super(),this.cellValueFn=e,this.rowNode=t,this.column=n,this.customGui=i,this.dragStartPixels=o,this.alwaysVisible=r,this.dragSource=null,this.disabled=!1}isCustomGui(){return this.customGui!=null}postConstruct(){const{beans:e,customGui:t}=this;t?this.setDragElement(t,this.dragStartPixels):(this.setTemplate(vB),this.getGui().appendChild(si("rowDrag",e,null)),this.addDragSource()),this.alwaysVisible||this.initCellDrag()}initCellDrag(){const{beans:e,rowNode:t}=this,n=this.refreshVisibility.bind(this);this.addManagedListeners(e.eventSvc,{rowDragVisibilityChanged:n}),this.addManagedListeners(t,{dataChanged:n,cellChanged:n}),this.refreshVisibility()}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}refreshVisibility(){if(this.alwaysVisible)return;const{beans:e,column:t,rowNode:n}=this,{gos:i,dragAndDrop:o,rowDragSvc:r}=e,s=r?.visibility;let l=!(s==="suppress"||s==="hidden"&&!o?.hasExternalDropZones()),u=l;if(l&&!this.isCustomGui()&&t){const h=t.getColDef().rowDrag;if(h===!1)l=!1;else{const f=typeof h=="function";u=t.isRowDrag(n),l=f||u}}l&&u&&n.footer&&i.get("rowDragManaged")&&(u=!1,l=!0),u&&(u=l),l||this.setDisplayed(l,uh),u||this.setVisible(u,uh),this.setDisabled(!u||s==="disabled"&&!o?.hasExternalDropZones()),l&&this.setDisplayed(l,uh),u&&this.setVisible(u,uh)}setDisabled(e){e!==this.disabled&&(this.disabled=e,this.getGui()?.classList?.toggle("ag-drag-handle-disabled",e))}getSelectedNodes(){const e=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[e];const n=this.beans.selectionSvc?.getSelectedNodes()??[];return n.indexOf(e)!==-1?n:[e]}getDragItem(){const{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}addDragSource(e=4){if(this.dragSource&&this.removeDragSource(),this.gos.get("rowDragManaged")&&this.rowNode.footer)return;const t=this.getGui();if(this.gos.get("enableCellTextSelection")){this.removeMouseDownListener();const i=Md("pointerdown")?{pointerdown:Gr}:{mousedown:Gr};this.mouseDownListener=this.addManagedElementListeners(t,i)[0]}const n=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:i=>this.getDragItemName(i,n),getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}getDragItemName(e,t){const n=e?.dragItem||this.getDragItem(),i=(e?.dropTarget?.rows.length??n.rowNodes?.length)||1,o=this.column?.getColDef()?.rowDragText??this.gos.get("rowDragText");if(o)return o(n,i);if(i!==1)return`${i} ${t("rowDragRows","rows")}`;const r=this.cellValueFn();return r||`1 ${t("rowDragRow","rows")}`}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},wB=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.includes("x"),this.scrollVertically=e.scrollAxis.includes("y"),this.scrollByTick=e.scrollByTick??20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}get scrolling(){return this.tickingInterval!==null}check(e,t=!1){const n=!this.scrollVertically||t||this.shouldSkipVerticalScroll(),i=!this.scrollHorizontally||this.shouldSkipHorizontalScroll();if(n&&i)return;const o=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=!i&&e.clientX<o.left+r,this.tickRight=!i&&e.clientX>o.right-r,this.tickUp=!n&&e.clientY<o.top+r,this.tickDown=!n&&e.clientY>o.bottom-r,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}},dh=class{constructor(){this.reordered=!1,this.removals=[],this.updates=new Set,this.adds=new Set}},hh=e=>{let t=e.childrenAfterGroup;for(;t?.length;){const n=t[0];if(n.sourceRowIndex>=0)return n;t=n.childrenAfterGroup}},bB=(e,t,n,i)=>{if(!t.size||!e)return!1;let o=!1;const r=e.length??0;let s=-1;n&&(s=n.sourceRowIndex,n=s<0?hh(n):null,n&&(s=n.sourceRowIndex)),s<0||s>=r?s=r:i||++s;let a=s,l=Math.min(s,r-1);for(const f of t){const g=f.sourceRowIndex;g<a&&(a=g),g>l&&(l=g)}let u=a;for(let f=a;f<s;++f){const g=e[f];t.has(g)||(g.sourceRowIndex!==u&&(g.sourceRowIndex=u,e[u]=g,o=!0),++u)}let h=l;for(let f=l;f>=s;--f){const g=e[f];t.has(g)||(g.sourceRowIndex!==h&&(g.sourceRowIndex=h,e[h]=g,o=!0),--h)}for(const f of t)f.sourceRowIndex!==u&&(f.sourceRowIndex=u,e[u]=f,o=!0),++u;return o};function yB(e,t){return wm(e,t.target)?.getFocusedCellPosition()??null}function zR(e,t){const n=xn(e.gos,"normal"),i=t;let o,r;i.clientX!=null||i.clientY!=null?(o=i.clientX,r=i.clientY):(o=i.x,r=i.y);const{pageFirstPixel:s}=e.pageBounds.getCurrentPagePixelRange();if(r+=s,n){const a=e.ctrlsSvc.getScrollFeature(),l=a.getVScrollPosition(),u=a.getHScrollPosition();o+=u.left,r+=l.top}return{x:o,y:r}}var SB=.25,RB=class extends X{constructor(e){super(),this.eContainer=e,this.lastDraggingEvent=null,this.autoScroll=null,this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,t=>{const n=()=>t.gridBodyCtrl.scrollFeature.getVScrollPosition().top,i=new wB({scrollContainer:t.gridBodyCtrl.eBodyViewport,scrollAxis:"y",getVerticalPosition:n,setVerticalPosition:o=>t.gridBodyCtrl.scrollFeature.setVerticalScrollPosition(o),onScrollCallback:()=>{const o=n();if(this.autoScrollOldV!==o){this.autoScrollOldV=o,this.autoScrollChanging=!0;return}const r=this.autoScrollChanging;this.autoScrollChanged=r,this.autoScrollChanging=!1,r&&(e.dragAndDrop?.nudge(),this.autoScrollChanged=!1)}});this.autoScroll=i,this.clearAutoScroll()})}destroy(){super.destroy(),this.clearAutoScroll(),this.autoScroll=null,this.lastDraggingEvent=null,this.eContainer=null}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(e){return e?.dropTarget?.allowed===!1||this.beans.rowDragSvc.visibility!=="visible"?"notAllowed":"move"}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const n=this.beans.selectionSvc?.getSelectedNodes();if(n&&n.indexOf(t)>=0)return n.slice().sort(xB)}return[t]}onDragEnter(e){this.dragging(e,!0)}onDragging(e){this.dragging(e,!1)}dragging(e,t){const{lastDraggingEvent:n,beans:i}=this;if(t){const a=this.getRowNodes(e);e.dragItem.rowNodes=a,$R(a,!0)}this.lastDraggingEvent=e;const o=e.fromNudge,r=this.makeRowsDrop(n,e,o,!1);i.rowDropHighlightSvc?.fromDrag(e),t&&this.dispatchGridEvent("rowDragEnter",e),this.dispatchGridEvent("rowDragMove",e);const s=this.autoScroll;r?.rowDragManaged&&r.moved&&r.allowed&&r.sameGrid&&!r.suppressMoveWhenRowDragging&&(!o&&!s?.scrolling||this.autoScrollChanged)&&this.dropRows(r),s?.check(e.event)}isFromThisGrid(e){return e.dragSource.dragSourceDomDataKey===this.gos.getDomDataKey()}makeRowsDrop(e,t,n,i){const{beans:o,gos:r}=this,s=this.newRowsDrop(t,i),a=o.rowModel;if(t.dropTarget=s,t.changed=!1,!s)return null;let{sameGrid:l,rootNode:u,source:h,target:f}=s;f??(f=a.getRow(a.getRowCount()-1)??null);const g=this.beans.groupEditSvc,m=!!g?.canSetParent(s);let v=null;if(f?.footer){const b=nm(a,-1,f)??nm(a,1,f);m&&(v=f.sibling??u),f=b??null}f?.detail&&(f=f.parent),s.moved&&(s.moved=h!==f);let w=.5;if(f&&(l&&s.moved&&(v||!m)?w=h.rowIndex>f.rowIndex?-.5:.5:w=(s.y-f.rowTop-f.rowHeight/2)/f.rowHeight||0),!m&&l&&f&&s.moved&&en(r)){const b=FB(a,s);b&&(w=h.rowIndex>b.rowIndex?-.5:.5,f=b,s.moved&&(s.moved=h!==f))}return s.target=f,s.newParent=v,s.pointerPos=PB(f,s.y),s.yDelta=w,g?.fixRowsDrop(s,m,n,w),this.validateRowsDrop(s,m,i),t.changed||(t.changed=UR(e?.dropTarget,s)),s}newRowsDrop(e,t){const{beans:n,gos:i}=this,o=n.rowModel.rootNode,r=en(i)?i.get("rowDragManaged"):!1,s=i.get("suppressMoveWhenRowDragging"),a=this.isFromThisGrid(e);let{rowNode:l,rowNodes:u}=e.dragItem;if(u||(u=l?[l]:[]),l||(l=u[0]),!l||!o)return null;const h=this.beans.dragAndDrop.isDropZoneWithinThisGrid(e);let f=!0;r&&(!u.length||n.rowDragSvc.visibility!=="visible"||(s||!a)&&!h)&&(f=!1);const g=zR(n,e).y,m=this.getOverNode(g);return{api:n.gridApi,context:n.gridOptions.context,draggingEvent:e,rowDragManaged:r,suppressMoveWhenRowDragging:s,sameGrid:a,withinGrid:h,treeData:!1,rootNode:o,moved:l!==m,y:g,overNode:m,overIndex:m?.rowIndex??-1,pointerPos:"none",position:"none",source:l,target:m??null,newParent:null,rows:u,allowed:f,highlight:!t&&r&&s&&(h||!a),yDelta:0,inside:!1,droppedManaged:!1}}validateRowsDrop(e,t,n){const{source:i,target:o,yDelta:r,inside:s,moved:a,rowDragManaged:l,suppressMoveWhenRowDragging:u}=e;e.moved&&(e.moved=i!==o);const{position:h,fallbackPosition:f}=this.computeDropPosition(a,s,r);e.position=h,t||(e.newParent=null),this.enforceSuppressMoveWhenRowDragging(e,u,"initial");const g=(!l||e.allowed)&&this.gos.get("isRowValidDropPosition");g&&this.applyDropValidator(e,t,n,l,g),l&&(e.rows=this.filterRows(e)),this.beans.groupEditSvc?.clearNewSameParent(e,t),this.enforceSuppressMoveWhenRowDragging(e,u,"final"),e.position==="inside"&&(!e.allowed||!e.newParent)&&(e.position=f)}computeDropPosition(e,t,n){const i=n<0?"above":"below";return e?{position:t?"inside":i,fallbackPosition:i}:{position:"none",fallbackPosition:i}}enforceSuppressMoveWhenRowDragging(e,t,n){if(t){if(n==="initial"){e.moved||(e.allowed=!1);return}(!e.rows.length||e.position==="none")&&(e.allowed=!1)}}applyDropValidator(e,t,n,i,o){this.beans.groupEditSvc?.clearNewSameParent(e,t);const r=o(e);if(!r){e.allowed=!1;return}if(typeof r!="object")return;r.rows!==void 0&&(e.rows=r.rows??[]),t&&r.newParent!==void 0&&(e.newParent=r.newParent),r.target!==void 0&&(e.target=r.target),r.position&&(e.position=r.position),r.allowed!==void 0?e.allowed=r.allowed:i||(e.allowed=!0);const s=e.draggingEvent;r.changed&&s&&(s.changed=!0),!n&&r.highlight!==void 0&&(e.highlight=r.highlight)}addRowDropZone(e){if(!e.getContainer()){le(55);return}const t=this.beans.dragAndDrop;if(t.findExternalZone(e.getContainer())){le(56);return}const n=e.fromGrid?e:{getContainer:e.getContainer,onDragEnter:e.onDragEnter&&(o=>e.onDragEnter(this.rowDragEvent("rowDragEnter",o))),onDragLeave:e.onDragLeave&&(o=>e.onDragLeave(this.rowDragEvent("rowDragLeave",o))),onDragging:e.onDragging&&(o=>e.onDragging(this.rowDragEvent("rowDragMove",o))),onDragStop:e.onDragStop&&(o=>e.onDragStop(this.rowDragEvent("rowDragEnd",o))),onDragCancel:e.onDragCancel&&(o=>e.onDragCancel(this.rowDragEvent("rowDragCancel",o)))},i={isInterestedIn:o=>o===2,getIconName:()=>"move",external:!0,...n};t.addDropTarget(i),this.addDestroyFunc(()=>t.removeDropTarget(i))}getRowDropZone(e){return{getContainer:this.getContainer.bind(this),onDragEnter:n=>{this.onDragEnter(n),e?.onDragEnter?.(this.rowDragEvent("rowDragEnter",n))},onDragLeave:n=>{this.onDragLeave(n),e?.onDragLeave?.(this.rowDragEvent("rowDragLeave",n))},onDragging:n=>{this.onDragging(n),e?.onDragging?.(this.rowDragEvent("rowDragMove",n))},onDragStop:n=>{this.onDragStop(n),e?.onDragStop?.(this.rowDragEvent("rowDragEnd",n))},onDragCancel:n=>{this.onDragCancel(n),e?.onDragCancel?.(this.rowDragEvent("rowDragCancel",n))},fromGrid:!0}}getOverNode(e){const{pageBounds:t,rowModel:n}=this.beans,o=e>t.getCurrentPagePixelRange().pageLastPixel?-1:n.getRowIndexAtPixel(e);return o>=0?n.getRow(o):void 0}rowDragEvent(e,t){const n=this.beans,{dragItem:i,dropTarget:o,event:r,vDirection:s}=t,a=o?.rootNode===n.rowModel.rootNode,l=a?o.y:zR(n,t).y,u=a?o.overNode:this.getOverNode(l),h=a?o.overIndex:u?.rowIndex??-1;return{api:n.gridApi,context:n.gridOptions.context,type:e,event:r,node:i.rowNode,nodes:i.rowNodes,overIndex:h,overNode:u,y:l,vDirection:s,rowsDrop:o}}dispatchGridEvent(e,t){const n=this.rowDragEvent(e,t);this.eventSvc.dispatchEvent(n)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e,!1)}onDragStop(e){const t=this.lastDraggingEvent?.dropTarget??null,n=this.makeRowsDrop(this.lastDraggingEvent,e,!1,!0);this.dispatchGridEvent("rowDragEnd",e),n?.allowed&&n.rowDragManaged&&(!t?.droppedManaged||UR(t,n))&&this.dropRows(n),this.stopDragging(e,!0)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e,!0)}stopDragging(e,t){this.clearAutoScroll(),this.beans.groupEditSvc?.stopDragging(t),this.beans.rowDropHighlightSvc?.fromDrag(null),$R(e.dragItem.rowNodes,!1),this.lastDraggingEvent=null}clearAutoScroll(){this.autoScroll?.ensureCleared(),this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}dropRows(e){return e.droppedManaged=!0,e.sameGrid?this.csrmMoveRows(e):this.csrmAddRows(e)}csrmAddRows({position:e,target:t,rows:n}){const i=qa(this.gos),o=this.beans.rowModel,r=n.filter(({data:a,rowPinned:l})=>!o.getRowNode(i?.({data:a,level:0,rowPinned:l})??a.id)).map(({data:a})=>a);if(r.length===0)return!1;let s;if(t){const a=t.sourceRowIndex>=0?t:hh(t);a&&(s=a.sourceRowIndex+(e==="above"?0:1))}return o.updateRowData({add:r,addIndex:s}),!0}filterRows(e){const{groupEditSvc:t}=this.beans,{rows:n,sameGrid:i}=e;let o;for(let r=0,s=n.length;r<s;++r){let a=!0;const l=n[r];(!l||l.footer||i&&l.destroyed&&!l.group||!this.csrmGetLeaf(l))&&(a=!1),a&&t&&!t.canDropRow(l,e)&&(a=!1),a?o?.push(l):o??(o=n.slice(0,r))}return o??n}csrmMoveRows(e){const t=this.beans.groupEditSvc;return t?.isGroupingDrop(e)?t.dropGroupEdit(e):this.csrmMoveRowsReorder(e)}csrmMoveRowsReorder({position:e,target:t,rows:n,newParent:i,rootNode:o}){let r=!1;const s=new Set;for(const g of n){i&&g.parent!==i&&(g.treeParent=i,r=!0);const m=this.csrmGetLeaf(g);m&&s.add(m)}if(!r&&s.size===0)return!1;const a=this.beans.focusSvc,l=a.getFocusedCell(),u=l&&tl(this.beans,l);if(s.size&&bB(o._leafs,s,t,e==="above")&&(r=!0),!r)return!1;const h=this.beans.rowModel,f=new dh;return f.reordered=!0,h.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:f}),u?u.focusCell():a.clearFocusedCell(),!0}csrmGetLeaf(e){if(e.sourceRowIndex>=0)return e.destroyed?void 0:e;const t=this.beans.groupEditSvc;return t?t.csrmFirstLeaf(e):hh(e)}},UR=(e,t)=>e!==t&&(!e||e.sameGrid!==t.sameGrid||e.allowed!==t.allowed||e.position!==t.position||e.target!==t.target||e.source!==t.source||e.newParent!==t.newParent||!Nr(e.rows,t.rows)),xB=({rowIndex:e},{rowIndex:t})=>e!==null&&t!==null?e-t:0,$R=(e,t)=>{for(let n=0,i=e?.length||0;n<i;++n){const o=e[n];o.dragging!==t&&(o.dragging=t,o.dispatchRowEvent("draggingChanged"))}},FB=(e,t)=>{let n=null,i=t.target;if(i&&t.rows.indexOf(i)<0)return null;const o=t.source;if(!i||!o)return null;let r=i.rowIndex-o.rowIndex;const s=r<0?-1:1;r=t.suppressMoveWhenRowDragging?Math.abs(r):1;const a=new Set(t.rows);do{const l=nm(e,s,i);if(!l)break;a.has(l)||(n=l,--r),i=l}while(r>0);return n},PB=(e,t)=>{const n=e?.rowTop,i=e?.rowHeight??0;if(n==null||!i||i<=0)return"none";const o=t-n,r=i*SB;return o<=r?"above":o>=i-r?"below":"inside"},EB=class extends X{constructor(){super(...arguments),this.beanName="rowDragSvc",this.rowDragFeature=null,this.visibility="suppress"}setupRowDrag(e,t){const n=t.createManagedBean(new RB(e)),i=this.beans.dragAndDrop;i.addDropTarget(n),t.addDestroyFunc(()=>i.removeDropTarget(n)),this.rowDragFeature=n;const o=()=>this.refreshVisibility();this.addManagedPropertyListeners(["rowDragManaged","suppressRowDrag","refreshAfterGroupEdit"],o),this.addManagedEventListeners({newColumnsLoaded:o,columnRowGroupChanged:o,columnPivotModeChanged:o,sortChanged:o,filterChanged:o}),this.visibility=this.computeVisibility()}createRowDragComp(e,t,n,i,o,r){return new CB(e,t,n,i,o,r)}createRowDragCompForRow(e,t){if(rr(this.gos))return;const n=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${n("rowDragRow","row")}`,e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,n,i,o,r){const s=this.gos;return s.get("rowDragManaged")&&(!en(s)||s.get("pagination"))?void 0:this.createRowDragComp(n,e,t,i,o,r)}cancelRowDrag(){this.rowDragFeature?.lastDraggingEvent&&this.beans.dragSvc?.cancelDrag()}computeVisibility(){const e=this.beans,t=e.gos;if(t.get("suppressRowDrag"))return"suppress";if(!t.get("rowDragManaged"))return"visible";const i=e.colModel.isPivotMode();return(i||e.rowGroupColsSvc?.columns?.length)&&!t.get("refreshAfterGroupEdit")?"hidden":i||e.filterManager?.isAnyFilterPresent()||e.sortSvc?.isSortActive()?"disabled":"visible"}refreshVisibility(){const e=this.visibility,t=this.computeVisibility();e!==t&&(this.visibility=t,this.eventSvc?.dispatchEvent({type:"rowDragVisibilityChanged"}))}},DB=class extends X{constructor(){super(...arguments),this.beanName="rowDropHighlightSvc",this.uiLevel=0,this.dragging=!1,this.row=null,this.position="none"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this)})}onModelUpdated(){const e=this.row,t=this.dragging;!e||e?.rowIndex===null||this.position==="none"?this.clear():this.set(e,this.position),this.dragging=t}destroy(){this.clear(),super.destroy()}clear(){const e=this.row;this.dragging=!1,e&&(this.uiLevel=0,this.position="none",this.row=null,e.dispatchRowEvent("rowHighlightChanged"))}set(e,t){const n=e!==this.row,i=e.uiLevel,o=t!==this.position,r=i!==this.uiLevel;this.dragging=!1,(n||o||r)&&(n&&this.clear(),this.uiLevel=i,this.position=t,this.row=e,e.dispatchRowEvent("rowHighlightChanged"))}fromDrag(e){const t=e?.dropTarget;if(t){const{highlight:n,target:i,position:o}=t;if(n&&i&&o!=="none"){this.set(i,o),this.dragging=!0;return}}this.dragging&&this.clear()}},jR={moduleName:"Drag",version:Re,beans:[pB]},TB={moduleName:"DragAndDrop",version:Re,dynamicBeans:{dndSourceComp:nB},icons:{rowDrag:"grip"}},KR={moduleName:"SharedDragAndDrop",version:Re,beans:[H_],dependsOn:[jR],userComponents:{agDragAndDropImage:rB},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},AB={moduleName:"RowDrag",version:Re,beans:[DB,EB],apiFunctions:{addRowDropZone:sB,removeRowDropZone:aB,getRowDropZoneParams:lB,getRowDropPositionIndicator:cB,setRowDropPositionIndicator:uB},dependsOn:[KR]},IB={moduleName:"HorizontalResize",version:Re,beans:[mB],dependsOn:[jR]},MB=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}",kB=class extends X{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){if(this.active)return;const{gos:e}=this;e.get("suppressColumnMoveAnimation")||e.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount,{gridBodyCtrl:t}=this;t.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&t.setColumnMovingCss(!1)})}flush(e,t){const{executeNextFuncs:n,executeLaterFuncs:i}=this;if(n.length===0&&i.length===0){e(),t();return}const o=r=>{for(;r.length;){const s=r.pop();s&&s()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),o(n)},0),window.setTimeout(()=>{t(),o(i)},200)})}};function LB(e,t,n){e.colMoves?.moveColumnByIndex(t,n,"api")}function OB(e,t,n){e.colMoves?.moveColumns(t,n,"api")}var _B=class extends X{constructor(e){super(),this.pinned=e,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;if(t)for(const n of t)n.isPrimary()&&(n.isAnyFunctionActive()||(n.isAllowValue()?this.columnsToAggregate.push(n):n.isAllowRowGroup()?this.columnsToGroup.push(n):n.isAllowPivot()&&this.columnsToPivot.push(n)))}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){const{valueColsSvc:t,rowGroupColsSvc:n,pivotColsSvc:i}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&n?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&i?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function NB(e,t){!t||t.length<=1||t.filter(i=>e.indexOf(i)<0).length>0||t.sort((i,o)=>{const r=e.indexOf(i),s=e.indexOf(o);return r-s})}function BB(e){const t=[...e];for(const n of e){let i=null,o=n.getParent();for(;o!=null&&o.getDisplayedLeafColumns().length===1;)i=o,o=o.getParent();if(i!=null){const s=!!i.getColGroupDef()?.marryChildren?i.getProvidedColumnGroup().getLeafColumns():i.getLeafColumns();for(const a of s)t.includes(a)||t.push(a)}}return t}function HB(e,t,n,i){const o=i.allCols;let r=null,s=null;for(let a=0;a<e.length;a++){const l=e[a],u=n.getProposedColumnOrder(t,l);if(!n.doesOrderPassRules(u))continue;const h=u.filter(g=>o.includes(g));if(s===null)s=h;else if(!Nr(h,s))break;const f=VB(u);(r===null||f<r.fragCount)&&(r={move:l,fragCount:f})}return r}function qR(e){const{isFromHeader:t,fromLeft:n,xPosition:i,fromEnter:o,fakeEvent:r,pinned:s,gos:a,colModel:l,colMoves:u,visibleCols:h}=e;let{allMovingColumns:f}=e;t&&(f=BB(f));const g=f.slice();NB(l.getCols(),g);const m=zB({movingCols:g,draggingRight:n,xPosition:i,pinned:s,gos:a,colModel:l,visibleCols:h}),v=GB(g,l);if(m.length===0)return;const w=m[0];if(v!==null&&(t||!o)&&!r&&(!n&&w>=v||n&&w<=v))return;const y=HB(m,g,u,h);if(!y)return;const R=y.move;if(!(R>l.getCols().length-g.length))return{columns:g,toIndex:R}}function QR(e){const{columns:t,toIndex:n}=qR(e)||{},{finished:i,colMoves:o}=e;return!t||n==null?null:(o.moveColumns(t,n,"uiColumnMoved",i),i?null:{columns:t,toIndex:n})}function GB(e,t){const n=t.getCols(),i=e.map(l=>n.indexOf(l)).sort((l,u)=>l-u),o=i[0];return Tt(i)-o!==i.length-1?null:o}function VB(e){function t(i){const o=[];let r=i.getOriginalParent();for(;r!=null;)o.push(r),r=r.getOriginalParent();return o}let n=0;for(let i=0;i<e.length-1;i++){let o=t(e[i]),r=t(e[i+1]);[o,r]=o.length>r.length?[o,r]:[r,o];for(const s of o)r.indexOf(s)===-1&&n++}return n}function WB(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}function zB(e){const{movingCols:t,draggingRight:n,xPosition:i,pinned:o,gos:r,colModel:s,visibleCols:a}=e;if(r.get("suppressMovableColumns")||t.some(S=>S.getColDef().suppressMovable))return[];const u=WB(a,o),h=s.getCols(),f=u.filter(S=>t.includes(S)),g=u.filter(S=>!t.includes(S)),m=h.filter(S=>!t.includes(S));let v=0,w=i;if(n){let S=0;for(const P of f)S+=P.getActualWidth();w-=S}if(w>0){for(let S=0;S<g.length;S++){const P=g[S];if(w-=P.getActualWidth(),w<0)break;v++}n&&v++}let b;if(v>0){const S=g[v-1];b=m.indexOf(S)+1}else b=m.indexOf(g[0]),b===-1&&(b=0);const y=[b],R=(S,P)=>S-P;if(n){let S=b+1;const P=h.length-1;for(;S<=P;)y.push(S),S++;y.sort(R)}else{let S=b;const P=h.length-1;let F=h[S];for(;S<=P&&u.indexOf(F)<0;)S++,y.push(S),F=h[S];S=b-1;const A=0;for(;S>=A;)y.push(S),S--;y.sort(R).reverse()}return y}function Tm(e){const{pinned:t,fromKeyboard:n,gos:i,ctrlsSvc:o,useHeaderRow:r,skipScrollPadding:s}=e;let a=o.getHeaderRowContainerCtrl(t)?.eViewport,{x:l}=e;return a?(n&&(l-=a.getBoundingClientRect().left),i.get("enableRtl")&&(r&&(a=a.querySelector(".ag-header-row")),l=a.clientWidth-l),t==null&&!s&&(l+=o.get("center").getCenterViewportScrollLeft()),l):0}function Am(e,t){for(const n of e)n.moving=t,n.dispatchColEvent("movingChanged","uiColumnMoved")}var YR=7,Im=100,fh=Im/2,UB=5,$B=100,jB=class extends X{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!Pe(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:n}=t||{},i=n?.columns??[];for(const o of i){const r=o.getPinned();if(o.getColDef().lockPinned){if(r==e)return"move";continue}const s=n?.containerType;if(s===e||!e)return"move";if(e&&(!r||s!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,n=t.columns;if(e.dragSource.type===0)this.setColumnsVisible(n,!0,"uiColumnDragged");else{const o=t.visibleState,r=(n||[]).filter(s=>o[s.getId()]&&!s.isVisible());this.setColumnsVisible(r,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(n,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,n=!1,i=!1){const{gos:o,ctrlsSvc:r}=this.beans,s=o.get("suppressMoveWhenColumnDragging");if(i&&!s){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!i&&Vt(e.hDirection))return;const a=Tm({x:e.x,pinned:this.pinned,gos:o,ctrlsSvc:r});t||this.checkCenterForScrolling(a),s?this.handleColumnDragWhileSuppressingMovement(e,t,n,a,i):this.handleColumnDragWhileAllowingMovement(e,t,n,a,i)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.updateDragItemContainerType(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,n){if(!e?.length)return;const i=e.filter(o=>!o.getColDef().lockVisible);i.length&&this.beans.colModel.setColsVisible(i,t,n)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:n}=e;this.beans.colMoves.moveColumns(t,n,"uiColumnMoved",!0)}updateDragItemContainerType(){const{lastDraggingEvent:e}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!e)return;const t=e.dragItem;t&&(t.containerType=this.pinned)}handleColumnDragWhileSuppressingMovement(e,t,n,i,o){const r=this.getAllMovingColumns(e,!0);if(o){const s=this.isAttemptingToPin(r);s&&this.attemptToPinColumns(r,void 0,!0);const{fromLeft:a,xPosition:l}=this.getNormalisedXPositionInfo(r,s)||{};if(a==null||l==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:r,xPosition:l,fromEnter:t,fakeEvent:n,fromLeft:a})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(r,i)}}handleColumnDragWhileAllowingMovement(e,t,n,i,o){const r=this.getAllMovingColumns(e),s=this.normaliseDirection(e.hDirection)==="right",a=e.dragSource.type===1,l=this.getMoveColumnParams({allMovingColumns:r,isFromHeader:a,xPosition:i,fromLeft:s,fromEnter:t,fakeEvent:n}),u=QR({...l,finished:o});u&&(this.lastMovedInfo=u)}getAllMovingColumns(e,t=!1){const n=e.dragSource.getDragItem();let i=null;t?(i=n.columnsInSplit,i||(i=n.columns)):i=n.columns;const o=r=>r.getColDef().lockPinned?r.getPinned()==this.pinned:!0;return i?i.filter(o):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:n,xPosition:i,fromLeft:o,fromEnter:r,fakeEvent:s}=e,{gos:a,colModel:l,colMoves:u,visibleCols:h}=this.beans;return{allMovingColumns:t,isFromHeader:n,fromLeft:o,xPosition:i,pinned:this.pinned,fromEnter:r,fakeEvent:s,gos:a,colModel:l,colMoves:u,visibleCols:h}}highlightHoveredColumn(e,t){const{gos:n,colModel:i}=this.beans,o=n.get("enableRtl"),r=i.getCols().filter(h=>h.isVisible()&&h.getPinned()===this.pinned);let s=null,a=null,l=null;for(const h of r){if(a=h.getActualWidth(),s=this.getNormalisedColumnLeft(h,0,o),s!=null){const f=s+a;if(s<=t&&f>=t){l=h;break}}s=null,a=null}if(l)e.indexOf(l)!==-1&&(l=null);else{for(let h=r.length-1;h>=0;h--){const f=r[h],g=r[h].getParent();if(!g){l=f;break}const m=g?.getDisplayedLeafColumns();if(m.length){l=Tt(m);break}}if(!l)return;s=this.getNormalisedColumnLeft(l,0,o),a=l.getActualWidth()}if(l==null||s==null||a==null){this.lastHighlightedColumn?.column!==l&&this.clearHighlighted();return}let u;if(t-s<a/2){const h=r.indexOf(l);h===0?u=0:(u=1,l=r[h-1])}else u=1;(this.lastHighlightedColumn?.column!==l||this.lastHighlightedColumn?.position!==u)&&this.clearHighlighted(),ZR(l,u),this.lastHighlightedColumn={column:l,position:u}}getNormalisedXPositionInfo(e,t){const{gos:n,visibleCols:i}=this.beans,o=n.get("enableRtl"),{firstMovingCol:r,column:s,position:a}=this.getColumnMoveAndTargetInfo(e,t,o);if(!r||!s||a==null)return;const l=i.allCols,u=l.indexOf(r),h=l.indexOf(s),f=a===0,g=u<h||u===h&&!f;let m=0;if(f?g&&(m-=1):g||(m+=1),h+m===u)return;const v=l[h+m];if(!v)return;const w=this.getNormalisedColumnLeft(v,20,o);return{fromLeft:g,xPosition:w}}getColumnMoveAndTargetInfo(e,t,n){const i=this.lastHighlightedColumn||{},{firstMovingCol:o,lastMovingCol:r}=KB(e);if(!o||!r||i.column||!t)return{firstMovingCol:o,...i};const a=this.getPinDirection()==="left";return{firstMovingCol:o,position:a?1:0,column:a!==n?o:r}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,n){const{gos:i,ctrlsSvc:o}=this.beans,r=e.getLeft();if(r==null)return null;const s=e.getActualWidth();return Tm({x:n?r+s-t:r+t,pinned:e.getPinned(),useHeaderRow:n,skipScrollPadding:!0,gos:i,ctrlsSvc:o})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,n=this.failedMoveAttempts>YR;return t&&n||e.some(i=>i.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:n,fromEnter:i,fakeEvent:o,fromLeft:r}=e,s=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:n,fromLeft:r,fromEnter:i,fakeEvent:o}),{columns:a,toIndex:l}=qR(s)||{};a&&l!=null&&(this.lastMovedInfo={columns:a,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(ZR(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),n=t.getCenterViewportScrollLeft(),i=n+t.getCenterWidth();let o,r;this.gos.get("enableRtl")?(o=e<n+fh,r=e>i-fh):(r=e<n+fh,o=e>i-fh),this.needToMoveRight=o,this.needToMoveLeft=r,r||o?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),$B),this.beans.dragAndDrop.setDragImageCompIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,this.beans.dragAndDrop.setDragImageCompIcon(this.getIconName()))}moveInterval(){let e;this.intervalCount++,e=10+this.intervalCount*UB,e>Im&&(e=Im);let t=null;const n=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:i,dragAndDrop:o,gos:r}=this.beans;if(this.failedMoveAttempts<=YR+1||!i)return;if(o.setDragImageCompIcon("pinned"),!r.get("suppressMoveWhenColumnDragging")){const s=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(s,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(e,t,n=!1){const i=(e||[]).filter(s=>!s.getColDef().lockPinned);if(!i.length)return 0;n&&(t=this.getPinDirection());const{pinnedCols:o,dragAndDrop:r}=this.beans;return o?.setColsPinned(i,t,"uiColumnDragged"),n&&r.nudge(),i.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function ZR(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function KB(e){const t=e.length;let n,i;for(let o=0;o<t;o++){if(!n){const r=e[o];r.getLeft()!=null&&(n=r)}if(!i){const r=e[t-1-o];r.getLeft()!=null&&(i=r)}if(n&&i)break}return{firstMovingCol:n,lastMovingCol:i}}var qB=class extends X{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,n=this.pinned;e.whenReady(this,i=>{let o;const r=i.gridBodyCtrl.eBodyViewport;switch(n){case"left":o=[[r,i.left.eContainer],[i.bottomLeft.eContainer],[i.topLeft.eContainer]];break;case"right":o=[[r,i.right.eContainer],[i.bottomRight.eContainer],[i.topRight.eContainer]];break;default:o=[[r,i.center.eViewport],[i.bottomCenter.eViewport],[i.topCenter.eViewport]];break}this.eSecondaryContainers=o}),this.moveColumnFeature=this.createManagedBean(new jB(n)),this.bodyDropPivotTarget=this.createManagedBean(new _B(n)),t.addDropTarget(this),this.addDestroyFunc(()=>t.removeDropTarget(this))}isInterestedIn(e){return e===1||e===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.beans.colModel.isPivotMode()&&e.dragSource.type===0}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}};function JR(e,t){const n=[],i=[],o=[];return e.forEach(s=>{const a=s.getColDef().lockPosition;a==="right"?o.push(s):a==="left"||a===!0?n.push(s):i.push(s)}),t.get("enableRtl")?[...o,...i,...n]:[...n,...i,...o]}function XR(e,t){let n=!0;return ar(null,t,i=>{if(!_n(i))return;const o=i;if(!o.getColGroupDef()?.marryChildren)return;const a=[];for(const g of o.getLeafColumns()){const m=e.indexOf(g);a.push(m)}const l=Math.max.apply(Math,a),u=Math.min.apply(Math,a),h=l-u,f=o.getLeafColumns().length-1;h>f&&(n=!1)}),n}var QB=class extends X{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,n){const i=this.beans.colModel.getCols();if(!i)return;const o=i[e];this.moveColumns([o],t,n)}moveColumns(e,t,n,i=!0){const{colModel:o,colAnimation:r,visibleCols:s,eventSvc:a}=this.beans,l=o.getCols();if(!l)return;if(t>l.length-e.length){le(30,{toIndex:t});return}r?.start();const u=o.getColsForKeys(e);this.doesMovePassRules(u,t)&&(kS(o.getCols(),u,t),s.refresh(n),a.dispatchEvent({type:"columnMoved",columns:u,column:u.length===1?u[0]:null,toIndex:t,finished:i,source:n})),r?.finish()}doesMovePassRules(e,t){const n=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(n)}doesOrderPassRules(e){const{colModel:t,gos:n}=this.beans;return!(!XR(e,t.getColTree())||!(o=>{const r=u=>u?u==="left"||u===!0?-1:1:0,s=n.get("enableRtl");let a=s?1:-1,l=!0;for(const u of o){const h=r(u.getColDef().lockPosition);s?h>a&&(l=!1):h<a&&(l=!1),a=h}return l})(e))}getProposedColumnOrder(e,t){const i=this.beans.colModel.getCols().slice();return kS(i,e,t),i}createBodyDropTarget(e,t){return new qB(e,t)}moveHeader(e,t,n,i,o){const{ctrlsSvc:r,gos:s,colModel:a,visibleCols:l,focusSvc:u}=this.beans,h=t.getBoundingClientRect(),f=h.left,g=tn(n),m=g?h.width:n.getActualWidth(),v=e==="left"!==s.get("enableRtl"),w=Tm({x:v?f-20:f+m+20,pinned:i,fromKeyboard:!0,gos:s,ctrlsSvc:r}),b=u.focusedHeader;QR({allMovingColumns:g?n.getLeafColumns():[n],isFromHeader:!0,fromLeft:e==="right",xPosition:w,pinned:i,fromEnter:!1,fakeEvent:!1,gos:s,colModel:a,colMoves:this,visibleCols:l,finished:!0});let y;if(g){const R=n.getDisplayedLeafColumns();y=v?R[0]:Tt(R)}else y=n;if(r.getScrollFeature().ensureColumnVisible(y,"auto"),(!o.isAlive()||s.get("ensureDomOrder"))&&b){let R;if(g){const S=n.getGroupId(),P=n.getLeafColumns();if(!P.length)return;const F=P[0].getParent();if(!F)return;R=YB(F,S)}else R=n;R&&u.focusHeaderPosition({headerPosition:{...b,column:R}})}}setDragSourceForHeader(e,t,n){const{gos:i,colModel:o,dragAndDrop:r,visibleCols:s}=this.beans;let a=!i.get("suppressDragLeaveHidesColumns");const l=tn(t),u=l?t.getProvidedColumnGroup().getLeafColumns():[t],f={type:1,eElement:e,getDefaultIconName:()=>a?"hide":"notAllowed",getDragItem:l?()=>JB(t,s.allCols):()=>ZB(t),dragItemName:n,onDragStarted:()=>{a=!i.get("suppressDragLeaveHidesColumns"),Am(u,!0)},onDragStopped:()=>Am(u,!1),onDragCancelled:()=>Am(u,!1),onGridEnter:g=>{if(a){const{columns:m=[],visibleState:v}=g??{},w=l?y=>!v||v[y.getColId()]:()=>!0,b=m.filter(y=>!y.getColDef().lockVisible&&w(y));o.setColsVisible(b,!0,"uiColumnMoved")}},onGridExit:g=>{if(a){const m=g?.columns?.filter(v=>!v.getColDef().lockVisible)||[];o.setColsVisible(m,!1,"uiColumnMoved")}}};return r.addDragSource(f,!0),f}};function YB(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}}function ZB(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}function JB(e,t){const n=e.getProvidedColumnGroup().getLeafColumns(),i={};for(const a of n)i[a.getId()]=a.isVisible();const o=[];for(const a of t)n.indexOf(a)>=0&&(o.push(a),Fo(n,a));for(const a of n)o.push(a);const r=[],s=e.getLeafColumns();for(const a of o)s.indexOf(a)!==-1&&r.push(a);return{columns:o,columnsInSplit:r,visibleState:i,containerType:r[0]?.pinned}}var XB={moduleName:"ColumnMove",version:Re,beans:[QB,kB],apiFunctions:{moveColumnByIndex:LB,moveColumns:OB},dependsOn:[KR],css:[MB]},eH=class extends X{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const n=this.getHeaderCellForColumn(e);if(!n)return-1;const i=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||i.push(n),this.getPreferredWidthForElements(i)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const n=document.createElement("form");n.style.position="fixed";const i=this.centerRowContainerCtrl.eContainer;for(const r of e)this.cloneItemIntoDummy(r,n);i.appendChild(n);const o=Math.ceil(n.getBoundingClientRect().width);return n.remove(),t=t??this.gos.get("autoSizePadding"),o+t}getHeaderCellForColumn(e){let t=null;for(const n of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()){const i=n.getHtmlElementForColumnHeader(e);i!=null&&(t=i)}return t}cloneItemIntoDummy(e,t){const n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";const i=document.createElement("div"),o=i.classList;["ag-header-cell","ag-header-group-cell"].some(a=>n.classList.contains(a))?(o.add("ag-header","ag-header-row"),i.style.position="static"):o.add("ag-row");let s=e.parentElement;for(;s;){if(["ag-header-row","ag-row"].some(l=>s.classList.contains(l))){for(let l=0;l<s.classList.length;l++){const u=s.classList[l];u!="ag-row-position-absolute"&&o.add(u)}break}s=s.parentElement}i.appendChild(n),t.appendChild(i)}},ex={moduleName:"AutoWidth",version:Re,beans:[eH]};function tH(e,t,n=!0,i="api"){e.colResize?.setColumnWidths(t,!1,n,i)}function tx(e,t){if(!e||e.length==0)return;const n=t(e[0]);for(let i=1;i<e.length;i++)if(n!==t(e[i]))return;return n}function nx(e,t,n){if(!t.length)return;const i=t.length===1?t[0]:null,o=tx(t,r=>r.getPinned());e.dispatchEvent({type:"columnPinned",pinned:o??null,columns:t,column:i,source:n})}function nH(e,t,n){if(!t.length)return;const i=t.length===1?t[0]:null,o=tx(t,r=>r.isVisible());e.dispatchEvent({type:"columnVisible",visible:o,columns:t,column:i,source:n})}function iH(e,t,n,i){e.dispatchEvent({type:t,columns:n,column:n&&n.length==1?n[0]:null,source:i})}function rl(e,t,n,i,o=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:o,finished:n,source:i})}var oH=class extends X{constructor(e,t,n,i){super(),this.comp=e,this.eResize=t,this.pinned=n,this.columnGroup=i}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}const{horizontalResizeSvc:e,gos:t,colAutosize:n}=this.beans,i=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(i),!t.get("suppressAutoSize")&&n&&this.addDestroyFunc(n.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:n,resizeRatios:i,groupAfterColumns:o,groupAfterStartWidth:r,groupAfterRatios:s}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=n,this.resizeRatios=i,this.resizeTakeFromCols=o,this.resizeTakeFromStartWidth=r,this.resizeTakeFromRatios=s,this.toggleColumnResizing(!0)}onResizing(e,t,n="uiColumnResized"){const i=this.normaliseDragChange(t),o=this.resizeStartWidth+i;this.resizeColumnsFromLocalValues(o,n,e)}getInitialValues(e){const t=l=>l.reduce((u,h)=>u+h.getActualWidth(),0),n=(l,u)=>l.map(h=>h.getActualWidth()/u),i=this.getColumnsToResize(),o=t(i),r=n(i,o),s={columnsToResize:i,resizeStartWidth:o,resizeRatios:r};let a=null;if(e&&(a=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),a){const l=a.getDisplayedLeafColumns(),u=s.groupAfterColumns=l.filter(f=>f.isResizable()),h=s.groupAfterStartWidth=t(u);s.groupAfterRatios=n(u,h)}else s.groupAfterColumns=void 0,s.groupAfterStartWidth=void 0,s.groupAfterRatios=void 0;return s}resizeLeafColumnsToFit(e){const t=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),n=this.getInitialValues();t>n.resizeStartWidth&&this.resizeColumns(n,t,e,!0)}resizeColumnsFromLocalValues(e,t,n=!0){if(!this.resizeCols||!this.resizeRatios)return;const i={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(i,e,t,n)}resizeColumns(e,t,n,i=!0){const{columnsToResize:o,resizeStartWidth:r,resizeRatios:s,groupAfterColumns:a,groupAfterStartWidth:l,groupAfterRatios:u}=e,h=[];if(h.push({columns:o,ratios:s,width:t}),a){const f=t-r;h.push({columns:a,ratios:u,width:l-f})}this.beans.colResize?.resizeColumnSets({resizeSets:h,finished:i,source:n}),i&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(t=>t.isResizable())}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?this.pinned!=="left"&&(t*=-1):this.pinned==="right"&&(t*=-1),t}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},rH=class extends X{constructor(e,t,n,i,o){super(),this.pinned=e,this.column=t,this.eResize=n,this.comp=i,this.ctrl=o}postConstruct(){const e=[];let t,n;const i=()=>{if(xt(this.eResize,t),!t)return;const{horizontalResizeSvc:s,colAutosize:a}=this.beans,l=s.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(l),n&&a&&e.push(a.addColumnAutosizeListeners(this.eResize,this.column))},o=()=>{for(const s of e)s();e.length=0},r=()=>{const s=this.column.isResizable(),a=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(s!==t||a!==n)&&(t=s,n=a,o(),i())};r(),this.addDestroyFunc(o),this.ctrl.setRefreshFunction("resize",r)}onResizing(e,t){const{column:n,lastResizeAmount:i,resizeStartWidth:o,beans:r}=this,s=this.normaliseResizeAmount(t),a=o+s,l=[{key:n,newWidth:a}],{pinnedCols:u,ctrlsSvc:h,colResize:f}=r;if(this.column.getPinned()){const g=u?.leftWidth??0,m=u?.rightWidth??0,v=mc(h.getGridBodyCtrl().eBodyViewport)-50;if(g+m+(s-i)>v)return}this.lastResizeAmount=s,f?.setColumnWidths(l,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.column.resizing=e,this.comp.toggleCss("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const n=this.pinned!=="left",i=this.pinned==="right";return this.gos.get("enableRtl")?n&&(t*=-1):i&&(t*=-1),t}},sH=class extends X{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,n,i){const o=[],{colModel:r,gos:s,visibleCols:a}=this.beans;for(const l of e){const u=r.getColDefCol(l.key)||r.getCol(l.key);if(!u)continue;if(o.push({width:l.newWidth,ratios:[1],columns:[u]}),s.get("colResizeDefault")==="shift"&&(t=!t),t){const f=a.getColAfter(u);if(!f)continue;const g=u.getActualWidth()-l.newWidth,m=f.getActualWidth()+g;o.push({width:m,ratios:[1],columns:[f]})}}o.length!==0&&this.resizeColumnSets({resizeSets:o,finished:n,source:i})}resizeColumnSets(e){const{resizeSets:t,finished:n,source:i}=e;if(!(!t||t.every(h=>aH(h)))){if(n){const h=t&&t.length>0?t[0].columns:null;rl(this.eventSvc,h,n,i)}return}const r=[],s=[];for(const h of t){const{width:f,columns:g,ratios:m}=h,v={},w={};for(const R of g)s.push(R);let b=!0,y=0;for(;b;){if(y++,y>1e3){vt(31);break}b=!1;const R=[];let S=0,P=f;g.forEach((A,k)=>{if(w[A.getId()])P-=v[A.getId()];else{R.push(A);const N=m[k];S+=N}});const F=1/S;R.forEach((A,k)=>{const L=k===R.length-1;let N;L?N=P:(N=Math.round(m[k]*f*F),P-=N);const M=A.getMinWidth(),E=A.getMaxWidth();N<M?(N=M,w[A.getId()]=!0,b=!0):E>0&&N>E&&(N=E,w[A.getId()]=!0,b=!0),v[A.getId()]=N})}for(const R of g){const S=v[R.getId()];R.getActualWidth()!==S&&(R.setActualWidth(S,i),r.push(R))}}const a=r.length>0;let l=[];if(a){const{colFlex:h,visibleCols:f,colViewport:g}=this.beans;l=h?.refreshFlexedColumns({resizingCols:s,skipSetLeft:!0})??[],f.setLeftValues(i),f.updateBodyWidths(),g.checkViewportColumns()}const u=s.concat(l);(a||n)&&rl(this.eventSvc,u,n,i,l)}resizeHeader(e,t,n){if(!e.isResizable())return;const i=e.getActualWidth(),o=e.getMinWidth(),r=e.getMaxWidth(),s=Math.min(Math.max(i+t,o),r);this.setColumnWidths([{key:e,newWidth:s}],n,!0,"uiColumnResized")}createResizeFeature(e,t,n,i,o){return new rH(e,t,n,i,o)}createGroupResizeFeature(e,t,n,i){return new oH(e,t,n,i)}};function aH(e){const{columns:t,width:n}=e;let i=0,o=0,r=!0;for(const l of t){const u=l.getMinWidth();i+=u||0;const h=l.getMaxWidth();h>0?o+=h:r=!1}const s=n>=i,a=!r||n<=o;return s&&a}var lH={moduleName:"ColumnResize",version:Re,beans:[sH],apiFunctions:{setColumnWidths:tH},dependsOn:[IB,ex]},cH=class extends X{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);for(const t of this.columnGroup.getLeafColumns())t.__addEventListener("widthChanged",e),t.__addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.__removeEventListener("widthChanged",e),t.__removeEventListener("visibleChanged",e)})}removeListenersOnChildrenColumns(){for(const e of this.removeChildListenersFuncs)e();this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.toggleCss("ag-hidden",e===0)}},uH=class extends fm{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}wireComp(e,t,n,i,o){const{column:r,beans:s}=this,{context:a,colNames:l,colHover:u,rangeSvc:h,colResize:f}=s;this.comp=e,o=kc(this,a,o),this.setGui(t,o),this.displayName=l.getDisplayNameForColumnGroup(r,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(o),this.setupExpandable(o),this.setupTooltip(),this.refreshAnnouncement(),this.setupAutoHeight({wrapperElement:i,compBean:o}),this.setupUserComp(),this.addHeaderMouseListeners(o,i),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const g=this.rowCtrl.pinned,m=r.getProvidedColumnGroup().getLeafColumns();u?.createHoverFeature(o,m,t),h?.createRangeHighlightFeature(o,r,e),o.createManagedBean(new hm(r,t,s)),o.createManagedBean(new cH(e,r)),f?this.resizeFeature=o.createManagedBean(f.createGroupResizeFeature(e,n,g,r)):e.setResizableDisplayed(!1),o.createManagedBean(new Dc(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(o,m),this.addManagedEventListeners({cellSelectionChanged:()=>this.refreshAnnouncement()}),o.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(o),o.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.getDefinition();return Ue(t.gos,{colDef:n,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,n=e.get("groupHeaderHeight");n!=null?n===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(n):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const n of t)e.addManagedListeners(n,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,n)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),n=t[0]===e,i=Tt(t)===e;if(!n&&!i)return;const o=e.getHighlighted(),r=!!this.rowCtrl.getHeaderCellCtrls().find(l=>l.column.isMoving());let s=!1,a=!1;if(r){const l=this.beans.gos.get("enableRtl"),u=o===1,h=o===0;n&&(l?a=u:s=h),i&&(l?s=h:a=u)}this.comp.toggleCss("ag-header-highlight-before",s),this.comp.toggleCss("ag-header-highlight-after",a)}resizeHeader(e,t){const{resizeFeature:n}=this;if(!n)return;const i=n.getInitialValues(t);n.resizeColumns(i,i.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:n,enterpriseMenuFactory:i}=this.beans,o=this.column,r=o.getProvidedColumnGroup(),s=Ue(n,{displayName:this.displayName,columnGroup:o,setExpanded:l=>{e.setColumnGroupOpened(r,l,"gridInitializing")},setTooltip:(l,u)=>{n.assertModuleRegistered("Tooltip",3),this.setupTooltip(l,u)},showColumnMenu:(l,u)=>i?.showMenuAfterButtonClick(r,l,"columnMenu",u),showColumnMenuAfterMouseClick:(l,u)=>i?.showMenuAfterMouseEvent(r,l,"columnMenu",u),eGridHeader:this.eGui}),a=T_(t,s);a&&this.comp.setUserCompDetails(a)}addHeaderMouseListeners(e,t){const{column:n,comp:i,beans:{rangeSvc:o},gos:r}=this,s=h=>this.handleMouseOverChange(h.type==="mouseenter"),a=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",n.getProvidedColumnGroup()),l=h=>this.handleContextMenuMouseEvent(h,void 0,n.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:s,mouseleave:s,click:a,contextmenu:l}),i.toggleCss("ag-header-group-cell-selectable",Ya(r));const u=o?.createHeaderGroupCellMouseListenerFeature(this.column,t);u&&this.createManagedBean(u)}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,e,t)}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const n=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:n,expandableChanged:n})}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0),this.refreshHeaderStyles()}addClasses(){const{column:e}=this,t=e.getColGroupDef(),n=mR(t,this.gos,null,e);e.isPadding()?(n.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(o=>o.isSpanHeaderHeight())&&n.push("ag-header-span-height")):(n.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&n.push("ag-header-cell-wrap-text"));for(const i of n)this.comp.toggleCss(i,!0)}setupMovingCss(e){const{column:t}=this,i=t.getProvidedColumnGroup().getLeafColumns(),o=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());for(const r of i)e.addManagedListeners(r,{movingChanged:o});o()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription())}handleKeyDown(e){if(super.handleKeyDown(e),!this.getWrapperHasFocus())return;const{column:n,expandable:i,gos:o,beans:r}=this,s=Ya(o);if(e.key==K.ENTER){if(s&&!e.altKey)r.rangeSvc?.handleColumnSelection(n,e);else if(i){const a=!n.isExpanded();r.colGroupSvc.setColumnGroupOpened(n.getProvidedColumnGroup(),a,"uiColumnExpanded")}}}refreshAnnouncement(){let e;const{gos:t}=this;Ya(t)&&(e=this.getLocaleTextFunc()("ariaColumnGroupCellSelection","Press Enter to toggle selection for all visible cells in this column group")),this.ariaAnnouncement=e}announceAriaDescription(){const{beans:e,eGui:t,ariaAnnouncement:n}=this;!n||!t.contains(Lt(e))||e.ariaAnnounce?.announceValue(n,"columnHeader")}setDragSource(e){!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),e&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(e=>e.getColDef().suppressMovable||e.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function dH(e,t,n){e.colGroupSvc?.setColumnGroupOpened(t,n,"api")}function hH(e,t,n){return e.colGroupSvc?.getColumnGroup(t,n)??null}function fH(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null}function gH(e,t,n){return e.colNames.getDisplayNameForColumnGroup(t,n)||""}function pH(e){return e.colGroupSvc?.getColumnGroupState()??[]}function mH(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}function vH(e){e.colGroupSvc?.resetColumnGroupState("api")}function CH(e){return e.visibleCols.treeLeft}function wH(e){return e.visibleCols.treeCenter}function bH(e){return e.visibleCols.treeRight}function yH(e){return e.visibleCols.getAllTrees()}var ix=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let n;return typeof t!="number"?n=0:n=t+1,this.existingIds[e]=n,n}};function SH(e,t){for(let n=0;n<t.length;n++){const i=e.indexOf(t[n]);i>=0&&(e[i]=e[e.length-1],e.pop())}}var RH=class extends X{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.headerGroupRowCount=0,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(e,t=!1){const{colFlex:n,colModel:i,colGroupSvc:o,colViewport:r,selectionColSvc:s}=this.beans;t||this.buildTrees(i,o),o?.updateOpenClosedVisibility(),this.leftCols=Mm(this.treeLeft),this.centerCols=Mm(this.treeCenter),this.rightCols=Mm(this.treeRight),s?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(i),this.joinCols(),this.headerGroupRowCount=this.getHeaderRowCount(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(a=>a.isAutoHeight()),n?.refreshFlexedColumns(),this.updateBodyWidths(),this.setFirstRightAndLastLeftPinned(i,this.leftCols,this.rightCols,e),r.checkViewportColumns(!1),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e})}getHeaderRowCount(){if(!this.gos.get("hidePaddedHeaderRows"))return this.beans.colModel.cols.treeDepth;let e=0;for(const t of this.allCols){let n=t.getParent();for(;n;){if(!n.isPadding()){const i=n.getProvidedColumnGroup().getLevel()+1;i>e&&(e=i);break}n=n.getParent()}}return e}updateBodyWidths(){const e=lr(this.centerCols),t=lr(this.leftCols),n=lr(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,n,i){let o,r;this.gos.get("enableRtl")?(o=t?t[0]:null,r=n?Tt(n):null):(o=t?Tt(t):null,r=n?n[0]:null);for(const s of e.getCols())s.setLastLeftPinned(s===o,i),s.setFirstRightPinned(s===r,i)}buildTrees(e,t){const n=e.getColsToShow(),i=n.filter(l=>l.getPinned()=="left"),o=n.filter(l=>l.getPinned()=="right"),r=n.filter(l=>l.getPinned()!="left"&&l.getPinned()!="right"),s=new ix,a=l=>t?t.createColumnGroups(l):l.columns;this.treeLeft=a({columns:i,idCreator:s,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=a({columns:o,idCreator:s,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=a({columns:r,idCreator:s,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(e){const t=e.getCols(),n=[],i=[],o=[];for(const r of t){const s=r.getPinned();s?s===!0||s==="left"?n.push(r):o.push(r):i.push(r)}this.ariaOrderColumns=n.concat(i).concat(o)}getAriaColIndex(e){let t;return tn(e)?t=e.getLeafColumns()[0]:t=e,this.ariaOrderColumns.indexOf(t)+1}setLeftValuesOfGroups(){for(const e of[this.treeLeft,this.treeRight,this.treeCenter])for(const t of e)tn(t)&&t.checkLeft()}setLeftValuesOfCols(e){const{colModel:t}=this.beans;if(!t.getColDefCols())return;const i=t.getCols().slice(0),o=this.gos.get("enableRtl");for(const r of[this.leftCols,this.rightCols,this.centerCols]){if(o){let s=lr(r);for(const a of r)s-=a.getActualWidth(),a.setLeft(s,e)}else{let s=0;for(const a of r)a.setLeft(s,e),s+=a.getActualWidth()}SH(i,r)}for(const r of i)r.setLeft(null,e)}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(e){return this.allCols.indexOf(e)>=0}getLeftColsForRow(e){const{leftCols:t,beans:{colModel:n}}=this;return n.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:n}}=this;return n.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,n,i){const o=[];let r=null;for(let s=0;s<t.length;s++){const a=t[s],l=t.length-s,u=Math.min(a.getColSpan(e),l),h=[a];if(u>1){const g=u-1;for(let m=1;m<=g;m++)h.push(t[s+m]);s+=g}let f;if(n){f=!1;for(const g of h)n(g)&&(f=!0)}else f=!0;f&&(o.length===0&&r&&i&&i(a)&&o.push(r),o.push(a)),r=a}return o}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,n=t.indexOf(e);return n>0?t[n-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const e=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};Ys(this.treeCenter,!1,e),Ys(this.treeLeft,!1,e),Ys(this.treeRight,!1,e)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}getFirstColumn(){const e=this.gos.get("enableRtl"),t=["leftCols","centerCols","rightCols"];e&&t.reverse();for(let n=0;n<t.length;n++){const i=this[t[n]];if(i.length)return e?Tt(i):i[0]}return null}getColAfter(e){const t=this.allCols,n=t.indexOf(e);return n<t.length-1?t[n+1]:null}getColsLeftWidth(){return lr(this.leftCols)}getDisplayedColumnsRightWidth(){return lr(this.rightCols)}isColAtEdge(e,t){const n=this.allCols;if(!n.length)return!1;const i=t==="first";let o;if(tn(e)){const r=e.getDisplayedLeafColumns();if(!r.length)return!1;o=i?r[0]:Tt(r)}else o=e;return(i?n[0]:Tt(n))===o}};function Ys(e,t,n){if(e)for(let i=0;i<e.length;i++){const o=e[i];if(tn(o)){const r=t?o.getDisplayedChildren():o.getChildren();Ys(r,t,n)}n(o)}}function Mm(e){const t=[];return Ys(e,!0,n=>{zr(n)&&t.push(n)}),t}var xH=class extends X{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[],t=this.beans.colModel.getColTree();return ar(null,t,n=>{_n(n)&&e.push({groupId:n.getGroupId(),open:n.isExpanded()})}),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const n=[];ar(null,t,i=>{if(_n(i)){const o=i.getColGroupDef(),r={groupId:i.getGroupId(),open:o?o.openByDefault:void 0};n.push(r)}}),this.setColumnGroupState(n,e)}setColumnGroupState(e,t){const{colModel:n,colAnimation:i,visibleCols:o,eventSvc:r}=this.beans;if(!n.getColTree().length)return;i?.start();const a=[];for(const l of e){const u=l.groupId,h=l.open,f=this.getProvidedColGroup(u);f&&f.isExpanded()!==h&&(f.setExpanded(h),a.push(f))}o.refresh(t,!0),a.length&&r.dispatchEvent({type:"columnGroupOpened",columnGroup:a.length===1?a[0]:void 0,columnGroups:a}),i?.finish()}setColumnGroupOpened(e,t,n){let i;_n(e)?i=e.getId():i=e||"",this.setColumnGroupState([{groupId:i,open:t}],n)}getProvidedColGroup(e){let t=null;return ar(null,this.beans.colModel.getColTree(),n=>{_n(n)&&n.getId()===e&&(t=n)}),t}getGroupAtDirection(e,t){const n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),i=e.getDisplayedLeafColumns(),o=t==="After"?Tt(i):i[0],r=`getCol${t}`;for(;;){const s=this.beans.visibleCols[r](o);if(!s)return null;const a=this.getColGroupAtLevel(s,n);if(a!==e)return a}}getColGroupAtLevel(e,t){let n=e.getParent(),i,o;for(;i=n.getProvidedColumnGroup().getLevel(),o=n.getPaddingLevel(),!(i+o<=t);)n=n.getParent();return n}updateOpenClosedVisibility(){const e=this.beans.visibleCols.getAllTrees();Ys(e,!1,t=>{tn(t)&&t.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if(tn(e))return e;const n=this.beans.visibleCols.getAllTrees(),i=typeof t=="number";let o=null;return Ys(n,!1,r=>{if(tn(r)){const s=r;let a;i?a=e===s.getGroupId()&&t===s.getPartId():a=e===s.getGroupId(),a&&(o=s)}}),o}createColumnGroups(e){const{columns:t,idCreator:n,pinned:i,oldDisplayedGroups:o,isStandaloneStructure:r}=e,s=this.mapOldGroupsById(o),a=[];let l=t;for(;l.length;){const u=l;l=[];let h=0;const f=g=>{const m=h;h=g;const v=u[m],b=(tn(v)?v.getProvidedColumnGroup():v).getOriginalParent();if(b==null){for(let R=m;R<g;R++)a.push(u[R]);return}const y=this.createColumnGroup(b,n,s,i,r);for(let R=m;R<g;R++)y.addChild(u[R]);l.push(y)};for(let g=1;g<u.length;g++){const m=u[g],w=(tn(m)?m.getProvidedColumnGroup():m).getOriginalParent(),b=u[h],R=(tn(b)?b.getProvidedColumnGroup():b).getOriginalParent();w!==R&&f(g)}h<u.length&&f(u.length)}return r||this.setupParentsIntoCols(a,null),a}createProvidedColumnGroup(e,t,n,i,o,r,s){const a=o.getUniqueKey(t.groupId||null,null),l=F0(this.beans,t,a),u=new $d(l,a,!1,n);this.createBean(u);const h=this.findExistingGroup(t,r);h&&r.splice(h.idx,1);const f=h?.group;f&&u.setExpanded(f.isExpanded());const g=P0(this.beans,l.children,n+1,e,i,o,r,s);return u.setChildren(g),u}balanceColumnTree(e,t,n,i){const o=[];for(let r=0;r<e.length;r++){const s=e[r];if(_n(s)){const a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,i);a.setChildren(l),o.push(a)}else{let a,l;for(let u=t;u<n;u++){const h=i.getUniqueKey(null,null),f=F0(this.beans,null,h),g=new $d(f,h,!0,u);this.createBean(g),l&&l.setChildren([g]),l=g,a||(a=l)}if(a&&l)if(o.push(a),e.some(h=>_n(h))){l.setChildren([s]);continue}else{l.setChildren(e);break}o.push(s)}}return o}findDepth(e){let t=0,n=e;for(;n?.[0]&&_n(n[0]);)t++,n=n[0].getChildren();return t}findMaxDepth(e,t){let n=t;for(let i=0;i<e.length;i++){const o=e[i];if(_n(o)){const r=o,s=this.findMaxDepth(r.getChildren(),t+1);n<s&&(n=s)}}return n}balanceTreeForAutoCols(e,t){const n=[];for(const i of e){let o=i;for(let r=t-1;r>=0;r--){const s=new $d(null,`FAKE_PATH_${i.getId()}_${r}`,!0,r);this.createBean(s),s.setChildren([o]),o.originalParent=s,o=s}t===0&&(i.originalParent=null),n.push(o)}return n}findExistingGroup(e,t){if(e.groupId!=null)for(let i=0;i<t.length;i++){const o=t[i];if(o.getColGroupDef()&&o.getId()===e.groupId)return{idx:i,group:o}}}createColumnGroup(e,t,n,i,o){const r=e.getGroupId(),s=t.getInstanceIdForKey(r),a=M0(r,s);let l=n[a];return l&&l.getProvidedColumnGroup()!==e&&(l=null),Pe(l)?l.reset():(l=new Ec(e,r,s,i),o||this.createBean(l)),l}mapOldGroupsById(e){const t={},n=i=>{for(const o of i)if(tn(o)){const r=o;t[o.getUniqueId()]=r,n(r.getChildren())}};return e&&n(e),t}setupParentsIntoCols(e,t){for(const n of e??[])if(n.parent!==t&&(this.beans.colViewport.colsWithinViewportHash=""),n.parent=t,tn(n)){const i=n;this.setupParentsIntoCols(i.getChildren(),i)}}},FH={moduleName:"ColumnGroup",version:Re,dynamicBeans:{headerGroupCellCtrl:uH},beans:[xH],apiFunctions:{getAllDisplayedColumnGroups:yH,getCenterDisplayedColumnGroups:wH,getColumnGroup:hH,getColumnGroupState:pH,getDisplayNameForColumnGroup:gH,getLeftDisplayedColumnGroups:CH,getProvidedColumnGroup:fH,getRightDisplayedColumnGroups:bH,resetColumnGroupState:vH,setColumnGroupOpened:dH,setColumnGroupState:mH}};function so(e,t,n){const{colModel:i,rowGroupColsSvc:o,pivotColsSvc:r,autoColSvc:s,selectionColSvc:a,colAnimation:l,visibleCols:u,pivotResultCols:h,environment:f,valueColsSvc:g,eventSvc:m,gos:v}=e,w=i.getColDefCols()??[],b=a?.getColumns();if(!w.length&&!b?.length)return!1;if(t?.state&&!t.state.forEach)return le(32),!1;const y=(F,A,k,L,N)=>{if(!F)return;const M=XO(A,t.defaultState),E=M("flex").value1,I=M("sort").value1,B=M("sortType").value1,W=Ur(I)||Np(B),J=sr(B),me=Ud(I),fe=W?{type:J,direction:me}:void 0;if(E0(e,F,M("hide").value1,fe,M("sortIndex").value1,M("pinned").value1,E,n),E==null){const ve=M("width").value1;if(ve!=null){const De=F.getColDef().minWidth??f.getDefaultColumnMinWidth();De!=null&&ve>=De&&F.setActualWidth(ve,n)}}N||!F.isPrimary()||(g?.syncColumnWithState(F,n,M),o?.syncColumnWithState(F,n,M,k),r?.syncColumnWithState(F,n,M,L))},R=(F,A,k)=>{const L=ox(e,n),N=A.slice(),M={},E={},I=[],B=[],W=[];let J=0;const me=o?.columns.slice()??[],fe=r?.columns.slice()??[];for(const oe of F){const H=oe.colId;if(H.startsWith(jd)){I.push(oe),W.push(oe);continue}if($r(H)){B.push(oe),W.push(oe);continue}const j=k(H);j?(y(j,oe,M,E,!1),Fo(N,j)):(W.push(oe),J+=1)}const ve=oe=>y(oe,null,M,E,!1);N.forEach(ve),o?.sortColumns(sx.bind(o,M,me)),r?.sortColumns(sx.bind(r,E,fe)),i.refreshCols(!1,n);const De=(oe,H,Q=[])=>{for(const j of H){const ce=oe(j.colId);Fo(Q,ce),y(ce,j,null,null,!0)}Q.forEach(ve)};return De(oe=>s?.getColumn(oe)??null,I,s?.getColumns()?.slice()),De(oe=>a?.getColumn(oe)??null,B,a?.getColumns()?.slice()),EH(t,i,v),u.refresh(n),m.dispatchEvent({type:"columnEverythingChanged",source:n}),L(),{unmatchedAndAutoStates:W,unmatchedCount:J}};l?.start();let{unmatchedAndAutoStates:S,unmatchedCount:P}=R(t.state||[],w,F=>i.getColDefCol(F));if(S.length>0||Pe(t.defaultState)){const F=h?.getPivotResultCols()?.list??[];P=R(S,F,A=>h?.getPivotResultCol(A)??null).unmatchedCount}return l?.finish(),P===0}function PH(e,t){const{colModel:n,autoColSvc:i,selectionColSvc:o,eventSvc:r,gos:s}=e,a=n.getColDefCols();if(!a?.length)return;const l=n.getColDefColTree(),u=A0(l),h=[];let f=1e3,g=1e3;const m=R=>{const S=rx(R);Vt(S.rowGroupIndex)&&S.rowGroup&&(S.rowGroupIndex=f++),Vt(S.pivotIndex)&&S.pivot&&(S.pivotIndex=g++),h.push(S)};i?.getColumns()?.forEach(m),o?.getColumns()?.forEach(m),u?.forEach(m),so(e,{state:h},t);const v=i?.getColumns()??[],y=[...o?.getColumns()??[],...v,...a].map(R=>({colId:R.colId}));so(e,{state:y,applyOrder:!0},t),r.dispatchEvent(Ue(s,{type:"columnsReset",source:t}))}function ox(e,t){const{rowGroupColsSvc:n,pivotColsSvc:i,valueColsSvc:o,colModel:r,sortSvc:s,eventSvc:a}=e,l={rowGroupColumns:n?.columns.slice()??[],pivotColumns:i?.columns.slice()??[],valueColumns:o?.columns.slice()??[]},u=gh(e),h={};for(const f of u)h[f.colId]=f;return()=>{const f=(A,k,L,N)=>{const M=k.map(N),E=L.map(N);if(Nr(M,E))return;const B=new Set(k);for(const J of L)B.delete(J)||B.add(J);const W=[...B];a.dispatchEvent({type:A,columns:W,column:W.length===1?W[0]:null,source:t})},g=A=>{const k=[];return r.forAllCols(L=>{const N=h[L.getColId()];N&&A(N,L)&&k.push(L)}),k},m=A=>A.getColId();f("columnRowGroupChanged",l.rowGroupColumns,n?.columns??[],m),f("columnPivotChanged",l.pivotColumns,i?.columns??[],m);const w=g((A,k)=>{const L=A.aggFunc!=null,N=L!=k.isValueActive(),M=L&&A.aggFunc!=k.getAggFunc();return N||M});w.length>0&&iH(a,"columnValueChanged",w,t),rl(a,g((A,k)=>A.width!=k.getActualWidth()),!0,t),nx(a,g((A,k)=>A.pinned!=k.getPinned()),t),nH(a,g((A,k)=>A.hide==k.isVisible()),t);const P=g((A,k)=>!zd(k.getSortDef(),{type:sr(A.sortType),direction:Ud(A.sort)})||A.sortIndex!=k.getSortIndex());P.length>0&&s?.dispatchSortChangedEvents(t,P);const F=gh(e);TH(u,F,t,r,a)}}function gh(e){const{colModel:t,rowGroupColsSvc:n,pivotColsSvc:i}=e,o=t.getColDefCols();if(Vt(o)||!t.isAlive())return[];const r=n?.columns,s=i?.columns,a=[],l=h=>{const f=h.isRowGroupActive()&&r?r.indexOf(h):null,g=h.isPivotActive()&&s?s.indexOf(h):null,m=h.isValueActive()?h.getAggFunc():null,v=h.getSortIndex()!=null?h.getSortIndex():null;a.push({colId:h.getColId(),width:h.getActualWidth(),hide:!h.isVisible(),pinned:h.getPinned(),sort:h.getSort(),sortType:h.getSortDef()?.type,sortIndex:v,aggFunc:m,rowGroup:h.isRowGroupActive(),rowGroupIndex:f,pivot:h.isPivotActive(),pivotIndex:g,flex:h.getFlex()??null})};t.forAllCols(h=>l(h));const u=new Map(t.getCols().map((h,f)=>[h.getColId(),f]));return a.sort((h,f)=>{const g=u.has(h.colId)?u.get(h.colId):-1,m=u.has(f.colId)?u.get(f.colId):-1;return g-m}),a}function rx(e){const t=(b,y)=>b??y??null,n=e.getColDef(),i=Oi(t(n.sort,n.initialSort)),o=i.direction,r=i.type,s=t(n.sortIndex,n.initialSortIndex),a=t(n.hide,n.initialHide),l=t(n.pinned,n.initialPinned),u=t(n.width,n.initialWidth),h=t(n.flex,n.initialFlex);let f=t(n.rowGroupIndex,n.initialRowGroupIndex),g=t(n.rowGroup,n.initialRowGroup);f==null&&!g&&(f=null,g=null);let m=t(n.pivotIndex,n.initialPivotIndex),v=t(n.pivot,n.initialPivot);m==null&&!v&&(m=null,v=null);const w=t(n.aggFunc,n.initialAggFunc);return{colId:e.getColId(),sort:o,sortType:r,sortIndex:s,hide:a,pinned:l,width:u,flex:h,rowGroup:g,rowGroupIndex:f,pivot:v,pivotIndex:m,aggFunc:w}}function EH(e,t,n){if(!e.applyOrder||!e.state)return;const i=[];for(const o of e.state)o.colId!=null&&i.push(o.colId);DH(t.cols,i,t,n)}function DH(e,t,n,i){if(e==null)return;let o=[];const r={};for(const a of t){if(r[a])continue;const l=e.map[a];l&&(o.push(l),r[a]=!0)}let s=0;for(const a of e.list){const l=a.getColId();if(r[l]!=null)continue;l.startsWith(jd)?o.splice(s++,0,a):o.push(a)}if(o=JR(o,i),!XR(o,n.getColTree())){le(39);return}e.list=o}function TH(e,t,n,i,o){const r={};for(const h of t)r[h.colId]=h;const s={};for(const h of e)r[h.colId]&&(s[h.colId]=!0);const a=e.filter(h=>s[h.colId]),l=t.filter(h=>s[h.colId]),u=[];l.forEach((h,f)=>{const g=a?.[f];if(g&&g.colId!==h.colId){const m=i.getCol(g.colId);m&&u.push(m)}}),u.length&&o.dispatchEvent({type:"columnMoved",columns:u,column:u.length===1?u[0]:null,finished:!0,source:n})}var sx=(e,t,n,i)=>{const o=e[n.getId()],r=e[i.getId()],s=o!=null,a=r!=null;if(s&&a)return o-r;if(s)return-1;if(a)return 1;const l=t.indexOf(n),u=t.indexOf(i),h=l>=0,f=u>=0;return h&&f?l-u:h?-1:1},AH=class extends X{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents","groupHideColumnsUntilExpanded","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(Ja(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),Ja(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:n,colAutosize:i,rowGroupColsSvc:o,pivotColsSvc:r,valueColsSvc:s,visibleCols:a,eventSvc:l,groupHierarchyColSvc:u}=t,h=this.colDefs?ox(t,e):void 0;n?.expire();const f=this.colDefCols?.list,g=this.colDefCols?.tree,m=WO(t,this.colDefs,!0,g,e);Kd(t,this.colDefCols?.tree,m.columnTree);const v=m.columnTree,w=m.treeDepth,b=A0(v),y={};for(const R of b)y[R.getId()]=R;this.colDefCols={tree:v,treeDepth:w,list:b,map:y},this.createColumnsForService([u],this.colDefCols,e),o?.extractCols(e,f),r?.extractCols(e,f),s?.extractCols(e,f),this.ready=!0,this.changeEventsDispatching=!0,this.refreshCols(!0,e),this.changeEventsDispatching=!1,a.refresh(e),l.dispatchEvent({type:"columnEverythingChanged",source:e}),h&&(this.changeEventsDispatching=!0,h(),this.changeEventsDispatching=!1),l.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&i?.applyAutosizeStrategy()}refreshCols(e,t){if(!this.colDefCols)return;const n=this.cols?.tree;this.saveColOrder();const{autoColSvc:i,selectionColSvc:o,rowNumbersSvc:r,quickFilter:s,pivotResultCols:a,showRowGroupCols:l,rowAutoHeight:u,visibleCols:h,colViewport:f,eventSvc:g,formula:m}=this.beans,v=this.selectCols(a,this.colDefCols);m?.setFormulasActive(v),this.createColumnsForService([i,o,r],v,t);const w=mO(this.gos,this.showingPivotResult);(!e||w)&&this.restoreColOrder(v),this.positionLockedCols(v),l?.refresh(),s?.refreshCols(),this.setColSpanActive(),u?.setAutoHeightActive(v),h.clear(),f.clear(),Nr(n,this.cols.tree)||g.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,n){for(const i of e)i&&(i.createColumns(t,o=>{this.lastOrder=o(this.lastOrder),this.lastPivotOrder=o(this.lastPivotOrder)},n),i.addColumns(t))}selectCols(e,t){const n=e?.getPivotResultCols()??null;this.showingPivotResult=n!=null;const{map:i,list:o,tree:r,treeDepth:s}=n??t;return this.cols={list:o.slice(),map:{...i},tree:r.slice(),treeDepth:s},n&&(n.list.some(l=>this.cols?.map[l.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const{beans:e,showingPivotResult:t,cols:n}=this,{valueColsSvc:i,selectionColSvc:o,gos:r}=e,s=this.isPivotMode()&&!t,a=o?.isSelectionColumnEnabled(),l=vO(e),u=i?.columns,h=bO(r);return n.list.filter(g=>{const m=Hp(g);return s?u?.includes(g)||m&&(!h||g.isVisible())||a&&$r(g)||l&&Kn(g):m&&!h||g.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,n){so(this.beans,{state:e.map(i=>({colId:typeof i=="string"?i:i.getColId(),hide:!t}))},n)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const n=t.filter(f=>e.map[f.getId()]!=null);if(n.length===0)return;if(n.length===e.list.length){e.list=n;return}const i=f=>{const g=f.getOriginalParent();return g?g.getChildren().length>1?!0:i(g):!1};if(!n.some(f=>i(f))){const f=new Set(n);for(const g of e.list)f.has(g)||n.push(g);e.list=n;return}const o=new Map;for(let f=0;f<n.length;f++){const g=n[f];o.set(g,f)}const r=e.list.filter(f=>!o.has(f));if(r.length===0){e.list=n;return}const s=(f,g)=>{const m=g?g.getOriginalParent():f.getOriginalParent();if(!m)return null;let v=null,w=null;for(const b of m.getChildren())if(!(b===g||b===f)){if(b instanceof zs){const y=o.get(b);if(y==null)continue;(v==null||v<y)&&(v=y,w=b);continue}b.forEachLeafColumn(y=>{const R=o.get(y);R!=null&&(v==null||v<R)&&(v=R,w=y)})}return w??s(f,m)},a=[],l=new Map;for(const f of r){const g=s(f,null);if(g==null){a.push(f);continue}const m=l.get(g);m===void 0?l.set(g,f):Array.isArray(m)?m.push(f):l.set(g,[m,f])}const u=new Array(e.list.length);let h=u.length-1;for(let f=a.length-1;f>=0;f--)u[h--]=a[f];for(let f=n.length-1;f>=0;f--){const g=n[f],m=l.get(g);if(m)if(Array.isArray(m))for(let v=m.length-1;v>=0;v--){const w=m[v];u[h--]=w}else u[h--]=m;u[h--]=g}e.list=u}positionLockedCols(e){e.list=JR(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(e){return this.colDefCols&&this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[],e)}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>e.getColDef().colSpan!=null)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1,t);const{visibleCols:n,eventSvc:i}=this.beans;n.refresh(t),i.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=Ja(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){Kd(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:n,selectionColSvc:i,groupHierarchyColSvc:o}=this.beans;cc(this.colDefCols?.list,e)||cc(n?.columns?.list,e)||cc(i?.columns?.list,e)||cc(o?.columns?.list,e)||cc(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(t==null)return null;const{map:n,list:i}=t;if(typeof e=="string"&&n[e])return n[e];for(let a=0;a<i.length;a++)if(Pc(i[a],e))return i[a];const{autoColSvc:o,selectionColSvc:r,groupHierarchyColSvc:s}=this.beans;return o?.getColumn(e)??r?.getColumn(e)??s?.getColumn(e)??null}},IH=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-label-align-right){.ag-label,.ag-wrapper{flex:none}}.ag-label-align-top{align-items:flex-start;flex-direction:column}:where(.ag-label-align-top){.ag-label,.ag-wrapper{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",MH=class extends Xa{constructor(e,t,n){super(t,n),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(IH)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:n,labelAlignment:i,disabled:o,labelEllipsis:r}=this.config;o!=null&&this.setDisabled(o),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),n!=null&&this.setLabelWidth(n),r!=null&&this.setLabelEllipsis(r),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;Rn(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(xt(t,!1),Br(t,"presentation")):(xt(t,!0),Br(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const n=this.getGui().classList;return n.toggle("ag-label-align-left",e==="left"),n.toggle("ag-label-align-right",e==="right"),n.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(Id(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return pc(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},ax=class extends MH{constructor(e,t,n,i){super(e,t,n),this.className=i}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:n,ariaLabel:i}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),n!=null&&this.onValueChange(n),i!=null&&this.setAriaLabel(i),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),n=this.getLabel();n==null||n==""||gL(e)!==null?hc(e,""):hc(e,t??"")}setAriaLabel(e){return Va(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return Eo(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}};function kH(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}var Zs=class extends ax{constructor(e,t,n="text",i="input"){super(e,e?.template??kH(i),[],t),this.inputType=n,this.displayFieldTag=i,this.eLabel=ge,this.eWrapper=ge,this.eInput=ge}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:n,className:i}=this;e.classList.add(`${i}-label`),t.classList.add(`${i}-input-wrapper`),n.classList.add(`${i}-input`),this.addCss("ag-input-field"),n.id=n.id||`ag-${this.getCompId()}-input`;const{inputName:o,inputWidth:r,inputPlaceholder:s,autoComplete:a,tabIndex:l}=this.config;o!=null&&this.setInputName(o),r!=null&&this.setInputWidth(r),s!=null&&this.setInputPlaceholder(s),a!=null&&this.setAutoComplete(a),this.addInputListeners(),this.activateTabIndex([n],l)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){this.displayFieldTag==="input"&&(this.inputType=e,oi(this.eInput,"type",e))}getInputElement(){return this.eInput}getWrapperElement(){return this.eWrapper}setInputWidth(e){return Id(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return oi(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Va(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return pc(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)oi(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";oi(this.eInput,"autocomplete",t)}return this}},km=class extends Zs{constructor(e,t="ag-checkbox",n="checkbox"){super(e,t,n),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t,name:n}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t),n!=null&&this.setName(n)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0;const n=this.eInput;n.checked=e,n.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,n){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:n});const i=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:i.id,name:i.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},Lm={selector:"AG-CHECKBOX",component:km},LH=".ag-checkbox-cell{height:100%}",OH={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},_H=class extends Ft{constructor(){super(OH,[Lm]),this.eCheckbox=ge,this.registerCSS(LH)}init(e){this.refresh(e);const{eCheckbox:t,beans:n}=this,i=t.getInputElement();i.setAttribute("tabindex","-1"),NS(i,"polite"),this.addManagedListeners(i,{click:o=>{if(qs(o),t.isDisabled())return;const r=t.getValue();this.onCheckboxChanged(r)},dblclick:o=>{qs(o)}}),this.addManagedElementListeners(e.eGridCell,{keydown:o=>{if(o.key===K.SPACE&&!t.isDisabled()){e.eGridCell===Lt(n)&&t.toggle();const r=t.getValue();this.onCheckboxChanged(r),o.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,n=!0;const{value:i,column:o,node:r}=e;if(r.group&&o)if(typeof i=="boolean")t=i;else{const f=o.getColId();f.startsWith(jd)?t=i==null||i===""?void 0:i==="true":r.aggData&&r.aggData[f]!==void 0||r.sourceRowIndex>=0?t=i??void 0:n=!1}else t=i??void 0;const{eCheckbox:s}=this;if(!n){s.setDisplayed(!1);return}s.setValue(t);const a=e.disabled??!o?.isCellEditable(r);s.setDisabled(a);const l=this.getLocaleTextFunc(),u=Ed(l,t),h=a?u:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${u})`;s.setInputAriaLabel(h)}onCheckboxChanged(e){const{params:t}=this,{column:n,node:i,value:o}=t,{editSvc:r}=this.beans;if(!n)return;const s={rowNode:i,column:n};r?.dispatchCellEvent(s,null,"cellEditingStarted",{value:o});const a=i.setDataValue(n,e,"ui");r?.dispatchCellEvent(s,null,"cellEditingStopped",{oldValue:o,newValue:e,valueChanged:a}),a||this.updateCheckbox(t)}},NH={tag:"div",cls:"ag-skeleton-container"},BH=class extends Ft{constructor(){super(NH)}init(e){const t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc(()=>hc(e.eParentOfValue)),hc(e.eParentOfValue,t),e.deferRender?this.setupLoading(e):e.node.failedLoad?this.setupFailed():this.setupLoading(e)}setupFailed(){const e=this.getLocaleTextFunc();this.getGui().textContent=e("loadingError","ERR");const t=e("ariaSkeletonCellLoadingFailed","Row failed to load");Va(this.getGui(),t)}setupLoading(e){const t=dn({tag:"div",cls:"ag-skeleton-effect"}),n=e.node.rowIndex;if(n!=null){const r=75+25*(n%2===0?Math.sin(n):Math.cos(n));t.style.width=`${r}%`}this.getGui().appendChild(t);const i=this.getLocaleTextFunc(),o=e.deferRender?i("ariaDeferSkeletonCellLoading","Cell is loading"):i("ariaSkeletonCellLoading","Row data is loading");Va(this.getGui(),o)}refresh(e){return!1}},HH={moduleName:"CheckboxCellRenderer",version:Re,userComponents:{agCheckboxCellRenderer:_H}},GH={moduleName:"SkeletonCellRenderer",version:Re,userComponents:{agSkeletonCellRenderer:BH}};function VH(e,t){const n=e.colModel.getColDefCol(t);return n?n.getColDef():null}function WH(e){return e.colModel.getColumnDefs(!0)}function zH(e,t,n){return e.colNames.getDisplayNameForColumn(t,n)||""}function UH(e,t){return e.colModel.getColDefCol(t)}function $H(e){return e.colModel.getColDefCols()}function jH(e,t){return so(e,t,"api")}function KH(e){return gh(e)}function qH(e){PH(e,"api")}function QH(e){return e.visibleCols.isPinningLeft()||e.visibleCols.isPinningRight()}function YH(e){return e.visibleCols.isPinningLeft()}function ZH(e){return e.visibleCols.isPinningRight()}function JH(e,t){return e.visibleCols.getColAfter(t)}function XH(e,t){return e.visibleCols.getColBefore(t)}function eG(e,t,n){e.colModel.setColsVisible(t,n,"api")}function tG(e,t,n){e.pinnedCols?.setColsPinned(t,n,"api")}function nG(e){return e.colModel.getCols()}function iG(e){return e.visibleCols.leftCols}function oG(e){return e.visibleCols.centerCols}function rG(e){return e.visibleCols.rightCols}function sG(e){return e.visibleCols.allCols}function aG(e){return e.colViewport.getViewportColumns()}function Om(e,t){if(!e)return;const n=e,i={};for(const o of Object.keys(n)){if(t&&t.indexOf(o)>=0||e0.has(o))continue;const r=n[o];typeof r=="object"&&r!==null&&r.constructor===Object?i[o]=Om(r):i[o]=r}return i}var lG=class extends X{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc}getColumnDefs(e,t,n,i,o=!1){const r=e.slice();t?r.sort((l,u)=>n.indexOf(l)-n.indexOf(u)):(n||o)&&r.sort((l,u)=>i.indexOf(l)-i.indexOf(u));const s=this.rowGroupColsSvc?.columns,a=this.pivotColsSvc?.columns;return this.buildColumnDefs(r,s,a)}buildColumnDefs(e,t=[],n=[]){const i=[],o={};for(const r of e){const s=this.createDefFromColumn(r,t,n);let a=!0,l=s,u=r.getOriginalParent(),h=null;for(;u;){let f=null;if(u.isPadding()){u=u.getOriginalParent();continue}const g=o[u.getGroupId()];if(g){g.children.push(l),a=!1;break}if(f=this.createDefFromGroup(u),f&&(f.children=[l],o[f.groupId]=f,l=f,u=u.getOriginalParent()),u!=null&&h===u){a=!1;break}h=u}a&&i.push(l)}return i}createDefFromGroup(e){const t=Om(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,n){const i=Om(e.getColDef());return i.colId=e.getColId(),i.width=e.getActualWidth(),i.rowGroup=e.isRowGroupActive(),i.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,i.pivot=e.isPivotActive(),i.pivotIndex=e.isPivotActive()?n.indexOf(e):null,i.aggFunc=e.isValueActive()?e.getAggFunc():null,i.hide=e.isVisible()?void 0:!0,i.pinned=e.isPinned()?e.getPinned():null,i.sort=e.getSortDef(),i.sortIndex=e.getSortIndex()!=null?e.getSortIndex():null,i}},cG=class extends X{constructor(){super(...arguments),this.beanName="colFlex",this.columnsHidden=!1}refreshFlexedColumns(e={}){const t=e.source??"flex";e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth);const n=this.flexViewportWidth,{visibleCols:i,colDelayRenderSvc:o}=this.beans,r=i.centerCols;let s=-1;if(e.resizingCols){const w=new Set(e.resizingCols);for(let b=r.length-1;b>=0;b--)if(w.has(r[b])){s=b;break}}let a=!1;const l=r.map((w,b)=>{const y=w.getFlex(),R=y!=null&&y>0&&b>s;return a||(a=R),{col:w,isFlex:R,flex:Math.max(0,y??0),initialSize:w.getActualWidth(),min:w.getMinWidth(),max:w.getMaxWidth(),targetSize:0}});if(a?(o?.hideColumns("colFlex"),this.columnsHidden=!0):this.columnsHidden&&this.revealColumns(o),!n||!a)return[];let u=l.length,h=l.reduce((w,b)=>w+b.flex,0),f=n;const g=(w,b)=>{w.frozenSize=b,w.col.setActualWidth(b,t),f-=b,h-=w.flex,u-=1},m=w=>w.frozenSize!=null;for(const w of l)w.isFlex||g(w,w.initialSize);for(;u>0;){const w=Math.round(h<1?f*h:f);let b,y=0,R=0;for(const F of l){if(m(F))continue;b=F,R+=w*(F.flex/h);const A=R-y,k=Math.round(A);F.targetSize=k,y+=k}b&&(b.targetSize+=w-y);let S=0;for(const F of l){if(m(F))continue;const A=F.targetSize,k=Math.min(Math.max(A,F.min),F.max);S+=k-A,F.violationType=k===A?void 0:k<A?"max":"min",F.targetSize=k}const P=S===0?"all":S>0?"min":"max";for(const F of l)m(F)||(P==="all"||F.violationType===P)&&g(F,F.targetSize)}e.skipSetLeft||i.setLeftValues(t),e.updateBodyWidths&&i.updateBodyWidths();const v=l.filter(w=>w.isFlex&&!w.violationType).map(w=>w.col);if(e.fireResizedEvent){const w=l.filter(y=>y.initialSize!==y.frozenSize).map(y=>y.col),b=l.filter(y=>y.flex).map(y=>y.col);rl(this.eventSvc,w,!0,t,b)}return this.revealColumns(o),v}revealColumns(e){this.columnsHidden&&(e?.revealColumns("colFlex"),this.columnsHidden=!1)}initCol(e){const{flex:t,initialFlex:n}=e.colDef;t!==void 0?e.flex=t:n!==void 0&&(e.flex=n)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}},ai=e=>{if(typeof e=="bigint")return e;let t;if(typeof e=="number")t=e;else if(typeof e=="string"&&(t=e.trim(),t===""||(t.endsWith("n")&&(t=t.slice(0,-1)),!/^[+-]?\d+$/.test(t))))return null;if(t==null)return null;try{return BigInt(t)}catch{return null}},_m="T",uG=new RegExp(`[${_m} ]`),dG=new RegExp(`^\\d{4}-\\d{2}-\\d{2}(${_m}\\d{2}:\\d{2}:\\d{2}\\D?)?`);function Mo(e,t){return e.toString().padStart(t,"0")}function qn(e,t=!0,n=_m){if(!e)return null;let i=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(o=>Mo(o,2)).join("-");return t&&(i+=n+[e.getHours(),e.getMinutes(),e.getSeconds()].map(o=>Mo(o,2)).join(":")),i}function ph(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),Mo(e.getDate(),2),Mo(e.getHours(),2),`:${Mo(e.getMinutes(),2)}`,`:${Mo(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,Mo(e.getDate(),2)].map(String):null}var Nm=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},lx=["January","February","March","April","May","June","July","August","September","October","November","December"],Bm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function hG(e,t){if(t==null)return qn(e,!1);const n=Mo(e.getFullYear(),4),i={YYYY:()=>n.slice(n.length-4,n.length),YY:()=>n.slice(n.length-2,n.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>lx[e.getMonth()],MMM:()=>lx[e.getMonth()].slice(0,3),MM:()=>Mo(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${Nm(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${Nm(e.getDate())}`,DD:()=>Mo(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>Bm[e.getDay()],ddd:()=>Bm[e.getDay()].slice(0,3),dd:()=>Bm[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${Nm(e.getDay())}`,d:()=>`${e.getDay()}`},o=new RegExp(Object.keys(i).join("|"),"g");return t.replace(o,r=>r in i?i[r]():r)}function mh(e,t=!1){return!!Qn(e,t)}function fG(e){return mh(e,!0)}function Qn(e,t=!1,n){if(!e||!n&&!dG.test(e))return null;const[i,o]=e.split(uG);if(!i)return null;const r=i.split("-").map(m=>Number.parseInt(m,10));if(r.filter(m=>!isNaN(m)).length!==3)return null;const[s,a,l]=r,u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l||!o&&t)return null;if(!o||o==="00:00:00")return u;const[h,f,g]=o.split(":").map(m=>Number.parseInt(m,10));if(h>=0&&h<24)u.setHours(h);else if(t)return null;if(f>=0&&f<60)u.setMinutes(f);else if(t)return null;if(g>=0&&g<60)u.setSeconds(g);else if(t)return null;return u}function _c(e,t,n){if(!t||!e)return;if(!n)return e[t];const i=t.split(".");let o=e;for(let r=0;r<i.length;r++){if(o==null)return;o=o[i[r]]}return o}var gG=["dateTimeString","dateString","text","number","bigint","boolean","date"],pG=class extends X{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[],this.columnDefinitionPropsPerDataType={number(){return{cellEditor:"agNumberCellEditor"}},bigint({filterModuleBean:e}){return e?{cellEditor:"agTextCellEditor"}:{cellEditor:"agTextCellEditor",comparator:{default:wG,absolute:bG}}},boolean(){return{cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:({node:e,event:t,column:n})=>t.key===K.SPACE&&n.isCellEditable(e)}},date({formatValue:e}){return{cellEditor:"agDateCellEditor",keyCreator:e}},dateString({formatValue:e}){return{cellEditor:"agDateStringCellEditor",keyCreator:e}},dateTime(e){return this.date(e)},dateTimeString(e){return this.dateString(e)},object({formatValue:e,colModel:t,colId:n}){return{cellEditorParams:{useFormatter:!0},comparator:(i,o)=>{const r=t.getColDefCol(n),s=r?.getColDef();if(!r||!s)return 0;const a=i==null?"":e({column:r,node:null,value:i}),l=o==null?"":e({column:r,node:null,value:o});return a===l?0:a>l?1:-1},keyCreator:e}},text(){return{}}}}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)})}processDataTypeDefinitions(){const e=this.getDefaultDataTypes(),t={},n={},i=h=>f=>{const{column:g,node:m,value:v}=f;let w=g.getColDef().valueFormatter;return w===h.groupSafeValueFormatter&&(w=h.valueFormatter),this.beans.valueSvc.formatValue(g,m,v,w)};for(const h of Object.keys(e)){const f=e[h],g={...f,groupSafeValueFormatter:dx(f,this.gos)};t[h]=g,n[h]=i(g)}const o=this.gos.get("dataTypeDefinitions")??{},r={};for(const h of Object.keys(o)){const f=o[h],g=this.processDataTypeDefinition(f,o,[h],e);g&&(t[h]=g,f.dataTypeMatcher&&(r[h]=f.dataTypeMatcher),n[h]=i(g))}const{valueParser:s,valueFormatter:a}=e.object,{valueParser:l,valueFormatter:u}=t.object;this.hasObjectValueParser=l!==s,this.hasObjectValueFormatter=u!==a,this.formatValueFuncs=n,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(r,e)}sortKeysInMatchers(e,t){const n={...e};for(const i of gG)delete n[i],n[i]=e[i]??t[i].dataTypeMatcher;return n}processDataTypeDefinition(e,t,n,i){let o;const r=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let s=i[r];const a=t[r];if(s&&a&&(s=a),!ux(e,s,r))return;o=cx(s,e)}else{if(n.includes(r)){le(44);return}const s=t[r];if(!ux(e,s,r))return;const a=this.processDataTypeDefinition(s,t,[...n,r],i);if(!a)return;o=cx(a,e)}return{...o,groupSafeValueFormatter:dx(o,this.gos)}}updateColDefAndGetColumnType(e,t,n){let{cellDataType:i}=t;i===void 0&&(i=e.cellDataType);const{field:o}=t;if((i==null||i===!0)&&(i=this.canInferCellDataType(e,t)?this.inferCellDataType(o,n):!1),this.addFormulaCellEditorToColDef(e,t),!i){e.cellDataType=!1;return}const r=this.dataTypeDefinitions[i];if(!r){le(47,{cellDataType:i});return}return e.cellDataType=i,r.groupSafeValueFormatter&&(e.valueFormatter=r.groupSafeValueFormatter),r.valueParser&&(e.valueParser=r.valueParser),r.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,i,r,n),r.columnTypes}addFormulaCellEditorToColDef(e,t){!(t.allowFormula??e.allowFormula)||t.cellEditor||(e.cellEditor="agFormulaCellEditor")}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const n=i=>{t.add(i.key)};e.__addEventListener("columnStateUpdated",n),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",n))}canInferCellDataType(e,t){const{gos:n}=this;if(!en(n))return!1;const i={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(Hm(t,i))return!1;const o=t.type===null?e.type:t.type;if(o){const r=n.get("columnTypes")??{};if(qd(o).some(a=>{const l=r[a.trim()];return l&&Hm(l,i)}))return!1}return!Hm(e,i)}inferCellDataType(e,t){if(!e)return;let n;const i=this.getInitialData();if(i){const r=e.includes(".")&&!this.gos.get("suppressFieldDotNotation");n=_c(i,e,r)}else this.initWaitForRowData(t);return n==null?void 0:Object.keys(this.dataTypeMatchers).find(r=>this.dataTypeMatchers[r](n))??"object"}getInitialData(){const e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{const t=this.beans.rowModel.rootNode?._leafs;if(t?.length)return t[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:n,eventSvc:i}=this.beans;t&&n&&(n.shouldQueueResizeOperations=!0);const[o]=this.addManagedEventListeners({rowDataUpdateStarted:r=>{const{firstRowData:s}=r;s&&(o?.(),this.isPendingInference=!1,this.processColumnsPendingInference(s,t),this.columnStateUpdatesPendingInference={},t&&n?.processResizeOperations(),i.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const n=[];this.destroyColumnStateUpdateListeners();const i={},o={};for(const r of Object.keys(this.columnStateUpdatesPendingInference)){const s=this.columnStateUpdatesPendingInference[r],a=this.colModel.getCol(r);if(!a)continue;const l=a.getColDef();if(!this.resetColDefIntoCol(a,"cellDataTypeInferred"))continue;const u=a.getColDef();if(t&&u.type&&u.type!==l.type){const h=yG(a,s);h.rowGroup&&h.rowGroupIndex==null&&(i[r]=h),h.pivot&&h.pivotIndex==null&&(o[r]=h),n.push(h)}}t&&n.push(...this.generateColumnStateForRowGroupAndPivotIndexes(i,o)),n.length&&so(this.beans,{state:n},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const n={},{rowGroupColsSvc:i,pivotColsSvc:o}=this.beans;return i?.restoreColumnOrder(n,e),o?.restoreColumnOrder(n,t),Object.values(n)}resetColDefIntoCol(e,t){const n=e.getUserProvidedColDef();if(!n)return!1;const i=Bp(this.beans,n,e.getColId());return e.setColDef(i,n,t),!0}getDateStringTypeDefinition(e){const{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDateIncludesTimeFlag(e){return e==="dateTime"||e==="dateTimeString"}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(t==null)return!0;const n=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!n||e.getColDef().allowFormula&&this.beans.formula?.isFormula(t)?!0:n(t)}validateColDef(e,t,n,i){if(e.cellDataType==="object"){const o=l=>l?.cellDataType==null||l?.cellDataType===!0,r=o(t)&&o(n),s=l=>le(48,{property:l,inferred:r,colId:i}),{object:a}=this.dataTypeDefinitions;e.valueFormatter===a.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&s("Formatter"),e.editable&&e.valueParser===a.valueParser&&!this.hasObjectValueParser&&s("Parser")}}postProcess(e){const t=e.cellDataType;if(!t||typeof t!="string")return;const{dataTypeDefinitions:n,beans:i,formatValueFuncs:o}=this,r=n[t];r&&i.colFilter?.setColDefPropsForDataType(e,r,o[t])}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,n,i){const o=this.formatValueFuncs[t],r=this.columnDefinitionPropsPerDataType[n.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:n,colId:i,formatValue:o,filterModuleBean:this.beans.filterManager});e.cellEditor==="agFormulaCellEditor"&&r.cellEditor!==e.cellEditor&&(r.cellEditor=e.cellEditor),Object.assign(e,r)}getDateObjectTypeDef(e){const t=this.getLocaleTextFunc(),n=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:i=>Qn(i.newValue&&String(i.newValue)),valueFormatter:i=>i.value==null?"":!(i.value instanceof Date)||isNaN(i.value.getTime())?t("invalidDate","Invalid Date"):qn(i.value,n)??"",dataTypeMatcher:i=>i instanceof Date}}getDateStringTypeDef(e){const t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:n=>Qn(n)??void 0,dateFormatter:n=>qn(n??null,t)??void 0,valueParser:n=>mh(String(n.newValue))?n.newValue:null,valueFormatter:n=>mh(String(n.value))?String(n.value):"",dataTypeMatcher:n=>typeof n=="string"&&mh(n)}}getDefaultDataTypes(){const e=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:t=>t.newValue?.trim?.()===""?null:Number(t.newValue),valueFormatter:t=>t.value==null?"":typeof t.value!="number"||isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value),dataTypeMatcher:t=>typeof t=="number"},bigint:{baseDataType:"bigint",valueParser:t=>{const{newValue:n}=t;return n==null||typeof n=="string"&&n.trim()===""?null:ai(n)},valueFormatter:t=>t.value==null?"":typeof t.value!="bigint"?e("invalidBigInt","Invalid BigInt"):String(t.value),dataTypeMatcher:t=>typeof t=="bigint"},text:{baseDataType:"text",valueParser:t=>t.newValue===""?null:fp(t.newValue),dataTypeMatcher:t=>typeof t=="string"},boolean:{baseDataType:"boolean",valueParser:t=>t.newValue==null?t.newValue:t.newValue?.trim?.()===""?null:String(t.newValue).toLowerCase()==="true",valueFormatter:t=>t.value==null?"":String(t.value),dataTypeMatcher:t=>typeof t=="boolean"},date:this.getDateObjectTypeDef("date"),dateString:this.getDateStringTypeDef("dateString"),dateTime:this.getDateObjectTypeDef("dateTime"),dateTimeString:{...this.getDateStringTypeDef("dateTimeString"),dataTypeMatcher:t=>typeof t=="string"&&fG(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:t=>fp(t.value)??""}}}destroyColumnStateUpdateListeners(){for(const e of this.columnStateUpdateListenerDestroyFuncs)e();this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}};function cx(e,t){const n={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(n.columnTypes=[...qd(e.columnTypes),...qd(t.columnTypes)]),n}function ux(e,t,n){return t?t.baseDataType!==e.baseDataType?(le(46),!1):!0:(le(45,{parentCellDataType:n}),!1)}var mG=e=>typeof e=="bigint"||typeof e=="number",vG=e=>e==="number"||e==="bigint";function dx(e,t){if(e.valueFormatter)return n=>{const{node:i,colDef:o,column:r,value:s}=n;if(i?.group){const a=(o.pivotValueColumn??r).getAggFunc();if(a){if(a==="first"||a==="last")return e.valueFormatter(n);const{baseDataType:l}=e;if(vG(l)&&a!=="count"){if(mG(s))return e.valueFormatter(n);if(s==null)return;if(typeof s=="object"){if(typeof s.toNumber=="function")return e.valueFormatter({...n,value:s.toNumber()});if("value"in s)return e.valueFormatter({...n,value:s.value})}}return}}else if(t.get("groupHideOpenParents")&&n.column.isRowGroupActive()&&typeof n.value=="string"&&!e.dataTypeMatcher?.(n.value))return;return e.valueFormatter(n)}}function CG(e,t,n,i){if(!t[n])return!1;const o=e[n];return o===null?(t[n]=!1,!1):i===void 0?!!o:o===i}function wG(e,t){if(e==null)return t==null?0:-1;if(t==null)return 1;const n=ai(e),i=ai(t);return n!=null&&i!=null?n===i?0:n>i?1:-1:0}function bG(e,t){if(e==null)return t==null?0:-1;if(t==null)return 1;const n=hx(e),i=hx(t);return n!=null&&i!=null?n===i?0:n>i?1:-1:0}function hx(e){const t=ai(e);return t==null?null:t<0n?-t:t}function Hm(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([n,i])=>CG(e,t,n,i))}function yG(e,t){const n=rx(e);for(const i of t)delete n[i],i==="rowGroup"?delete n.rowGroupIndex:i==="pivot"&&delete n.pivotIndex;return n}var SG={moduleName:"DataType",version:Re,beans:[pG],dependsOn:[HH]},RG={moduleName:"ColumnFlex",version:Re,beans:[cG]},fx={moduleName:"ColumnApi",version:Re,beans:[lG],apiFunctions:{getColumnDef:VH,getDisplayNameForColumn:zH,getColumn:UH,getColumns:$H,applyColumnState:jH,getColumnState:KH,resetColumnState:qH,isPinning:QH,isPinningLeft:YH,isPinningRight:ZH,getDisplayedColAfter:JH,getDisplayedColBefore:XH,setColumnsVisible:eG,setColumnsPinned:tG,getAllGridColumns:nG,getDisplayedLeftColumns:iG,getDisplayedCenterColumns:oG,getDisplayedRightColumns:rG,getAllDisplayedColumns:sG,getAllDisplayedVirtualColumns:aG,getColumnDefs:WH}},xG=class extends X{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,n=!1){if(!e)return null;const i=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:o}=this.beans;return n&&o?o.getHeaderName(e,i):i}getDisplayNameForProvidedColumnGroup(e,t,n){const i=t?.getColGroupDef();return i?this.getHeaderName(i,null,e,t,n):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,n,i,o){const r=e.headerValueGetter;if(r){const s=Ue(this.gos,{colDef:e,column:t,columnGroup:n,providedColumnGroup:i,location:o});return typeof r=="function"?r(s):typeof r=="string"?this.beans.expressionSvc?.evaluate(r,s)??null:""}else{if(e.headerName!=null)return e.headerName;if(e.field)return uL(e.field)}return""}},FG=class extends X{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[]}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}getScrollPosition(){return this.scrollPosition}setScrollPosition(e,t,n=!1){const{visibleCols:i}=this,o=i.isBodyWidthDirty;if(!(e===this.scrollWidth&&t===this.scrollPosition&&!o)){if(this.scrollWidth=e,this.scrollPosition=t,i.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const s=i.bodyWidth;this.viewportLeft=s-t-e,this.viewportRight=s-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(n)}}getColumnHeadersToRender(e){switch(e){case"left":return this.columnsToRenderLeft;case"right":return this.columnsToRenderRight;default:return this.columnsToRenderCenter}}getHeadersToRender(e,t){let n;switch(e){case"left":n=this.rowsOfHeadersToRenderLeft[t];break;case"right":n=this.rowsOfHeadersToRenderRight[t];break;default:n=this.rowsOfHeadersToRenderCenter[t];break}return n??[]}extractViewportColumns(){const e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.colsWithinViewportHash=""}isColumnInHeaderViewport(e){return e.isAutoHeaderHeight()||PG(e)?!0:this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,n=t+e.getActualWidth(),i=this.viewportLeft-200,o=this.viewportRight+200,r=t<i&&n<i,s=t>o&&n>o;return!r&&!s}getViewportColumns(){const{leftCols:e,rightCols:t}=this.visibleCols;return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.colModel.colSpanActive)return this.colsWithinViewport;const t=r=>{const s=r.getLeft();return Pe(s)&&s>this.viewportLeft},n=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:i}=this,o=i.centerCols;return i.getColsForRow(e,o,n,t)}checkViewportColumns(e=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}calculateHeaderRows(){const{leftCols:e,rightCols:t}=this.visibleCols;this.columnsToRenderLeft=e,this.columnsToRenderRight=t,this.columnsToRenderCenter=this.colsWithinViewport;const n=i=>{const o=new Set,r={};for(const s of i){let a=s.getParent();const l=s.isSpanHeaderHeight();for(;a&&!o.has(a);){if(l&&a.isPadding()){a=a.getParent();continue}const h=a.getProvidedColumnGroup().getLevel();r[h]??(r[h]=[]),r[h].push(a),o.add(a),a=a.getParent()}}return r};this.rowsOfHeadersToRenderLeft=n(e),this.rowsOfHeadersToRenderRight=n(t),this.rowsOfHeadersToRenderCenter=n(this.headerColsWithinViewport)}extractViewport(){const e=i=>`${i.getId()}-${i.getPinned()||"normal"}`;this.extractViewportColumns();const t=this.getViewportColumns().map(e).join("#"),n=this.colsWithinViewportHash!==t;return n&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),n}};function PG(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}var EG=class extends X{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;class n{refresh(){return!1}getGui(){return this.eGui}init(o){const r=t(o),s=typeof r;if(s==="string"||s==="number"||s==="boolean"){this.eGui=bp("<span>"+r+"</span>");return}if(r==null){this.eGui=dn({tag:"span"});return}this.eGui=r}}return n}},DG={moduleName:"CellRendererFunction",version:Re,beans:[EG]},TG=class extends $n{constructor(){super(...arguments),this.beanName="registry"}registerDynamicBeans(e){if(e){this.dynamicBeans??(this.dynamicBeans={});for(const t of Object.keys(e))this.dynamicBeans[t]=e[t]}}createDynamicBean(e,t,...n){if(!this.dynamicBeans)throw new Error(this.getDynamicError(e,!0));const i=this.dynamicBeans[e];if(i==null){if(t)throw new Error(this.getDynamicError(e,!1));return}return new i(...n)}};function AG(e){return typeof e=="object"&&!!e.getComp}var IG=class extends TG{constructor(){super(...arguments),this.agGridDefaults={},this.agGridDefaultOverrides={},this.jsComps={},this.selectors={},this.icons={}}postConstruct(){const e=this.gos.get("components");if(e!=null)for(const t of Object.keys(e))this.jsComps[t]=e[t]}registerModule(e){const{icons:t,userComponents:n,dynamicBeans:i,selectors:o}=e;if(n){const r=(s,a,l,u)=>{this.agGridDefaults[s]=a,(l||u)&&(this.agGridDefaultOverrides[s]={params:l,processParams:u})};for(const s of Object.keys(n)){let a=n[s];if(AG(a)&&(a=a.getComp(this.beans)),typeof a=="object"){const{classImp:l,params:u,processParams:h}=a;r(s,l,u,h)}else r(s,a)}}this.registerDynamicBeans(i);for(const r of o??[])this.selectors[r.selector]=r;if(t)for(const r of Object.keys(t))this.icons[r]=t[r]}getUserComponent(e,t){const n=(a,l,u,h)=>({componentFromFramework:l,component:a,params:u,processParams:h}),{frameworkOverrides:i}=this.beans,o=i.frameworkComponent(t,this.gos.get("components"));if(o!=null)return n(o,!0);const r=this.jsComps[t];if(r){const a=i.isFrameworkComponent(r);return n(r,a)}const s=this.agGridDefaults[t];if(s){const a=this.agGridDefaultOverrides[t];return n(s,!1,a?.params,a?.processParams)}return this.beans.validation?.missingUserComponent(e,t,this.agGridDefaults,this.jsComps),null}getSelector(e){return this.selectors[e]}getIcon(e){return this.icons[e]}getDynamicError(e,t){return t?Do(279,{name:e}):this.beans.validation?.missingDynamicBean(e)??Do(256)}},MG=23,kG=class extends X{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){this.addEventListener("ready",()=>{if(this.updateReady(),this.ready){for(const e of this.readyCallbacks)e(this.params);this.readyCallbacks.length=0}},this.beans.frameworkOverrides.runWhenReadyAsync?.()??!1)}updateReady(){const e=Object.values(this.params);this.ready=e.length===MG&&e.every(t=>t?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const n=this.readyCallbacks.indexOf(t);n>=0&&this.readyCallbacks.splice(n,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:e,centerHeader:t,rightHeader:n}=this.params;return[e,n,t]}getHeaderRowContainerCtrl(e){const t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},LG=':where([class^=ag-]),:where([class^=ag-]):after,:where([class^=ag-]):before{box-sizing:border-box}:where([class^=ag-]):where(button){color:inherit}:where([class^=ag-]):where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}:where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-tab-guard{display:block;height:0;position:absolute;width:0}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block}.ag-measurement-element-border:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}.ag-popup-child{top:0;z-index:5}.ag-popup-child:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);font-weight:var(--ag-font-weight);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled .ag-icon,[disabled] .ag-icon{opacity:.5}.ag-icon-grip.ag-disabled,.ag-icon-grip[disabled]{opacity:.35}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}',Gm=typeof window!="object"||!window?.document?.fonts?.forEach,gx=!1,Js=(e,t,n,i,o,r,s=!1)=>{if(Gm||gx)return;let a=e;i&&(a=`@layer ${CSS.escape(i).replaceAll("\\.",".")} { ${e} }`);let l=ko.map.get(t);if(l||(l=[],ko.map.set(t,l)),l.some(g=>g.injectedCss===a))return;const u=document.createElement("style");r&&u.setAttribute("nonce",r),u.dataset.agCss=n,u.dataset.agCssVersion=Re,u.textContent=a;const h={rawCss:e,injectedCss:a,el:u,priority:o,isParams:s};let f;for(const g of l){if(g.priority>o)break;f=g}if(f){f.el.after(u);const g=l.indexOf(f);l.splice(g+1,0,h)}else t.nodeName==="STYLE"?t.after(u):t.insertBefore(u,t.querySelector(":not(title, meta)")),l.push(h)},px=(e,t,n,i)=>{Js(LG,e,"shared",t,0,n),i?.forEach((o,r)=>o.forEach(s=>Js(s,e,r,t,0,n)))},OG=(e,t,n,i,o,r)=>{if(Gm||gx)return;const s=ko.grids.get(e);s?s.paramsCss=t:ko.grids.set(e,{styleContainer:i,paramsCss:t}),Vm(i),t&&n&&Js(t,i,n,o,2,r,!0)},_G=e=>{const t=ko.grids.get(e)?.styleContainer;if(!t)return;ko.grids.delete(e),Array.from(ko.grids.values()).some(i=>i.styleContainer===t)?Vm(t):(Vm(t,!0),ko.map.delete(t))},Vm=(e,t=!1)=>{const n=new Set;for(const o of ko.grids.values())o.styleContainer===e&&n.add(o.paramsCss);const i=ko.map.get(e)??[];for(let o=i.length-1;o>=0;o--)(t||i[o].isParams&&!n.has(i[o].rawCss))&&(i[o].el.remove(),i.splice(o,1))},mx=()=>{const e=globalThis.agStyleInjectionVersions??(globalThis.agStyleInjectionVersions=new Map);let t=e.get(Re);return t||(t={map:new WeakMap,grids:new Map,paramsId:0},e.set(Re,t)),t},ko=mx(),ao=e=>new vx(e),Zr="$default",NG=0,vx=class{constructor({feature:e,params:t,modeParams:n={},css:i,cssImports:o}){this.feature=e,this.css=i,this.cssImports=o,this.modeParams={[Zr]:{...n[Zr]??{},...t??{}},...n}}use(e,t,n){let i=this._inject;if(i==null){let{css:o}=this;if(o){const r=`ag-theme-${this.feature??"part"}-${++NG}`;typeof o=="function"&&(o=o()),o=`:where(.${r}) {
7
- ${o}
8
- }
9
- `;for(const s of this.cssImports??[])o=`@import url(${JSON.stringify(s)});
10
- ${o}`;i={css:o,class:r}}else i=!1;this._inject=i}return i&&e&&Js(i.css,e,i.class,t,1,n),i?i.class:!1}},BG=e=>e.replace(/[A-Z]|\d+/g,t=>`-${t}`).toLowerCase(),Wm=e=>`--ag-${BG(e)}`,Lo=e=>`var(${Wm(e)})`,HG=(e,t,n)=>Math.max(t,Math.min(n,e)),GG=e=>{const t=new Map;return n=>{const i=n;return t.has(i)||t.set(i,e(n)),t.get(i)}},Oo=e=>({ref:"accentColor",mix:e}),Ni=e=>({ref:"foregroundColor",mix:e}),Bi=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),VG=e=>({ref:"foregroundColor",mix:e,onto:"headerBackgroundColor"}),Yn={ref:"backgroundColor"},Xs={ref:"foregroundColor"},_o={ref:"accentColor"},vh={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:Ni(.15),chromeBackgroundColor:Bi(.02),browserColorScheme:"light"},WG={...vh,textColor:Xs,accentColor:"#2196f3",invalidColor:"#e02525",fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],subtleTextColor:{ref:"textColor",mix:.5},borderWidth:1,borderRadius:4,spacing:8,fontSize:14,fontWeight:"inherit",focusShadow:{spread:3,color:Oo(.5)},focusErrorShadow:{spread:3,color:{ref:"invalidColor",onto:"backgroundColor",mix:.5}},popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},listItemHeight:{calc:"max(iconSize, dataFontSize) + widgetVerticalSpacing"},dragAndDropImageBackgroundColor:Yn,dragAndDropImageBorder:!0,dragAndDropImageNotAllowedBorder:{color:{ref:"invalidColor",onto:"dragAndDropImageBackgroundColor",mix:.5}},dragAndDropImageShadow:{ref:"popupShadow"},iconSize:16,iconColor:"inherit",toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:_o,toggleButtonOffBackgroundColor:Bi(.3),toggleButtonSwitchBackgroundColor:Yn,toggleButtonSwitchInset:2,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipErrorBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.1},tooltipTextColor:{ref:"textColor"},tooltipErrorTextColor:{ref:"invalidColor"},tooltipBorder:!0,tooltipErrorBorder:{color:{ref:"invalidColor",onto:"backgroundColor",mix:.25}},panelBackgroundColor:Yn,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontFamily:{ref:"headerFontFamily"},panelTitleBarFontSize:{ref:"headerFontSize"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,dialogShadow:{ref:"popupShadow"},dialogBorder:{color:Ni(.2)},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},dataFontSize:{ref:"fontSize"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},headerFontSize:{ref:"fontSize"},headerFontWeight:500,headerTextColor:{ref:"textColor"},headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,menuBorder:{color:Ni(.2)},menuBackgroundColor:Bi(.03),menuTextColor:Bi(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"}},zG=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],UG=GG(e=>(e=e.toLowerCase(),zG.find(t=>e.endsWith(t.toLowerCase()))??"length")),Ch=e=>typeof e=="object"&&e?.ref?Lo(e.ref):typeof e=="string"?e:typeof e=="number"?String(e):!1,zm=e=>{if(typeof e=="string")return e;if(typeof e=="object"&&e&&"ref"in e){const t=Lo(e.ref);return e.mix==null?t:`color-mix(in srgb, ${e.onto?Lo(e.onto):"transparent"}, ${t} ${HG(e.mix*100,0,100)}%)`}return!1},$G=Ch,sl=e=>typeof e=="string"?e:typeof e=="number"?`${e}px`:typeof e=="object"&&e&&"calc"in e?`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,n=>n[0]==="-"?n:" "+Lo(n)+" ")})`:typeof e=="object"&&e&&"ref"in e?Lo(e.ref):!1,jG=Ch,Um=(e,t)=>typeof e=="string"?e:e===!0?Um({},t):e===!1?t==="columnBorder"?Um({color:"transparent"},t):"none":typeof e=="object"&&e&&"ref"in e?Lo(e.ref):wx(e.style??"solid")+" "+sl(e.width??{ref:"borderWidth"})+" "+zm(e.color??{ref:"borderColor"}),Cx=e=>[sl(e.offsetX??0),sl(e.offsetY??0),sl(e.radius??0),sl(e.spread??0),zm(e.color??{ref:"foregroundColor"}),...e.inset?["inset"]:[]].join(" "),KG=e=>typeof e=="string"?e:e===!1?"none":typeof e=="object"&&e&&"ref"in e?Lo(e.ref):Array.isArray(e)?e.map(Cx).join(", "):Cx(e),wx=Ch,bx=e=>typeof e=="string"?e.includes(",")?e:yx(e):typeof e=="object"&&e&&"googleFont"in e?bx(e.googleFont):typeof e=="object"&&e&&"ref"in e?Lo(e.ref):Array.isArray(e)?e.map(t=>(typeof t=="object"&&"googleFont"in t&&(t=t.googleFont),yx(t))).join(", "):!1,yx=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),qG=Ch,Sx=e=>typeof e=="string"?e:typeof e=="object"&&e&&"url"in e?`url(${JSON.stringify(e.url)})`:typeof e=="object"&&e&&"svg"in e?Sx({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):typeof e=="object"&&e&&"ref"in e?Lo(e.ref):!1,QG=(e,t,n)=>typeof e=="string"?e:typeof e=="number"?(e>=10&&n?.warn(104,{value:e,param:t}),`${e}s`):typeof e=="object"&&e&&"ref"in e?Lo(e.ref):!1,YG={color:zm,colorScheme:$G,length:sl,scale:jG,border:Um,borderStyle:wx,shadow:KG,image:Sx,fontFamily:bx,fontWeight:qG,duration:QG},ZG=(e,t,n)=>{const i=UG(e);return YG[i](t,e,n)},JG=(e,t)=>new Rx({themeLogger:e,overridePrefix:t}),Rx=class wI{constructor(t,n=[]){this.params=t,this.parts=n}withPart(t){return typeof t=="function"&&(t=t()),t instanceof vx?new wI(this.params,[...this.parts,t]):(this.params.themeLogger.preInitErr(259,"Invalid part",{part:t}),this)}withoutPart(t){return this.withPart(ao({feature:t}))}withParams(t,n=Zr){return this.withPart(ao({modeParams:{[n]:t}}))}_startUse({styleContainer:t,cssLayer:n,nonce:i,loadThemeGoogleFonts:o,moduleCss:r}){if(Gm)return;eV(),px(t,n,i,r);const s=XG(this);if(s.length>0)for(const a of s)o&&tV(a,i);for(const a of this.parts)a.use(t,n,i)}_getCssClass(){return this._cssClassCache??(this._cssClassCache=xx(this.parts).map(t=>t.use(void 0,void 0,void 0)).filter(Boolean).concat(this._getParamsClassName()).join(" "))}_getParamsClassName(){return this._paramsClassName??(this._paramsClassName=`ag-theme-params-${++mx().paramsId}`)}_getModeParams(){let t=this._paramsCache;if(!t){const n={[Zr]:{...WG}};for(const i of xx(this.parts))for(const o of Object.keys(i.modeParams)){const r=i.modeParams[o];if(r){const s=n[o]??(n[o]={}),a=new Set;for(const l of Object.keys(r)){const u=r[l];u!==void 0&&(s[l]=u,a.add(l))}if(o===Zr)for(const l of Object.keys(n)){const u=n[l];if(l!==Zr)for(const h of a)delete u[h]}}}this._paramsCache=t=n}return t}_getParamsCss(){if(!this._paramsCssCache){let t="",n="";const i=this._getModeParams(),{overridePrefix:o,themeLogger:r}=this.params,s=o?`--ag-${o}-`:void 0;for(const u of Object.keys(i)){const h=i[u];if(u!==Zr){const g=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(u):u}"]) & {
11
- `;t+=g,n+=g}for(const f of Object.keys(h).sort()){const g=h[f],m=ZG(f,g,r);if(m===!1)r.error(107,{key:f,value:g});else{const v=Wm(f),w=s?v.replace("--ag-",s):v,b=v.replace("--ag-","--ag-inherited-");t+=` ${v}: var(${b}, ${m});
12
- `,n+=` ${b}: var(${w});
13
- `}}u!==Zr&&(t+=`}
14
- `,n+=`}
15
- `)}const a=`:where(.${this._getParamsClassName()})`;let l=`${a} {
16
- ${t}}
17
- `;l+=`:has(> ${a}):not(${a}) {
18
- ${n}}
19
- `,this._paramsCssCache=l}return this._paramsCssCache}},xx=e=>{const t=new Map;for(const i of e)t.set(i.feature,i);const n=[];for(const i of e)(!i.feature||t.get(i.feature)===i)&&n.push(i);return n},XG=e=>{const t=new Set,n=r=>{if(Array.isArray(r))r.forEach(n);else{const s=r?.googleFont;typeof s=="string"&&t.add(s)}};return Object.values(e._getModeParams()).flatMap(r=>Object.values(r)).forEach(n),Array.from(t).sort()},Fx=!1,eV=()=>{if(!Fx){Fx=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},tV=async(e,t)=>{const n=`@import url('https://${nV}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
20
- `;Js(n,document.head,`googleFont:${e}`,void 0,0,t)},nV="fonts.googleapis.com",Px={changeKey:"listItemHeight",type:"length",defaultValue:24},iV=class extends $n{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.globalCSS=[]}wireBeans(e){this.eRootDiv=e.eRootDiv}postConstruct(){const{gos:e,eRootDiv:t}=this;e.setInstanceDomData(t);const n=e.get("themeStyleContainer"),i=typeof ShadowRoot<"u",o=i&&t.getRootNode()instanceof ShadowRoot;this.eStyleContainer=(typeof n=="function"?n():n)??(o?t:document.head),!n&&!o&&i&&oV(t,this.shadowRootError.bind(this),this.addDestroyFunc.bind(this)),this.cssLayer=e.get("themeCssLayer"),this.styleNonce=e.get("styleNonce"),this.addManagedPropertyListener("theme",()=>this.handleThemeChange()),this.handleThemeChange(),this.getSizeEl(Px),this.initVariables(),this.addDestroyFunc(()=>_G(this)),this.mutationObserver=new MutationObserver(()=>{this.fireStylesChangedEvent("theme")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}applyThemeClasses(e,t=[]){const{theme:n}=this,i=n?n._getCssClass():this.applyLegacyThemeClasses();for(const o of Array.from(e.classList))o.startsWith("ag-theme-")&&e.classList.remove(o);if(i){const o=e.className;e.className=`${o}${o?" ":""}${i}${t?.length?" "+t.join(" "):""}`}}applyLegacyThemeClasses(){let e="";this.mutationObserver.disconnect();let t=this.eRootDiv;for(;t;){let n=!1;for(const i of Array.from(t.classList))i.startsWith("ag-theme-")&&(n=!0,e=e?`${e} ${i}`:i);n&&this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement}return e}addGlobalCSS(e,t){this.theme?Js(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(Px)}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(t!=null)return t;const n=this.measureSizeEl(e);return n==="detached"||n==="no-styles"?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,n),n)}measureSizeEl(e){const t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";const n=t.offsetWidth;return n===$m?"no-styles":(this.sizesMeasured=!0,n)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=Hs({tag:"div",cls:"ag-measurement-container"}),this.eRootDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const n=this.getMeasurementContainer();t=Hs({tag:"div"});const i=this.setSizeElStyles(t,e);n.appendChild(t),this.sizeEls.set(e,t);const{type:o,noWarn:r}=e;if(o!=="length"&&o!=="border")return t;let s=this.measureSizeEl(e);s==="no-styles"&&!r&&this.varError(i,e.defaultValue);const a=Hr(this.beans,t,()=>{const l=this.measureSizeEl(e);l==="detached"||l==="no-styles"||(this.lastKnownValues.set(e,l),l!==s&&(s=l,this.fireStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>a()),t}setSizeElStyles(e,t){const{changeKey:n,type:i}=t;let o=Wm(n);return i==="border"?(o.endsWith("-width")&&(o=o.slice(0,-6)),e.className="ag-measurement-element-border",e.style.setProperty("--ag-internal-measurement-border",`var(${o}, solid ${$m}px)`)):e.style.width=`var(${o}, ${$m}px)`,o}handleThemeChange(){const{gos:e,theme:t}=this,n=e.get("theme");let i;if(n==="legacy")i=void 0;else{const o=n??this.getDefaultTheme();o instanceof Rx?i=o:this.themeError(o)}i!==t&&this.handleNewTheme(i),this.postProcessThemeChange(i,n)}handleNewTheme(e){const{gos:t,eRootDiv:n,globalCSS:i}=this,o=this.getAdditionalCss();if(e){px(this.eStyleContainer,this.cssLayer,this.styleNonce,o);for(const[r,s]of i)Js(r,this.eStyleContainer,s,this.cssLayer,0,this.styleNonce);i.length=0}this.theme=e,e?._startUse({loadThemeGoogleFonts:t.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce,moduleCss:o}),OG(this,e?._getParamsCss()??null,e?._getParamsClassName()??null,this.eStyleContainer,this.cssLayer,this.styleNonce),this.applyThemeClasses(n),this.fireStylesChangedEvent("theme")}fireStylesChangedEvent(e){this.eventSvc.dispatchEvent({type:"stylesChanged",[`${e}Changed`]:!0})}},$m=15538,oV=(e,t,n)=>{let i=60;const o=setInterval(()=>{typeof ShadowRoot<"u"&&e.getRootNode()instanceof ShadowRoot&&(t(),clearInterval(o)),(e.isConnected||--i<0)&&clearInterval(o)},1e3);n(()=>clearInterval(o))},rV='.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important}.ag-body-viewport::-webkit-scrollbar,.ag-center-cols-viewport::-webkit-scrollbar,.ag-floating-bottom-viewport::-webkit-scrollbar,.ag-floating-top-viewport::-webkit-scrollbar,.ag-header-viewport::-webkit-scrollbar,.ag-sticky-bottom-viewport::-webkit-scrollbar,.ag-sticky-top-viewport::-webkit-scrollbar{display:none!important}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-left-sticky-bottom,.ag-pinned-right-cols-container,.ag-pinned-right-sticky-bottom,.ag-sticky-bottom-container,.ag-sticky-top-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-active),&:where(.ag-scrollbar-scrolling){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-data-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-sticky-bottom{box-sizing:content-box!important;:where(.ag-pinned-left-sticky-bottom),:where(.ag-pinned-right-sticky-bottom),:where(.ag-sticky-bottom-container){border-top:var(--ag-row-border);box-sizing:border-box}}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;:where(.ag-column-group-closed-icon),:where(.ag-column-group-opened-icon){cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-cell-font-size);font-weight:var(--ag-cell-font-weight);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-data-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}.ag-drag-handle-disabled{opacity:.35;pointer-events:none}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-row-drag-indicator-color);border-radius:calc(var(--ag-row-drag-indicator-width)/2);content:"";height:var(--ag-row-drag-indicator-width);pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-body,.ag-floating-bottom,.ag-floating-top{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-data-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{background-color:var(--ag-row-loading-skeleton-effect-color)}50%{background-color:color-mix(in srgb,transparent,var(--ag-row-loading-skeleton-effect-color) 40%)}to{background-color:var(--ag-row-loading-skeleton-effect-color)}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label,:where(.ag-header-group-cell-selectable) .ag-header-cell-comp-wrapper{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden)),:where(.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)):before,.ag-header-group-cell:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}.ag-header-cell:where(:not(.ag-floating-filter)):where(:hover):before,.ag-header-group-cell:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}.ag-header-cell:where(:not(.ag-floating-filter)):where(.ag-header-cell-moving):before,.ag-header-group-cell:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}:where(.ag-header-cell:not(.ag-floating-filter)>*,.ag-header-group-cell>*){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-column-drag-indicator-color);border-radius:calc(var(--ag-column-drag-indicator-width)/2);content:"";height:100%;position:absolute;top:0;width:var(--ag-column-drag-indicator-width)}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2}:where(.ag-ltr) .ag-header-cell-resize{right:-3px}:where(.ag-rtl) .ag-header-cell-resize{left:-3px}.ag-header-cell-resize:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}:where(.ag-ltr) .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}:where(.ag-rtl) .ag-header-cell-resize:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{container-type:normal;display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{container-type:normal;display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);container-type:inline-size;display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab;:where(.ag-icon){color:var(--ag-drag-handle-color)}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color)}.ag-chart-menu-icon:hover,.ag-chart-settings-next:hover,.ag-chart-settings-prev:hover,.ag-column-group-icons:hover,.ag-column-select-header-icon:hover,.ag-filter-toolpanel-expand:hover,.ag-floating-filter-button-button:hover,.ag-group-title-bar-icon:hover,.ag-header-cell-filter-button:hover,.ag-header-cell-menu-button:hover,.ag-header-expand-icon:hover,.ag-panel-title-bar-button-icon:hover,.ag-panel-title-bar-button:hover,.ag-set-filter-group-icons:hover,:where(.ag-group-contracted) .ag-icon:hover,:where(.ag-group-expanded) .ag-icon:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}:where(.ag-filter-active),:where(.ag-filter-toolpanel-group-instance-header-icon),:where(.ag-filter-toolpanel-instance-header-icon){position:relative}:where(.ag-filter-active):after,:where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-filter-toolpanel-instance-header-icon):after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-ltr) :where(.ag-filter-active):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-instance-header-icon):after{right:-1px}:where(.ag-rtl) :where(.ag-filter-active):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-instance-header-icon):after{left:-1px}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}',sV={wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarPanelAnimationDuration:0,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:Yn,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},cellFontFamily:{ref:"fontFamily"},cellFontSize:{ref:"dataFontSize"},cellFontWeight:{ref:"fontWeight"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:_o,rangeSelectionBackgroundColor:Oo(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:Oo(.5),rangeHeaderHighlightColor:VG(.08),rowNumbersSelectedColor:Oo(.5),rowHoverColor:Oo(.08),columnHoverColor:Oo(.05),selectedRowBackgroundColor:Oo(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:Yn,oddRowBackgroundColor:{ref:"dataBackgroundColor"},wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",rowHeight:{calc:"max(iconSize, cellFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},dragHandleColor:Ni(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:Ni(.1),iconButtonActiveColor:_o,iconButtonActiveBackgroundColor:Oo(.28),iconButtonActiveIndicatorColor:_o,setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:Ni(.8),cellEditingBorder:{color:_o},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,columnDropCellBackgroundColor:Ni(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:Ni(.13)},selectCellBackgroundColor:Ni(.07),selectCellBorder:{color:Ni(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:Yn,filterPanelApplyButtonBackgroundColor:_o,columnPanelApplyButtonColor:Yn,columnPanelApplyButtonBackgroundColor:_o,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:Xs,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:Xs,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:Ni(.15),statusBarLabelColor:Xs,statusBarLabelFontWeight:500,statusBarValueColor:Xs,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedRowTextColor:{ref:"textColor"},rowDragIndicatorColor:{ref:"rangeSelectionBorderColor"},rowDragIndicatorWidth:2,columnDragIndicatorColor:{ref:"accentColor"},columnDragIndicatorWidth:2},aV=".ag-cell-batch-edit{background-color:var(--ag-cell-batch-edit-background-color);color:var(--ag-cell-batch-edit-text-color);display:inherit}.ag-row-batch-edit{background-color:var(--ag-row-batch-edit-background-color);color:var(--ag-row-batch-edit-text-color)}",Ex={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}},lV={...Ex,cellBatchEditTextColor:"#f3d0b3"},cV=()=>ao({feature:"batchEditStyle",params:Ex,css:aV}),uV=cV(),dV=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}.ag-standard-button:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}",hV={buttonTextColor:"inherit",buttonFontWeight:"normal",buttonBackgroundColor:"transparent",buttonBorder:!1,buttonBorderRadius:{ref:"borderRadius"},buttonHorizontalPadding:{calc:"spacing * 2"},buttonVerticalPadding:{ref:"spacing"},buttonHoverTextColor:{ref:"buttonTextColor"},buttonHoverBackgroundColor:{ref:"buttonBackgroundColor"},buttonHoverBorder:{ref:"buttonBorder"},buttonActiveTextColor:{ref:"buttonHoverTextColor"},buttonActiveBackgroundColor:{ref:"buttonHoverBackgroundColor"},buttonActiveBorder:{ref:"buttonHoverBorder"},buttonDisabledTextColor:{ref:"inputDisabledTextColor"},buttonDisabledBackgroundColor:{ref:"inputDisabledBackgroundColor"},buttonDisabledBorder:{ref:"inputDisabledBorder"}},fV=()=>ao({feature:"buttonStyle",params:{...hV,buttonBackgroundColor:Yn,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:_o}},css:dV}),gV=fV(),pV=".ag-column-drop-vertical-empty-message{align-items:center;border:dashed var(--ag-border-width);border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}",mV=()=>ao({feature:"columnDropStyle",css:pV}),Dx=mV(),vV={formulaToken1Color:"#3269c6",formulaToken1BackgroundColor:{ref:"formulaToken1Color",mix:.08},formulaToken1Border:{color:{ref:"formulaToken1Color"}},formulaToken2Color:"#c0343f",formulaToken2BackgroundColor:{ref:"formulaToken2Color",mix:.06},formulaToken2Border:{color:{ref:"formulaToken2Color"}},formulaToken3Color:"#8156b8",formulaToken3BackgroundColor:{ref:"formulaToken3Color",mix:.08},formulaToken3Border:{color:{ref:"formulaToken3Color"}},formulaToken4Color:"#007c1f",formulaToken4BackgroundColor:{ref:"formulaToken4Color",mix:.06},formulaToken4Border:{color:{ref:"formulaToken4Color"}},formulaToken5Color:"#b03e85",formulaToken5BackgroundColor:{ref:"formulaToken5Color",mix:.08},formulaToken5Border:{color:{ref:"formulaToken5Color"}},formulaToken6Color:"#b74900",formulaToken6BackgroundColor:{ref:"formulaToken6Color",mix:.06},formulaToken6Border:{color:{ref:"formulaToken6Color"}},formulaToken7Color:"#247492",formulaToken7BackgroundColor:{ref:"formulaToken7Color",mix:.08},formulaToken7Border:{color:{ref:"formulaToken7Color"}}},CV=()=>ao({feature:"formulaStyle",params:vV}),wV=CV(),bV={warn:(...e)=>{le(e[0],e[1])},error:(...e)=>{vt(e[0],e[1])},preInitErr:(...e)=>{Sc(e[0],e[2],e[1])}},yV=()=>JG(bV).withParams(sV).withPart(gV).withPart(Dx).withPart(uV).withPart(wV),SV='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color)}&:where(.ag-checked):after{background-color:var(--ag-checkbox-checked-shape-color)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input,.ag-radio-button-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}.ag-checkbox-input-wrapper:after,.ag-radio-button-input-wrapper:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}.ag-checkbox-input-wrapper:where(:focus-within,:active),.ag-radio-button-input-wrapper:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color)}&:where(.ag-indeterminate):after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',RV=()=>ao({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:Yn,checkboxUncheckedBorderColor:Bi(.3),checkboxCheckedBackgroundColor:_o,checkboxCheckedBorderColor:{ref:"checkboxCheckedBackgroundColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:Yn,checkboxIndeterminateBackgroundColor:Bi(.3),checkboxIndeterminateBorderColor:{ref:"checkboxIndeterminateBackgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:Yn,radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:SV}),xV=RV(),Tx=()=>({...vh,...lV,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:Bi(.05),rowHoverColor:Oo(.15),selectedRowBackgroundColor:Oo(.2),menuBackgroundColor:Bi(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:Xs,columnPanelApplyButtonColor:Xs,findMatchColor:Yn,findActiveMatchColor:Yn,checkboxUncheckedBorderColor:Bi(.4),toggleButtonOffBackgroundColor:Bi(.4),rowBatchEditBackgroundColor:Bi(.1),formulaToken1Color:"#4da3e5",formulaToken2Color:"#f55864",formulaToken3Color:"#b688f2",formulaToken4Color:"#24bb4a",formulaToken5Color:"#e772ba",formulaToken6Color:"#f69b5f",formulaToken7Color:"#a3e6ff"}),FV=()=>({...Tx(),backgroundColor:"#1f2836"}),PV=()=>ao({feature:"colorScheme",params:vh,modeParams:{light:vh,dark:Tx(),"dark-blue":FV()}}),EV=PV(),Ax={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>'},Ix={aasc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2012 8.07928C13.6346 8.0793 14.0128 8.15365 14.3359 8.30193C14.6609 8.45018 14.9141 8.65595 15.0947 8.9201C15.2754 9.18439 15.3683 9.49109 15.374 9.83904H14.1904C14.1676 9.60898 14.0695 9.4303 13.8965 9.30291C13.7235 9.1756 13.4889 9.1115 13.1924 9.1115C12.9909 9.1115 12.8204 9.1404 12.6816 9.19744C12.543 9.25255 12.4364 9.32917 12.3623 9.42791C12.2901 9.52678 12.2539 9.63933 12.2539 9.76482C12.2501 9.8692 12.272 9.9604 12.3193 10.0383C12.3688 10.1162 12.4369 10.1843 12.5225 10.2414C12.6079 10.2964 12.7064 10.3451 12.8184 10.3869C12.9304 10.4268 13.0505 10.4609 13.1777 10.4894L13.7031 10.6144C13.9578 10.6715 14.1914 10.7479 14.4043 10.8429C14.6173 10.938 14.8021 11.0547 14.958 11.1935C15.1138 11.3323 15.2348 11.4957 15.3203 11.6838C15.4077 11.8719 15.4522 12.088 15.4541 12.3312C15.4522 12.6885 15.3611 12.9986 15.1807 13.2609C15.0019 13.5214 14.7427 13.7248 14.4043 13.8693C14.0678 14.0118 13.6617 14.0832 13.1865 14.0832C12.7153 14.0832 12.3048 14.0107 11.9551 13.8664C11.6071 13.7219 11.3345 13.5071 11.1387 13.2238C10.9449 12.9387 10.8435 12.5862 10.834 12.1662H12.0283C12.0416 12.362 12.0984 12.5252 12.1973 12.6564C12.298 12.7857 12.4323 12.8838 12.5996 12.9504C12.7688 13.0149 12.96 13.047 13.1729 13.047C13.3817 13.047 13.563 13.0169 13.7168 12.9562C13.8727 12.8954 13.9935 12.8106 14.0791 12.7023C14.1647 12.5939 14.208 12.469 14.208 12.3283C14.2079 12.1974 14.1686 12.0875 14.0908 11.9982C14.0148 11.9089 13.9022 11.8324 13.7539 11.7697C13.6076 11.707 13.4276 11.6501 13.2148 11.5988L12.5791 11.4387C12.0869 11.3189 11.6982 11.1318 11.4131 10.8771C11.128 10.6224 10.9855 10.2793 10.9873 9.84783C10.9854 9.49418 11.0804 9.18439 11.2705 8.9201C11.4625 8.65603 11.7261 8.45015 12.0605 8.30193C12.3951 8.15369 12.7754 8.07928 13.2012 8.07928Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 14.0002H4.48926L4.05664 12.6681H1.94824L1.51465 14.0002H0.19043L2.20703 8.15935H3.79883L5.8125 14.0002ZM2.26172 11.7043H3.74316L3.02539 9.49334H2.98047L2.26172 11.7043Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 8.15935C8.88165 8.15935 9.24031 8.22251 9.52734 8.34978C9.81445 8.47717 10.0303 8.65477 10.1748 8.88103C10.3192 9.10536 10.3916 9.36368 10.3916 9.65642C10.3916 9.88452 10.3461 10.085 10.2549 10.258C10.1637 10.4289 10.0384 10.5696 9.87891 10.6799C9.72117 10.7882 9.54024 10.8657 9.33691 10.9113V10.9679C9.55917 10.9775 9.76716 11.0406 9.96094 11.1564C10.1568 11.2724 10.3158 11.4356 10.4375 11.6447C10.5591 11.8519 10.6201 12.099 10.6201 12.3859C10.6201 12.6958 10.5427 12.9727 10.3887 13.216C10.2366 13.4573 10.0113 13.6486 9.71289 13.7892C9.41443 13.9299 9.04655 14.0002 8.60938 14.0002H6.11426V8.15935H8.45215ZM7.34863 12.9904H8.35547C8.69943 12.9904 8.95057 12.9252 9.1084 12.7941C9.26621 12.661 9.34473 12.4834 9.34473 12.2629C9.34468 12.1014 9.30643 11.9587 9.22852 11.8351C9.15056 11.7116 9.03903 11.6145 8.89453 11.5441C8.75195 11.4738 8.58148 11.4387 8.38379 11.4387H7.34863V12.9904ZM7.34863 10.6037H8.26465C8.43369 10.6036 8.58376 10.5737 8.71484 10.5148C8.84793 10.454 8.95227 10.3683 9.02832 10.258C9.10628 10.1477 9.14551 10.0155 9.14551 9.8615C9.14546 9.65055 9.07008 9.48001 8.91992 9.35076C8.77165 9.22169 8.56064 9.15741 8.28711 9.1574H7.34863V10.6037Z" fill="black"/><path d="M7.16602 0.377127C7.44584 0.189493 7.82551 0.20905 8.08496 0.442557L11.418 3.44256C11.7257 3.71966 11.7507 4.19428 11.4736 4.50213C11.1966 4.80961 10.7228 4.83441 10.415 4.55779L7.60938 2.03338L5.11328 4.53045C4.82042 4.82326 4.34562 4.82322 4.05273 4.53045C3.75986 4.23757 3.75989 3.7628 4.05273 3.4699L7.05273 0.4699L7.16602 0.377127Z" fill="black"/></svg>',adesc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.3867 11.4697C10.6796 11.1771 11.1544 11.1769 11.4473 11.4697C11.7399 11.7626 11.7399 12.2374 11.4473 12.5303L8.44727 15.5303L8.33398 15.623C8.05425 15.8106 7.67449 15.7909 7.41504 15.5576L4.08203 12.5576C3.77415 12.2805 3.74927 11.8059 4.02637 11.498C4.30342 11.1907 4.77722 11.1657 5.08496 11.4424L7.89062 13.9668L10.3867 11.4697Z" fill="black"/><path d="M13.2012 3.0791C13.6346 3.07912 14.0128 3.1535 14.3359 3.30176C14.6611 3.45006 14.9141 3.65661 15.0947 3.9209C15.2752 4.18513 15.3683 4.49104 15.374 4.83887H14.1904C14.1676 4.60882 14.0695 4.43012 13.8965 4.30273C13.7235 4.17546 13.4889 4.11133 13.1924 4.11133C12.9909 4.11133 12.8204 4.14023 12.6816 4.19727C12.5431 4.25236 12.4364 4.32902 12.3623 4.42773C12.2901 4.52659 12.2539 4.63919 12.2539 4.76465C12.2501 4.86901 12.272 4.96023 12.3193 5.03809C12.3688 5.11604 12.4369 5.18417 12.5225 5.24121C12.6079 5.29623 12.7064 5.34496 12.8184 5.38672C12.9304 5.42661 13.0505 5.46075 13.1777 5.48926L13.7031 5.61426C13.9578 5.67128 14.1914 5.74776 14.4043 5.84277C14.6172 5.93784 14.8021 6.05457 14.958 6.19336C15.1139 6.33216 15.2348 6.49633 15.3203 6.68457C15.4076 6.8727 15.4522 7.08885 15.4541 7.33203C15.4521 7.68929 15.3612 7.99944 15.1807 8.26172C15.0019 8.52216 14.7427 8.72465 14.4043 8.86914C14.0678 9.01165 13.6617 9.08301 13.1865 9.08301C12.7153 9.08299 12.3048 9.01057 11.9551 8.86621C11.6072 8.72173 11.3345 8.50786 11.1387 8.22461C10.9447 7.9394 10.8435 7.58622 10.834 7.16602H12.0283C12.0416 7.36176 12.0985 7.52509 12.1973 7.65625C12.298 7.78554 12.4323 7.88365 12.5996 7.9502C12.7688 8.01477 12.96 8.04785 13.1729 8.04785C13.3817 8.04781 13.5629 8.01678 13.7168 7.95605C13.8727 7.89522 13.9935 7.81051 14.0791 7.70215C14.1646 7.59387 14.2079 7.46965 14.208 7.3291C14.208 7.19796 14.1687 7.08739 14.0908 6.99805C14.0148 6.90868 13.9022 6.83228 13.7539 6.76953C13.6076 6.70685 13.4276 6.64993 13.2148 6.59863L12.5791 6.43848C12.0868 6.31871 11.6982 6.13163 11.4131 5.87695C11.1279 5.62221 10.9855 5.27916 10.9873 4.84766C10.9854 4.49404 11.0804 4.18517 11.2705 3.9209C11.4625 3.65661 11.7259 3.45006 12.0605 3.30176C12.3951 3.15353 12.7754 3.0791 13.2012 3.0791Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 9H4.48926L4.05664 7.66797H1.94824L1.51465 9H0.19043L2.20703 3.15918H3.79883L5.8125 9ZM2.26172 6.7041H3.74316L3.02539 4.49414H2.98047L2.26172 6.7041Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 3.15918C8.88181 3.15918 9.24025 3.22322 9.52734 3.35059C9.81445 3.47798 10.0303 3.6546 10.1748 3.88086C10.3193 4.10518 10.3916 4.36351 10.3916 4.65625C10.3916 4.88432 10.3461 5.08484 10.2549 5.25781C10.1636 5.4289 10.0386 5.57039 9.87891 5.68066C9.72118 5.78898 9.54022 5.86549 9.33691 5.91113V5.96875C9.55913 5.9783 9.76719 6.04044 9.96094 6.15625C10.1568 6.27223 10.3158 6.43538 10.4375 6.64453C10.5591 6.85173 10.6201 7.09875 10.6201 7.38574C10.6201 7.69567 10.5427 7.97245 10.3887 8.21582C10.2366 8.45719 10.0113 8.64841 9.71289 8.78906C9.41442 8.9297 9.04658 8.99999 8.60938 9H6.11426V3.15918H8.45215ZM7.34863 7.99023H8.35547C8.69948 7.99023 8.95057 7.92504 9.1084 7.79395C9.26621 7.66085 9.34473 7.48325 9.34473 7.2627C9.34466 7.10125 9.3064 6.95844 9.22852 6.83496C9.15056 6.71143 9.03899 6.61427 8.89453 6.54395C8.75196 6.47365 8.58145 6.43848 8.38379 6.43848H7.34863V7.99023ZM7.34863 5.60352H8.26465C8.43369 5.60347 8.58376 5.57354 8.71484 5.51465C8.84791 5.45381 8.95228 5.36807 9.02832 5.25781C9.10623 5.14755 9.14551 5.01529 9.14551 4.86133C9.14542 4.65046 9.07002 4.48078 8.91992 4.35156C8.77163 4.22228 8.56087 4.15724 8.28711 4.15723H7.34863V5.60352Z" fill="black"/></svg>',"chevron-down":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 6L8 10L4 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-left":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 12L6 8L10 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-right":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12L10 8L6 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-up":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 10L8 6L12 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"column-arrow":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 26C0 28.2092 1.79086 30 4 30H14C16.2091 30 18 28.2092 18 26V15H25.8786L24.4394 16.4393C23.8536 17.0251 23.8536 17.9749 24.4394 18.5607C25.0252 19.1464 25.9748 19.1464 26.5606 18.5607L30.5606 14.5607C31.1464 13.9749 31.1464 13.0251 30.5606 12.4393L26.5606 8.43934C25.9748 7.85356 25.0252 7.85356 24.4394 8.43934C23.8536 9.02512 23.8536 9.97488 24.4394 10.5607L25.8786 12H18V6C18 3.79086 16.2091 2 14 2H4C1.79086 2 0 3.79086 0 6V26ZM14 5H10.5V12H15V6C15 5.44772 14.5523 5 14 5ZM4 5H7.5V12H3V6C3 5.44772 3.44772 5 4 5ZM10.5 15H15V26C15 26.5522 14.5523 27 14 27H10.5V15ZM4 27H7.5V15H3V26C3 26.5522 3.44772 27 4 27Z" fill="currentColor"/></svg>',edit:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 10.6262V12.5012H5.375L10.905 6.97122L9.03 5.09622L3.5 10.6262ZM12.355 5.52122C12.4014 5.47497 12.4381 5.42002 12.4632 5.35953C12.4883 5.29905 12.5012 5.23421 12.5012 5.16872C12.5012 5.10324 12.4883 5.0384 12.4632 4.97791C12.4381 4.91742 12.4014 4.86248 12.355 4.81622L11.185 3.64622C11.1387 3.59987 11.0838 3.5631 11.0233 3.53801C10.9628 3.51291 10.898 3.5 10.8325 3.5C10.767 3.5 10.7022 3.51291 10.6417 3.53801C10.5812 3.5631 10.5263 3.59987 10.48 3.64622L9.565 4.56122L11.44 6.43622L12.355 5.52122Z" fill="currentColor"/></svg>',"filter-add":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.12126 7.75L10.8517 7.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M6.65934 11.748L9.32778 11.748" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M12.2943 1.04872V6.19184M14.9886 3.74341H9.68478" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M8.25488 3C8.04799 3.18323 7.91706 3.45099 7.91699 3.74902C7.91713 4.04868 8.04988 4.31681 8.25879 4.5H2C1.58579 4.5 1.25 4.16421 1.25 3.75C1.25 3.33579 1.58579 3 2 3H8.25488Z" fill="currentColor"/></svg>',"pinned-bottom":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22ZM12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536Z"/></svg>',"pinned-top":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22ZM3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536Z"/></svg>',"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>',"un-pin":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11Z"/><path fill="currentColor" d="M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904l.589-.825Zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28l2.887-4.044ZM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972L9.277 1Z"/></svg>'},DV=(e={})=>{let t="";for(const n of[...Object.keys(Ax),...Object.keys(Ix)]){const i=TV(n,e.strokeWidth);t+=`.ag-icon-${n}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(i)}'); }
21
- `}return t},TV=(e,t=1.5)=>{const n=Ix[e];if(n)return n;const i=Ax[e];if(!i)throw new Error(`Missing icon data for ${e}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${t}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+i+"</svg>"},AV=(e={})=>ao({feature:"iconSet",css:()=>DV(e)}),IV=AV(),MV=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}&:where(.ag-ltr,.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding:0 var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper),:where(.ag-filter-add-select),:where(.ag-filter-filter),:where(.ag-filter-toolpanel-search),:where(.ag-floating-filter-search-icon),:where(.ag-mini-filter){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper),:where(.ag-ltr) :where(.ag-filter-add-select),:where(.ag-ltr) :where(.ag-filter-filter),:where(.ag-ltr) :where(.ag-filter-toolpanel-search),:where(.ag-ltr) :where(.ag-floating-filter-search-icon),:where(.ag-ltr) :where(.ag-mini-filter){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper),:where(.ag-rtl) :where(.ag-filter-add-select),:where(.ag-rtl) :where(.ag-filter-filter),:where(.ag-rtl) :where(.ag-filter-toolpanel-search),:where(.ag-rtl) :where(.ag-floating-filter-search-icon),:where(.ag-rtl) :where(.ag-mini-filter){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}',kV=".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){&:focus{box-shadow:var(--ag-focus-shadow);&:where(.invalid),&:where(:invalid){box-shadow:var(--ag-focus-error-shadow)}}}",LV={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"},pickerButtonBorder:!1,pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:!1,pickerListBackgroundColor:{ref:"backgroundColor"},colorPickerThumbSize:18,colorPickerTrackSize:12,colorPickerThumbBorderWidth:3,colorPickerTrackBorderRadius:12,colorPickerColorBorderRadius:4},OV=()=>ao({feature:"inputStyle",params:{...LV,inputBackgroundColor:Yn,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:_o},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:Bi(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>MV+kV}),_V=OV(),NV='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:solid var(--ag-border-width) var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:solid var(--ag-border-width) var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative}.ag-tab:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}.ag-tab.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}:where(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}:where(.ag-rtl) .ag-tab.ag-tab-selected:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}:where(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}:where(.ag-rtl) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}.ag-tab:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}.ag-tab.ag-tab-selected:after{opacity:1}',BV={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:{ref:"borderWidth"},tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},HV=()=>ao({feature:"tabStyle",params:{...BV,tabBarBorder:!0,tabBarBackgroundColor:Ni(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:Yn},css:NV}),GV=HV(),VV=()=>({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),WV=()=>yV().withPart(xV).withPart(EV).withPart(IV).withPart(GV).withPart(_V).withPart(Dx).withParams(VV()),zV=WV(),Jr=(e,t,n,i,o)=>({changeKey:e,type:t,defaultValue:n,noWarn:i,cacheDefault:o}),UV=Jr("cellHorizontalPadding","length",16),$V=Jr("indentationLevel","length",0,!0,!0),jV=Jr("rowGroupIndentSize","length",0),Mx=Jr("rowHeight","length",42),kx=Jr("headerHeight","length",48),jm=Jr("rowBorderWidth","border",1),Lx=Jr("pinnedRowBorderWidth","border",1),KV=Jr("headerRowBorderWidth","border",1);function qV(e,t){for(const n of t.sort((i,o)=>i.moduleName.localeCompare(o.moduleName))){const i=n.css;i&&e.set(`module-${n.moduleName}`,i)}}var QV=class extends iV{initVariables(){this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(Mx),this.getSizeEl(kx),this.getSizeEl(jm),this.getSizeEl(Lx),this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(Lx)}getRowBorderWidth(){return this.getCSSVariablePixelValue(jm)}getHeaderRowBorderWidth(){return this.getCSSVariablePixelValue(KV)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(Mx)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(kx)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(UV)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue($V),n=this.getCSSVariablePixelValue(jV);return e-1+n*t}getCellPadding(){const e=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+e}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}refreshRowHeightVariable(){const{eRootDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),n=this.gos.get("rowHeight");if(n==null||isNaN(n)||!isFinite(n))return t!==null&&e.style.setProperty("--ag-line-height",null),-1;const i=`${n}px`;return t!=i?(e.style.setProperty("--ag-line-height",i),n):t!=""?Number.parseFloat(t):-1}fireStylesChangedEvent(e){e==="rowBorderWidth"&&this.refreshRowBorderWidthVariable(),super.fireStylesChangedEvent(e)}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(jm);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}postProcessThemeChange(e,t){e&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&vt(t?106:239)}getAdditionalCss(){const e=new Map;return e.set("core",[rV]),qV(e,Array.from(sO())),e}getDefaultTheme(){return zV}varError(e,t){le(9,{variable:{cssName:e,defaultValue:t}})}themeError(e){vt(240,{theme:e})}shadowRootError(){vt(293)}},YV=class extends $n{constructor(){super(...arguments),this.beanName="eventSvc",this.eventServiceType="global",this.globalSvc=new _s}addListener(e,t,n){this.globalSvc.addEventListener(e,t,n)}removeListener(e,t,n){this.globalSvc.removeEventListener(e,t,n)}addGlobalListener(e,t=!1){this.globalSvc.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}dispatchEvent(e){this.globalSvc.dispatchEvent(this.gos.addCommon(e))}dispatchEventOnce(e){this.globalSvc.dispatchEventOnce(this.gos.addCommon(e))}},ZV=class extends YV{postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}};function Km(e,t,n){const i=e.visibleCols.headerGroupRowCount;if(n>=i)return{column:t,headerRowIndex:n};let o=t.getParent();for(;o&&o.getProvidedColumnGroup().getLevel()>n;)o=o.getParent();const r=t.isSpanHeaderHeight();return!o||r&&o.isPadding()?{column:t,headerRowIndex:i}:{column:o,headerRowIndex:o.getProvidedColumnGroup().getLevel()}}var JV=class extends X{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,n=>{this.gridBodyCon=n.gridBodyCtrl});const t=un(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let n;const{colModel:i,colGroupSvc:o,ctrlsSvc:r}=this.beans;if(typeof e=="string"?(n=i.getCol(e),n||(n=o?.getColumnGroup(e)??null)):n=e,!n)return null;const a=r.getHeaderRowContainerCtrl()?.getAllCtrls(),l=Tt(a||[]).type==="filter",u=_i(this.beans)-1;let h=-1,f=n;for(;f;)h++,f=f.getParent();let g=h;return t&&l&&g===u-1&&g++,g===-1?null:{headerRowIndex:g,column:n}}navigateVertically(e,t){const{focusSvc:n,visibleCols:i}=this.beans,{focusedHeader:o}=n;if(!o)return!1;const{headerRowIndex:r}=o,s=o.column,a=_i(this.beans),l=this.getHeaderRowType(r),u=i.headerGroupRowCount;let{headerRowIndex:h,column:f,headerRowIndexWithoutSpan:g}=e==="UP"?XV(l,s,r):e5(s,r,u),m=!1;return h<0&&(h=0,f=s,m=!0),h>=a?(h=-1,this.currentHeaderRowWithoutSpan=-1):g!==void 0&&(this.currentHeaderRowWithoutSpan=g),!m&&!f?!1:n.focusHeaderPosition({headerPosition:{headerRowIndex:h,column:f},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,n){const{focusSvc:i,gos:o}=this.beans,r={...i.focusedHeader};let s,a;this.currentHeaderRowWithoutSpan!==-1?r.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=r.headerRowIndex,e==="LEFT"!==o.get("enableRtl")?(a="Before",s=this.findHeader(r,a)):(a="After",s=this.findHeader(r,a));const l=o.getCallback("tabToNextHeader");if(t&&l){const u=i.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:s,direction:a});if(u){const{headerRowIndex:h}=i.focusedHeader||{};h!=null&&h!=r.headerRowIndex&&(this.currentHeaderRowWithoutSpan=h)}return u}return s||!t?i.focusHeaderPosition({headerPosition:s,direction:a,fromTab:t,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(r,a,n)}focusNextHeaderRow(e,t,n){const i=this.beans,o=e.headerRowIndex;let r=null,s;const a=_i(i),l=this.beans.visibleCols.allCols;if(t==="Before"){if(o<=0)return!1;r=Tt(l),s=o-1,this.currentHeaderRowWithoutSpan-=1}else r=l[0],s=o+1,this.currentHeaderRowWithoutSpan<a?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1;let{column:u,headerRowIndex:h}=Km(this.beans,r,s);return h>=a&&(h=-1),i.focusSvc.focusHeaderPosition({headerPosition:{column:u,headerRowIndex:h},direction:t,fromTab:!0,allowUserOverride:!0,event:n})}scrollToColumn(e,t="After"){if(e.getPinned())return;let n;if(tn(e)){const i=e.getDisplayedLeafColumns();n=t==="Before"?Tt(i):i[0]}else n=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(n)}findHeader(e,t){const{colGroupSvc:n,visibleCols:i}=this.beans;let o=e.column;if(o instanceof Ec){const l=o.getDisplayedLeafColumns();o=t==="Before"?l[0]:l[l.length-1]}const r=t==="Before"?i.getColBefore(o):i.getColAfter(o);if(!r)return;const s=i.headerGroupRowCount;if(e.headerRowIndex>=s)return{headerRowIndex:e.headerRowIndex,column:r};const a=n?.getColGroupAtLevel(r,e.headerRowIndex);return a?a.isPadding()&&r.isSpanHeaderHeight()?{headerRowIndex:i.headerGroupRowCount,column:r}:{headerRowIndex:e.headerRowIndex,column:a??r}:{headerRowIndex:r instanceof zs&&r.isSpanHeaderHeight()?i.headerGroupRowCount:e.headerRowIndex,column:r}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}};function XV(e,t,n){const i=n-1;if(e!=="filter"){const o=t instanceof zs&&t.isSpanHeaderHeight();let r=t.getParent();for(;r&&(r.getProvidedColumnGroup().getLevel()>i||o&&r.isPadding());)r=r.getParent();if(r)return o?{column:r,headerRowIndex:r.getProvidedColumnGroup().getLevel(),headerRowIndexWithoutSpan:i}:{column:r,headerRowIndex:i,headerRowIndexWithoutSpan:i}}return{column:t,headerRowIndex:i,headerRowIndexWithoutSpan:i}}function e5(e,t,n){const i=t+1,o={column:e,headerRowIndex:i,headerRowIndexWithoutSpan:i};if(e instanceof Ec){if(i>=n)return{column:e.getDisplayedLeafColumns()[0],headerRowIndex:n,headerRowIndexWithoutSpan:i};let s=e.getDisplayedChildren()[0];if(s instanceof Ec&&s.isPadding()){const l=s.getDisplayedLeafColumns()[0];l.isSpanHeaderHeight()&&(s=l)}o.column=s,s instanceof zs&&s.isSpanHeaderHeight()&&(o.headerRowIndex=n,o.headerRowIndexWithoutSpan=i)}return o}var t5=class extends X{constructor(){super(...arguments),this.beanName="focusSvc",this.focusFallbackTimeout=null,this.needsFocusRestored=!1}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.rowRenderer=e.rowRenderer,this.navigation=e.navigation,this.filterManager=e.filterManager,this.overlays=e.overlays}postConstruct(){const e=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:e,columnRowGroupChanged:e}),this.addDestroyFunc(K_(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=!0,this.focusFallbackTimeout!=null&&clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=!1,this.focusFallbackTimeout!=null&&(clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=null)}shouldTakeFocus(){return this.gos.get("suppressFocusAfterRefresh")?(this.setFocusRecovered(),!1):this.needsFocusRestored?(this.setFocusRecovered(),!0):this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell)return;const e=this.focusedCell.column,t=this.colModel.getCol(e.getId());e!==t&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){const{gos:e,focusedCell:t}=this;return e.get("suppressFocusAfterRefresh")||e.get("suppressCellFocus")||!t||!this.doesRowOrCellHaveBrowserFocus()?null:t}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader||!this.isDomDataPresentInHierarchy(Lt(this.beans),CR)?null:this.focusedHeader}doesRowOrCellHaveBrowserFocus(){const e=Lt(this.beans);return this.isDomDataPresentInHierarchy(e,ih,!0)?!0:this.isDomDataPresentInHierarchy(e,oh,!0)}isDomDataPresentInHierarchy(e,t,n){let i=e;for(;i;){const o=m0(this.gos,i,t);if(o)return o.destroyed&&n?(this.attemptToRecoverFocus(),!1):!0;i=i.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:n,column:i}=e,o={rowIndex:t,rowPinned:n,column:i,isFullWidthCell:!1},r=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n});return r&&(o.isFullWidthCell=r.isFullWidth()),o}clearFocusedCell(){if(this.focusedCell==null)return;const e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCell(e){this.setFocusRecovered();const{column:t,rowIndex:n,rowPinned:i,forceBrowserFocus:o=!1,preventScrollOnBrowserFocus:r=!1,sourceEvent:s}=e,a=this.colModel.getCol(t);if(!a){this.focusedCell=null;return}this.focusedCell={rowIndex:n,rowPinned:nr(i),column:a};const l=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...l,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:o,preventScrollOnBrowserFocus:r,sourceEvent:s}),this.previousCellFocusParams=l}isCellFocused(e){return this.focusedCell==null?!1:am(e,this.focusedCell)}isHeaderWrapperFocused(e){if(this.focusedHeader==null)return!1;const{column:t,rowCtrl:{rowIndex:n,pinned:i}}=e,{column:o,headerRowIndex:r}=this.focusedHeader;return t===o&&n===r&&i==o.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),oo(this.beans))return!1;const{direction:t,fromTab:n,allowUserOverride:i,event:o,fromCell:r,rowWithoutSpanValue:s,scroll:a=!0}=e;let{headerPosition:l}=e;if(r&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(l);if(i){const u=this.focusedHeader,h=_i(this.beans);if(n){const f=this.gos.getCallback("tabToNextHeader");f&&(l=this.getHeaderPositionFromUserFunc({userFunc:f,direction:t,currentPosition:u,headerPosition:l,headerRowCount:h}))}else{const f=this.gos.getCallback("navigateToNextHeader");if(f&&o){const g={key:o.key,previousHeaderPosition:u,nextHeaderPosition:l,headerRowCount:h,event:o},m=f(g);l=m===null?u:m}}}return l?this.focusProvidedHeaderPosition({headerPosition:l,direction:t,event:o,fromCell:r,rowWithoutSpanValue:s,scroll:a}):!1}focusHeaderPositionFromUserFunc(e){if(oo(this.beans))return!1;const{userFunc:t,headerPosition:n,direction:i,event:o}=e,r=this.focusedHeader,s=_i(this.beans),a=this.getHeaderPositionFromUserFunc({userFunc:t,direction:i,currentPosition:r,headerPosition:n,headerRowCount:s});return!!a&&this.focusProvidedHeaderPosition({headerPosition:a,direction:i,event:o})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:n,currentPosition:i,headerPosition:o,headerRowCount:r}=e,a=t({backwards:n==="Before",previousHeaderPosition:i,nextHeaderPosition:o,headerRowCount:r});return a===!0?i:a===!1?null:a}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:n,fromCell:i,rowWithoutSpanValue:o,event:r,scroll:s=!0}=e,{column:a,headerRowIndex:l}=t,{filterManager:u,ctrlsSvc:h,headerNavigation:f}=this.beans;if(this.focusedHeader&&M2(e.headerPosition,this.focusedHeader))return!1;if(l===-1)return u?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:a,event:r});s&&f?.scrollToColumn(a,n);const m=h.getHeaderRowContainerCtrl(a.getPinned())?.focusHeader(t.headerRowIndex,a,r)||!1;return f&&m&&(o!=null||i)&&(f.currentHeaderRowWithoutSpan=o??-1),m}focusFirstHeader(){if(this.overlays?.exclusive&&this.focusOverlay())return!0;const e=this.visibleCols.allCols[0];if(!e)return!1;const t=Km(this.beans,e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.exclusive&&this.focusOverlay(!0))return!0;const t=_i(this.beans)-1,n=Tt(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return this.focusedCell==null?!1:this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===nr(t)}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&js(t,e)}getDefaultTabToNextGridContainerTarget(e){const{backwards:t,focusableContainers:n}=e,i=t?-1:1;let o;const r=()=>(o===void 0&&(o=this.getGridBodyTabTarget(t)),o);for(let s=e.nextIndex;s>=0&&s<n.length;s+=i){const a=P2(n[s],r);if(a)return a}return null}getGridBodyTabTarget(e){if(e)return this.getGridViewTabTarget({column:Tt(this.visibleCols.allCols),backwards:!0});const t=this.visibleCols.allCols[0];return this.gos.get("headerHeight")===0||oo(this.beans)?this.getGridViewTabTarget({column:t}):t?Km(this.beans,t,0):null}getGridViewTabTarget(e){const{backwards:t=!1}=e,n=e.column??this.focusedHeader?.column;if(!n||this.overlays?.exclusive)return null;if(Ic(this.beans))return t&&!oo(this.beans)?{headerRowIndex:_i(this.beans)-1,column:n}:null;const i=t?uR(this.beans):cR(this.beans);if(i?.rowIndex==null){if(this.overlays?.isVisible())return null;if(t&&!oo(this.beans)){const r=Tt(this.visibleCols.allCols);if(r)return{headerRowIndex:_i(this.beans)-1,column:r}}return null}const o=Ao(this.beans,i);return!o||n.isSuppressNavigable(o)||t&&this.rowRenderer.getRowByPosition(i)?.isFullWidth()?null:{rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:n}}focusGridView(e){const{backwards:t=!1,canFocusOverlay:n=!0,event:i}=e;if(this.overlays?.exclusive)return n&&this.focusOverlay(t);if(Ic(this.beans))return t&&!oo(this.beans)?this.focusLastHeader():n&&this.focusOverlay(t)?!0:t?!1:nl(this.beans,t);const o=t?uR(this.beans):cR(this.beans);if(o){const r=e.column??this.focusedHeader?.column,{rowIndex:s,rowPinned:a}=o,l=Ao(this.beans,o);if(!r||!l||s==null)return!1;if(r.isSuppressNavigable(l)){const u=this.gos.get("enableRtl");let h;return!i||i.key===K.TAB?h=u?K.LEFT:K.RIGHT:h=i.key,this.beans.navigation?.navigateToNextCell(null,h,{rowIndex:s,column:r,rowPinned:a||null},!0),!0}return this.navigation?.ensureCellVisible({rowIndex:s,column:r,rowPinned:a}),t&&this.rowRenderer.getRowByPosition(o)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(o,t)||(this.setFocusedCell({rowIndex:s,column:r,rowPinned:nr(a),forceBrowserFocus:!0}),Kn(r)||this.beans.rangeSvc?.setRangeToCell({rowIndex:s,rowPinned:a,column:r})),!0}return!!(n&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const n=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:n,headerRowIndex:_i(this.beans)-1}}):this.focusGridView({column:n})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},n5=class extends X{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){const{gos:e}=this;this.horizontalScrollShowing=e.get("alwaysShowHorizontalScroll")===!0,this.verticalScrollShowing=e.get("alwaysShowVerticalScroll")===!0,this.getScrollbarWidth();const t=this.updateScrollVisible.bind(this);this.addManagedEventListeners({displayedColumnsChanged:t,displayedColumnsWidthChanged:t,newColumnsLoaded:t})}updateScrollVisible(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),n=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==n)&&(this.horizontalScrollGap=t,this.verticalScrollGap=n,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(this.scrollbarWidth==null){const e=this.gos.get("scrollbarWidth"),n=typeof e=="number"&&e>=0?e:Yp();n!=null&&(this.scrollbarWidth=n,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},i5=class extends X{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:n}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),n.destroy(),super.destroy()}},o5=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","pinnedRowsChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterUiChanged","filterOpened","floatingFilterUiChanged","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel","findChanged","rowResizeStarted","rowResizeEnded","columnsReset","bulkEditingStarted","bulkEditingStopped","batchEditingStarted","batchEditingStopped"],Nc=new Set(["gridPreDestroyed","fillStart","pasteStart"]),wh=o5.reduce((e,t)=>(e[t]=AO(t),e),{}),al={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agExportingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agNoMatchingRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agBigIntColumnFilter:"BigIntFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agBigIntColumnFloatingFilter:"BigIntFilter",agDateColumnFloatingFilter:"DateFilter",agFormulaCellEditor:"Formula",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agNewFiltersToolPanel:"NewFiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"};function Ox(e){return`"${e}"`}var r5=()=>({checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."},rowGroupingHierarchy:{version:"34.3",message:"Use `colDef.groupHierarchy` instead."}}),s5={allowFormula:"Formula",aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t,groupRowEditable:n})=>!!t||!!n?typeof e=="string"?al[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>typeof e!="string"?null:al[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,groupRowEditable:({groupRowEditable:e,cellEditor:t})=>e?t?"RowGroupingEdit":["RowGroupingEdit","TextEditor"]:null,groupRowValueSetter:({groupRowValueSetter:e})=>e?"RowGroupingEdit":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&typeof e!="string"&&typeof e!="boolean"?"CustomFilter":typeof e=="string"?al[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(n=>t.includes(n))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"},a5=()=>({autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:n})=>n?"colDef.autoHeight is not supported with paginationAutoPageSize.":null},allowFormula:{supportedRowModels:["clientSide"]},cellRendererParams:{validate:t=>(t.rowGroup!=null||t.rowGroupIndex!=null||t.cellRenderer==="agGroupCellRenderer")&&"checkbox"in t.cellRendererParams?'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.':null},flex:{validate:(t,n)=>n.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const n=t.headerValueGetter;return typeof n=="function"||typeof n=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t.smallDown)return Do(262);if(t.smallLeft)return Do(263);if(t.smallRight)return Do(264)}return null}},sort:{validate:t=>Za(t.sort)||Ur(t.sort)?null:`sort must be of type (SortDirection | SortDef), currently it is ${typeof t.sort=="object"?JSON.stringify(t.sort):Nd(t.sort)}`},initialSort:{validate:t=>Za(t.initialSort)||Ur(t.initialSort)?null:`initialSort must be of non-null type (SortDirection | SortDef), currently it is ${typeof t.initialSort=="object"?JSON.stringify(t.initialSort):Nd(t.initialSort)}`},sortingOrder:{validate:t=>{const n=t.sortingOrder;if(Array.isArray(n)&&n.length>0){const i=n.filter(o=>!(Za(o)||Ur(o)));if(i.length>0)return`sortingOrder must be an array of type non-null (SortDirection | SortDef)[], incorrect items are: [${i.map(o=>typeof o=="string"||o==null?Nd(o):JSON.stringify(o)).join(", ")}]`}else if(!Array.isArray(n)||!n.length)return`sortingOrder must be an array with at least one element, currently it is [${n}]`;return null}},type:{validate:t=>{const n=t.type;return n instanceof Array?n.some(o=>typeof o!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof n=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(t,{suppressRowTransform:n})=>n?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},groupRowEditable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:n,cellSelection:i,suppressRowTransform:o,enableCellSpan:r,rowDragEntireRow:s,enableCellTextSelection:a})=>typeof n=="object"&&n?.mode==="singleRow"&&n?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":i?"colDef.spanRows is not supported with cellSelection.":o?"colDef.spanRows is not supported with suppressRowTransform.":r?s?"colDef.spanRows is not supported with rowDragEntireRow.":a?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."},groupHierarchy:{validate(t,{groupHierarchyConfig:n={}},i){const o=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]),r=[];for(const s of t.groupHierarchy??[]){if(typeof s=="object"){i.validation?.validateColDef(s);continue}!o.has(s)&&!(s in n)&&r.push(Ox(s))}if(r.length>0){const s=`The following parts of colDef.groupHierarchy are not recognised: ${r.join(", ")}.`,a=`Choose one of ${[...o].map(Ox).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`;return`${s}
22
- ${a}`}return null}}}),l5={headerName:void 0,columnGroupShow:void 0,headerStyle: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,headerTooltipValueGetter:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,groupRowEditable:void 0,groupRowValueSetter:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,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,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,tooltipComponentSelector:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0,rowGroupingHierarchy:void 0,groupHierarchy:void 0,allowFormula:void 0},c5=()=>Object.keys(l5),u5=()=>({objectName:"colDef",allProperties:c5(),docsUrl:"column-properties/",deprecations:r5(),validations:a5()}),_x=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","invalidEditValueMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce","renderingMode"],d5=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","activeOverlayParams","popupParent","themeStyleContainer","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","advancedFilterParams","formulaDataSource","formulaFuncs","initialState","autoSizeStrategy","selectionColumnDef","findOptions","filterHandlers","groupHierarchyConfig"],h5=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","suppressOverlays"],qm=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipSwitchShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],f5=["theme","rowSelection"],Nx=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],Qm=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","refreshAfterGroupEdit","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupHideColumnsUntilExpanded","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers","suppressStartEditOnTab","hidePaddedHeaderRows","ssrmExpandAllAffectsAllRows","animateColumnResizing"],Bx=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","overlayComponent","loadingOverlayComponent","noRowsOverlayComponent","overlayComponentSelector","activeOverlay","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","tabToNextGridContainer","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition"],Ym=()=>[...h5,...d5,..._x,...qm,...Bx,...Qm,...Nx,...f5],g5=()=>[..._x,...qm,...Bx,...Qm,...Nx],p5=()=>({suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."},suppressAdvancedFilterEval:{version:"34",message:"Advanced filter no longer uses function evaluation, so this option has no effect."}});function No(e,t,n){return typeof t=="number"||t==null?t==null||t>=n?null:`${e}: value should be greater than or equal to ${n}`:`${e}: value should be a number`}var m5={alignedGrids:"AlignedGrids",allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",cellSelection:"CellSelection",columnHoverHighlight:"ColumnHover",datasource:"InfiniteRowModel",doesExternalFilterPass:"ExternalFilter",editType:"EditCore",invalidEditValueMode:"EditCore",enableAdvancedFilter:"AdvancedFilter",enableCellSpan:"CellSpan",enableCharts:"IntegratedCharts",enableRangeSelection:"CellSelection",enableRowPinning:"PinnedRow",findSearchValue:"Find",getFullRowEditValidationErrors:"EditCore",getContextMenuItems:"ContextMenu",getLocaleText:"Locale",getMainMenuItems:"ColumnMenu",getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:"SharedRowGrouping",grandTotalRow:"ClientSideRowModelHierarchy",initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isRowPinnable:"PinnedRow",isRowPinned:"PinnedRow",localeText:"Locale",masterDetail:"SharedMasterDetail",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:"SharedPivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",refreshAfterGroupEdit:["RowGrouping","TreeData"],rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:"SharedRowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:"SharedTreeData",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"},v5=()=>{const e={autoSizePadding:{validate({autoSizePadding:n}){return No("autoSizePadding",n,0)}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:n}){return No("cacheBlockSize",n,1)}},cacheOverflowSize:{validate({cacheOverflowSize:n}){return No("cacheOverflowSize",n,1)}},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:n=>{const i=n.domLayout,o=["autoHeight","normal","print"];return i&&!o.includes(i)?`domLayout must be one of [${o.join()}], currently it's ${i}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableCellSpan:{supportedRowModels:["clientSide","serverSide"]},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:n,pinnedTopRowData:i,pinnedBottomRowData:o}){return n&&(i||o)?"Manual row pinning cannot be used together with pinned row data. Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null}},isRowPinnable:{supportedRowModels:["clientSide"],validate({enableRowPinning:n,isRowPinnable:i,pinnedTopRowData:o,pinnedBottomRowData:r}){return i&&(o||r)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!n&&i?"`isRowPinnable` requires `enableRowPinning` to be set.":null}},isRowPinned:{supportedRowModels:["clientSide"],validate({enableRowPinning:n,isRowPinned:i,pinnedTopRowData:o,pinnedBottomRowData:r}){return i&&(o||r)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!n&&i?"`isRowPinned` requires `enableRowPinning` to be set.":null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideColumnsUntilExpanded:{supportedRowModels:["clientSide"],validate({groupHideColumnsUntilExpanded:n,groupHideOpenParents:i,groupDisplayType:o}){return n&&!i&&o!=="multipleColumns"?"`groupHideColumnsUntilExpanded = true` requires either `groupDisplayType = 'multipleColumns'` or `groupHideOpenParents = true`":null}},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},groupHierarchyConfig:{validate({groupHierarchyConfig:n={}},i,o){for(const r of Object.keys(n))o.validation?.validateColDef(n[r]);return null}},icons:{validate:({icons:n})=>{if(n){if(n.smallDown)return Do(262);if(n.smallLeft)return Do(263);if(n.smallRight)return Do(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:n}){return No("infiniteInitialRowCount",n,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:n=>{if(typeof n.ssrmExpandAllAffectsAllRows=="boolean"){if(n.rowModelType!=="serverSide")return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model.";if(n.ssrmExpandAllAffectsAllRows&&typeof n.getRowId!="function")return"'getRowId' callback must be provided for Server Side Row Model grouping to work correctly."}return null}},keepDetailRowsCount:{validate({keepDetailRowsCount:n}){return No("keepDetailRowsCount",n,1)}},paginationPageSize:{validate({paginationPageSize:n}){return No("paginationPageSize",n,1)}},paginationPageSizeSelector:{validate:n=>{const i=n.paginationPageSizeSelector;return typeof i=="boolean"||i==null||i.length?null:`'paginationPageSizeSelector' cannot be an empty array.
23
- If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate({rowBuffer:n}){return No("rowBuffer",n,0)}},rowClass:{validate:n=>typeof n.rowClass=="function"?"rowClass should not be a function, please use getRowClass instead":null},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{pagination:{required:[!1,void 0]}}},rowSelection:{validate({rowSelection:n}){return n&&typeof n=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':n&&typeof n!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":n&&n.mode!=="multiRow"&&n.mode!=="singleRow"?`Selection mode "${n.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null}},rowStyle:{validate:n=>{const i=n.rowStyle;return i&&typeof i=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:n}){return No("serverSideInitialRowCount",n,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:n=>{const i=n.sortingOrder;if(Array.isArray(i)&&i.length>0){const o=i.filter(r=>!Oi(r));if(o.length>0)return`sortingOrder must be an array of type (SortDirection | SortDef)[], incorrect items are: ${o.map(r=>typeof r=="string"||r==null?Nd(r):JSON.stringify(r))}]`}else if(!Array.isArray(i)||!i.length)return`sortingOrder must be an array with at least one element, currently it's ${i}`;return null}},tooltipHideDelay:{validate:n=>n.tooltipHideDelay&&n.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:n=>n.tooltipShowDelay&&n.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},tooltipSwitchShowDelay:{validate:n=>n.tooltipSwitchShowDelay&&n.tooltipSwitchShowDelay<0?"tooltipSwitchShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:n=>{const i=n.rowModelType??"clientSide";switch(i){case"clientSide":{const{treeDataChildrenField:o,treeDataParentIdField:r,getDataPath:s,getRowId:a}=n;if(!o&&!r&&!s)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(o){if(s)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(r)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(r){if(!a)return"getRowId callback not provided, tree data with parent id cannot be built.";if(s)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}return null}case"serverSide":{const o=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${i} row model.`;return n.isServerSideGroup&&n.getServerSideGroupKey?null:o}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:n}){return No("viewportRowModelBufferSize",n,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:n}){return No("viewportRowModelPageSize",n,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:n,showOpenedGroup:i}){return n?.field&&i?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":n?.valueGetter&&i?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null}},renderingMode:{validate:n=>{const i=n.renderingMode,o=["default","legacy"];return i&&!o.includes(i)?`renderingMode must be one of [${o.join()}], currently it's ${i}`:null}},autoSizeStrategy:{validate:({autoSizeStrategy:n})=>{if(!n)return null;const i=["fitCellContents","fitGridWidth","fitProvidedWidth"],o=n.type;return o!=="fitCellContents"&&o!=="fitGridWidth"&&o!=="fitProvidedWidth"?`Invalid Auto-size strategy. \`autoSizeStrategy\` must be one of ${i.map(r=>'"'+r+'"').join(", ")}, currently it's ${o}`:o==="fitProvidedWidth"&&typeof n.width!="number"?`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${n.width}`:null}}},t={};for(const n of Qm)t[n]={expectedType:"boolean"};for(const n of qm)t[n]={expectedType:"number"};return jn(t,e),t},C5=()=>({objectName:"gridOptions",allProperties:[...Ym(),...Object.values(wh)],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:p5(),validations:v5()}),w5=0,b5=0,Hx="__ag_grid_instance",y5=class extends X{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.instanceId=b5++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new _s,this.globalEventHandlerFactory=e=>(t,n)=>{if(!this.isAlive())return;const i=Nc.has(t);if(i&&!e||!i&&e||!S5(t))return;const o=(r,s)=>{const a=wh[r],l=this.gridOptions[a];typeof l=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>l(s))};if(this.gridReadyFired)o(t,n);else if(t==="gridReady"){o(t,n),this.gridReadyFired=!0;for(const r of this.queueEvents)o(r.eventName,r.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:n})}}wireBeans(e){this.gridOptions=e.gridOptions,this.validation=e.validation,this.api=e.gridApi,this.gridId=e.context.getId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.validateGridOptions(this.gridOptions),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:e})=>{this.updateGridOptions({options:e,force:!0,source:"optionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??XL[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return Pe(this.gridOptions[e])}mergeGridCommonParams(e){return e&&(n=>e(this.addCommon(n)))}updateGridOptions({options:e,force:t,source:n="api"}){const i={id:w5++,properties:[]},o=[],{gridOptions:r,validation:s}=this;for(const a of Object.keys(e)){const l=Tp.applyGlobalGridOption(a,e[a]);s?.warnOnInitialPropertyUpdate(n,a);const u=t||typeof l=="object"&&n==="api",h=r[a];if(u||h!==l){r[a]=l;const f={type:a,currentValue:l,previousValue:h,changeSet:i,source:n};o.push(f)}}this.validateGridOptions(this.gridOptions),i.properties=o.map(a=>a.type);for(const a of o)Vr(this,`Updated property ${a.type} from`,a.previousValue," to ",a.currentValue),this.propEventSvc.dispatchEvent(a)}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}getDomDataKey(){return this.domDataKey}addCommon(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t){for(const n of Object.keys(e)){const i=e[n];if(i==null||i===!1)continue;let o=t[n];typeof o=="function"&&(o=o(e,this.gridOptions,this.beans)),o&&this.assertModuleRegistered(o,n)}}validateGridOptions(e){this.validateOptions(e,m5),this.validation?.processGridOptions(e)}validateColDef(e,t,n){(n||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,s5),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const n=Array.isArray(e)?e.some(i=>this.isModuleRegistered(i)):this.isModuleRegistered(e);return n||vt(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),n}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:Ip(),rowModelType:this.get("rowModelType"),isUmd:a0()}}isModuleRegistered(e){return Ap(e,this.gridId,this.get("rowModelType"))}setInstanceDomData(e){e[Hx]=this.instanceId}isElementInThisInstance(e){let t=e;for(;t;){const n=t[Hx];if(Pe(n))return n===this.instanceId;t=t.parentElement}return!1}};function S5(e){return!!wh[e]}var R5=class extends X{constructor(e,t){super(),this.column=e,this.eGui=t,this.lastMovingChanged=0}postConstruct(){this.addManagedElementListeners(this.eGui,{click:e=>e&&this.onClick(e)}),this.addManagedListeners(this.column,{movingChanged:()=>{this.lastMovingChanged=Date.now()}})}onClick(e){const{sortSvc:t,rangeSvc:n,gos:i}=this.beans;if(!(Ya(i)?e.altKey:!0))n?.handleColumnSelection(this.column,e);else if(this.column.isSortable()){const r=this.column.isMoving(),a=Date.now()-this.lastMovingChanged<50;r||a||t?.progressSortFromEvent(this.column,e)}}};function x5(e,t){const n={"aria-hidden":"true"};return{tag:"div",cls:"ag-cell-label-container",role:"presentation",children:[{tag:"span",ref:"eMenu",cls:"ag-header-icon ag-header-cell-menu-button",attrs:n},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:n},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[e?{tag:"span",ref:"eColRef",cls:"ag-header-col-ref"}:null,{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:n},t?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var F5=class extends Ft{constructor(){super(...arguments),this.eFilter=ge,this.eFilterButton=ge,this.eSortIndicator=ge,this.eMenu=ge,this.eLabel=ge,this.eText=ge,this.eColRef=ge,this.eSortOrder=ge,this.eSortAsc=ge,this.eSortDesc=ge,this.eSortMixed=ge,this.eSortNone=ge,this.eSortAbsoluteAsc=ge,this.eSortAbsoluteDesc=ge,this.isLoadingInnerComponent=!1}refresh(e){const t=this.params;if(this.params=e,this.workOutTemplate(e,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||e.enableSorting!=this.currentSort||e.column.formulaRef!=this.currentRef||this.currentSuppressMenuHide!=null&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){const n={...e};jn(n,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(n)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const{formula:n}=this.beans,i=e.template;return i?i?.trim?i.trim():i:x5(!!n?.active,t)}init(e){this.params=e;const{sortSvc:t,touchSvc:n,rowNumbersSvc:i,userCompFactory:o}=this.beans,r=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!r),this.setTemplate(this.currentTemplate,r?[r]:void 0),this.eLabel&&(this.mouseListener??(this.mouseListener=this.createManagedBean(new R5(e.column,this.eLabel)))),n?.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupColumnRefIndicator(),i?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(o,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const n=D_(e,t,t);n&&(this.isLoadingInnerComponent=!0,n.newAgStackInstance().then(i=>{this.isLoadingInnerComponent=!1,i&&(this.isAlive()?(this.innerHeaderComponent=i,this.eText&&this.eText.appendChild(i.getGui())):this.destroyBean(i))}))}setDisplayName(e){const{displayName:t}=e,n=this.currentDisplayName;this.currentDisplayName=t,!(!this.eText||n===t||this.innerHeaderComponent||this.isLoadingInnerComponent)&&(this.eText.textContent=Ga(t))}addInIcon(e,t,n){const i=si(e,this.beans,n);i&&t.appendChild(i)}workOutShowMenu(){return this.params.enableMenu&&!!this.beans.menuSvc?.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return!!this.beans.menuSvc?.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){ki(this.eMenu),this.eMenu=void 0;return}const{gos:e,eMenu:t,params:n}=this,i=ri(e);this.addInIcon(i?"menu":"menuAlt",t,n.column),t.classList.toggle("ag-header-menu-icon",!i);const o=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=o,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(o)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:n}=this;t||this.toggleMenuAlwaysShow(!0),n.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){const{params:t,gos:n,beans:i,eMenu:o,eFilterButton:r}=this,s=t.column,a=ri(n);if(e&&!a){if(i.menuSvc?.isFilterMenuInHeaderEnabled(s))return t.showFilter(r??o??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(o??r??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:n}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:i,eSortOrder:o,eSortAsc:r,eSortDesc:s,eSortMixed:a,eSortNone:l,eSortAbsoluteAsc:u,eSortAbsoluteDesc:h}=this;i.attachCustomElements(o,r,s,a,l,u,h)}this.eSortIndicator.setupSort(n),this.currentSort&&e.setupHeader(this,n)}setupColumnRefIndicator(){const{eColRef:e,beans:{editModelSvc:t},params:n}=this;e&&(this.currentRef=n.column.formulaRef,e.textContent=this.currentRef,xt(e,!1),this.addManagedEventListeners({cellEditingStarted:()=>{const i=t?.getEditPositions(),o=!!this.currentRef&&!!i?.some(r=>r.column.isAllowFormula());xt(e,o)},cellEditingStopped:()=>{xt(e,!1)}}))}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;const n=()=>{const i=t.column.isFilterActive();xt(e,i,{skipAriaHidden:!0})};this.configureFilter(t.enableFilterIcon,e,n,"filterActive")}setupFilterButton(){const{eFilterButton:e,params:t}=this;if(!e)return;this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(e,{click:()=>t.showFilter(e)}):this.eFilterButton=void 0}configureFilter(e,t,n,i){if(!e)return ki(t),!1;const o=this.params.column;return this.addInIcon(i,t,o),this.addManagedListeners(o,{filterChanged:n}),n(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:n}=this;return e?t??n??this.getGui():n??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent=this.destroyBean(this.innerHeaderComponent),this.mouseListener=this.destroyBean(this.mouseListener)}},P5=class extends X{constructor(e,t){super(),this.eLabel=e,this.columnGroup=t,this.isSticky=!1,this.left=null,this.right=null}postConstruct(){const{columnGroup:e,beans:t}=this,{ctrlsSvc:n}=t;n.whenReady(this,()=>{const i=this.refreshPosition.bind(this);e.getPinned()==null&&this.addManagedEventListeners({bodyScroll:o=>{o.direction==="horizontal"&&this.updateSticky(o.left)}}),this.addManagedListeners(e,{leftChanged:i,displayedChildrenChanged:i}),this.addManagedEventListeners({columnResized:i}),this.refreshPosition()})}refreshPosition(){const{columnGroup:e,beans:t}=this,n=e.getLeft(),i=e.getActualWidth();if(n==null||i===0){this.left=null,this.right=null,this.setSticky(!1);return}this.left=n,this.right=n+i;const o=t.colViewport.getScrollPosition();o!=null&&this.updateSticky(o)}updateSticky(e){const{beans:t,left:n,right:i}=this;if(n==null||i==null){this.setSticky(!1);return}const{gos:o,visibleCols:r}=t,a=o.get("enableRtl")?r.bodyWidth-e:e;this.setSticky(n<a&&i>a)}setSticky(e){const{isSticky:t,eLabel:n}=this;t!==e&&(this.isSticky=e,n.classList.toggle("ag-sticky-label",e))}},E5={tag:"div",cls:"ag-header-group-cell-label",role:"presentation",children:[{tag:"span",ref:"agLabel",cls:"ag-header-group-text",role:"presentation"},{tag:"span",ref:"agOpened",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"},{tag:"span",ref:"agClosed",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"}]},D5=class extends Ft{constructor(){super(E5),this.agOpened=ge,this.agClosed=ge,this.agLabel=ge,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:n}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),n?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&le(89)}workOutInnerHeaderGroupComponent(e,t){const n=A_(e,t,t);n&&(this.isLoadingInnerComponent=!0,n.newAgStackInstance().then(i=>{this.isLoadingInnerComponent=!1,i&&(this.isAlive()?(this.innerHeaderGroupComponent=i,this.agLabel.appendChild(i.getGui())):this.destroyBean(i))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:n},beans:{colGroupSvc:i}}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const o=l=>{if(cr(l))return;const u=!n.isExpanded();i.setColumnGroupOpened(n.getProvidedColumnGroup(),u,"uiColumnExpanded")};this.addTouchAndClickListeners(t,o),this.addTouchAndClickListeners(e,o);const r=l=>{qs(l)};this.addManagedElementListeners(t,{dblclick:r}),this.addManagedElementListeners(e,{dblclick:r}),this.addManagedElementListeners(this.getGui(),{dblclick:o}),this.updateIconVisibility();const s=n.getProvidedColumnGroup(),a=this.updateIconVisibility.bind(this);this.addManagedListeners(s,{expandedChanged:a,expandableChanged:a})}addTouchAndClickListeners(e,t){this.beans.touchSvc?.setupForHeaderGroupElement(this,e,t),this.addManagedElementListeners(e,{click:t})}updateIconVisibility(){const{agOpened:e,agClosed:t,params:{columnGroup:n}}=this;if(n.isExpandable()){const i=n.isExpanded();xt(e,i),xt(t,!i)}else xt(e,!1),xt(t,!1)}addInIcon(e,t){const n=si(e,this.beans,null);n&&t.appendChild(n)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:t,agClosed:n}=this;xt(t,!1),xt(n,!1)}}setupLabel(e){const{displayName:t,columnGroup:n}=e,{innerHeaderGroupComponent:i,isLoadingInnerComponent:o}=this,r=i||o;Pe(t)&&!r&&(this.agLabel.textContent=Ga(t)),n.getColGroupDef()?.suppressStickyLabel||this.createManagedBean(new P5(this.getGui(),n))}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},T5={moduleName:"ColumnHeaderComp",version:Re,userComponents:{agColumnHeader:F5},icons:{menu:"menu",menuAlt:"menu-alt"}},A5={moduleName:"ColumnGroupHeaderComp",version:Re,userComponents:{agColumnGroupHeader:D5},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},I5=class extends X{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.p1={list:[],sorted:!1},this.p2={list:[],sorted:!1},this.f1={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,e===0&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){this.active===!1&&le(92)}createTask(e,t,n,i,o=!1){this.verify();let r=n;i&&this.batchFrameworkComps&&(r="f1");const s={task:e,index:t,createOrder:++this.taskCount,deferred:o};this.addTaskToList(this[r],s),this.schedule()}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort((n,i)=>n.deferred!==i.deferred?n.deferred?-1:1:n.index!==i.index?t*(i.index-n.index):i.createOrder-n.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:n,f1:i,destroyTasks:o,beans:r}=this,{ctrlsSvc:s,frameworkOverrides:a}=r,l=t.list,u=n.list,h=i.list,f=Date.now();let g=0;const m=e<=0,v=s.getScrollFeature();for(;m||g<e;){if(!v.scrollGridIfNeeded()){let b;if(l.length)this.sortTaskList(t),b=l.pop().task;else if(u.length)this.sortTaskList(n),b=u.pop().task;else if(h.length)a.wrapOutgoing(()=>{for(;(m||g<e)&&!v.scrollGridIfNeeded();){if(h.length)this.sortTaskList(i),b=h.pop().task,b();else break;g=Date.now()-f}}),b=()=>{};else if(o.length)b=o.pop();else break;b()}g=Date.now()-f}l.length||u.length||h.length||o.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);ir(this.beans,e)}isQueueEmpty(){return!this.ticking}},M5={moduleName:"AnimationFrame",version:Re,beans:[I5]},k5=class extends X{constructor(){super(...arguments),this.beanName="iconSvc"}createIconNoSpan(e,t){return si(e,this.beans,t?.column)}},L5=(e,t,n)=>t||e&&n,O5=class extends X{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(e,t){this.mockContextMenu(e,e.eBodyViewport,t)}mockHeaderContextMenu(e,t){this.mockContextMenu(e,e.eGui,t)}mockRowContextMenu(e){if(!Us())return;const t=(n,i,o)=>{const{rowCtrl:r,cellCtrl:s}=e.getControlsForEventTarget(o?.target??null);s?.column&&s.dispatchCellContextMenuEvent(o??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,o,r,s)};this.mockContextMenu(e,e.element,t)}handleCellDoubleClick(e,t){return(()=>{if(!Us()||Md("dblclick"))return!1;const i=Date.now(),o=i-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=i,o})()?(e.onCellDoubleClicked(t),t.preventDefault(),!0):!1}setupForHeader(e){const{gos:t,sortSvc:n,menuSvc:i}=this.beans;if(t.get("suppressTouch"))return;const{params:o,eMenu:r,eFilterButton:s}=e,a=new Qs(e.getGui(),!0);e.addDestroyFunc(()=>a.destroy());const l=e.shouldSuppressMenuHide(),u=l&&Pe(r)&&o.enableMenu,h=!!i?.isHeaderContextMenuEnabled(o.column),f=L5(o.enableMenu,h,ri(t));let g=a;u&&(g=new Qs(r,!0),e.addDestroyFunc(()=>g.destroy()));const m=v=>o.showColumnMenuAfterMouseClick(v.touchStart);if(u&&o.enableMenu&&e.addManagedListeners(g,{tap:m}),f&&e.addManagedListeners(a,{longTap:m}),o.enableSorting){const v=w=>{const b=w.touchStart.target;l&&(r?.contains(b)||s?.contains(b))||n?.progressSort(o.column,!1,"uiColumnSorted")};e.addManagedListeners(a,{tap:v})}if(o.enableFilterButton&&s){const v=new Qs(s,!0);e.addManagedListeners(v,{tap:()=>o.showFilter(s)}),e.addDestroyFunc(()=>v.destroy())}}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const n=new Qs(t.eGridHeader,!0),i=o=>t.showColumnMenuAfterMouseClick(o.touchStart);e.addManagedListeners(n,{longTap:i}),e.addDestroyFunc(()=>n.destroy())}}setupForHeaderGroupElement(e,t,n){const i=new Qs(t,!0);e.addManagedListeners(i,{tap:n}),e.addDestroyFunc(()=>i.destroy())}mockContextMenu(e,t,n){if(!Us())return;const i=new Qs(t),o=r=>{bc(this.beans,r.touchEvent)&&n(void 0,r.touchStart,r.touchEvent)};e.addManagedListeners(i,{longTap:o}),e.addDestroyFunc(()=>i.destroy())}},_5={moduleName:"Touch",version:Re,beans:[O5]},N5=class extends X{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,n=!1){return n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const n=e===K.UP,i=e===K.DOWN,o=e===K.LEFT;let r,s;const{pageBounds:a,gos:l,visibleCols:u,pinnedRowModel:h}=this.beans,{rowPinned:f}=t;if(n||i)f&&h?n?s=0:s=f==="top"?h.getPinnedTopRowCount()-1:h.getPinnedBottomRowCount()-1:s=n?a.getFirstRow():a.getLastRow(),r=t.column;else{const g=l.get("enableRtl");s=t.rowIndex,r=(o!==g?u.allCols:[...u.allCols].reverse()).find(v=>!Kn(v)&&this.isCellGoodToFocusOn({rowIndex:s,rowPinned:null,column:v}))}return r?{rowIndex:s,rowPinned:f,column:r}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let n=t,i=!1;for(;!i;){switch(e){case K.UP:n=this.getCellAbove(n);break;case K.DOWN:n=this.getCellBelow(n);break;case K.RIGHT:n=this.gos.get("enableRtl")?this.getCellToLeft(n):this.getCellToRight(n);break;case K.LEFT:n=this.gos.get("enableRtl")?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,le(8,{key:e});break}n?i=this.isCellGoodToFocusOn(n):i=!0}return n}isCellGoodToFocusOn(e){const t=e.column;let n;const{pinnedRowModel:i,rowModel:o}=this.beans;switch(e.rowPinned){case"top":n=i?.getPinnedTopRow(e.rowIndex);break;case"bottom":n=i?.getPinnedBottomRow(e.rowIndex);break;default:n=o.getRow(e.rowIndex);break}return n?!this.isSuppressNavigable(t,n):!1}getCellToLeft(e){if(!e)return null;const t=this.beans.visibleCols.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.beans.visibleCols.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellBelow(e){if(!e)return null;const t=this.rowSpanSvc?.getCellEnd(e)??e,n=dR(this.beans,t,!0);return n?{rowIndex:n.rowIndex,column:e.column,rowPinned:n.rowPinned}:null}getCellAbove(e){if(!e)return null;const t=this.rowSpanSvc?.getCellStart(e)??e,n=th(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned},!0);return n?{rowIndex:n.rowIndex,column:e.column,rowPinned:n.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:n}=this.beans,i=t.allCols;let o=e.rowIndex,r=e.rowPinned,s=t.getColAfter(e.column);if(!s){s=i[0];const a=dR(this.beans,e,!0);if(Vt(a)||!a.rowPinned&&!(n?.isRowInPage(a.rowIndex)??!0))return null;o=a?a.rowIndex:null,r=a?a.rowPinned:null}return{rowIndex:o,column:s,rowPinned:r}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:n,pagination:i}=t,o=n.allCols;let r=e.rowIndex,s=e.rowPinned,a=n.getColBefore(e.column);if(!a){a=Tt(o);const l=th(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},!0);if(Vt(l)||!l.rowPinned&&!(i?.isRowInPage(l.rowIndex)??!0))return null;r=l?l.rowIndex:null,s=l?l.rowPinned:null}return{rowIndex:r,column:a,rowPinned:s}}isSuppressNavigable(e,t){const{suppressNavigable:n}=e.colDef;if(typeof n=="boolean")return n;if(typeof n=="function"){const i=e.createColumnFunctionCallbackParams(t);return n(i)}return!1}};function B5(e){return e.focusSvc.getFocusedCell()}function H5(e){return e.focusSvc.clearFocusedCell()}function G5(e,t,n,i){e.focusSvc.setFocusedCell({rowIndex:t,column:n,rowPinned:i,forceBrowserFocus:!0})}function V5(e,t){return e.navigation?.tabToNextCell(!1,t)??!1}function W5(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}function z5(e,t,n=!1){const i=e.headerNavigation?.getHeaderPositionForColumn(t,n);i&&e.focusSvc.focusHeaderPosition({headerPosition:i})}function ea(e){const t=e;return t?.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var U5=class extends X{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.cellValidations=new Gx,this.rowValidations=new Vx,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;const n=this.getEditRow(e);t?n.delete(t):n.clear(),n.size===0&&this.edits.delete(e)}getEditRow(e,t={}){if(this.suspendEdits||this.edits.size===0)return;const n=e&&this.edits.get(e);if(n)return n;if(t.checkSiblings){const i=e.pinnedSibling;if(i)return this.getEditRow(i)}}getEditRowDataValue(e,{checkSiblings:t}={}){if(!e||this.edits.size===0)return;const n=this.getEditRow(e),i=e.pinnedSibling,o=t&&i&&this.getEditRow(i);if(!n&&!o)return;const r={...e.data},s=(a,l)=>a.forEach(({editorValue:u,pendingValue:h},f)=>{const g=u===void 0?h:u;g!==pn&&(l[f.getColId()]=g)});return n&&s(n,r),o&&s(o,r),r}getEdit(e={},t){const{rowNode:n,column:i}=e,o=this.edits;if(this.suspendEdits||o.size===0||!n||!i)return;const r=o.get(n)?.get(i);if(r)return r;if(t?.checkSiblings){const s=n.pinnedSibling;if(s)return o.get(s)?.get(i)}}getEditMap(e=!0){if(this.suspendEdits||this.edits.size===0)return new Map;if(!e)return this.edits;const t=new Map;return this.edits.forEach((n,i)=>{const o=new Map;n.forEach(({editorState:r,...s},a)=>o.set(a,{...s})),t.set(i,o)}),t}setEditMap(e){this.edits.clear(),e.forEach((t,n)=>{const i=new Map;t.forEach((o,r)=>i.set(r,{...o})),this.edits.set(n,i)})}setEdit(e,t){const n=this.edits;(n.size===0||!n.has(e.rowNode))&&n.set(e.rowNode,new Map);const i=this.getEdit(e),o={editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...i,...t};return this.getEditRow(e.rowNode).set(e.column,o),o}clearEditValue(e){const{rowNode:t,column:n}=e;if(!t)return;const i=r=>{r.editorValue=void 0,r.pendingValue=r.sourceValue,r.state="changed"};if(!n){this.getEditRow(t)?.forEach(i);return}const o=this.getEdit(e);o&&i(o)}getState(e){if(!this.suspendEdits)return this.getEdit(e)?.state}getEditPositions(e){if(this.suspendEdits||(e??this.edits).size===0)return[];const t=[];return(e??this.edits).forEach((n,i)=>{for(const o of n.keys()){const{editorState:r,...s}=n.get(o);t.push({rowNode:i,column:o,...s})}}),t}hasRowEdits(e,t){return this.suspendEdits||this.edits.size===0?!1:!!this.getEditRow(e,t)}hasEdits(e={},t={}){if(this.suspendEdits||this.edits.size===0)return!1;const{rowNode:n,column:i}=e,{withOpenEditor:o}=t;if(n){const r=this.getEditRow(n,t);return r?i?o?this.getEdit(e)?.state==="editing":r.has(i):r.size!==0?o?Array.from(r.values()).some(({state:s})=>s==="editing"):!0:!1:!1}return o?this.getEditPositions().some(({state:r})=>r==="editing"):this.edits.size>0}start(e){const t=this.getEditRow(e.rowNode)??new Map,{rowNode:n,column:i}=e;i&&!t.has(i)&&t.set(i,{editorValue:void 0,pendingValue:pn,sourceValue:this.beans.valueSvc.getValue(i,n,"data"),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}}),this.edits.set(n,t)}stop(e,t,n){if(this.hasEdits(e))if(t){const i=this.getEditRow(e.rowNode)?.get(e.column);i&&(i.pendingValue===pn||i.pendingValue===i.sourceValue)?this.removeEdits(e):i&&n&&(i.editorValue=void 0)}else this.removeEdits(e)}clear(){for(const e of this.edits.values())e.clear();this.edits.clear()}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(e){this.cellValidations=e}setRowValidationModel(e){this.rowValidations=e}destroy(){super.destroy(),this.clear()}},Gx=class{constructor(){this.cellValidations=new Map}getCellValidation(e){const{rowNode:t,column:n}=e||{};return this.cellValidations?.get(t)?.get(n)}hasCellValidation(e){return!e?.rowNode||!e.column?this.cellValidations.size>0:!!this.getCellValidation(e)}setCellValidation(e,t){const{rowNode:n,column:i}=e;this.cellValidations.has(n)||this.cellValidations.set(n,new Map),this.cellValidations.get(n).set(i,t)}clearCellValidation(e){const{rowNode:t,column:n}=e;this.cellValidations.get(t)?.delete(n)}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},Vx=class{constructor(){this.rowValidations=new Map}getRowValidation(e){const{rowNode:t}=e||{};return this.rowValidations.get(t)}hasRowValidation(e){return e?.rowNode?!!this.getRowValidation(e):this.rowValidations.size>0}setRowValidation({rowNode:e},t){this.rowValidations.set(e,t)}clearRowValidation({rowNode:e}){this.rowValidations.delete(e)}setRowValidationMap(e){this.rowValidations=e}getRowValidationMap(){return this.rowValidations}clearRowValidationMap(){this.rowValidations.clear()}};function bh(e,t={}){const{rowIndex:n,rowId:i,rowCtrl:o,rowPinned:r}=t;if(o)return o;const{rowModel:s,rowRenderer:a}=e;let{rowNode:l}=t;return l||(i?l=y2(e,i,r):n!=null&&(l=s.getRow(n))),l?a.getRowCtrlByNode(l):void 0}function pt(e,t={}){const{cellCtrl:n,colId:i,columnId:o,column:r}=t;if(n)return n;const s=e.colModel.getCol(i??o??Zm(r)),a=t.rowCtrl??bh(e,t),l=a?.getCellCtrl(s)??void 0;if(l)return l;const u=t.rowNode??a?.rowNode;if(u)return e.rowRenderer.getCellCtrls([u],[s])?.[0]}function Wx(e){const{editSvc:t}=e;t?.isBatchEditing()?(Xr(e,{persist:!0}),es(e)):t?.stopEditing(void 0,{source:"api"})}function $5(e,t,n){const{gos:i,popupSvc:o}=t;if(!i.get("stopEditingWhenCellsLoseFocus"))return;const r=s=>{const a=s.relatedTarget;if(Qp(a)===null){Wx(t);return}let l=n.some(u=>u.contains(a))&&i.isElementInThisInstance(a);l||(l=!!o&&(o.getActivePopups().some(u=>u.contains(a))||o.isElementWithinCustomPopup(a))),l||Wx(t)};for(const s of n)e.addManagedElementListeners(s,{focusout:r})}function Zm(e){if(e)return typeof e=="string"?e:e.getColId()}var pn=Symbol("unedited"),j5=(e,t={})=>{const n=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns),i=new Array(n.length);let o=0;for(let r=0,s=n.length;r<s;++r){const l=n[r].comp?.getCellEditor();l&&(i[o++]=ea(l))}return i.length=o,i};function K5(e,t,n,i,o,r){t.length===0&&n?.rowNode&&n?.column&&ta(e,n,{key:i,event:o,cellStartedEdit:r});const{valueSvc:s,editSvc:a,editModelSvc:l}=e,{rowNode:u,column:h}=n??{};for(const f of t){const{rowNode:g,column:m}=f,v=pt(e,f);if(!v){if(g&&m){const b=s.getValue(m,g,"data"),S=(n?.rowNode===g&&n?.column===m&&i||void 0)??a?.getCellDataValue(f)??s.getValueForDisplay({column:m,node:g,from:"edit"})?.value??b??pn;l?.setEdit(f,{pendingValue:cl(e,S,!1,m),sourceValue:b,state:"editing"})}continue}const w=r&&u===v.rowNode&&v.column===h;ta(e,{rowNode:u,column:v.column},{key:w?i:null,event:w?o:null,cellStartedEdit:w&&r})}}function lo({pendingValue:e,sourceValue:t}){return e===pn&&(e=t),e!==t}function q5(e){const t=new Map;for(const[n,i]of e){const o=new Map;for(const[r,s]of i)lo(s)&&o.set(r,s);o.size>0&&t.set(n,o)}return t}function ta(e,t,n){const{key:i,event:o,cellStartedEdit:r,silent:s}=n??{},{editModelSvc:a,gos:l,userCompFactory:u}=e,h=pt(e,t),f=h?.comp?.getCellEditor(),g=Ux(e,t,i,r&&!s),m=a?.getEdit(t),v=g.value??m?.sourceValue;if(f){a?.setEdit(t,{editorValue:cl(e,v,!0,t.column),state:"editing"}),f.refresh?.(g);return}const w=t.column.getColDef(),b=B0(u,w,g);if(!b)return;const{popupFromSelector:y,popupPositionFromSelector:R}=b,S=y??!!w.cellEditorPopup,P=R??w.cellEditorPopupPosition;if($x(b.params,o),!h)return;const{rangeFeature:F,rowCtrl:A,comp:k,onEditorAttachedFuncs:L}=h;a?.setEdit(t,{editorValue:cl(e,v,!0,t.column),state:"editing",editorState:{cellStartedEditing:void 0,cellStoppedEditing:void 0}}),h.editCompDetails=b,L.push(()=>F?.unsetComp()),k?.setEditDetails(b,S,P,l.get("reactiveCustomComponents")),A?.refreshRow({suppressFlash:!0}),Q5(e,t,o,v,s)}function Q5(e,t,n,i,o){const{editSvc:r,editModelSvc:s}=e,a=s?.getEdit(t);!o&&a?.state==="editing"&&!a?.editorState?.cellStartedEditing&&(r?.dispatchCellEvent(t,n,"cellEditingStarted",{value:i}),s?.setEdit(t,{editorState:{cellStartedEditing:!0}}))}function zx(e,t,n){const i={editorValueExists:!1};if(Jm(e)&&(t.getValidationErrors?.()?.length??0)>0||n?.isCancelling)return i;if(n?.isStopping){const r=t?.isCancelAfterEnd?.();if(r)return{...i,isCancelAfterEnd:r}}return{editorValue:t.getValue(),editorValueExists:!0}}function Ux(e,t,n,i){const{valueSvc:o,gos:r,editSvc:s}=e,a=e.gos.get("enableGroupEdit"),l=pt(e,t),u=t.rowNode?.rowIndex??void 0,h=s?.isBatchEditing(),f=e.colModel.getCol(t.column.getId()),{rowNode:g,column:m}=t,v=l.comp?.getCellEditor(),w=s?.getCellDataValue(t),b=w===void 0?v?zx(e,v)?.editorValue:void 0:w,y=b===pn?o.getValueForDisplay({column:f,node:g,from:"edit"})?.value:b;let R=a?b:y;return m.isAllowFormula()&&e.formula?.isFormula(R)&&(R=e.formula?.normaliseFormula(R,!0)??R),Ue(r,{value:R,eventKey:n??null,column:m,colDef:m.getColDef(),rowIndex:u,node:g,data:g.data,cellStartedEdit:!!i,onKeyDown:l?.onKeyDown.bind(l),stopEditing:S=>{s.stopEditing(t,{source:h?"ui":"api",suppressNavigateAfterEdit:S}),Hc(e,t,{})},eGridCell:l?.eGui,parseValue:S=>o.parseValue(f,g,S,l?.value),formatValue:l?.formatValue.bind(l),validate:()=>{s?.validateEdit()}})}function Bc(e,t){const{editModelSvc:n}=e;n?.getEditMap().forEach((i,o)=>{i.forEach((r,s)=>{!t&&(r.state==="editing"||r.pendingValue===pn)||!lo(r)&&(r.state!=="editing"||t)&&n?.removeEdits({rowNode:o,column:s})})})}function Y5(e,t){const n=t.comp?.getCellEditor();if(!n?.refresh)return;const{eventKey:i,cellStartedEdit:o}=t.editCompDetails.params,{column:r}=t,s=Ux(e,t,i,o),a=r.getColDef(),l=B0(e.userCompFactory,a,s);n.refresh($x(l.params,i))}function $x(e,t){return t instanceof KeyboardEvent&&e.column.getColDef().cellEditor==="agNumberCellEditor"?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function Xr(e,t){for(const n of e.editModelSvc?.getEditPositions()??[]){const i=pt(e,n);if(!i)continue;const o=i.comp?.getCellEditor();if(!o)continue;const{editorValue:r,editorValueExists:s,isCancelAfterEnd:a}=zx(e,o,t);if(a){const{cellStartedEditing:l,cellStoppedEditing:u}=e.editModelSvc?.getEdit(n)?.editorState||{};e.editModelSvc?.setEdit(n,{editorState:{isCancelAfterEnd:a,cellStartedEditing:l,cellStoppedEditing:u}})}ll(e,n,r,void 0,!s,t)}}function ll(e,t,n,i,o,r){const{editModelSvc:s,valueSvc:a}=e;if(!s)return;const{rowNode:l,column:u}=t;if(!(l&&u))return;let h=s.getEdit(t);if(h?.sourceValue===void 0){const f=h?cl(e,h.editorValue,!1,u):pn,g={sourceValue:a.getValue(u,l,"data"),pendingValue:f};r?.persist&&(g.state="changed"),h=s.setEdit(t,g)}s.setEdit(t,{editorValue:o?cl(e,h.sourceValue,!0,u):n}),r?.persist&&Z5(e,t)}function cl(e,t,n,i){const{formula:o}=e;return i.isAllowFormula()&&o?.isFormula(t)?o?.normaliseFormula(t,n)??t:t}function Z5(e,t){const{editModelSvc:n}=e,i=n?.getEdit(t),r={pendingValue:cl(e,i?.editorValue,!1,t.column)};!i?.editorState?.cellStoppedEditing&&i?.state!=="editing"&&(r.state="changed"),n?.setEdit(t,r)}function es(e,t,n={}){if(t||(t=e.editModelSvc?.getEditPositions()),t)for(const i of t)Hc(e,i,n)}function Hc(e,t,n,i=pt(e,t)){const o=e.editModelSvc,r=o?.getEdit(t);let s;if(r&&r.state!=="editing"&&r.editorState?.cellStoppedEditing?s=r.state:s="changed",!i){r&&o?.setEdit(t,{state:s});return}const a=i.comp,l=a?.getCellEditor();if(a&&!l){if(i?.refreshCell(),r){o?.setEdit(t,{state:s});const h=e.gos.get("enableGroupEdit")?jx(r,n?.cancel):{valueChanged:!1,newValue:void 0,oldValue:r.sourceValue};Kx(e,t,h,n)}return}if(Jm(e)){const h=r&&l?.getValidationErrors?.(),f=o?.getCellValidationModel();h?.length?f?.setCellValidation(t,{errorMessages:h}):f?.clearCellValidation(t)}r&&o?.setEdit(t,{state:s}),a?.setEditDetails(),a?.refreshEditStyles(!1,!1),i?.refreshCell({force:!0,suppressFlash:!0});const u=o?.getEdit(t);if(u&&u.state!=="editing"){const h=n?.cancel,f=e.gos.get("enableGroupEdit")?jx(u,h):J5(u,r,h);Kx(e,t,f,n)}}function jx(e,t){const{sourceValue:n,pendingValue:i}=e;let o;return!t&&i!==pn&&(o=i),{valueChanged:!t&&lo(e),newValue:o,oldValue:n,value:n}}function J5(e,t,n){if(n||e.editorState.isCancelAfterEnd)return{valueChanged:!1,newValue:void 0,oldValue:e.sourceValue};let i=e.editorValue;return(i==null||i===pn)&&(i=t?.pendingValue),i===pn&&(i=void 0),{valueChanged:lo(e),newValue:i,oldValue:e.sourceValue}}function Kx(e,t,n,{silent:i,event:o}={}){const{editSvc:r,editModelSvc:s}=e,a=s?.getEdit(t),{editorState:l}=a||{},{isCancelBeforeStart:u,cellStartedEditing:h,cellStoppedEditing:f}=l||{};!i&&!u&&h&&!f&&(r?.dispatchCellEvent(t,o,"cellEditingStopped",n),s?.setEdit(t,{editorState:{cellStoppedEditing:!0}}))}function X5(e){if(!e)return!1;for(let t=0,n=e.length;t<n;++t){const i=e[t],o=i.cellEditorParams;if(!(!o||!i.editable&&!i.groupRowEditable)&&(o.minLength!==void 0||o.maxLength!==void 0||o.getValidationErrors!==void 0||o.min!==void 0||o.max!==void 0))return!0}return!1}function e3(e){const t=e.rowRenderer.getCellCtrls();for(let n=0,i=t.length;n<i;++n){const r=t[n].comp?.getCellEditor();if(r){const s=ea(r);if(s.getValidationElement||s.getValidationErrors)return!0}}return!1}function Jm(e){return!!e.gos.get("getFullRowEditValidationErrors")||X5(e.colModel.getColumnDefs())||e3(e)}function ts(e,t){if(!(t||Jm(e)))return;const n=new Gx,{ariaAnnounce:i,localeSvc:o,editModelSvc:r,gos:s}=e,a=s.get("editType")==="fullRow",u=JS(o)("ariaValidationErrorPrefix","Cell Editor Validation"),h=new Set;for(const f of e.rowRenderer.getCellCtrls()){const g=f.comp?.getCellEditor();if(!g)continue;const m=ea(g),{rowNode:v,column:w}=f,b=m.getValidationErrors?.()??[],y=m.getValidationElement?.(!1)||!m.isPopup?.()&&f.eGui;if(y){const R=b!=null&&b.length>0,S=R?b.join(". "):"";vp(y,R),R&&i.announceValue(`${u} ${b}`,"editorValidation"),y instanceof HTMLInputElement?y.setCustomValidity(S):y.classList.toggle("invalid",R)}b?.length>0&&n.setCellValidation({rowNode:v,column:w},{errorMessages:b}),h.add(f.rowCtrl)}if(Xr(e,{persist:!1}),r?.setCellValidationModel(n),a){const f=t3(e);r?.setRowValidationModel(f)}for(const f of h.values()){f.rowEditStyleFeature?.applyRowStyles();for(const g of f.getAllCellCtrls())g.tooltipFeature?.refreshTooltip(!0),g.editorTooltipFeature?.refreshTooltip(!0),g.editStyleFeature?.applyCellStyles?.()}}var t3=e=>{const t=new Vx,n=e.gos.get("getFullRowEditValidationErrors"),i=e.editModelSvc?.getEditMap();if(!i)return t;for(const o of i.keys()){const r=i.get(o);if(!r)continue;const s=[],{rowIndex:a,rowPinned:l}=o;for(const h of r.keys()){const f=r.get(h);if(!f)continue;const{editorValue:g,pendingValue:m,sourceValue:v}=f,w=g??(m===pn?void 0:m)??v;s.push({column:h,colId:h.getColId(),rowIndex:a,rowPinned:l,oldValue:v,newValue:w})}const u=n?.({editorsState:s})??[];u.length>0&&t.setRowValidation({rowNode:o},{errorMessages:u})}return t};function n3(e){ts(e,!0);const t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;const n=[];return t.forEach((i,o)=>{i.forEach(({errorMessages:r},s)=>{n.push({column:s,rowIndex:o.rowIndex,rowPinned:o.rowPinned,messages:r??null})})}),n}function yh(e){return!!(e.rowPinned&&e.pinnedSibling)}function Hi(e,t,n,i){const o=t==="top";if(!n)return Hi(e,t,o?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),i);if(!i){const l=o?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return Hi(e,t,n,o?e.getPinnedTopRow(l-1):e.getPinnedBottomRow(l-1))}let r=!1,s=!1;const a=[];return e.forEachPinnedRow(t,l=>{if(l===n&&!r){r=!0,a.push(l);return}if(r&&l===i){s=!0,a.push(l);return}r&&!s&&a.push(l)}),a}function i3(e,t,n,{rowNode:i,column:o},r){return Ue(e.gos,{type:n,node:i,data:i.data,value:r,column:o,colDef:o.getColDef(),rowPinned:i.rowPinned,event:t,rowIndex:i.rowIndex})}function o3(e,t=!1){return e===K.DELETE?!0:!t&&e===K.BACKSPACE?$0():!1}var r3=class extends X{constructor(e,t,n,i){super(),this.cellCtrl=e,this.rowNode=n,this.rowCtrl=i,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;if(!(t===K.ENTER&&Kn(this.cellCtrl.column)&&this.beans.rowNumbersSvc?.handleKeyDownOnCell(this.cellCtrl.cellPosition,e)))switch(t){case K.ENTER:this.onEnterKeyDown(e);break;case K.F2:this.onF2KeyDown(e);break;case K.ESCAPE:this.onEscapeKeyDown(e);break;case K.TAB:this.onTabKeyDown(e);break;case K.BACKSPACE:case K.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case K.DOWN:case K.UP:case K.RIGHT:case K.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){const{cellCtrl:n,beans:i}=this;if(!i.editSvc?.isEditing(n,{withOpenEditor:!0})){if(e.shiftKey&&n.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const o=n.getFocusedCellPosition();i.navigation?.navigateToNextCell(e,t,o,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:n}=this.beans;if(!t)return;const i=t.extendLatestRangeInDirection(e);i&&(e.key===K.LEFT||e.key===K.RIGHT?n?.ensureColumnVisible(i.column):n?.ensureRowVisible(i.rowIndex))}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:n,beans:i,rowNode:o}=this,{gos:r,rangeSvc:s,eventSvc:a,editSvc:l}=i;if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),o3(e,r.get("enableCellEditingOnBackspace"))&&!l?.isEditing(n,{withOpenEditor:!0})){if(s&&rr(r))s.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(n.isCellEditable()){const u=i.valueSvc.getDeleteValue(n.column,o);o.setDataValue(n.column,u,"cellClear")}}else l?.isEditing(n,{withOpenEditor:!0})||i.editSvc?.startEditing(n,{startedEdit:!0,event:t});a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}onEnterKeyDown(e){const{cellCtrl:t,beans:n}=this,{editSvc:i,navigation:o}=n,r=i?.isEditing(t,{withOpenEditor:!0}),s=t.rowNode,a=i?.isRowEditing(s,{withOpenEditor:!0}),l=u=>{i?.startEditing(u,{startedEdit:!0,event:e,source:"edit"})&&e.preventDefault()};if(r||a){if(this.isCtrlEnter(e)){i?.applyBulkEdit(t,n?.rangeSvc?.getCellRanges()||[]);return}if(ts(n),i?.checkNavWithValidation(void 0,e)==="block-stop")return;i?.isEditing(t,{withOpenEditor:!0})?i?.stopEditing(t,{event:e,source:"edit"}):a&&!t.isCellEditable()?i?.stopEditing({rowNode:s},{event:e,source:"edit"}):l(t)}else if(n.gos.get("enterNavigatesVertically")){const u=e.shiftKey?K.UP:K.DOWN;o?.navigateToNextCell(null,u,t.cellPosition,!1)}else{if(i?.hasValidationErrors())return;i?.hasValidationErrors(t)&&i.revertSingleCellEdit(t,!0),l(t)}}isCtrlEnter(e){return(e.ctrlKey||e.metaKey)&&e.key===K.ENTER}onF2KeyDown(e){const{cellCtrl:t,beans:{editSvc:n}}=this;n?.isEditing()&&(ts(this.beans),n?.checkNavWithValidation(void 0,e)==="block-stop")||n?.startEditing(t,{startedEdit:!0,event:e})}onEscapeKeyDown(e){const{cellCtrl:t,beans:{editSvc:n}}=this;n?.checkNavWithValidation(t,e)==="block-stop"&&n.revertSingleCellEdit(t),setTimeout(()=>{n?.stopEditing(t,{event:e,cancel:!0})})}processCharacter(e){const n=e.target!==this.eGui,{beans:{editSvc:i},cellCtrl:o}=this;if(n||i?.isEditing(o,{withOpenEditor:!0}))return;if(e.key===K.SPACE)this.onSpaceKeyDown(e);else if(i?.isCellEditable(o,"ui")){if(i?.hasValidationErrors()&&!i?.hasValidationErrors(o))return;i?.startEditing(o,{startedEdit:!0,event:e,source:"api",editable:!0}),!o.editCompDetails?.params?.suppressPreventDefault&&e.preventDefault()}}onSpaceKeyDown(e){const{gos:t,editSvc:n}=this.beans,{rowNode:i}=this.cellCtrl;!n?.isEditing(this.cellCtrl,{withOpenEditor:!0})&&Gs(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,i,"spaceKey"),e.preventDefault()}},s3=class extends X{constructor(e,t,n){super(),this.cellCtrl=e,this.column=n,this.beans=t}onMouseEvent(e,t){if(!cr(t))switch(e){case"click":this.onCellClicked(t);break;case"pointerdown":case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:n,editSvc:i,editModelSvc:o,frameworkOverrides:r,gos:s}=this.beans,a=e.ctrlKey||e.metaKey,{cellCtrl:l}=this,{column:u,cellPosition:h,rowNode:f}=l,g=nh(s,u,f,e);n&&a&&!g&&n.getCellRangeCount(h)>1&&n.intersectLastRange(!0);const m=l.createEvent(e,"cellClicked");m.isEventHandlingSuppressed=g,t.dispatchEvent(m);const v=u.getColDef();if(v.onCellClicked&&window.setTimeout(()=>{r.wrapOutgoing(()=>{v.onCellClicked(m)})},0),!g&&o?.getState(l)!=="editing"){const w=i?.isEditing(),b=i?.isRangeSelectionEnabledWhileEditing(),y=o?.getCellValidationModel().getCellValidationMap().size??0,R=o?.getRowValidationModel().getRowValidationMap().size??0;if(w&&(b||y>0||R>0))return;i?.shouldStartEditing(l,e)?i?.startEditing(l,{event:e}):i?.shouldStopEditing(l,e)&&(this.beans.gos.get("editType")==="fullRow"?i?.stopEditing(l,{event:e,source:"edit"}):i?.stopEditing(void 0,{event:e,source:"edit"}))}}onCellDoubleClicked(e){const{column:t,beans:n,cellCtrl:i}=this,{eventSvc:o,frameworkOverrides:r,editSvc:s,editModelSvc:a,gos:l}=n,u=nh(l,i.column,i.rowNode,e),h=t.getColDef(),f=i.createEvent(e,"cellDoubleClicked");if(f.isEventHandlingSuppressed=u,o.dispatchEvent(f),typeof h.onCellDoubleClicked=="function"&&window.setTimeout(()=>{r.wrapOutgoing(()=>{h.onCellDoubleClicked(f)})},0),!u&&s?.shouldStartEditing(i,e)&&a?.getState(i)!=="editing"){const g=s?.isEditing(),m=s?.isRangeSelectionEnabledWhileEditing(),v=a?.getCellValidationModel().getCellValidationMap().size??0,w=a?.getRowValidationModel().getRowValidationMap().size??0;if(g&&(m||v>0||w>0))return;s?.startEditing(i,{event:e})}}onMouseDown(e){const{shiftKey:t}=e,n=e.target,{cellCtrl:i,beans:o}=this,{eventSvc:r,rangeSvc:s,rowNumbersSvc:a,focusSvc:l,gos:u,editSvc:h}=o,{column:f,rowNode:g,cellPosition:m}=i,v=nh(u,f,g,e),w=()=>{const S=i.createEvent(e,"cellMouseDown");S.isEventHandlingSuppressed=v,r.dispatchEvent(S)};if(v){w();return}if(this.isRightClickInExistingRange(e))return;const b=s&&!s.isEmpty(),y=this.containsWidget(n),R=Kn(f);if(!(a&&R&&!a.handleMouseDownOnCell(m,e))){if(!t||!b){const S=h?.isEditing(i),F=u.get("enableCellTextSelection")&&e.defaultPrevented,A=(Kr()||F)&&!S&&!gc(n)&&!y;i.focusCell(A,e)}if(t&&b&&!l.isCellFocused(m)){e.preventDefault();const S=l.getFocusedCell();if(S){const{column:P,rowIndex:F,rowPinned:A}=S,k=!!h?.isRangeSelectionEnabledWhileEditing?.();h?.isEditing(S)&&!k&&h?.stopEditing(S),k||l.setFocusedCell({column:P,rowIndex:F,rowPinned:A,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:e})}}y||(s?.handleCellMouseDown(e,m),w())}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const n=t.isCellInAnyRange(this.cellCtrl.cellPosition),i=kO(this.beans,e);if(n&&i)return!0}return!1}containsWidget(e){return Ns(e,"ag-selection-checkbox",3)||Ns(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:n}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),n?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:n}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),n?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,n=t.contains(e.target),i=t.contains(e.relatedTarget);return n&&i}},a3=class extends X{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();if(e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e){const t=this.refreshSpanHeight.bind(this,e);t(),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:t,recalculateRowBounds:t,pinnedHeightChanged:t})}}refreshSpanHeight(e){const t=e.getCellHeight();t!=null&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();Nr(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,n=e.getColSpan(t),i=[];if(n===1)i.push(e);else{let o=e;const r=e.getPinned();for(let s=0;o&&s<n&&(i.push(o),o=this.beans.visibleCols.getColAfter(o),!(!o||Vt(o)||r!==o.getPinned()));s++);}return i}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=Tt(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,n=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const i=t.bodyWidth;return n+i+(e||0)}return n+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const n=Vs(this.beans)*this.rowSpan;this.eContent.style.height=`${n}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},l3="ag-cell",c3="ag-cell-auto-height",u3="ag-cell-normal-height",d3="ag-cell-focus",h3="ag-cell-first-right-pinned",f3="ag-cell-last-left-pinned",g3="ag-cell-not-inline-editing",p3="ag-cell-wrap-text",m3=0,ul=class extends X{constructor(e,t,n,i){super(),this.column=e,this.rowNode=t,this.rowCtrl=i,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.editStyleFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.hasEdit=!1,this.tooltipFeature=void 0,this.editorTooltipFeature=void 0,this.beans=n,this.gos=n.gos,this.editSvc=n.editSvc,this.hasEdit=!!n.editSvc;const{colId:o}=e;this.instanceId=o+"-"+m3++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new a3(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this),this.editStyleFeature=e.editSvc?.createCellStyleFeature(this),this.mouseListener=new s3(this,e,this.column),this.keyboardListener=new r3(this,e,this.rowNode,this.rowCtrl),this.enableTooltipFeature();const{rangeSvc:t}=e;t&&rr(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(this)),Kn(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.editorTooltipFeature=e.destroyBean(this.editorTooltipFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.editStyleFeature=e.destroyBean(this.editStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),ts(this.beans)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,n,i,o,r,s){this.comp=e,this.eGui=t,this.printLayout=o,s??(s=this),this.addDomData(s),this.addFeatures(),s.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(i,s),this.refreshFirstAndLastStyles(),this.checkFormulaError(),this.refreshAriaRowIndex(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.editStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer();const a=r?this.isCellEditable():void 0,l=!a&&this.hasEdit&&this.editSvc?.isEditing(this,{withOpenEditor:!0});if(a||l?this.editSvc?.startEditing(this,{startedEdit:!1,source:"api",silent:!0,continueEditing:!0,editable:a}):this.showValue(!1,!0),this.onCompAttachedFuncs.length){for(const u of this.onCompAttachedFuncs)u();this.onCompAttachedFuncs=[]}}checkFormulaError(){const e=!!this.beans.formula?.getFormulaError(this.column,this.rowNode);this.eGui.classList.toggle("formula-error",e)}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){const{beans:e,column:t}=this,{userCompFactory:n,ctrlsSvc:i,eventSvc:o}=e,r=t.getColDef(),s=this.createCellRendererParams();s.deferRender=!0;const a=N0(n,r,s);if(i.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let l;const u=new Ot(f=>{l=f}),[h]=this.addManagedListeners(o,{bodyScrollEnd:()=>{l(),h()}});return{loadingComp:a,onReady:u}}return{loadingComp:a,onReady:Ot.resolve()}}showValue(e,t){const{beans:n,column:i,rowNode:o,rangeFeature:r}=this,{userCompFactory:s}=n;let a=this.getValueToDisplay(),l;const u=o.stub&&o.groupData?.[i.getId()]==null,h=i.getColDef();if(u||this.isCellRenderer()){const f=this.createCellRendererParams();!u||Kn(i)?l=_0(s,h,f):l=N0(s,h,f)}if(!l&&!u&&n.findSvc?.isMatch(o,i)){const f=this.createCellRendererParams();l=_0(s,{...i.getColDef(),cellRenderer:"agFindCellRenderer"},f)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(o,{checkSiblings:!0})){const f=this.editSvc.prepDetailsDuringBatch(this,{compDetails:l,valueToDisplay:a});f&&(f.compDetails?l=f.compDetails:f.valueToDisplay&&(a=f.valueToDisplay))}this.comp.setRenderDetails(l,a,e),this.customRowDragComp?.refreshVisibility(),!t&&r&&ir(n,()=>r?.refreshRangeStyleAndHandle()),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}getCellValueClass(){const e="ag-cell-value",t=this.column.getColDef().cellRenderer==="agCheckboxCellRenderer";let n="";return t&&(n=" ag-allow-overflow"),`${e}${n}`}isIncludeControl(e,t=!1){return(this.rowNode.rowPinned==null||t&&yh(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:n}=this.beans.gridOptions,i=Gd(t),o=$r(this.column);return n==="custom"&&i!=="selectionColumn"&&o?!1:e.checkboxSelection||o&&typeof t=="object"&&Qa(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),i=this.includeDndSource!=this.isIncludeControl(e.dndSource),o=this.isAutoHeight!=this.column.isAutoHeight();return t||n||i||o}onPopupEditorClosed(e){const{editSvc:t}=this.beans;if(!t?.isEditing(this,{withOpenEditor:!0}))return;const n=e instanceof KeyboardEvent,i=e instanceof MouseEvent,o=n&&e.key===K.ESCAPE;t.stopEditing(this,{source:t.isBatchEditing()?"ui":"api",cancel:o,event:n||i?e:void 0}),o&&this.focusCell(!0,e)}stopEditing(e=!1){const{editSvc:t}=this.beans;return t?.stopEditing(this,{cancel:e,source:t?.isBatchEditing()?"ui":"api"})??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:n,rowNode:i,comp:o,eGui:r,beans:{valueSvc:s,gos:a,editSvc:l}}=this;return Ue(a,{value:e,valueFormatted:t,getValue:()=>s.getValueForDisplay({column:n,node:i,from:"edit"}).value,setValue:h=>l?.setDataValue({rowNode:i,column:n},h)||i.setDataValue(n,h),formatValue:this.formatValue.bind(this),data:i.data,node:i,pinned:n.getPinned(),colDef:n.getColDef(),column:n,refreshCell:this.refreshCell.bind(this),eGridCell:r,eParentOfValue:o.getParentOfValue(),registerRowDragger:(h,f,g,m)=>this.registerRowDragger(h,f,m),setTooltip:(h,f)=>{a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(h,f),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell()}refreshOrDestroyCell(e){if(this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e),this.hasEdit&&this.editCompDetails){const{editSvc:t,comp:n}=this;!n?.getCellEditor()&&t.isEditing(this,{withOpenEditor:!0})&&t.startEditing(this,{startedEdit:!1,source:"api",silent:!0})}}refreshCell(e){const{editStyleFeature:t,customStyleFeature:n,rowCtrl:{rowEditStyleFeature:i},beans:{cellFlashSvc:o,filterManager:r},column:s,comp:a,suppressRefreshCell:l,tooltipFeature:u}=this;if(l)return;const{field:h,valueGetter:f,showRowGroup:g,enableCellChangeFlash:m}=s.getColDef(),v=h==null&&f==null&&g==null,w=e?.newData??!1,b=v||e&&(e.force||w),y=!!a,R=this.updateAndFormatValue(y),S=b||R;if(y){if(S){this.showValue(!!w,!1);const P=r?.isSuppressFlashingCellsBecauseFiltering();!e?.suppressFlash&&!P&&m&&o?.flashCell(this),t?.applyCellStyles?.(),n?.applyUserStyles(),n?.applyClassesFromColDef(),i?.applyRowStyles(),this.checkFormulaError()}u?.refreshTooltip(),n?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,n=this.valueFormatted,{value:i,valueFormatted:o}=this.beans.valueSvc.getValueForDisplay({column:this.column,node:this.rowNode,includeValueFormatted:!0,from:"edit"});return this.value=i,this.valueFormatted=o,e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n:!0}valuesAreEqual(e,t){const n=this.column.getColDef();return n.equals?n.equals(e,t):e===t}addDomData(e){const t=this.eGui;Ws(this.beans.gos,t,ih,this),e.addDestroyFunc(()=>Ws(this.beans.gos,t,ih,null))}createEvent(e,t){const{rowNode:n,column:i,value:o,beans:r}=this;return i3(r,e,t,{rowNode:n,column:i},o)}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature?.getColSpanningList()??[]}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:n}=this;vR(e,t,n.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);HS(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e=!1,t){const n=this.editSvc?.allowedFocusTargetOnValidation(this);n&&n!==this||this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e,sourceEvent:t})}restoreFocus(e=!1){const{beans:{editSvc:t,focusSvc:n},comp:i}=this;if(!i||t?.isEditing(this)||!this.isCellFocused()||!n.shouldTakeFocus())return;const o=()=>{if(!this.isAlive())return;const r=i.getFocusableElement();this.isCellFocused()&&r.focus({preventScroll:!0})};if(e){setTimeout(o,0);return}o()}onRowIndexChanged(){this.createCellPosition(),this.refreshAriaRowIndex(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&oi(t,"tabindex",e?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss(h3,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss(f3,e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){const{beans:t}=this;if(Ic(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const n=this.isCellFocused(),i=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss(d3,n),n&&(e?.forceBrowserFocus||!this.hasBrowserFocus()&&this.beans.focusSvc.shouldTakeFocus())){let o=this.comp.getFocusableElement();if(i){const s=$s(o,null,!0);s.length&&(o=s[0])}const r=e?e.preventScrollOnBrowserFocus:!0;o.focus({preventScroll:r}),kL(t,o)}n&&this.focusEventWhileNotReady&&(this.focusEventWhileNotReady=null),n&&e&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:nr(t),column:this.column}}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss(l3,!0),e.toggleCss(g3,!0);const t=this.column.isAutoHeight()==!0;e.toggleCss(c3,t),e.toggleCss(u3,!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editSvc?.isEditing(this)?this.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({force:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.getColDef().wrapText==!0;this.comp.toggleCss(p3,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),n=this.createEvent(e,"cellContextMenu"),{beans:i}=this;i.eventSvc.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout(()=>{i.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(n)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(Lt(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,n){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const i=this.createRowDragComp(e,t,n);i&&(this.customRowDragComp=i,this.addDestroyFunc(()=>{this.beans.context.destroyBean(i),this.customRowDragComp=null}),i.refreshVisibility())}createRowDragComp(e,t,n){const i=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,n);if(i)return this.beans.context.createBean(i),i}cellEditorAttached(){for(const e of this.onEditorAttachedFuncs)e();this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){if(!Kn(this.column)||!this.eGui)return;const{ariaRowIndex:e}=this.rowCtrl;e!=null&&fc(this.eGui,e)}getRootElement(){return this.eGui}};function Xm(e,t,n,i,o,r){if(n==null&&t==null)return;const s={},a={},l=(u,h)=>{for(const f of u.split(" "))f.trim()!=""&&h(f)};if(n){const u=Object.keys(n);for(let h=0;h<u.length;h++){const f=u[h],g=n[f];let m;typeof g=="string"?m=e?e.evaluate(g,i):!0:typeof g=="function"&&(m=g(i)),l(f,v=>{m?s[v]=!0:a[v]=!0})}}if(t&&r)for(const u of Object.keys(t))l(u,h=>{s[h]||(a[h]=!0)});r&&Object.keys(a).forEach(r),Object.keys(s).forEach(o)}function qx(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var v3=class extends X{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const n=this.gos,i=s=>{if(typeof s=="string")e.push(s);else if(Array.isArray(s))for(const a of s)e.push(a)},o=n.get("rowClass");o&&i(o);const r=n.getCallback("getRowClass");if(r){const s={data:t.data,node:t,rowIndex:t.rowIndex},a=r(s);i(a)}}preProcessRowClassRules(e,t){this.processRowClassRules(t,n=>{e.push(n)},()=>{})}processRowClassRules(e,t,n){const{gos:i,expressionSvc:o}=this.beans,r=Ue(i,{data:e.data,node:e,rowIndex:e.rowIndex});Xm(o,void 0,i.get("rowClassRules"),r,t,n)}processStylesFromGridOptions(e){const t=this.gos,n=t.get("rowStyle"),i=t.getCallback("getRowStyle");let o;if(i){const r={data:e.data,node:e,rowIndex:e.rowIndex};o=i(r)}if(o||n)return Object.assign({},n,o)}},C3=0,Sh=class extends X{constructor(e,t,n,i,o){super(),this.rowNode=e,this.useAnimationFrameForCreate=i,this.printLayout=o,this.focusEventWhileNotReady=null,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.ariaRowIndex=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+C3++,this.rowId=dc(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=qx(this.rowNode),this.setRowType(),this.setAnimateFlags(n),this.rowStyles=this.processStylesFromGridOptions(),this.rowEditStyleFeature=t.editSvc?.createRowStyleFeature(this),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=dc(e)}updateGui(e,t){e==="left"?this.leftGui=t:e==="right"?this.rightGui=t:e==="fullWidth"?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,n,i){const{context:o,rowRenderer:r}=this.beans;i=kc(this,o,i);const s={rowComp:e,element:t,containerType:n,compBean:i};this.allRowGuis.push(s),this.updateGui(n,s),this.initialiseRowComp(s);const a=this.rowNode,l=this.rowType==="FullWidthLoading"||a.stub,u=!a.data&&this.beans.rowModel.getType()==="infinite";!l&&!u&&!a.rowPinned&&r.dispatchFirstDataRenderedEvent(),this.setupFocus()}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";for(const n of this.allRowGuis)n.element.style.display=t}initialiseRowComp(e){const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),Gs(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const n=e.rowComp,i=this.getInitialRowClasses(e.containerType);for(const o of i)n.toggleCss(o,!0);this.executeSlideAndFadeAnimations(e),this.rowNode.group&&Cp(e.element,!!this.rowNode.expanded),this.setRowCompRowId(n),this.setRowCompRowBusinessKey(n),Ws(t,e.element,oh,this),e.compBean.addDestroyFunc(()=>Ws(t,e.element,oh,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.toggleCss("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){this.businessKey!=null&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=dc(this.rowNode.id);this.rowId=t,t!=null&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(Ep(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(Ep(()=>{e.rowComp.toggleCss("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){const t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const n=this.createBean(t,this.beans.context);this.rowDragComps.push(n),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(i=>i!==n),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context),this.destroyBean(n,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),n=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(n)}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(e=>e?.rowComp?.getFullWidthCellRenderer()):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;const t={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(t)}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:n,beans:{visibleCols:i}}=this,o=!!e||!i.isPinningLeft(),r=!!t,s=!!n||!i.isPinningRight();return o&&r&&s}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this.rowNode}):!1}setRowType(){const{rowNode:e,gos:t,beans:{colModel:n}}=this,i=e.stub&&!t.get("suppressServerSideFullWidthLoadingRow")&&!t.get("groupHideOpenParents"),o=this.isNodeFullWidthCell(),r=t.get("masterDetail")&&e.detail,s=n.isPivotMode(),a=b0(t,e,s);i?this.rowType="FullWidthLoading":r?this.rowType="FullWidthDetail":o?this.rowType="FullWidth":a?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:n}=this.beans;if(!n?.active||e||this.printLayout){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(n.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}getNewCellCtrl(e){if(!this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode))return new ul(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,n=null){const i={list:[],map:{}},o=(u,h,f)=>{f!=null?i.list.splice(f,0,h):i.list.push(h),i.map[u]=h},r=[];for(const u of t){const h=u.getInstanceId();let f=e.map[h];f&&!this.isCorrectCtrlForSpan(f)&&(f.destroy(),f=void 0),f||(f=this.getNewCellCtrl(u)),f&&o(h,f)}for(const u of e.list){const h=u.column.getInstanceId();if(i.map[h]!=null)continue;!this.isCellEligibleToBeRemoved(u,n)?r.push([h,u]):u.destroy()}if(r.length)for(const[u,h]of r){const f=i.list.findIndex(m=>m.column.getLeft()>h.column.getLeft()),g=f===-1?void 0:Math.max(f-1,0);o(u,h,g)}const{focusSvc:s,visibleCols:a}=this.beans,l=s.getFocusedCell();if(l&&l.column.getPinned()==n){const u=l.column.getInstanceId();if(!i.map[u]&&a.allCols.includes(l.column)){const f=this.createFocusedCellCtrl();if(f){const g=i.list.findIndex(v=>v.column.getLeft()>f.column.getLeft()),m=g===-1?void 0:Math.max(g-1,0);o(u,f,m)}}}return i}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,n=e.getFocusedCell();if(!n)return;const i=t?.getCellSpan(n.column,this.rowNode);if(i){if(i.firstNode!==this.rowNode||!i.doesSpanContain(n))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(n.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){for(const t of this.allRowGuis){const n=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(n,e)}}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const n=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);const i=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,i,"left");const o=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,o,"right")}}isCellEligibleToBeRemoved(e,t){const{column:o}=e;if(o.getPinned()!=t||!this.isCorrectCtrlForSpan(e))return!0;const{visibleCols:r,editSvc:s}=this.beans,a=s?.isEditing(e),l=e.isCellFocused();return a||l?!(r.allCols.indexOf(o)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||xn(this.gos,"print")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],t)}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;const t=Pe(this.rowNode.oldRowTop),{visibleCols:n}=this.beans,i=n.isPinningLeft(),o=n.isPinningRight();if(t){const{slideInAnimation:r}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){r.fullWidth=!0;return}r.center=!0,r.left=i,r.right=o}else{const{fadeInAnimation:r}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){r.fullWidth=!0;return}r.center=!0,r.left=i,r.right=o}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const e=(s,a)=>s?s.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(s.element,a).params):!0,t=e(this.fullWidthGui,null),n=e(this.centerGui,null),i=e(this.leftGui,"left"),o=e(this.rightGui,"right");return t&&n&&i&&o}addListeners(){const{beans:e,gos:t,rowNode:n}=this,{expansionSvc:i,eventSvc:o,context:r,rowSpanSvc:s}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...i?.getRowExpandedListeners(this)??{}}),n.detail&&this.addManagedListeners(n.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(n,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}),this.addManagedListeners(o,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),s&&this.addManagedListeners(s,{spannedCellsUpdated:({pinned:a})=>{a&&!n.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,r),this.tooltipFeature=this.destroyBean(this.tooltipFeature,r),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,r)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(t.get("rowDragEntireRow")){for(const l of this.allRowGuis)this.addRowDraggerToRow(l);return}this.rowDragComps=this.destroyBeans(this.rowDragComps,r)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{for(const e of this.getAllCellCtrls())e.onRowIndexChanged()},cellChanged:e=>{for(const t of this.getAllCellCtrls())t.onCellChanged(e)}})}onRowPinned(){for(const e of this.allRowGuis)e.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){this.refreshRow({suppressFlash:!e.update,newData:!e.update})}refreshRow(e){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}for(const n of this.getAllCellCtrls())n.refreshCell(e);for(const n of this.allRowGuis)this.setRowCompRowId(n.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(n.rowComp);this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.rowEditStyleFeature?.applyRowStyles(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.beans.rowDropHighlightSvc,t=e?.row===this.rowNode?e.position:"none",n=t==="above",i=t==="inside",o=t==="below",r=t!=="none",s=n||o,a=this.rowNode.uiLevel,l=s&&a>0,u=l?a.toString():"0";for(const h of this.allRowGuis){const f=h.rowComp;f.toggleCss("ag-row-highlight-above",n),f.toggleCss("ag-row-highlight-inside",i),f.toggleCss("ag-row-highlight-below",o),f.toggleCss("ag-row-highlight-indent",l),r?h.element.style.setProperty("--ag-row-highlight-level",u):h.element.style.removeProperty("--ag-row-highlight-level")}}postProcessRowDragging(){const e=this.rowNode.dragging;for(const t of this.allRowGuis)t.rowComp.toggleCss("ag-row-dragging",e)}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.rowAutoHeight?.requestCheckAutoHeight()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:nr(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:n,column:i}=t;if(!(n.element===e.target))return;const s=this.rowNode,{focusSvc:a,navigation:l}=this.beans,u=a.getFocusedCell(),h={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:u?.column??i};l?.navigateToNextCell(e,e.key,h,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||cr(e))return;const t=this.allRowGuis.find(a=>a.element.contains(e.target)),n=t?t.element:null,i=n===e.target,o=Lt(this.beans);let r=!1;n&&o&&(r=n.contains(o)&&o.classList.contains("ag-cell"));let s=null;!i&&!r&&(s=Ks(this.beans,n,!1,e.shiftKey)),(this.isFullWidth()&&i||!s)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find(t=>Li(t.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:this.gos.get("tabIndex");for(const n of this.allRowGuis)oi(n.element,"tabindex",t)}setupFocus(){this.isFullWidth()&&(this.restoreFullWidthFocus(!0),this.onFullWidthRowFocused(this.focusEventWhileNotReady??void 0))}restoreFullWidthFocus(e=!1){const{focusSvc:t,editSvc:n}=this.beans;if(n?.isEditing(this)||!t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)||!t.shouldTakeFocus())return;const i=this.getFullWidthRowGuiForFocus();if(!i)return;const o=()=>{this.isAlive()&&t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)&&i.element.focus({preventScroll:!0})};if(e){setTimeout(o,0);return}o()}getFullWidthRowGuiForFocus(e){if(this.fullWidthGui)return this.fullWidthGui;const t=this.beans.focusSvc.getFocusedCell(),n=this.beans.colModel.getCol(e?.column??t?.column);if(!n)return;const i=n?.pinned;return i==="right"?this.rightGui:i==="left"?this.leftGui:this.centerGui}setFullWidthRowFocusedClass(e,t){this.forEachGui(void 0,n=>{n.element.classList.toggle("ag-full-width-focus",t&&n===e)})}onFullWidthRowFocused(e){const{focusSvc:t}=this.beans;if(!(this.isFullWidth()&&t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))){this.setFullWidthRowFocusedClass(void 0,!1);return}const i=this.getFullWidthRowGuiForFocus(e);if(!i){e&&(this.focusEventWhileNotReady=e),this.setFullWidthRowFocusedClass(void 0,!1);return}this.setFullWidthRowFocusedClass(i,!0),this.focusEventWhileNotReady=null,e?.forceBrowserFocus&&i.element.focus({preventScroll:!0})}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const n={list:[],map:{}};for(const i of e.list)i!==t&&(n.list.push(i),n.map[i.column.getInstanceId()]=i);return n}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"pointerdown":case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:n}=this;return Ue(this.gos,{type:e,node:n,data:n.data,rowIndex:n.rowIndex,rowPinned:n.rowPinned,event:t})}createRowEventWithSource(e,t){const n=this.createRowEvent(e,t);return n.source=this,n}onRowDblClick(e){if(cr(e))return;const t=this.createRowEventWithSource("rowDoubleClicked",e);t.isEventHandlingSuppressed=this.isSuppressMouseEvent(e),this.beans.eventSvc.dispatchEvent(t)}findFullWidthInfoForEvent(e){if(!e)return;const t=this.findFullWidthRowGui(e.target),n=this.getColumnForFullWidth(t);if(!(!t||!n))return{rowGui:t,column:n}}findFullWidthRowGui(e){return this.allRowGuis.find(t=>t.element.contains(e))}getColumnForFullWidth(e){const{visibleCols:t}=this.beans;switch(e?.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}onRowMouseDown(e){if(this.lastMouseDownOnDragger=Ns(e.target,"ag-row-drag",3),!this.isFullWidth()||this.isSuppressMouseEvent(e))return;const{rangeSvc:t,focusSvc:n}=this.beans;t?.removeAllCellRanges();const i=this.findFullWidthInfoForEvent(e);if(!i)return;const{rowGui:o,column:r}=i,s=o.element,a=e.target,l=this.rowNode;let u=e.defaultPrevented||Kr();s&&s.contains(a)&&gc(a)&&(u=!1),n.setFocusedCell({rowIndex:l.rowIndex,column:r,rowPinned:l.rowPinned,forceBrowserFocus:u})}isSuppressMouseEvent(e){const{gos:t,rowNode:n}=this;if(this.isFullWidth()){const o=this.findFullWidthRowGui(e.target);return fN(t,o?.rowComp.getFullWidthCellRendererParams(),n,e)}const i=wm(t,e.target);return i!=null&&nh(t,i.column,n,e)}onRowClick(e){if(cr(e)||this.lastMouseDownOnDragger)return;const n=this.isSuppressMouseEvent(e),{eventSvc:i,selectionSvc:o}=this.beans,r=this.createRowEventWithSource("rowClicked",e);r.isEventHandlingSuppressed=n,i.dispatchEvent(r),!n&&o?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){this.rowType==="FullWidthDetail"&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:n,rowNode:i}=this,o=Ue(n,{fullWidth:!0,data:i.data,node:i,value:i.key,valueFormatted:i.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(s,a,l,u)=>this.addFullWidthRowDragging(s,a,l,u),setTooltip:(s,a)=>{n.assertModuleRegistered("Tooltip",3),this.setupFullWidthRowTooltip(s,a)}}),r=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return L_(r,o);case"FullWidthGroup":{const{value:s,valueFormatted:a}=this.beans.valueSvc.getValueForDisplay({node:this.rowNode,includeValueFormatted:!0,from:"edit"});return o.value=s,o.valueFormatted=a,k_(r,o)}case"FullWidthLoading":return M_(r,o);default:return I_(r,o)}}setupFullWidthRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,n="",i){const{rowDragSvc:o,context:r}=this.beans;if(!o||!this.isFullWidth())return;const s=o.createRowDragComp(()=>n,this.rowNode,void 0,e,t,i);this.createBean(s,r),this.addDestroyFunc(()=>{this.destroyBean(s,r)})}onUiLevelChanged(){const e=qx(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;for(const i of this.allRowGuis)i.rowComp.toggleCss(t,!0),i.rowComp.toggleCss(n,!1)}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();if(this.firstRowOnPage!==e){this.firstRowOnPage=e;for(const n of this.allRowGuis)n.rowComp.toggleCss("ag-row-first",e)}if(this.lastRowOnPage!==t){this.lastRowOnPage=t;for(const n of this.allRowGuis)n.rowComp.toggleCss("ag-row-last",t)}}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const e=[];if(this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),!!e.length)for(const t of e)for(const n of this.allRowGuis)n.rowComp.toggleCss(t,!0)}postProcessRowClassRules(){this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,e=>{for(const t of this.allRowGuis)t.rowComp.toggleCss(e,!0)},e=>{for(const t of this.allRowGuis)t.rowComp.toggleCss(e,!1)})}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,n=>n.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return e==="left"||e==="right"?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),n=this.isFullWidth(),{rowNode:i,beans:o}=this,r=[];r.push("ag-row"),r.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&r.push("ag-opacity-zero"),r.push(i.rowIndex%2===0?"ag-row-even":"ag-row-odd"),i.isRowPinned()&&(r.push("ag-row-pinned"),o.pinnedRowModel?.isManual()&&r.push("ag-row-pinned-manual")),!i.isRowPinned()&&i.pinnedSibling&&r.push("ag-row-pinned-source"),i.isSelected()&&r.push("ag-row-selected"),i.footer&&r.push("ag-row-footer"),r.push("ag-row-level-"+this.rowLevel),i.stub&&r.push("ag-row-loading"),n&&r.push("ag-full-width-row"),o.expansionSvc?.addExpandedCss(r,i),i.dragging&&r.push("ag-row-dragging");const{rowStyleSvc:s}=o;return s&&(s.processClassesFromGridOptions(r,i),s.preProcessRowClassRules(r,i)),r.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&r.push("ag-row-first"),this.isLastRowOnPage()&&r.push("ag-row-last"),n&&(t==="left"&&r.push("ag-cell-last-left-pinned"),t==="right"&&r.push("ag-cell-first-right-pinned")),r}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(e){this.beans.selectionSvc?.onRowCtrlSelected(this,t=>{(t===this.centerGui||t===this.fullWidthGui)&&this.announceDescription()},e)}announceDescription(){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:n}=e,{rowNode:i,beans:o,gos:r}=this;n.addManagedListeners(t,{pointerenter:s=>{s.pointerType==="mouse"&&i.dispatchRowEvent("mouseEnter")},pointerleave:s=>{s.pointerType==="mouse"&&i.dispatchRowEvent("mouseLeave")}}),n.addManagedListeners(i,{mouseEnter:()=>{!o.dragSvc?.dragging&&!r.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),i.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map(n=>n.element);for(const n of t)n.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,i=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),i)}forEachGui(e,t){if(e)t(e);else for(const n of this.allRowGuis)t(n)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(this.rowNode.rowHeight==null)return;const t=this.rowNode.rowHeight,n=this.beans.environment.getDefaultRowHeight(),o=p0(this.gos)?Wr(this.beans,this.rowNode).height:void 0,r=o?`${Math.min(n,o)-2}px`:void 0;this.forEachGui(e,s=>{s.element.style.height=`${t}px`,r&&s.element.style.setProperty("--ag-line-height",r)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&Ka(this.gos)&&!t.sticky)if(t.rowTop!=null){const o=this.roundRowTopToBounds(t.rowTop);this.setRowTop(o)}else for(const o of this.allRowGuis)o.rowComp.toggleCss("ag-opacity-zero",!0);this.fullWidthGui?.element.contains(Lt(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const n=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(n),this.beans.eventSvc.dispatchEvent(n),super.destroy()}destroySecondPass(){this.allRowGuis.length=0;const e=t=>{for(const n of t.list)n.destroy();return{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,t=>{t.rowComp.toggleCss("ag-row-focus",this.rowFocused),t.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const{focusSvc:e}=this.beans,t=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses())}onPaginationChanged(){const e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;const n=this.beans.pageBounds.getPixelOffset();return e+n*(t?1:-1)}setRowTop(e){if(!this.printLayout&&Pe(e)){const t=this.applyPaginationOffset(e),o=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(o)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let n;if(t.sticky)n=t.stickyRowTop;else{const i=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,o=this.applyPaginationOffset(i);n=t.isRowPinned()?o:this.beans.rowContainerHeight.getRealPixelPosition(o)}return n+"px"}setRowTopStyle(e){for(const t of this.allRowGuis)this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`)}getCellCtrl(e,t=!1){let n=null;for(const i of this.getAllCellCtrls())i.column==e&&(n=i);if(n!=null||t)return n;for(const i of this.getAllCellCtrls())i?.getColSpanningList().indexOf(e)>=0&&(n=i);return n}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(t===null)return;const n=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),i=this.rowNode.rowIndex%2===0,o=this.ariaRowIndex=n+this.rowNode.rowIndex+1;this.forEachGui(e,r=>{r.rowComp.setRowIndex(t),r.rowComp.toggleCss("ag-row-even",i),r.rowComp.toggleCss("ag-row-odd",!i),fc(r.element,o)})}},w3=class extends X{constructor(){super(),this.beanName="navigation",this.onPageDown=XS(this.onPageDown,100),this.onPageUp=XS(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const n=e.key,i=e.altKey,o=e.ctrlKey||e.metaKey,r=!!this.beans.rangeSvc&&e.shiftKey,s=yB(this.gos,e);let a=!1;switch(n){case K.PAGE_HOME:case K.PAGE_END:!o&&!i&&(this.onHomeOrEndKey(n),a=!0);break;case K.LEFT:case K.RIGHT:case K.UP:case K.DOWN:if(!s)return!1;o&&!i&&!r&&(this.onCtrlUpDownLeftRight(n,s),a=!0);break;case K.PAGE_DOWN:case K.PAGE_UP:!o&&!i&&(a=this.handlePageUpDown(n,s,t));break}return a&&e.preventDefault(),a}handlePageUpDown(e,t,n){return n&&(t=this.beans.focusSvc.getFocusedCell()),t?(e===K.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}navigateTo({scrollIndex:e,scrollType:t,scrollColumn:n,focusIndex:i,focusColumn:o,isAsync:r,rowPinned:s}){const{scrollFeature:a}=this.gridBodyCon;Pe(n)&&!n.isPinned()&&a.ensureColumnVisible(n),Pe(e)&&a.ensureIndexVisible(e,t),r||a.ensureIndexVisible(i);const{focusSvc:l}=this.beans;l.setFocusedCell({rowIndex:i,column:o,rowPinned:s,forceBrowserFocus:!0}),this.setRangeToCellIfSupported({rowIndex:i,rowPinned:s,column:o})}onPageDown(e){const t=this.beans,n=ev(t),i=this.getViewportHeight(),{pageBounds:o,rowModel:r,rowAutoHeight:s}=t,a=o.getPixelOffset(),l=n.top+i,u=r.getRowIndexAtPixel(l+a);s?.active?this.navigateToNextPageWithAutoHeight(e,u):this.navigateToNextPage(e,u)}onPageUp(e){const t=this.beans,n=ev(t),{pageBounds:i,rowModel:o,rowAutoHeight:r}=t,s=i.getPixelOffset(),a=n.top,l=o.getRowIndexAtPixel(a+s);r?.active?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)}navigateToNextPage(e,t,n=!1){const{pageBounds:i,rowModel:o}=this.beans,r=this.getViewportHeight(),s=i.getFirstRow(),a=i.getLastRow(),l=i.getPixelOffset(),u=o.getRow(e.rowIndex),h=n?u?.rowHeight-r-l:r-l,f=u?.rowTop+h;let g=o.getRowIndexAtPixel(f+l);if(g===e.rowIndex){const v=n?-1:1;t=g=e.rowIndex+v}let m;n?(m="bottom",g<s&&(g=s),t<s&&(t=s)):(m="top",g>a&&(g=a),t>a&&(t=a)),this.isRowTallerThanView(o.getRow(g))&&(t=g,m="top"),this.navigateTo({scrollIndex:t,scrollType:m,scrollColumn:null,focusIndex:g,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,n=!1){this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const i=this.getNextFocusIndexForAutoHeight(e,n);this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const n=t?-1:1,i=this.getViewportHeight(),{pageBounds:o,rowModel:r}=this.beans,s=o.getLastRow();let a=0,l=e.rowIndex;for(;l>=0&&l<=s;){const u=r.getRow(l);if(u){const h=u.rowHeight??0;if(a+h>i)break;a+=h}l+=n}return Math.max(0,Math.min(l,s))}getViewportHeight(){const e=this.beans,t=ev(e),n=this.beans.scrollVisibleSvc.getScrollbarWidth();let i=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(i-=n),i}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return typeof t!="number"?!1:t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const n=this.beans.cellNavigation.getNextCellToFocus(e,t,!0);if(!n)return;const i=this.getNormalisedPosition(n),{rowIndex:o,rowPinned:r,column:s}=i??n,a=s;this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:a,focusIndex:o,focusColumn:a,rowPinned:r})}onHomeOrEndKey(e){const t=e===K.PAGE_HOME,{visibleCols:n,pageBounds:i,rowModel:o}=this.beans,r=n.allCols,s=t?i.getFirstRow():i.getLastRow(),a=o.getRow(s);if(!a)return;const l=(t?r:[...r].reverse()).find(u=>!u.isSuppressNavigable(a)&&!Kn(u));l&&this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:l,focusIndex:s,focusColumn:l})}onTabKeyDown(e,t){const n=t.shiftKey,i=this.tabToNextCellCommon(e,n,t),o=this.beans,{ctrlsSvc:r,pageBounds:s,focusSvc:a,gos:l}=o;if(i!==!1){i?t.preventDefault():i===null&&r.get("gridCtrl").allowFocusForNextCoreContainer(n);return}if(n){const{rowIndex:u,rowPinned:h}=e.getRowPosition();(h?u===0:u===s.getFirstRow())&&(l.get("headerHeight")===0||oo(o)?nl(o,!0,!0):(t.preventDefault(),a.focusPreviousFromFirstCell(t)))}else e instanceof ul&&e.focusCell(!0),(a.focusOverlay(!1)||nl(o,n))&&t.preventDefault()}tabToNextCell(e,t){const n=this.beans,{focusSvc:i,rowRenderer:o}=n,r=i.getFocusedCell();if(!r)return!1;let s=tl(n,r);return!s&&(s=o.getRowByPosition(r),!s?.isFullWidth())?!1:!!this.tabToNextCellCommon(s,e,t,"api")}tabToNextCellCommon(e,t,n,i="ui"){const{editSvc:o,focusSvc:r}=this.beans;let s;const a=e instanceof ul?e:e.getAllCellCtrls()?.[0];return o?.isEditing()?s=o?.moveToNextCell(a,t,n,i):s=this.moveToNextCellNotEditing(e,t,n),s===null?s:s||!!r.focusedHeader}moveToNextCellNotEditing(e,t,n){const i=this.beans.visibleCols.allCols;let o;if(e instanceof Sh){if(o={...e.getRowPosition(),column:t?i[0]:Tt(i)},this.gos.get("embedFullWidthRows")&&n){const s=e.findFullWidthInfoForEvent(n);s&&(o.column=s.column)}}else o=e.getFocusedCellPosition();const r=this.findNextCellToFocusOn(o,{backwards:t,startEditing:!1});if(r===!1)return null;if(r instanceof ul)r.focusCell(!0);else if(r)return this.tryToFocusFullWidthRow(r,t);return Pe(r)}findNextCellToFocusOn(e,{backwards:t,startEditing:n,skipToNextEditableCell:i}){let o=e;const r=this.beans,{cellNavigation:s,gos:a,focusSvc:l,rowRenderer:u}=r;for(;;){e!==o&&(e=o),t||(o=this.getLastCellOfColSpan(o)),o=s.getNextTabbedCell(o,t);const h=a.getCallback("tabToNextCell");if(Pe(h)){const v=h({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});if(v===!0)o=e;else{if(v===!1)return!1;o={rowIndex:v.rowIndex,column:v.column,rowPinned:v.rowPinned}}}if(!o)return null;if(o.rowIndex<0){const m=_i(r);return l.focusHeaderPosition({headerPosition:{headerRowIndex:m+o.rowIndex,column:o.column},fromCell:!0}),null}const f=a.get("editType")==="fullRow";if(n&&(!f||i)&&!this.isCellEditable(o))continue;this.ensureCellVisible(o);const g=tl(r,o);if(!g){const m=u.getRowByPosition(o);if(!m||!m.isFullWidth()||n)continue;return{...m.getRowPosition(),column:o?.column}}if(!s.isSuppressNavigable(g.column,g.rowNode))return g.setFocusedCellPosition(o),this.setRangeToCellIfSupported(o),g}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:n,rowModel:i}=this.beans;return t==="top"?n?.getPinnedTopRow(e):t==="bottom"?n?.getPinnedBottomRow(e):i.getRow(e)}navigateToNextCell(e,t,n,i){let o=n,r=!1;const s=this.beans,{cellNavigation:a,focusSvc:l,gos:u}=s;for(;o&&(o===n||!this.isValidNavigateCell(o));)u.get("enableRtl")?t===K.LEFT&&(o=this.getLastCellOfColSpan(o)):t===K.RIGHT&&(o=this.getLastCellOfColSpan(o)),o=a.getNextCellToFocus(t,o),r=Vt(o);if(r&&e&&e.key===K.UP&&(o={rowIndex:-1,rowPinned:null,column:n.column}),i){const f=u.getCallback("navigateToNextCell");if(Pe(f)){const m=f({key:t,previousCellPosition:n,nextCellPosition:o||null,event:e});Pe(m)?o={rowPinned:m.rowPinned,rowIndex:m.rowIndex,column:m.column}:o=null}}if(!o)return;if(o.rowIndex<0){const f=_i(s);l.focusHeaderPosition({headerPosition:{headerRowIndex:f+o.rowIndex,column:o.column??n.column},event:e||void 0,fromCell:!0});return}const h=this.getNormalisedPosition(o);h?this.focusPosition(h):this.tryToFocusFullWidthRow(o)}getNormalisedPosition(e){if(!!this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const n=tl(this.beans,e);return n?(e=n.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:n,rowRenderer:i,focusSvc:o,eventSvc:r}=this.beans,s=n.allCols;if(!i.getRowByPosition(e)?.isFullWidth())return!1;const l=o.getFocusedCell(),u={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?Tt(s):s[0])};this.focusPosition(u);const h=t??(l!=null&&w2(u,l));return r.dispatchEvent({type:"fullWidthRowFocused",rowIndex:u.rowIndex,rowPinned:u.rowPinned,column:u.column,isFullWidthCell:!0,fromBelow:h}),!0}focusPosition(e){const{focusSvc:t}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.setRangeToCellIfSupported(e)}setRangeToCellIfSupported(e){Kn(e.column)||this.beans.rangeSvc?.setRangeToCell(e)}isValidNavigateCell(e){return!!Ao(this.beans,e)}getLastCellOfColSpan(e){const t=tl(this.beans,e);if(!t)return e;const n=t.getColSpanningList();return n.length===1?e:{rowIndex:e.rowIndex,column:Tt(n),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=v0(this.gos),n=this.beans.rowModel.getRow(e.rowIndex),i=t&&n?.sticky,{scrollFeature:o}=this.gridBodyCon;!i&&Vt(e.rowPinned)&&o.ensureIndexVisible(e.rowIndex),e.column.isPinned()||o.ensureColumnVisible(e.column)}ensureColumnVisible(e){const t=this.gridBodyCon.scrollFeature;e.isPinned()||t.ensureColumnVisible(e)}ensureRowVisible(e){this.gridBodyCon.scrollFeature.ensureIndexVisible(e)}};function ev(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var b3={moduleName:"KeyboardNavigation",version:Re,beans:[w3,N5,JV],apiFunctions:{getFocusedCell:B5,clearFocusedCell:H5,setFocusedCell:G5,setFocusedHeader:z5,tabToNextCell:V5,tabToPreviousCell:W5}},y3=class extends X{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){const{pageBounds:e,pagination:t,rowModel:n}=this.beans;t?t.calculatePages():e.calculateBounds(0,n.getRowCount()-1)}},S3=class extends X{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){const{topRowBounds:e,bottomRowBounds:t}=this;return!e||!t?0:Math.max(t.rowTop+t.rowHeight-e.rowTop,0)}getCurrentPagePixelRange(){const{topRowBounds:e,bottomRowBounds:t}=this,n=e?.rowTop??0,i=t?t.rowTop+t.rowHeight:0;return{pageFirstPixel:n,pageLastPixel:i}}calculateBounds(e,t){const{rowModel:n}=this.beans,i=n.getRowBounds(e);i&&(i.rowIndex=e),this.topRowBounds=i;const o=n.getRowBounds(t);o&&(o.rowIndex=t),this.bottomRowBounds=o,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},R3=".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}",x3=class extends X{constructor(e,t){super(),this.isLeft=e,this.elements=t,this.getWidth=e?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[`${this.isLeft?"left":"right"}PinnedWidthChanged`]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){const e=this.getWidth(),t=e>0;for(const n of this.elements)n&&(xt(n,t),Eo(n,e))}},F3=class extends X{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,t=>{this.gridBodyCtrl=t.gridBodyCtrl});const e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const{gos:e,visibleCols:t,eventSvc:n}=this.beans,i=xn(e,"print"),o=i?0:t.getColsLeftWidth(),r=i?0:t.getDisplayedColumnsRightWidth();o!=this.leftWidth&&(this.leftWidth=o,n.dispatchEvent({type:"leftPinnedWidthChanged"})),r!=this.rightWidth&&(this.rightWidth=r,n.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const e=this.gridBodyCtrl.eBodyViewport,t=mc(e);if(t<=50)return;const n=this.getPinnedColumnsOverflowingViewport(t-50),i=this.gos.getCallback("processUnpinnedColumns"),{columns:o,hasLockedPinned:r}=n;let s=o;!s.length&&!r||(i&&(s=i({columns:s,viewportWidth:t})),s?.length&&(s=s.filter(a=>!Kn(a)),this.setColsPinned(s,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new x3(e,t)}setColsPinned(e,t,n){const{colModel:i,colAnimation:o,visibleCols:r,gos:s}=this.beans;if(!i.cols||!e?.length)return;if(xn(s,"print")){le(37);return}o?.start();let a;t===!0||t==="left"?a="left":t==="right"?a="right":a=null;const l=[];for(const u of e){if(!u)continue;const h=i.getCol(u);h&&h.getPinned()!==a&&(this.setColPinned(h,a),l.push(h))}l.length&&(r.refresh(n),nx(this.eventSvc,l,n)),o?.finish()}initCol(e){const{pinned:t,initialPinned:n}=e.colDef;t!==void 0?this.setColPinned(e,t):this.setColPinned(e,n)}setColPinned(e,t){t===!0||t==="left"?e.pinned="left":t==="right"?e.pinned="right":e.pinned=null,e.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(e){const{scrollVisibleSvc:t}=this.beans;if(e.pinned==null)return;const n=e.pinned==="left",i=e.pinned==="right";e.hidden=!0;const o=()=>{const r=n?this.leftWidth:this.rightWidth;if(r==null)return;const s=r==0,a=e.hidden!==s,l=this.gos.get("enableRtl"),u=t.getScrollbarWidth(),f=t.verticalScrollShowing&&(l&&n||!l&&i)?r+u:r;e.comp.setPinnedContainerWidth(`${f}px`),e.comp.setDisplayed(!s),a&&(e.hidden=s,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:o,rightPinnedWidthChanged:o,scrollVisibilityChanged:o,scrollbarWidthChanged:o})}getHeaderResizeDiff(e,t){if(t.getPinned()){const{leftWidth:i,rightWidth:o}=this,r=mc(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(i+o+e>r)if(r>i+o)e=r-i-o;else return 0}return e}getPinnedColumnsOverflowingViewport(e){const t=this.rightWidth??0,n=this.leftWidth??0,i=t+n;let o=!1;if(i<e)return{columns:[],hasLockedPinned:o};const{visibleCols:r}=this.beans,s=[...r.leftCols],a=[...r.rightCols];let l=0,u=0;const h=0,f=[];let g=i-h-e;for(;(u<s.length||l<a.length)&&g>0;){if(l<a.length){const m=a[l++];if(m.colDef.lockPinned){o=!0;continue}g-=m.getActualWidth(),f.push(m)}if(u<s.length&&g>0){const m=s[u++];if(m.colDef.lockPinned){o=!0;continue}g-=m.getActualWidth(),f.push(m)}}return{columns:f,hasLockedPinned:o}}},P3={moduleName:"PinnedColumn",version:Re,beans:[F3],css:[R3]},E3=class extends $n{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=gn(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=un(e),n=this.descriptionContainer=t.createElement("div");n.classList.add("ag-aria-description-container"),NS(n,"polite"),mL(n,"additions text"),pL(n,!0),e.eRootDiv.appendChild(n)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.handleAnnouncementUpdate(e)},50)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;if(t==null||t.replace(/[ .]/g,"")==""){this.lastAnnouncement="";return}this.lastAnnouncement===t&&(t=`${t}​`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(Rn(e),e.remove()),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},D3=class extends E3{},T3={moduleName:"Aria",version:Re,beans:[D3]},A3=":where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}",Qx="ag-delay-render",I3=class extends X{constructor(){super(...arguments),this.beanName="colDelayRenderSvc",this.hideRequested=!1,this.alreadyRevealed=!1,this.timesRetried=0,this.requesters=new Set}hideColumns(e){this.alreadyRevealed||this.requesters.has(e)||(this.requesters.add(e),this.hideRequested||(this.beans.ctrlsSvc.whenReady(this,t=>{t.gridBodyCtrl.eGridBody.classList.add(Qx)}),this.hideRequested=!0))}revealColumns(e){if(this.alreadyRevealed||!this.isAlive()||(this.requesters.delete(e),this.requesters.size>0))return;const{renderStatus:t,ctrlsSvc:n}=this.beans;if(t){if(!t.areHeaderCellsRendered()&&this.timesRetried<5){this.timesRetried++,setTimeout(()=>this.revealColumns(e));return}this.timesRetried=0}n.getGridBodyCtrl().eGridBody.classList.remove(Qx),this.alreadyRevealed=!0}},M3={moduleName:"ColumnDelayRender",version:Re,beans:[I3],css:[A3]},Rh=class extends Ft{constructor(){super()}},k3={tag:"div",cls:"ag-overlay-exporting-center",children:[{tag:"span",ref:"eExportingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eExportingText",cls:"ag-exporting-text"}]},L3=class extends Rh{constructor(){super(...arguments),this.eExportingIcon=ge,this.eExportingText=ge}init(e){const{beans:t}=this;this.setTemplate(k3);const n=si("overlayExporting",t,null);n&&this.eExportingIcon.appendChild(n);const i=e.exporting?.overlayText??this.getLocaleTextFunc()("exportingOoo","Exporting...");this.eExportingText.textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}},O3={tag:"div",cls:"ag-overlay-loading-center",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},_3=class extends Rh{constructor(){super(...arguments),this.eLoadingIcon=ge,this.eLoadingText=ge}init(e){const{beans:t,gos:n}=this,i=nr(n.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(i??O3),!i){const o=si("overlayLoading",t,null);o&&this.eLoadingIcon.appendChild(o);const r=e.loading?.overlayText??this.getLocaleTextFunc()("loadingOoo","Loading...");this.eLoadingText.textContent=r,t.ariaAnnounce.announceValue(r,"overlay")}}},N3={tag:"span",cls:"ag-overlay-no-matching-rows-center"},B3=class extends Rh{init(e){const{beans:t}=this;this.setTemplate(N3);const n=e.noMatchingRows?.overlayText??this.getLocaleTextFunc()("noMatchingRows","No Matching Rows");this.getGui().textContent=n,t.ariaAnnounce.announceValue(n,"overlay")}},H3={tag:"span",cls:"ag-overlay-no-rows-center"},G3=class extends Rh{init(e){const{beans:t,gos:n}=this,i=nr(n.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(i??H3),!i){const o=e.noRows?.overlayText??this.getLocaleTextFunc()("noRowsToShow","No Rows To Show");this.getGui().textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}}};function V3(e){e.overlays?.showLoadingOverlay()}function W3(e){e.overlays?.showNoRowsOverlay()}function z3(e){e.overlays?.hideOverlay()}var U3=".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{pointer-events:all}.ag-overlay-exporting-center,.ag-overlay-loading-center{background:var(--ag-background-color);border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);display:flex;padding:var(--ag-spacing)}",$3={tag:"div",cls:"ag-overlay",role:"presentation",children:[{tag:"div",cls:"ag-overlay-panel",role:"presentation",children:[{tag:"div",ref:"eOverlayWrapper",cls:"ag-overlay-wrapper",role:"presentation"}]}]},Yx=class extends Ft{constructor(){super($3),this.eOverlayWrapper=ge,this.activeOverlay=null,this.activePromise=null,this.activeCssClass=null,this.elToFocusAfter=null,this.overlayExclusive=!1,this.oldWrapperPadding=null,this.registerCSS(U3)}handleKeyDown(e){if(e.key!==K.TAB||e.defaultPrevented||cr(e))return;const{beans:t,eOverlayWrapper:n}=this;if(n&&Ks(t,n,!1,e.shiftKey))return;let o=!1;e.shiftKey?o=t.focusSvc.focusGridView({column:Tt(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):o=nl(t,!1),o&&e.preventDefault()}updateLayoutClasses(e,t){const n=this.eOverlayWrapper;if(!n)return;const i=n.classList,{AUTO_HEIGHT:o,NORMAL:r,PRINT:s}=ro;i.toggle(o,t.autoHeight),i.toggle(r,t.normal),i.toggle(s,t.print)}postConstruct(){this.createManagedBean(new mm(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setWrapperComp(this,!1),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)}),this.addManagedEventListeners({gridSizeChanged:this.refreshWrapperPadding.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper?.classList;if(!t){this.activeCssClass=null;return}this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)}showOverlay(e,t,n){if(this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,this.overlayExclusive=n,!e)return this.refreshWrapperPadding(),Ot.resolve();if(this.setWrapperTypeClass(t),this.setDisplayed(!0,{skipAriaHidden:!0}),this.refreshWrapperPadding(),n&&this.isGridFocused()){const i=Lt(this.beans);i&&!gp(this.beans)&&(this.elToFocusAfter=i)}return e.then(i=>{const o=this.eOverlayWrapper;if(!o){this.destroyBean(i);return}if(this.activePromise!==e){this.activeOverlay!==i&&(this.destroyBean(i),i=null);return}this.activePromise=null,i&&(this.activeOverlay!==i&&(o.appendChild(i.getGui()),this.activeOverlay=i),n&&this.isGridFocused()&&js(o))}),e}refreshWrapperPadding(){if(!this.eOverlayWrapper){this.oldWrapperPadding=null;return}const e=!!this.activeOverlay||!!this.activePromise;let t=0;e&&!this.overlayExclusive&&(t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0),t!==this.oldWrapperPadding&&(this.oldWrapperPadding=t,this.eOverlayWrapper.style.setProperty("padding-top",`${t}px`))}destroyActiveOverlay(){this.activePromise=null;const e=this.activeOverlay;if(!e){this.overlayExclusive=!1,this.elToFocusAfter=null,this.refreshWrapperPadding();return}let t=this.elToFocusAfter;this.elToFocusAfter=null,this.activeOverlay=null,this.overlayExclusive=!1,t&&!this.isGridFocused()&&(t=null),this.destroyBean(e);const n=this.eOverlayWrapper;n&&Rn(n),t?.focus?.({preventScroll:!0}),this.refreshWrapperPadding()}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=Lt(this.beans);return!!e&&this.beans.eGridDiv.contains(e)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setWrapperComp(this,!0),super.destroy(),this.eOverlayWrapper=null}},j3={selector:"AG-OVERLAY-WRAPPER",component:Yx},K3=["refresh"],Gc=e=>({name:e,optionalMethods:K3}),na={id:"agLoadingOverlay",overlayType:"loading",comp:Gc("loadingOverlayComponent"),wrapperCls:"ag-overlay-loading-wrapper",exclusive:!0,compKey:"loadingOverlayComponent",paramsKey:"loadingOverlayComponentParams",isSuppressed:e=>{const t=e.get("loading");return t===!1||e.get("suppressLoadingOverlay")===!0&&t!==!0}},dl={id:"agNoRowsOverlay",overlayType:"noRows",comp:Gc("noRowsOverlayComponent"),wrapperCls:"ag-overlay-no-rows-wrapper",compKey:"noRowsOverlayComponent",paramsKey:"noRowsOverlayComponentParams",isSuppressed:e=>e.get("suppressNoRowsOverlay")},tv={id:"agNoMatchingRowsOverlay",overlayType:"noMatchingRows",comp:Gc("noMatchingRowsOverlayComponent"),wrapperCls:"ag-overlay-no-matching-rows-wrapper"},xh={id:"agExportingOverlay",overlayType:"exporting",comp:Gc("exportingOverlayComponent"),wrapperCls:"ag-overlay-exporting-wrapper",exclusive:!0},Fh={id:"activeOverlay",comp:Gc("activeOverlay"),wrapperCls:"ag-overlay-modal-wrapper",exclusive:!0},q3=e=>e?{agLoadingOverlay:na,agNoRowsOverlay:dl,agNoMatchingRowsOverlay:tv,agExportingOverlay:xh}[e]??Fh:null,Q3=e=>e?{loading:na,noRows:dl,noMatchingRows:tv,exporting:xh}[e]:null,Y3=class extends X{constructor(){super(...arguments),this.beanName="overlays",this.eWrapper=void 0,this.exclusive=!1,this.oldExclusive=!1,this.currentDef=null,this.showInitialOverlay=!0,this.userForcedNoRows=!1,this.exportsInProgress=0,this.newColumnsLoadedCleanup=null}postConstruct(){const e=this.gos;this.showInitialOverlay=en(e);const t=()=>{this.userForcedNoRows||this.updateOverlay(!1)},[n,i,o,r]=this.addManagedEventListeners({newColumnsLoaded:t,rowCountReady:()=>{this.disableInitialOverlay(),t(),i()},rowDataUpdated:t,modelUpdated:t});this.newColumnsLoadedCleanup=n,this.addManagedPropertyListeners(["loading","activeOverlay","activeOverlayParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams"],s=>this.onPropChange(new Set(s.changeSet?.properties)))}destroy(){this.doHideOverlay(),super.destroy(),this.eWrapper=void 0}setWrapperComp(e,t){this.isAlive()&&(t?this.eWrapper===e&&(this.eWrapper=void 0):this.eWrapper=e,this.updateOverlay(!1))}isVisible(){return!!this.currentDef}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos;if(!this.eWrapper||e.get("activeOverlay")||this.isDisabled(na))return;const t=e.get("loading");!t&&t!==void 0||this.doShowOverlay(na)}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;!this.eWrapper||e.get("activeOverlay")||e.get("loading")||this.isDisabled(dl)||(this.userForcedNoRows=!0,this.doShowOverlay(dl))}async showExportOverlay(e){const{gos:t,beans:n}=this;if(!this.eWrapper||t.get("activeOverlay")||t.get("loading")||this.isDisabled(xh)||this.userForcedNoRows&&this.currentDef===dl){e();return}const i=this.getDesiredDefWithOverride(xh);if(!i){e();return}this.exportsInProgress++,this.focusedCell=n.focusSvc.getFocusedCell(),await this.doShowOverlay(i),await new Promise(r=>setTimeout(()=>r()));const o=Date.now();try{e()}finally{const r=Date.now()-o,s=Math.max(0,300-r),a=()=>{this.exportsInProgress--,this.exportsInProgress===0&&(this.updateOverlay(!1),F2(n,this.focusedCell),this.focusedCell=null)};s>0?setTimeout(()=>a(),s):a()}}hideOverlay(){const e=this.gos;this.showInitialOverlay=!1;const t=this.userForcedNoRows;if(this.userForcedNoRows=!1,e.get("loading")){le(99);return}if(e.get("activeOverlay")){le(296);return}if(this.currentDef===tv){le(297);return}this.doHideOverlay(),t&&this.getOverlayDef()!==dl&&this.updateOverlay(!1)}getOverlayWrapperSelector(){return j3}getOverlayWrapperCompClass(){return Yx}onPropChange(e){const t=e.has("activeOverlay");if((t||e.has("loading"))&&this.updateOverlay(t))return;const n=this.currentDef,i=this.eWrapper?.activeOverlay;if(i&&n){const o=e.has("activeOverlayParams");if(n===Fh)o&&i.refresh?.(this.makeCompParams(!0));else{const r=n.paramsKey;(e.has("overlayComponentParams")||r&&e.has(r))&&i.refresh?.(this.makeCompParams(!1,r,n.overlayType))}}}updateOverlay(e){const t=this.eWrapper;if(!t)return this.currentDef=null,!1;const n=this.getDesiredDefWithOverride(),i=this.currentDef,o=n===Fh&&e;return n!==i?n?(this.doShowOverlay(n),!0):(this.disableInitialOverlay(),this.doHideOverlay()):o&&n?(t.hideOverlay(),this.doShowOverlay(n),!0):(n||this.disableInitialOverlay(),!1)}getDesiredDefWithOverride(e){const{gos:t}=this;let n=q3(t.get("activeOverlay"));return n||(n=e??this.getOverlayDef(),n&&this.isDisabled(n)&&(n=null)),n}getOverlayDef(){const{gos:e,beans:t}=this,{rowModel:n}=t,i=e.get("loading");if(i!==void 0){if(this.disableInitialOverlay(),i)return na}else if(this.showInitialOverlay){if(!this.isDisabled(na)&&(!e.get("columnDefs")||!e.get("rowData")))return na;this.disableInitialOverlay()}else this.disableInitialOverlay();const r=n.getOverlayType();return Q3(r)}disableInitialOverlay(){this.showInitialOverlay=!1,this.newColumnsLoadedCleanup?.(),this.newColumnsLoadedCleanup=null}doShowOverlay(e){const{gos:t,beans:n}=this,{userCompFactory:i}=n;this.currentDef=e;const o=e!==Fh,r=!!e.exclusive;this.exclusive=r;let s;(e.paramsKey&&t.get(e.paramsKey)||e.compKey&&t.get(e.compKey))&&(s=e.paramsKey);let a;o&&(t.get("overlayComponent")||t.get("overlayComponentSelector"))&&(a=i.getCompDetailsFromGridOptions({name:"overlayComponent",optionalMethods:["refresh"]},void 0,this.makeCompParams(!1,e.paramsKey,e.overlayType))),a??(a=i.getCompDetailsFromGridOptions(e.comp,o?e.id:void 0,this.makeCompParams(!o,s,e.overlayType),!1));const l=a?.newAgStackInstance()??null,u=this.eWrapper?this.eWrapper.showOverlay(l,e.wrapperCls,r):Ot.resolve();return this.eWrapper?.refreshWrapperPadding(),this.setExclusive(r),u}makeCompParams(e,t,n){const{gos:i}=this,o=e?i.get("activeOverlayParams"):{...i.get("overlayComponentParams"),...t&&i.get(t)||null,overlayType:n};return Ue(i,o??{})}doHideOverlay(){let e=!1;this.currentDef&&(this.currentDef=null,e=!0),this.exclusive=!1;const t=this.eWrapper;return t&&(t.hideOverlay(),t.refreshWrapperPadding(),this.setExclusive(!1)),e}setExclusive(e){this.oldExclusive!==e&&(this.oldExclusive=e,this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"}))}isDisabled(e){const{gos:t}=this;return e.overlayType&&t.get("suppressOverlays")?.includes(e.overlayType)||e.isSuppressed?.(t)===!0}},Z3={moduleName:"Overlay",version:Re,userComponents:{agLoadingOverlay:_3,agNoRowsOverlay:G3,agNoMatchingRowsOverlay:B3,agExportingOverlay:L3},apiFunctions:{showLoadingOverlay:V3,showNoRowsOverlay:W3,hideOverlay:z3},icons:{overlayLoading:"loading",overlayExporting:"loading"},beans:[Y3]},J3=class extends X{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=U_(),Vr(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;Vr(this.gos,`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=this.modelHeight-this.getUiBodyHeight(),n=e/t;return this.maxScrollY*n}},X3=400,eW=class extends X{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{for(const r of this.getAllCellCtrls())r.onCellSelectionChanged()},t=()=>{for(const r of this.getAllCellCtrls())r.updateRangeBordersIfRangeCount()},n=()=>{this.eventSvc.addListener("cellSelectionChanged",e),this.eventSvc.addListener("columnMoved",t),this.eventSvc.addListener("columnPinned",t),this.eventSvc.addListener("columnVisible",t)},i=()=>{this.eventSvc.removeListener("cellSelectionChanged",e),this.eventSvc.removeListener("columnMoved",t),this.eventSvc.removeListener("columnPinned",t),this.eventSvc.removeListener("columnVisible",t)};this.addDestroyFunc(()=>i()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{rr(this.gos)?n():i()}),rr(this.gos)&&n()}}wireBeans(e){this.pageBounds=e.pageBounds,this.colModel=e.colModel,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusSvc=e.focusSvc,this.rowContainerHeight=e.rowContainerHeight,this.ctrlsSvc=e.ctrlsSvc,this.editSvc=e.editSvc}postConstruct(){this.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",i=>this.onSuppressCellFocusChanged(i.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:i,previousValue:o})=>{(!o&&i||o&&!i)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:n}=this.beans;if(n&&this.addManagedPropertyListener("showOpenedGroup",()=>{const i=n.columns;i.length&&this.refreshCells({columns:i,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const i=this.gridBodyCtrl;i.setStickyTopHeight(0),i.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=xn(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount(),t=e??3;this.cachedRowCtrls=new tW(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){const e=Object.values(this.rowCtrlsByRowIndex),t=Object.values(this.zombieRowCtrls),n=this.cachedRowCtrls?.getEntries()??[];t.length>0||n.length>0?this.allRowCtrls=[...e,...t,...n]:this.allRowCtrls=e}isCellBeingRendered(e,t){const n=this.rowCtrlsByRowIndex[e];return!t||!n?!!n:n.isFullWidth()?!0:!!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null})||!!n.getCellCtrl(t)||!n.isRowRendered()}updateCellFocus(e){for(const t of this.getAllCellCtrls())t.onCellFocused(e);for(const t of this.getFullWidthRowCtrls())t.onFullWidthRowFocused(e)}onCellFocusChanged(e){if(e?.rowIndex!=null&&!e.rowPinned){const t=this.beans.colModel.getCol(e.column)??void 0;this.isCellBeingRendered(e.rowIndex,t)||this.redraw()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){for(const t of this.getAllCellCtrls())t.onSuppressCellFocusChanged(e);for(const t of this.getFullWidthRowCtrls())t.onSuppressCellFocusChanged(e)}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{const{cellFlashSvc:t}=this.beans;if(t)for(const n of this.getAllCellCtrls())t.onFlashCells(n,e)},columnHoverChanged:()=>{for(const e of this.getAllCellCtrls())e.onColumnHover()},displayedColumnsChanged:()=>{for(const e of this.getAllCellCtrls())e.onDisplayedColumnsChanged()},displayedColumnsWidthChanged:()=>{if(this.printLayout)for(const e of this.getAllCellCtrls())e.onLeftChanged()}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){for(const e of this.destroyFuncsForColumnListeners)e();this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners();const e=this.colModel.getCols();for(const t of e){const n=l=>{for(const u of this.getAllCellCtrls())u.column===t&&l(u)},i=()=>{n(l=>l.onLeftChanged())},o=()=>{n(l=>l.onWidthChanged())},r=()=>{n(l=>l.onFirstRightPinnedChanged())},s=()=>{n(l=>l.onLastLeftPinnedChanged())},a=()=>{n(l=>l.onColDefChanged())};t.__addEventListener("leftChanged",i),t.__addEventListener("widthChanged",o),t.__addEventListener("firstRightPinnedChanged",r),t.__addEventListener("lastLeftPinnedChanged",s),t.__addEventListener("colDefChanged",a),this.destroyFuncsForColumnListeners.push(()=>{t.__removeEventListener("leftChanged",i),t.__removeEventListener("widthChanged",o),t.__removeEventListener("firstRightPinnedChanged",r),t.__removeEventListener("lastLeftPinnedChanged",s),t.__removeEventListener("colDefChanged",a)})}}onDomLayoutChanged(){const e=xn(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsNotSpanningForColumn(e){const t=[];for(const n of this.getAllRowCtrls()){const i=n.getCellCtrl(e,!0)?.eGui;i&&t.push(i)}return t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,n){const{pinnedRowModel:i,beans:o,printLayout:r}=this,s=Object.fromEntries(e.map(l=>[l.rowNode.id,l]));i?.forEachPinnedRow(t,(l,u)=>{const h=e[u];h&&i.getPinnedRowById(h.rowNode.id,t)===void 0&&(h.destroyFirstPass(),h.destroySecondPass()),l.id in s&&n?(e[u]=s[l.id],delete s[l.id]):e[u]=new Sh(l,o,!1,!1,r)});const a=(t==="top"?i?.getPinnedTopRowCount():i?.getPinnedBottomRowCount())??0;e.length=a}onPinnedRowDataChanged(){const e={recycleRows:!0};this.redrawAfterModelUpdate(e)}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else if(this.cachedRowCtrls?.has(e)){this.cachedRowCtrls.removeRow(e);return}else{const n=i=>{const o=i[e.rowIndex];o&&o.rowNode===e&&(o.destroyFirstPass(),o.destroySecondPass(),i[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":n(this.topRowCtrls);break;case"bottom":n(this.bottomRowCtrls);break;default:n(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){const{editSvc:t}=this.beans;if(t?.isEditing()&&(t.isBatchEditing()?t.cleanupEditors():t.stopEditing(void 0,{source:"api"})),e!=null){for(const i of e??[])this.redrawRow(i,!0);this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const n=!e.domLayoutChanged&&!!e.recycleRows,i=e.animate&&Ka(this.gos),o=n?this.getRowsToRecycle():null;n||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:r,gos:s}=this;if(r){r.checkStickyRows();const a=r.extraTopHeight+r.extraBottomHeight;a&&this.updateContainerHeights(a)}this.recycleRows(o,i),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(s.get("enableRowPinning")?n:void 0),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,n=this.gos.get("suppressScrollOnNewData");t&&!n&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout){t.setModelHeight(null);return}let n=this.pageBounds.getCurrentPageHeight();n===0&&(n=1),t.setModelHeight(n+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(Do(252));this.refreshInProgress=!0,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){if(!e)return;const t=this.beans.focusSvc,n=this.findPositionToFocus(e);if(!n){t.focusHeaderPosition({headerPosition:{headerRowIndex:_i(this.beans)-1,column:e.column}});return}if(e.rowIndex!==n.rowIndex||e.rowPinned!=n.rowPinned){t.setFocusedCell({...n,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0});return}t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(Ue(this.gos,{...n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))}findPositionToFocus(e){const{pagination:t,pageBounds:n}=this.beans;let i=e;for(i.rowPinned==null&&t&&n&&!t.isRowInPage(i.rowIndex)&&(i={rowPinned:null,rowIndex:n.getFirstRow()});i;){if(i.rowPinned==null&&n)if(i.rowIndex<n.getFirstRow()){if(i=th(this.beans,{rowPinned:null,rowIndex:0}),!i)return null}else i.rowIndex>n.getLastRow()&&(i={rowPinned:null,rowIndex:n.getLastRow()});const o=this.getRowByPosition(i);if(o?.isAlive())return{...o.getRowPosition(),column:e.column};i=th(this.beans,i)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),n=t.length;for(let i=0;i<n;i++){const o=t[i].getAllCellCtrls(),r=o.length;for(let s=0;s<r;s++)e.push(o[s])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),n=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...n,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,n){const i=this.rowCtrlsByRowIndex[t];i&&i.addEventListener(e,n)}refreshCells({rowNodes:e,columns:t,force:n,suppressFlash:i}={}){const o={force:n,newData:!1,suppressFlash:i};for(const r of this.getCellCtrls(e,t))r.refreshOrDestroyCell(o);this.refreshFullWidth(e)}refreshRows(e={}){for(const t of this.getRowCtrls(e.rowNodes))t.refreshRow(e);this.refreshFullWidth(e.rowNodes)}getRowCtrlByNode(e){const t=e.rowIndex;if(t==null)return;const n=e.rowPinned;if(n==="top"){const o=this.topRowCtrls[t];return o?.rowNode===e?o:void 0}if(n==="bottom"){const o=this.bottomRowCtrls[t];return o?.rowNode===e?o:void 0}const i=this.rowCtrlsByRowIndex[t];return i?.rowNode===e?i:this.getStickyRowCtrlByNode(e)}getStickyRowCtrlByNode(e){const t=this.stickyRowFeature;if(t){for(const n of t.stickyTopRowCtrls)if(n.rowNode===e)return n;for(const n of t.stickyBottomRowCtrls)if(n.rowNode===e)return n}}refreshRowByNode(e){e&&this.getRowCtrlByNode(e)?.refreshRow()}refreshFullWidth(e){if(!e)return;let t=!1;for(const n of this.getRowCtrls(e)){if(!n.isFullWidth())continue;n.refreshFullWidth()||(t=!0,this.redrawRow(n.rowNode,!0))}t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=nv(e),n=this.getAllRowCtrls();return!e||!t?n:n.filter(i=>{const o=i.rowNode;return iv(o,t)})}getCellCtrls(e,t){let n;Pe(t)&&(n={},t.forEach(o=>{const r=this.colModel.getCol(o);Pe(r)&&(n[r.getId()]=!0)}));const i=[];for(const o of this.getRowCtrls(e))for(const r of o.getAllCellCtrls()){const s=r.column.getId();n&&!n[s]||i.push(r)}return i}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const e=[];for(const n of Object.keys(this.rowCtrlsByRowIndex))this.rowCtrlsByRowIndex[n].rowNode.id==null&&e.push(n);this.removeRowCtrls(e);const t={};for(const n of Object.values(this.rowCtrlsByRowIndex)){const i=n.rowNode;t[i.id]=n}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){for(const n of e){const i=this.rowCtrlsByRowIndex[n];i&&(i.destroyFirstPass(t),i.destroySecondPass()),delete this.rowCtrlsByRowIndex[n]}}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:n}=this.beans,{afterScroll:i}=e;let o;const r=this.stickyRowFeature;r&&(o=t?.getFocusCellToUseAfterRefresh()||void 0);const s=this.firstRenderedRow,a=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let l=!1;if(r){l=r.checkStickyRows();const h=r.extraTopHeight+r.extraBottomHeight;h&&this.updateContainerHeights(h)}const u=this.firstRenderedRow!==s||this.lastRenderedRow!==a;if(!(i&&!l&&!u)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,i),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(i&&!l),o!=null)){const h=t?.getFocusCellToUseAfterRefresh();o!=null&&h==null&&(n?.flushAllFrames(),this.restoreFocusedCell(o))}}removeRowCompsNotToDraw(e,t){const n={};for(const r of e)n[r]=!0;const o=Object.keys(this.rowCtrlsByRowIndex).filter(r=>!n[r]);this.removeRowCtrls(o,t)}calculateIndexesToDraw(e){const t=[];for(let s=this.firstRenderedRow;s<=this.lastRenderedRow;s++)t.push(s);const n=this.beans.pagination,i=this.beans.focusSvc?.getFocusedCell()?.rowIndex;i!=null&&(i<this.firstRenderedRow||i>this.lastRenderedRow)&&(!n||n.isRowInPage(i))&&i<this.rowModel.getRowCount()&&t.push(i);const o=s=>{const a=s.rowNode.rowIndex;a==null||a===i||(a<this.firstRenderedRow||a>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(s)&&t.push(a)};for(const s of Object.values(this.rowCtrlsByRowIndex))o(s);if(e)for(const s of Object.values(e))o(s);t.sort((s,a)=>s-a);const r=[];for(let s=0;s<t.length;s++){const a=t[s],l=this.rowModel.getRow(a);l&&!l.sticky&&r.push(a)}return r}recycleRows(e,t=!1,n=!1){const i=this.calculateIndexesToDraw(e);(this.printLayout||n)&&(t=!1),this.removeRowCompsNotToDraw(i,!t);for(const o of i)this.createOrUpdateRowCtrl(o,e,t,n);if(e){const{animationFrameSvc:o}=this.beans;o?.active&&n&&!this.printLayout?o.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const{visibleCols:e}=this.beans,t=e.isPinningLeft(),n=e.isPinningRight();(this.pinningLeft!==t||n!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=n,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];for(const t of this.getFullWidthRowCtrls()){const n=t.rowNode.rowIndex;e.push(n.toString())}this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=nv(e);return this.getAllRowCtrls().filter(n=>{if(!n.isFullWidth())return!1;const i=n.rowNode;return!(t!=null&&!iv(i,t))})}createOrUpdateRowCtrl(e,t,n,i){let o,r=this.rowCtrlsByRowIndex[e];if(r||(o=this.rowModel.getRow(e),Pe(o)&&Pe(t)&&t[o.id]&&o.alreadyRendered&&(r=t[o.id],t[o.id]=null)),!r)if(o||(o=this.rowModel.getRow(e)),Pe(o))r=this.createRowCon(o,n,i);else return;o&&(o.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=r}destroyRowCtrls(e,t){const n=[];if(e){for(const i of Object.values(e))if(i){if(this.cachedRowCtrls&&i.isCacheable()){this.cachedRowCtrls.addRow(i);continue}if(i.destroyFirstPass(!t),t){const o=i.instanceId;this.zombieRowCtrls[o]=i,n.push(()=>{i.destroySecondPass(),delete this.zombieRowCtrls[o]})}else i.destroySecondPass()}}t&&(n.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(const i of n)i()},X3))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=Vs(this.beans);return e*t}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:n}=this;e.updateOffset();let i,o;if(!n.isRowsToRender())i=0,o=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),i=t.getFirstRow(),o=t.getLastRow();else{const h=this.getRowBufferInPixels(),f=this.ctrlsSvc.getScrollFeature(),g=this.gos.get("suppressRowVirtualisation");let m=!1,v,w;do{const P=t.getPixelOffset(),{pageFirstPixel:F,pageLastPixel:A}=t.getCurrentPagePixelRange(),k=e.divStretchOffset,L=f.getVScrollPosition(),N=L.top,M=L.bottom;g?(v=F+k,w=A+k):(v=Math.max(N+P-h,F)+k,w=Math.min(M+P+h,A)+k),this.firstVisibleVPixel=Math.max(N+P,F)+k,this.lastVisibleVPixel=Math.min(M+P,A)+k,m=this.ensureAllRowsInRangeHaveHeightsCalculated(v,w)}while(m);let b=n.getRowIndexAtPixel(v),y=n.getRowIndexAtPixel(w);const R=t.getFirstRow(),S=t.getLastRow();b<R&&(b=R),y>S&&(y=S),i=b,o=y}const r=xn(this.gos,"normal"),s=this.gos.get("suppressMaxRenderedRowRestriction"),a=Math.max(this.getRowBuffer(),500);r&&!s&&o-i>a&&(o=i+a);const l=i!==this.firstRenderedRow,u=o!==this.lastRenderedRow;(l||u)&&(this.firstRenderedRow=i,this.lastRenderedRow=o,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:i,lastRow:o}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,ir(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const n=this.pinnedRowModel?.ensureRowHeightsValid(),i=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:o,rowModel:r}=this,s=r.ensureRowHeightsValid(e,t,o.getFirstRow(),o.getLastRow());return(s||i)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),i||s||n?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(e){const i=e.rowNode,o=this.focusSvc.isRowFocused(i.rowIndex,i.rowPinned),r=this.editSvc?.isEditing(e),s=i.detail;return o||r||s?!!this.isRowPresent(i):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.beans.pagination?.isRowInPage(e.rowIndex)??!0:!1}createRowCon(e,t,n){const i=this.cachedRowCtrls?.getRow(e)??null;if(i)return i;const o=n&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new Sh(e,this.beans,t,o,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(i=>i.rowNode),t=this.getStickyTopRowCtrls().map(i=>i.rowNode),n=this.getStickyBottomRowCtrls().map(i=>i.rowNode);return[...t,...e,...n]}getRowByPosition(e){let t;const{rowIndex:n}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[n];break;case"bottom":t=this.bottomRowCtrls[n];break;default:t=this.rowCtrlsByRowIndex[n],t||(t=this.getStickyTopRowCtrls().find(i=>i.rowNode.rowIndex===n)||null,t||(t=this.getStickyBottomRowCtrls().find(i=>i.rowNode.rowIndex===n)||null));break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;const i=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!i}},tW=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.rowNode.id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}}getRow(e){if(e?.id==null)return null;const t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.rowNode!=e?null:t):null}has(e){return this.entriesMap[e.id]!=null}removeRow(e){const t=e.id,n=this.entriesMap[t];delete this.entriesMap[t],Fo(this.entriesList,n)}removeFromCache(e){const t=e.rowNode.id;delete this.entriesMap[t],Fo(this.entriesList,e)}getEntries(){return this.entriesList}};function nv(e){if(!e)return;const t={top:{},bottom:{},normal:{}};for(const n of e){const i=n.id;switch(n.rowPinned){case"top":t.top[i]=n;break;case"bottom":t.bottom[i]=n;break;default:t.normal[i]=n;break}}return t}function iv(e,t){const n=e.id;switch(e.rowPinned){case"top":return t.top[n]!=null;case"bottom":return t.bottom[n]!=null;default:return t.normal[n]!=null}}var nW=class extends X{constructor(){super(...arguments),this.beanName="rowNodeSorter",this.accentedSort=!1,this.primaryColumnsSortGroups=!1,this.pivotActive=!1}postConstruct(){this.firstLeaf=en(this.gos)?hh:iW,this.addManagedPropertyListeners(["accentedSort","autoGroupColumnDef","treeData"],this.updateOptions.bind(this));const e=this.updatePivotModeState.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,columnPivotChanged:e}),this.updateOptions(),e()}updateOptions(){this.accentedSort=!!this.gos.get("accentedSort"),this.primaryColumnsSortGroups=or(this.gos)}updatePivotModeState(){this.pivotActive=this.beans.colModel.isPivotActive()}doFullSortInPlace(e,t){return e.sort((n,i)=>this.compareRowNodes(t,n,i))}compareRowNodes(e,t,n){if(t===n)return 0;const i=this.accentedSort;for(let o=0,r=e.length;o<r;++o){const s=e[o],a=s.sort==="desc";let l=this.getValue(t,s.column),u=this.getValue(n,s.column),h;const f=this.getComparator(s,t);if(f?h=f(l,u,t,n,a):(s.type==="absolute"&&(l=Zx(l),u=Zx(u)),h=aL(l,u,i)),h)return s.sort==="asc"?h:-h}return 0}getComparator(e,t){const n=e.column.getColDef(),i=this.getComparatorFromColDef(n,e);if(i)return i;if(!n.showRowGroup)return;const o=!t.group&&n.field;if(!o)return;const r=this.beans.colModel.getColDefCol(o);if(r)return this.getComparatorFromColDef(r.getColDef(),e)}getComparatorFromColDef(e,t){const n=e.comparator;if(n!=null)return typeof n=="object"?n[sr(t.type)]:n}getValue(e,t){const n=this.beans;if(this.primaryColumnsSortGroups){if(e.rowGroupColumn===t)return this.getGroupDataValue(e,t);if(e.group&&t.getColDef().showRowGroup)return}const i=n.valueSvc.getValue(t,e,"data");if(t.isAllowFormula()){const o=n.formula;if(o?.isFormula(i))return o.resolveValue(t,e)}return i}getGroupDataValue(e,t){if(w0(this.gos,this.pivotActive)){const i=this.firstLeaf(e);return i&&this.beans.valueSvc.getValue(t,i,"data")}const n=this.beans.showRowGroupCols?.getShowRowGroupCol(t.getId());return n?e.groupData?.[n.getId()]:void 0}},iW=e=>{if(e.data)return e;let t=e.childrenAfterGroup;for(;t?.length;){const n=t[0];if(n.data)return n;t=n.childrenAfterGroup}},Zx=e=>{if(!e)return e;if(typeof e=="bigint")return e<0n?-e:e;const t=Number(e);return isNaN(t)?e:Math.abs(t)};function oW(e){e.sortSvc?.onSortChanged("api")}var ia=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),rW={tag:"span",cls:"ag-sort-indicator-container",children:[ia("Order","order"),ia("Asc","ascending-icon"),ia("Desc","descending-icon"),ia("Mixed","mixed-icon"),ia("AbsoluteAsc","absolute-ascending-icon"),ia("AbsoluteDesc","absolute-descending-icon"),ia("None","none-icon")]},ov=class extends Ft{constructor(e){super(),this.eSortOrder=ge,this.eSortAsc=ge,this.eSortDesc=ge,this.eSortMixed=ge,this.eSortNone=ge,this.eSortAbsoluteAsc=ge,this.eSortAbsoluteDesc=ge,e||this.setTemplate(rW)}attachCustomElements(e,t,n,i,o,r,s){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=n,this.eSortMixed=i,this.eSortNone=o,this.eSortAbsoluteAsc=r,this.eSortAbsoluteDesc=s}setupSort(e,t=!1,n){if(this.column=e,this.suppressOrder=t,this.getSortDefOverride=n,this.setupMultiSortIndicator(),!e.isSortable()&&!e.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("sortAbsoluteAscending",this.eSortAbsoluteAsc,e),this.addInIcon("sortAbsoluteDescending",this.eSortAbsoluteDesc,e);const i=this.updateIcons.bind(this),o=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",i),this.addManagedEventListeners({newColumnsLoaded:i,sortChanged:o,columnRowGroupChanged:o}),this.onSortChanged()}addInIcon(e,t,n){if(t==null)return;const i=si(e,this.beans,n);i&&t.appendChild(i)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortAbsoluteAsc:n,eSortAbsoluteDesc:i,eSortNone:o,column:r,gos:s,beans:a}=this,l=BO(r,a,this.getSortDefOverride),u=l.isDefaultSortAllowed,h=l.isAbsoluteSortAllowed,{isAbsoluteSort:f,isDefaultSort:g,isAscending:m,isDescending:v,direction:w}=l;if(e&&xt(e,m&&g&&u,{skipAriaHidden:!0}),t&&xt(t,v&&g&&u,{skipAriaHidden:!0}),o){const b=!r.getColDef().unSortIcon&&!s.get("unSortIcon");xt(o,!b&&!w,{skipAriaHidden:!0})}n&&xt(n,m&&f&&h,{skipAriaHidden:!0}),i&&xt(i,v&&f&&h,{skipAriaHidden:!0})}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:n}=this;this.addInIcon("sortUnSort",e,t);const i=t.getColDef().showRowGroup;or(n)&&i&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:n}=this;if(e){const i=t.sortSvc.getDisplaySortForColumn(n)?.direction==="mixed";xt(e,i,{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:n}}=this;if(!e)return;const i=n.getColumnsWithSortingOrdered(),o=n.getDisplaySortIndexForColumn(t)??-1,r=i.some(a=>n.getDisplaySortIndexForColumn(a)??!1),s=o>=0&&r;xt(e,s,{skipAriaHidden:!0}),o>=0?e.textContent=(o+1).toString():Rn(e)}refresh(){this.onSortChanged()}},sW={selector:"AG-SORT-INDICATOR",component:ov},aW=class extends X{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,n){const i=this.getNextSortDirection(e);this.setSortForColumn(e,i,t,n)}progressSortFromEvent(e,t){const i=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,i,"uiColumnSorted")}setSortForColumn(e,t,n,i){const{gos:o,showRowGroupCols:r}=this.beans,s=or(o);let a=[e];if(s&&e.getColDef().showRowGroup){const f=r?.getSourceColumnsForGroupColumn?.(e)?.filter(g=>g.isSortable());f&&(a=[e,...f])}for(const h of a)this.setColSort(h,t,i);const l=(n||o.get("alwaysMultiSort"))&&!o.get("suppressMultiSort"),u=[];if(!l){const h=this.clearSortBarTheseColumns(a,i);u.push(...h)}this.updateSortIndex(e),u.push(...a),this.dispatchSortChangedEvents(i,u)}updateSortIndex(e){const{gos:t,colModel:n,showRowGroupCols:i}=this.beans,o=or(t),r=i?.getShowRowGroupCol(e.getId()),s=o&&r||e,a=this.getColumnsWithSortingOrdered();n.forAllCols(h=>this.setColSortIndex(h,null));const l=a.filter(h=>o&&h.getColDef().showRowGroup?!1:h!==s);(s.getSortDef()?[...l,s]:l).forEach((h,f)=>this.setColSortIndex(h,f))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let e=!1;return this.beans.colModel.forAllCols(t=>{if(t.getSortDef())return e=!0,!0}),e}dispatchSortChangedEvents(e,t){const n={type:"sortChanged",source:e};t&&(n.columns=t),this.eventSvc.dispatchEvent(n)}clearSortBarTheseColumns(e,t){const n=[];return this.beans.colModel.forAllCols(i=>{e.includes(i)||(i.getSortDef()&&n.push(i),this.setColSort(i,void 0,t))}),n}getNextSortDirection(e,t){const n=e.getSortingOrder(),i=t===void 0?e.getSortDef():Oi(t);let r=n.findIndex(s=>zd(s,i))+1;return r>=n.length&&(r=0),Oi(n[r])}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:n,rowGroupColsSvc:i}=this.beans;let o=[];if(t.forAllCols(u=>{u.getSortDef()&&o.push(u)}),t.isPivotMode()){const u=or(e);o=o.filter(h=>{const f=!!h.getAggFunc(),g=!h.isPrimary(),m=u?n?.getShowRowGroupCol(h.getId()):h.getColDef().showRowGroup;return f||g||m})}const r=i?.columns.filter(u=>!!u.getSortDef())??[],s={};o.forEach((u,h)=>s[u.getId()]=h),o.sort((u,h)=>{const f=u.getSortIndex(),g=h.getSortIndex();if(f!=null&&g!=null)return f-g;if(f==null&&g==null){const m=s[u.getId()],v=s[h.getId()];return m>v?1:-1}else return g==null?-1:1});const a=or(e)&&!!r.length;a&&(o=[...new Set(o.map(u=>n?.getShowRowGroupCol(u.getId())??u))]);const l=new Map;if(o.forEach((u,h)=>l.set(u,h)),a)for(const u of r){const h=n.getShowRowGroupCol(u.getId());l.set(u,l.get(h))}return l}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}collectSortItems(e=!1){const t=[],n=this.getColumnsWithSortingOrdered();for(const i of n){const o=i.getSortDef()?.direction;if(!o)continue;const r=sr(i.getSortDef()?.type),s={sort:o,type:r};e?s.colId=i.getId():s.column=i,t.push(s)}return t}getSortModel(){return this.collectSortItems(!0)}getSortOptions(){return this.collectSortItems()}canColumnDisplayMixedSort(e){const t=or(this.gos),n=!!e.getColDef().showRowGroup;return t&&n}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSortDef();const i=e.getColDef().field!=null||!!e.getColDef().valueGetter?[e,...t]:t,o=i[0].getSortDef();return i.every(s=>zd(s.getSortDef(),o))?o:{type:sr(e.getSortDef()?.type),direction:"mixed"}}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t){const n=()=>{const{type:i,direction:o}=Oi(t.getSortDef());if(e.toggleCss("ag-header-cell-sorted-asc",o==="asc"),e.toggleCss("ag-header-cell-sorted-desc",o==="desc"),e.toggleCss("ag-header-cell-sorted-abs-asc",i==="absolute"&&o==="asc"),e.toggleCss("ag-header-cell-sorted-abs-desc",i==="absolute"&&o==="desc"),e.toggleCss("ag-header-cell-sorted-none",!o),t.getColDef().showRowGroup){const a=!this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t)?.every(l=>o==l.getSortDef()?.direction);e.toggleCss("ag-header-cell-sorted-mixed",a)}};e.addManagedEventListeners({sortChanged:n,columnPinned:n,columnRowGroupChanged:n,displayedColumnsChanged:n})}initCol(e){const{sortIndex:t,initialSortIndex:n}=e.colDef,i=I0(e.colDef);i&&e.setSortDef(i,!0),t!==void 0?t!==null&&(e.sortIndex=t):n!==null&&(e.sortIndex=n)}updateColSort(e,t,n){t!==void 0&&this.setColSort(e,Oi(t),n)}setColSort(e,t,n){zd(e.getSortDef(),t)||(e.setSortDef(Oi(t),t===void 0),e.dispatchColEvent("sortChanged",n)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new ov(e)}getSortIndicatorSelector(){return sW}},Jx={moduleName:"Sort",version:Re,beans:[aW,nW],apiFunctions:{onSortChanged:oW},userComponents:{agSortIndicator:ov},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",sortAbsoluteAscending:"aasc",sortAbsoluteDescending:"adesc"}},lW=class extends X{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){const{colModel:t,rowModel:n}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),n.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),Vr(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.beans.colModel.setColumnDefs(t,Ja(e.source))}}};function cW(e){e.valueCache?.expire()}function uW(e,t){const{colKey:n,rowNode:i,useFormatter:o,from:r="edit"}=t,s=e.colModel.getColDefCol(n)??e.colModel.getCol(n);if(!s)return null;const a=e.valueSvc.getValueForDisplay({column:s,node:i,includeValueFormatted:o,from:r});return o?a.valueFormatted??Ga(a.value):a.value}var dW="paste",hW=class extends X{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.deferredDepth=0,this.batchedPath=null,this.batchedNodes=null}destroy(){super.destroy(),this.batchedPath=null,this.batchedNodes=null}postConstruct(){this.csrm=To(this.beans),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}beginDeferred(){this.deferredDepth++}endDeferred(){if(this.deferredDepth===0||--this.deferredDepth>0)return;const e=this.batchedPath,t=this.batchedNodes;this.batchedPath=null,this.batchedNodes=null,e&&this.csrm?.doAggregate(e);const{rowRenderer:n}=this.beans;if(t)for(const i of t)Xx(n,i);if(e){const i=e.getSortedRows();for(let o=0,r=i.length;o<r;++o)Xx(n,i[o])}(this.batchedPath||this.batchedNodes)&&(this.deferredDepth=1,this.endDeferred())}onCellValueChanged(e){const{gos:t,rowModel:n,changedPathFactory:i}=this.beans;if(e.source===dW||t.get("suppressChangeDetection")||!n.rootNode)return;const o=e.node.primaryRow;if(this.csrm){let r=this.batchedPath;r||(r=i?.newPath(t.get("aggregateOnlyChangedColumns"))??null,this.batchedPath=r);let s=o;o.group||((this.batchedNodes??(this.batchedNodes=new Set)).add(o),s=o.parent),r?.addCell(s,e.column.getColId())}else(this.batchedNodes??(this.batchedNodes=new Set)).add(o);this.deferredDepth===0&&(this.deferredDepth=1,this.endDeferred())}},Xx=(e,t)=>{const{sibling:n,pinnedSibling:i}=t;e.refreshRowByNode(t),e.refreshRowByNode(n),e.refreshRowByNode(i),e.refreshRowByNode(n?.pinnedSibling),e.refreshRowByNode(i?.sibling)},fW=class extends X{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);vt(15,{expression:e})}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(n){return vt(16,{expression:e,params:t,e:n}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const n=this.createFunctionBody(e),i=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",n);return t[e]=i,i}createFunctionBody(e){return e.includes("return")?e:"return "+e+";"}},gW=class extends X{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){const e=this.gos;this.active=e.get("valueCache"),this.neverExpires=e.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,n){if(this.active){const i=this.cacheVersion;e.__cacheVersion!==i&&(e.__cacheVersion=i,e.__cacheData={}),e.__cacheData[t]=n}}getValue(e,t){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[t]}},pW={moduleName:"ValueCache",version:Re,beans:[gW],apiFunctions:{expireValueCache:cW}},mW={moduleName:"Expression",version:Re,beans:[fW]},vW={moduleName:"ChangeDetection",version:Re,beans:[hW]},CW={moduleName:"CellApi",version:Re,apiFunctions:{getCellValue:uW}},wW=class extends X{constructor(){super(...arguments),this.beanName="valueSvc",this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.formulaDataSvc=e.formulaDataSvc,this.rowGroupColsSvc=e.rowGroupColsSvc}postConstruct(){this.initialised||this.init()}init(){const{gos:e,valueCache:t}=this;this.executeValueGetter=t?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=Rc(e),this.cellExpressions=e.get("enableCellExpressions"),this.isTreeData=e.get("treeData"),this.initialised=!0;const n=i=>this.callColumnCellValueChangedHandler(i);this.eventSvc.addListener("cellValueChanged",n,!0),this.addDestroyFunc(()=>this.eventSvc.removeListener("cellValueChanged",n,!0)),this.addManagedPropertyListener("treeData",i=>this.isTreeData=i.currentValue)}getValueForDisplay(e){const t=this.beans,n=e.column,i=e.node,o=t.showRowGroupColValueSvc,r=!n&&i.group,s=n?.colDef.showRowGroup,a=!this.isTreeData||i.footer;if(o&&a&&(r||s)){const g=o.getGroupValue(i,n,this.displayIgnoresAggData(i));return g==null?{value:null,valueFormatted:null}:{value:g.value,valueFormatted:e.includeValueFormatted?o.formatAndPrefixGroupColValue(g,n,e.exporting):null}}if(!n)return{value:i.key,valueFormatted:null};let l=this.getValue(n,i,e.from,this.displayIgnoresAggData(i)),u=l;const h=t.formula;n.isAllowFormula()&&h?.isFormula(l)&&(e.useRawFormula?(l=h.normaliseFormula(l,!0),u=h.resolveValue(n,i)):(l=h.resolveValue(n,i),u=l));const f=e.includeValueFormatted&&!(e.exporting&&n.colDef.useValueFormatterForExport===!1);return{value:l,valueFormatted:f?this.formatValue(n,i,u):null}}getValue(e,t,n,i=!1){if(this.initialised||this.init(),!t)return;const o=e.colDef,r=t.group;if(!r){const l=o.pivotValueColumn;l&&(e=l)}const s=this.editSvc?.getPendingEditValue(t,e,n);if(s!==void 0)return s;let a=this.resolveValue(e,t,i,r);if(a===void 0){if(r){const l=o.showRowGroup;if(typeof l=="string"){const u=this.rowGroupColsSvc?.getColumnIndex(l);if(u!=null&&u>t.level)return null}}return}if(this.cellExpressions&&LS(a)){const l=a.substring(1);a=this.executeValueGetter(l,t.data,e,t)}return a}displayIgnoresAggData(e){return!e.group||e.footer||e.level===-1||!e.sibling||this.gos.get("groupSuppressBlankHeader")||e.leafGroup&&this.colModel.isPivotMode()?!1:!!e.expanded}resolveValue(e,t,n,i){const o=e.colDef,r=e.colId,s=!i&&this.formulaDataSvc;if(s&&s.hasDataSource()&&o.allowFormula===!0){const R=s.getFormula({column:e,rowNode:t});if(LS(R))return R}const a=i&&!n?t.aggData:void 0,l=this.isTreeData;if(l&&a?.[r]!==void 0)return a[r];const u=t.data,h=o.field,f=o.valueGetter;if(l){if(f)return this.executeValueGetter(f,u,e,t);if(h&&u)return _c(u,h,e.isFieldContainsDots())}const g=t.groupData;if(g&&r in g)return g[r];if(a?.[r]!==void 0)return a[r];const m=o.showRowGroup,v=typeof m!="string"||!i,w=this.isSsrm,b=w&&n&&!!o.aggFunc;if(f&&!b)return v?this.executeValueGetter(f,u,e,t):void 0;if(w&&t.footer&&t.field&&(m===!0||m===t.field))return _c(u,t.field,e.isFieldContainsDots());if(h&&u&&!b)return v?_c(u,h,e.isFieldContainsDots()):void 0}parseValue(e,t,n,i){const o=e.getColDef();if(o.allowFormula&&this.beans.formula?.isFormula(n))return n;const r=o.valueParser;if(Pe(r)){const s=Ue(this.gos,{node:t,data:t?.data,oldValue:i,newValue:n,colDef:o,column:e});return typeof r=="function"?r(s):this.expressionSvc?.evaluate(r,s)}return n}getDeleteValue(e,t){return Pe(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay({column:e,node:t,from:"edit"}).value)??null:null}formatValue(e,t,n,i,o=!0){const{expressionSvc:r}=this.beans;let s=null,a;const l=e.getColDef();if(i?a=i:o&&(a=l.valueFormatter),a){const u=t?t.data:null,h=Ue(this.gos,{value:n,node:t,data:u,colDef:l,column:e});typeof a=="function"?s=a(h):s=r?r.evaluate(a,h):null}else if(l.refData)return l.refData[n]||"";return s==null&&Array.isArray(n)&&(s=n.join(", ")),s}setValue(e,t,n,i){const o=t.getColDef();if(!e.data&&this.canCreateRowNodeData(e,o)&&(e.data={}),!this.isSetValueSupported(t,e,n,o))return!1;const r=this.getValue(t,e,"data"),s=Ue(this.gos,{node:e,data:e.data,oldValue:r,newValue:n,colDef:o,column:t});let a=!1;if(e.data){const u=this.handleExternalFormulaChange({column:t,eventSource:i,newValue:n,setterParams:s,rowNode:e});if(u!==null)return u;a=this.computeValueChange({column:t,rowNode:e,newValue:n,params:s,rowData:e.data,valueSetter:o.valueSetter,field:o.field})??!0}const l=this.beans.changeDetectionSvc;l?.beginDeferred();try{if(e.group){const u=this.beans.rowGroupingEditValueSvc?.setGroupDataValue(e,t,n,r,i,a||n!==r);if(u!==void 0)return!a&&!u?!1:this.finishValueChange(e,t,s,i,n)}return a?this.finishValueChange(e,t,s,i):!1}finally{l?.endDeferred()}}canCreateRowNodeData(e,t){return e.group?!(t.groupRowValueSetter!=null||t.groupRowEditable!=null||t.pivotValueColumn):!0}finishValueChange(e,t,n,i,o){e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const r=o===void 0?this.getValue(t,e,"data"):o;return this.dispatchCellValueChangedEvent(e,n,r,i),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,n,r,i),!0}isSetValueSupported(e,t,n,i){const{field:o,valueSetter:r}=i,s=this.beans.formula,a=e.isAllowFormula()&&s?.isFormula(n),l=!!this.formulaDataSvc?.hasDataSource();return Vt(o)&&Vt(r)&&!(l&&a)?t.group&&(i.groupRowValueSetter||i.groupRowEditable)?!0:(le(17),!1):this.dataTypeSvc&&!this.dataTypeSvc.checkType(e,n)?(le(135),!1):!0}handleExternalFormulaChange(e){const{column:t,rowNode:n,newValue:i,eventSource:o,setterParams:r}=e,s=this.beans.formula,a=this.formulaDataSvc;if(!a?.hasDataSource()||!t.isAllowFormula())return null;const l=s?.isFormula(i),u=a.getFormula({column:t,rowNode:n});if(l){if(!(u!==i))return!1;a.setFormula({column:t,rowNode:n,formula:i});const f=s?.resolveValue(t,n),g=t.getColDef();if(Pe(g.valueSetter)||!Vt(g.field)){const m={...r,newValue:f};this.computeValueChange({column:t,rowNode:n,newValue:f,params:m,rowData:n.data,valueSetter:g.valueSetter,field:g.field})}return this.finishValueChange(n,t,r,o)}return u!==void 0&&a.setFormula({column:t,rowNode:n,formula:void 0}),null}computeValueChange(e){const{valueSetter:t,params:n,rowData:i,field:o,column:r,newValue:s}=e;return Pe(t)?typeof t=="function"?t(n):this.expressionSvc?.evaluate(t,n):!!i&&this.setValueUsingField(i,o,s,r.isFieldContainsDots())}dispatchCellValueChangedEvent(e,t,n,i){this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t.column,colDef:t.colDef,data:e.data,node:e,oldValue:t.oldValue,newValue:n,newRawValue:t.newValue,value:n,source:i})}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;typeof t=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t(e)})}setValueUsingField(e,t,n,i){if(!t)return!1;let o=!1;if(!i)o=e[t]===n,o||(e[t]=n);else{const r=t.split(".");let s=e;for(;r.length>0&&s;){const a=r.shift();r.length===0?(o=s[a]===n,o||(s[a]=n)):s=s[a]}}return!o}executeValueGetterWithValueCache(e,t,n,i){const o=n.getColId(),r=this.valueCache.getValue(i,o);if(r!==void 0)return r;const s=this.executeValueGetterWithoutValueCache(e,t,n,i);return this.valueCache.setValue(i,o,s),s}executeValueGetterWithoutValueCache(e,t,n,i){const o=Ue(this.gos,{data:t,node:i,column:n,colDef:n.getColDef(),getValue:s=>this.getValueCallback(i,s)});let r;return typeof e=="function"?r=e(o):r=this.expressionSvc?.evaluate(e,o),r}getValueCallback(e,t){const n=this.colModel.getColDefCol(t);return n?this.getValue(n,e,"data"):null}getKeyForNode(e,t){const n=this.getValue(e,t,"data"),i=e.getColDef().keyCreator;let o=n;if(i){const r=Ue(this.gos,{value:n,colDef:e.getColDef(),column:e,node:t,data:t.data});o=i(r)}return typeof o=="string"||o==null||(o=String(o),o==="[object Object]"&&le(121)),o}},bW={moduleName:"CommunityCore",version:Re,beans:[i5,KN,IG,u_,J3,RH,ZV,y5,AH,S3,y3,eW,wW,t5,QV,n5,kG,lW,xG,FG,k5],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:qN,destroy:QN,isDestroyed:YN,getGridOption:ZN,setGridOption:JN,updateGridOptions:HR,isModuleRegistered:XN},dependsOn:[SG,XB,lH,Jx,T5,FH,A5,Z3,vW,M5,b3,P3,T3,_5,DG,RG,mW,GH,M3]};function rv(e){const{inputValue:t,allSuggestions:n,hideIrrelevant:i,filterByPercentageOfBestMatch:o}=e;let r=(n??[]).map((l,u)=>({value:l,relevance:yW(t,l),idx:u}));if(r.sort((l,u)=>l.relevance-u.relevance),i&&(r=r.filter(l=>l.relevance<Math.max(l.value.length,t.length))),r.length>0&&o&&o>0){const u=r[0].relevance*o;r=r.filter(h=>u-h.relevance<0)}const s=[],a=[];for(const l of r)s.push(l.value),a.push(l.idx);return{values:s,indices:a}}function yW(e,t){const n=e.length,i=t.length;if(i===0)return n||0;let o=e.toLocaleLowerCase(),r=t.toLocaleLowerCase(),s;e.length<t.length&&(s=r,r=o,o=s,s=t,t=e,e=s);let a=new Uint16Array(i+1),l=new Uint16Array(i+1);for(let f=0;f<=i;f++)a[f]=f;let u=0;const h=n/2-10;for(let f=1;f<=n;f++){const g=e[f-1],m=o[f-1];l[0]=f;for(let v=1;v<=i;v++){const w=t[v-1],b=r[v-1];if(m!==b){const y=l[v-1],R=a[v],S=a[v-1];let P=y<R?y:R;S<P&&(P=S),l[v]=P+1|0;continue}if(u++,g===w&&u++,f>1&&v>1){const y=e[f-2],R=o[f-2],S=t[v-2],P=r[v-2];R===P&&(u++,y===S&&u++)}f<h&&u++,l[v]=a[v-1]}s=a,a=l,l=s}return a[i]/(u+1)}var eF={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingEdit:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1,Formula:1},sv=["TextFilter","NumberFilter","BigIntFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],SW={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:sv,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...sv,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...sv,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},RW={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function xW(e,t){const n=[];for(const i of Array.isArray(e)?e:[e]){const o=SW[i];if(o)for(const r of o){const s=RW[r];(!s||s===t)&&n.push(r)}else n.push(i)}return n}var tF=()=>`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:
24
-
25
- import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
26
-
27
- ModuleRegistry.registerModules([ AllCommunityModule ]);
28
- `,FW=e=>{const t=e.map(i=>`import { ${Vc(i)} } from '${eF[i]?"ag-grid-enterprise":"ag-grid-community"}';`);return e.some(i=>i==="IntegratedCharts"||i==="Sparklines")&&t.push("import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';"),`import { ModuleRegistry } from 'ag-grid-community';
29
- ${t.join(`
30
- `)}
31
-
32
- ModuleRegistry.registerModules([ ${e.map(i=>Vc(i,!0)).join(", ")} ]);
33
-
34
- For more info see: ${ja}/modules/`};function Vc(e,t=!1){return t&&(e==="IntegratedCharts"||e==="Sparklines")?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function PW(e,t){const n=t.filter(r=>r==="IntegratedCharts"||r==="Sparklines");let i="";return!globalThis?.agCharts&&n.length>0?i=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.
35
- `:t.some(r=>eF[r])&&(i=i+`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.
36
- `),i}function nF({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var iF=({reasonOrId:e,moduleName:t,gridScoped:n,gridId:i,rowModelType:o,additionalText:r,isUmd:s})=>{const a=xW(t,o),l=typeof e=="string"?e:AW[e];if(s)return PW(l,a);const u=a.filter(g=>g==="IntegratedCharts"||g==="Sparklines"),h=u.length>0?`${u.map(g=>Vc(g)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";return`${`Unable to use ${l} as ${a.length>1?"one of "+a.map(g=>Vc(g)).join(", "):Vc(a[0])} is not registered${n?" for gridId: "+i:""}. ${h} Check if you have registered the module:
37
- `}
38
- ${FW(a)}`+(r?`
39
-
40
- ${r}`:"")},oF=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.
41
-
42
- import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
43
- import { ModuleRegistry } from 'ag-grid-community';
44
- import { ${e} } from 'ag-grid-enterprise';
45
-
46
- ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);
47
- `,EW=e=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${e}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`,DW={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>["Could not find data item as object was not found.",e," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:e})=>["column ",e," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>["value should be either a string or a function",e],16:({expression:e,params:t,e:n})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",n],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>`You may want to configure via a callback to avoid setup race conditions:
48
- "alignedGrids: () => [linkedGrid]"`,21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:e})=>`${e} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:e})=>["The getRowId callback must return a string. The ID ",e," is being cast to a string."],26:({fnName:e,preDestroyLink:t})=>`Grid API function ${e}() cannot be called as the grid has been destroyed.
49
- Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
50
- To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:e})=>["tried to insert columns in invalid location, toIndex = ",e,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"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.",33:()=>"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.",34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:e})=>"colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e,method:t})=>`${e}
51
- ${EW(t)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e,inferred:t,colId:n})=>{const i=t?" (inferred)":"",o=n?` for column "${n}"`:"";return`Cell data type is "object"${i} but no Value ${e} has been provided${o}. Please either provide an object data type definition with a Value ${e}, or set:
52
- - "colDef.value${e}"${t&&e==="Parser"?`
53
- - "colDef.cellDataType = 'object'"`:""}`},49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>`Grid option quickFilterText only supports string inputs, received: ${typeof e}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:n,pageSizeOptions:i})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${n?"":" the default"} paginationPageSizeSelector=[${i?.join(", ")}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>["Duplicate ID",e,"found for pinned row with data",t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",101:({propertyName:e,componentName:t,agGridDefaults:n,jsComps:i})=>{const o=[],r=[...Object.keys(n??[]).filter(a=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(a)),...Object.keys(i??[]).filter(a=>!!i[a])],s=rv({inputValue:t,allSuggestions:r,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return o.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.
54
- `),s.length>0&&o.push(` Did you mean: [${s.slice(0,3)}]?
55
- `),o.push("If using a custom component check it has been registered correctly."),o},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>["chart rendering failed",e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${ja}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e})=>["chart update failed",e],109:({inputValue:e,allSuggestions:t})=>{const n=rv({inputValue:e,allSuggestions:t,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return[`Could not find '${e}' aggregate function. It was configured as "aggFunc: '${e}'" but it wasn't found in the list of registered aggregations.`,n.length>0?` Did you mean: [${n.slice(0,3)}]?`:"","If using a custom aggregation function check it has been registered correctly."].join(`
56
- `)},110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:e})=>`Could not find component with name of ${e}. Is it in Vue.components?`,116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"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 (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:e})=>`Unable to update chart. No active chart found with ID: ${e}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:e})=>`unable to create chart as ${e?"there are no columns in the grid":"no range is selected"}.`,128:({feature:e})=>`${e} is only available if using 'multiRow' selection mode.`,129:({feature:e,rowModel:t})=>`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:e})=>`icon '${e}' function should return back a string or a dom object`,134:({iconName:e})=>`Did not find icon '${e}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:e,currentChartType:t})=>`Unable to update chart as a '${e}' update type is not permitted on a ${t}.`,138:({chartType:e})=>`invalid chart type supplied: ${e}`,139:({customThemeName:e})=>`a custom chart theme with the name ${e} has been supplied but not added to the 'chartThemes' list`,140:({name:e})=>`no stock theme exists with the name '${e}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:e})=>`'${e}' is not a valid Chart Tool Panel name`,144:({type:e})=>`Invalid charts data panel group name supplied: '${e}'`,145:({group:e})=>`As of v32, only one charts customize panel group can be expanded at a time. '${e}' will not be expanded.`,146:({comp:e})=>`Unable to instantiate component '${e}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:e})=>`Invalid charts customize panel group name supplied: '${e}'`,148:({group:e})=>`invalid chartGroupsDef config '${e}'`,149:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:e})=>`invalid chartType '${e}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:e})=>`no 'seriesChartType' found for colId = '${e}', defaulting to 'line'.`,153:({chartDataType:e})=>`unexpected chartDataType value '${e}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:e})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${e}`,155:({option:e})=>`'${e}' is not a valid Chart Toolbar Option`,156:({panel:e})=>`Invalid panel in chartToolPanelsDef.panels: '${e}'`,157:({unrecognisedGroupIds:e})=>["unable to find group(s) for supplied groupIds:",e],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'",162:({id:e,dataType:t})=>`Unrecognized data type for excel export [${e}.dataType=${t}]`,163:({featureName:e})=>`Excel table export does not work with ${e}. The exported Excel file will not contain any Excel tables.
57
- Please turn off ${e} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:e})=>["unable to find groups for these supplied groupIds:",e],167:({unrecognisedColIds:e})=>["unable to find columns for these supplied colIds:",e],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>"valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:e})=>`column ${e} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:e,childNodeData:t})=>["duplicate group keys for row data, keys should be unique",[e,t]],185:({data:e})=>["getDataPath() should not return an empty path",[e]],186:({rowId:e,rowData:t,duplicateRowsData:n})=>["duplicate group keys for row data, keys should be unique",e,t,...n??[]],187:({rowId:e,firstData:t,secondData:n})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",t,"second instance",n],188:e=>`getRowId callback must be provided for Server Side Row Model ${e?.feature||"selection"} to work correctly.`,189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>["null and undefined values are not allowed for server side row model keys",e?`column = ${e}`:"","data is ",t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:iF,201:({rowModelType:e})=>`Could not find row model for rowModelType = ${e}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:e})=>`Unable to display rows as duplicate row ids (${e}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${ja}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:e})=>`unable to lookup Tool Panel as invalid key supplied: ${e}`,215:({key:e,defaultByKey:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(t??{}).join(",")}`,216:({name:e})=>`Missing component for '${e}'`,217:({invalidColIds:e})=>["unable to find grid columns for the supplied colDef(s):",e],218:({property:e,defaultOffset:t})=>`${e} must be a number, the value you provided is not a valid number. Using the default of ${t}px.`,219:({property:e})=>`Property ${e} does not exist on the target object.`,220:({lineDash:e})=>`'${e}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:e})=>`unrecognised menu item ${e}`,230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:e})=>`Framework component is missing the method ${e}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:e})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${e}`,243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>`Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule.
58
- Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows.
59
- Your code probably called a grid API method while the grid was in the render stage.
60
- To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0).
61
- To see what part of your code that caused the refresh check this stacktrace.`,253:({version:e})=>["Illegal version string: ",e],254:()=>"Cannot create chart: no chart themes available.",255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>oF("IntegratedChartsModule"),258:()=>oF("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:n,gridId:i,rowModelType:o})=>iF({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:al[t],gridId:i,gridScoped:n,rowModelType:o}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${ja}/integrated-charts-range-chart#coldefchartdatatype .`,266:()=>'As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.',267:()=>"Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",268:()=>"Transactions aren't supported with tree data when using treeDataChildrenField",269:()=>"When `masterSelects: 'detail'`, detail grids must be configured with multi-row selection",270:({id:e,parentId:t})=>`Cycle detected for row with id='${e}' and parent id='${t}'. Resetting the parent for row with id='${e}' and showing it as a root-level node.`,271:({id:e,parentId:t})=>`Parent row not found for row with id='${e}' and parent id='${t}'. Showing row with id='${e}' as a root-level node.`,272:()=>tF(),273:({providedId:e,usedId:t})=>`Provided column id '${e}' was already in use, ensure all column and group ids are unique. Using '${t}' instead.`,274:({prop:e})=>{let t=`Since v33, ${e} has been deprecated.`;switch(e){case"maxComponentCreationTimeMs":t+=" This property is no longer required and so will be removed in a future version.";break;case"setGridApi":t+=" This method is not called by AG Grid. To access the GridApi see: https://ag-grid.com/react-data-grid/grid-interface/#grid-api ";break;case"children":t+=" For multiple versions AgGridReact does not support children.";break}return t},275:nF,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:e})=>`'enableFilterHandlers' is set to true, but column '${e}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:e})=>`Unable to create filter handler for column '${e}'`,279:e=>{},280:({colId:e})=>`'name' must be provided for custom filter components for column '${e}`,281:({colId:e})=>`Filter for column '${e}' does not have 'filterParams.buttons', but the new Filters Tool Panel has buttons configured. Either configure buttons for the filter, or disable buttons on the Filters Tool Panel.`,282:()=>"New filter tool panel requires `enableFilterHandlers: true`.",283:()=>"As of v34, use the same method on the filter handler (`api.getColumnFilterHandler(colKey)`) instead.",284:()=>"As of v34, filters are active when they have a model. Use `api.getColumnFilterModel()` instead.",285:()=>"As of v34, use (`api.getColumnFilterModel()`) instead.",286:()=>"As of v34, use (`api.setColumnFilterModel()`) instead.",287:()=>"`api.doFilterAction()` requires `enableFilterHandlers = true",288:()=>"`api.getColumnFilterModel(key, true)` requires `enableFilterHandlers = true",289:({rowModelType:e})=>`Row Model '${e}' is not supported with Batch Editing`,290:({rowIndex:e,rowPinned:t})=>`Row with index '${e}' and pinned state '${t}' not found`,291:()=>"License Key being set multiple times with different values. This can result in an incorrect license key being used,",292:({colId:e})=>`The Multi Filter for column '${e}' has buttons configured against the child filters. When 'enableFilterHandlers=true', buttons must instead be provided against the parent Multi Filter params. The child filter buttons will be ignored.`,293:()=>"The grid was initialised detached from the DOM and was then inserted into a Shadow Root. Theme styles are probably broken. Pass the themeStyleContainer grid option to let the grid know where in the document to insert theme CSS.",294:()=>"When using the `agRichSelectCellEditor` setting `filterListAsync = true` requires `allowTyping = true` and the `values()` callback must return a Promise of filtered values.",295:({blockedService:e})=>`colDef.allowFormula is not supported with ${e}. Formulas has been turned off.`,296:()=>"Since v35, `api.hideOverlay()` does not hide the overlay when `activeOverlay` is set. Set `activeOverlay=null` instead.",297:()=>'`api.hideOverlay()` does not hide the no matching rows overlay as it is only controlled by grid state. Set `suppressOverlays=["noMatchingRows"] to not show it.',298:()=>"Columns Tool Panel 'buttons' requires 'apply' to enable Deferred Updates."};function TW(e,t){const n=DW[e];if(!n)return[`Missing error text for error id ${e}!`];const i=n(t),r=`
62
- See ${f0(e,t)}`;return Array.isArray(i)?i.concat(r):[i,r]}var AW={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},rF=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${n0}/${this.frameworkName}-data-grid`,uO(this.baseDocLink)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return this.baseDocLink+(e?"/"+e:"")}},sF=new WeakMap,aF=new WeakMap;function IW(e,t,n){if(!t)return vt(11),{};const i=n;let o;if(!i?.setThemeOnGridDiv){const s=dn({tag:"div"});s.style.height="100%",e.appendChild(s),e=s,o=()=>e.remove()}return new kW().create(e,t,s=>{const a=new $N(e);s.createBean(a)},void 0,n,o)}var MW=1,kW=class{create(e,t,n,i,o,r){const s=Tp.applyGlobalGridOptions(t),a=s.gridId??String(MW++),l=this.getRegisteredModules(o,a,s.rowModelType),u=this.createBeansList(s.rowModelType,l,a),h=this.createProvidedBeans(e,s,o);if(!u)return;const g={providedBeanInstances:h,beanClasses:u,id:a,beanInitComparator:m2,beanDestroyComparator:v2,derivedBeans:[g2],destroyCallback:()=>{aF.delete(v),sF.delete(e),oO(a),r?.()}},m=new f2(g);this.registerModuleFeatures(m,l),n(m),m.getBean("syncSvc").start(),i?.(m);const v=m.getBean("gridApi");return sF.set(e,v),aF.set(v,e),v}getRegisteredModules(e,t,n){return $a(bW,void 0,!0),e?.modules?.forEach(i=>$a(i,t)),rO(t,lF(n))}registerModuleFeatures(e,t){const n=e.getBean("registry"),i=e.getBean("apiFunctionSvc");for(const o of t){n.registerModule(o);const r=o.apiFunctions;if(r){const s=Object.keys(r);for(const a of s)i?.addFunction(a,r[a])}}}createProvidedBeans(e,t,n){let i=n?n.frameworkOverrides:null;Vt(i)&&(i=new rF);const o={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:n?n.globalListener:null,globalSyncListener:n?n.globalSyncListener:null,frameworkOverrides:i,withinStudio:n?.withinStudio};return n?.providedBeanInstances&&Object.assign(o,n.providedBeanInstances),o}createBeansList(e,t,n){const i={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},o=lF(e),r=i[o];if(!r){Sc(201,{rowModelType:o},`Unknown rowModelType ${o}.`);return}if(!aO()){Sc(272,void 0,tF());return}if(!e){const a=Object.entries(i).filter(([l,u])=>Ap(u,n,l));if(a.length==1){const[l,u]=a[0];if(l!==o){const h={moduleName:u,rowModelType:l};Sc(275,h,nF(h));return}}}if(!Ap(r,n,o)){const a=a0(),l=`rowModelType = '${o}'`,u=`Missing module ${r}Module for rowModelType ${o}.`;Sc(200,{reasonOrId:l,moduleName:r,gridScoped:Ip(),gridId:n,rowModelType:o,isUmd:a},u);return}const s=new Set;for(const a of t)for(const l of a.beans??[])s.add(l);return Array.from(s)}};function lF(e){return e??"clientSide"}function LW(e,t=!1){const n=[],i=[],o=[],r=[],s=[],a=[],l=[],u=[],h=[];let f=0;for(let g=0;g<e.length;g++){const{colId:m,sort:v,sortType:w,sortIndex:b,rowGroup:y,rowGroupIndex:R,aggFunc:S,pivot:P,pivotIndex:F,pinned:A,hide:k,width:L,flex:N}=e[g];h.push(m),v&&(n[b??f++]={colId:m,sort:v,type:w}),y&&(i[R??0]=m),typeof S=="string"&&o.push({colId:m,aggFunc:S}),P&&(r[F??0]=m),A&&(A==="right"?a:s).push(m),k&&l.push(m),(N!=null||L)&&u.push({colId:m,flex:N??void 0,width:L===null?void 0:L})}return{sort:n.length?{sortModel:av(n)}:void 0,rowGroup:i.length?{groupColIds:av(i)}:void 0,aggregation:o.length?{aggregationModel:o}:void 0,pivot:r.length||t?{pivotMode:t,pivotColIds:av(r)}:void 0,columnPinning:s.length||a.length?{leftColIds:s,rightColIds:a}:void 0,columnVisibility:l.length?{hiddenColIds:l}:void 0,columnSizing:u.length?{columnSizingModel:u}:void 0,columnOrder:h.length?{orderedColIds:h}:void 0}}function av(e){return e.filter(t=>t!=null)}function OW(e){const t=[];for(const{groupId:n,open:i}of e)i&&t.push(n);return t.length?{openColumnGroupIds:t}:void 0}var _W=class extends X{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t=typeof e=="function";return typeof e=="function"&&(e=e()),e.map(i=>{if(!i){vt(18),t||vt(20);return}if(this.isGridApi(i))return i;const o=i;return"current"in o?o.current?.api:(o.api||vt(19),o.api)}).filter(i=>!!i&&!i.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(e){if(!this.consuming)for(const t of this.getAlignedGridApis())t.isDestroyed()||t.dispatchEvent(e)}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){const n=[];return e.columns?e.columns.forEach(i=>{n.push(t(i))}):e.column&&n.push(t(e.column)),n}getMasterColumns(e){return this.extractDataFromEvent(e,t=>t)}getColumnIds(e){return this.extractDataFromEvent(e,t=>t.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(e);break}case"columnGroupOpened":{this.processGroupOpenedEvent(e);break}case"columnPivotChanged":le(21);break}})}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;if(t)for(const n of e.columnGroups){let i=null;n&&(i=t.getProvidedColGroup(n.getGroupId())),!(n&&!i)&&t.setColumnGroupOpened(i,n.isExpanded(),"alignedGridChanged")}}processColumnEvent(e){const t=e.column;let n=null;const i=this.beans,{colResize:o,ctrlsSvc:r,colModel:s}=i;if(t&&(n=s.getColDefCol(t.getColId())),t&&!n)return;const a=this.getMasterColumns(e);switch(e.type){case"columnMoved":{const f=e.api.getColumnState().map(g=>({colId:g.colId}));so(i,{state:f,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const f=e.api.getColumnState().map(g=>({colId:g.colId,hide:g.hide}));so(i,{state:f},"alignedGridChanged")}break;case"columnPinned":{const f=e.api.getColumnState().map(g=>({colId:g.colId,pinned:g.pinned}));so(i,{state:f},"alignedGridChanged")}break;case"columnResized":{const h=e,f={};for(const g of a)f[g.getId()]={key:g.getColId(),newWidth:g.getActualWidth()};for(const g of h.flexColumns??[])f[g.getId()]&&delete f[g.getId()];o?.setColumnWidths(Object.values(f),!1,h.finished,"alignedGridChanged");break}}const u=r.getGridBodyCtrl().isVerticalScrollShowing();for(const h of this.getAlignedGridApis())h.setGridOption("alwaysShowVerticalScroll",u)}},NW={moduleName:"AlignedGrids",version:Re,beans:[_W],dependsOn:[fx]};function BW(e,t={}){const n=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(n))}function cF(e,t,n,i,o){t&&(i&&t.parent&&t.parent.level!==-1&&cF(e,t.parent,n,i,o),t.setExpanded(n,void 0,o))}function HW(e,t){return e.rowModel.getRowNode(t)}function GW(e,t,n,i){e.rowRenderer.addRenderedRowListener(t,n,i)}function VW(e){return e.rowRenderer.getRenderedNodes()}function WW(e,t,n){e.rowModel.forEachNode(t,n)}function zW(e){return e.rowRenderer.firstRenderedRow}function UW(e){return e.rowRenderer.lastRenderedRow}function $W(e,t){return e.rowModel.getRow(t)}function jW(e){return e.rowModel.getRowCount()}function KW(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}function qW(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()}function uF(e,t,n="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,n),"ensureVisible")}function dF(e,t,n){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,n),"ensureVisible")}function QW(e,t,n=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,n),"ensureVisible")}var hF={moduleName:"RowApi",version:Re,apiFunctions:{redrawRows:BW,setRowNodeExpanded:cF,getRowNode:HW,addRenderedRowListener:GW,getRenderedNodes:VW,forEachNode:WW,getFirstDisplayedRowIndex:zW,getLastDisplayedRowIndex:UW,getDisplayedRowAtIndex:$W,getDisplayedRowCount:jW}},YW={moduleName:"ScrollApi",version:Re,apiFunctions:{getVerticalPixelRange:KW,getHorizontalPixelRange:qW,ensureColumnVisible:uF,ensureIndexVisible:dF,ensureNodeVisible:QW}};function ZW(e){e.expansionSvc?.expandAll(!0)}function JW(e){e.expansionSvc?.expandAll(!1)}function fF(e){e.rowModel?.onRowHeightChanged()}function gF(e){if(e.rowAutoHeight?.active){le(3);return}e.rowModel?.resetRowHeights()}function XW(e){e.expansionSvc?.resetExpansion()}function ez(e,t,n){const i=Z_(e);if(i){if(e.rowGroupColsSvc?.columns.length===0){if(t<0){vt(238);return}i.setRowCount(t,n);return}vt(28);return}Xd(e)?.setRowCount(t,n)}function tz(e){return Rc(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}}function nz(e){return e.rowModel.isLastRowIndexKnown()}var iz={moduleName:"CsrmSsrmSharedApi",version:Re,apiFunctions:{expandAll:ZW,collapseAll:JW,resetRowGroupExpansion:XW}},oz={moduleName:"RowModelSharedApi",version:Re,apiFunctions:{onRowHeightChanged:fF,resetRowHeights:gF}},rz={moduleName:"SsrmInfiniteSharedApi",version:Re,apiFunctions:{setRowCount:ez,getCacheBlockState:tz,isLastRowIndexKnown:nz}},pF=(e,t)=>{for(let n=0,i=e.length;n<i;++n){const o=e[n],r=o.childrenAfterGroup;r!==null&&(pF(r,t),t(o))}},oa=(e,t,n,i)=>{if(n!=null){const r=n.getSortedRows();for(let s=0,a=r.length;s<a;++s){const l=r[s];l.childrenAfterGroup!==null&&!l.destroyed&&i(l)}return}if(e==null)return;const o=e.childrenAfterGroup;o!==null&&(t&&pF(o,i),i(e))},sz=class extends X{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},mF(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){this.dispatchRowDataUpdateStarted(e),this.destroyAllNodes();const t=mF(this.rootNode),n=new Array(e.length);t._leafs=n;let i=0;const o=this.beans.groupStage?.getNestedDataGetter(),r=o?new Set:null,s=(a,l)=>{const u=a.level+1;for(let h=0,f=l.length;h<f;++h){const g=l[h];if(!g)continue;const m=this.createRowNode(g,u,i);if(n[i++]=m,r&&!r.has(g)){r.add(g),m.treeParent=a;const v=o(g);v&&s(m,v)}}};s(t,e),n.length=i}destroyAllNodes(){const{selectionSvc:e,pinnedRowModel:t,groupStage:n}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),n?.clearNonLeafs();const i=this.rootNode._leafs;if(i)for(let o=0,r=i.length;o<r;++o)i[o]._destroy(!1);this.allNodesMap=Object.create(null),this.nextId=0}setImmutableRowData(e,t){const{rootNode:n,gos:i}=this;this.dispatchRowDataUpdateStarted(t);const o=qa(i),r=e.changedRowNodes,{adds:s,updates:a}=r,l=new Set,u=[],h=this.beans.groupStage?.getNestedDataGetter();let f=i.get("suppressMaintainUnsortedOrder")?void 0:!1,g=-1,m=!1;const v=(y,R)=>{if(!f&&f!==void 0){const S=y.sourceRowIndex;f=S<=g,g=S}y.data!==R&&(y.updateData(R),s.has(y)||a.add(y),!y.selectable&&y.isSelected()&&u.push(y))},w=(y,R,S)=>{for(let P=0,F=R.length;P<F;++P){const A=R[P];if(!A)continue;let k=this.getRowNode(o({data:A,level:S}));if(k?(v(k,A),m||(m=!!h&&k.treeParent!==y)):(k=this.createRowNode(A,S),s.add(k)),!h||l.has(k)){l.add(k);continue}l.add(k),k.treeParent=y;const L=h(A);L&&w(k,L,S+1)}};w(n,t,0);const b=this.deleteUnusedNodes(l,r,u,!!e.animate)||f||s.size>0;if(b){const y=n._leafs??(n._leafs=[]);f===void 0?dz(y,l,r):uz(y,l)&&(r.reordered=!0)}(b||m||a.size)&&(e.rowDataUpdated=!0,this.deselect(u))}deleteUnusedNodes(e,{removals:t},n,i){const o=this.rootNode._leafs;for(let r=0,s=o.length;r<s;r++){const a=o[r];e.has(a)||this.destroyNode(a,i)&&(t.push(a),a.isSelected()&&n.push(a))}return t.length>0}updateRowData(e,t,n){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return le(268),{remove:[],update:[],add:[]};const i=[],o=qa(this.gos),r=this.executeRemove(o,e,t,i,n),s=this.executeUpdate(o,e,t,i),a=this.executeAdd(e,t);return this.deselect(i),{remove:r,update:s,add:a}}executeRemove(e,{remove:t},{adds:n,updates:i,removals:o},r,s){const a=this.rootNode._leafs,l=a?.length,u=t?.length;if(!u||!l)return[];let h=0,f=l,g=0;const m=new Array(u);for(let v=0;v<u;++v){const w=this.lookupNode(e,t[v]);if(!w)continue;const b=w.sourceRowIndex;b<f&&(f=b),b>g&&(g=b),m[h++]=w,this.destroyNode(w,s)&&(w.isSelected()&&r.push(w),n.delete(w)||(i.delete(w),o.push(w)))}return m.length=h,h&&cz(a,f,g),m}executeUpdate(e,{update:t},{adds:n,updates:i},o){const r=t?.length;if(!r)return[];const s=new Array(r);let a=0;for(let l=0;l<r;l++){const u=t[l],h=this.lookupNode(e,u);h&&(h.updateData(u),!h.selectable&&h.isSelected()&&o.push(h),s[a++]=h,n.has(h)||i.add(h))}return s.length=a,s}executeAdd(e,t){var n;const i=(n=this.rootNode)._leafs??(n._leafs=[]),o=i.length,r=e.add,s=r?.length;if(!s)return[];const a=o+s;let l=this.sanitizeAddIndex(i,e.addIndex);if(l<o){for(let f=o-1,g=a-1;f>=l;--f){const m=i[f];m.sourceRowIndex=g,i[g--]=m}t.reordered=!0}i.length=a;const u=new Array(s),h=t.adds;for(let f=0;f<s;f++){const g=this.createRowNode(r[f],0,l);h.add(g),i[l]=g,u[f]=g,l++}return u}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselect(e){const t="rowDataChanged",n=this.beans.selectionSvc;e.length&&n?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),n?.updateGroupsFromChildrenSelections?.(t),e.length&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:n?.getSelectedNodes()??null,serverSideState:null})}createRowNode(e,t,n){const i=new qr(this.beans);i.parent=this.rootNode,i.level=t,i.group=!1,n!=null&&(i.sourceRowIndex=n),i.setDataAndId(e,String(this.nextId++));const o=i.id,r=this.allNodesMap;return r[o]&&le(2,{nodeId:o}),r[o]=i,i}destroyNode(e,t){if(!e._destroy(t))return!1;const n=e.id,i=this.allNodesMap;return i[n]===e&&delete i[n],!0}lookupNode(e,t){if(!e)return lz(this.rootNode._leafs,t);const n=e({data:t,level:0}),i=this.allNodesMap[n];return i||(vt(4,{id:n}),null)}sanitizeAddIndex(e,t){const n=e.length;if(typeof t!="number"||t<0||t>=n||Number.isNaN(t))return n;t=Math.ceil(t);const i=this.gos;return t>0&&i.get("treeData")&&i.get("getDataPath")&&(t=az(e,t)),t}},az=(e,t)=>{for(let n=0,i=e.length;n<i;n++)if(e[n]?.rowIndex==t-1)return n+1;return t},mF=e=>{e.group=!0,e.level=-1,e._expanded=!0,e.id="ROOT_NODE_ID",e._leafs?.length!==0&&(e._leafs=[]);const t=[],n=[],i=[],o=[];e.childrenAfterGroup=t,e.childrenAfterSort=n,e.childrenAfterAggFilter=i,e.childrenAfterFilter=o;const r=e.sibling;return r&&(r.childrenAfterGroup=t,r.childrenAfterSort=n,r.childrenAfterAggFilter=i,r.childrenAfterFilter=o,r.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},lz=(e,t)=>{if(e)for(let n=0,i=e.length;n<i;n++){const o=e[n];if(o.data===t)return o}return vt(5,{data:t}),null},cz=(e,t,n)=>{t=Math.max(0,t);for(let i=t,o=e.length;i<o;++i){const r=e[i];i<=n&&r.destroyed||(r.sourceRowIndex=t,e[t++]=r)}e.length=t},uz=(e,t)=>{const n=t.size;e.length=n;let i=0,o=!1,r=!1;for(const s of t){const a=s.sourceRowIndex;a===i?r||(r=o):(a>=0?r=!0:o=!0,s.sourceRowIndex=i,e[i]=s),++i}return r},dz=(e,t,{adds:n})=>{const i=e.length,o=t.size;o>i&&(e.length=o);let r=0;for(let s=0;s<i;++s){const a=e[s];a.destroyed||(r!==s&&(a.sourceRowIndex=r,e[r]=a),++r)}for(const s of n)s.sourceRowIndex<0&&(s.sourceRowIndex=r,e[r++]=s);e.length=r};function lv(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter)}var hz=class extends X{constructor(){super(...arguments),this.beanName="filterStage",this.step="filter",this.refreshProps=["excludeChildrenWhenTreeDataFiltering"]}wireBeans(e){this.filterManager=e.filterManager}execute(e){const t=!!this.filterManager?.isChildFilterPresent();this.beans.formula?.active?this.softFilter(t,e):this.filterNodes(t,e)}filterNodes(e,t){const n=(i,o)=>{i.hasChildren()&&e&&!o?i.childrenAfterFilter=i.childrenAfterGroup.filter(r=>{const s=r.childrenAfterFilter&&r.childrenAfterFilter.length>0,a=r.data&&this.filterManager.doesRowPassFilter({rowNode:r});return s||a}):i.childrenAfterFilter=i.childrenAfterGroup,lv(i)};if(this.doingTreeDataFiltering()){const i=(o,r)=>{if(o.childrenAfterGroup)for(let s=0;s<o.childrenAfterGroup.length;s++){const a=o.childrenAfterGroup[s],l=r||this.filterManager.doesRowPassFilter({rowNode:a});a.childrenAfterGroup?i(o.childrenAfterGroup[s],l):n(a,l)}n(o,r)};i(this.beans.rowModel.rootNode,!1)}else{const i=o=>n(o,!1);oa(this.beans.rowModel.rootNode,this.beans.rowModel.hierarchical,t,i)}}softFilter(e,t){const n=o=>{if(o.childrenAfterFilter=o.childrenAfterGroup,o.hasChildren())for(const r of o.childrenAfterGroup)r.softFiltered=e&&!(r.data&&this.filterManager.doesRowPassFilter({rowNode:r}));lv(o)},i=this.beans.rowModel;oa(i.rootNode,i.hierarchical,t,n)}doingTreeDataFiltering(){const{gos:e}=this;return!!this.beans.groupStage?.treeData&&!e.get("excludeChildrenWhenTreeDataFiltering")}},fz=4,gz=(e,t,n,i,o)=>{const r=t.childrenAfterSort,s=t.childrenAfterAggFilter;if(!s)return r&&r.length>0?r:[];const a=s.length;if(a<=1)return r?.length===a&&(a===0||r[0]===s[0])?r:s.slice();if(!r||a<=fz)return e.doFullSortInPlace(s.slice(),o);const l=new Map,{updates:u,adds:h}=n,f=[];for(let m=0;m<a;++m){const v=s[m];u.has(v)||h.has(v)||i?.hasRow(v)?(l.set(v,~m),f.push(v)):l.set(v,m)}const g=f.length;return g===0?a===r.length?r:mz(r,l,f):(f.sort((m,v)=>e.compareRowNodes(o,m,v)||~l.get(m)-~l.get(v)),g===a?f:pz(e,o,f,r,l,a))},pz=(e,t,n,i,o,r)=>{const s=new Array(r);let a=0,l=n[a],u,h=-1,f=0,g=0;const m=n.length,v=i.length;for(;;){if(h<0){if(f>=v)break;if(u=i[f++],h=o.get(u)??-1,h<0)continue}if((e.compareRowNodes(t,l,u)||~o.get(l)-h)<0){if(s[g++]=l,++a>=m)break;l=n[a]}else s[g++]=u,h=-1}for(;a<m;)s[g++]=n[a++];if(h<0)return s;for(s[g++]=u;f<v;){const w=i[f++];o.get(w)>=0&&(s[g++]=w)}return s},mz=(e,t,n)=>{let i=0;n.length=t.size;for(let o=0,r=e.length;o<r;++o){const s=e[o];t.has(s)&&(n[i++]=s)}return n.length=i,n},vF=e=>{const t=e.childrenAfterSort,n=e.sibling;if(n&&(n.childrenAfterSort=t),!!t)for(let i=0,o=t.length-1;i<=o;i++){const r=t[i],s=i===0,a=i===o;r.firstChild!==s&&(r.firstChild=s,r.dispatchRowEvent("firstChildChanged")),r.lastChild!==a&&(r.lastChild=a,r.dispatchRowEvent("lastChildChanged")),r.childIndex!==i&&(r.childIndex=i,r.dispatchRowEvent("childIndexChanged"))}},vz=class extends X{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshProps=["postSortRows","groupDisplayType","accentedSort"]}execute(e,t){const n=this.beans.sortSvc.getSortOptions(),i=n.length>0&&!!t&&this.gos.get("deltaSort"),{gos:o,colModel:r,rowGroupColsSvc:s,rowNodeSorter:a,rowRenderer:l,showRowGroupCols:u}=this.beans,h=o.get("groupMaintainOrder"),f=r.getCols().some(R=>R.isRowGroupActive()),g=s?.columns,m=r.isPivotMode(),v=o.getCallback("postSortRows");let w=!1,b;const y=R=>{const S=m&&R.leafGroup;let P=h&&f&&!R.leafGroup;P&&(b??(b=this.shouldSortContainsGroupCols(n)),P&&(P=!b));let F=null;if(P){let A=!1;if(g){const k=R.level+1;k<g.length&&(A=g[k].wasSortExplicitlyRemoved)}A||(F=Cz(R))}else!n.length||S||(i&&t?F=gz(a,R,t,e,n):F=a.doFullSortInPlace(R.childrenAfterAggFilter.slice(),n));if(F||(F=R.childrenAfterAggFilter?.slice()??[]),w||(w=R.childrenAfterSort?.[0]!==F[0]),R.childrenAfterSort=F,vF(R),v){const A={nodes:R.childrenAfterSort};v(A)}};if(oa(this.beans.rowModel.rootNode,this.beans.rowModel.hierarchical,e,y),w&&o.get("groupHideOpenParents")){const R=u?.columns;R?.length&&l.refreshCells({columns:R,force:!0})}}shouldSortContainsGroupCols(e){const t=e.length;if(!t)return!1;if(or(this.gos)){for(let n=0;n<t;++n){const i=e[n].column;if(i.isPrimary()&&i.isRowGroupActive())return!0}return!1}for(let n=0;n<t;++n)if(e[n].column.getColDef().showRowGroup)return!0;return!1}},Cz=e=>{const t=e.childrenAfterSort,n=e.childrenAfterAggFilter,i=t?.length,o=n?.length;if(!i||!o)return null;const r=new Array(o),s=new Set;for(let l=0;l<o;++l)s.add(n[l]);let a=0;for(let l=0;l<i;++l){const u=t[l];s.delete(u)&&(r[a++]=u)}if(s.size===0&&a===i)return t;for(const l of s)r[a++]=l;return r.length=a,r},wz=class extends X{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.hierarchical=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.formulaRows=[],this.stages=null,this.asyncTransactions=null,this.asyncTransactionsTimer=0,this.started=!1,this.refreshingData=!1,this.rowDataUpdatedPending=!1,this.refreshingModel=!1,this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1,this.rowNodesCountReady=!1,this.stagesRefreshProps=new Map,this.onRowHeightChanged_debounced=gn(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){const e=this.beans,t=new qr(e);this.rootNode=t,this.nodeManager=this.createBean(new sz(t));const n=()=>{this.beans.groupStage?.invalidateGroupCols(),this.refreshModel({step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")})};this.addManagedEventListeners({newColumnsLoaded:n,columnRowGroupChanged:n,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:()=>this.refreshModel({step:"pivot"}),columnPivotModeChanged:()=>this.refreshModel({step:"group"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),stylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this),rowExpansionStateChanged:this.onRowGroupOpened.bind(this)}),this.addPropertyListeners()}addPropertyListeners(){const{beans:e,stagesRefreshProps:t}=this,n=[e.groupStage,e.filterStage,e.pivotStage,e.aggStage,e.sortStage,e.filterAggStage,e.flattenStage].filter(i=>!!i);this.stages=n;for(let i=n.length-1;i>=0;--i){const o=n[i];for(const r of o.refreshProps)t.set(r,i)}this.addManagedPropertyListeners([...t.keys(),"rowData"],i=>{const o=i.changeSet?.properties;o&&this.onPropChange(o)}),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,n,i){let o,r=!1;do{o=!1;const s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),u=Math.min(a,i);for(let h=l;h<=u;h++){const f=this.getRow(h);if(f.rowHeightEstimated){const g=Wr(this.beans,f);f.setRowHeight(g.height),o=!0,r=!0}}o&&this.setRowTopAndRowIndex()}while(o);return r}onPropChange(e){const{nodeManager:t,gos:n,beans:i}=this,o=i.groupStage;if(!t)return;const r=new Set(e),s=o?.onPropChange(r);let a;r.has("rowData")?a=n.get("rowData"):s&&(a=o?.extractData()),a&&!Array.isArray(a)&&(a=null,le(1));const l={step:"nothing",changedProps:r};if(a){const h=!s&&!this.isEmpty()&&a.length>0&&n.exists("getRowId")&&!n.get("resetRowDataOnUpdate");this.refreshingData=!0,h?(l.keepRenderedRows=!0,l.animate=!n.get("suppressAnimationFrame"),l.changedRowNodes=new dh,t.setImmutableRowData(l,a)):(l.rowDataUpdated=!0,l.newData=!0,t.setNewRowData(a),this.rowNodesCountReady=!0)}const u=l.rowDataUpdated?"group":this.getRefreshedStage(e);u&&(l.step=u,this.refreshModel(l))}getRefreshedStage(e){const{stages:t,stagesRefreshProps:n}=this;if(!t)return null;const i=t.length;let o=i;for(let r=0,s=e.length;r<s&&o;++r)o=Math.min(o,n.get(e[r])??o);return o<i?t[o].step:null}setRowTopAndRowIndex(e){const{beans:t,rowsToDisplay:n}=this,i=t.environment.getDefaultRowHeight();let o=0;const r=xn(this.gos,"normal");for(let s=0,a=n.length;s<a;++s){const l=n[s],u=l.id;if(u!=null&&e?.add(u),l.rowHeight==null){const h=Wr(t,l,r,i);l.setRowHeight(h.height,h.estimated)}l.setRowTop(o),l.setRowIndex(s),o+=l.rowHeight}if(this.beans.formula?.active){const s=this.formulaRows;for(let a=0,l=s.length;a<l;++a){const u=s[a];u.formulaRowIndex=a}}}clearRowTopAndRowIndex(e,t){const n=r=>{r?.id!=null&&!t.has(r.id)&&r.clearRowTopAndRowIndex()},i=r=>{n(r),n(r.detailNode),n(r.sibling);const s=r.childrenAfterGroup;if(!(!r.hasChildren()||!s)&&!(e&&r.level!==-1&&!r.expanded))for(let a=0,l=s.length;a<l;++a)i(s[a])},o=this.rootNode;o&&i(o)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay.length}getTopLevelRowCount(){const{rootNode:e,rowsToDisplay:t}=this;if(!e||!t.length)return 0;if(t[0]===e)return 1;const i=e.sibling?.displayed?1:0;return(e.childrenAfterSort?.length??0)+i}getTopLevelRowDisplayedIndex(e){const{beans:t,rootNode:n,rowsToDisplay:i}=this;if(!n||!i.length||i[0]===n)return e;const r=n.childrenAfterSort,s=l=>{let u=r[l];if(this.gos.get("groupHideOpenParents"))for(;u.expanded&&u.childrenAfterSort&&u.childrenAfterSort.length>0;)u=u.childrenAfterSort[0];return u.rowIndex},a=t.footerSvc;return a?a?.getTopDisplayIndex(i,e,r,s):s(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:n}=this;if(!t||!n.length||n[0]===t)return e;let o=this.getRow(e);o.footer&&(o=o.sibling);let r=o.parent;for(;r&&r!==t;)o=r,r=o.parent;const s=t.childrenAfterSort?.indexOf(o)??-1;return s>=0?s:e}getRowBounds(e){const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){this.refreshModel({step:"map",keepRenderedRows:!0,animate:Ka(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){const i=t.length===0||t.some(o=>o.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:i,keepRenderedRows:!0,animate:Ka(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:Ka(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:n,rowDataUpdated:i}=e;return!(!t||n||!i||t.removals.length||t.adds.size)}reMapRows(){if(this.refreshingModel||this.refreshingData){this.noKeepRenderedRows=!0,this.noKeepUndoRedoStack=!0,this.noAnimate=!0;return}this.refreshModel({step:"map",keepRenderedRows:!1,keepUndoRedoStack:!1,animate:!1})}refreshModel(e){const{nodeManager:t,eventSvc:n,started:i}=this;if(!t)return;const o=!!e.rowDataUpdated;if(i&&o&&n.dispatchEvent({type:"rowDataUpdated"}),this.deferRefresh(e)){this.setPendingRefreshFlags(e),this.rowDataUpdatedPending||(this.rowDataUpdatedPending=o);return}this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.updateRefreshParams(e);let r=!1;this.refreshingModel=!0;try{this.executeRefresh(e,o),r=!0}finally{this.refreshingData=!1,this.refreshingModel=!1,r||this.setPendingRefreshFlags(e)}this.clearPendingRefreshFlags(),n.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}executeRefresh(e,t){const{beans:n,rootNode:i}=this;n.masterDetailSvc?.refreshModel(e),t&&e.step!=="group"&&n.colFilter?.refreshModel();let o=e.changedPath;switch(o?.addRow(i),e.step==="group"&&(this.doGrouping(i,e),o??(o=e.changedPath)),o??(o=n.changedPathFactory?.ensureRowsPath(e,i)),e.step){case"group":case"filter":this.doFilter(o);case"pivot":this.doPivot(o)&&(o=void 0,e.changedPath=void 0);case"aggregate":this.doAggregate(o);case"filter_aggregates":this.doFilterAggregates(o);case"sort":this.doSort(o,e.changedRowNodes);case"map":this.doRowsToDisplay()}const r=new Set;this.setRowTopAndRowIndex(r),this.clearRowTopAndRowIndex(o,r),this.updateRefreshParams(e)}deferRefresh(e){return this.refreshingModel||this.beans.colModel.changeEventsDispatching?!0:this.isSuppressModelUpdateAfterUpdateTransaction(e)?(this.started&&(this.refreshingData=!1),!0):!this.started}setPendingRefreshFlags(e){this.pendingNewData||(this.pendingNewData=!!e.newData),this.noKeepRenderedRows||(this.noKeepRenderedRows=!e.keepRenderedRows),this.noKeepUndoRedoStack||(this.noKeepUndoRedoStack=!e.keepUndoRedoStack),this.noAnimate||(this.noAnimate=!e.animate)}clearPendingRefreshFlags(){this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1}updateRefreshParams(e){e.newData=this.pendingNewData||!!e.newData,e.keepRenderedRows=!this.noKeepRenderedRows&&!!e.keepRenderedRows,e.keepUndoRedoStack=!this.noKeepUndoRedoStack&&!!e.keepUndoRedoStack,e.animate=!this.noAnimate&&!!e.animate}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getOverlayType(){const{beans:e,gos:t}=this;if(this.rootNode?._leafs?.length){if(e.filterManager?.isAnyFilterPresent()&&this.getRowCount()===0)return"noMatchingRows"}else if(this.rowCountReady||(t.get("rowData")?.length??0)==0)return"noRows";return null}getNodesInRangeForSelection(e,t){let n=!1,i=!1;const o=[],r=Fc(this.gos);return this.forEachNodeAfterFilterAndSort(s=>{if(i)return;if(n&&(s===t||s===e)&&(i=!0,r&&s.group)){CF(o,s);return}if(!n){if(s!==t&&s!==e)return;n=!0,t===e&&(i=!0)}(!s.group||!r)&&o.push(s)}),o}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}getFormulaRow(e){return this.formulaRows[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay,n=t.length;if(this.isEmpty()||n===0)return-1;let i=0,o=n-1;if(e<=0)return 0;if(t[o].rowTop<=e)return o;let s=-1,a=-1;for(;;){const l=Math.floor((i+o)/2),u=t[l];if(this.isRowInPixel(u,e)||(u.rowTop<e?i=l+1:u.rowTop>e&&(o=l-1),s===i&&a===o))return l;s=i,a=o}}isRowInPixel(e,t){const n=e.rowTop,i=n+e.rowHeight;return n<=t&&i>t}forEachLeafNode(e){const t=this.rootNode?._leafs;if(t)for(let n=0,i=t.length;n<i;++n)e(t[n],n)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){const t=this.rowsToDisplay;for(let n=0,i=t.length;n<i;++n)e(t[n],n)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,n=>n.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,n=>n.childrenAfterSort)}forEachPivotNode(e,t,n){const{colModel:i,rowGroupColsSvc:o}=this.beans;if(!i.isPivotMode())return;if(!o?.columns.length){e(this.rootNode,0);return}const r=n?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,s=>s.leafGroup?null:s[r])}depthFirstSearchRowNodes(e,t=!1,n=r=>r.childrenAfterGroup,i=this.rootNode,o=0){let r=o;if(!i)return r;const s=i===this.rootNode;if(s||e(i,r++),i.hasChildren()&&!i.footer){const a=s||this.hierarchical?n(i):null;if(a){const l=this.beans.footerSvc;r=l?.addTotalRows(r,i,e,t,s,"top")??r;for(const u of a)r=this.depthFirstSearchRowNodes(e,t,n,u,r);return l?.addTotalRows(r,i,e,t,s,"bottom")??r}}return r}doAggregate(e){this.rootNode&&this.beans.aggStage?.execute(e)}doFilterAggregates(e){const t=this.rootNode,n=this.beans.filterAggStage;if(n&&this.hierarchical){n.execute(e);return}t.childrenAfterAggFilter=t.childrenAfterFilter;const i=t.sibling;i&&(i.childrenAfterAggFilter=t.childrenAfterFilter)}doSort(e,t){const n=this.beans.sortStage;if(n){n.execute(e,t);return}oa(this.rootNode,this.hierarchical,e,i=>{i.childrenAfterSort=i.childrenAfterAggFilter.slice(0),vF(i)})}doGrouping(e,t){const i=this.beans.groupStage?.execute(t);if(i===void 0){const o=e._leafs;e.childrenAfterGroup=o,e.updateHasChildren();const r=e.sibling;r&&(r.childrenAfterGroup=o)}(i||t.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){const t=this.beans.filterStage;if(t){t.execute(e);return}oa(this.rootNode,this.hierarchical,e,n=>{n.childrenAfterFilter=n.childrenAfterGroup,lv(n)})}doPivot(e){return this.beans.pivotStage?.execute(e)??!1}getRowNode(e){const t=this.nodeManager?.getRowNode(e);return typeof t=="object"?t:this.beans.groupStage?.getNonLeaf(e)}batchUpdateRowData(e,t){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];const n=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),n)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){const e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){const{nodeManager:e,beans:t,eventSvc:n,asyncTransactions:i}=this;if(!e)return;t.valueCache?.onDataChanged();const o=[],r=[],s=new dh,a=!this.gos.get("suppressAnimationFrame");for(const{rowDataTransaction:l,callback:u}of i??[]){this.rowNodesCountReady=!0,this.refreshingData=!0;const h=e.updateRowData(l,s,a);o.push(h),u&&r.push(u.bind(null,h))}this.commitTransactions(s,a),r.length>0&&setTimeout(()=>{for(let l=0,u=r.length;l<u;l++)r[l]()},0),o.length>0&&n.dispatchEvent({type:"asyncTransactionsFlushed",results:o}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){const t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const n=new dh,i=!this.gos.get("suppressAnimationFrame");this.refreshingData=!0;const o=t.updateRowData(e,n,i);return this.commitTransactions(n,i),o}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:t,changedRowNodes:e})}doRowsToDisplay(){const{rootNode:e,beans:t}=this;if(t.formula?.active){const o=e?.childrenAfterSort??[];this.formulaRows=o,this.rowsToDisplay=o.filter(r=>!r.softFiltered);for(const r of this.rowsToDisplay)r.setUiLevel(0);return}const n=t.flattenStage;if(n){this.rowsToDisplay=n.execute();return}const i=this.rootNode.childrenAfterSort??[];for(const o of i)o.setUiLevel(0);this.rowsToDisplay=i}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0);const n=e.sibling;n?.setRowHeight(n.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const n=t.detailNode;n?.setRowHeight(n.rowHeight,!0);const i=t.sibling;i?.setRowHeight(i.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){e.rowHeightChanged&&!this.beans.rowAutoHeight?.active&&this.resetRowHeights()}onGridReady(){this.started||this.setInitialData()}destroy(){super.destroy(),this.nodeManager=this.destroyBean(this.nodeManager),this.started=!1,this.rootNode=null,this.rowsToDisplay=[],this.asyncTransactions=null,this.stages=null,this.stagesRefreshProps.clear(),clearTimeout(this.asyncTransactionsTimer)}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}},CF=(e,t)=>{const n=t.childrenAfterGroup;if(n)for(let i=0,o=n.length;i<o;++i){const r=n[i];r.data&&e.push(r),r.group&&CF(e,r)}};function bz(e){e.expansionSvc?.onGroupExpandedOrCollapsed()}function yz(e,t){const n=To(e);n&&((!t||t==="everything")&&(t="group"),n.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))}function Sz(e){return To(e)?.isEmpty()??!0}function Rz(e,t){To(e)?.forEachLeafNode(t)}function xz(e,t){To(e)?.forEachNodeAfterFilter(t)}function Fz(e,t){To(e)?.forEachNodeAfterFilterAndSort(t)}function Pz(e,t){return e.frameworkOverrides.wrapIncoming(()=>To(e)?.updateRowData(t))}function Ez(e,t,n){e.frameworkOverrides.wrapIncoming(()=>To(e)?.batchUpdateRowData(t,n))}function Dz(e){e.frameworkOverrides.wrapIncoming(()=>To(e)?.flushAsyncTransactions())}function Tz(e){return e.selectionSvc?.getBestCostNodeSelection()}var Az={moduleName:"ClientSideRowModel",version:Re,rowModels:["clientSide"],beans:[wz,vz],dependsOn:[Jx]},Iz={moduleName:"ClientSideRowModelApi",version:Re,apiFunctions:{onGroupExpandedOrCollapsed:bz,refreshClientSideRowModel:yz,isRowDataEmpty:Sz,forEachLeafNode:Rz,forEachNodeAfterFilter:xz,forEachNodeAfterFilterAndSort:Fz,applyTransaction:Pz,applyTransactionAsync:Ez,flushAsyncTransactions:Dz,getBestCostNodeSelection:Tz,resetRowHeights:gF,onRowHeightChanged:fF},dependsOn:[iz,oz]},Mz=":where(.ag-ltr) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell{transition:width .2s ease-in-out,left .2s ease-in-out}}:where(.ag-rtl) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell{transition:width .2s ease-in-out,right .2s ease-in-out}}";function kz(e,t){typeof t=="number"?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)}function wF({colAutosize:e,visibleCols:t},n,i){Array.isArray(n)?e?.autoSizeCols({colKeys:n,skipHeader:i,source:"api"}):e?.autoSizeCols({...n,colKeys:n.colIds??t.allCols,source:"api"})}function Lz(e,t){t&&typeof t=="object"?wF(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}var Oz=class extends X{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){const{gos:e}=this,t=e.get("autoSizeStrategy");if(t){let n=!1;const i=t.type;if(i==="fitGridWidth"||i==="fitProvidedWidth")n=!0;else if(i==="fitCellContents"){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered(t)});const o=e.get("rowData");n=o!=null&&o.length>0&&en(e)}n&&this.beans.colDelayRenderSvc?.hideColumns(i)}}autoSizeCols(e){const{eventSvc:t,visibleCols:n,colModel:i}=this.beans;Wc(this.beans,!0),this.innerAutoSizeCols(e).then(o=>{const r=h=>rl(t,Array.from(h),!0,"autosizeColumns");if(!e.scaleUpToFitGridWidth)return Wc(this.beans,!1),r(o);const s=bF(this.beans),a=h=>n.leftCols.some(f=>Pc(f,h)),l=h=>n.rightCols.some(f=>Pc(f,h)),u=e.colKeys.filter(h=>!i.getCol(h)?.getColDef().suppressAutoSize&&!Kn(h)&&!a(h)&&!l(h));this.sizeColumnsToFit(s,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(h=>({...h,key:h.colId})),colKeys:u,onlyScaleUp:!0,animate:!1}),Wc(this.beans,!1),r(o)})}innerAutoSizeCols(e){return new Promise((t,n)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,n));const{colKeys:i,skipHeader:o,skipHeaderGroups:r,stopAtGroup:s,defaultMaxWidth:a,defaultMinWidth:l,columnLimits:u=[],source:h="api"}=e,{animationFrameSvc:f,renderStatus:g,colModel:m,autoWidthCalc:v,visibleCols:w}=this.beans;if(f?.flushAllFrames(),this.timesDelayed<5&&g&&(!g.areHeaderCellsRendered()||!g.areCellsRendered())){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,n)});return}this.timesDelayed=0;const b=new Set;let y=-1;const R=Object.fromEntries(u.map(({colId:F,...A})=>[F,A])),S=o??this.gos.get("skipHeaderOnAutoSize"),P=r??S;for(;y!==0;){y=0;const F=[];for(const A of i){if(!A||YO(A))continue;const k=m.getCol(A);if(!k||b.has(k)||k.getColDef().suppressAutoSize)continue;const L=v.getPreferredWidthForColumn(k,S);if(L>0){const N=R[k.colId]??{};N.minWidth??(N.minWidth=l),N.maxWidth??(N.maxWidth=a);const M=_z(k,L,N);k.setActualWidth(M,h),b.add(k),y++}F.push(k)}F.length&&w.refresh(h)}P||this.autoSizeColumnGroupsByColumns(i,h,s),t(b)})}autoSizeColumn(e,t,n){this.autoSizeCols({colKeys:[e],skipHeader:n,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,n){const{colModel:i,ctrlsSvc:o}=this.beans,r=new Set,s=i.getColsForKeys(e);for(const l of s){let u=l.getParent();for(;u&&u!=n;)u.isPadding()||r.add(u),u=u.getParent()}let a;for(const l of r){for(const u of o.getHeaderRowContainerCtrls())if(a=u.getHeaderCtrlForColumn(l),a)break;a?.resizeLeafColumnsToFit(t)}}autoSizeAllColumns(e){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(e));return}this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){const n=this.gos.get("skipHeaderOnAutoSize"),i=()=>{this.autoSizeColumn(t,"uiColumnResized",n)};e.addEventListener("dblclick",i);const o=new Qs(e);return o.addEventListener("doubleTap",i),()=>{e.removeEventListener("dblclick",i),o.destroy()}}addColumnGroupResize(e,t,n){const i=this.gos.get("skipHeaderOnAutoSize"),o=()=>{const r=[],s=t.getDisplayedLeafColumns();for(const a of s)a.getColDef().suppressAutoSize||r.push(a.getColId());r.length>0&&this.autoSizeCols({colKeys:r,skipHeader:i,stopAtGroup:t,source:"uiColumnResized"}),n()};return e.addEventListener("dblclick",o),()=>e.removeEventListener("dblclick",o)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;const n=bF(this.beans);if(n>0){this.sizeColumnsToFit(n,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):le(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",n,i){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,n,i));return}const{beans:o}=this,r=i?.animate??!0;r&&Wc(o,!0);const s={};for(const{key:y,...R}of i?.columnLimits??[])s[typeof y=="string"?y:y.getColId()]=R;const a=o.visibleCols.allCols;if(e<=0||!a.length)return;const l=lr(a);if(i?.onlyScaleUp&&l>e||e===l&&a.every(R=>{if(R.colDef.suppressSizeToFit)return!0;const S=s?.[R.getId()],P=S?.minWidth??i?.defaultMinWidth,F=S?.maxWidth??i?.defaultMaxWidth,A=R.getActualWidth();return(P==null||A>=P)&&(F==null||A<=F)}))return;const h=[],f=[];for(const y of a){const R=i?.colKeys?.some(S=>Pc(y,S))??!0;y.getColDef().suppressSizeToFit||!R?f.push(y):h.push(y)}const g=h.slice(0);let m=!1;const v=y=>{Fo(h,y),f.push(y)},w={};for(const y of h){i?.onlyScaleUp&&(w[y.getColId()]=y.getActualWidth()),y.resetActualWidth(t);const R=s?.[y.getId()],S=R?.minWidth??i?.defaultMinWidth??-1/0,P=R?.maxWidth??i?.defaultMaxWidth??1/0,F=y.getActualWidth(),A=Math.max(Math.min(F,P),S);A!=F&&y.setActualWidth(A,t,!0)}for(;!m;){m=!0;const y=e-lr(f);if(y<=0)for(const R of h){const S=s?.[R.getId()]?.minWidth??i?.defaultMinWidth??R.minWidth;R.setActualWidth(S,t,!0)}else{const R=y/lr(h);let S=y;for(let P=h.length-1;P>=0;P--){const F=h[P],A=F.getColId(),k=w[A],L=s?.[A],N=L?.minWidth??i?.defaultMinWidth??k,M=L?.maxWidth??i?.defaultMaxWidth,E=Math.max(N??-1/0,F.getMinWidth()),I=Math.min(M??1/0,F.getMaxWidth());let B=Math.round(F.getActualWidth()*R);B<E?(B=E,v(F),m=!1):B>I?(B=I,v(F),m=!1):P===0&&(B=S),F.setActualWidth(B,t,!0),S-=B}}}for(const y of g)y.fireColumnWidthChangedEvent(t);const b=o.visibleCols;b.setLeftValues(t),b.updateBodyWidths(),!n&&(rl(this.eventSvc,g,!0,t),r&&Wc(o,!1))}applyAutosizeStrategy(){const{gos:e,colDelayRenderSvc:t}=this.beans,n=e.get("autoSizeStrategy");n?.type!=="fitGridWidth"&&n?.type!=="fitProvidedWidth"||setTimeout(()=>{if(!this.isAlive())return;const i=n.type;if(i==="fitGridWidth"){const{columnLimits:o,defaultMinWidth:r,defaultMaxWidth:s}=n,a=o?.map(({colId:l,minWidth:u,maxWidth:h})=>({key:l,minWidth:u,maxWidth:h}));this.sizeColumnsToFitGridBody({defaultMinWidth:r,defaultMaxWidth:s,columnLimits:a})}else i==="fitProvidedWidth"&&this.sizeColumnsToFit(n.width,"sizeColumnsToFit");t?.revealColumns(i)})}onFirstDataRendered({colIds:e,...t}){setTimeout(()=>{if(!this.isAlive())return;const n="autosizeColumns";e?this.autoSizeCols({...t,source:n,colKeys:e}):this.autoSizeAllColumns({...t,source:n}),this.beans.colDelayRenderSvc?.revealColumns(t.type)})}processResizeOperations(){this.shouldQueueResizeOperations=!1;for(const e of this.resizeOperationQueue)e();this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function _z(e,t,n={}){const i=n.minWidth??e.getMinWidth();t<i&&(t=i);const o=n.maxWidth??e.getMaxWidth();return t>o&&(t=o),t}function bF({ctrlsSvc:e,scrollVisibleSvc:t}){const n=e.getGridBodyCtrl(),o=n.isVerticalScrollShowing()?t.getScrollbarWidth():0;return mc(n.eGridBody)-o}var yF="ag-animate-autosize";function Wc({ctrlsSvc:e,gos:t},n){if(!t.get("animateColumnResizing")||t.get("enableRtl")||!e.isAlive())return;const i=e.getGridBodyCtrl().eGridBody.classList;n?i.add(yF):i.remove(yF)}var Nz={moduleName:"ColumnAutoSize",version:Re,beans:[Oz],apiFunctions:{sizeColumnsToFit:kz,autoSizeColumns:wF,autoSizeAllColumns:Lz},dependsOn:[ex],css:[Mz]};function Bz(e,t){return!!e.colHover?.isHovered(t)}var Hz=class extends X{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=n=>{const{beans:i,gos:o,element:r,columns:s}=this,a=i.colHover;if(n??!!o.get("columnHoverHighlight"))this.destroyManagedListeners=this.addManagedElementListeners(r,{mouseover:a.setMouseOver.bind(a,s),mouseout:a.clearMouseOver.bind(a)});else{for(const u of this.destroyManagedListeners)u();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},Gz="ag-column-hover",Vz=class extends X{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;const t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,n){const i=()=>{const o=this.isHovered(n);t.toggleCss("ag-column-hover",o)};e.addManagedEventListeners({columnHoverChanged:i}),i()}onCellColumnHover(e,t){if(!t)return;const n=this.isHovered(e);t.toggleCss(Gz,n)}addHeaderFilterColumnHoverListener(e,t,n,i){this.createHoverFeature(e,[n],i);const o=()=>{const r=this.isHovered(n);t.toggleCss("ag-column-hover",r)};e.addManagedEventListeners({columnHoverChanged:o}),o()}createHoverFeature(e,t,n){e.createManagedBean(new Hz(t,n))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},Wz={moduleName:"ColumnHover",version:Re,beans:[Vz],apiFunctions:{isColumnHovered:Bz}},zz=class extends X{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){const{allColumns:n,columnKeys:i,skipRowGroups:o,exportRowNumbers:r}=t,s=this.getColumnsToExport({allColumns:n,skipRowGroups:o,columnKeys:i,exportRowNumbers:r});return[this.prepareSession(s),this.prependContent(t),this.exportColumnGroups(t,s),this.exportHeaders(t,s),this.processPinnedTopRows(t,s),this.processRows(t,s),this.processPinnedBottomRows(t,s),this.appendContent(t)].reduce((a,l)=>l(a),e).parse()}processRow(e,t,n,i){const o=t.shouldRowBeSkipped||(()=>!1),s=t.rowPositions!=null||!!t.onlySelected,a=this.gos.get("groupHideOpenParents")&&!s,l=this.colModel.isPivotMode()?i.leafGroup:!i.group,u=!!i.footer,h=i.allChildrenCount===1&&i.childrenAfterGroup?.length===1&&yO(this.gos,i);if(!l&&!u&&(t.skipRowGroups||h||a)||t.onlySelected&&!i.isSelected()||t.skipPinnedTop&&i.rowPinned==="top"||t.skipPinnedBottom&&i.rowPinned==="bottom"||i.stub||i.level===-1&&!l&&!u||o(Ue(this.gos,{node:i})))return;const m=e.onNewBodyRow(i);if(n.forEach((v,w)=>{m.onColumn(v,w,i)}),t.getCustomContentBelowRow){const v=t.getCustomContentBelowRow(Ue(this.gos,{node:i}));v&&e.addCustomContent(v)}}appendContent(e){return t=>{const n=e.appendContent;return n&&t.addCustomContent(n),t}}prependContent(e){return t=>{const n=e.prependContent;return n&&t.addCustomContent(n),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return n=>{if(!e.skipColumnGroupHeaders){const i=new ix,{colGroupSvc:o}=this.beans,r=o?o.createColumnGroups({columns:t,idCreator:i,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(r,n,e.processGroupHeaderCallback)}return n}}exportHeaders(e,t){return n=>{if(!e.skipColumnHeaders){const i=n.onNewHeaderRow();t.forEach((o,r)=>{i.onColumn(o,r,void 0)})}return n}}processPinnedTopRows(e,t){return n=>{const i=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="top").sort((o,r)=>o.rowIndex-r.rowIndex).map(o=>this.pinnedRowModel?.getPinnedTopRow(o.rowIndex)).forEach(i):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",i),n}}processRows(e,t){return n=>{const i=this.rowModel,o=en(this.gos),r=Rc(this.gos),s=!o&&e.onlySelected,a=this.processRow.bind(this,n,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(u=>u.rowPinned==null).sort((u,h)=>u.rowIndex-h.rowIndex).map(u=>i.getRow(u.rowIndex)).forEach(a);else if(this.colModel.isPivotMode())o?i.forEachPivotNode(a,!0,l==="filteredAndSorted"):r?i.forEachNodeAfterFilterAndSort(a,!0):i.forEachNode(a);else if(e.onlySelectedAllPages||s){const u=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(u),u.forEach(a)}else l==="all"?i.forEachNode(a):o||r?i.forEachNodeAfterFilterAndSort(a,!0):i.forEachNode(a);return n}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:n}=this.beans;if(!t||!n)return;const i=t.getSortOptions(),o=(r,s)=>r.rowIndex!=null&&s.rowIndex!=null?r.rowIndex-s.rowIndex:r.level===s.level?r.parent?.id===s.parent?.id?n.compareRowNodes(i,r,s)||(r.rowIndex??-1)-(s.rowIndex??-1):o(r.parent,s.parent):r.level>s.level?o(r.parent,s):o(r,s.parent);e.sort(o)}processPinnedBottomRows(e,t){return n=>{const i=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="bottom").sort((o,r)=>o.rowIndex-r.rowIndex).map(o=>this.pinnedRowModel?.getPinnedBottomRow(o.rowIndex)).forEach(i):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",i),n}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:n=!1,exportRowNumbers:i=!1,columnKeys:o}=e,{colModel:r,gos:s,visibleCols:a}=this,l=r.isPivotMode(),u=g=>$r(g)?!1:!Kn(g)||i;if(o?.length)return r.getColsForKeys(o).filter(u);const h=s.get("treeData");let f=[];return t&&!l?f=r.getCols():f=a.allCols,f=f.filter(g=>u(g)&&(n&&!h?!Hp(g):!0)),f}recursivelyAddHeaderGroups(e,t,n){const i=[];for(const o of e){const r=o;if(r.getChildren)for(const s of r.getChildren()??[])i.push(s)}e.length>0&&tn(e[0])&&this.doAddHeaderHeader(t,e,n),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,t,n)}doAddHeaderHeader(e,t,n){const i=e.onNewHeaderGroupingRow();let o=0;for(const r of t){const s=r;let a;n?a=n(Ue(this.gos,{columnGroup:s})):a=this.beans.colNames.getDisplayNameForColumnGroup(s,"header");const u=(s.isExpandable()?s.getLeafColumns():[]).reduce((h,f,g,m)=>{let v=Tt(h);return f.getColumnGroupShow()==="open"?(!v||v[1]!=null)&&(v=[g],h.push(v)):v&&v[1]==null&&(v[1]=g-1),g===m.length-1&&v&&v[1]==null&&(v[1]=g),h},[]);i.onColumn(s,a||"",o++,s.getLeafColumns().length-1,u)}}},Uz={moduleName:"SharedExport",version:Re,beans:[zz]},$z=class extends X{getFileName(e){const t=this.getDefaultFileExtension();return e?.length||(e=this.getDefaultFileName()),e.includes(".")?e:`${e}.${t}`}getData(e){return this.beans.gridSerializer.serialize(this.createSerializingSession(e),e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}};function jz(e,t){const n=document.defaultView||window;if(!n){le(52);return}const i=document.createElement("a"),o=n.URL.createObjectURL(t);i.setAttribute("href",o),i.setAttribute("download",e),i.style.display="none",document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),i.remove(),n.setTimeout(()=>{n.URL.revokeObjectURL(o)},0)}var Kz=class{constructor(e){this.valueFrom="data";const{colModel:t,rowGroupColsSvc:n,colNames:i,valueSvc:o,gos:r,processCellCallback:s,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:u,valueFrom:h}=e;this.colModel=t,this.rowGroupColsSvc=n,this.colNames=i,this.valueSvc=o,this.gos=r,this.processCellCallback=s,this.processHeaderCallback=a,this.processGroupHeaderCallback=l,this.processRowGroupCallback=u,h&&(this.valueFrom=h)}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e){const{column:t,node:n,currentColumnIndex:i,accumulatedRowIndex:o,type:r,useRawFormula:s}=e,a=i===0&&b0(this.gos,n,this.colModel.isPivotMode());if(this.processRowGroupCallback&&(this.gos.get("treeData")||n.group)&&(t.isRowGroupDisplayed(n.rowGroupColumn?.getColId()??"")||a))return{value:this.processRowGroupCallback(Ue(this.gos,{column:t,node:n}))??""};if(this.processCellCallback)return{value:this.processCellCallback(Ue(this.gos,{accumulatedRowIndex:o,column:t,node:n,value:this.valueSvc.getValueForDisplay({column:t,node:n,from:this.valueFrom}).value,type:r,parseValue:v=>this.valueSvc.parseValue(t,n,v,this.valueSvc.getValue(t,n,this.valueFrom)),formatValue:v=>this.valueSvc.formatValue(t,n,v)??v}))??""};const l=this.gos.get("treeData"),u=this.valueSvc,h=n.level===-1&&n.footer,f=t.colDef.showRowGroup===!0&&(n.group||l);if(!h&&(a||f)){let v="",w=n;for(;w&&w.level!==-1;){const{value:b,valueFormatted:y}=u.getValueForDisplay({column:a?void 0:t,node:w,includeValueFormatted:!0,exporting:!0,from:this.valueFrom});v=` -> ${y??b??""}${v}`,w=w.parent}return{value:v,valueFormatted:v}}const{value:g,valueFormatted:m}=u.getValueForDisplay({column:t,node:n,includeValueFormatted:!0,exporting:!0,useRawFormula:s,from:this.valueFrom});return{value:g??"",valueFormatted:m}}getHeaderName(e,t){return e?e(Ue(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}},SF=`\r
63
- `,qz=class extends Kz{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:n}=e;this.suppressQuotes=t,this.columnSeparator=n}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,SF),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((n,i)=>{i!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(n.data.value||""),n.mergeAcross&&this.appendEmptyCells(n.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,n,i){n!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(i)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,n){t!=0&&(this.result+=this.columnSeparator);const i=this.extractRowCellValue({column:e,node:n,currentColumnIndex:t,accumulatedRowIndex:t,type:"csv",useRawFormula:!1});this.result+=this.putInQuotes(i.valueFormatted??i.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():(le(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=SF),this.isFirstLine=!1}},Qz=class extends $z{constructor(){super(...arguments),this.beanName="csvCreator"}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){le(51);return}const t=()=>{const i=this.getMergedParams(e),o=this.getData(i),r=new Blob(["\uFEFF",o],{type:"text/plain"}),s=i.fileName,a=typeof s=="function"?s(Ue(this.gos,{})):s;jz(this.getFileName(a),r)},{overlays:n}=this.beans;n?n.showExportOverlay(t):t()}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const n=t?Object.assign({},e):this.getMergedParams(e);return this.getData(n)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:n,rowGroupColsSvc:i,valueSvc:o,gos:r}=this.beans,{processCellCallback:s,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:u,suppressQuotes:h,columnSeparator:f,valueFrom:g}=e;return new qz({colModel:t,colNames:n,valueSvc:o,gos:r,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:h||!1,columnSeparator:f||",",rowGroupColsSvc:i,valueFrom:g})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function Yz(e,t){return e.csvCreator?.getDataAsCsv(t)}function Zz(e,t){e.csvCreator?.exportDataAsCsv(t)}var Jz={moduleName:"CsvExport",version:Re,beans:[Qz],apiFunctions:{getDataAsCsv:Yz,exportDataAsCsv:Zz},dependsOn:[Uz]},RF=class extends $n{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const n="title",i=this.ctrl.getGui();i&&(e!=null&&(e!=""||t)?i.setAttribute(n,e):i.removeAttribute(n))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){if(this.tooltipManager==null){const e=this.beans.registry.createDynamicBean("tooltipStateManager",!0,this.ctrl,()=>this.tooltip);e&&(this.tooltipManager=this.createBean(e,this.beans.context))}}attemptToShowTooltip(){this.tooltipManager?.prepareToShowTooltip()}attemptToHideTooltip(){this.tooltipManager?.hideTooltip()}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(e){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(e?"":null,e),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},Xz=1e3,e4=1e3,xF=100,FF,Ph=!1,t4=class extends $n{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){return this.tooltipCtrl[`getTooltip${e}DelayOverride`]?.()??this.getGridOptionsTooltipDelay(`tooltip${e}Delay`)}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!Us()&&(Ph?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},xF):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,n=this.tooltipCtrl.getGui(),i=this.tooltipComp?.getGui();this.isInteractingWithTooltip||n.contains(t)||this.interactionEnabled&&i?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||Ph)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?this.getTooltipDelay("SwitchShow"):this.getTooltipDelay("Show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-FF<Xz}setToDoNothing(e){!e&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.clearEventHandlers(),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!Pe(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip()){this.setToDoNothing();return}const n=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;const i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(n,i)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),FF=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(this.state!==2||this.tooltipInstanceCount!==e){this.destroyBean(t);return}const i=t.getGui();this.tooltipComp=t,i.classList.contains("ag-tooltip")||i.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&i.classList.add("ag-tooltip-animate"),this.interactionEnabled&&i.classList.add("ag-tooltip-interactive");const o=this.getLocaleTextFunc(),r=this.popupSvc?.addPopup({eChild:i,ariaLabel:o("ariaLabelTooltip","Tooltip")});if(r&&(this.tooltipPopupDestroyFunc=r.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const s=()=>this.setToDoNothing();[this.onBodyScrollEventCallback]=this.addManagedEventListeners({bodyScroll:s}),this.setEventHandlers(s)}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(i,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(un(this.beans),{keydown:s=>{i.contains(s?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(i,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:i,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){const e=this.tooltipComp?.getGui(),t=Lt(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,n=this.tooltipTrigger===0?e4:0;window.setTimeout(()=>{e(),this.destroyBean(t)},n),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){for(const e of[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener])e&&e();this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){Ph=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},xF)}unlockService(){Ph=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("Hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}},n4=class extends RF{constructor(e,t,n){super(e,n),this.highlightTracker=t,this.onHighlight=this.onHighlight.bind(this)}postConstruct(){super.postConstruct(),this.wireHighlightListeners()}wireHighlightListeners(){this.addManagedPropertyListener("tooltipTrigger",({currentValue:e})=>{this.setTooltipMode(e)}),this.setTooltipMode(this.gos.get("tooltipTrigger")),this.highlightTracker.addEventListener("itemHighlighted",this.onHighlight)}onHighlight(e){this.tooltipMode===1&&(e.highlighted?this.attemptToShowTooltip():this.attemptToHideTooltip())}setTooltipMode(e="focus"){this.tooltipMode=e==="focus"?1:0}destroy(){this.highlightTracker.removeEventListener("itemHighlighted",this.onHighlight),super.destroy()}},i4=class extends Xp{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){const{value:t}=e,n=this.getGui();n.textContent=Ga(t);const i=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();n.classList.add(`ag-${i}-tooltip`)}},o4=".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip),&:where(.ag-cell-formula-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}",Eh=0,r4=200,s4=class extends $n{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.addManagedEventListeners({stylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){const e=this.gos.get("popupParent");return e||this.getDefaultPopupParent()}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:n,nudgeY:i,skipObserver:o}=e;this.positionPopup({ePopup:t,nudgeX:n,nudgeY:i,keepWithinBounds:!0,skipObserver:o,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,e.type,e.ePopup,null,e.mouseEvent)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:n,nudgeY:i,keepWithinBounds:o,eventSource:r,alignSide:s="left",position:a="over",type:l}=e,u=r.getBoundingClientRect(),h=this.getParentRect();this.setAlignedTo(r,t);const f=()=>{let g=u.left-h.left;s==="right"&&(g-=t.offsetWidth-u.width);let m;return a==="over"?(m=u.top-h.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,u,h,e.nudgeY||0)==="under"?m=u.top-h.top+u.height:m=u.top-t.offsetHeight-(i||0)*2-h.top),{x:g,y:m}};this.positionPopup({ePopup:t,nudgeX:n,nudgeY:i,keepWithinBounds:o,updatePosition:f,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,l,t,r,null)})}positionPopupForMenu(e){const{eventSource:t,ePopup:n,event:i}=e,o=t.getBoundingClientRect(),r=this.getParentRect();this.setAlignedTo(t,n);let s=!1;const a=()=>{const l=this.keepXYWithinBounds(n,o.top-r.top,0),u=n.clientWidth>0?n.clientWidth:200;s||(n.style.minWidth=`${u}px`,s=!0);const f=r.right-r.left-u;let g;return this.gos.get("enableRtl")?(g=v(),g<0&&(g=m(),this.setAlignedStyles(n,"left")),g>f&&(g=0,this.setAlignedStyles(n,"right"))):(g=m(),g>f&&(g=v(),this.setAlignedStyles(n,"right")),g<0&&(g=0,this.setAlignedStyles(n,"left"))),{x:g,y:l};function m(){return o.right-r.left-2}function v(){return o.left-r.left-u}};this.positionPopup({ePopup:n,keepWithinBounds:!0,updatePosition:a,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,"subMenu",n,t,i instanceof MouseEvent?i:void 0)})}shouldRenderUnderOrAbove(e,t,n,i){const o=n.bottom-t.bottom,r=t.top-n.top,s=e.offsetHeight+i;return o>s?"under":r>s||r>o?"above":"under"}setAlignedStyles(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const i=this.popupList[n],{alignedToElement:o}=i;if(!o)return;const r=["right","left","over","above","under"];for(const s of r)o.classList.remove(`ag-has-popup-positioned-${s}`),e.classList.remove(`ag-popup-positioned-${s}`);t&&(o.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const n=this.getPopupIndex(t);if(n!==-1){const i=this.popupList[n];i.alignedToElement=e}}positionPopup(e){const{ePopup:t,keepWithinBounds:n,nudgeX:i,nudgeY:o,skipObserver:r,updatePosition:s}=e,a={width:0,height:0},l=(u=!1)=>{let{x:h,y:f}=s();u&&t.clientWidth===a.width&&t.clientHeight===a.height||(a.width=t.clientWidth,a.height=t.clientHeight,i&&(h+=i),o&&(f+=o),n&&(h=this.keepXYWithinBounds(t,h,1),f=this.keepXYWithinBounds(t,f,0)),t.style.left=`${h}px`,t.style.top=`${f}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!r){const u=Hr(this.beans,t,()=>l(!0));setTimeout(()=>u(),r4)}}getParentRect(){const e=un(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),US(t)}keepXYWithinBounds(e,t,n){const i=n===0,o=i?"clientHeight":"clientWidth",r=i?"top":"left",s=i?"height":"width",a=i?"scrollTop":"scrollLeft",l=un(this.beans),u=l.documentElement,h=this.getPopupParent(),f=e.getBoundingClientRect(),g=h.getBoundingClientRect(),m=l.documentElement.getBoundingClientRect(),v=h===l.body,w=Math.ceil(f[s]);let y=v?(i?zS:Dd)(u)+u[a]:h[o];v&&(y-=Math.abs(m[r]-g[r]));const R=y-w;return Math.min(Math.max(t,0),Math.max(R,0))}addPopup(e){const{eChild:t,ariaLabel:n,ariaOwns:i,alwaysOnTop:o,positionCallback:r,anchorToElement:s}=e,a=this.getPopupIndex(t);if(a!==-1)return{hideFunc:this.popupList[a].hideFunc};this.initialisePopupPosition(t);const l=this.createPopupWrapper(t,!!o,n,i),u=this.addEventListenersToPopup({...e,wrapperEl:l});return r&&r(),this.addPopupToPopupList(t,l,u,s),{hideFunc:u}}initialisePopupPosition(e){const n=this.getPopupParent().getBoundingClientRect();Pe(e.style.top)||(e.style.top=`${n.top*-1}px`),Pe(e.style.left)||(e.style.left=`${n.left*-1}px`)}createPopupWrapper(e,t,n,i){const o=this.getPopupParent(),{environment:r,gos:s}=this.beans,a=Hs({tag:"div"});return r.applyThemeClasses(a),a.classList.add("ag-popup"),e.classList.add(s.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||Br(e,"dialog"),n?Va(e,n):i&&(e.id||(e.id=`popup-component-${Eh}`),VS(i,e.id)),a.appendChild(e),o.appendChild(a),t?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),a}addEventListenersToPopup(e){const t=this.beans,n=un(t),{wrapperEl:i,eChild:o,closedCallback:r,afterGuiAttached:s,closeOnEsc:a,modal:l,ariaOwns:u}=e;let h=!1;const f=w=>{if(!i.contains(Lt(t)))return;w.key===K.ESCAPE&&!this.isStopPropagation(w)&&v({keyboardEvent:w})},g=w=>v({mouseEvent:w}),m=w=>v({touchEvent:w}),v=(w={})=>{const{mouseEvent:b,touchEvent:y,keyboardEvent:R,forceHide:S}=w;!S&&(this.isEventFromCurrentPopup({mouseEvent:b,touchEvent:y},o)||h)||(h=!0,i.remove(),n.removeEventListener("keydown",f),n.removeEventListener("mousedown",g),n.removeEventListener("touchstart",m),n.removeEventListener("contextmenu",g),this.eventSvc.removeListener("dragStarted",g),r&&r(b||y||R),this.removePopupFromPopupList(o,u))};return s&&s({hidePopup:v}),window.setTimeout(()=>{a&&n.addEventListener("keydown",f),l&&(n.addEventListener("mousedown",g),this.eventSvc.addListener("dragStarted",g),n.addEventListener("touchstart",m),n.addEventListener("contextmenu",g))},0),v}addPopupToPopupList(e,t,n,i){this.popupList.push({element:e,wrapper:t,hideFunc:n,instanceId:Eh,isAnchored:!!i}),i&&this.setPopupPositionRelatedToElement(e,i),Eh=Eh+1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const i=this.popupList[n];if(i.stopAnchoringPromise&&i.stopAnchoringPromise.then(r=>r&&r()),i.stopAnchoringPromise=void 0,i.isAnchored=!1,!t)return;const o=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:i.hideFunc});return i.stopAnchoringPromise=o,i.isAnchored=!0,o}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&VS(t,null),this.popupList=this.popupList.filter(n=>n.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),n=t.getBoundingClientRect(),{element:i,ePopup:o}=e,r=i.getBoundingClientRect(),s=f=>Number.parseInt(f.substring(0,f.length-1),10),a=(f,g)=>{const m=n[f]-r[f],v=s(o.style[f]);return{initialDiff:m,lastDiff:m,initial:v,last:v,direction:g}},l=a("top",0),u=a("left",1),h=this.beans.frameworkOverrides;return new Ot(f=>{h.wrapIncoming(()=>{a_(()=>{const g=t.getBoundingClientRect(),m=i.getBoundingClientRect();if(m.top==0&&m.left==0&&m.height==0&&m.width==0){e.hidePopup();return}const w=(b,y)=>{const R=s(o.style[y]);b.last!==R&&(b.initial=R,b.last=R);const S=g[y]-m[y];if(S!=b.lastDiff){const P=this.keepXYWithinBounds(o,b.initial+b.initialDiff-S,b.direction);o.style[y]=`${P}px`,b.last=P}b.lastDiff=S};w(l,"top"),w(u,"left")},200).then(g=>{f(()=>{g!=null&&window.clearInterval(g)})})},"popupPositioning")})}isEventFromCurrentPopup(e,t){const{mouseEvent:n,touchEvent:i}=e,o=n||i;if(!o)return!1;const r=this.getPopupIndex(t);if(r===-1)return!1;for(let s=r;s<this.popupList.length;s++){const a=this.popupList[s];if(_L(a.element,o))return!0}return this.isElementWithinCustomPopup(o.target)}isElementWithinCustomPopup(e){const t=un(this.beans);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||e.parentElement===null)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))}bringPopupToFront(e){const t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),i=n.length,o=this.getWrapper(e);if(!o||i<=1||!t.contains(e))return;const r=[],s=[];for(const g of n)g!==o&&(g.classList.contains("ag-always-on-top")?s.push(g):r.push(g));const a=[],l=s.length,f=o.classList.contains("ag-always-on-top")||!l?[...r,...s,o]:[...r,o,...s];for(let g=0;g<=i;g++){const m=f[g];if(n[g]===f[g]||m===o)continue;const v=m.querySelectorAll("div");for(const w of v)w.scrollTop!==0&&a.push([w,w.scrollTop]);g===0?t.prepend(m):f[g-1].after(m)}for(;a.length;){const g=a.pop();g[0].scrollTop=g[1]}}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const n of this.popupList)t.applyThemeClasses(n.wrapper)}}},a4=class extends s4{getDefaultPopupParent(){return this.beans.ctrlsSvc.get("gridCtrl").getGui()}callPostProcessPopup(e,t,n,i,o){const r=this.gos.getCallback("postProcessPopup");if(r){const{column:s,rowNode:a}=e??{};r({column:s,rowNode:a,ePopup:n,type:t,eventSource:i,mouseEvent:o})}}getActivePopups(){return this.popupList.map(e=>e.element)}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return cr(e)}},Dh={moduleName:"Popup",version:Re,beans:[a4]};function cv(e){return e.get("tooltipShowMode")==="whenTruncated"}var l4=(e,t)=>{const n=e;return typeof n.getTranslatedMessage=="function"?n.getTranslatedMessage(t):e.message},uv=(e,t,n)=>{const{editModelSvc:i}=e,o=i?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,r=i?.getRowValidationModel().getRowValidation(t)?.errorMessages,s=o||r;return s?.length?s.join(n("tooltipValidationErrorSeparator",". ")):void 0},c4=(e,t)=>{if(cv(e.gos)){if(t.isCellRenderer()){const i=t.column.getColDef();return!!i.showRowGroup||i.cellRenderer==="agGroupCellRenderer"?Cc(()=>{const r=t.eGui;return r.querySelector(".ag-group-value")||r.querySelector(".ag-cell-value")||r}):void 0}return Cc(()=>{const i=t.eGui;return i.children.length===0?i:i.querySelector(".ag-cell-value")})}},u4=(e,t,n)=>{const{editSvc:i}=e,{column:o}=t,r=c4(e,t),s=()=>i?.isEditing(t)?!1:r?o.isTooltipEnabled()?r():!1:!0;return{shouldDisplayDefault:s,shouldDisplayColumnTooltip:s,shouldDisplayCustomTooltip:n??s}},d4=({beans:e,ctrl:t,value:n,displayFunctions:i,translate:o})=>{const{editSvc:r,formula:s,gos:a}=e,{column:l,rowNode:u}=t;if(s?.active&&l.isAllowFormula()){const b=s.getFormulaError(l,u);if(b)return{value:l4(b,o),location:"cellFormula",shouldDisplay:()=>!!s?.getFormulaError(l,u)}}if(!!!r?.isEditing(t)){const b=uv(e,t,o);if(b)return{value:b,location:"cellEditor",shouldDisplay:()=>!r?.isEditing(t)&&!!uv(e,t,o)}}const{shouldDisplayCustomTooltip:f,shouldDisplayColumnTooltip:g}=i;if(n!=null)return{value:n,location:"cell",shouldDisplay:f};const m=l.getColDef(),v=u.data;if(m.tooltipField&&Pe(v))return{value:_c(v,m.tooltipField,l.isTooltipFieldContainsDots()),location:"cell",shouldDisplay:g};const w=m.tooltipValueGetter;return w?{value:w(Ue(a,{location:"cell",colDef:l.getColDef(),column:l,rowIndex:t.cellPosition.rowIndex,node:u,data:u.data,value:t.value,valueFormatted:t.valueFormatted})),location:"cell",shouldDisplay:g}:null},h4=class extends X{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,n,i){e&&t.destroyBean(e);const o=this.gos,r=cv(o),{column:s,eGui:a}=t,l=s.getColDef();!i&&r&&!l.headerComponent&&(i=Cc(()=>a.querySelector(".ag-header-cell-text")));const u="header",f=this.beans.colNames.getDisplayNameForColumn(s,"header",!0),g=n??f,m={getGui:()=>a,getLocation:()=>u,getTooltipValue:()=>n??l?.headerTooltipValueGetter?.(Ue(o,{location:u,colDef:l,column:s,value:g,valueFormatted:f}))??l?.headerTooltip,shouldDisplayTooltip:i,getAdditionalParams:()=>({column:s,colDef:s.getColDef()})};let v=this.createTooltipFeature(m);return v&&(v=t.createBean(v),t.setRefreshFunction("tooltip",()=>v.refreshTooltip())),v}setupHeaderGroupTooltip(e,t,n,i){e&&t.destroyBean(e);const o=this.gos,r=cv(o),{column:s,eGui:a}=t,l=s.getColGroupDef();!i&&r&&!l?.headerGroupComponent&&(i=Cc(()=>a.querySelector(".ag-header-group-text")));const u="headerGroup",f=this.beans.colNames.getDisplayNameForColumnGroup(s,"header"),g=n??f,m={getGui:()=>a,getLocation:()=>u,getTooltipValue:()=>n??l?.headerTooltipValueGetter?.(Ue(o,{location:u,colDef:l,column:s,value:g,valueFormatted:f}))??l?.headerTooltip,shouldDisplayTooltip:i,getAdditionalParams:()=>{const w={column:s};return l&&(w.colDef=l),w}},v=this.createTooltipFeature(m);return v&&t.createBean(v)}enableCellTooltipFeature(e,t,n){const{beans:i}=this,{column:o,rowNode:r}=e,s=u4(i,e,n),a=this.getLocaleTextFunc();let l=null;const u=()=>(l=d4({beans:i,ctrl:e,value:t,displayFunctions:s,translate:a}),l),f={getGui:()=>e.eGui,getLocation:()=>l?.location??"cell",getTooltipValue:()=>u()?.value,shouldDisplayTooltip:()=>{const g=l??u();return g?g.shouldDisplay?g.shouldDisplay():!0:!1},getAdditionalParams:()=>({column:o,colDef:o.getColDef(),rowIndex:e.cellPosition.rowIndex,node:r,data:r.data,valueFormatted:e.valueFormatted})};return this.createTooltipFeature(f,i)}setupFullWidthRowTooltip(e,t,n,i){const o={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>n,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:i},r=this.beans,s=r.context;e&&t.destroyBean(e,s);const a=this.createTooltipFeature(o,r);if(a)return t.createBean(a,s)}setupCellEditorTooltip(e,t){const{beans:n}=this,{context:i}=n,o=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!o)return;const r={getGui:()=>o,getTooltipValue:()=>uv(n,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:a}=n,l=a?.getRowValidationModel()?.getRowValidationMap(),u=a?.getCellValidationModel()?.getCellValidationMap(),h=!!l&&l.size>0,f=!!u&&u.size>0;return h||f}},s=this.createTooltipFeature(r,n);if(s)return e.createBean(s,i)}initCol(e){const{colDef:t}=e;e.tooltipEnabled=Pe(t.tooltipField)||Pe(t.tooltipValueGetter)||Pe(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},f4=class extends t4{createTooltipComp(e,t){N_(this.beans.userCompFactory,e)?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}},PF={moduleName:"Tooltip",version:Re,beans:[h4],dynamicBeans:{tooltipFeature:RF,highlightTooltipFeature:n4,tooltipStateManager:f4},userComponents:{agTooltipComponent:i4},dependsOn:[Dh],css:[o4]},hl=class{constructor(e){this.cellValueChanges=e}},dv=class extends hl{constructor(e,t,n,i){super(e),this.initialRange=t,this.finalRange=n,this.ranges=i}},g4=10,EF=class{constructor(e){this.actionStack=[],this.maxStackSize=e||g4,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},p4=class extends X{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.batchEditing=!1,this.bulkEditing=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=this.activeCellEdit!==null&&am(this.activeCellEdit,t),i=this.activeRowEdit!==null&&b2(this.activeRowEdit,t);if(!(n||i||this.isPasting||this.isRangeInAction))return;const{rowPinned:r,rowIndex:s,column:a,oldValue:l,value:u}=e,h={rowPinned:r,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};this.cellValueChanges.push(h)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const n=e.get("undoRedoCellEditingLimit");if(n<=0)return;this.undoStack=new EF(n),this.redoStack=new EF(n),this.addListeners();const i=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:o=>{o.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:i,newColumnsLoaded:i,columnGroupOpened:i,columnRowGroupChanged:i,columnMoved:i,columnPinned:i,columnVisible:i,rowDragEnd:i}),t.whenReady(this,o=>{this.gridBodyCtrl=o.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:n,redoStack:i}=this;t.dispatchEvent({type:"undoStarted",source:e});const o=this.undoRedo(n,i,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:o})}redo(e){const{eventSvc:t,undoStack:n,redoStack:i}=this;t.dispatchEvent({type:"redoStarted",source:e});const o=this.undoRedo(i,n,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:o})}undoRedo(e,t,n,i,o){if(!e)return!1;const r=e.pop();return r?.cellValueChanges?(this.processAction(r,s=>s[i],o),r instanceof dv?this.processRange(r.ranges||[r[n]]):this.processCell(r.cellValueChanges),t.push(r),!0):!1}processAction(e,t,n){const{changeDetectionSvc:i}=this.beans;i?.beginDeferred();try{for(const o of e.cellValueChanges){const{rowIndex:r,rowPinned:s,columnId:a}=o,l={rowIndex:r,rowPinned:s},u=Ao(this.beans,l);u?.displayed&&u.setDataValue(a,t(o),n)}}finally{i?.endDeferred()}}processRange(e){let t;const n=this.beans.rangeSvc;n.removeAllCellRanges(!0),e.forEach((i,o)=>{if(!i)return;const r=i.startRow,s=i.endRow;o===e.length-1&&(t={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:i.startColumn.getColId()},this.setLastFocusedCell(t));const a={rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:i.startColumn,columns:i.columns};n.addCellRange(a)})}processCell(e){const t=e[0],{rowIndex:n,rowPinned:i}=t,o={rowIndex:n,rowPinned:i},r=Ao(this.beans,o),s={rowPinned:t.rowPinned,rowIndex:r.rowIndex,columnId:t.columnId};this.setLastFocusedCell(s)}setLastFocusedCell(e){const{rowIndex:t,columnId:n,rowPinned:i}=e,{colModel:o,focusSvc:r,rangeSvc:s}=this.beans,a=o.getCol(n);if(!a)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(a);const u={rowIndex:t,column:a,rowPinned:i};r.setFocusedCell({...u,forceBrowserFocus:!0}),s?.setRangeToCell(u)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new hl(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const n=new hl(this.cellValueChanges);this.pushActionsToUndoStack(n)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new hl(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new dv(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:n}=this.beans;t&&rr(n)?e=new dv(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):e=new hl(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>this.startBigChange("batchEditing"),batchEditingStopped:({changes:e})=>this.stopBigChange("batchEditing",e),bulkEditingStarted:()=>this.startBigChange("bulkEditing"),bulkEditingStopped:({changes:e})=>this.stopBigChange("bulkEditing",e)})}startBigChange(e){this.updateBigChange(e,!0)}updateBigChange(e,t){e==="bulkEditing"?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if(e==="bulkEditing"&&!this.bulkEditing||e==="batchEditing"&&!this.batchEditing||(this.updateBigChange(e,!1),t?.length===0))return;const n=new hl(t??[]);this.pushActionsToUndoStack(n),this.cellValueChanges=[]}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},m4=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) .ag-text-area-input{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}",v4={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},C4=class extends Jd{constructor(){super(v4,[Lm]),this.eEditor=ge}initialiseEditor(e){this.agSetEditValue(e.value),this.eEditor.getInputElement().setAttribute("tabindex","-1"),this.addManagedListeners(this.eEditor,{fieldValueChanged:n=>this.setAriaLabel(n.selected)})}agSetEditValue(e){this.params.value=e;const t=e??void 0;this.eEditor.setValue(t,!0),this.setAriaLabel(t)}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),n=Ed(t,e),i=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${i} (${n})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,n=this.getValue();return t?t({value:n,internalErrors:null,cellEditorParams:e}):null}},ur=class extends Zs{constructor(e,t="ag-text-field",n="text"){super(e,t,n)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const n=this.eInput;return n.value!==e&&(n.value=Pe(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}setCustomValidity(e){const t=this.eInput,n=e.length>0;t.setCustomValidity(e),n&&t.reportValidity(),vp(t,n)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=n=>{PR(n)&&n.key&&!e.test(n.key)&&n.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:n=>{n.clipboardData?.getData("text")?.split("").some(o=>!e.test(o))&&n.preventDefault()}})}},Th={selector:"AG-INPUT-TEXT-FIELD",component:ur},w4=class extends ur{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=Kr();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){Lt(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?qn(e??null,!!this.includeTime)??void 0:e;return this.min===t?this:(this.min=t,oi(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?qn(e??null,!!this.includeTime)??void 0:e;return this.max===t?this:(this.max=t,oi(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,oi(this.eInput,"step",e),this)}setIncludeTime(e){return this.includeTime===e?this:(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1),this)}getDate(){if(this.eInput.validity.valid)return Qn(this.getValue())??void 0}setDate(e,t){this.setValue(qn(e??null,this.includeTime),t)}},DF={selector:"AG-INPUT-DATE-FIELD",component:w4},Ah=class extends Jd{constructor(e){super(),this.cellEditorInput=e,this.eEditor=ge}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:n}=this,{cellStartedEdit:i,eventKey:o,suppressPreventDefault:r}=e;n.getInputElement().setAttribute("title",""),t.init(n,e);let s,a=!0;i?(this.focusAfterAttached=!0,o===K.BACKSPACE||o===K.DELETE?s="":o&&o.length===1?r?a=!1:s=o:(s=t.getStartValue(),o!==K.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,s=t.getStartValue()),a&&s!=null&&n.setStartValue(s),this.addGuiEventListener("keydown",l=>{const{key:u}=l;(u===K.PAGE_UP||u===K.PAGE_DOWN)&&l.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;Kr()||t.getFocusableElement().focus();const n=t.getInputElement();this.highlightAllOnFocus?n.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()}getValue(){return this.cellEditorInput.getValue()}agSetEditValue(e){this.params.value=e;const t=this.cellEditorInput.getStartValue();this.eEditor.setStartValue(t??null)}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},b4={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},y4=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return b4}getAgComponents(){return[DF]}init(e,t){this.eEditor=e,this.params=t;const{min:n,max:i,step:o,colDef:r}=t;n!=null&&e.setMin(n),i!=null&&e.setMax(i),o!=null&&e.setStep(o),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(r.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const t=this.eEditor.getInputElement().valueAsDate,{params:n}=this,{min:i,max:o,getValidationErrors:r}=n;let s=[];const a=this.getLocaleTextFunc();if(t instanceof Date&&!isNaN(t.getTime())){if(i){const l=i instanceof Date?i:new Date(i);if(t<l){const u=l.toLocaleDateString();s.push(a("minDateValidation",`Date must be after ${u}`,[u]))}}if(o){const l=o instanceof Date?o:new Date(o);if(t>l){const u=l.toLocaleDateString();s.push(a("maxDateValidation",`Date must be before ${u}`,[u]))}}}return s.length||(s=null),r?r({value:t,cellEditorParams:n,internalErrors:s}):s}getValue(){const{eEditor:e,params:t}=this,n=e.getDate();return!Pe(n)&&!Pe(t.value)?t.value:n??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return qn(e,this.includeTime??!1)}},S4=class extends Ah{constructor(){super(new y4(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},R4={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},x4=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return R4}getAgComponents(){return[DF]}init(e,t){this.eEditor=e,this.params=t;const{min:n,max:i,step:o,colDef:r}=t;n!=null&&e.setMin(n),i!=null&&e.setMax(i),o!=null&&e.setStep(o),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(r.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const{eEditor:e,params:t}=this,n=e.getInputElement().value,i=this.formatDate(this.parseDate(n??void 0)),{min:o,max:r,getValidationErrors:s}=t;let a=[];if(i){const l=new Date(i),u=this.getLocaleTextFunc();if(o){const h=new Date(o);if(l<h){const f=h.toLocaleDateString();a.push(u("minDateValidation",`Date must be after ${f}`,[f]))}}if(r){const h=new Date(r);if(l>h){const f=h.toLocaleDateString();a.push(u("maxDateValidation",`Date must be before ${f}`,[f]))}}}return a.length||(a=null),s?s({value:this.getValue(),cellEditorParams:t,internalErrors:a}):a}getValue(){const{params:e,eEditor:t}=this,n=this.formatDate(t.getDate());return!Pe(n)&&!Pe(e.value)?e.value:e.parseValue(n??"")}getStartValue(){return qn(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):Qn(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):qn(e??null,this.includeTime??!1)??void 0}},F4=class extends Ah{constructor(){super(new x4(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},P4=class extends Zs{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const n=super.setValue(e,t);return this.eInput.value=e,n}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},E4={selector:"AG-INPUT-TEXT-AREA",component:P4},D4={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},T4=class extends Jd{constructor(){super(D4,[E4]),this.eEditor=ge}initialiseEditor(e){const{eEditor:t}=this,{cellStartedEdit:n,eventKey:i,maxLength:o,cols:r,rows:s}=e;this.focusAfterAttached=n,t.getInputElement().setAttribute("title",""),t.setMaxLength(o||200).setCols(r||60).setRows(s||10);let a;n?(this.focusAfterAttached=!0,i===K.BACKSPACE||i===K.DELETE?a="":i&&i.length===1?a=i:(a=this.getStartValue(e),i!==K.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,a=this.getStartValue(e)),a!=null&&t.setValue(a,!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){const{value:t}=e;return t?.toString()??t}agSetEditValue(e){this.params.value=e;const t=this.getStartValue(this.params);this.eEditor.setValue(t??"",!0)}onKeyDown(e){const t=e.key;(t===K.LEFT||t===K.UP||t===K.RIGHT||t===K.DOWN||e.shiftKey&&t===K.ENTER)&&e.stopPropagation()}afterGuiAttached(){const{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:n}=this,i=this.getLocaleTextFunc();e.setInputAriaLabel(i("ariaInputEditor","Input Editor")),t&&(e.getFocusableElement().focus(),n&&e.getInputElement().select())}getValue(){const{eEditor:e,params:t}=this,{value:n}=t,i=e.getValue();return!Pe(i)&&!Pe(n)?n:t.parseValue(i)}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:n}=e,i=this.getLocaleTextFunc(),o=this.getValue();let r=[];return typeof o=="string"&&t!=null&&o.length>t&&r.push(i("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),r.length||(r=null),n?n({value:o,internalErrors:r,cellEditorParams:e}):r}},hv=class extends ur{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const r=Number.parseFloat(e.value),s=isNaN(r)?"":this.normalizeValue(r.toString());this.value!==s&&this.setValue(s)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:n,max:i,step:o}=this.config;typeof t=="number"&&this.setPrecision(t),typeof n=="number"&&this.setMin(n),typeof i=="number"&&this.setMax(i),typeof o=="number"&&this.setStep(o)}onWheel(e){Lt(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return e===""?"":(this.precision!=null&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const n=this.precision;if(n==null)return e;if(t){const o=Number.parseFloat(e).toFixed(n);return Number.parseFloat(o).toString()}const i=String(e).split(".");if(i.length>1){if(i[1].length<=n)return e;if(n>0)return`${i[0]}.${i[1].slice(0,n)}`}return i[0]}setMin(e){return this.min===e?this:(this.min=e,oi(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,oi(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,oi(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(n=>super.setValue(n,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,n){if(Pe(n)){let i=this.isScientificNotation(n);if(i&&this.eInput.validity.valid)return e(n);if(!i){n=this.adjustPrecision(n);const o=this.normalizeValue(n);i=n!=o}if(i)return t(n)}return e(n)}getValue(e=!1){const t=this.eInput;if(!t.validity.valid&&!e)return;const n=t.value;return this.isScientificNotation(n)?this.adjustPrecision(n,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},A4={selector:"AG-INPUT-NUMBER-FIELD",component:hv},I4={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},M4=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return I4}getAgComponents(){return[A4]}init(e,t){this.eEditor=e,this.params=t;const{max:n,min:i,precision:o,step:r}=t;n!=null&&e.setMax(n),i!=null&&e.setMin(i),o!=null&&e.setPrecision(o),r!=null&&e.setStep(r);const s=e.getInputElement();t.preventStepping?e.addManagedElementListeners(s,{keydown:this.preventStepping}):t.showStepperButtons&&s.classList.add("ag-number-field-input-stepper")}getValidationErrors(){const{params:e}=this,{min:t,max:n,getValidationErrors:i}=e,r=this.eEditor.getInputElement().valueAsNumber,s=this.getLocaleTextFunc();let a=[];return typeof r=="number"&&(t!=null&&r<t&&a.push(s("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),n!=null&&r>n&&a.push(s("maxValueValidation",`Must be less than or equal to ${n}.`,[String(n)]))),a.length||(a=null),i?i({value:r,cellEditorParams:e,internalErrors:a}):a}preventStepping(e){(e.key===K.UP||e.key===K.DOWN)&&e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,n=e.getValue();if(!Pe(n)&&!Pe(t.value))return t.value;let i=t.parseValue(n);if(i==null)return i;if(typeof i=="string"){if(i==="")return null;i=Number(i)}return isNaN(i)?null:i}getStartValue(){return this.params.value}setCaret(){Kr()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},k4=class extends Ah{constructor(){super(new M4(()=>this.getLocaleTextFunc()))}},L4=".ag-list-item{align-items:center;display:flex;height:var(--ag-list-item-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}",O4="ag-active-item",_4=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",cls:`ag-list-item-text ag-${e}-list-item-text`,ref:"eText",children:t}]}),N4=class extends Xa{constructor(e,t,n){super(_4(e,t)),this.label=t,this.value=n,this.eText=ge}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(O4,e),GS(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const n=this.getGui();wL(n,e),CL(n,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>qS(this.eText)},t=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("highlightTooltipFeature",!1,e,this));t&&(this.tooltipFeature=t)}addEventListeners(){const e=this.getParentComponent();e&&(this.addGuiEventListener("mouseover",()=>{e.highlightItem(this)}),this.addGuiEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),e.setValue(this.value)}))}},B4=class extends Xa{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(L4)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case K.ENTER:if(!this.highlightedItem)this.setValue(this.getValue());else{const n=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(n)}break;case K.DOWN:case K.UP:e.preventDefault(),this.navigate(t);break;case K.PAGE_DOWN:case K.PAGE_UP:case K.PAGE_HOME:case K.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){const{value:t,text:n}=e,i=n??t;return this.options.push({value:t,text:i}),this.renderOption(t,i),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();Rn(this.getGui()),this.listItems=[],this.refreshAriaRole()}updateOptions(e){const t=this.options!==e;return t&&(this.clearOptions(),this.addOptions(e)),t}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const n=this.options.findIndex(i=>i.value===e);if(n!==-1){const i=this.options[n];this.value=i.value,this.displayValue=i.text,this.highlightItem(this.listItems[n]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!Li(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const n=this.getGui(),{scrollTop:i,clientHeight:o}=n,{offsetTop:r,offsetHeight:s}=t;(r+s>i+o||r<i)&&t.scrollIntoView({block:"nearest"})}hideItemTooltip(){this.highlightedItem?.tooltipFeature?.attemptToHideTooltip()}destroy(){this.hideItemTooltip(),super.destroy()}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}clearHighlighted(){this.highlightedItem?.setHighlighted(!1),this.highlightedItem=null}renderOption(e,t){const n=new N4(this.cssIdentifier,t,e);n.setParentComponent(this);const i=this.createManagedBean(n);this.listItems.push(i),this.getGui().appendChild(i.getGui())}navigate(e){const t=e===K.DOWN;let n;const{listItems:i,highlightedItem:o}=this;if(!o)n=t?i[0]:Tt(i);else{let s=i.indexOf(o)+(t?1:-1);s=Math.min(Math.max(s,0),i.length-1),n=i[s]}this.highlightItem(n)}navigateToPage(e){const{listItems:t,highlightedItem:n}=this;if(!n||t.length===0)return;const i=t.indexOf(n),o=this.options.length-1,r=t[0].getHeight(),s=Math.floor(this.getGui().clientHeight/r);let a=-1;e===K.PAGE_HOME?a=0:e===K.PAGE_END?a=o:e===K.PAGE_DOWN?a=Math.min(i+s,o):e===K.PAGE_UP&&(a=Math.max(i-s,0)),a!==-1&&this.highlightItem(t[a])}refreshAriaRole(){Br(this.getGui(),this.options.length===0?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((n,i)=>{n.setIndex(i+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},H4=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}.ag-picker-field-wrapper:where(.ag-picker-has-focus),.ag-picker-field-wrapper:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}.ag-picker-field-wrapper:disabled{opacity:.5}",G4={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},V4=class extends ax{constructor(e){if(super(e,e?.template||G4,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=ge,this.eWrapper=ge,this.eDisplayField=ge,this.eIcon=ge,this.registerCSS(H4),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:n,variableWidth:i,minPickerWidth:o,maxPickerWidth:r}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!i,n!=null&&this.setPickerMaxHeight(n),o!=null&&this.setPickerMinWidth(o),r!=null&&this.setPickerMaxWidth(r)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:n,inputWidth:i}=this.config;if(n){const o=this.beans.iconSvc.createIconNoSpan(n);o&&this.eIcon.appendChild(o)}i!=null&&this.setInputWidth(i)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),Cp(e,!1),this.ariaRole&&Br(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case K.UP:case K.DOWN:case K.ENTER:case K.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case K.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:n,pickerAriaLabelValue:i,modalPicker:o=!0},maxPickerHeight:r,minPickerWidth:s,maxPickerWidth:a,variableWidth:l,beans:u,eWrapper:h}=this,f={modal:o,eChild:e,closeOnEsc:!0,closedCallback:()=>{const w=gp(u);this.beforeHidePicker(),w&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(n,i),anchorToElement:h};e.style.position="absolute";const g=u.popupSvc,m=g.addPopup(f);l?(s&&(e.style.minWidth=s),e.style.width=yp(Dd(h)),a&&(e.style.maxWidth=a)):Id(e,a??Dd(h));const v=r??`${wp(g.getPopupParent())}px`;return e.style.setProperty("max-height",v),this.alignPickerToComponent(),m.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:n,gos:i},eWrapper:o,pickerComponent:r}=this,s=i.get("enableRtl")?"right":"left";n.positionPopupByComponent({type:t,eventSource:o,ePopup:r.getGui(),position:"under",alignSide:s,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();Cp(t,e);const n=this.eWrapper.classList;n.toggle("ag-picker-expanded",e),n.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return Id(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},W4=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}.ag-select:where(:not(.ag-cell-editor,.ag-label-align-top)){min-height:var(--ag-list-item-height)}:where(.ag-select){.ag-picker-field-wrapper{cursor:default;padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}:where(.ag-ltr) .ag-select-list-item{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-select-list-item{padding-right:var(--ag-spacing)}.ag-select-list-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",fv=class extends V4{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(W4)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:Cc(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:n}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),n&&t==null&&(this.eDisplayField.textContent=n),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new B4("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),n=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",n),DL(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:i=>{i?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}beforeHidePicker(){this.listComponent?.hideItemTooltip(),super.beforeHidePicker()}onKeyDown(e){const{key:t}=e;switch(t===K.TAB&&this.hidePicker(),t){case K.ENTER:case K.UP:case K.DOWN:case K.PAGE_UP:case K.PAGE_DOWN:case K.PAGE_HOME:case K.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case K.ESCAPE:super.onKeyDown(e);break;case K.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}updateOptions(e){return this.listComponent?.updateOptions(e)&&this.setValue(void 0,!0),this}setValue(e,t,n){const{listComponent:i,config:{placeholder:o},eDisplayField:r,tooltipFeature:s}=this;if(this.value===e||!i)return this;if(n||i.setValue(e,!0),i.getValue()===this.getValue())return this;let l=i.getDisplayValue();return l==null&&o&&(l=o),r.textContent=l,s?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},z4={selector:"AG-SELECT",component:fv},U4={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},$4=class extends Jd{constructor(){super(U4,[z4]),this.eEditor=ge,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:n,gos:i}=this,{values:o,value:r,eventKey:s}=e;if(Vt(o)){le(58);return}this.startedByEnter=s!=null?s===K.ENTER:!1;let a=!1;o.forEach(f=>{const g={value:f},m=n.formatValue(e.column,null,f),v=m!=null;g.text=v?m:f,t.addOption(g),a=a||r===f}),a?t.setValue(e.value??void 0,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:u,valueListMaxHeight:h}=e;l!=null&&t.setPickerGap(l),h!=null&&t.setPickerMaxHeight(h),u!=null&&t.setPickerMaxWidth(u),i.get("editType")!=="fullRow"&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}agSetEditValue(e){this.params.value=e,this.eEditor.setValue(e??void 0,!0)}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:n}=e,i=this.getValue();let o=[];if(t&&i!=null&&!t.includes(i)){const r=this.getLocaleTextFunc();o.push(r("invalidSelectionValidation","Invalid selection."))}else o=null;return n?n({value:i,internalErrors:o,cellEditorParams:e}):o}},j4={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},K4=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return j4}getAgComponents(){return[Th]}init(e,t){this.eEditor=e,this.params=t;const n=t.maxLength;n!=null&&e.setMaxLength(n)}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:n}=e,i=this.getValue(),o=this.getLocaleTextFunc();let r=[];return t!=null&&typeof i=="string"&&i.length>t&&r.push(o("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),r.length||(r=null),n?n({value:i,cellEditorParams:e,internalErrors:r}):r}getValue(){const{eEditor:e,params:t}=this,n=e.getValue();return!Pe(n)&&!Pe(t.value)?t.value:t.parseValue(n)}getStartValue(){const e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){Kr()&&this.eEditor.getInputElement().focus({preventScroll:!0});const e=this.eEditor,t=e.getValue(),n=Pe(t)&&t.length||0;n&&e.getInputElement().setSelectionRange(n,n)}},TF=class extends Ah{constructor(){super(new K4(()=>this.getLocaleTextFunc()))}};function q4(e){e.undoRedo?.undo("api")}function Q4(e){e.undoRedo?.redo("api")}function Y4(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})}function Z4(e){const t=e.editModelSvc?.getEditMap(),n=[];return t?.forEach((i,o)=>{const{rowIndex:r,rowPinned:s}=o;i.forEach((a,l)=>{const{editorValue:u,pendingValue:h,sourceValue:f,state:g}=a,m=lo(a);let v=u??h;v===pn&&(v=void 0);const w={newValue:v,oldValue:f,state:g,column:l,colId:l.getColId(),colKey:l.getColId(),rowIndex:r,rowPinned:s},b=g==="editing";(b||!b&&m)&&n.push(w)})}),n}function J4(e,t=!1){const{editSvc:n}=e;if(n?.isBatchEditing()){if(t)for(const i of e.editModelSvc?.getEditPositions()??[])i.state==="editing"&&n.revertSingleCellEdit(i);else Xr(e,{persist:!0});es(e,void 0,{cancel:t})}else n?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})}function X4(e,t){const n=pt(e,t);return!!e.editSvc?.isEditing(n)}function e6(e,t){const{key:n,colKey:i,rowIndex:o,rowPinned:r}=t,{editSvc:s,colModel:a}=e,l=a.getCol(i);if(!l){le(12,{colKey:i});return}const h=Ao(e,{rowIndex:o,rowPinned:r||null});if(!h){le(290,{rowIndex:o,rowPinned:r});return}if(!s?.isCellEditable({rowNode:h,column:l},"api"))return;r==null&&dF(e,o),uF(e,i),s?.startEditing({rowNode:h,column:l},{event:n?new KeyboardEvent("keydown",{key:n}):void 0,source:"api",editable:!0})}function t6(e){return e.editSvc?.validateEdit()||null}function n6(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function i6(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var o6={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},r6=class extends Xp{constructor(e){super(o6),this.params=e}postConstruct(){Ws(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,n=i=>{bm(this.gos,i,t.node,t.column,!0)||t.onKeyDown(i)};this.addManagedElementListeners(e,{keydown:n})}};function s6(e,{column:t},n,i,o="ui"){if(n instanceof KeyboardEvent&&(n.key===K.TAB||n.key===K.ENTER||n.key===K.F2||n.key===K.BACKSPACE&&i))return!0;if(n?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;const s=t?.getColDef(),a=a6(e.gos,s),l=n?.type;return l==="click"&&n?.detail===1&&a===1||l==="dblclick"&&n?.detail===2&&a===2?!0:o==="api"?!!i:!1}function a6(e,t){return e.get("suppressClickEdit")===!0?0:e.get("singleClickEdit")===!0||t?.singleClickEdit?1:2}function gv(e,t){return e.editModelSvc?.hasEdits(t,{withOpenEditor:!0})??!1}function pv(e,t){const n=t.column,i=t.rowNode,o=n.getColDef();if(!i)return gv(e,t);const r=o.editable;return i.group&&o.groupRowEditable!=null?e.rowGroupingEditValueSvc?.isGroupCellEditable(i,n)?!0:gv(e,t):n.isColumnFunc(i,r)?!0:gv(e,t)}function l6(e,t,n="ui"){const i=pv(e,t);if(i||n==="ui")return i;const{rowNode:o,column:r}=t;for(const s of e.colModel.getCols())if(s!==r&&pv(e,{rowNode:o,column:s}))return!0;return!1}var Ih=(e,t=!1)=>{if(e!==void 0)return lo(e)||t&&e.state==="editing"};function AF(e,t,n=!1){return Ih(e.editModelSvc?.getEdit(t),n)}var IF=(e,t,n)=>{if(e)for(let i=0,o=e.length;i<o;++i){const r=e[i];if(r.data&&(Ih(t?.getEdit({rowNode:r,column:n}))||Ih(t?.getEdit({rowNode:r.pinnedSibling,column:n})))||IF(r.childrenAfterGroup,t,n))return!0}};function MF(e,t){const{column:n,rowNode:i}=t;return e.gos.get("groupTotalRow")&&!i?.footer?!1:IF(i?.childrenAfterGroup,e.editModelSvc,n)}function kF(e,{rowNode:t,column:n}){if(t=t.pinnedSibling,!!t)return Ih(e.editModelSvc?.getEdit({rowNode:t,column:n}))}var c6=class extends X{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}setComp(e){this.cellComp=e,this.applyCellStyles()}applyCellStyles(){const{cellCtrl:e,editSvc:t,beans:n}=this;if(t?.isBatchEditing()&&t.isEditing()){const o=AF(n,e)||MF(n,e)||kF(n,e);this.applyBatchingStyle(o)}else this.applyBatchingStyle(!1);const i=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",i)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},u6=class extends X{constructor(e,t){super(),this.rowCtrl=e,this.beans=t,this.gos=t.gos,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}applyRowStyles(){const{rowCtrl:e,editModelSvc:t,beans:n}=this;let i=e.rowNode,o=t?.getEditRow(i);const r=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:i});if(!o&&i.pinnedSibling&&(i=i.pinnedSibling,o=t?.getEditRow(i)),o){const s=Array.from(o.keys()).some(a=>{const l={rowNode:i,column:a};return AF(n,l,!0)||MF(n,l)||kF(n,l)});this.applyStyle(r,s);return}this.applyStyle(r)}applyStyle(e=!1,t=!1){const n=!!this.editSvc?.isBatchEditing(),i=this.gos.get("editType")==="fullRow";this.rowCtrl?.forEachGui(void 0,({rowComp:o})=>{o.toggleCss("ag-row-editing",i&&t),o.toggleCss("ag-row-batch-edit",i&&t&&n),o.toggleCss("ag-row-inline-editing",t),o.toggleCss("ag-row-not-inline-editing",!t),o.toggleCss("ag-row-editing-invalid",i&&t&&e)})}},d6=({rowModel:e,pinnedRowModel:t,editModelSvc:n},i)=>{const o=new Set;e.forEachNode(r=>i.has(r)&&o.add(r)),t?.forEachPinnedRow("top",r=>i.has(r)&&o.add(r)),t?.forEachPinnedRow("bottom",r=>i.has(r)&&o.add(r));for(const r of i)o.has(r)||n.removeEdits({rowNode:r});return o},h6=({editModelSvc:e},t,n)=>{for(const i of t)e?.getEditRow(i)?.forEach((o,r)=>!n.has(r)&&e.removeEdits({rowNode:i,column:r}))},f6=e=>()=>{const t=new Set(e.colModel.getCols()),n=e.editModelSvc.getEditMap(!0),i=new Set(n.keys());h6(e,d6(e,i),t)},g6=new Set(["undo","redo","paste","bulk","rangeSvc"]),p6=new Set(["ui","api"]),LF={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},m6=new Set(Object.keys(LF)),v6=new Set(["paste","rangeSvc","cellClear","redo","undo"]),mv={cancel:!0,source:"api"},C6={cancel:!1,source:"api"},ra={checkSiblings:!0},ns={force:!0,suppressFlash:!0},w6={force:!0},b6=class extends X{constructor(){super(...arguments),this.beanName="editSvc",this.committing=!1,this.batch=!1,this.batchStartDispatched=!1,this.stopping=!1,this.rangeSelectionWhileEditing=0}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:i})=>{this.stopEditing(void 0,mv),this.createStrategy(i)});const t=f6(e),n=()=>{const i=this.model.getCellValidationModel().getCellValidationMap().size>0,o=this.model.getRowValidationModel().getRowValidationMap().size>0;return i||o?this.stopEditing(void 0,mv):this.isEditing()&&(this.batch?es(e,this.model.getEditPositions()):this.stopEditing(void 0,C6)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:n,filterChanged:n,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}startBatchEditing(){this.batch||(this.batch=!0,this.batchStartDispatched=!1,this.stopEditing(void 0,mv))}stopBatchEditing(e){this.batch&&(e&&this.stopEditing(void 0,e),this.batchStartDispatched&&this.dispatchBatchStopped(new Map,!1),this.batch=!1,this.batchStartDispatched=!1)}ensureBatchStarted(){!this.batch||this.batchStartDispatched||(this.batchStartDispatched=!0,this.dispatchBatchEvent("batchEditingStarted",new Map))}createStrategy(e){const{beans:t,gos:n,strategy:i}=this,o=OF(n,e);if(i){if(i.beanName===o)return i;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(o,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,n,i="ui"){const o=s6(this.beans,e,t,n,i);return o&&(this.strategy??(this.strategy=this.createStrategy())),o}shouldStopEditing(e,t,n="ui"){return this.strategy?.shouldStop(e,t,n)??null}shouldCancelEditing(e,t,n="ui"){return this.strategy?.shouldCancel(e,t,n)??null}validateEdit(){return n3(this.beans)}isEditing(e,t){return this.model.hasEdits(e??void 0,t??ra)}isRowEditing(e,t){return!!e&&this.model.hasRowEdits(e,t)}enableRangeSelectionWhileEditing(){this.beans.rangeSvc&&this.gos.get("cellSelection")&&this.rangeSelectionWhileEditing++}disableRangeSelectionWhileEditing(){this.rangeSelectionWhileEditing=Math.max(0,this.rangeSelectionWhileEditing-1)}isRangeSelectionEnabledWhileEditing(){return this.rangeSelectionWhileEditing>0}startEditing(e,t){const{startedEdit:n=!0,event:i=null,source:o="ui",ignoreEventKey:r=!1,silent:s}=t;if(this.strategy??(this.strategy=this.createStrategy()),!(t.editable??this.isCellEditable(e,"api")))return;const l=pt(this.beans,e);if(l&&!l.comp){t.editable=void 0,l.onCompAttachedFuncs.push(()=>this.startEditing(e,t));return}const u=this.shouldStartEditing(e,i,n,o);if(u===!1&&o!=="api"){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,o)&&!t.continueEditing&&this.stopEditing(void 0,{source:o}),u&&this.ensureBatchStarted(),this.strategy.start({position:e,event:i,source:o,ignoreEventKey:r,startedEdit:n,silent:s})}stopEditing(e,t){const n=this.prepareStopContext(e,t);if(!n)return!1;this.stopping=!0;let i=!1,{edits:o}=n;try{const r=this.processStopRequest(n);return i||(i=r.res),o=r.edits,this.finishStopEditing({...n,edits:o,params:t,position:e,res:i}),i}finally{this.rangeSelectionWhileEditing=0,this.stopping=!1}}prepareStopContext(e,t){const{event:n=null,cancel:i=!1,source:o="ui",forceCancel:r=!1,forceStop:s=!1,commit:a=!1}=t||{};if(m6.has(o)&&this.batch)return e?.rowNode&&e?.column&&this.bulkRefreshCell(e),null;const l=this.committing?LF[o]:o;if(!(this.committing||this.isEditing(e)||this.batch&&this.model.hasEdits(e,ra))||!this.strategy||this.stopping)return null;const h=pt(this.beans,e);h&&(h.onEditorAttachedFuncs=[]);const f=!i&&(!!this.shouldStopEditing(e,n,l)||(this.committing||o==="paste")&&!this.batch)||s,g=i&&!!this.shouldCancelEditing(e,n,l)||r;return{cancel:i,cellCtrl:h,edits:this.model.getEditMap(!0),event:n??null,forceCancel:r,forceStop:s,commit:a,position:e,source:o,treatAsSource:l,willCancel:g,willStop:f}}processStopRequest(e){const{event:t,position:n,willCancel:i,willStop:o}=e;return o||i?this.handleStopOrCancel(e):this.shouldHandleMidBatchKey(t,n)?{res:!1,edits:this.handleMidBatchKey(t,n,e)}:(Xr(this.beans,{persist:!0}),this.batch&&this.strategy?.cleanupEditors(n),{res:!1,edits:this.model.getEditMap()})}handleStopOrCancel(e){const{beans:t,model:n}=this,{cancel:i,commit:o,edits:r,event:s,source:a,willCancel:l,willStop:u}=e,h=!this.batch||!l;Xr(t,{persist:h,isCancelling:l||i,isStopping:u});const f=n.getEditMap(),m=!l&&(!this.batch||o)?this.processEdits(f,a):[];i?this.strategy?.stopCancelled(e.forceCancel):this.strategy?.stopCommitted(s,o),this.clearValidationIfNoOpenEditors();for(const v of m)n.clearEditValue(v);this.bulkRefreshMap(r);for(const v of n.getEditPositions(f)){const w=pt(t,v),b=lo(v);w?.refreshCell({force:!0,suppressFlash:!b})}return{res:u,edits:f}}shouldHandleMidBatchKey(e,t){return e instanceof KeyboardEvent&&this.batch&&!!this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:!0})}handleMidBatchKey(e,t,n){const{beans:i,model:o}=this,{cellCtrl:r,edits:s}=n,{key:a}=e,l=a===K.ENTER,u=a===K.ESCAPE,h=a===K.TAB;if(l||h||u){if(l||h)Xr(i,{persist:!0});else if(u&&r){const{rowNode:f,column:g}=r;if(this.batch&&f&&g){const m={rowNode:f,column:g};es(i,[m],{silent:!0}),this.model.stop(m,!0,!0),pt(i,m)?.refreshCell(ns)}else this.revertSingleCellEdit(r)}return this.batch?this.strategy?.cleanupEditors():es(i,o.getEditPositions(),{event:e,cancel:u}),e.preventDefault(),this.bulkRefreshMap(s,{suppressFlash:!0}),o.getEditMap()}return s}finishStopEditing({cellCtrl:e,edits:t,params:n,position:i,res:o,commit:r,forceCancel:s,willCancel:a,willStop:l}){const u=this.beans;o&&i&&(!this.batch||r)&&this.model.removeEdits(i),this.navigateAfterEdit(n,e?.cellPosition),Bc(u),this.clearValidationIfNoOpenEditors();const{rowRenderer:h,formula:f}=u;if(a&&h.refreshRows({rowNodes:Array.from(t.keys())}),this.batch){f?f.refreshFormulas(!0):h.refreshRows({suppressFlash:!0,force:!0});const g=l&&r;(g||a&&s)&&this.dispatchBatchStopped(t,g)}}dispatchBatchStopped(e,t){let n;t&&(n=q5(e),n.size>0&&this.ensureBatchStarted()),this.batchStartDispatched&&(this.batchStartDispatched=!1,this.dispatchBatchEvent("batchEditingStopped",n??new Map))}clearValidationIfNoOpenEditors(){this.model.hasEdits(void 0,{withOpenEditor:!0})||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap())}navigateAfterEdit(e,t){if(!e||!t)return;const{event:n,suppressNavigateAfterEdit:i}=e;if(!(n instanceof KeyboardEvent)||i)return;const{key:r,shiftKey:s}=n,a=this.gos.get("enterNavigatesVerticallyAfterEdit");if(r!==K.ENTER||!a)return;const l=s?K.UP:K.DOWN;this.beans.navigation?.navigateToNextCell(null,l,t,!1)}processEdits(e,t){const n=Array.from(e.keys()),i=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,o=[],{changeDetectionSvc:r}=this.beans;r?.beginDeferred();try{for(const s of n){const a=e.get(s);for(const l of a.keys()){const u=a.get(l),h={rowNode:s,column:l};if(lo(u)&&!i){const f=pt(this.beans,h);this.setNodeDataValue(s,l,u.pendingValue,f,t)||o.push(h)}}}}finally{r?.endDeferred()}return o}setNodeDataValue(e,t,n,i,o="edit"){const r=p6.has(o)?"edit":o;i&&(i.suppressRefreshCell=!0),this.committing=!0;try{return e.setDataValue(t,n,r)}finally{this.committing=!1,i&&(i.suppressRefreshCell=!1)}}syncEditAfterCommit(e,t){const n=this.model.getEdit(e);n&&n.state!=="editing"&&(t?this.beans.editModelSvc?.setEdit(e,{sourceValue:n.pendingValue}):this.model.clearEditValue(e))}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefreshMap(e);let n=ns;t?.forceRefreshOfEditCellsOnly&&(n={...y6(e),...ns}),this.beans.rowRenderer.refreshCells(n)}dispatchEditValuesChanged({rowNode:e,column:t},n={}){if(!e||!t||!n)return;const{pendingValue:i,sourceValue:o}=n,{rowIndex:r,rowPinned:s,data:a}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:r,rowPinned:s,column:t,source:"api",data:a,newValue:i,oldValue:o,value:i,colDef:t.getColDef()})}bulkRefreshCell(e,t){en(this.gos,this.beans.rowModel)&&this.refCell(e,this.model.getEdit(e),t)}bulkRefreshMap(e,t){en(this.gos,this.beans.rowModel)&&e.forEach((n,i)=>{for(const o of n.keys())this.refCell({rowNode:i,column:o},n.get(o),t)})}refCell({rowNode:e,column:t},n,i={}){const{beans:o,gos:r}=this,s=new Set([e]),a=new Set,l=e.pinnedSibling;l&&s.add(l);const u=e.sibling;u&&a.add(u);let h=e.parent;for(;h;)h.sibling?.footer&&r.get("groupTotalRow")||!h.parent&&h.sibling&&r.get("grandTotalRow")?a.add(h.sibling):a.add(h),h=h.parent;for(const f of s)this.dispatchEditValuesChanged({rowNode:f,column:t},n);for(const f of s)pt(o,{rowNode:f,column:t})?.refreshCell(i);for(const f of a){const g=pt(o,{rowNode:f,column:t});g&&(g.refreshCell(i),!i.force&&this.batch&&g.editStyleFeature?.applyCellStyles?.())}}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{gos:n,beans:i}=this,o=e.rowNode;if(o.group&&e.column.getColDef().groupRowEditable==null){if(n.get("treeData")){if(!o.data&&!n.get("enableGroupEdit"))return!1}else if(!n.get("enableGroupEdit"))return!1}const r=OF(n)==="fullRow"?l6(i,e,t):pv(i,e);return r&&(this.strategy??(this.strategy=this.createStrategy())),r}cellEditingInvalidCommitBlocks(){return this.gos.get("invalidEditValueMode")==="block"}checkNavWithValidation(e,t,n=!0){if(this.hasValidationErrors(e)){const i=pt(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),n&&(i&&!i.hasBrowserFocus()&&i.focusCell(),i?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(i&&this.revertSingleCellEdit(i),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const n=pt(this.beans,e);n?.comp?.getCellEditor()&&(es(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),ta(this.beans,e,{silent:!0}),ts(this.beans),n?.refreshCell(ns),t&&(n?.focusCell(),n?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){ts(this.beans);const t=pt(this.beans,e);t&&(t.refreshCell(ns),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let n=!1;return e?.rowNode?(n||(n=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(n||(n=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(n||(n=this.model.getCellValidationModel().getCellValidationMap().size>0),n||(n=this.model.getRowValidationModel().getRowValidationMap().size>0)),n}moveToNextCell(e,t,n,i="ui"){let o;const r=this.isEditing(),s=r&&this.checkNavWithValidation(void 0,n)==="block-stop";return e instanceof ul&&r&&(o=this.strategy?.moveToNextEditingCell(e,t,n,i,s)),o===null||(o=o||!!this.beans.focusSvc.focusedHeader,o===!1&&!s&&this.stopEditing()),o}getPendingEditValue(e,t,n){if(n==="data"||n==="batch"&&!this.batch)return;const i=this.model.getEdit({rowNode:e,column:t},ra);if(!i||this.stopping&&!this.batch&&!i.editorState?.cellStartedEditing)return;if(n==="edit"){const r=i.editorValue;if(r!=null&&r!==pn)return r}const o=i.pendingValue;if(o!==pn)return o}getCellDataValue(e){const t=this.model.getEdit(e,ra);if(t){const n=t.pendingValue;if(n!==pn)return n;const i=t.sourceValue;if(i!=null)return i}return this.valueSvc.getValue(e.column,e.rowNode,"data")}addStopEditingWhenGridLosesFocus(e){$5(this,this.beans,e)}createPopupEditorWrapper(e){return new r6(e)}batchResetToSourceValue(e){if(!this.batch)return!1;const t=this.model.getEdit(e);if(!t)return!1;const{pendingValue:n,sourceValue:i,state:o}=t;return n===i||o==="editing"?!1:(this.dispatchEditValuesChanged(e,{...t,pendingValue:i}),this.beans.editModelSvc?.removeEdits(e),pt(this.beans,e)?.refreshCell(ns),!0)}setDataValue(e,t,n){try{const i=this.batch,o=this.isEditing(i?void 0:e);if((!o||this.committing)&&!i&&!v6.has(n)||!o&&!i&&n==="paste"||n==="batch"&&!i)return;if(n==="edit"){if(o&&this.applyEditorValue(e,t))return!0;if(!i)return}if(this.strategy??(this.strategy=this.createStrategy()),n==="batch"||n==="edit")return this.applyDirectValue(e,t,n);const r=this.beans;let s;if(i?s="ui":this.committing?s=n??"api":s="api",!n||g6.has(n))return this.applyDirectValue(e,t,n);const a=this.applyExistingEdit(e,t,n,s);return a!==void 0?a:(ll(r,e,t,n,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:s,suppressNavigateAfterEdit:!0}),!0)}finally{this.committing=!1}}applyExistingEdit(e,t,n,i){const o=this.model.getEdit(e);if(o)return o.pendingValue===t?!1:o.sourceValue!==t?(ll(this.beans,e,t,n,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:i,suppressNavigateAfterEdit:!0}),!0):(this.beans.editModelSvc?.removeEdits(e),this.ensureBatchStarted(),this.dispatchEditValuesChanged(e,{...o,pendingValue:t}),!0)}applyEditorValue(e,t){const n=this.beans,i=pt(n,e),o=i?.comp?.getCellEditor();return!i||!o?!1:(ll(n,e,t,"edit",void 0,{persist:!0}),i.editStyleFeature?.applyCellStyles?.(),"agSetEditValue"in o?(o.agSetEditValue(t),!0):o.refresh&&i.editCompDetails?(o.refresh({...i.editCompDetails.params,value:t}),!0):(i.hasBrowserFocus()&&i.onEditorAttachedFuncs.push(()=>{const s=pt(this.beans,e);s?.focusCell(!0),s?.comp?.getCellEditor()?.focusIn?.()}),es(n,[e],{silent:!0,cancel:!0}),ta(n,e,{silent:!0}),ts(n),pt(n,e)?.refreshCell(ns),!0))}applyDirectValue(e,t,n){const i=this.beans;if(this.batch){if(n==="batch"&&pt(i,e)?.comp?.getCellEditor()){const{editModelSvc:s,valueSvc:a}=i,{rowNode:l,column:u}=e;s?.getEdit(e)?.sourceValue===void 0&&s?.setEdit(e,{sourceValue:a.getValue(u,l,"data")}),s?.setEdit(e,{pendingValue:t})}else ll(i,e,t,n,void 0,{persist:!0}),n!=="batch"&&this.cleanupEditors();return Bc(i),this.ensureBatchStarted(),this.bulkRefreshCell(e),!0}ll(i,e,t,n,void 0,{persist:!0});const o=pt(i,e),r=this.setNodeDataValue(e.rowNode,e.column,t,o,n);return this.syncEditAfterCommit(e,r),Bc(i),pt(i,e)?.refreshCell(r?w6:ns),r}handleColDefChanged(e){Y5(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){const{model:n}=this;if(!this.batch||!n.hasRowEdits(e.rowNode,ra))return;const{rowNode:o}=e,{compDetails:r,valueToDisplay:s}=t;if(r){const{params:a}=r;return a.data=n.getEditRowDataValue(o,ra),{compDetails:r}}return{valueToDisplay:s}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,n,i){this.strategy?.dispatchCellEvent(e,t,n,i)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return Ue(this.gos,{type:e,...e==="batchEditingStopped"?{changes:this.toEventChangeList(t)}:{}})}toEventChangeList(e){return this.model.getEditPositions(e).map(t=>({rowIndex:t.rowNode.rowIndex,rowPinned:t.rowNode.rowPinned,columnId:t.column.getColId(),newValue:t.pendingValue,oldValue:t.sourceValue}))}applyBulkEdit({rowNode:e,column:t},n){if(!n||n.length===0)return;const{beans:i,rangeSvc:o,valueSvc:r}=this,{formula:s}=i;Xr(i,{persist:!0});const a=this.model.getEditMap(!0);let l=a.get(e)?.get(t)?.pendingValue,u=!1;this.batch||(this.eventSvc.dispatchEvent({type:"bulkEditingStarted"}),u=!0);const h=s?.isFormula(l)??!1;n.forEach(g=>{const m=g.columns.some(v=>v?.isAllowFormula());if(o?.forEachRowInRange(g,v=>{const w=Ao(i,v);if(w===void 0)return;const b=a.get(w)??new Map;let y=l;for(const R of g.columns){if(!R)continue;const S=!!h&&R.isAllowFormula();if(this.isCellEditable({rowNode:w,column:R},"api")){const P=r.getValue(R,w,"data",!0);let F=r.parseValue(R,w??null,y,P);Number.isNaN(F)&&(F=null),b.set(R,{editorValue:void 0,pendingValue:F,sourceValue:P,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}S&&(y=s?.updateFormulaByOffset({value:y,columnDelta:1}))}b.size>0&&a.set(w,b),h&&m&&(l=s?.updateFormulaByOffset({value:l,rowDelta:1}))}),this.setEditMap(a),this.batch){this.cleanupEditors(),Bc(i),this.ensureBatchStarted();return}this.committing=!0;try{this.stopEditing(void 0,{source:"bulk"})}finally{this.committing=!1,u&&this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(a)})}});const f=pt(i,{rowNode:e,column:t});f&&f.focusCell(!0)}createCellStyleFeature(e){return new c6(e,this.beans)}createRowStyleFeature(e){return new u6(e,this.beans)}setEditingCells(e,t){const{beans:n}=this,{colModel:i,valueSvc:o}=n,r=new Map;for(let{colId:s,column:a,colKey:l,rowIndex:u,rowPinned:h,newValue:f,state:g}of e){const m=s?i.getCol(s):l?i.getCol(l):a;if(!m)continue;const v=Ao(n,{rowIndex:u,rowPinned:h});if(!v)continue;const w=o.getValue(m,v,"data",!0);if(!t?.forceRefreshOfEditCellsOnly&&!lo({pendingValue:f,sourceValue:w})&&g!=="editing")continue;let b=r.get(v);b||(b=new Map,r.set(v,b)),f===void 0&&(f=pn),b.set(m,{editorValue:void 0,pendingValue:f,sourceValue:w,state:g??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(r,t)}onCellFocused(e){const t=pt(this.beans,e);if(!t||!this.isEditing(t,ra))return;const n=this.model.getEdit(t);if(!n||!lo(n))return;const o=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(o,"pendingChange")}allowedFocusTargetOnValidation(e){return pt(this.beans,e)}};function y6(e){return{rowNodes:e?Array.from(e.keys()):void 0,columns:e?[...new Set(Array.from(e.values()).flatMap(t=>Array.from(t.keys())))]:void 0}}function OF(e,t){return t??e.get("editType")??"singleCell"}var _F=class extends X{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t;const n=e.previousParams,{editSvc:i,beans:o}=this,r=e.type==="cellFocused"?e.sourceEvent:null;n&&(t=pt(o,n));const{gos:s,editModelSvc:a}=o,l=e.type==="cellFocusCleared";if(i.isEditing(void 0,{withOpenEditor:!0})){const{column:u,rowIndex:h,rowPinned:f}=e,g={column:u,rowNode:Ao(o,{rowIndex:h,rowPinned:f})},m=s.get("invalidEditValueMode")==="block";if(m)return;const v=!m,w=!!a?.getCellValidationModel().hasCellValidation(g),b=v&&w;!(n||l)||i.stopEditing(void 0,{cancel:b,source:l&&v?"api":void 0,event:r})||(i.isBatchEditing()?i.cleanupEditors():i.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stopCancelled(e){const t=this.editSvc.isBatchEditing()&&!e;for(const n of this.model.getEditPositions())Hc(this.beans,n,{cancel:!0},pt(this.beans,n)),this.model.stop(n,t,!0);return!0}stopCommitted(e,t){const n=this.model.getEditPositions(),i={all:[],pass:[],fail:[]};for(const s of n)i.all.push(s),(this.model.getCellValidationModel().getCellValidation(s)?.errorMessages?.length??0)>0?i.fail.push(s):i.pass.push(s);const o=this.processValidationResults(i),r=this.editSvc.isBatchEditing()&&!t;for(const s of o.destroy)Hc(this.beans,s,{event:e},pt(this.beans,s)),this.model.stop(s,r,!1);for(const s of o.keep){const a=pt(this.beans,s);!this.editSvc.cellEditingInvalidCommitBlocks()&&a&&this.editSvc.revertSingleCellEdit(a)}return!0}cleanupEditors({rowNode:e}={},t){Xr(this.beans,{persist:!1});const n=this.model.getEditPositions(),i=[];if(e)for(const o of n)o.rowNode!==e&&i.push(o);else for(const o of n)i.push(o);es(this.beans,i),Bc(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,n=t?.getCellEditor();if(n?.focusIn)n.focusIn();else{const i=this.beans.gos.get("editType")==="fullRow";e.focusCell(i),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){const{event:t,ignoreEventKey:n=!1,startedEdit:i,position:o,cells:r=this.model.getEditPositions()}=e,s=t instanceof KeyboardEvent&&!n&&t.key||void 0;K5(this.beans,r,o,s,t,i)}dispatchCellEvent(e,t,n,i){const o=pt(this.beans,e);o&&this.eventSvc.dispatchEvent({...o.createEvent(t??null,n),...i})}dispatchRowEvent(e,t,n){if(n)return;const i=bh(this.beans,e);i&&this.eventSvc.dispatchEvent(i.createRowEvent(t))}shouldStop(e,t,n="ui"){const i=this.editSvc.isBatchEditing();return i&&n==="api"?!0:i&&(n==="ui"||n==="edit")?!1:n==="api"?!0:t instanceof KeyboardEvent&&!i?t.key===K.ENTER:null}shouldCancel(e,t,n="ui"){const i=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!i&&t.key===K.ESCAPE||i&&n==="api"||n==="api")}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const n=[];if(e.forEach((i,o)=>{i.forEach((r,s)=>{r.state==="editing"&&n.push({...r,rowNode:o,column:s})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),n.length>0){const i=n.at(-1),o=i.pendingValue===pn?void 0:i.pendingValue;this.start({position:i,event:new KeyboardEvent("keydown",{key:o}),source:"api"});const r=pt(this.beans,i);r&&this.setFocusInOnEditor(r)}}destroy(){this.cleanupEditors(),super.destroy()}},S6=class extends _F{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=new Set}shouldStop(e,t,n="ui"){const{rowNode:i,beans:o}=this,{rowNode:r}=e||{};if(!bh(o,{rowNode:i}))return!0;const a=super.shouldStop({rowNode:i},t,n);return a!==null?a:i?r!==i:!1}midBatchInputsAllowed({rowNode:e}){return e?this.model.hasEdits({rowNode:e}):!1}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:n,startedEdit:i,event:o,ignoreEventKey:r}=e,{rowNode:s}=t,{beans:a,model:l,startedRows:u}=this;this.rowNode!==s&&super.cleanupEditors(t);const h=a.visibleCols.allCols,f=[],g=[];for(const m of h)m.isCellEditable(s)&&g.push(m);if(g.length!=0){u.has(s)||(this.dispatchRowEvent({rowNode:s},"rowEditingStarted",n),u.add(s));for(const m of g){const v={rowNode:s,column:m};f.push(v),l.start(v)}this.rowNode=s,this.setupEditors({cells:f,position:t,startedEdit:i,event:o,ignoreEventKey:r})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){const{rowNode:t,model:n}=this;return t&&!n.hasRowEdits(t)?!1:(super.stopCancelled(e),this.cleanupEditors({rowNode:t},!0),this.rowNode=void 0,!0)}stopCommitted(e,t){const{rowNode:n,beans:i,model:o,editSvc:r}=this;if(n&&!o.hasRowEdits(n))return!1;const s=[];if(o.getEditMap().forEach((a,l)=>{if(!(!a||a.size===0)){for(const u of a.values())if(lo(u)){s.push(l);break}}}),ts(i),r.checkNavWithValidation({rowNode:n})==="block-stop")return!1;if(super.stopCommitted(e,t),t||!r.isBatchEditing())for(const a of s)this.dispatchRowEvent({rowNode:a},"rowValueChanged");return this.cleanupEditors({rowNode:n},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,n=e.previousParams;if(n?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const{beans:i,gos:o,model:r}=this;if(i.editSvc?.isRangeSelectionEnabledWhileEditing())return;const s=pt(i,n);o.get("invalidEditValueMode")==="block"&&s&&(r.getCellValidationModel().getCellValidation(s)||r.getRowValidationModel().getRowValidation(s))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);const{startedRows:n}=this;for(const i of n)this.dispatchRowEvent({rowNode:i},"rowEditingStopped"),this.destroyEditorsForRow(i);n.clear()}destroyEditorsForRow(e){const t=bh(this.beans,{rowNode:e});if(!t)return;const n={};for(const i of t.getAllCellCtrls())i.comp?.getCellEditor()&&Hc(this.beans,i,n,i)}moveToNextEditingCell(e,t,n,i="ui",o=!1){const{beans:r,model:s,gos:a,editSvc:l}=this,u=e.cellPosition;let h;s.suspend(!0);try{h=r.navigation?.findNextCellToFocusOn(u,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{s.suspend(!1)}if(h===!1)return null;if(h==null)return!1;const f=h.cellPosition,g=e.isCellEditable(),m=h.isCellEditable(),v=f&&u.rowIndex===f.rowIndex&&u.rowPinned===f.rowPinned;g&&this.setFocusOutOnEditor(e),this.restoreEditors();const w=a.get("suppressStartEditOnTab");return m&&!o?w?h.focusCell(!0,n):(h.comp?.getCellEditor()||ta(r,h,{event:n,cellStartedEdit:!0}),this.setFocusInOnEditor(h),h.focusCell(!1,n)):(m&&o&&this.setFocusInOnEditor(h),h.focusCell(!0,n)),!v&&!o&&(l?.stopEditing({rowNode:e.rowNode},{event:n,forceStop:!0}),l?.isRowEditing(e.rowNode,{withOpenEditor:!0})&&this.cleanupEditors(h,!0),w?h.focusCell(!0,n):l.startEditing(h,{startedEdit:!0,event:n,source:i,ignoreEventKey:!0,editable:m||void 0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){const{beans:e,model:t}=this;t.getEditMap().forEach((n,i)=>n.forEach(({state:o},r)=>{if(o!=="editing")return;const s=pt(e,{rowNode:i,column:r});s&&!s.comp?.getCellEditor()&&ta(e,s,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.clear()}},R6=class extends _F{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,n="ui"){const i=super.shouldStop(e,t,n);if(i!==null)return i;const o=e?.rowNode,r=e?.column,s=this.rowNode,a=this.column;return(!s||!a)&&o&&r?null:s!==o||a!==r?!0:!s&&!a?this.model.hasEdits(void 0,{withOpenEditor:!0}):!1}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:n,event:i,ignoreEventKey:o}=e;(this.rowNode!==t.rowNode||this.column!==t.column)&&super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:n,event:i,ignoreEventKey:o})}dispatchRowEvent(e,t,n){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){return super.stopCancelled(e),this.clearPosition()}stopCommitted(e,t){return super.stopCommitted(e,t),this.clearPosition()}clearPosition(){return this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:n}=this.beans,{rowIndex:i,column:o,rowPinned:r}=e,s=Ao(this.beans,{rowIndex:i,rowPinned:r}),a=Zm(o),l=t.getCol(a),u=e.previousParams;if(u){const h=Zm(u.column);if(u?.rowIndex===i&&h===a&&u?.rowPinned===r)return}e.type=="cellFocused"&&(n?.isRangeSelectionEnabledWhileEditing()||n?.isEditing({rowNode:s,column:l},{withOpenEditor:!0}))||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,n,i="ui",o=!1){const r=this.beans.focusSvc.getFocusedCell();r&&(e=tl(this.beans,r)??e);const s=e.cellPosition;let a;const l=this.beans.gos.get("editType")==="fullRow";l&&this.model.suspend(!0),o||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:n}));try{a=this.beans.navigation?.findNextCellToFocusOn(s,{backwards:t,startEditing:!0})}finally{l&&this.model.suspend(!1)}if(a===!1)return null;if(a==null)return!1;const u=a.cellPosition,h=e.isCellEditable(),f=a.isCellEditable(),g=u&&s.rowIndex===u.rowIndex&&s.rowPinned===u.rowPinned;h&&!o&&this.setFocusOutOnEditor(e);const m=this.gos.get("suppressStartEditOnTab");let v=!1;if(!g&&!o&&(super.cleanupEditors(a,!0),m?a.focusCell(!0,n):(v=!0,this.editSvc.startEditing(a,{startedEdit:!0,event:n,source:i,ignoreEventKey:!0,editable:f}))),f&&!o){if(a.focusCell(!1,n),m)a.focusCell(!0,n);else if(!a.comp?.getCellEditor()){if(!v){const w=this.editSvc?.isEditing(a,{withOpenEditor:!0});ta(this.beans,a,{event:n,cellStartedEdit:!0,silent:w})}this.setFocusInOnEditor(a),this.cleanupEditors(a)}}else f&&o&&this.setFocusInOnEditor(a),a.focusCell(!0,n);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},is={moduleName:"EditCore",version:Re,beans:[U5,b6],apiFunctions:{getEditingCells:Z4,getEditRowValues:Y4,getCellEditorInstances:j5,startEditingCell:e6,stopEditing:J4,isEditing:X4,validateEdit:t6},dynamicBeans:{singleCell:R6,fullRow:S6},dependsOn:[Dh,PF],css:[m4]},x6={moduleName:"UndoRedoEdit",version:Re,beans:[p4],apiFunctions:{undoCellEditing:q4,redoCellEditing:Q4,getCurrentUndoSize:n6,getCurrentRedoSize:i6},dependsOn:[is]},F6={moduleName:"TextEditor",version:Re,userComponents:{agCellEditor:TF,agTextCellEditor:TF},dependsOn:[is]},P6={moduleName:"NumberEditor",version:Re,userComponents:{agNumberCellEditor:{classImp:k4}},dependsOn:[is]},E6={moduleName:"DateEditor",version:Re,userComponents:{agDateCellEditor:S4,agDateStringCellEditor:F4},dependsOn:[is]},D6={moduleName:"CheckboxEditor",version:Re,userComponents:{agCheckboxCellEditor:C4},dependsOn:[is]},T6={moduleName:"SelectEditor",version:Re,userComponents:{agSelectCellEditor:$4},dependsOn:[is]},A6={moduleName:"LargeTextEditor",version:Re,userComponents:{agLargeTextCellEditor:T4},dependsOn:[is]},I6={moduleName:"CustomEditor",version:Re,dependsOn:[is]},NF={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agBigIntColumnFilter:"agBigIntColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},M6=new Set(Object.values(NF));function os(e,t){const n=e.filterUi;if(!n)return null;if(n.created)return n.promise;if(t)return null;const i=n.create(n.refreshed),o=n;return o.created=!0,o.promise=i,i}function k6(e,t,n,i,o,r,s){return t.refresh?.({...n,model:i,source:r,additionalEventAttributes:s}),e().then(a=>{if(a){const{filter:l,filterParams:u}=a;BF(l,u,i,o,r,s)}})}function BF(e,t,n,i,o,r){e?.refresh?.({...t,model:n,state:i,source:o,additionalEventAttributes:r})}function HF(e,t,n,i){const o=e();o?.created&&o.promise.then(r=>{const s=t();BF(r,o.filterParams,s,n()??{model:s},"ui",i)})}function GF(e){let t,n=!1,i;const{action:o,filterParams:r,getFilterUi:s,getModel:a,getState:l,updateState:u,updateModel:h,processModelToApply:f}=e;switch(o){case"apply":{const g=l();i=g?.model??null,f&&(i=f(i)),t={state:g?.state,model:i},n=!0;break}case"clear":{t={model:null},r?.buttons?.includes("apply")||(n=!0,i=null);break}case"reset":{t={model:null},n=!0,i=null;break}case"cancel":{t={model:a()};break}}u(t),n?h(i):HF(s,a,l,{fromAction:o})}function mn(e,t){return e[t]??null}var L6=class extends fm{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,n,i,o){this.comp=e;const r=kc(this,this.beans.context,o);this.eButtonShowMainFilter=n,this.eFloatingFilterBody=i,this.setGui(t,r),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(r),this.setupLeft(r),this.setupHover(r),this.setupFocus(r),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(r),this.setupUi(),r.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(r);const s=()=>this.onColDefChanged(r);r.addManagedListeners(this.column,{colDefChanged:s}),r.addManagedEventListeners({filterSwitched:({column:a})=>{a===this.column&&s()}}),r.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.colDef;return Ue(t.gos,{colDef:n,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,n=!!e.floatingFilter;this.active=t&&n}setupUi(){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)return;const e=si("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new Dc(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.getLocaleTextFunc();Va(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(Lt(t)===this.eGui)return;const o=Ks(t,this.eGui,null,e.shiftKey);if(o){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),o.focus();return}const r=this.findNextColumnWithFloatingFilter(e.shiftKey);r&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:r},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let n=this.column;do if(n=e?t.getColBefore(n):t.getColAfter(n),!n)break;while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case K.UP:case K.DOWN:case K.LEFT:case K.RIGHT:if(t)return;qs(e);case K.ENTER:t&&js(this.eGui)&&e.preventDefault();break;case K.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const n=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),i=!!e.relatedTarget&&Ns(e.relatedTarget,"ag-floating-filter");if(n&&i&&e.target===this.eGui){const o=this.lastFocusEvent,r=!!(o&&o.key===K.TAB);if(o&&r){const s=o.shiftKey;js(this.eGui,s)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new hm(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!ri(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{beans:{colFilter:t},column:n,gos:i}=this,o=r=>{if(r?.source==="filterDestroyed"&&(!this.isAlive()||!t?.isAlive()))return;const s=this.comp.getFloatingFilterComp();s&&s.then(a=>{if(a){if(i.get("enableFilterHandlers")){const h=r;let f="filter";h?.afterFloatingFilter?f="ui":h?.afterDataChange?f="dataChanged":r?.source==="api"&&(f="api"),this.updateFloatingFilterParams(this.userCompDetails,f);return}const l=t?.getCurrentFloatingFilterParentModel(n),u=r?{...r,columns:r.columns??[],source:r.source==="api"?"api":"columnFilter"}:null;a.onParentModelChanged(l,u)}})};[this.destroySyncListener]=e.addManagedListeners(n,{filterChanged:o}),t?.isFilterActive(n)&&o(null)}setupWidth(e){const t=()=>{const n=`${this.column.getActualWidth()}px`;this.comp.setWidth(n)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const n=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const i=this.beans.colFilter,o=this.active?i?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,r=this.comp.getFloatingFilterComp();!r||!o?this.updateCompDetails(e,o,n):r.then(s=>{!s||i?.areFilterCompsDifferent(this.userCompDetails??null,o)?this.updateCompDetails(e,o,n):this.updateFloatingFilterParams(o,"colDef")})}updateCompDetails(e,t,n){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),n&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let n=e.params;this.comp.getFloatingFilterComp()?.then(i=>{typeof i?.refresh=="function"&&(this.gos.get("enableFilterHandlers")&&(n={...n,model:mn(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),i.refresh(n))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function O6(e,t){const n=e.colModel.getCol(t);if(!n){vt(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:n,positionBy:"auto"})}function _6(e){e.menuSvc?.hidePopupMenu()}var N6=class extends X{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){this.showColumnMenuCommon(WF(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,n){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,n)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){WF(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(ri(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&zr(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(Us()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!ri(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!ri(this.gos)&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return ri(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,n,i){const{positionBy:o,onClosedCallback:r}=t,s=t.column;if(o==="button"){const{buttonElement:a}=t;e?.showMenuAfterButtonClick(s,a,n,r,i)}else if(o==="mouse"){const{mouseEvent:a}=t;e?.showMenuAfterMouseEvent(s,a,n,r,i)}else if(s){const a=this.beans,l=a.ctrlsSvc;l.getScrollFeature().ensureColumnVisible(s,"auto"),ir(a,()=>{const u=l.getHeaderRowContainerCtrl(s.getPinned())?.getHeaderCtrlForColumn(s);u&&e?.showMenuAfterButtonClick(s,u.getAnchorElementForMenu(i),n,r,i)})}}};function VF(e,t,n){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",n))}function WF(e){const{enterpriseMenuFactory:t,filterMenuFactory:n,gos:i}=e;return t&&ri(i)?t:n}var B6={moduleName:"SharedMenu",version:Re,beans:[N6],apiFunctions:{showColumnMenu:O6,hidePopupMenu:_6}},H6=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;:where(.ag-set-filter-group-closed-icon),:where(.ag-set-filter-group-indeterminate-icon),:where(.ag-set-filter-group-opened-icon){cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper{min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>:where(.ag-date-floating-filter-wrapper),>:where(.ag-floating-filter-input),>:where(.ag-input-field){flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(.ag-input-field-input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:var(--ag-widget-container-vertical-padding);:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function G6(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function V6(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function W6(e,t){const n=e.colModel.getColDefCol(t);if(n)return e.colFilter?.destroyFilter(n,"api")}function z6(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function U6(e){return e.filterManager?.getFilterModel()??{}}function $6(e,t,n){const{gos:i,colModel:o,colFilter:r}=e;n&&!i.get("enableFilterHandlers")&&(le(288),n=!1);const s=o.getColDefCol(t);return s?r?.getModelForColumn(s,n)??null:null}function j6(e,t,n){return e.filterManager?.setColumnFilterModel(t,n)??Promise.resolve()}function K6(e,t){const n=e.colModel.getCol(t);if(!n){vt(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:n,containerType:"columnFilter",positionBy:"auto"})}function q6(e){e.menuSvc?.hideFilterMenu()}function Q6(e,t){const n=e.colModel.getCol(t);if(!n){vt(12,{colKey:t});return}return e.colFilter?.getHandler(n,!0)}function Y6(e,t){const{colModel:n,colFilter:i,gos:o}=e;if(!o.get("enableFilterHandlers")){le(287);return}const{colId:r,action:s}=t;if(r){const a=n.getColById(r);a&&i?.updateModel(a,s)}else i?.updateAllModels(s)}var zF={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},UF=["january","february","march","april","may","june","july","august","september","october","november","december"];function Z6(e,t){return e==null?-1:t==null?1:Number.parseFloat(e)-Number.parseFloat(t)}function J6(e,t){if(e==null)return-1;if(t==null)return 1;const n=ai(e),i=ai(t);return n!=null&&i!=null?n===i?0:n>i?1:-1:String(e).localeCompare(String(t))}function $F(e){return e instanceof Date&&!isNaN(e.getTime())}var vv={number:()=>{},bigint:()=>{},boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>t===!1,numberOfInputs:0}]}),date:()=>({isValidDate:$F}),dateString:({dataTypeDefinition:e})=>({comparator:(t,n)=>{const i=e.dateParser(n);return n==null||i<t?-1:i>t?1:0},isValidDate:t=>typeof t=="string"&&$F(e.dateParser(t))}),dateTime:e=>vv.date(e),dateTimeString:e=>vv.dateString(e),object:()=>{},text:()=>{}},Cv={number:()=>({comparator:Z6}),bigint:()=>({comparator:J6}),boolean:({t:e})=>({valueFormatter:t=>Pe(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t})=>({valueFormatter:n=>{const i=e(n);return Pe(i)?i:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(n,i)=>{if(n==="NaN")return t("invalidDate","Invalid Date");if(i===1&&n!=null){const o=UF[Number(n)-1];return t(o,zF[o])}return n??t("blanks","(Blanks)")},treeListPathGetter:n=>ph(n,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:n})=>({valueFormatter:i=>{const o=e(i);return Pe(o)?o:n("blanks","(Blanks)")},treeList:!0,treeListPathGetter:i=>ph(t.dateParser(i??void 0),!1),treeListFormatter:(i,o)=>{if(o===1&&i!=null){const r=UF[Number(i)-1];return n(r,zF[r])}return i??n("blanks","(Blanks)")}}),dateTime:e=>{const t=Cv.date(e);return t.treeListPathGetter=ph,t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,n=Cv.dateString(e);return n.treeListPathGetter=i=>ph(t(i??void 0)),n},object:({formatValue:e,t})=>({valueFormatter:n=>{const i=e(n);return Pe(i)?i:t("blanks","(Blanks)")}}),text:()=>{}};function X6(e,t,n,i,o,r,s){let a=t,l=n;const u=e==="agSetColumnFilter";!l&&i.baseDataType==="object"&&!u&&(l=({column:m,node:v})=>o({column:m,node:v,value:r.valueSvc.getValue(m,v,"data")}));const f=(u?Cv:vv)[i.baseDataType],g=f({dataTypeDefinition:i,formatValue:o,t:s});return a=typeof t=="object"?{...g,...t}:g,{filterParams:a,filterValueGetter:l}}var e7={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",bigint:"agBigIntColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},t7={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",bigint:"agBigIntColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"};function n7(e,t=!1){return(t?t7:e7)[e??"text"]}function i7(e,t,n){if(t==null)return null;let i=null;const{compName:o,jsComp:r,fwComp:s}=H0(e,t);return o?i={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agBigIntColumnFilter:"agBigIntColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[o]:r==null&&s==null&&t.filter===!0&&(i=n()),i}var o7={filterHandler:()=>({doesFilterPass:()=>!0})};function jF(e,t,n,i){if(!e.isPrimary())return!0;const r=!n;return!e.isValueActive()||!r?!1:t?!0:i}var r7=class extends X{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.columnModelUpdates=[],this.state=new Map,this.handlerMap={...NF},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.addManagedPropertyListener("pivotMode",this.onPivotModeChanged.bind(this));const e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap.agMultiColumnFilter}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(e,t="api",n){const{colModel:i,dataTypeSvc:o,filterManager:r}=this.beans;if(o?.isPendingInference){this.modelUpdates.push({model:e,source:t});return}const s=[],a=this.getModel(!0);if(e){const l=new Set(Object.keys(e));this.allColumnFilters.forEach((u,h)=>{const f=e[h];s.push(this.setModelOnFilterWrapper(u,f)),l.delete(h)}),l.forEach(u=>{const h=i.getColDefCol(u)||i.getCol(u);if(!h){le(62,{colId:u});return}if(!h.isFilterAllowed()){le(63,{colId:u});return}const f=this.getOrCreateFilterWrapper(h,!0);if(!f){le(64,{colId:u});return}s.push(this.setModelOnFilterWrapper(f,e[u],!0))})}else this.model={},this.allColumnFilters.forEach(l=>{s.push(this.setModelOnFilterWrapper(l,null))});Ot.all(s).then(()=>{const l=this.getModel(!0),u=[];this.allColumnFilters.forEach((h,f)=>{const g=a?a[f]:null,m=l?l[f]:null;uc(g,m)||u.push(h.column)}),u.length>0?r?.onFilterChanged({columns:u,source:t}):n&&this.updateActive("filterChanged")})}getModel(e){const t={},{allColumnFilters:n,initialModel:i,beans:{colModel:o}}=this;if(n.forEach((r,s)=>{const a=this.getModelFromFilterWrapper(r);Pe(a)&&(t[s]=a)}),!e)for(const r of Object.keys(i)){const s=i[r];Pe(s)&&!n.has(r)&&o.getCol(r)?.isFilterAllowed()&&(t[r]=s)}return t}setState(e,t,n="api"){if(this.state.clear(),t)for(const i of Object.keys(t)){const o=t[i];this.state.set(i,{model:mn(this.model,i),state:o})}this.setModel(e,n,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let n=!1;return e.forEach((i,o)=>{const r=i.state;r!=null&&(n=!0,t[o]=r)}),n?t:void 0}getModelFromFilterWrapper(e){const n=e.column.getColId();if(e.isHandler)return mn(this.model,n);const i=e.filter;return i?typeof i.getModel!="function"?(le(66),null):i.getModel():mn(this.initialModel,n)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:e}=this;return e.size?(e.forEach(t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")),!0):!1}updateActiveFilters(){const e=l=>l?l.isFilterActive?l.isFilterActive():(le(67),!1):!1,{colModel:t,gos:n}=this.beans,i=!!Bd(n),o=[],r=[],s=(l,u,h)=>{u&&(jF(l,t.isPivotMode(),t.isPivotActive(),i)?o.push(h):r.push(h))},a=[];return this.allColumnFilters.forEach(l=>{const u=l.column,h=u.getColId();if(l.isHandler)a.push(Ot.resolve().then(()=>{s(u,this.isHandlerActive(u),{colId:h,isHandler:!0,handler:l.handler,handlerParams:l.handlerParams})}));else{const f=os(l);f&&a.push(f.then(g=>{s(u,e(g),{colId:h,isHandler:!1,comp:g})}))}}),Ot.all(a).then(()=>{this.activeAggregateFilters=o,this.activeColumnFilters=r})}updateFilterFlagInColumns(e,t){const n=[];return this.allColumnFilters.forEach(i=>{const o=i.column;if(i.isHandler)n.push(Ot.resolve().then(()=>{this.setColFilterActive(o,this.isHandlerActive(o),e,t)}));else{const r=os(i);r&&n.push(r.then(s=>{this.setColFilterActive(o,s.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),Ot.all(n)}doFiltersPass(e,t,n){const{data:i,aggData:o}=e,r=n?this.activeAggregateFilters:this.activeColumnFilters,s=n?o:i,a=this.model;for(let l=0;l<r.length;l++){const u=r[l],{colId:h,isHandler:f}=u;if(h!==t)if(f){const{handler:g,handlerParams:m}=u;if(!g.doesFilterPass({node:e,data:s,model:mn(a,h),handlerParams:m}))return!1}else{const g=u.comp;if(typeof g.doesFilterPass!="function"){vt(91);continue}if(!g.doesFilterPass({node:e,data:s}))return!1}}return!0}getHandlerParams(e){const t=this.allColumnFilters.get(e.getColId());return t?.isHandler?t.handlerParams:void 0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:n}=this.beans,i=()=>{this.isAlive()&&n?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(i,0):i()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:n}=e,i=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",n).then(()=>{this.allColumnFilters.forEach(o=>{const{column:r,isHandler:s}=o;i!==r.getColId()&&(s&&o.handler.onAnyFilterChanged?.(),os(o,s)?.then(a=>{typeof a?.onAnyFilterChanged=="function"&&a.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach(n=>{const i=n.isHandler;i&&n.handler.onNewRowsLoaded?.();const o=os(n,i);o&&t.push(o.then(r=>{r.onNewRowsLoaded?.()}))}),Ot.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){const{filterValueSvc:n,colModel:i}=this.beans;return(o,r)=>{const s=r?i.getCol(r):e;return s?n.getValue(s,o,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const n=t?.filter;return n?n.isFilterActive():mn(this.initialModel,e.getColId())!=null}isHandlerActive(e){const t=Pe(mn(this.model,e.getColId()));if(t)return t;const n=this.beans.groupFilter;return n?.isGroupFilter(e)?n.isFilterActive(e):!1}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?os(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const n=os(t);return n?n.then(i=>({comp:i,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const n=this.getOrCreateFilterWrapper(e,t);return n?.isHandler?n.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let n=this.cachedFilter(e);return!n&&t&&(n=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,n)),n}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType(()=>this.beans.dataTypeSvc?.getBaseDataType(e),t)}getDefaultFilterFromDataType(e,t=!1){return DO(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":n7(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,n,i,o,r){const s=()=>{const u=this.createFilterCompParams(e,o,r),h=i(u,o);return O_(this.beans.userCompFactory,t,h,n)},a=s();return a?{compDetails:a,createFilterUi:u=>(u?s():a).newAgStackInstance()}:null}createFilterInstance(e,t,n,i){const o=this.beans.selectableFilter;o?.isSelectable(t)&&(t=o.getFilterDef(e,t));const{handler:r,handlerParams:s,handlerGenerator:a}=this.createHandler(e,t,n)??{},l=this.createFilterComp(e,t,n,i,!!r,"init");if(!l)return{compDetails:null,createFilterUi:null,handler:r,handlerGenerator:a,handlerParams:s};const{compDetails:u,createFilterUi:h}=l;return this.isGlobalButtons&&(u.params?.buttons?.length||le(281,{colId:e.getColId()})),{compDetails:u,handler:r,handlerGenerator:a,handlerParams:s,createFilterUi:h}}createBaseFilterParams(e,t){const{filterManager:n,rowModel:i}=this.beans;return Ue(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:o=>n?.doesRowPassOtherFilters(e.getColId(),o)??!0,rowModel:i})}createFilterCompParams(e,t,n,i){const o=this.filterChangedCallbackFactory(e),r=this.createBaseFilterParams(e,i);if(r.filterChangedCallback=o,r.filterModifiedCallback=i?()=>{}:s=>this.filterModified(e,s),t){const s=r,a=e.getColId(),l=mn(this.model,a);s.model=l,s.state=this.state.get(a)??{model:l},s.onModelChange=(u,h)=>{this.updateStoredModel(a,u),this.refreshHandlerAndUi(e,u,"ui",!1,h).then(()=>{o({...h,source:"columnFilter"})})},s.onStateChange=u=>{this.updateState(e,u),this.updateOrRefreshFilterUi(e)},s.onAction=(u,h,f)=>{this.updateModel(e,u,h),this.dispatchLocalEvent({type:"filterAction",column:e,action:u,event:f})},s.getHandler=()=>this.getHandler(e,!0),s.onUiChange=u=>this.filterUiChanged(e,u),s.source=n}return r}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,n){const i=t(),o={created:!0,create:t,filterParams:e.params,compDetails:e,promise:i};return i.then(n),o}createFilterWrapper(e){const{compDetails:t,handler:n,handlerGenerator:i,handlerParams:o,createFilterUi:r}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),a=>a),s=e.getColId();if(n)return delete this.initialModel[s],n.init?.({...o,source:"init",model:mn(this.model,s)}),{column:e,isHandler:!0,handler:n,handlerGenerator:i,handlerParams:o,filterUi:this.createFilterUiForHandler(t,r)};if(r){const a={column:e,filterUi:null,isHandler:!1};return a.filterUi=this.createFilterUiLegacy(t,r,l=>{a.filter=l??void 0}),a}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,n){const{gos:i,frameworkOverrides:o,registry:r}=this.beans;let s;const a=m=>{const v=m.filter;if(L0(v)){const w=v.handler;return w||(s=v.doesFilterPass,s?()=>({doesFilterPass:s}):void 0)}return typeof v=="string"?v:void 0},l=i.get("enableFilterHandlers"),u=l?a(t):void 0,h=m=>()=>this.createBean(r.createDynamicBean(m,!0));let f,g;if(typeof u=="string"){const m=i.get("filterHandlers")?.[u];m!=null?f=m:M6.has(u)&&(f=h(u),g=u)}else f=u;if(!f){let m;const{compName:v,jsComp:w,fwComp:b}=H0(o,t);v?m=v:w==null&&b==null&&t.filter===!0&&(m=n),g=this.handlerMap[m],g&&(f=h(g))}return f?{filterHandler:f,handlerNameOrCallback:s??g}:l?(en(i)&&le(277,{colId:e.getColId()}),o7):void 0}createHandler(e,t,n){const i=this.createHandlerFunc(e,t,n);if(!i)return;const o=Vp(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:r,filterHandler:s}=i,{handler:a,handlerParams:l}=this.createHandlerFromFunc(e,s,o);return{handler:a,handlerParams:l,handlerGenerator:r??s}}createHandlerFromFunc(e,t,n){const i=e.getColDef(),o=t(Ue(this.gos,{column:e,colDef:i})),r=this.createHandlerParams(e,n);return{handler:o,handlerParams:r}}createHandlerParams(e,t){const n=e.getColDef(),i=e.getColId(),o=this.filterChangedCallbackFactory(e);return Ue(this.gos,{colDef:n,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:r=>this.beans.filterManager?.doesRowPassOtherFilters(i,r)??!0,onModelChange:(r,s)=>{this.updateStoredModel(i,r),this.refreshHandlerAndUi(e,r,"handler",!1,s).then(()=>{o({...s,source:"columnFilter"})})},onModelAsStringChange:()=>{e.dispatchColEvent("filterChanged","filterChanged"),this.dispatchLocalEvent({type:"filterModelAsStringChanged",column:e})},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:n,groupFilter:i}=this.beans;this.allColumnFilters.forEach((r,s)=>{let a;r.column.isPrimary()?a=t.getColDefCol(s):a=t.getCol(s),!(a&&a===r.column)&&(e.push(r.column),this.disposeFilterWrapper(r,"columnChanged"),this.disposeColumnListener(s))});const o=i&&e.every(r=>i.isGroupFilter(r));e.length>0&&!o&&n?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const n=this.beans.groupFilter;return n?.isGroupFilter(e)?n.isFilterAllowed(e):!0}getFloatingFilterCompDetails(e,t){const{userCompFactory:n,frameworkOverrides:i,selectableFilter:o,gos:r}=this.beans,s=m=>{this.getOrCreateFilterUi(e)?.then(w=>{m(ea(w))})},a=e.getColDef(),l=o?.isSelectable(a)?o.getFilterDef(e,a):a,u=i7(i,l,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",h=r.get("enableFilterHandlers"),f=Vp(n,l,this.createFilterCompParams(e,h,"init",!0)),g=Ue(r,{column:e,filterParams:f,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:s,showParentFilter:t});if(h){const m=g,v=e.getColId(),w=this.filterChangedCallbackFactory(e);m.onUiChange=b=>this.floatingFilterUiChanged(e,b),m.model=mn(this.model,v),m.onModelChange=(b,y)=>{this.updateStoredModel(v,b),this.refreshHandlerAndUi(e,b,"floating",!0,y).then(()=>{w({...y,source:"columnFilter"})})},m.getHandler=()=>this.getHandler(e,!0),m.source="init"}return B_(n,a,g,u)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,n,i){const o="paramsUpdated";if(e.isHandler){const r=t.getColId();delete this.initialModel[r],this.state.delete(r);const s=e.filterUi,a=this.createFilterUiForHandler(n,i);e.filterUi=a;const l=this.eventSvc;s?.created?s.promise.then(u=>{this.destroyBean(u),l.dispatchEvent({type:"filterDestroyed",source:o,column:t})}):l.dispatchEvent({type:"filterHandlerDestroyed",source:o,column:t})}else this.destroyFilter(t,o)}destroyFilter(e,t="api"){const n=e.getColId(),i=this.allColumnFilters.get(n);this.disposeColumnListener(n),delete this.initialModel[n],i&&this.disposeFilterWrapper(i,t).then(o=>{o&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let n=!1;const{column:i,isHandler:o,filterUi:r}=e,s=i.getColId();o&&(n=this.isHandlerActive(i),this.destroyBean(e.handler),delete this.model[s],this.state.delete(s));const a=()=>{this.setColFilterActive(i,!1,"filterDestroyed"),this.allColumnFilters.delete(s),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:i})};if(r){if(r.created)return r.promise.then(l=>(n=o?n:!!l?.isFilterActive(),this.destroyBean(l),a(),n));a()}return Ot.resolve(n)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const n=this.allColumnFilters.get(e);if(!n)return;const i=this.beans,o=n.column,r=o.getColDef(),s=o.isFilterAllowed(),a=this.getDefaultFilter(o),l=i.selectableFilter,u=l?.isSelectable(r)?l.getFilterDef(o,r):r,h=s?this.createHandlerFunc(o,u,this.getDefaultFilter(o)):void 0,f=!!h,g=n.isHandler;if(g!=f){this.destroyFilter(o,"paramsUpdated");return}const{compDetails:m,createFilterUi:v}=(s?this.createFilterComp(o,u,a,b=>b,f,"colDef"):null)??{compDetails:null,createFilterUi:null},w=m?.params??Vp(i.userCompFactory,u,this.createFilterCompParams(o,f,"colDef"));if(g){const b=h?.handlerNameOrCallback??h?.filterHandler,y=mn(this.model,e);if(n.handlerGenerator!=b){const R=n.handler,{handler:S,handlerParams:P}=this.createHandlerFromFunc(o,h.filterHandler,w);n.handler=S,n.handlerParams=P,n.handlerGenerator=b,delete this.model[e],S.init?.({...P,source:"init",model:null}),this.destroyBean(R),y!=null&&this.beans.filterManager?.onFilterChanged({columns:[o],source:t})}else{const R=this.createHandlerParams(o,m?.params);n.handlerParams=R,n.handler.refresh?.({...R,source:"colDef",model:y})}}if(this.areFilterCompsDifferent(n.filterUi?.compDetails??null,m)||!n.filterUi||!m){this.destroyFilterUi(n,o,m,v);return}n.filterUi.filterParams=w,os(n,g)?.then(b=>{(b?.refresh?b.refresh(w):!0)===!1?this.destroyFilterUi(n,o,m,v):this.dispatchLocalEvent({type:"filterParamsChanged",column:o,params:w})})}refreshHandlerAndUi(e,t,n,i,o){const r=this.cachedFilter(e);if(!r)return i&&this.getOrCreateFilterWrapper(e,!0),Ot.resolve();if(!r.isHandler)return Ot.resolve();const{filterUi:s,handler:a,handlerParams:l}=r;return k6(()=>{if(s){const{created:u,filterParams:h}=s;if(u)return s.promise.then(f=>f?{filter:f,filterParams:h}:void 0);s.refreshed=!0}return Ot.resolve(void 0)},a,l,t,this.state.get(e.getColId())??{model:t},n,o)}setColumnFilterWrapper(e,t){const n=e.getColId();this.allColumnFilters.set(n,t),this.allColumnListeners.set(n,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(n)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:n}=e,{componentClass:i}=t;return!(n===i||n?.render&&i?.render&&n.render===i.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(t=>t.getColDef().floatingFilter)}getFilterInstance(e){const t=this.beans.colModel.getColDefCol(e);if(!t)return Promise.resolve(void 0);const n=this.getOrCreateFilterUi(t);return n?new Promise(i=>{n.then(o=>{i(ea(o))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:n})=>{this.setModelForColumn(e,t).then(()=>n())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:i,model:o}=this,r=e.getColId(),s=i.get(r);return s?s.model??null:mn(o,r)}const n=this.cachedFilter(e);return n?this.getModelFromFilterWrapper(n):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let n=()=>{};const i=new Promise(o=>{n=o});return this.columnModelUpdates.push({key:e,model:t,resolve:n}),i}return new Promise(n=>{this.setModelForColumnLegacy(e,t).then(i=>n(i))})}getStateForColumn(e){return this.state.get(e)??{model:mn(this.model,e)}}setModelForColumnLegacy(e,t){const n=this.beans.colModel.getColDefCol(e),i=n?this.getOrCreateFilterWrapper(n,!0):null;return i?this.setModelOnFilterWrapper(i,t):Ot.resolve()}setColDefPropsForDataType(e,t,n){const i=e.filter,o=i===!0?this.getDefaultFilterFromDataType(()=>t.baseDataType):i;if(typeof o!="string")return;let r,s;const a=this.beans,{filterParams:l,filterValueGetter:u}=e;o==="agMultiColumnFilter"?{filterParams:r,filterValueGetter:s}=a.multiFilter?.getParamsForDataType(l,u,t,n)??{}:{filterParams:r,filterValueGetter:s}=X6(o,l,u,t,n,a,this.getLocaleTextFunc()),e.filterParams=r,s&&(e.filterValueGetter=s)}setColFilterActive(e,t,n,i){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",n)),e.dispatchColEvent("filterChanged",n,i)}setModelOnFilterWrapper(e,t,n){return new Ot(i=>{if(e.isHandler){const r=e.column,s=r.getColId(),a=this.model[s];if(this.updateStoredModel(s,t),n&&t===a){i();return}this.refreshHandlerAndUi(r,t,"api").then(()=>i());return}const o=os(e);if(o){o.then(r=>{if(typeof r?.setModel!="function"){le(65),i();return}(r.setModel(t)||Ot.resolve()).then(()=>i())});return}i()})}updateStoredModel(e,t){Pe(t)?this.model[e]=t:delete this.model[e];const n=this.state.get(e),i={model:t,state:n?.state};this.state.set(e,i)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(n=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:n,...t})})}filterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"filterUiChanged",column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:e,...t})}updateModel(e,t,n){const i=e.getColId(),o=this.cachedFilter(e),r=()=>o?.filterUi;GF({action:t,filterParams:o?.filterUi?.filterParams,getFilterUi:r,getModel:()=>mn(this.model,i),getState:()=>this.state.get(i),updateState:s=>this.updateState(e,s),updateModel:s=>r()?.filterParams?.onModelChange(s,{...n,fromAction:t}),processModelToApply:o?.isHandler?o.handler.processModelToApply?.bind(o.handler):void 0})}updateAllModels(e,t){const n=[];this.allColumnFilters.forEach((i,o)=>{const r=this.beans.colModel.getColDefCol(o);r&&GF({action:e,filterParams:i.filterUi?.filterParams,getFilterUi:()=>i.filterUi,getModel:()=>mn(this.model,o),getState:()=>this.state.get(o),updateState:s=>this.updateState(r,s),updateModel:s=>{this.updateStoredModel(o,s),this.dispatchLocalEvent({type:"filterAction",column:r,action:e}),n.push(this.refreshHandlerAndUi(r,s,"ui"))},processModelToApply:i?.isHandler?i.handler.processModelToApply?.bind(i.handler):void 0})}),n.length&&Ot.all(n).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();HF(()=>this.cachedFilter(e)?.filterUi,()=>mn(this.model,t),()=>this.state.get(t))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:"filterStateChanged",column:e,state:t})}canApplyAll(){const{state:e,model:t,activeFilterComps:n}=this;for(const o of n)if(o.source==="COLUMN_MENU")return!1;let i=!1;for(const o of e.keys()){const r=e.get(o);if(r.valid===!1)return!1;(r.model??null)!==mn(t,o)&&(i=!0)}return i}hasUnappliedModel(e){const{model:t,state:n}=this;return(n.get(e)?.model??null)!==mn(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if(t==="newFiltersToolPanel")return!0;const n=this.beans.filterPanelSvc;return n?.isActive?!!n.getState(e.getColId()):!1}onPivotModeChanged(e){const{colModel:t,pivotColsSvc:n}=this.beans,i=!!Bd(this.gos),o=e.currentValue,r=o?this.activeColumnFilters:this.activeAggregateFilters,s=o?this.activeAggregateFilters:this.activeColumnFilters,a=[];for(const l of r){const u=t.getColById(l.colId),h=o&&!!n?.columns.length;u&&o===jF(u,o,h,i)&&(s.push(l),a.push(l))}sL(r,a)}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}};function s7(e){return!!e.filterManager?.isAnyFilterPresent()}function a7(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var l7=class extends X{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:i})=>this.onAdvFilterEnabledChanged(i),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:n}=this;this.alwaysPassFilter=n.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=n.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"&&t(e)}setFilterState(e,t,n="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,n)}setFilterModel(e,t="api",n){if(this.isAdvFilterEnabled()){n||this.warnAdvFilters();return}this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){Bd(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:n,columns:i=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):Ot.resolve()).then(()=>{const o={source:t,type:"filterChanged",columns:i};n&&jn(o,n),this.eventSvc.dispatchEvent(o),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!Bd(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,colIdToSkip:e})}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.externalFilterPresent&&!this.doesExternalFilterPass(t)||this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))}isFilterAllowed(e){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference){this.advFilterModelUpdateQueue.push(e);return}this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){le(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(const e of this.advFilterModelUpdateQueue)this.setAdvFilterModel(e);this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}};function c7(e){return{tag:"div",cls:e}}var u7=class extends Ft{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(c7(t)),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){const n=this.buttons;if(this.buttons=e,n===e)return;const i=this.getGui();Rn(i);let o;this.destroyListeners();const r=document.createDocumentFragment(),s=this.className,a=({type:u,label:h})=>{const f=y=>{this.dispatchLocalEvent({type:u,event:y})};["apply","clear","reset","cancel"].includes(u)||le(75);const g=u==="apply",v=dn({tag:"button",attrs:{type:g&&t?"submit":"button"},ref:`${u}FilterButton`,cls:`ag-button ag-standard-button ${s}-button${g?" "+s+"-apply-button":""}`,children:h});this.activateTabIndex([v]),g&&(o=v);const w=y=>{y.key===K.ENTER&&(y.preventDefault(),f(y))},b=this.listeners;v.addEventListener("click",f),b.push(()=>v.removeEventListener("click",f)),v.addEventListener("keydown",w),b.push(()=>v.removeEventListener("keydown",w)),r.append(v)};for(const u of e)a(u);this.eApply=o;const l=this.validationTooltipFeature;o&&!l?this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApply,getLocation:()=>"advancedFilter",getTooltipShowDelayOverride:()=>1e3})):!o&&l&&(this.validationTooltipFeature=this.destroyBean(l)),i.append(r)}getApplyButton(){return this.eApply}updateValidity(e,t=null){const n=this.eApply;n&&(pc(n,!e),this.validationMessage=t,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(const e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},d7=class extends Ft{constructor(e,t,n,i,o,r){super(),this.column=e,this.wrapper=t,this.eventParent=n,this.updateModel=i,this.isGlobalButtons=o,this.enableGlobalButtonCheck=r,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,n=t,i=n.useForm,o=i?"form":"div";this.setTemplate({tag:o,cls:"ag-filter-wrapper"}),i&&this.addManagedElementListeners(this.getGui(),{submit:r=>{r?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=n,this.resetButtonsPanel(n),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:r,params:s})=>{r===this.column&&this.resetButtonsPanel(s,this.params)},filterStateChanged:({column:r,state:s})=>{r===this.column&&this.eButtons?.updateValidity(s.valid!==!1)},filterAction:({column:r,action:s,event:a})=>{r===this.column&&this.afterAction(s,a)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:r})=>{if(r!==this.isGlobalButtons){this.isGlobalButtons=r;const s=this.params;this.resetButtonsPanel(s,s,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,n){const{buttons:i,readOnly:o}=t??{},{buttons:r,readOnly:s,useForm:a}=e;if(!n&&o===s&&uc(i,r))return;const l=r&&r.length>0&&!e.readOnly&&!this.isGlobalButtons;let u=this.eButtons;if(l){const h=r.map(f=>{const g=`${f}Filter`;return{type:f,label:io(this,g)}});if(this.applyActive=Zd(this.params),!u){u=this.createBean(new u7),this.appendChild(u.getGui());const f=this.column,g=m=>({event:v})=>{this.updateModel(f,m,{fromButtons:!0}),this.afterAction(m,v)};u?.addManagedListeners(u,{apply:g("apply"),clear:g("clear"),reset:g("reset"),cancel:g("cancel")}),this.eButtons=u}u.updateButtons(h,a)}else this.applyActive=!1,u&&(ki(u.getGui()),this.eButtons=this.destroyBean(u))}close(e){const t=this.hidePopup;if(!t)return;const n=e,i=n?.key;let o;(i===K.ENTER||i===K.SPACE)&&(o={keyboardEvent:n}),t(o),this.hidePopup=null}afterAction(e,t){const{params:n,applyActive:i}=this,o=n?.closeOnApply;switch(e){case"apply":{t?.preventDefault(),o&&i&&this.close(t);break}case"reset":{o&&i&&this.close();break}case"cancel":{o&&this.close(t);break}}}handleKeyDown(e){!e.defaultPrevented&&e.key===K.ENTER&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},h7=":where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}",f7={tag:"div",cls:"ag-filter"},g7=class extends Ft{constructor(e,t,n){super(f7),this.column=e,this.source=t,this.enableGlobalButtonCheck=n,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return this.wrapper!=null}getFilter(){return this.wrapper?.then(e=>e.comp)??null}afterInit(){return this.wrapper?.then(()=>{})??Ot.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.wrapper?.then(t=>{this.comp?.afterGuiAttached(e),t?.comp?.afterGuiAttached?.(e)})}afterGuiDetached(){this.wrapper?.then(e=>{e?.comp?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:n,beans:{colFilter:i}}=this,o=i.getFilterUiForDisplay(t)??null;this.wrapper=o,o?.then(r=>{if(!r)return;const{isHandler:s,comp:a}=r;let l;if(s){const u=!!this.enableGlobalButtonCheck,h=this.createBean(new d7(t,r,i,i.updateModel.bind(i),u&&i.isGlobalButtons,u));this.comp=h,l=h.getGui()}else this.registerCSS(h7),l=a.getGui(),Pe(l)||le(69,{guiFromFilter:l});this.appendChild(l),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:n,eGui:this.getGui()}):a.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){const{source:t,column:n}=e;(t==="api"||t==="paramsUpdated")&&n.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Rn(this.getGui()),this.comp=this.destroyBean(this.comp),this.createFilter())}destroy(){this.beans.colFilter?.activeFilterComps.delete(this),this.eventSvc.dispatchEvent({type:"filterClosed",column:this.column}),this.wrapper=null,this.comp=this.destroyBean(this.comp),this.afterGuiAttachedParams=void 0,super.destroy()}},p7=class extends X{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,n,i){e&&!e.isColumn||this.showPopup(e,o=>{this.popupSvc?.positionPopupUnderMouseEvent({additionalParams:{column:e},type:n,mouseEvent:t,ePopup:o})},n,t.target,ri(this.gos),i)}showMenuAfterButtonClick(e,t,n,i){if(e&&!e.isColumn)return;let o=-1,r="left";const s=ri(this.gos);!s&&this.gos.get("enableRtl")&&(o=1,r="right");const a=s?void 0:4*o,l=s?void 0:4;this.showPopup(e,u=>{this.popupSvc?.positionPopupByComponent({type:n,eventSource:t,ePopup:u,nudgeX:a,nudgeY:l,alignSide:r,keepWithinBounds:!0,position:"under",additionalParams:{column:e}})},n,t,s,i)}showPopup(e,t,n,i,o,r){const s=e?this.createBean(new g7(e,"COLUMN_MENU")):void 0;if(this.activeMenu=s,!s?.hasFilter()||!e){vt(57);return}const a=dn({tag:"div",cls:`ag-menu${o?"":" ag-filter-menu"}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(a,{keydown:w=>this.trapFocusWithin(w,a)}),a.appendChild(s?.getGui());let l;const u=()=>s?.afterGuiDetached(),h=TO(this.gos)?i??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,f=w=>{VF(e,!1,"contextMenu");const b=w instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),b&&i&&Li(i)&&Q0(i)?.focus({preventScroll:!0}),u(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,n,e),r?.()},g=this.getLocaleTextFunc(),m=o&&n!=="columnFilter"?g("ariaLabelColumnMenu","Column Menu"):g("ariaLabelColumnFilter","Column Filter"),v=this.popupSvc?.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:f,positionCallback:()=>t(a),anchorToElement:h,ariaLabel:m});v&&(this.hidePopup=l=v.hideFunc),s.afterInit().then(()=>{t(a),s.afterGuiAttached({container:n,hidePopup:l})}),VF(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,n,e)}trapFocusWithin(e,t){e.key!==K.TAB||e.defaultPrevented||Ks(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),js(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,n){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:n??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},m7=class extends X{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,n){if(!t)return;const i=e.getColDef(),{selectableFilter:o,valueSvc:r,formula:s}=this.beans,a=n??o?.getFilterValueGetter(e.getColId())??i.filterValueGetter;if(a)return this.executeFilterValueGetter(a,t.data,e,t,i);const l=r.getValue(e,t,"data");return e.isAllowFormula()&&s?.isFormula(l)?s.resolveValue(e,t):l}executeFilterValueGetter(e,t,n,i,o){const{expressionSvc:r,valueSvc:s}=this.beans,a=Ue(this.gos,{data:t,node:i,column:n,colDef:o,getValue:s.getValueCallback.bind(s,i)});return typeof e=="function"?e(a):r?.evaluate(e,a)}},v7={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},C7=class extends Ft{constructor(){super(v7,[Th]),this.eFloatingFilterText=ge}init(e){this.params=e;const t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);if(this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`),this.gos.get("enableFilterHandlers")){const n=e,i=n.getHandler();if(i.getModelAsString){const o=i.getModelAsString(n.model);this.eFloatingFilterText.setValue(o)}}}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){const n=t.getModelAsString(e);this.eFloatingFilterText.setValue(n)}})}refresh(e){this.init(e)}},w7=class extends km{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},wv=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const n=e.filterOptions??t;this.filterOptions!==n&&(this.filterOptions=n,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){const{filterOptions:e}=this;if(e)for(const t of e){if(typeof t=="string")continue;const n=[["displayKey"],["displayName"],["predicate","test"]],i=o=>o.some(r=>t[r]!=null)?!0:(le(72,{keys:o}),!1);if(!n.every(i)){this.filterOptions=e.filter(o=>o===t)||[];continue}this.customFilterOptions[t.displayKey]=t}}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const n=t[0];if(typeof n=="string")return n;if(n.displayKey)return n.displayKey;le(73)}else le(74)}getCustomOption(e){return this.customFilterOptions[e]}};function zc(e,t,n){return n==null?e.splice(t):e.splice(t,n)}function Mh(e){return e==null||typeof e=="string"&&e.trim().length===0}function b7(e){return e==="AND"||e==="OR"?e:"AND"}function y7(e,t,n){if(e==null)return;const{predicate:i}=e;if(i!=null&&!t.some(o=>o==null))return i(t,n)}function S7(e,t){let n=e.length;return n>t&&(e.splice(t),le(78),n=t),n}var R7=new Set(["empty","notBlank","blank","today","yesterday","tomorrow","thisWeek","lastWeek","nextWeek","thisMonth","lastMonth","nextMonth","thisQuarter","lastQuarter","nextQuarter","thisYear","lastYear","nextYear","yearToDate","last7Days","last30Days","last90Days","last6Months","last12Months","last24Months"]);function rs(e,t){const n=t.getCustomOption(e);if(n){const{numberOfInputs:i}=n;return i??1}return e&&R7.has(e)?0:e==="inRange"?2:1}var kh=class extends Y_{constructor(e,t,n){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=n,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);const t=new wv;this.optionsFactory=t,t.init(e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e)}commonUpdateSimpleParams(e){this.setNumConditions(e),this.defaultJoinOperator=b7(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions(),oi(this.getGui(),"tabindex",this.isReadOnly()?"-1":null)}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,n)=>{const i=n===0?e:this.optionsFactory.defaultOption;t.setValue(i,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOrs:e,defaultJoinOperator:t}=this;return e.length===0?t:e[0].getValue()===!0?"OR":"AND"}areNonNullModelsEqual(e,t){const n=!e.operator,i=!t.operator;if(!n&&i||n&&!i)return!1;let r;if(n){const s=e,a=t;r=this.areSimpleModelsEqual(s,a)}else{const s=e,a=t;r=s.operator===a.operator&&Nr(s.conditions,a.conditions,(l,u)=>this.areSimpleModelsEqual(l,u))}return r}setModelIntoUi(e,t){if(e==null)return this.resetUiToDefaults(t),Ot.resolve();if(e.operator){const i=e;let o=i.conditions;o==null&&(o=[],le(77));const r=S7(o,this.maxNumConditions),s=this.getNumConditions();if(r<s)this.removeConditionsAndOperators(r);else if(r>s)for(let l=s;l<r;l++)this.createJoinOperatorPanel(),this.createOption();const a=i.operator==="OR";this.eJoinAnds.forEach(l=>l.setValue(!a,!0)),this.eJoinOrs.forEach(l=>l.setValue(a,!0)),o.forEach((l,u)=>{this.eTypes[u].setValue(l.type,!0),this.setConditionIntoUi(l,u)})}else{const i=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(i.type,!0),this.setConditionIntoUi(i,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),Ot.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(le(79),t=1),this.maxNumConditions=t;let n=e.numAlwaysVisibleConditions??1;n<1&&(le(80),n=1),n>t&&(le(81),n=t),this.numAlwaysVisibleConditions=n}createOption(){const e=this.getGui(),t=this.createManagedBean(new fv);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const n=this.createEValue();this.eConditionBodies.push(n),e.appendChild(n),this.putOptionsIntoDropdown(t),this.resetType(t);const i=this.getNumConditions()-1;this.forEachPositionInput(i,o=>this.resetInput(o)),this.addChangedListeners(t,i)}createJoinOperatorPanel(){const e=dn({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),n=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const i=this.eJoinPanels.length-1,o=this.joinOperatorId++;this.resetJoinOperatorAnd(t,i,o),this.resetJoinOperatorOr(n,i,o),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))}createJoinOperator(e,t,n){const i=this.createManagedBean(new w7);e.push(i);const o="ag-filter-condition-operator";return i.addCss(o),i.addCss(`${o}-${n}`),t.appendChild(i.getGui()),i}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>typeof e=="string"?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;for(const n of t)e.addOption(n);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let n=0;n<this.getNumConditions();n++)this.isConditionUiComplete(n)?e=n:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const n=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<n){this.removeConditionsAndOperators(n+1);const i=e+1,o=n-i;o>0&&this.removeConditionsAndOperators(i,o),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((i,o)=>{const r=this.isConditionDisabled(o,e);i.setDisabled(r||this.filterListOptions.length<=1),o===1&&(pc(this.eJoinPanels[0],r),this.eJoinAnds[0].setDisabled(r),this.eJoinOrs[0].setDisabled(r))}),this.eConditionBodies.forEach((i,o)=>{xt(i,this.isConditionBodyVisible(o))});const n=(t??this.getJoinOperator())==="OR";for(const i of this.eJoinAnds)i.setValue(!n,!0);for(const i of this.eJoinOrs)i.setValue(n,!0);this.forEachInput((i,o,r,s)=>{this.setElementDisplayed(i,o<s),this.setElementDisabled(i,this.isConditionDisabled(r,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:n,eConditionBodies:i,eJoinPanels:o,eJoinAnds:r,eJoinOrs:s}=this;this.removeComponents(n,e,t),this.removeElements(i,e,t),this.removeEValues(e,t);const a=Math.max(e-1,0);this.removeElements(o,a,t),this.removeComponents(r,a,t),this.removeComponents(s,a,t)}removeElements(e,t,n){const i=zc(e,t,n);for(const o of i)ki(o)}removeComponents(e,t,n){const i=zc(e,t,n);for(const o of i)ki(o.getGui()),this.destroyBean(o)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let t;if(!this.isReadOnly()){const n=this.getInputs(0)[0];n instanceof Zs&&this.isConditionBodyVisible(0)?t=n.getInputElement():t=this.eTypes[0]?.getFocusableElement()}(t??this.getGui()).focus({preventScroll:!0})}}shouldKeepInvalidInputState(){return!1}afterGuiDetached(){super.afterGuiDetached();const e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column)||this.shouldKeepInvalidInputState())return;e.onStateChange({model:e.model});let t=-1,n=-1,i=!1;const o=this.getJoinOperator();for(let s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))t===-1&&(t=s,n=s);else{const a=s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1),l=s<t;(a||l)&&(this.removeConditionsAndOperators(s,1),i=!0,l&&n--)}let r=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),r=!0),this.shouldAddNewConditionAtEnd(n===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),r=!0),r&&this.updateConditionStatusesAndValues(n,o),i&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=n}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}resetPlaceholder(){const e=this.getLocaleTextFunc(),{filterPlaceholder:t,eTypes:n}=this;this.forEachInput((i,o,r,s)=>{if(!(i instanceof Zs))return;const a=o===0&&s>1?"inRangeStart":o===0?"filterOoo":"inRangeEnd",l=o===0&&s>1?e("ariaFilterFromValue","Filter from value"):o===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value"),u=n[r].getValue(),h=X0(this,t,a,u);i.setInputPlaceholder(h),i.setInputAriaLabel(l)})}setElementValue(e,t,n){e instanceof Zs&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){W0(e)&&xt(e.getGui(),t)}setElementDisabled(e,t){W0(e)&&pc(e.getGui(),t)}attachElementOnChange(e,t){e instanceof Zs&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,n)=>{this.forEachPositionTypeInput(n,t,e)})}forEachPositionInput(e,t){const n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)}forEachPositionTypeInput(e,t,n){const i=rs(t,this.optionsFactory),o=this.getInputs(e);for(let r=0;r<o.length;r++){const s=o[r];s!=null&&n(s,r,e,i)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return rs(t,this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(n=>n==null)||this.positionHasInvalidInputs(e))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinAnds.forEach((t,n)=>this.resetJoinOperatorAnd(t,n,this.joinOperatorId+n)),this.eJoinOrs.forEach((t,n)=>this.resetJoinOperatorOr(t,n,this.joinOperatorId+n)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){const n=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(n).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),n)}resetJoinOperatorOr(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),n)}resetJoinOperator(e,t,n,i,o){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${o}`).setLabel(i),t)}updateJoinOperatorsDisabled(){const e=(t,n)=>this.updateJoinOperatorDisabled(t,n);this.eJoinAnds.forEach(e),this.eJoinOrs.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const n=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((i,o,r)=>{r===t&&this.setElementValue(i,n[o]!=null?n[o]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,n,i)=>{this.setElementValue(t,n===0&&i===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,n=>{this.attachElementOnChange(n,this.listener)}))}hasInvalidInputs(){return!1}positionHasInvalidInputs(e){return!1}isReadOnly(){return!!this.params.readOnly}},bv=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function yv(e){return e?.allowedCharPattern??null}function KF(e,t){const{filter:n,filterTo:i,type:o}=e||{};return[ai(n),ai(i)].slice(0,rs(o,t))}var x7=class extends kh{constructor(){super("bigintFilter",KF,bv),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="bigint",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!el()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){const t=this.eValuesFrom[e],n=this.eValuesTo[e];this.refreshInputPairValidation(t,n)}}refreshInputPairValidation(e,t,n=!1){const{bigintParser:i}=this.params,o=this.getParsedValue(e,i),r=this.getParsedValue(t,i),s=this.isInvalidValue(e,o),a=this.isInvalidValue(t,r),l=n?e:t,u=n?t:e,h=n?s:a,f=n?a:s;let g="";if(h)g=this.getLocaleTextFunc()("invalidBigInt","Invalid BigInt");else if(!s&&!a){const m=F7(o,r,n);m&&(g=this.translate(m,[String(n?t.getValue():e.getValue())]))}l.setCustomValidity(g),f||u.setCustomValidity(""),g.length>0&&this.beans.ariaAnnounce.announceValue(g,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){const t=super.refresh(e),{state:n,additionalEventAttributes:i}=e,o=this.state,r=i?.fromAction;return(r&&r!="apply"||n.model!==o.model||!this.areStatesEqual(n.state,o.state))&&this.refreshInputValidation(),t}setElementValue(e,t,n){super.setElementValue(e,t,n),t===null&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:n}=this,i=yv(e),o=dn({tag:"div",cls:"ag-filter-body",role:"presentation"}),r=this.createFromToElement(o,t,"from",i),s=this.createFromToElement(o,n,"to",i),a=(h,f,g)=>()=>this.refreshInputPairValidation(h,f,g),l=a(r,s,!0);r.onValueChange(l),r.addGuiEventListener("focusin",l);const u=a(r,s,!1);return s.onValueChange(u),s.addGuiEventListener("focusin",u),o}createFromToElement(e,t,n,i){const o=this.createManagedBean(i?new ur({allowedCharPattern:i}):new ur);return o.addCss(`ag-filter-${n}`),o.addCss("ag-filter-filter"),t.push(o),e.appendChild(o.getGui()),o}removeEValues(e,t){const n=i=>this.removeComponents(i,e,t);n(this.eValuesFrom),n(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(n,i,o,r)=>{i<r&&t.push(ai(n.getValue()??null))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(n.filter=String(i[0])),i.length>1&&(n.filterTo=String(i[1])),n}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,n=>t||(t=!n.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}getParsedValue(e,t){const n=e.getValue();return n==null||typeof n=="string"&&n.trim()===""?null:t?t(n):ai(n)}isInvalidValue(e,t){const n=e.getValue();return n!=null&&String(n).trim()!==""&&t===null}};function F7(e,t,n){return e!=null&&t!=null&&e>=t?`strict${n?"Max":"Min"}ValueValidation`:null}var qF=class extends X{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,n=new wv;this.optionsFactory=n,n.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(n,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if(e.source==="colDef"){const t=e.filterParams,n=this.optionsFactory;n.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:n,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(t==null)return!0;const{operator:n}=t,i=[];if(n){const s=t;i.push(...s.conditions??[])}else i.push(t);const o=n&&n==="OR"?"some":"every",r=this.params.getValue(e.node);return i[o](s=>this.individualConditionPasses(e,s,r))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:n,maxNumConditions:i}}=e;if(t==null)return;let r=G0(t)?t.conditions:[t];const s=n?.map(h=>typeof h=="string"?h:h.displayKey)??this.defaultOptions;if(!(!r||r.every(h=>s.find(f=>f===h.type)!==void 0))){this.params={...e,model:null},e.onModelChange(null);return}let l=!1;const u=this.filterType;if((r&&!r.every(h=>h.filterType===u)||t.filterType!==u)&&(r=r.map(h=>({...h,filterType:u})),l=!0),typeof i=="number"&&r&&r.length>i&&(r=r.slice(0,i),l=!0),l){const h=r.length>1?{...t,filterType:u,conditions:r}:{...r[0],filterType:u};this.params={...e,model:h},e.onModelChange(h)}}individualConditionPasses(e,t,n){const i=this.optionsFactory,o=this.mapValuesFromModel(t,i),r=i.getCustomOption(t.type),s=y7(r,o,n);return s??(n==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(o,n,t,e))}},Sv=class extends qF{evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:n,includeBlanksInGreaterThan:i,includeBlanksInLessThan:o,includeBlanksInRange:r}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(n)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(i)return!0;break;case"lessThan":case"lessThanOrEqual":if(o)return!0;break;case"inRange":if(r)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,n){const i=n.type;if(!this.isValid(t))return i==="notEqual"||i==="notBlank";const o=this.comparator(),r=e[0]!=null?o(e[0],t):0;switch(i){case"equals":return r===0;case"notEqual":return r!==0;case"greaterThan":return r>0;case"greaterThanOrEqual":return r>=0;case"lessThan":return r<0;case"lessThanOrEqual":return r<=0;case"inRange":{const s=o(e[1],t);return this.params.filterParams.inRangeInclusive?r>=0&&s<=0:r>0&&s<0}case"blank":return Mh(t);case"notBlank":return!Mh(t);default:return le(76,{filterModelType:i}),!0}}},Rv={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},P7={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},Lh=class extends X{constructor(e,t,n){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=n}getModelAsString(e,t){const n=this.getLocaleTextFunc(),i=t==="filterToolPanel";if(!e)return i?io(this,"filterSummaryInactive"):null;if(e.operator!=null){const r=e,a=(r.conditions??[]).map(u=>this.getModelAsString(u,t)),l=r.operator==="AND"?"andCondition":"orCondition";return a.join(` ${io(this,l)} `)}else{if(e.type==="blank"||e.type==="notBlank")return i?io(this,e.type==="blank"?"filterSummaryBlank":"filterSummaryNotBlank"):n(e.type,e.type);{const r=e,s=this.optionsFactory.getCustomOption(r.type),{displayKey:a,displayName:l,numberOfInputs:u}=s||{};return a&&l&&u===0?n(a,l):this.conditionToString(r,i,r.type==="inRange"||u===2,a,l)}}}updateParams(e){const{optionsFactory:t,filterParams:n}=e;this.optionsFactory=t,this.filterParams=n}conditionForToolPanel(e,t,n,i,o,r){let s;const a=this.getTypeKey(e);return a&&(s=io(this,a)),o&&r&&(s=this.getLocaleTextFunc()(o,r)),s!=null?t?`${s} ${io(this,"filterSummaryInRangeValues",[n(),i()])}`:`${s} ${n()}`:null}getTypeKey(e){const t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},QF=class extends Lh{constructor(e,t){super(e,t,t.bigintFormatter),this.filterTypeKeys=Rv}conditionToString(e,t,n,i,o){const{filter:r,filterTo:s,type:a}=e,l=this.formatValue.bind(this),u=ai(r),h=ai(s);if(t){const f=this.conditionForToolPanel(a,n,()=>l(u),()=>l(h),i,o);if(f!=null)return f}return n?`${l(u)}-${l(h)}`:r!=null?l(u):`${a}`}},E7=class extends Sv{constructor(){super(KF,bv),this.filterType="bigint",this.FilterModelFormatterClass=QF}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return ai(e)!==null}},xv=class extends X{constructor(e){super(),this.params=e,this.eInput=ge,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new ur(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const n=i=>this.onValueChanged(i);this.addManagedListeners(t,{input:n,keydown:n})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t,placeholder:n}){const{eInput:i}=this;i.setInputAriaLabel(e),t!==void 0&&i.setAutoComplete(t),i.toggleCss("ag-floating-filter-search-icon",!!n),i.setInputPlaceholder(n)}};function Fv(e){const t=e?.trim();return t===""?e:t}function YF(e,t){const{filter:n,filterTo:i,type:o}=e||{};return[n||null,i||null].slice(0,rs(o,t))}var ZF=class extends Ft{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let n;t?n=e.conditions[0]:n=e,this.lastType=n.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const n=e;return this.isTypeEditable(n.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),t){const n=e;this.onModelUpdated(n.model)}}setParams(e){const t=new wv;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const n=this.optionsFactory.defaultOption;t||(this.lastType=n),this.readOnly=!!e.filterParams.readOnly;const i=this.isTypeEditable(n);this.setEditable(i)}refresh(e){this.params=e;const t=e,n=this.reactive;if((!n||t.source==="colDef")&&this.updateParams(e),n){const{source:i,model:o}=t;if(i==="dataChanged"||i==="ui")return;this.onModelUpdated(o)}}updateParams(e){const t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}isTypeEditable(e){return!!e&&!this.readOnly&&rs(e,this.optionsFactory)===1}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},D7={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},Pv=class extends ZF{constructor(){super(...arguments),this.eFloatingFilterInputContainer=ge,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(D7)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){const{inputSvc:t,defaultDebounceMs:n,readOnly:i}=this,{filterPlaceholder:o,column:r,browserAutoComplete:s,filterParams:a}=e,l=this.lastType??this.optionsFactory.defaultOption,u=e.filterParams.filterPlaceholder,h=o===!0?X0(this,u,"filterOoo",l):o||void 0;if(t.setParams({ariaLabel:this.getAriaLabel(r),autoComplete:s??!1,placeholder:h}),this.applyActive=Zd(a),!i){const f=Jp(a,n);t.setValueChangedListener(gn(this,this.syncUpWithParentFilter.bind(this),f))}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,n=t.getValue();Rn(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(n,!0)}syncUpWithParentFilter(e){const t=e.key===K.ENTER,n=this.reactive;if(n&&this.params.onUiChange(),this.applyActive&&!t)return;const{inputSvc:i,params:o,lastType:r}=this;let s=i.getValue();if(o.filterParams.trimInput&&(s=Fv(s),i.setValue(s,!0)),n){const a=o,l=a.model,u=this.convertValue(s),h=u==null?null:{...l??{filterType:this.filterType,type:r??this.optionsFactory.defaultOption},filter:u};a.onModelChange(h,{afterFloatingFilter:!0})}else o.parentFilterInstance(a=>{a?.onFloatingFilterChanged(r||null,s||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},T7=class extends Pv{constructor(){super(...arguments),this.FilterModelFormatterClass=QF,this.filterType="bigint",this.defaultOptions=bv}updateParams(e){const t=e.filterParams;yv(t)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),this.bigintParser=t?.bigintParser,super.updateParams(e)}createFloatingFilterInputService(e){const t=e.filterParams;this.allowedCharPattern=yv(t),this.bigintParser=t?.bigintParser;const n=this.allowedCharPattern?{allowedCharPattern:this.allowedCharPattern}:void 0;return this.createManagedBean(new xv({config:n}))}convertValue(e){return e==null||e===""?null:this.bigintParser?this.bigintParser(e):ai(e)}},JF=".ag-input-field-input",XF=class{constructor(e,t,n,i,o,r){this.context=e,this.eParent=o,this.alive=!0,this.debouncedReport=gn({isAlive:()=>this.alive},e1,500),this.timeoutHandle=null,__(t,n,i)?.newAgStackInstance().then(a=>{if(!this.alive){e.destroyBean(a);return}if(this.dateComp=a,!a)return;o.appendChild(a.getGui()),a?.afterGuiAttached?.();const{tempValue:l,disabled:u}=this;l&&a.setDate(l),u!=null&&a.setDisabled?.(u),r?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){const t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){const t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){xt(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}setCustomValidity(e,t=!1){const n=this.dateComp?.getGui().querySelector(JF);if(n&&"setCustomValidity"in n){const i=e.length>0;n.setCustomValidity(e),i?t?this.timeoutHandle=this.debouncedReport(n):e1(n):this.timeoutHandle&&window.clearTimeout(this.timeoutHandle),vp(n,i)}}getValidity(){return this.dateComp?.getGui().querySelector(JF)?.validity}};function e1(e){e.reportValidity()}var Ev=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function t1(e,t){const{dateFrom:n,dateTo:i,type:o}=e||{};return[n&&Qn(n,void 0,!0)||null,i&&Qn(i,void 0,!0)||null].slice(0,rs(o,t))}var n1=1e3,i1=1/0,A7=class extends kh{constructor(){super("dateFilter",t1,Ev),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=n1,this.maxValidYear=i1,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!el()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const t=(l,u)=>{const h=e[l];if(h!=null)if(isNaN(h))le(82,{param:l});else return h==null?u:Number(h);return u},n=t("minValidYear",n1),i=t("maxValidYear",i1);this.minValidYear=n,this.maxValidYear=i,n>i&&le(83);const{minValidDate:o,maxValidDate:r}=e,s=o instanceof Date?o:Qn(o);this.minValidDate=s;const a=r instanceof Date?r:Qn(r);this.maxValidDate=a,s&&a&&s>a&&le(84)}refreshInputValidation(){for(let e=0;e<this.dateConditionFromComps.length;e++)this.refreshInputPairValidation(e,!1,!0)}refreshInputPairValidation(e,t=!1,n=!1){const{dateConditionFromComps:i,dateConditionToComps:o,beans:r}=this,s=i[e],a=o[e],l=rs(this.getConditionType(e),this.optionsFactory),u=s.getDate(),h=a.getDate(),f=l>=2?I7(u,h,t):null,g=f?this.translate(f,[String(t?h:u)]):"",m=!el()&&!n;(t?s:a).setCustomValidity(g,m),(t?a:s).setCustomValidity("",m),g.length>0&&r.ariaAnnounce.announceValue(g,"dateFilter")}createDateCompWrapper(e,t,n){const{beans:{userCompFactory:i,context:o,gos:r},params:s}=this,a=n==="from",l=new XF(o,i,s.colDef,Ue(r,{onDateChanged:()=>{this.refreshInputPairValidation(t,a),this.onUiChanged()},onFocusIn:()=>this.refreshInputPairValidation(t,a),filterParams:s,location:"filter"}),e);return this.addDestroyFunc(()=>l.destroy()),l}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}setElementValue(e,t){e.setDate(t),t||e.setCustomValidity("")}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){const e=dn({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e}createFromToElement(e,t,n,i){const o=dn({tag:"div",cls:`ag-filter-${i} ag-filter-date-${i}`});t.push(o),e.appendChild(o),n.push(this.createDateCompWrapper(o,t.length-1,i))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),zc(this.eConditionPanelsFrom,e,t),zc(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,n){const i=zc(e,t,n);for(const o of i)o.destroy()}isValidDateValue(e){if(e===null)return!1;const{minValidDate:t,maxValidDate:n,minValidYear:i,maxValidYear:o}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<i)return!1;if(n){if(e>n)return!1}else if(e.getUTCFullYear()>o)return!1;return!0}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=t.getDate()!=null&&!(t.getValidity()?.valid??!0))),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,n=>t||(t=!(n.getValidity()?.valid??!0))),t}canApply(e){return!this.hasInvalidInputs()}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachPositionInput(e,(n,i,o,r)=>{!t||i>=r||t&&(t=this.isValidDateValue(n.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),n={},{params:i,filterType:o}=this,r=this.getValues(e),s=i.useIsoSeparator?"T":" ";return r.length>0&&(n.dateFrom=qn(r[0],!0,s)),r.length>1&&(n.dateTo=qn(r[1],!0,s)),{dateFrom:null,dateTo:null,filterType:o,type:t,...n}}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}resetPlaceholder(){const e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput(i=>{i.setInputPlaceholder(t),i.setInputAriaLabel(n)})}getInputs(e){const{dateConditionFromComps:t,dateConditionToComps:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(n,i,o,r)=>{i<r&&t.push(n.getDate())}),t}translate(e,t){let n=e;return e==="lessThan"?n="before":e==="greaterThan"&&(n="after"),super.translate(n,t)}};function I7(e,t,n){return e!=null&&t!=null&&e>=t?`${n?"max":"min"}DateValidation`:null}var o1=class extends Lh{constructor(e,t){super(e,t,n=>{const{dataTypeSvc:i,valueSvc:o}=this.beans,r=t.column,s=i?.getDateFormatterFunction(r),a=s?s(n??void 0):n;return o.formatValue(r,null,a)}),this.filterTypeKeys=Rv}conditionToString(e,t,n,i,o){const{type:r}=e,s=Qn(e.dateFrom),a=Qn(e.dateTo),l=this.filterParams.inRangeFloatingFilterDateFormat,u=t?this.formatValue.bind(this):g=>hG(g,l),h=()=>s!==null?u(s):"null",f=()=>a!==null?u(a):"null";if(s==null&&a==null)return io(this,r);if(t){const g=this.conditionForToolPanel(r,n,h,f,i,o);if(g!=null)return g}return n?`${h()}-${f()}`:s!=null?u(s):`${r}`}};function M7(e,t){const n=t;return n<e?-1:n>e?1:0}var k7=class extends Sv{constructor(){super(t1,Ev),this.filterType="date",this.FilterModelFormatterClass=o1,this.filterTypeToRangeCache=new Map}getOrRefreshRangeCacheItem(e,t){const{filterTypeToRangeCache:n}=this,i=Date.now();let o=n.get(e);if(o&&o.expires<i&&(o=void 0),!o){const[r,s]=t(new Date(i),new Date(i));o={from:r,to:s,expires:Gi(new Date(i)).getTime()-i},n.set(e,o)}return o}comparator(){return this.params.filterParams.comparator??M7}isValid(e){const t=this.params.filterParams.isValidDate;return!t||t(e)}evaluateNonNullValue(e,t,n){const i=n.type,o=this.comparator();if(!this.isValid(t))return i==="notEqual"||i==="notBlank";const r=i,s=X7[r];if(s){const{from:a,to:l}=this.getOrRefreshRangeCacheItem(r,s);return o(a,t)>=0&&o(l,t)<0}return super.evaluateNonNullValue(e,t,n)}},L7=1,Oh=null,O7=()=>{if(Oh!=null)return Oh;let e;const t=typeof navigator>"u"?void 0:navigator.languages?.[0]??navigator.language;if(t&&typeof Intl<"u"&&typeof Intl.Locale=="function")try{e=new Intl.Locale(t).getWeekInfo?.()?.firstDay}catch{e=void 0}return Oh=e==null?L7:e%7,Oh},vi=e=>(e.setHours(0,0,0,0),e),_h=e=>{const t=e.getDay(),n=O7(),i=(t-n+7)%7;return e.setDate(e.getDate()-i),vi(e)},Nh=(e,t=1)=>(e.setDate(e.getDate()-t),e),Gi=e=>(e.setDate(e.getDate()+1),vi(e)),r1=e=>(_h(e),e.setDate(e.getDate()+6),Gi(e)),Bh=e=>(e.setDate(1),vi(e)),Dv=e=>(e.setDate(1),e.setMonth(e.getMonth()+1),vi(e)),Tv=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3),Bh(e)},s1=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3+2),Dv(e)},Av=e=>(e.setMonth(0,1),vi(e)),a1=e=>(e.setMonth(12,0),Gi(e)),fl=e=>Nh(e),Iv=e=>fl(_h(e)),Mv=e=>fl(Bh(e)),kv=e=>fl(Tv(e)),Lv=(e,t)=>[vi(e),Gi(t)],_7=(e,t)=>Lv(fl(e),fl(t)),Ov=(e,t)=>[_h(e),r1(t)],N7=(e,t)=>Ov(Iv(e),Iv(t)),_v=(e,t)=>[Bh(e),Dv(t)],B7=(e,t)=>_v(Mv(e),Mv(t)),Nv=(e,t)=>[Tv(e),s1(t)],H7=(e,t)=>Nv(kv(e),kv(t)),Bv=(e,t)=>[Av(e),a1(t)],G7=(e,t)=>[Av(e),Gi(t)],V7=(e,t)=>[vi(Nh(e,7)),Gi(t)],W7=(e,t)=>[vi(Nh(e,30)),Gi(t)],z7=(e,t)=>[vi(Nh(e,90)),Gi(t)],U7=(e,t)=>(e.setFullYear(e.getFullYear()-1),e.setMonth(e.getMonth()+6),[vi(e),Gi(t)]),$7=(e,t)=>(e.setFullYear(e.getFullYear()-1),[vi(e),Gi(t)]),j7=(e,t)=>(e.setFullYear(e.getFullYear()-2),[vi(e),Gi(t)]),K7=(e,t)=>(e.setFullYear(e.getFullYear()-1),t.setFullYear(t.getFullYear()-1),Bv(e,t)),q7=(e,t)=>(e.setFullYear(e.getFullYear()+1),t.setFullYear(t.getFullYear()+1),Bv(e,t)),Q7=(e,t)=>(e.setMonth(e.getMonth()+3),t.setMonth(t.getMonth()+3),Nv(e,t)),Y7=(e,t)=>(e.setMonth(e.getMonth()+1),t.setMonth(t.getMonth()+1),_v(e,t)),Z7=(e,t)=>(e.setDate(e.getDate()+7),t.setDate(t.getDate()+7),Ov(e,t)),J7=(e,t)=>(e.setDate(e.getDate()+1),t.setDate(t.getDate()+1),Lv(e,t)),X7={today:Lv,yesterday:_7,tomorrow:J7,thisWeek:Ov,lastWeek:N7,nextWeek:Z7,thisMonth:_v,lastMonth:B7,nextMonth:Y7,thisQuarter:Nv,lastQuarter:H7,nextQuarter:Q7,thisYear:Bv,lastYear:K7,nextYear:q7,yearToDate:G7,last7Days:V7,last30Days:W7,last90Days:z7,last6Months:U7,last12Months:$7,last24Months:j7,setStartOfDay:vi,setStartOfWeek:_h,setStartOfNextDay:Gi,setStartOfNextWeek:r1,setStartOfMonth:Bh,setStartOfNextMonth:Dv,setStartOfQuarter:Tv,setStartOfNextQuarter:s1,setStartOfYear:Av,setStartOfNextYear:a1,setPreviousDay:fl,setPreviousWeek:Iv,setPreviousMonth:Mv,setPreviousQuarter:kv},e8={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},t8=class extends ZF{constructor(){super(e8,[Th]),this.eReadOnlyText=ge,this.eDateWrapper=ge,this.FilterModelFormatterClass=o1,this.filterType="date",this.defaultOptions=Ev}setParams(e){super.setParams(e),this.createDateComponent();const t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}updateParams(e){super.updateParams(e),this.dateComp.updateParams(this.getDateComponentParams()),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){const n=e?Qn(e.dateFrom):null;this.dateComp.setDate(n),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){xt(this.eDateWrapper,e),xt(this.eReadOnlyText.getGui(),!e)}onModelUpdated(e){super.setLastTypeFromModel(e),this.updateCompOnModelChange(e)}onDateChanged(){const e=this.dateComp.getDate();if(this.reactive){const t=this.params;t.onUiChange();const n=t.model,i=qn(e),o=i==null?null:{...n??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:i};t.onModelChange(o,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){const{filterParams:e}=this.params,t=Jp(e,this.defaultDebounceMs);return Ue(this.gos,{onDateChanged:gn(this,this.onDateChanged.bind(this),t),filterParams:e,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:n,params:{column:i}}=this;this.dateComp=new XF(e,t,i.getColDef(),this.getDateComponentParams(),n,o=>{o.setInputAriaLabel(this.getAriaLabel(i))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},n8={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},i8=class extends Ft{constructor(){super(n8,[Th]),this.eDateInput=ge,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this),focusin:this.handleFocusIn.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}handleFocusIn(){this.params.onFocusIn?.()}setParams(e){const t=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=n&&Kr();const{minValidYear:i,maxValidYear:o,minValidDate:r,maxValidDate:s,buttons:a,includeTime:l,colDef:u}=e.filterParams||{},h=this.beans.dataTypeSvc,f=l??h?.getDateIncludesTimeFlag?.(u.cellDataType)??!1;n?f?(t.type="datetime-local",t.step="1"):t.type="date":t.type="text";const g=l1(r,i,!0),m=l1(s,o,!1);g&&m&&g.getTime()>m.getTime()&&le(87),g&&(t.min=qn(g,f)),m&&(t.max=qn(m,f)),this.isApply=e.location==="floatingFilter"&&!!a?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return Qn(this.eDateInput.getValue())}setDate(e){const t=this.params.filterParams.colDef.cellDataType,n=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(qn(e,n))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e?.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}};function l1(e,t,n){return e&&t&&le(n?85:86),e instanceof Date?e:e?Qn(e):t?Qn(`${t}-${n?"01-01":"12-31"}`):null}var Hv=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function Gv(e){return e?.allowedCharPattern??null}function Hh(e){return e==null||isNaN(e)?null:e}function c1(e,t){const{filter:n,filterTo:i,type:o}=e||{};return[Hh(n),Hh(i)].slice(0,rs(o,t))}var o8=class extends kh{constructor(){super("numberFilter",c1,Hv),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!el()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){const t=this.eValuesFrom[e],n=this.eValuesTo[e];this.refreshInputPairValidation(t,n)}}refreshInputPairValidation(e,t,n=!1){const i=this.params.numberParser,o=d1(i,e),r=d1(i,t),s=r8(o,r,n),a=s?this.translate(s,[String(n?r:o)]):"";(n?e:t).setCustomValidity(a),(n?t:e).setCustomValidity(""),a.length>0&&this.beans.ariaAnnounce.announceValue(a,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){const t=super.refresh(e),{state:n,additionalEventAttributes:i}=e,o=this.state,r=i?.fromAction;return(r&&r!="apply"||n.model!==o.model||!this.areStatesEqual(n.state,o.state))&&this.refreshInputValidation(),t}setElementValue(e,t,n){const{numberFormatter:i}=this.params,o=!n&&i?i(t??null):t;super.setElementValue(e,o),o===null&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:n}=this,i=Gv(e),o=dn({tag:"div",cls:"ag-filter-body",role:"presentation"}),r=this.createFromToElement(o,t,"from",i),s=this.createFromToElement(o,n,"to",i),a=(h,f,g)=>()=>this.refreshInputPairValidation(h,f,g),l=a(r,s,!0);r.onValueChange(l),r.addGuiEventListener("focusin",l);const u=a(r,s,!1);return s.onValueChange(u),s.addGuiEventListener("focusin",u),o}createFromToElement(e,t,n,i){const o=this.createManagedBean(i?new ur({allowedCharPattern:i}):new hv);return o.addCss(`ag-filter-${n}`),o.addCss("ag-filter-filter"),t.push(o),e.appendChild(o.getGui()),o}removeEValues(e,t){const n=i=>this.removeComponents(i,e,t);n(this.eValuesFrom),n(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(n,i,o,r)=>{i<r&&t.push(Hh(u1(this.params.numberParser,n.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(n.filter=i[0]),i.length>1&&(n.filterTo=i[1]),n}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,n=>t||(t=!n.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}};function u1(e,t){if(typeof t=="number")return t;let n=nr(t);return n!=null&&n.trim()===""&&(n=null),e?e(n):n==null||n.trim()==="-"?null:Number.parseFloat(n)}function d1(e,t){return Hh(u1(e,t.getValue(!0)))}function r8(e,t,n){return e!=null&&t!=null&&e>=t?`strict${n?"Max":"Min"}ValueValidation`:null}var h1=class extends Lh{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=Rv}conditionToString(e,t,n,i,o){const{filter:r,filterTo:s,type:a}=e,l=this.formatValue.bind(this);if(t){const u=this.conditionForToolPanel(a,n,()=>l(r),()=>l(s),i,o);if(u!=null)return u}return n?`${l(r)}-${l(s)}`:r!=null?l(r):`${a}`}},s8=class extends Sv{constructor(){super(c1,Hv),this.filterType="number",this.FilterModelFormatterClass=h1}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}},a8=class extends X{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new hv),this.eTextInput=this.createManagedBean(new ur),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),n=this.eTextInput.getGui();e.appendChild(t),e.appendChild(n),this.setupListeners(t,i=>this.onValueChanged(i)),this.setupListeners(n,i=>this.onValueChanged(i))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams({ariaLabel:e,autoComplete:t,placeholder:n}){this.setAriaLabel(e),t!==void 0&&this.setAutoComplete(t),this.setPlaceholder(this.eNumberInput,n),this.setPlaceholder(this.eTextInput,n)}setPlaceholder(e,t){e.toggleCss("ag-floating-filter-search-icon",!!t),e.setInputPlaceholder(t)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},l8=class extends Pv{constructor(){super(...arguments),this.FilterModelFormatterClass=h1,this.filterType="number",this.defaultOptions=Hv}updateParams(e){Gv(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return this.allowedCharPattern=Gv(e.filterParams),this.allowedCharPattern?this.createManagedBean(new xv({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new a8)}convertValue(e){return e?Number(e):null}},Vv=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],c8=class extends kh{constructor(){super("textFilter",YF,Vv),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(n.filter=i[0]),i.length>1&&(n.filterTo=i[1]),n}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(n,i,o,r)=>{i<r&&t.push(nr(n.getValue()))}),t}createEValue(){const e=dn({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:n}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,n,"to"),e}createFromToElement(e,t,n){const i=this.createManagedBean(new ur);i.addCss(`ag-filter-${n}`),i.addCss("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())}removeEValues(e,t){const n=r=>this.removeComponents(r,e,t),{eValuesFrom:i,eValuesTo:o}=this;n(i),n(o)}},f1=class extends Lh{constructor(){super(...arguments),this.filterTypeKeys=P7}conditionToString(e,t,n,i,o){const{filter:r,filterTo:s,type:a}=e;if(t){const l=h=>()=>io(this,"filterSummaryTextQuote",[h]),u=this.conditionForToolPanel(a,n,l(r),l(s),i,o);if(u!=null)return u}return n?`${r}-${s}`:r!=null?`${r}`:`${a}`}},u8=({filterOption:e,value:t,filterText:n})=>{if(n==null)return!1;switch(e){case"contains":return t.includes(n);case"notContains":return!t.includes(n);case"equals":return t===n;case"notEqual":return t!=n;case"startsWith":return t.indexOf(n)===0;case"endsWith":{const i=t.lastIndexOf(n);return i>=0&&i===t.length-n.length}default:return!1}},d8=e=>e,h8=e=>e==null?null:e.toString().toLowerCase(),f8=class extends qF{constructor(){super(YF,Vv),this.filterType="text",this.FilterModelFormatterClass=f1}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??u8,this.formatter=t.textFormatter??(t.caseSensitive?d8:h8)}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,n,i){const o=e.map(g=>this.formatter(g))||[],r=this.formatter(t),{api:s,colDef:a,column:l,context:u,filterParams:{textFormatter:h}}=this.params;if(n.type==="blank")return Mh(t);if(n.type==="notBlank")return!Mh(t);const f={api:s,colDef:a,column:l,context:u,node:i.node,data:i.data,filterOption:n.type,value:r,textFormatter:h};return o.some(g=>this.matcher({...f,filterText:g}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=n=>{const i={...n},{filter:o,filterTo:r}=n;return o&&(i.filter=Fv(o)??null),r&&(i.filterTo=Fv(r)??null),i};return G0(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},g8=class extends Pv{constructor(){super(...arguments),this.FilterModelFormatterClass=f1,this.filterType="text",this.defaultOptions=Vv}createFloatingFilterInputService(){return this.createManagedBean(new xv)}};function p8(e){return!!e.quickFilter?.isFilterPresent()}function m8(e){return e.quickFilter?.getText()}function v8(e){e.quickFilter?.resetCache()}var C8=class extends X{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){const e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",n=>this.setFilter(n.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){const{autoColSvc:e,colModel:t,gos:n,pivotResultCols:i}=this.beans,o=t.isPivotMode(),r=e?.getColumns(),s=t.getColDefCols();let a=(o&&!n.get("applyQuickFilterBeforePivotOrAgg")?i?.getPivotResultCols()?.list:s)??[];r&&(a=a.concat(r)),this.colsToUse=n.get("includeHiddenColumnsInQuickFilter")?a:a.filter(l=>l.isVisible()||l.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(n=>t?this.doesRowPassCache(e,n):this.doesRowPassNoCache(e,n))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseFilter(e){return Pe(e)?e.toUpperCase():null}setFilter(e){if(e!=null&&typeof e!="string"){le(70,{newFilter:e});return}const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),n=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,n&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(n=>{const i=this.getTextForColumn(n,e);return Pe(i)&&i.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let n;e?(this.checkGenerateAggText(t),n=t.quickFilterAggregateText):n=this.getAggText(t);const{quickFilterParts:i,matcher:o}=this;return o(i,n)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let n=this.beans.filterValueSvc.getValue(e,t);const i=e.getColDef();if(i.getQuickFilterText){const o=Ue(this.gos,{value:n,node:t,data:t.data,column:e,colDef:i});n=i.getQuickFilterText(o)}return Pe(n)?n.toString().toUpperCase():null}getAggText(e){const t=[];for(const n of this.colsToUse){const i=this.getTextForColumn(n,e);Pe(i)&&t.push(i)}return t.join(`
64
- `)}},w8={moduleName:"ClientSideRowModelFilter",version:Re,rowModels:["clientSide"],beans:[hz]},Wv={moduleName:"FilterCore",version:Re,beans:[l7],apiFunctions:{isAnyFilterPresent:s7,onFilterChanged:a7},css:[H6],dependsOn:[w8]},g1={moduleName:"FilterValue",version:Re,beans:[m7]},Uc={moduleName:"ColumnFilter",version:Re,beans:[r7,p7],dynamicBeans:{headerFilterCellCtrl:L6},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:G6,getColumnFilterInstance:V6,destroyFilter:W6,setFilterModel:z6,getFilterModel:U6,getColumnFilterModel:$6,setColumnFilterModel:j6,showColumnFilter:K6,hideColumnFilter:q6,getColumnFilterHandler:Q6,doFilterAction:Y6},dependsOn:[Wv,Dh,g1,B6]},b8={moduleName:"CustomFilter",version:Re,userComponents:{agReadOnlyFloatingFilter:C7},dependsOn:[Uc]},y8={moduleName:"TextFilter",version:Re,dependsOn:[Uc],userComponents:{agTextColumnFilter:{classImp:c8,params:{useForm:!0}},agTextColumnFloatingFilter:g8},dynamicBeans:{agTextColumnFilterHandler:f8}},S8={moduleName:"NumberFilter",version:Re,dependsOn:[Uc],userComponents:{agNumberColumnFilter:{classImp:o8,params:{useForm:!0}},agNumberColumnFloatingFilter:l8},dynamicBeans:{agNumberColumnFilterHandler:s8}},R8={moduleName:"BigIntFilter",version:Re,dependsOn:[Uc],userComponents:{agBigIntColumnFilter:{classImp:x7,params:{useForm:!0}},agBigIntColumnFloatingFilter:T7},dynamicBeans:{agBigIntColumnFilterHandler:E7}},x8={moduleName:"DateFilter",version:Re,dependsOn:[Uc],userComponents:{agDateColumnFilter:{classImp:A7,params:{useForm:!0}},agDateInput:i8,agDateColumnFloatingFilter:t8},dynamicBeans:{agDateColumnFilterHandler:k7}},F8={moduleName:"QuickFilterCore",version:Re,rowModels:["clientSide"],beans:[C8],dependsOn:[Wv,g1]},P8={moduleName:"QuickFilter",version:Re,apiFunctions:{isQuickFilterPresent:p8,getQuickFilter:m8,resetQuickFilter:v8},dependsOn:[F8]},E8={moduleName:"ExternalFilter",version:Re,dependsOn:[Wv]},D8=class extends X{constructor(e,t,n){super(),this.id=e,this.parentCache=t,this.params=n,this.state="needsLoading",this.version=0,this.startRow=e*n.blockSize,this.endRow=this.startRow+n.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})}isRequestMostRecentAndLive(e){const t=e===this.version,n=this.isAlive();return t&&n}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:n,beans:i,rowNodes:o}=this;for(let r=0;r<e;r++){const s=n+r,a=new qr(i);a.setRowHeight(t),a.uiLevel=0,a.setRowIndex(s),a.setRowTop(t*s),o.push(a)}}getBlockStateJson(){const{id:e,startRow:t,endRow:n,state:i}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:n,pageStatus:i}}}setDataAndId(e,t,n){Pe(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();if(Vt(this.params.datasource.getRows)){le(90);return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:n,params:{sortModel:i,filterModel:o},gos:r}=this;return Ue(r,{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,n),failCallback:this.pageLoadFailed.bind(this,n),sortModel:i,filterModel:o})}forEachNode(e,t,n){this.rowNodes.forEach((i,o)=>{this.startRow+o<n&&e(i,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const n=e-this.startRow;return this.rowNodes[n]}processServerResult(e){const{rowNodes:t,beans:n}=this;t.forEach((o,r)=>{const s=e.rowData?e.rowData[r]:void 0;!o.id&&o.alreadyRendered&&s&&(t[r]=new qr(n),t[r].setRowIndex(o.rowIndex),t[r].setRowTop(o.rowTop),t[r].setRowHeight(o.rowHeight),o._destroy(!0)),this.setDataAndId(t[r],s,this.startRow+r)});const i=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,i)}destroy(){const e=this.rowNodes;for(let t=0,n=e.length;t<n;t++)e[t]._destroy(!1);e.length=0,super.destroy()}},T8=2,A8=class extends X{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const n=Math.floor(e/this.params.blockSize);let i=this.blocks[n];if(!i){if(t)return;i=this.createBlock(n)}return i.getRow(e)}createBlock(e){const t=this.params,n=this.createBean(new D8(e,this,t));return this.blocks[n.id]=n,this.blockCount++,this.purgeBlocksIfNeeded(n),t.rowNodeBlockLoader.addBlock(n),n}refreshCache(){if(this.blockCount==0){this.purgeCache();return}for(const t of this.getBlocksInOrder())t.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){for(const e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(Vr(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(s=>s!=e),n=(s,a)=>a.lastAccessed-s.lastAccessed;t.sort(n);const i=this.params.maxBlocksInCache>0,o=i?this.params.maxBlocksInCache-1:null,r=T8-1;t.forEach((s,a)=>{const l=s.state==="needsLoading"&&a>=r,u=i?a>=o:!1;if(l||u){if(this.isBlockCurrentlyDisplayed(s)||this.isBlockFocused(s))return;this.removeBlockFromCache(s)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;const{startRow:n,endRow:i}=e;return t.rowIndex>=n&&t.rowIndex<i}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:n}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,n-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:n,overflowSize:i}=this.params,r=(e.id+1)*n+i;this.rowCount<r&&(this.rowCount=r)}}setRowCount(e,t){this.rowCount=e,Pe(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};for(const n of this.getBlocksInOrder())n.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){const e=(n,i)=>n.id-i.id;return Object.values(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];for(const t of this.getBlocksInOrder())t.id*this.params.blockSize>=this.rowCount&&e.push(t);if(e.length>0)for(const t of e)this.destroyBlock(t)}purgeCache(){for(const e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const n=[];let i=-1,o=!1;const r={value:0};let s=!1;for(const l of this.getBlocksInOrder())if(!s){if(o&&i+1!==l.id){s=!0;continue}i=l.id,l.forEachNode(u=>{const h=u===e||u===t;(o||h)&&n.push(u),h&&(o=!o)},r,this.rowCount)}return s||o?[]:n}},I8=class extends X{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.hierarchical=!1}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if(this.gos.get("rowModelType")!=="infinite")return;const e=this.beans,t=new qr(e);this.rootNode=t,t.level=-1,this.rowHeight=Vs(e),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache())}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy(),this.rootNode=null}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=Vs(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;this.cacheParams?e=!uc(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]):e=!0,e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getOverlayType(){return this.infiniteCache?.getRowCount()===0?this.beans.filterManager?.isAnyFilterPresent()?"noMatchingRows":"noRows":null}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;qa(this.gos)!=null||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:n,rowNodeBlockLoader:i,eventSvc:o,gos:r}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:n?.getSortModel()??[],rowNodeBlockLoader:i,initialRowCount:r.get("infiniteInitialRowCount"),maxBlocksInCache:r.get("maxBlocksInCache"),rowHeight:Vs(e),overflowSize:r.get("cacheOverflowSize"),blockSize:r.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new A8(this.cacheParams)),o.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){const t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}resetRowHeights(){}onRowHeightChanged(){}};function M8(e){Xd(e)?.refreshCache()}function k8(e){Xd(e)?.purgeCache()}function L8(e){return Xd(e)?.getRowCount()}var O8=class extends X{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=SO(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=gn(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){Fo(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){Vr(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(n=>n.state==="needsLoading").slice(0,e);this.activeBlockLoadsCount+=t.length;for(const n of t)n.load();this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:n,state:i}=t.getBlockStateJson();e[n]=i}),e}printCacheStatus(){Vr(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},_8={moduleName:"InfiniteRowModelCore",version:Re,rowModels:["infinite"],beans:[I8,O8]},N8={moduleName:"InfiniteRowModel",version:Re,apiFunctions:{refreshInfiniteCache:M8,purgeInfiniteCache:k8,getInfiniteRowCount:L8},dependsOn:[_8,rz]},B8=class extends X{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){const n=this.wrapSvc?.wrap(e,t)??t,i=!Nc.has(e),o=i?this.asyncListeners:this.syncListeners;o.has(e)||o.set(e,new Set),o.get(e).add(n),this.eventSvc.addListener(e,n,i)}removeListener(e,t){const n=this.wrapSvc?.unwrap(e,t)??t,o=!!this.asyncListeners.get(e)?.delete(n);o||this.syncListeners.get(e)?.delete(n),this.eventSvc.removeListener(e,n,o)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,n=(r,s)=>{Nc.has(r)&&t(r,s)},i=(r,s)=>{Nc.has(r)||t(r,s)};this.globalListenerPairs.set(e,{syncListener:n,asyncListener:i});const o=this.eventSvc;o.addGlobalListener(n,!1),o.addGlobalListener(i,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:n,globalListenerPairs:i}=this,o=n?.unwrapGlobal(e)??e;if(i.has(o)){const{syncListener:s,asyncListener:a}=i.get(o);t.removeGlobalListener(s,!1),t.removeGlobalListener(a,!0),i.delete(e)}else this.syncGlobalListeners.delete(o),t.removeGlobalListener(o,!1)}destroyEventListeners(e,t){e.forEach((n,i)=>{n.forEach(o=>this.eventSvc.removeListener(i,o,t)),n.clear()}),e.clear()}destroyGlobalListeners(e,t){for(const n of e)this.eventSvc.removeGlobalListener(n,t);e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:n,asyncListener:i})=>{t.removeGlobalListener(n,!1),t.removeGlobalListener(i,!0)}),e.clear()}};function H8(e,t,n){e.apiEventSvc?.addListener(t,n)}function G8(e,t,n){e.apiEventSvc?.removeListener(t,n)}function V8(e,t){e.apiEventSvc?.addGlobalListener(t)}function W8(e,t){e.apiEventSvc?.removeGlobalListener(t)}var z8={moduleName:"EventApi",version:Re,apiFunctions:{addEventListener:H8,addGlobalListener:V8,removeEventListener:G8,removeGlobalListener:W8},beans:[B8]},U8=class extends X{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");return t?UL(t):$L(e.get("localeText"))}},$8={moduleName:"Locale",version:Re,beans:[U8]};function j8(e){return e.stateSvc?.getState()??{}}function K8(e,t,n){return e.stateSvc?.setState(t,n)}function p1(e){return e={...e},e.version||(e.version="32.1.0"),e.version==="32.1.0"&&(e=q8(e)),e.version=Re,e}function q8(e){return e.cellSelection=Q8(e,"rangeSelection"),e}function Q8(e,t){if(e&&typeof e=="object")return e[t]}var Y8=class extends X{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=gn(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=gn(this,()=>this.updateGroupExpansionState(),0),this.onRowSelectedDebounced=gn(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){const{gos:e,ctrlsSvc:t,colDelayRenderSvc:n}=this.beans;this.isClientSideRowModel=en(e);const i=p1(e.get("initialState")??{}),o=i.partialColumnState;delete i.partialColumnState,this.cachedState=i;const r=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>r(()=>this.setupStateOnGridReady(i))),(i.columnOrder||i.columnVisibility||i.columnSizing||i.columnPinning||i.columnGroup)&&n?.hideColumns("columnState");const[s,a,l]=this.addManagedEventListeners({newColumnsLoaded:({source:u})=>{u==="gridInitializing"&&(s(),r(()=>{this.setupStateOnColumnsInitialised(i,!!o),n?.revealColumns("columnState")}))},rowCountReady:()=>{a?.(),r(()=>this.setupStateOnRowCountReady(i))},firstDataRendered:()=>{l?.(),r(()=>this.setupStateOnFirstDataRendered(i))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const n=p1(e);delete n.partialColumnState,this.cachedState=n,this.startSuppressEvents();const i="api",o=t?new Set(t):void 0;this.setGridReadyState(n,i,o),this.setColumnsInitialisedState(n,i,!!o,o),this.setRowCountState(n,i,o),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(n,i,o),this.stopSuppressEvents(i)})}setGridReadyState(e,t,n){t==="api"&&!n?.has("sideBar")&&this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,"gridInitializing");const t=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:t,sideBarUpdated:t})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(e,t,n,i){this.setColumnState(e,t,n,i),this.setColumnGroupState(e,t,i),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const n=i=>()=>this.updateColumnState([i]);this.addManagedEventListeners({columnValueChanged:n("aggregation"),columnMoved:n("columnOrder"),columnPinned:n("columnPinning"),columnResized:n("columnSizing"),columnVisible:n("columnVisibility"),columnPivotChanged:n("pivot"),columnPivotModeChanged:n("pivot"),columnRowGroupChanged:n("rowGroup"),sortChanged:n("sort"),newColumnsLoaded:({source:i})=>{this.updateColumnAndGroupState(),i!=="gridInitializing"&&this.isClientSideRowModel&&this.onRowGroupOpenedDebounced()},columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,n){const{filter:i,rowGroupExpansion:o,ssrmRowGroupExpansion:r,rowSelection:s,pagination:a,rowPinning:l}=e,u=(f,g)=>!n?.has(f)&&(g||t==="api");u("filter",i)&&this.setFilterState(i),(u("rowGroupExpansion",o)||u("ssrmRowGroupExpansion",r))&&this.setRowGroupExpansionState(r,o,t),u("rowSelection",s)&&this.setRowSelectionState(s,t),u("pagination",a)&&this.setPaginationState(a,t),u("rowPinning",l)&&this.setRowPinningState(l);const h=this.updateCachedState.bind(this);h("filter",this.getFilterState()),this.updateGroupExpansionState(),h("rowSelection",this.getRowSelectionState()),h("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");const t=this.updateCachedState.bind(this),n=()=>{this.updateRowGroupExpansionStateTimer=0,this.updateGroupExpansionState()},i=()=>t("filter",this.getFilterState()),{gos:o,colFilter:r,selectableFilter:s}=this.beans;this.addManagedEventListeners({filterChanged:i,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:n,columnRowGroupChanged:n,rowDataUpdated:()=>{(o.get("groupDefaultExpanded")!==0||o.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(n)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:a=>{(a.newPage||a.newPageSize)&&t("pagination",this.getPaginationState())},pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())}),r&&this.addManagedListeners(r,{filterStateChanged:i}),s&&this.addManagedListeners(s,{selectedFilterChanged:i})}setFirstDataRenderedState(e,t,n){const{scroll:i,cellSelection:o,focusedCell:r,columnOrder:s}=e,a=(h,f)=>!n?.has(h)&&(f||t==="api");a("focusedCell",r)&&this.setFocusedCellState(r),a("cellSelection",o)&&this.setCellSelectionState(o),a("scroll",i)&&this.setScrollState(i),this.setColumnPivotState(!!s?.orderedColIds,t);const l=this.updateCachedState.bind(this);l("sideBar",this.getSideBarState()),l("focusedCell",this.getFocusedCellState());const u=this.getRangeSelectionState();l("rangeSelection",u),l("cellSelection",u),l("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this),n=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:n,cellFocusCleared:n,cellSelectionChanged:i=>{if(i.finished){const o=this.getRangeSelectionState();t("rangeSelection",o),t("cellSelection",o)}},bodyScrollEnd:()=>t("scroll",this.getScrollState())})}getColumnState(){const e=this.beans;return LW(gh(e),e.colModel.isPivotMode())}setColumnState(e,t,n,i){const{sort:o,rowGroup:r,aggregation:s,pivot:a,columnPinning:l,columnVisibility:u,columnSizing:h,columnOrder:f}=e;let g=!1;const m=(E,I)=>{const B=!i?.has(E)&&!!(I||t==="api");return g||(g=B),B},v={},w=E=>{let I=v[E];return I||(I={colId:E},v[E]=I,I)},b={},y=m("sort",o);y&&o?.sortModel.forEach(({colId:E,sort:I,type:B},W)=>{const J=w(E);J.sort=I,J.sortIndex=W,J.sortType=B}),(y||!n)&&(b.sort=null,b.sortIndex=null);const R=m("rowGroup",r);R&&r?.groupColIds.forEach((E,I)=>{const B=w(E);B.rowGroup=!0,B.rowGroupIndex=I}),(R||!n)&&(b.rowGroup=null,b.rowGroupIndex=null);const S=m("aggregation",s);S&&s?.aggregationModel.forEach(({colId:E,aggFunc:I})=>{w(E).aggFunc=I}),(S||!n)&&(b.aggFunc=null);const P=m("pivot",a);P&&(a?.pivotColIds.forEach((E,I)=>{const B=w(E);B.pivot=!0,B.pivotIndex=I}),this.gos.updateGridOptions({options:{pivotMode:!!a?.pivotMode},source:t})),(P||!n)&&(b.pivot=null,b.pivotIndex=null);const F=m("columnPinning",l);if(F){for(const E of l?.leftColIds??[])w(E).pinned="left";for(const E of l?.rightColIds??[])w(E).pinned="right"}(F||!n)&&(b.pinned=null);const A=m("columnVisibility",u);if(A)for(const E of u?.hiddenColIds??[])w(E).hide=!0;(A||!n)&&(b.hide=null);const k=m("columnSizing",h);if(k)for(const{colId:E,flex:I,width:B}of h?.columnSizingModel??[]){const W=w(E);W.flex=I??null,W.width=B}(k||!n)&&(b.flex=null);const L=f?.orderedColIds,N=!!L?.length&&!i?.has("columnOrder"),M=N?L.map(E=>w(E)):Object.values(v);(M.length||g)&&(this.columnStates=M,so(this.beans,{state:M,applyOrder:N,defaultState:b},t))}setColumnPivotState(e,t){const n=this.columnStates;this.columnStates=void 0;const i=this.columnGroupStates;this.columnGroupStates=void 0;const o=this.beans,{pivotResultCols:r,colGroupSvc:s}=o;if(r?.isPivotResultColsPresent()){if(n){const a=[];for(const l of n)r.getPivotResultCol(l.colId)&&a.push(l);so(o,{state:a,applyOrder:e},t)}i&&s?.setColumnGroupState(i,t)}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;const t=e.getColumnGroupState();return OW(t)}setColumnGroupState(e,t,n){const i=this.beans.colGroupSvc;if(!i||n?.has("columnGroup")||t!=="api"&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const o=new Set(e.columnGroup?.openColumnGroupIds),s=i.getColumnGroupState().map(({groupId:a})=>{const l=o.has(a);return l&&o.delete(a),{groupId:a,open:l}});for(const a of o)s.push({groupId:a,open:!0});s.length&&(this.columnGroupStates=s),i.setColumnGroupState(s,t)}getFilterState(){const{filterManager:e,selectableFilter:t}=this.beans;let n=e?.getFilterModel();n&&Object.keys(n).length===0&&(n=void 0);const i=e?.getFilterState(),o=e?.getAdvFilterModel()??void 0,r=t?.getState();return n||o||i||r?{filterModel:n,columnFilterState:i,advancedFilterModel:o,selectableFilters:r}:void 0}setFilterState(e){const{filterManager:t,selectableFilter:n}=this.beans,{filterModel:i,columnFilterState:o,advancedFilterModel:r,selectableFilters:s}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};s!==void 0&&n?.setState(s??{}),(i!==void 0||o!==void 0)&&t?.setFilterState(i??null,o??null,"columnFilter"),r!==void 0&&t?.setAdvFilterModel(r??null,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:n,type:i,startRow:o,endRow:r,columns:s,startColumn:a}=t;return{id:n,type:i,startRow:o,endRow:r,colIds:s.map(l=>l.getColId()),startColId:a.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:n,colModel:i,visibleCols:o}=this.beans;if(!rr(t)||!n)return;const r=[];for(const s of e?.cellRanges??[]){const a=[];for(const u of s.colIds){const h=i.getCol(u);h&&a.push(h)}if(!a.length)continue;let l=i.getCol(s.startColId);if(!l){const u=o.allCols,h=new Set(a);l=u.find(f=>h.has(f))}r.push({...s,columns:a,startColumn:l})}n.setCellRanges(r)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:n}=e?.getVScrollPosition()??{top:0};return n||t?{top:n,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:n}=e??{top:0,left:0},{frameworkOverrides:i,rowRenderer:o,animationFrameSvc:r,ctrlsSvc:s}=this.beans;i.wrapIncoming(()=>{s.get("center").setCenterViewportScrollLeft(n),s.getScrollFeature()?.setVerticalScrollPosition(t),o.redraw({afterScroll:!0}),r?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:n,rowPinned:i}=e;return{colId:t.getColId(),rowIndex:n,rowPinned:i}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:n}=this.beans;if(!e){t.clearFocusedCell();return}const{colId:i,rowIndex:o,rowPinned:r}=e;t.setFocusedCell({column:n.getCol(i),rowIndex:o,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const n=e.getCurrentPage(),i=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(!(!n&&!i))return{page:n,pageSize:i}}setPaginationState(e,t){const{pagination:n,gos:i}=this.beans;if(!n)return;const{pageSize:o,page:r}=e??{page:0,pageSize:i.get("paginationPageSize")},s=t==="gridInitializing";o&&!i.get("paginationAutoPageSize")&&n.setPageSize(o,s?"initialState":"pageSizeSelector"),typeof r=="number"&&(s?n.setPage(r):n.goToPage(r))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,t==="api")}updateGroupExpansionState(){const{expansionSvc:e,gos:t}=this.beans,n=e?.getExpansionState(),i=t.get("ssrmExpandAllAffectsAllRows");this.updateCachedState("ssrmRowGroupExpansion",i?n:void 0),this.updateCachedState("rowGroupExpansion",i?void 0:n)}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){const t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,n){const i=e??t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};this.beans.expansionSvc?.setExpansionState(i,n)}updateColumnState(e){const t=this.getColumnState();let n=!1;const i=this.cachedState;for(const o of Object.keys(t)){const r=t[o];uc(r,i[o])||(n=!0)}this.cachedState={...i,...t},n&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const n=this.cachedState[e];this.setCachedStateValue(e,t),uc(t,n)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;for(const t of e)t==="rowSelection"&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(const t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}},Z8={moduleName:"GridState",version:Re,beans:[Y8],apiFunctions:{getState:j8,setState:K8}};function J8(e){return e.rowModel.isLastRowIndexKnown()}function X8(e){return e.pagination?.getPageSize()??100}function e9(e){return e.pagination?.getCurrentPage()??0}function t9(e){return e.pagination?.getTotalPages()??1}function n9(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function i9(e){e.pagination?.goToNextPage()}function o9(e){e.pagination?.goToPreviousPage()}function r9(e){e.pagination?.goToFirstPage()}function s9(e){e.pagination?.goToLastPage()}function a9(e,t){e.pagination?.goToPage(t)}var l9=class extends X{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,n=()=>{const i=Math.max(Vs(t),1),o=Math.floor(e/i);t.pagination.setPageSize(o,"autoCalculated")};this.isBodyRendered?gn(this,n,50)():(n(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}};function c9(e,t){if(typeof e!="number")return"";const n=t(),i=n("thousandSeparator",","),o=n("decimalSeparator",".");return e.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${i}`)}var $c="paginationPageSizeSelector",u9={tag:"span",cls:"ag-paging-page-size"},d9=class extends Ft{constructor(){super(u9),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener($c,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){Rn(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get($c)!==!1}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),n=!t||!e.includes(t);if(n){const o=this.gos.exists("paginationPageSize"),r=this.gos.get($c)!==!0;le(94,{pageSizeSet:o,pageSizesSet:r,pageSizeOptions:e,paginationPageSizeOption:t}),r||le(95,{paginationPageSizeOption:t,paginationPageSizeSelector:$c}),e.unshift("")}const i=String(n?"":t);this.selectPageSizeComp?(Nr(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(i,!0)):this.createPageSizeSelectorComp(e,i),this.hasEmptyOption=n}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const n=this.getLocaleTextFunc(),i=n("pageSizeSelectorLabel","Page Size:"),o=n("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new fv).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(o).setLabel(i).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get($c);return!Array.isArray(t)||!t?.length?e:[...t].sort((n,i)=>n-i)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},h9={selector:"AG-PAGE-SIZE-SELECTOR",component:d9},f9=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;flex-wrap:wrap-reverse;gap:calc(var(--ag-spacing)*4);justify-content:flex-end;min-height:var(--ag-pagination-panel-height);padding:calc(var(--ag-spacing)*.5) var(--ag-cell-horizontal-padding);row-gap:calc(var(--ag-spacing)*.5);@container (width < 600px){justify-content:center}}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel,.ag-paging-row-summary-panel{margin:calc(var(--ag-spacing)*.5)}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}.ag-paging-description{line-height:0}",g9=class extends LR{constructor(){super(),this.btFirst=ge,this.btPrevious=ge,this.btNext=ge,this.btLast=ge,this.lbRecordCount=ge,this.lbFirstRowOnPage=ge,this.lbLastRowOnPage=ge,this.lbCurrent=ge,this.lbTotal=ge,this.pageSizeComp=ge,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(f9)}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[h9]);const{btFirst:t,btPrevious:n,btNext:i,btLast:o}=this;this.activateTabIndex([t,n,i,o]),t.insertAdjacentElement("afterbegin",si(e?"last":"first",this.beans)),n.insertAdjacentElement("afterbegin",si(e?"next":"previous",this.beans)),i.insertAdjacentElement("afterbegin",si(e?"previous":"next",this.beans)),o.insertAdjacentElement("afterbegin",si(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:r=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(r):x2(this.beans,r),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}getFocusableContainerName(){return"pagination"}onPaginationChanged(){const t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)});for(const e of[{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)}]){const{el:t,fn:n}=e;this.addManagedListeners(t,{click:n,keydown:i=>{(i.key===K.ENTER||i.key===K.SPACE)&&(i.preventDefault(),n())}})}R2(this.beans,this,this.getGui()),this.areListenersSetup=!0}}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");return t?t({value:e}):c9(e,this.getLocaleTextFunc.bind(this))}getTemplate(){const e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),n=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const i=this.isZeroPagesToDisplay(),o=e===n-1;this.nextButtonDisabled=o||i,this.lastButtonDisabled=!t||i||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){vL(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&t===0}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),n=this.pagination.getMasterRowCount(),i=e?n:null,o=this.pagination.getCurrentPage(),r=this.pagination.getPageSize();let s,a;this.isZeroPagesToDisplay()?s=a=0:(s=r*o+1,a=s+r-1,e&&a>i&&(a=i));const l=s+r-1,u=!e&&n<l,h=this.formatNumber(s);this.lbFirstRowOnPage.textContent=h;let f;const g=this.getLocaleTextFunc();u?f=g("pageLastRowUnknown","?"):f=this.formatNumber(a),this.lbLastRowOnPage.textContent=f;const v=t>0?o+1:0,w=this.formatNumber(v);this.lbCurrent.textContent=w;let b,y;if(e)b=this.formatNumber(t),y=this.formatNumber(i);else{const R=g("more","more");b=R,y=R}this.lbTotal.textContent=b,this.lbRecordCount.textContent=y,this.announceAriaStatus(h,f,y,w,b)}announceAriaStatus(e,t,n,i,o){const r=this.getLocaleTextFunc(),s=r("page","Page"),a=r("to","to"),l=r("of","of"),u=`${e} ${a} ${t} ${l} ${n}`,h=`${s} ${i} ${l} ${o}`;u!==this.ariaRowStatus&&(this.ariaRowStatus=u,this.ariaAnnounce?.announceValue(u,"paginationRow")),h!==this.ariaPageStatus&&(this.ariaPageStatus=h,this.ariaAnnounce?.announceValue(h,"paginationPage"))}},p9={selector:"AG-PAGINATION",component:g9},m9=100,v9=class extends X{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return p9}isPaginateChildRows(){const e=this.gos;return e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")?!0:e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||typeof t!="number")return;const{editSvc:n}=this.beans;n?.isEditing()&&(n.isBatchEditing()?n.cleanupEditors():n.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return this.active?e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return Pe(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:Pe(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:Pe(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:Pe(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:m9}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const n=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}n!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}const n=this.pageSize,i=t-1;this.totalPages=Math.floor(i/n)+1,this.adjustCurrentPageIfInvalid();const o=this.currentPage,r=n*o;let s=n*(o+1)-1;if(s>i&&(s=i),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(r),s===i)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const a=e.getTopLevelRowDisplayedIndex(s+1);this.bottomDisplayedRowIndex=a-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}const{pageSize:t,currentPage:n}=this,i=e-1;this.totalPages=Math.floor(i/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*n,this.bottomDisplayedRowIndex=t*(n+1)-1,this.bottomDisplayedRowIndex>i&&(this.bottomDisplayedRowIndex=i)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:n=!1,newPageSize:i=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:n,newPageSize:i,keepRenderedRows:t})}},C9={moduleName:"Pagination",version:Re,beans:[v9,l9],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:J8,paginationGetPageSize:X8,paginationGetCurrentPage:e9,paginationGetTotalPages:t9,paginationGetRowCount:n9,paginationGoToNextPage:i9,paginationGoToPreviousPage:o9,paginationGoToFirstPage:r9,paginationGoToLastPage:s9,paginationGoToPage:a9},dependsOn:[Dh]},w9=".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}";function b9(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function y9(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function S9(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function R9(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function x9(e,t,n){return e.pinnedRowModel?.forEachPinnedRow(t,n)}var F9={moduleName:"PinnedRow",version:Re,beans:[l2],css:[w9],apiFunctions:{getPinnedTopRowCount:b9,getPinnedBottomRowCount:y9,getPinnedTopRow:S9,getPinnedBottomRow:R9,forEachPinnedRow:x9},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},P9="↑",E9="↓",D9={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},T9=class extends Ft{constructor(){super(D9),this.eValue=ge,this.eDelta=ge,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const n=Math.abs(t),i=e.formatValue(n),o=Pe(i)?i:n,r=t>=0,s=this.eDelta;r?s.textContent=P9+o:s.textContent=E9+o,s.classList.toggle("ag-value-change-delta-up",r),s.classList.toggle("ag-value-change-delta-down",!r)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),Rn(this.eDelta)}refresh(e,t=!1){const{value:n,valueFormatted:i}=e,{eValue:o,lastValue:r,beans:s}=this;if(n===r||(Pe(i)?o.textContent=i:Pe(n)?o.textContent=n:Rn(o),s.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;const a=n&&typeof n=="object"&&"toNumber"in n?n.toNumber():n,l=r&&typeof r=="object"&&"toNumber"in r?r.toNumber():r;if(a===l)return!1;if(typeof a=="number"&&typeof l=="number"){const u=a-l;this.showDelta(e,u)}return r&&o.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=n,!0}},A9=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}",I9={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},M9=class extends Ft{constructor(){super(I9),this.eCurrent=ge,this.refreshCount=0,this.registerCSS(A9)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious?.remove();const{beans:t,eCurrent:n}=this,i=dn({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=i,i.textContent=n.textContent,this.getGui().insertBefore(i,n),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.ePrevious?.remove(),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let n=e.value;if(Vt(n)&&(n=""),n===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=n;const i=this.eCurrent;return Pe(e.valueFormatted)?i.textContent=e.valueFormatted:Pe(e.value)?i.textContent=n:Rn(i),!0}},k9=class extends X{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,n=this.beans.gos.get("cellFlashDuration"),i=this.beans.gos.get("cellFadeDuration")){const o=this.animations[t];o.delete(e);const r=Date.now(),s=r+n,a=r+n+i,l={phase:"flash",flashEndTime:s,fadeEndTime:a};o.set(e,l);const u=`ag-cell-${t}`,h=`${u}-animation`,{comp:f,eGui:{style:g}}=e;f.toggleCss(u,!0),f.toggleCss(h,!1),g.removeProperty("transition"),g.removeProperty("transition-delay"),this.nextAnimationTime&&s+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),n)}),this.nextAnimationTime=s)}advanceAnimations(){const e=Date.now();let t=null;for(const n of Object.keys(this.animations)){const i=this.animations[n],o=`ag-cell-${n}`,r=`${o}-animation`;for(const[s,a]of i){if(!s.isAlive()||!s.comp){i.delete(s);continue}const{phase:l,flashEndTime:u,fadeEndTime:h}=a,f=l==="flash"?u:h;if(!(e+15>=f)){t=Math.min(f,t??1/0);continue}const{comp:m,eGui:{style:v}}=s;switch(l){case"flash":m.toggleCss(o,!1),m.toggleCss(r,!0),v.transition=`background-color ${h-u}ms`,v.transitionDelay=`${u-e}ms`,t=Math.min(h,t??1/0),a.phase="fade";break;case"fade":m.toggleCss(o,!1),m.toggleCss(r,!1),v.removeProperty("transition"),v.removeProperty("transition-delay"),i.delete(s);break}}}t==null?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const n=C2(e.cellPosition);t.cells[n]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations))this.animations[e].clear()}};function L9(e,t={}){const{cellFlashSvc:n}=e;n&&e.frameworkOverrides.wrapIncoming(()=>{for(const i of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))n.flashCell(i,t)})}var O9={moduleName:"HighlightChanges",version:Re,beans:[k9],userComponents:{agAnimateShowChangeCellRenderer:T9,agAnimateSlideCellRenderer:M9},apiFunctions:{flashCells:L9}};function _9(e,t,n){if(!t)return;const i=e.ctrlsSvc.getGridBodyCtrl().eGridBody,o=`aria-${t}`;n===null?i.removeAttribute(o):i.setAttribute(o,n)}function N9(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function B9(e){e.frameworkOverrides.wrapIncoming(()=>{for(const t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})}function H9(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function G9(e){e.animationFrameSvc?.flushAllFrames()}function V9(e){return{rowHeight:Vs(e),headerHeight:Mc(e)}}function W9(e,t={}){const n=[];for(const r of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){const s=r.getCellRenderer();s!=null&&n.push(ea(s))}if(t.columns?.length)return n;const i=[],o=nv(t.rowNodes);for(const r of e.rowRenderer.getAllRowCtrls()){if(o&&!iv(r.rowNode,o)||!r.isFullWidth())continue;const s=r.getFullWidthCellRenderers();for(let a=0;a<s.length;a++){const l=s[a];l!=null&&i.push(ea(l))}}return[...i,...n]}var z9={moduleName:"RenderApi",version:Re,apiFunctions:{setGridAriaProperty:_9,refreshCells:N9,refreshHeader:B9,isAnimationFrameQueueEmpty:H9,flushAllAnimationFrames:G9,getSizesForCurrentTheme:V9,getCellRendererInstances:W9}},U9=class extends X{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=gn(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:n,pinnedRowModel:i}=this.beans,o=e.autoHeightCols;let r=!1;const s=a=>{const l=a.__autoHeights;let u=Wr(this.beans,a).height;for(const h of o){let f=l?.[h.getColId()];const g=n?.getCellSpan(h,a);if(g){if(g.getLastNode()!==a)continue;if(f=n?.getCellSpan(h,a)?.getLastNodeAutoHeight(),!f)return}if(f==null){if(this.colSpanSkipCell(h,a))continue;return}u=Math.max(f,u)}u!==a.rowHeight&&(a.setRowHeight(u),r=!0)};i?.forEachPinnedRow?.("top",s),i?.forEachPinnedRow?.("bottom",s),t.forEachDisplayedNode?.(s),r&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,n){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[n.getId()];return}const i=e.__autoHeights[n.getId()];e.__autoHeights[n.getId()]=t,i!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:n,colViewport:i,visibleCols:o}=this.beans;if(!n.colSpanActive)return!1;let r=[];switch(e.getPinned()){case"left":r=o.getLeftColsForRow(t);break;case"right":r=o.getRightColsForRow(t);break;case null:r=i.getColsWithinViewport(t);break}return!r.includes(e)}setupCellAutoHeight(e,t,n){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const i=t.parentElement,{rowNode:o,column:r}=e,s=this.beans,a=h=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!n.isAlive())return;const{paddingTop:f,paddingBottom:g,borderBottomWidth:m,borderTopWidth:v}=Bs(i),w=f+g+m+v,y=t.offsetHeight+w;if(h<5){const S=!un(s)?.contains(t),P=y==0;if(S||P){window.setTimeout(()=>a(h+1),0);return}}this.setRowAutoHeight(o,y,r)},l=()=>a(0);l();const u=Hr(s,t,l);return n.addDestroyFunc(()=>{u(),this.setRowAutoHeight(o,void 0,r)}),!0}setAutoHeightActive(e){this.active=e.list.some(t=>t.isVisible()&&t.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:n}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(n).filter(o=>o.isAutoHeight())),t.length!==0){if(!n.__autoHeights)return!1;for(const i of t){const o=n.__autoHeights[i.getColId()];if(!o||n.rowHeight<o)return!1}}return!0}},$9={moduleName:"RowAutoHeight",version:Re,beans:[U9]},j9=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column!==this.col||e.rowPinned!=this.firstNode.rowPinned?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(e==null)return;let t=0;for(const n of this.spannedNodes)n!==this.lastNode&&(t+=n.rowHeight);return e-t}},K9=class extends X{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:n,pinnedRowModel:i,rowModel:o,valueSvc:r,pagination:s}}=this,{colDef:a}=t,l=this.getNodeMap(e),u=new Map,h=n.getCallback("isFullWidthRow"),f=a.equals,g=a.spanRows,m=typeof g=="function";let v=null,w=null,b;const y=(S,P)=>{v=S,w=null,b=P},R=S=>{const P=!S.isExpandable()&&!S.group&&!S.detail&&(h?!h({rowNode:S}):!0);if(S.rowIndex==null||!P){y(null,null);return}if(v==null||S.level!==v.level||S.footer||w&&S.rowIndex-1!==w?.getLastNode().rowIndex){y(S,r.getValue(t,S,"data"));return}const F=r.getValue(t,S,"data");if(m){const A=Ue(n,{valueA:b,nodeA:v,valueB:F,nodeB:S,column:t,colDef:a});if(!g(A)){y(S,F);return}}else if(f?!f(b,F):b!==F){y(S,F);return}if(!w){const A=l?.get(v);A?.firstNode===v?(A.reset(),w=A):w=new j9(t,v),u.set(v,w)}w.addSpannedNode(S),u.set(S,w)};switch(e){case"center":o.forEachDisplayedNode?.(S=>{(!s||s.isRowInPage(S.rowIndex))&&R(S)}),this.centerValueNodeMap=u;break;case"top":i?.forEachPinnedRow("top",R),this.topValueNodeMap=u;break;case"bottom":i?.forEachPinnedRow("bottom",R),this.bottomValueNodeMap=u;break}}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this.getNodeMap(e.rowPinned).get(e)}getNodeMap(e){switch(e){case"top":return this.topValueNodeMap;case"bottom":return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}},q9=class extends X{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=gn(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=gn(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan")||this.spanningColumns.has(e))return;const n=this.createManagedBean(new K9(e));this.spanningColumns.set(e,n),n.buildCache("top"),n.buildCache("bottom"),n.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(this.pinnedTimeout!=null)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0);return}this.modelTimeout==null&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){this.modelTimeout!=null&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){this.pinnedTimeout!=null&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){const n=this.spanningColumns.get(e);return n?n.isCellSpanning(t):!1}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:n}=this.beans,i=e.column,o=e.rowIndex,r=this.spanningColumns.get(i);if(!r)return;let s;switch(e.rowPinned){case"top":s=t?.getPinnedTopRow(o);break;case"bottom":s=t?.getPinnedBottomRow(o);break;default:s=n.getRow(o)}if(s)return r.getCellSpan(s)}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const n=this.spanningColumns.get(e);if(n)return n.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[n,i]of this.spanningColumns)if(i.isCellSpanning(e)){const o=i.getCellSpan(e);t(n,o)}}destroy(){super.destroy(),this.spanningColumns.clear()}},Q9=class extends ul{constructor(e,t,n){super(e.col,e.firstNode,n,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,n,i,o,r,s){this.eWrapper=n,super.setComp(e,t,n,i,o,r,s),this.setAriaRowSpan()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){const{eGui:e,rowNode:t}=this;!e||t.rowIndex==null||fc(e,t.rowIndex)}setAriaRowSpan(){SL(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(Ic(t)){this.focusedCellPosition=void 0;return}const n=this.isCellFocused();n||(this.focusedCellPosition=void 0),e&&n&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},Y9=class extends Sh{getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!(!t||t.firstNode!==this.rowNode))return new Q9(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},Z9=class extends X{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,n=this.getCtrlsMap(e),i=n.size,o=this.getAllRelevantRowControls(e),r=new Map;let s=!1;for(const l of o)l.isAlive()&&t?.forEachSpannedColumn(l.rowNode,(u,h)=>{if(r.has(h.firstNode))return;const f=n.get(h.firstNode);if(f){r.set(h.firstNode,f),n.delete(h.firstNode);return}s=!0;const g=new Y9(h.firstNode,this.beans,!1,!1,!1);r.set(h.firstNode,g)});this.setCtrlsMap(e,r);const a=r.size===i;if(!(!s&&a)){for(const l of n.values())l.destroyFirstPass(!0),l.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,n=t?.getCellSpanByPosition(e);if(!n)return;const i=this.getCtrlsMap(e.rowPinned).get(n.firstNode);if(i)return i.getAllCellCtrls().find(o=>o.column===e.column)}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(const t of this.getCtrlsMap(e).values())t.destroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case"top":this.topCtrls=t;break;case"bottom":this.bottomCtrls=t;break;default:this.centerCtrls=t;break}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}},J9={moduleName:"CellSpan",version:Re,beans:[q9,Z9]},X9=class extends X{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,Ja(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),JO(e))}createColumns(e,t){const n=()=>{Kd(this.beans,this.columns?.tree),this.columns=null},i=e.treeDepth,r=(this.columns?.treeDepth??-1)==i,s=this.generateSelectionCols();if(ZO(s,this.columns?.list??[])&&r)return;n();const{colGroupSvc:l}=this.beans,u=l?.findDepth(e.tree)??0,h=l?.balanceTreeForAutoCols(s,u)??[];this.columns={list:s,tree:h,treeDepth:u,map:{}},t(g=>{if(!g)return null;const m=g.filter(v=>!$r(v));return[...s,...m]})}updateColumns(e){const t=Ja(e.source),{beans:n}=this;for(const i of this.columns?.list??[]){const o=this.createSelectionColDef(e.currentValue);i.setColDef(o,null,t),so(n,{state:[e_(o,i.colId)]},t)}}getColumn(e){return this.columns?.list.find(t=>Pc(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,n=e.get("rowSelection");if(typeof n!="object"||!Gs(e))return!1;const i=(t.autoColSvc?.getColumns()?.length??0)>0;if(n.checkboxLocation==="autoGroupColumn"&&i)return!1;const o=!!Qa(n),r=Hd(n);return o||r}createSelectionColDef(e){const{gos:t}=this,n=e??t.get("selectionColumnDef"),i=t.get("enableRtl"),{rowSpan:o,spanRows:r,...s}=n??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:i?"right":"left",comparator(a,l,u,h){const f=u.isSelected(),g=h.isSelected();return f===g?0:f?1:-1},editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,pinned:null,...s,colId:D0,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const n=new zs(e,null,t,!1);return this.createBean(n),[n]}onSelectionOptionsChanged(e,t,n){const i=t&&typeof t!="string"?Qa(t):void 0,o=e&&typeof e!="string"?Qa(e):void 0,r=i!==o,s=t&&typeof t!="string"?Hd(t):void 0,a=e&&typeof e!="string"?Hd(e):void 0,l=s!==a,u=Gd(e),h=Gd(t);(r||l||u!==h)&&this.beans.colModel.refreshAll(n)}destroy(){Kd(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,n){if(!this.columns?.list.length)return;const i=e.length+t.length+n.length;if(i===0)return;const o=this.columns.list[0];if(!o.isVisible())return;const r=()=>{let l;switch(o.pinned){case"left":case!0:l=e;break;case"right":l=n;break;default:l=t}l&&Fo(l,o)};(this.beans.rowNumbersSvc?.getColumn(T0)?2:1)===i&&r()}},eU=':where(.ag-selection-checkbox) .ag-checkbox-input-wrapper:before{content:"";cursor:pointer;inset:-8px;position:absolute}';function tU(e,t){if(!t.nodes.every(s=>s.rowPinned&&!yh(s)?(le(59),!1):s.id===void 0?(le(60),!1):!0))return;const{nodes:i,source:o,newValue:r}=t;e.selectionSvc?.setNodesSelected({nodes:i,source:o??"api",newValue:r})}function nU(e,t,n="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:n,selectAll:t})}function iU(e,t,n="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:n,selectAll:t})}function oU(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function rU(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function sU(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function aU(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function lU(e){return e.selectionSvc?.getSelectedNodes()??[]}function cU(e){return e.selectionSvc?.getSelectedRows()??[]}var uU={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},dU=class extends Ft{constructor(){super(uU,[Lm]),this.eCheckbox=ge}postConstruct(){this.eCheckbox.setPassive(!0)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:n}=this,i=t.isSelected(),o=Ed(e,i),[r,s]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(r,s);n.setValue(i,!0),n.setInputAriaLabel(`${a} (${o})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getWrapperElement(),{dblclick:qs,click:i=>{qs(i),!this.eCheckbox.isDisabled()&&this.beans.selectionSvc?.handleSelectionEvent(i,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:i,previousValue:o})=>{const r=typeof i=="object"?Op(i):void 0,s=typeof o=="object"?Op(o):void 0;r!==s&&this.onSelectableChanged()}),_p(this.gos)||typeof this.getIsVisible()=="function"){const i=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i}),this.addManagedListeners(this.rowNode,{dataChanged:i,cellChanged:i}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:n,gos:i}=this,o=t.selectable,r=this.getIsVisible();let s;if(typeof r=="function"){const f=n?.callbackParams;if(!e)s=r({...f,node:t,data:t.data});else{const g=e.createColumnFunctionCallbackParams(t);s=r({...f,...g})}}else s=r??!1;const a=o&&!s||!o&&s,l=o||s,u=i.get("rowSelection"),h=u&&typeof u!="string"?!Op(u):!!e?.getColDef().showDisabledCheckboxes;this.setVisible(l&&(a?h:!0)),this.setDisplayed(l&&(a?h:!0)),l&&this.eCheckbox.setDisabled(a),n?.removeHidden&&this.setDisplayed(l)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?Qa(t):this.column?.getColDef()?.checkboxSelection}},hU=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return this.rootId===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(e){if(this.rootId)return this.getRowNode(this.rootId);if(e)return this.setRoot(e),e}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:n,pinnedRowModel:i}=this;return t??(t=n.getRowNode(e)),i?.isManual()&&(t??(t=i.getPinnedRowById(e,"top")),t??(t=i.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const n=t[0].id===this.rootId,i=t.findIndex(o=>o.id===e.id);if(i>-1){const o=t.slice(0,i),r=t.slice(i+1);return this.setEndRange(e),n?{keep:o,discard:r}:{keep:r,discard:o}}else return{keep:t,discard:[]}}extend(e,t=!1){const n=this.getRoot();if(n==null){const o=this.getRange().slice();return t&&e.depthFirstSearch(r=>!r.group&&o.push(r)),o.push(e),this.setRoot(e),{keep:o,discard:[]}}const i=this.getNodesInRange(n,e);if(!i)return this.setRoot(e),{keep:[e],discard:[]};if(i.find(o=>o.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const o=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:o}}}getNodesInRange(e,t){const{pinnedRowModel:n,rowModel:i}=this;if(!n?.isManual())return i.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&!t.rowPinned)return Hi(n,"top",e,void 0).concat(i.getNodesInRangeForSelection(i.getRow(0),t)??[]);if(e.rowPinned==="bottom"&&!t.rowPinned){const o=Hi(n,"bottom",void 0,e),r=i.getRowCount(),s=i.getRow(r-1);return(i.getNodesInRangeForSelection(t,s)??[]).concat(o)}if(!e.rowPinned&&!t.rowPinned)return i.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&t.rowPinned==="top")return Hi(n,"top",e,t);if(e.rowPinned==="bottom"&&t.rowPinned==="top"){const o=Hi(n,"top",t,void 0),r=Hi(n,"bottom",void 0,e),s=i.getRow(0),a=i.getRow(i.getRowCount()-1);return o.concat(i.getNodesInRangeForSelection(s,a)??[]).concat(r)}if(!e.rowPinned&&t.rowPinned==="top")return Hi(n,"top",t,void 0).concat(i.getNodesInRangeForSelection(i.getRow(0),e)??[]);if(e.rowPinned==="top"&&t.rowPinned==="bottom"){const o=Hi(n,"top",e,void 0),r=Hi(n,"bottom",void 0,t),s=i.getRow(0),a=i.getRow(i.getRowCount()-1);return o.concat(i.getNodesInRangeForSelection(s,a)??[]).concat(r)}if(e.rowPinned==="bottom"&&t.rowPinned==="bottom")return Hi(n,"bottom",e,t);if(!e.rowPinned&&t.rowPinned==="bottom"){const o=Hi(n,"bottom",void 0,t),r=i.getRow(i.getRowCount());return(i.getNodesInRangeForSelection(e,r)??[]).concat(o)}return null}},fU=class extends X{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(Lt(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new km);this.cbSelectAll=t,t.addCss("ag-header-select-all"),Br(t.getGui(),"presentation"),this.showOrHideSelectAll();const n=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:n,paginationChanged:n,modelUpdated:n}),this.addManagedPropertyListener("rowSelection",({currentValue:i,previousValue:o})=>{const r=s=>typeof s=="string"||!s||s.mode==="singleRow"?void 0:s.selectAll;r(i)!==r(o)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll(e.source==="uiColumnMoved")}showOrHideSelectAll(e=!1){const t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,n=this.cbSelectAll,i=t.getSelectAllState(e);n.setValue(i);const o=t.hasNodesToSelect(e);n.setDisabled(!o),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:n,cbSelectAll:i,cbSelectAllVisible:o}=this,r=i.getValue(),s=Ed(t,r),a=t("ariaRowSelectAll","Press Space to toggle all rows selection");n.setAriaDescriptionProperty("selectAll",o?`${a} (${s})`:null),i.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||n.announceAriaDescription()}checkSelectionType(e){return xc(this.gos)?!0:(le(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:n}=this.beans;return en(t)||Rc(t)?!0:(le(129,{feature:e,rowModel:n.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let n="uiSelectAll";t==="currentPage"?n="uiSelectAllCurrentPage":t==="filtered"&&(n="uiSelectAllFiltered");const i={source:n,selectAll:t},o=this.beans.selectionSvc;e?o.selectAllRowNodes(i):o.deselectAllRowNodes(i)}isCheckboxSelection(){const{column:e,gos:t,beans:n}=this,r=typeof t.get("rowSelection")=="object"?"headerCheckbox":"headerCheckboxSelection";return m1(n,e)&&this.checkRightRowModelType(r)&&this.checkSelectionType(r)}getSelectAllMode(){const e=S0(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:n}=this.column.getColDef();return t?"currentPage":n?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function m1({gos:e,selectionColSvc:t},n){const i=e.get("rowSelection"),o=n.getColDef(),{headerCheckboxSelection:r}=o;let s=!1;if(typeof i=="object"){const l=$r(n),u=Hp(n);(Gd(i)==="autoGroupColumn"&&u||l&&t?.isSelectionColumnEnabled())&&(s=Hd(i))}else typeof r=="function"?s=r(Ue(e,{column:n,colDef:o})):s=!!r;return s}var gU=class extends X{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new hU(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const n=_p(e);n!==this.isRowSelectable&&(this.isRowSelectable=n,this.updateSelectable())}),this.isRowSelectable=_p(e),this.addManagedEventListeners({cellValueChanged:n=>this.updateRowSelectable(n.node),rowNodeDataChanged:n=>this.updateRowSelectable(n.node)})}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new dU}createSelectAllFeature(e){if(m1(this.beans,e))return new fU(e)}isMultiSelect(){return xc(this.gos)}onRowCtrlSelected(e,t,n){const i=!!e.rowNode.isSelected();e.forEachGui(n,o=>{o.rowComp.toggleCss("ag-row-selected",i);const r=o.element;GS(r,i),r.contains(Lt(this.beans))&&t(o)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected(),n=this.beans.editSvc?.isEditing({rowNode:e});if(!e.selectable||n)return;const o=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(o,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!yh(e)||!Gs(this.gos)}updateRowSelectable(e,t){const n=e.rowPinned&&e.pinnedSibling?e.pinnedSibling.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,n,t),n}setRowSelectable(e,t,n){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),n)return;if(Fc(this.gos)){const o=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:o??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,n=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let i=0;i<e.childrenAfterGroup.length;i++){const o=e.childrenAfterGroup[i];let r=o.isSelected();if(!o.selectable){const s=this.calculateSelectedFromChildren(o);if(s===null)continue;r=s}switch(r){case!0:t=!0;break;case!1:n=!0;break;default:return}}if(!(t&&n))return t?!0:n?!1:e.selectable?e.__selected:null}selectRowNode(e,t,n,i="api"){if(t&&e.destroyed)return!1;const o=!e.selectable&&t,r=e.__selected===t;if(o||r)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");const s=e.sibling;s&&s.footer&&s.__localEventService&&s.dispatchRowEvent("rowSelected");const a=e.pinnedSibling;return a?.rowPinned&&a.__localEventService&&a.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({...X_(e,this.gos,"rowSelected"),event:n||null,source:i}),!0}isCellCheckboxSelection(e,t){const n=this.gos.get("rowSelection");if(n&&typeof n!="string"){const i=$r(e)&&Qa(n);return e.isColumnFunc(t,i)}else return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,n,i){const{gos:o,selectionCtx:r}=this,s=e.isSelected(),a=Fc(o),l=xO(o),u=FO(o),h=this.isMultiSelect(),f=i==="rowClicked";if(f&&!(l||u))return null;if(t&&n&&h){const g=r.getRoot();if(g)if(g.isSelected()){const m=r.isInRange(e)?r.truncate(e):r.extend(e,a);return{deselect:m.discard,select:m.keep,reset:!1}}else{const m=r.extend(e,a);return{select:[],deselect:m.keep,reset:!1}}else return null}else if(t&&h){const g=r.selectAll?this.beans.rowModel.getRow(0):void 0,m=r.getRoot(g),v=r.isInRange(e)?r.truncate(e):r.extend(e,a);return{select:v.keep,deselect:v.discard,reset:r.selectAll||!!(m&&!m.isSelected())}}else if(n){if(f){const g=!s;return g&&!l||!g&&!u?null:(r.setRoot(e),{node:e,newValue:g,clearSelection:!1})}return r.setRoot(e),{node:e,newValue:!s,clearSelection:!h}}else{r.setRoot(e);const g=PO(o),m=Wd(o)==="filteredDescendants",v=f&&(!g||!l);if(m&&s===void 0&&en(o))return{node:e,newValue:!1,checkFilteredNodes:!0,clearSelection:!h||v};if(f){const w=s?!g:l;return w===s&&!v||w&&!l||!w&&!u?null:{node:e,newValue:w,clearSelection:!h||v,keepDescendants:e.group&&a}}return{node:e,newValue:!s,clearSelection:!h||v}}}},pU=class extends gU{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();const{gos:e}=this;this.mode=Vd(e),this.groupSelectsDescendants=Fc(e),this.groupSelectsFiltered=Wd(e)==="filteredDescendants",this.masterSelectsDetail=R0(e)==="detail",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=Fc(e),n=Vd(e),i=Wd(e)==="filteredDescendants";this.masterSelectsDetail=R0(e)==="detail",(t!==this.groupSelectsDescendants||i!==this.groupSelectsFiltered||n!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=i,this.mode=n)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,n){if(this.isRowSelectionBlocked(t))return 0;const i=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,n);if(i==null)return 0;if(this.selectionCtx.selectAll=!1,"select"in i)return i.reset?this.resetNodes():this.selectRange(i.deselect,!1,n),this.selectRange(i.select,!0,n);{const o=i.checkFilteredNodes?C1(i.node):i.newValue;return this.setNodesSelected({nodes:[i.node],newValue:o,clearSelection:i.clearSelection,keepDescendants:i.keepDescendants,event:e,source:n})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:n,nodes:i,event:o,source:r,keepDescendants:s=!1}){if(i.length===0)return 0;const{gos:a}=this;if(!Gs(a)&&e)return le(132),0;if(i.length>1&&!this.isMultiSelect())return le(130),0;let l=0;for(let u=0;u<i.length;u++){const h=i[u],f=h.primaryRow;if(f.rowPinned&&!yh(f)){le(59);continue}if(f.id===void 0){le(60);continue}if(e&&h.destroyed)continue;this.groupSelectsFiltered&&f.group&&!a.get("treeData")||this.selectRowNode(f,e,o,r)&&(this.detailSelection.delete(f.id),l++),this.groupSelectsDescendants&&f.childrenAfterGroup?.length&&(l+=this.selectChildren(f,e,r))}return n||(i.length===1&&r==="api"&&this.selectionCtx.setRoot(i[0].primaryRow),e&&(t||!this.isMultiSelect())&&(l+=this.clearOtherNodes(i[0].primaryRow,s,r)),l>0&&(this.updateGroupsFromChildrenSelections(r),this.dispatchSelectionChanged(r))),l}selectRange(e,t,n){let i=0;return e.forEach(o=>{const r=o.primaryRow;if(r.group&&this.groupSelectsDescendants)return;this.selectRowNode(r,t,void 0,n)&&i++}),i>0&&(this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n)),i}selectChildren(e,t,n){const i=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return i?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:n,nodes:i}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];return this.selectedNodes.forEach(t=>t.data&&e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach((n,i)=>{e(n)&&t.set(i,n)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:n,rowModel:i}=this.beans;if(!en(n))return!1;const o=i.rootNode;if(!o)return!1;let r=!1;const s=a=>{if(a!==o){const l=this.calculateSelectedFromChildren(a);r=this.selectRowNode(a,l===null?!1:l,void 0,e)||r}};return oa(o,this.beans.rowModel.hierarchical,t,s),r}clearOtherNodes(e,t,n){const i=new Map;let o=0;return this.selectedNodes.forEach(r=>{const s=r.id==e.id;if((t?!vU(e,r):!0)&&!s){const l=this.selectedNodes.get(r.id);o+=this.setNodesSelected({nodes:[l],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:n}),this.groupSelectsDescendants&&r.parent&&i.set(r.parent.id,r.parent)}}),i.forEach(r=>{const s=this.calculateSelectedFromChildren(r);this.selectRowNode(r,s===null?!1:s,void 0,n)}),o}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new qr(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!en(e))return;const n=t.getTopLevelNodes();if(n===null)return;const i=[];function o(r){for(let s=0,a=r.length;s<a;s++){const l=r[s];l.isSelected()?i.push(l):l.group&&l.childrenAfterGroup&&o(l.childrenAfterGroup)}}return o(n),i}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes({source:e,selectAll:t}){const n=en(this.gos);let i=!1;const o=r=>{const s=this.selectRowNode(r.primaryRow,!1,void 0,e);i||(i=s)};if(t==="currentPage"||t==="filtered"){if(!n){vt(102);return}this.getNodesToSelect(t).forEach(o)}else this.selectedNodes.forEach(o),this.reset(e);if(this.selectionCtx.selectAll=!1,n&&this.groupSelectsDescendants){const r=this.updateGroupsFromChildrenSelections(e);i||(i=r)}i&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,n=0;return this.getNodesToSelect(e).forEach(i=>{this.groupSelectsDescendants&&i.group||(i.isSelected()?t++:i.selectable&&n++)}),{selectedCount:t,notSelectedCount:n}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:n}=this.getSelectedCounts(e);return v1(t,n)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(t=>t.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],n=o=>t.push(o);if(e==="currentPage")return this.forEachNodeOnPage(o=>{if(!o.group){n(o);return}if(!o.footer&&!o.expanded){const r=s=>{n(s);const a=s.childrenAfterFilter;if(a)for(let l=0,u=a.length;l<u;++l)r(a[l])};r(o);return}this.groupSelectsDescendants||n(o)}),t;const i=this.beans.rowModel;return e==="filtered"?(i.forEachNodeAfterFilter(n),t):(i.forEachNode(n),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:n}=this.beans,i=t.getFirstRow(),o=t.getLastRow();for(let r=i;r<=o;r++){const s=n.getRow(r);s&&e(s)}}selectAllRowNodes(e){const{gos:t,selectionCtx:n}=this;if(!Gs(t)){le(132);return}if(RO(t)&&!xc(t)){le(130);return}if(!this.canSelectAll())return;const{source:i,selectAll:o}=e;let r=!1;if(this.getNodesToSelect(o).forEach(s=>{const a=this.selectRowNode(s.primaryRow,!0,void 0,i);r||(r=a)}),n.selectAll=!0,en(t)&&this.groupSelectsDescendants){const s=this.updateGroupsFromChildrenSelections(i);r||(r=s)}r&&this.dispatchSelectionChanged(i)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,n){if(e||(e=[]),!Array.isArray(e)){vt(103);return}const i=new Set(e),o=[];this.beans.rowModel.forEachNode(r=>{i.has(r.id)&&o.push(r)}),n&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:o,source:t})}canSelectAll(){return en(this.beans.gos)}updateSelectable(e){const{gos:t,rowModel:n}=this.beans;if(!Gs(t))return;const i="selectableChanged",o=en(t)&&this.groupSelectsDescendants,r=[];if(o){const s=n.rootNode;s&&oa(s,n.hierarchical,e,a=>{let l=!1;for(const u of a.childrenAfterGroup)l||(l=u.selectable),!u.group&&!this.updateRowSelectable(u,!0)&&u.isSelected()&&r.push(u);this.setRowSelectable(a,l,!0)})}else n.forEachNode(s=>{!this.updateRowSelectable(s,!0)&&s.isSelected()&&r.push(s)});r.length&&this.setNodesSelected({nodes:r,newValue:!1,source:i}),!e&&o&&this.updateGroupsFromChildrenSelections?.(i)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const n=e.detailNode?.detailGridInfo?.api;if(!n)return;const i=mU(n);e.isSelected()!==i&&this.selectRowNode(e,i,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),i||this.detailSelection.set(e.id,new Set(n.getSelectedNodes().map(r=>r.id)))}setDetailSelectionState(e,t,n){if(this.masterSelectsDetail){if(!xc(t)){le(269);return}switch(e.isSelected()){case!0:{n.selectAll();break}case!1:{n.deselectAll();break}case void 0:{const i=this.detailSelection.get(e.id);if(i){const o=[];for(const r of i){const s=n.getRowNode(r);s&&o.push(s)}n.setNodesSelected({nodes:o,newValue:!0,source:"masterDetail"})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function mU(e){let t=0,n=0;return e.forEachNode(i=>{i.isSelected()?t++:i.selectable&&n++}),v1(t,n)}function v1(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function vU(e,t){let n=t.parent;for(;n;){if(n===e)return!0;n=n.parent}return!1}function C1(e){const t=e.isSelected()===!1,n=e.childrenAfterFilter?.some(C1)??!1;return t||n}var CU={moduleName:"SharedRowSelection",version:Re,beans:[X9],css:[eU],apiFunctions:{setNodesSelected:tU,selectAll:nU,deselectAll:iU,selectAllFiltered:oU,deselectAllFiltered:rU,selectAllOnCurrentPage:sU,deselectAllOnCurrentPage:aU,getSelectedNodes:lU,getSelectedRows:cU}},wU={moduleName:"RowSelection",version:Re,rowModels:["clientSide","infinite","viewport"],beans:[pU],dependsOn:[CU]},bU=class extends X{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,n=e.colDef,i=n.cellClassRules,o=this.getCellClassParams(e,n);Xm(this.beans.expressionSvc,i===this.cellClassRules?void 0:this.cellClassRules,i,o,r=>t.toggleCss(r,!0),r=>t.toggleCss(r,!1)),this.cellClassRules=i}applyUserStyles(){const e=this.column,t=e.colDef,n=t.cellStyle;if(!n)return;let i;if(typeof n=="function"){const o=this.getCellClassParams(e,t);i=n(o)}else i=n;i&&this.cellComp.setUserStyles(i)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,n=e.colDef,i=this.getCellClassParams(e,n);for(const r of this.staticClasses)t.toggleCss(r,!1);const o=this.beans.cellStyles.getStaticCellClasses(n,i);this.staticClasses=o;for(const r of o)t.toggleCss(r,!0)}getCellClassParams(e,t){const{value:n,rowNode:i}=this.cellCtrl;return Ue(this.beans.gos,{value:n,data:i.data,node:i,colDef:t,column:e,rowIndex:i.rowIndex})}},yU=class extends X{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,n,i){Xm(this.beans.expressionSvc,void 0,e.cellClassRules,t,n,i),this.processStaticCellClasses(e,t,n)}getStaticCellClasses(e,t){const{cellClass:n}=e;if(!n)return[];let i;return typeof n=="function"?i=n(t):i=n,typeof i=="string"&&(i=[i]),i||[]}createCellCustomStyleFeature(e){return new bU(e,this.beans)}processStaticCellClasses(e,t,n){this.getStaticCellClasses(e,t).forEach(o=>{n(o)})}},SU={moduleName:"CellStyle",version:Re,beans:[yU]},RU={moduleName:"RowStyle",version:Re,beans:[v3]},xU={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,overlayComponent:!0,suppressOverlays:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,renderingMode:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0,enableFilterHandlers:!0,filterHandlers:!0},li="clientSide",Nn="serverSide",gl="infinite",FU={onGroupExpandedOrCollapsed:[li],refreshClientSideRowModel:[li],isRowDataEmpty:[li],forEachLeafNode:[li],forEachNodeAfterFilter:[li],forEachNodeAfterFilterAndSort:[li],resetRowHeights:[li,Nn],applyTransaction:[li],applyTransactionAsync:[li],flushAsyncTransactions:[li],getBestCostNodeSelection:[li],getServerSideSelectionState:[Nn],setServerSideSelectionState:[Nn],applyServerSideTransaction:[Nn],applyServerSideTransactionAsync:[Nn],applyServerSideRowData:[Nn],retryServerSideLoads:[Nn],flushServerSideAsyncTransactions:[Nn],refreshServerSide:[Nn],getServerSideGroupLevelState:[Nn],refreshInfiniteCache:[gl],purgeInfiniteCache:[gl],getInfiniteRowCount:[gl],isLastRowIndexKnown:[gl,Nn],expandAll:[li,Nn],collapseAll:[li,Nn],onRowHeightChanged:[li,Nn],setRowCount:[gl,Nn],getCacheBlockState:[gl,Nn]},PU={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};function EU(e,t,n){const i=PU[e];if(i){const{version:r,new:s,old:a,message:l}=i,u=a??e;return(...h)=>{const f=s?`Please use ${s} instead. `:"";return yc(`Since ${r} api.${u} is deprecated. ${f}${l??""}`),t.apply(t,h)}}const o=FU[e];return o?(...r)=>{const s=n.rowModel.getType();if(!o.includes(s)){za(`api.${e} can only be called when gridOptions.rowModelType is ${o.join(" or ")}`);return}return t.apply(t,r)}:t}var DU={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agBigIntColumnFilterHandler:"BigIntFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},TU={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,"filter-add":1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,aasc:1,adesc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1,"chevron-up":1,"chevron-down":1,"chevron-left":1,"chevron-right":1,edit:1},AU={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterAdd:"NewFiltersToolPanel",filterCardCollapse:"NewFiltersToolPanel",filterCardExpand:"NewFiltersToolPanel",filterCardEditing:"NewFiltersToolPanel",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",overlayLoading:"Overlay",overlayExporting:"Overlay",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",richSelectLoading:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortAbsoluteAscending:["MenuCore","Sort"],sortAbsoluteDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow"},IU=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),MU=class extends X{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,cO(TW)}warnOnInitialPropertyUpdate(e,t){e==="api"&&xU[t]&&le(22,{key:t})}processGridOptions(e){this.processOptions(e,C5())}validateApiFunction(e,t){return EU(e,t,this.beans)}missingUserComponent(e,t,n,i){const o=al[t];o?this.gos.assertModuleRegistered(o,`AG Grid '${e}' component: ${t}`):le(101,{propertyName:e,componentName:t,agGridDefaults:n,jsComps:i})}missingDynamicBean(e){const t=DU[e];return t?Do(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){LU.has(e)&&le(10,{eventType:e})}validateIcon(e){if(IU.has(e)&&le(43,{iconName:e}),TU[e])return;const t=AU[e];if(t){vt(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:Ip(),gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}le(134,{iconName:e})}isProvidedUserComp(e){return!!al[e]}validateColDef(e){this.processOptions(e,u5())}processOptions(e,t){const{validations:n,deprecations:i,allProperties:o,propertyExceptions:r,objectName:s,docsUrl:a}=t;o&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...r??[],...Object.keys(i)],o,s,a);const l=new Set;if(Object.keys(e).forEach(h=>{const f=i[h];if(f){const{message:R,version:S}=f;l.add(`As of v${S}, ${String(h)} is deprecated. ${R??""}`)}const g=e[h];if(g==null||g===!1)return;const m=n[h];if(!m)return;const{dependencies:v,validate:w,supportedRowModels:b,expectedType:y}=m;if(y){const R=typeof g;if(R!==y){l.add(`${String(h)} should be of type '${y}' but received '${R}' (${g}).`);return}}if(b){const R=this.gridOptions.rowModelType??"clientSide";if(!b.includes(R)){l.add(`${String(h)} is not supported with the '${R}' row model. It is only valid with: ${b.join(", ")}.`);return}}if(v){const R=this.checkForRequiredDependencies(h,v,e);if(R){l.add(R);return}}if(w){const R=w(e,this.gridOptions,this.beans);if(R){l.add(R);return}}}),l.size>0)for(const h of l)yc(h)}checkForRequiredDependencies(e,t,n){const o=Object.entries(t).filter(([r,s])=>{const a=n[r];return!s.required.includes(a)});return o.length===0?null:o.map(([r,s])=>`'${String(e)}' requires '${r}' to be one of [${s.required.map(a=>a===null?"null":a===void 0?"undefined":a).join(", ")}]. ${s.reason??""}`).join(`
65
- `)}checkProperties(e,t,n,i,o){const r=["__ob__","__v_skip","__metadata__"],s=kU(Object.getOwnPropertyNames(e),[...r,...t,...n],n),a=Object.keys(s);for(const l of a){const u=s[l];let h=`invalid ${i} property '${l}' did you mean any of these: ${u.slice(0,8).join(", ")}.`;n.includes("context")&&(h+=`
66
- If you are trying to annotate ${i} with application data, use the '${i}.context' property instead.`),yc(h)}if(a.length>0&&o){const l=this.beans.frameworkOverrides.getDocLink(o);yc(`to see all the valid ${i} properties please check: ${l}`)}}};function kU(e,t,n){const i={},o=e.filter(r=>!t.some(s=>s===r));if(o.length>0)for(const r of o)i[r]=rv({inputValue:r,allSuggestions:n}).values;return i}var LU=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),OU={moduleName:"Validation",version:Re,beans:[MU]},_U={moduleName:"AllCommunity",version:Re,dependsOn:[Az,Jz,N8,OU,F6,P6,E6,D6,T6,A6,I6,x6,y8,S8,R8,x8,b8,P8,E8,Z8,NW,C9,fx,hF,YW,z9,Nz,AB,F9,wU,pW,SU,Wz,RU,z8,CW,O9,PF,$8,$9,TB,Iz,J9]},NU=class{wrap(e,t,n,i){const o=this.createWrapper(e,i);for(const r of t??[])this.createMethod(o,r,!0);for(const r of n??[])this.createMethod(o,r,!1);return o}createMethod(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))}createMethodProxy(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&le(49,{methodName:t}),null)}}};function zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function BU(e){if(Array.isArray(e))return e}function HU(e){if(Array.isArray(e))return zv(e)}function GU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VU(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,b1(i.key),i)}}function WU(e,t,n){return t&&VU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gh(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Uv(e))||t){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
67
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return s=l.done,l},e:function(l){a=!0,r=l},f:function(){try{s||n.return==null||n.return()}finally{if(a)throw r}}}}function tt(e,t,n){return(t=b1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,r,s,a=[],l=!0,u=!1;try{if(r=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(h){u=!0,o=h}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function $U(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
68
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
69
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w1(Object(n),!0).forEach(function(i){tt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w1(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Vh(e,t){return BU(e)||UU(e,t)||Uv(e,t)||$U()}function co(e){return HU(e)||zU(e)||Uv(e)||jU()}function KU(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b1(e){var t=KU(e,"string");return typeof t=="symbol"?t:t+""}function Wh(e){"@babel/helpers - typeof";return Wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wh(e)}function Uv(e,t){if(e){if(typeof e=="string")return zv(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zv(e,t):void 0}}var y1=function(){},$v={},S1={},R1=null,x1={mark:y1,measure:y1};try{typeof window<"u"&&($v=window),typeof document<"u"&&(S1=document),typeof MutationObserver<"u"&&(R1=MutationObserver),typeof performance<"u"&&(x1=performance)}catch{}var qU=$v.navigator||{},F1=qU.userAgent,P1=F1===void 0?"":F1,ss=$v,_t=S1,E1=R1,zh=x1;ss.document;var dr=!!_t.documentElement&&!!_t.head&&typeof _t.addEventListener=="function"&&typeof _t.createElement=="function",D1=~P1.indexOf("MSIE")||~P1.indexOf("Trident/"),jv,QU=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,YU=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,T1={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},graphite:{"fa-thin":"thin",fagt:"thin"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},ZU={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},A1=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Fn="classic",jc="duotone",I1="sharp",M1="sharp-duotone",k1="chisel",L1="etch",O1="graphite",_1="jelly",N1="jelly-duo",B1="jelly-fill",H1="notdog",G1="notdog-duo",V1="slab",W1="slab-press",z1="thumbprint",U1="utility",$1="utility-duo",j1="utility-fill",K1="whiteboard",JU="Classic",XU="Duotone",e$="Sharp",t$="Sharp Duotone",n$="Chisel",i$="Etch",o$="Graphite",r$="Jelly",s$="Jelly Duo",a$="Jelly Fill",l$="Notdog",c$="Notdog Duo",u$="Slab",d$="Slab Press",h$="Thumbprint",f$="Utility",g$="Utility Duo",p$="Utility Fill",m$="Whiteboard",q1=[Fn,jc,I1,M1,k1,L1,O1,_1,N1,B1,H1,G1,V1,W1,z1,U1,$1,j1,K1];jv={},tt(tt(tt(tt(tt(tt(tt(tt(tt(tt(jv,Fn,JU),jc,XU),I1,e$),M1,t$),k1,n$),L1,i$),O1,o$),_1,r$),N1,s$),B1,a$),tt(tt(tt(tt(tt(tt(tt(tt(tt(jv,H1,l$),G1,c$),V1,u$),W1,d$),z1,h$),U1,f$),$1,g$),j1,p$),K1,m$);var v$={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},graphite:{100:"fagt"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},C$={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Graphite":{100:"fagt",normal:"fagt"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},w$=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["graphite",{defaultShortPrefixId:"fagt",defaultStyleId:"thin",styleIds:["thin"],futureStyleIds:[],defaultFontWeight:100}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),b$={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},graphite:{thin:"fagt"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},Q1=["fak","fa-kit","fakd","fa-kit-duotone"],Y1={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},y$=["kit"],S$="kit",R$="kit-duotone",x$="Kit",F$="Kit Duotone";tt(tt({},S$,x$),R$,F$);var P$={kit:{"fa-kit":"fak"}},E$={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},D$={kit:{fak:"fa-kit"}},Z1={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Kv,Uh={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},T$=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],A$="classic",I$="duotone",M$="sharp",k$="sharp-duotone",L$="chisel",O$="etch",_$="graphite",N$="jelly",B$="jelly-duo",H$="jelly-fill",G$="notdog",V$="notdog-duo",W$="slab",z$="slab-press",U$="thumbprint",$$="utility",j$="utility-duo",K$="utility-fill",q$="whiteboard",Q$="Classic",Y$="Duotone",Z$="Sharp",J$="Sharp Duotone",X$="Chisel",ej="Etch",tj="Graphite",nj="Jelly",ij="Jelly Duo",oj="Jelly Fill",rj="Notdog",sj="Notdog Duo",aj="Slab",lj="Slab Press",cj="Thumbprint",uj="Utility",dj="Utility Duo",hj="Utility Fill",fj="Whiteboard";Kv={},tt(tt(tt(tt(tt(tt(tt(tt(tt(tt(Kv,A$,Q$),I$,Y$),M$,Z$),k$,J$),L$,X$),O$,ej),_$,tj),N$,nj),B$,ij),H$,oj),tt(tt(tt(tt(tt(tt(tt(tt(tt(Kv,G$,rj),V$,sj),W$,aj),z$,lj),U$,cj),$$,uj),j$,dj),K$,hj),q$,fj);var gj="kit",pj="kit-duotone",mj="Kit",vj="Kit Duotone";tt(tt({},gj,mj),pj,vj);var Cj={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},graphite:{"fa-thin":"fagt"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},wj={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],graphite:["fagt"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},qv={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},graphite:{fagt:"fa-thin"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},bj=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],J1=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fagt","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(T$,bj),yj=["solid","regular","light","thin","duotone","brands","semibold"],X1=[1,2,3,4,5,6,7,8,9,10],Sj=X1.concat([11,12,13,14,15,16,17,18,19,20]),Rj=["aw","fw","pull-left","pull-right"],xj=[].concat(co(Object.keys(wj)),yj,Rj,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",Uh.GROUP,Uh.SWAP_OPACITY,Uh.PRIMARY,Uh.SECONDARY]).concat(X1.map(function(e){return"".concat(e,"x")})).concat(Sj.map(function(e){return"w-".concat(e)})),Fj={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},hr="___FONT_AWESOME___",Qv=16,eP="fa",tP="svg-inline--fa",sa="data-fa-i2svg",Yv="data-fa-pseudo-element",Pj="data-fa-pseudo-element-pending",Zv="data-prefix",Jv="data-icon",nP="fontawesome-i2svg",Ej="async",Dj=["HTML","HEAD","STYLE","SCRIPT"],iP=["::before","::after",":before",":after"],oP=(function(){try{return!0}catch{return!1}})();function Kc(e){return new Proxy(e,{get:function(n,i){return i in n?n[i]:n[Fn]}})}var rP=ye({},T1);rP[Fn]=ye(ye(ye(ye({},{"fa-duotone":"duotone"}),T1[Fn]),Y1.kit),Y1["kit-duotone"]);var Tj=Kc(rP),Xv=ye({},b$);Xv[Fn]=ye(ye(ye(ye({},{duotone:"fad"}),Xv[Fn]),Z1.kit),Z1["kit-duotone"]);var sP=Kc(Xv),eC=ye({},qv);eC[Fn]=ye(ye({},eC[Fn]),D$.kit);var tC=Kc(eC),nC=ye({},Cj);nC[Fn]=ye(ye({},nC[Fn]),P$.kit),Kc(nC);var Aj=QU,aP="fa-layers-text",Ij=YU,Mj=ye({},v$);Kc(Mj);var kj=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],iC=ZU,Lj=[].concat(co(y$),co(xj)),qc=ss.FontAwesomeConfig||{};function Oj(e){var t=_t.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function _j(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(_t&&typeof _t.querySelector=="function"){var Nj=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Nj.forEach(function(e){var t=Vh(e,2),n=t[0],i=t[1],o=_j(Oj(n));o!=null&&(qc[i]=o)})}var lP={styleDefault:"solid",familyDefault:Fn,cssPrefix:eP,replacementClass:tP,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};qc.familyPrefix&&(qc.cssPrefix=qc.familyPrefix);var pl=ye(ye({},lP),qc);pl.autoReplaceSvg||(pl.observeMutations=!1);var We={};Object.keys(lP).forEach(function(e){Object.defineProperty(We,e,{enumerable:!0,set:function(n){pl[e]=n,Qc.forEach(function(i){return i(We)})},get:function(){return pl[e]}})}),Object.defineProperty(We,"familyPrefix",{enumerable:!0,set:function(t){pl.cssPrefix=t,Qc.forEach(function(n){return n(We)})},get:function(){return pl.cssPrefix}}),ss.FontAwesomeConfig=We;var Qc=[];function Bj(e){return Qc.push(e),function(){Qc.splice(Qc.indexOf(e),1)}}var ml=Qv,Bo={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Hj(e){if(!(!e||!dr)){var t=_t.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=_t.head.childNodes,i=null,o=n.length-1;o>-1;o--){var r=n[o],s=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(i=r)}return _t.head.insertBefore(t,i),e}}var Gj="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function cP(){for(var e=12,t="";e-- >0;)t+=Gj[Math.random()*62|0];return t}function vl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function oC(e){return e.classList?vl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function uP(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Vj(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(uP(e[n]),'" ')},"").trim()}function $h(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function rC(e){return e.size!==Bo.size||e.x!==Bo.x||e.y!==Bo.y||e.rotate!==Bo.rotate||e.flipX||e.flipY}function Wj(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},r="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(r," ").concat(s," ").concat(a)},u={transform:"translate(".concat(i/2*-1," -256)")};return{outer:o,inner:l,path:u}}function zj(e){var t=e.transform,n=e.width,i=n===void 0?Qv:n,o=e.height,r=o===void 0?Qv:o,s="";return D1?s+="translate(".concat(t.x/ml-i/2,"em, ").concat(t.y/ml-r/2,"em) "):s+="translate(calc(-50% + ".concat(t.x/ml,"em), calc(-50% + ").concat(t.y/ml,"em)) "),s+="scale(".concat(t.size/ml*(t.flipX?-1:1),", ").concat(t.size/ml*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var Uj=`:root, :host {
70
- --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';
71
- --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';
72
- --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';
73
- --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';
74
- --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';
75
- --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';
76
- --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';
77
- --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';
78
- --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';
79
- --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';
80
- --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';
81
- --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';
82
- --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';
83
- --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';
84
- --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';
85
- --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';
86
- --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';
87
- --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';
88
- --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';
89
- --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';
90
- --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';
91
- --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';
92
- --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';
93
- --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';
94
- --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';
95
- --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';
96
- --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';
97
- --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';
98
- --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';
99
- --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';
100
- --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';
101
- --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';
102
- }
103
-
104
- .svg-inline--fa {
105
- box-sizing: content-box;
106
- display: var(--fa-display, inline-block);
107
- height: 1em;
108
- overflow: visible;
109
- vertical-align: -0.125em;
110
- width: var(--fa-width, 1.25em);
111
- }
112
- .svg-inline--fa.fa-2xs {
113
- vertical-align: 0.1em;
114
- }
115
- .svg-inline--fa.fa-xs {
116
- vertical-align: 0em;
117
- }
118
- .svg-inline--fa.fa-sm {
119
- vertical-align: -0.0714285714em;
120
- }
121
- .svg-inline--fa.fa-lg {
122
- vertical-align: -0.2em;
123
- }
124
- .svg-inline--fa.fa-xl {
125
- vertical-align: -0.25em;
126
- }
127
- .svg-inline--fa.fa-2xl {
128
- vertical-align: -0.3125em;
129
- }
130
- .svg-inline--fa.fa-pull-left,
131
- .svg-inline--fa .fa-pull-start {
132
- float: inline-start;
133
- margin-inline-end: var(--fa-pull-margin, 0.3em);
134
- }
135
- .svg-inline--fa.fa-pull-right,
136
- .svg-inline--fa .fa-pull-end {
137
- float: inline-end;
138
- margin-inline-start: var(--fa-pull-margin, 0.3em);
139
- }
140
- .svg-inline--fa.fa-li {
141
- width: var(--fa-li-width, 2em);
142
- inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
143
- inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
144
- }
145
-
146
- .fa-layers-counter, .fa-layers-text {
147
- display: inline-block;
148
- position: absolute;
149
- text-align: center;
150
- }
151
-
152
- .fa-layers {
153
- display: inline-block;
154
- height: 1em;
155
- position: relative;
156
- text-align: center;
157
- vertical-align: -0.125em;
158
- width: var(--fa-width, 1.25em);
159
- }
160
- .fa-layers .svg-inline--fa {
161
- inset: 0;
162
- margin: auto;
163
- position: absolute;
164
- transform-origin: center center;
165
- }
166
-
167
- .fa-layers-text {
168
- left: 50%;
169
- top: 50%;
170
- transform: translate(-50%, -50%);
171
- transform-origin: center center;
172
- }
173
-
174
- .fa-layers-counter {
175
- background-color: var(--fa-counter-background-color, #ff253a);
176
- border-radius: var(--fa-counter-border-radius, 1em);
177
- box-sizing: border-box;
178
- color: var(--fa-inverse, #fff);
179
- line-height: var(--fa-counter-line-height, 1);
180
- max-width: var(--fa-counter-max-width, 5em);
181
- min-width: var(--fa-counter-min-width, 1.5em);
182
- overflow: hidden;
183
- padding: var(--fa-counter-padding, 0.25em 0.5em);
184
- right: var(--fa-right, 0);
185
- text-overflow: ellipsis;
186
- top: var(--fa-top, 0);
187
- transform: scale(var(--fa-counter-scale, 0.25));
188
- transform-origin: top right;
189
- }
190
-
191
- .fa-layers-bottom-right {
192
- bottom: var(--fa-bottom, 0);
193
- right: var(--fa-right, 0);
194
- top: auto;
195
- transform: scale(var(--fa-layers-scale, 0.25));
196
- transform-origin: bottom right;
197
- }
198
-
199
- .fa-layers-bottom-left {
200
- bottom: var(--fa-bottom, 0);
201
- left: var(--fa-left, 0);
202
- right: auto;
203
- top: auto;
204
- transform: scale(var(--fa-layers-scale, 0.25));
205
- transform-origin: bottom left;
206
- }
207
-
208
- .fa-layers-top-right {
209
- top: var(--fa-top, 0);
210
- right: var(--fa-right, 0);
211
- transform: scale(var(--fa-layers-scale, 0.25));
212
- transform-origin: top right;
213
- }
214
-
215
- .fa-layers-top-left {
216
- left: var(--fa-left, 0);
217
- right: auto;
218
- top: var(--fa-top, 0);
219
- transform: scale(var(--fa-layers-scale, 0.25));
220
- transform-origin: top left;
221
- }
222
-
223
- .fa-1x {
224
- font-size: 1em;
225
- }
226
-
227
- .fa-2x {
228
- font-size: 2em;
229
- }
230
-
231
- .fa-3x {
232
- font-size: 3em;
233
- }
234
-
235
- .fa-4x {
236
- font-size: 4em;
237
- }
238
-
239
- .fa-5x {
240
- font-size: 5em;
241
- }
242
-
243
- .fa-6x {
244
- font-size: 6em;
245
- }
246
-
247
- .fa-7x {
248
- font-size: 7em;
249
- }
250
-
251
- .fa-8x {
252
- font-size: 8em;
253
- }
254
-
255
- .fa-9x {
256
- font-size: 9em;
257
- }
258
-
259
- .fa-10x {
260
- font-size: 10em;
261
- }
262
-
263
- .fa-2xs {
264
- font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
265
- line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
266
- vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
267
- }
268
-
269
- .fa-xs {
270
- font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
271
- line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
272
- vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
273
- }
274
-
275
- .fa-sm {
276
- font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
277
- line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
278
- vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
279
- }
280
-
281
- .fa-lg {
282
- font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
283
- line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
284
- vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
285
- }
286
-
287
- .fa-xl {
288
- font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
289
- line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
290
- vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
291
- }
292
-
293
- .fa-2xl {
294
- font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
295
- line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
296
- vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
297
- }
298
-
299
- .fa-width-auto {
300
- --fa-width: auto;
301
- }
302
-
303
- .fa-fw,
304
- .fa-width-fixed {
305
- --fa-width: 1.25em;
306
- }
307
-
308
- .fa-ul {
309
- list-style-type: none;
310
- margin-inline-start: var(--fa-li-margin, 2.5em);
311
- padding-inline-start: 0;
312
- }
313
- .fa-ul > li {
314
- position: relative;
315
- }
316
-
317
- .fa-li {
318
- inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
319
- position: absolute;
320
- text-align: center;
321
- width: var(--fa-li-width, 2em);
322
- line-height: inherit;
323
- }
324
-
325
- /* Heads Up: Bordered Icons will not be supported in the future!
326
- - This feature will be deprecated in the next major release of Font Awesome (v8)!
327
- - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
328
- */
329
- /* Notes:
330
- * --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
331
- * --@{v.$css-prefix}-border-padding =
332
- ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
333
- ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
334
- */
335
- .fa-border {
336
- border-color: var(--fa-border-color, #eee);
337
- border-radius: var(--fa-border-radius, 0.1em);
338
- border-style: var(--fa-border-style, solid);
339
- border-width: var(--fa-border-width, 0.0625em);
340
- box-sizing: var(--fa-border-box-sizing, content-box);
341
- padding: var(--fa-border-padding, 0.1875em 0.25em);
342
- }
343
-
344
- .fa-pull-left,
345
- .fa-pull-start {
346
- float: inline-start;
347
- margin-inline-end: var(--fa-pull-margin, 0.3em);
348
- }
349
-
350
- .fa-pull-right,
351
- .fa-pull-end {
352
- float: inline-end;
353
- margin-inline-start: var(--fa-pull-margin, 0.3em);
354
- }
355
-
356
- .fa-beat {
357
- animation-name: fa-beat;
358
- animation-delay: var(--fa-animation-delay, 0s);
359
- animation-direction: var(--fa-animation-direction, normal);
360
- animation-duration: var(--fa-animation-duration, 1s);
361
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
362
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
363
- }
364
-
365
- .fa-bounce {
366
- animation-name: fa-bounce;
367
- animation-delay: var(--fa-animation-delay, 0s);
368
- animation-direction: var(--fa-animation-direction, normal);
369
- animation-duration: var(--fa-animation-duration, 1s);
370
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
371
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
372
- }
373
-
374
- .fa-fade {
375
- animation-name: fa-fade;
376
- animation-delay: var(--fa-animation-delay, 0s);
377
- animation-direction: var(--fa-animation-direction, normal);
378
- animation-duration: var(--fa-animation-duration, 1s);
379
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
380
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
381
- }
382
-
383
- .fa-beat-fade {
384
- animation-name: fa-beat-fade;
385
- animation-delay: var(--fa-animation-delay, 0s);
386
- animation-direction: var(--fa-animation-direction, normal);
387
- animation-duration: var(--fa-animation-duration, 1s);
388
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
389
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
390
- }
391
-
392
- .fa-flip {
393
- animation-name: fa-flip;
394
- animation-delay: var(--fa-animation-delay, 0s);
395
- animation-direction: var(--fa-animation-direction, normal);
396
- animation-duration: var(--fa-animation-duration, 1s);
397
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
398
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
399
- }
400
-
401
- .fa-shake {
402
- animation-name: fa-shake;
403
- animation-delay: var(--fa-animation-delay, 0s);
404
- animation-direction: var(--fa-animation-direction, normal);
405
- animation-duration: var(--fa-animation-duration, 1s);
406
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
407
- animation-timing-function: var(--fa-animation-timing, linear);
408
- }
409
-
410
- .fa-spin {
411
- animation-name: fa-spin;
412
- animation-delay: var(--fa-animation-delay, 0s);
413
- animation-direction: var(--fa-animation-direction, normal);
414
- animation-duration: var(--fa-animation-duration, 2s);
415
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
416
- animation-timing-function: var(--fa-animation-timing, linear);
417
- }
418
-
419
- .fa-spin-reverse {
420
- --fa-animation-direction: reverse;
421
- }
422
-
423
- .fa-pulse,
424
- .fa-spin-pulse {
425
- animation-name: fa-spin;
426
- animation-direction: var(--fa-animation-direction, normal);
427
- animation-duration: var(--fa-animation-duration, 1s);
428
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
429
- animation-timing-function: var(--fa-animation-timing, steps(8));
430
- }
431
-
432
- @media (prefers-reduced-motion: reduce) {
433
- .fa-beat,
434
- .fa-bounce,
435
- .fa-fade,
436
- .fa-beat-fade,
437
- .fa-flip,
438
- .fa-pulse,
439
- .fa-shake,
440
- .fa-spin,
441
- .fa-spin-pulse {
442
- animation: none !important;
443
- transition: none !important;
444
- }
445
- }
446
- @keyframes fa-beat {
447
- 0%, 90% {
448
- transform: scale(1);
449
- }
450
- 45% {
451
- transform: scale(var(--fa-beat-scale, 1.25));
452
- }
453
- }
454
- @keyframes fa-bounce {
455
- 0% {
456
- transform: scale(1, 1) translateY(0);
457
- }
458
- 10% {
459
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
460
- }
461
- 30% {
462
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
463
- }
464
- 50% {
465
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
466
- }
467
- 57% {
468
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
469
- }
470
- 64% {
471
- transform: scale(1, 1) translateY(0);
472
- }
473
- 100% {
474
- transform: scale(1, 1) translateY(0);
475
- }
476
- }
477
- @keyframes fa-fade {
478
- 50% {
479
- opacity: var(--fa-fade-opacity, 0.4);
480
- }
481
- }
482
- @keyframes fa-beat-fade {
483
- 0%, 100% {
484
- opacity: var(--fa-beat-fade-opacity, 0.4);
485
- transform: scale(1);
486
- }
487
- 50% {
488
- opacity: 1;
489
- transform: scale(var(--fa-beat-fade-scale, 1.125));
490
- }
491
- }
492
- @keyframes fa-flip {
493
- 50% {
494
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
495
- }
496
- }
497
- @keyframes fa-shake {
498
- 0% {
499
- transform: rotate(-15deg);
500
- }
501
- 4% {
502
- transform: rotate(15deg);
503
- }
504
- 8%, 24% {
505
- transform: rotate(-18deg);
506
- }
507
- 12%, 28% {
508
- transform: rotate(18deg);
509
- }
510
- 16% {
511
- transform: rotate(-22deg);
512
- }
513
- 20% {
514
- transform: rotate(22deg);
515
- }
516
- 32% {
517
- transform: rotate(-12deg);
518
- }
519
- 36% {
520
- transform: rotate(12deg);
521
- }
522
- 40%, 100% {
523
- transform: rotate(0deg);
524
- }
525
- }
526
- @keyframes fa-spin {
527
- 0% {
528
- transform: rotate(0deg);
529
- }
530
- 100% {
531
- transform: rotate(360deg);
532
- }
533
- }
534
- .fa-rotate-90 {
535
- transform: rotate(90deg);
536
- }
537
-
538
- .fa-rotate-180 {
539
- transform: rotate(180deg);
540
- }
541
-
542
- .fa-rotate-270 {
543
- transform: rotate(270deg);
544
- }
545
-
546
- .fa-flip-horizontal {
547
- transform: scale(-1, 1);
548
- }
549
-
550
- .fa-flip-vertical {
551
- transform: scale(1, -1);
552
- }
553
-
554
- .fa-flip-both,
555
- .fa-flip-horizontal.fa-flip-vertical {
556
- transform: scale(-1, -1);
557
- }
558
-
559
- .fa-rotate-by {
560
- transform: rotate(var(--fa-rotate-angle, 0));
561
- }
562
-
563
- .svg-inline--fa .fa-primary {
564
- fill: var(--fa-primary-color, currentColor);
565
- opacity: var(--fa-primary-opacity, 1);
566
- }
567
-
568
- .svg-inline--fa .fa-secondary {
569
- fill: var(--fa-secondary-color, currentColor);
570
- opacity: var(--fa-secondary-opacity, 0.4);
571
- }
572
-
573
- .svg-inline--fa.fa-swap-opacity .fa-primary {
574
- opacity: var(--fa-secondary-opacity, 0.4);
575
- }
576
-
577
- .svg-inline--fa.fa-swap-opacity .fa-secondary {
578
- opacity: var(--fa-primary-opacity, 1);
579
- }
580
-
581
- .svg-inline--fa mask .fa-primary,
582
- .svg-inline--fa mask .fa-secondary {
583
- fill: black;
584
- }
585
-
586
- .svg-inline--fa.fa-inverse {
587
- fill: var(--fa-inverse, #fff);
588
- }
589
-
590
- .fa-stack {
591
- display: inline-block;
592
- height: 2em;
593
- line-height: 2em;
594
- position: relative;
595
- vertical-align: middle;
596
- width: 2.5em;
597
- }
598
-
599
- .fa-inverse {
600
- color: var(--fa-inverse, #fff);
601
- }
602
-
603
- .svg-inline--fa.fa-stack-1x {
604
- --fa-width: 1.25em;
605
- height: 1em;
606
- width: var(--fa-width);
607
- }
608
- .svg-inline--fa.fa-stack-2x {
609
- --fa-width: 2.5em;
610
- height: 2em;
611
- width: var(--fa-width);
612
- }
613
-
614
- .fa-stack-1x,
615
- .fa-stack-2x {
616
- inset: 0;
617
- margin: auto;
618
- position: absolute;
619
- z-index: var(--fa-stack-z-index, auto);
620
- }`;function dP(){var e=eP,t=tP,n=We.cssPrefix,i=We.replacementClass,o=Uj;if(n!==e||i!==t){var r=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(r,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(i))}return o}var hP=!1;function sC(){We.autoAddCss&&!hP&&(Hj(dP()),hP=!0)}var $j={mixout:function(){return{dom:{css:dP,insertCss:sC}}},hooks:function(){return{beforeDOMElementCreation:function(){sC()},beforeI2svg:function(){sC()}}}},fr=ss||{};fr[hr]||(fr[hr]={}),fr[hr].styles||(fr[hr].styles={}),fr[hr].hooks||(fr[hr].hooks={}),fr[hr].shims||(fr[hr].shims=[]);var uo=fr[hr],fP=[],gP=function(){_t.removeEventListener("DOMContentLoaded",gP),jh=1,fP.map(function(t){return t()})},jh=!1;dr&&(jh=(_t.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(_t.readyState),jh||_t.addEventListener("DOMContentLoaded",gP));function jj(e){dr&&(jh?setTimeout(e,0):fP.push(e))}function Yc(e){var t=e.tag,n=e.attributes,i=n===void 0?{}:n,o=e.children,r=o===void 0?[]:o;return typeof e=="string"?uP(e):"<".concat(t," ").concat(Vj(i),">").concat(r.map(Yc).join(""),"</").concat(t,">")}function pP(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var aC=function(t,n,i,o){var r=Object.keys(t),s=r.length,a=n,l,u,h;for(i===void 0?(l=1,h=t[r[0]]):(l=0,h=i);l<s;l++)u=r[l],h=a(h,t[u],u,t);return h};function mP(e){return co(e).length!==1?null:e.codePointAt(0).toString(16)}function vP(e){return Object.keys(e).reduce(function(t,n){var i=e[n],o=!!i.icon;return o?t[i.iconName]=i.icon:t[n]=i,t},{})}function lC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.skipHooks,o=i===void 0?!1:i,r=vP(t);typeof uo.hooks.addPack=="function"&&!o?uo.hooks.addPack(e,vP(t)):uo.styles[e]=ye(ye({},uo.styles[e]||{}),r),e==="fas"&&lC("fa",t)}var Zc=uo.styles,Kj=uo.shims,CP=Object.keys(tC),qj=CP.reduce(function(e,t){return e[t]=Object.keys(tC[t]),e},{}),cC=null,wP={},bP={},yP={},SP={},RP={};function Qj(e){return~Lj.indexOf(e)}function Yj(e,t){var n=t.split("-"),i=n[0],o=n.slice(1).join("-");return i===e&&o!==""&&!Qj(o)?o:null}var xP=function(){var t=function(r){return aC(Zc,function(s,a,l){return s[l]=aC(a,r,{}),s},{})};wP=t(function(o,r,s){if(r[3]&&(o[r[3]]=s),r[2]){var a=r[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){o[l.toString(16)]=s})}return o}),bP=t(function(o,r,s){if(o[s]=s,r[2]){var a=r[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){o[l]=s})}return o}),RP=t(function(o,r,s){var a=r[2];return o[s]=s,a.forEach(function(l){o[l]=s}),o});var n="far"in Zc||We.autoFetchSvg,i=aC(Kj,function(o,r){var s=r[0],a=r[1],l=r[2];return a==="far"&&!n&&(a="fas"),typeof s=="string"&&(o.names[s]={prefix:a,iconName:l}),typeof s=="number"&&(o.unicodes[s.toString(16)]={prefix:a,iconName:l}),o},{names:{},unicodes:{}});yP=i.names,SP=i.unicodes,cC=Kh(We.styleDefault,{family:We.familyDefault})};Bj(function(e){cC=Kh(e.styleDefault,{family:We.familyDefault})}),xP();function uC(e,t){return(wP[e]||{})[t]}function Zj(e,t){return(bP[e]||{})[t]}function aa(e,t){return(RP[e]||{})[t]}function FP(e){return yP[e]||{prefix:null,iconName:null}}function Jj(e){var t=SP[e],n=uC("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function as(){return cC}var PP=function(){return{prefix:null,iconName:null,rest:[]}};function Xj(e){var t=Fn,n=CP.reduce(function(i,o){return i[o]="".concat(We.cssPrefix,"-").concat(o),i},{});return q1.forEach(function(i){(e.includes(n[i])||e.some(function(o){return qj[i].includes(o)}))&&(t=i)}),t}function Kh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,i=n===void 0?Fn:n,o=Tj[i][e];if(i===jc&&!e)return"fad";var r=sP[i][e]||sP[i][o],s=e in uo.styles?e:null,a=r||s||null;return a}function eK(e){var t=[],n=null;return e.forEach(function(i){var o=Yj(We.cssPrefix,i);o?n=o:i&&t.push(i)}),{iconName:n,rest:t}}function EP(e){return e.sort().filter(function(t,n,i){return i.indexOf(t)===n})}var DP=J1.concat(Q1);function qh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,i=n===void 0?!1:n,o=null,r=EP(e.filter(function(m){return DP.includes(m)})),s=EP(e.filter(function(m){return!DP.includes(m)})),a=r.filter(function(m){return o=m,!A1.includes(m)}),l=Vh(a,1),u=l[0],h=u===void 0?null:u,f=Xj(r),g=ye(ye({},eK(s)),{},{prefix:Kh(h,{family:f})});return ye(ye(ye({},g),oK({values:e,family:f,styles:Zc,config:We,canonical:g,givenPrefix:o})),tK(i,o,g))}function tK(e,t,n){var i=n.prefix,o=n.iconName;if(e||!i||!o)return{prefix:i,iconName:o};var r=t==="fa"?FP(o):{},s=aa(i,o);return o=r.iconName||s||o,i=r.prefix||i,i==="far"&&!Zc.far&&Zc.fas&&!We.autoFetchSvg&&(i="fas"),{prefix:i,iconName:o}}var nK=q1.filter(function(e){return e!==Fn||e!==jc}),iK=Object.keys(qv).filter(function(e){return e!==Fn}).map(function(e){return Object.keys(qv[e])}).flat();function oK(e){var t=e.values,n=e.family,i=e.canonical,o=e.givenPrefix,r=o===void 0?"":o,s=e.styles,a=s===void 0?{}:s,l=e.config,u=l===void 0?{}:l,h=n===jc,f=t.includes("fa-duotone")||t.includes("fad"),g=u.familyDefault==="duotone",m=i.prefix==="fad"||i.prefix==="fa-duotone";if(!h&&(f||g||m)&&(i.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(i.prefix="fab"),!i.prefix&&nK.includes(n)){var v=Object.keys(a).find(function(b){return iK.includes(b)});if(v||u.autoFetchSvg){var w=w$.get(n).defaultShortPrefixId;i.prefix=w,i.iconName=aa(i.prefix,i.iconName)||i.iconName}}return(i.prefix==="fa"||r==="fa")&&(i.prefix=as()||"fas"),i}var rK=(function(){function e(){GU(this,e),this.definitions={}}return WU(e,[{key:"add",value:function(){for(var n=this,i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];var s=o.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(a){n.definitions[a]=ye(ye({},n.definitions[a]||{}),s[a]),lC(a,s[a]);var l=tC[Fn][a];l&&lC(l,s[a]),xP()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,i){var o=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(o).map(function(r){var s=o[r],a=s.prefix,l=s.iconName,u=s.icon,h=u[2];n[a]||(n[a]={}),h.length>0&&h.forEach(function(f){typeof f=="string"&&(n[a][f]=u)}),n[a][l]=u}),n}}])})(),TP=[],Cl={},wl={},sK=Object.keys(wl);function aK(e,t){var n=t.mixoutsTo;return TP=e,Cl={},Object.keys(wl).forEach(function(i){sK.indexOf(i)===-1&&delete wl[i]}),TP.forEach(function(i){var o=i.mixout?i.mixout():{};if(Object.keys(o).forEach(function(s){typeof o[s]=="function"&&(n[s]=o[s]),Wh(o[s])==="object"&&Object.keys(o[s]).forEach(function(a){n[s]||(n[s]={}),n[s][a]=o[s][a]})}),i.hooks){var r=i.hooks();Object.keys(r).forEach(function(s){Cl[s]||(Cl[s]=[]),Cl[s].push(r[s])})}i.provides&&i.provides(wl)}),n}function dC(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var r=Cl[e]||[];return r.forEach(function(s){t=s.apply(null,[t].concat(i))}),t}function la(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=Cl[e]||[];o.forEach(function(r){r.apply(null,n)})}function ls(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return wl[e]?wl[e].apply(null,t):void 0}function hC(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||as();if(t)return t=aa(n,t)||t,pP(AP.definitions,n,t)||pP(uo.styles,n,t)}var AP=new rK,lK=function(){We.autoReplaceSvg=!1,We.observeMutations=!1,la("noAuto")},cK={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return dr?(la("beforeI2svg",t),ls("pseudoElements2svg",t),ls("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;We.autoReplaceSvg===!1&&(We.autoReplaceSvg=!0),We.observeMutations=!0,jj(function(){dK({autoReplaceSvgRoot:n}),la("watch",t)})}},uK={icon:function(t){if(t===null)return null;if(Wh(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:aa(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],i=Kh(t[0]);return{prefix:i,iconName:aa(i,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(We.cssPrefix,"-"))>-1||t.match(Aj))){var o=qh(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||as(),iconName:aa(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var r=as();return{prefix:r,iconName:aa(r,t)||t}}}},Ci={noAuto:lK,config:We,dom:cK,parse:uK,library:AP,findIconDefinition:hC,toHtml:Yc},dK=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,i=n===void 0?_t:n;(Object.keys(uo.styles).length>0||We.autoFetchSvg)&&dr&&We.autoReplaceSvg&&Ci.dom.i2svg({node:i})};function Qh(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return Yc(i)})}}),Object.defineProperty(e,"node",{get:function(){if(dr){var i=_t.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function hK(e){var t=e.children,n=e.main,i=e.mask,o=e.attributes,r=e.styles,s=e.transform;if(rC(s)&&n.found&&!i.found){var a=n.width,l=n.height,u={x:a/l/2,y:.5};o.style=$h(ye(ye({},r),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function fK(e){var t=e.prefix,n=e.iconName,i=e.children,o=e.attributes,r=e.symbol,s=r===!0?"".concat(t,"-").concat(We.cssPrefix,"-").concat(n):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ye(ye({},o),{},{id:s}),children:i}]}]}function gK(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function fC(e){var t=e.icons,n=t.main,i=t.mask,o=e.prefix,r=e.iconName,s=e.transform,a=e.symbol,l=e.maskId,u=e.extra,h=e.watchable,f=h===void 0?!1:h,g=i.found?i:n,m=g.width,v=g.height,w=[We.replacementClass,r?"".concat(We.cssPrefix,"-").concat(r):""].filter(function(F){return u.classes.indexOf(F)===-1}).filter(function(F){return F!==""||!!F}).concat(u.classes).join(" "),b={children:[],attributes:ye(ye({},u.attributes),{},{"data-prefix":o,"data-icon":r,class:w,role:u.attributes.role||"img",viewBox:"0 0 ".concat(m," ").concat(v)})};!gK(u.attributes)&&!u.attributes["aria-hidden"]&&(b.attributes["aria-hidden"]="true"),f&&(b.attributes[sa]="");var y=ye(ye({},b),{},{prefix:o,iconName:r,main:n,mask:i,maskId:l,transform:s,symbol:a,styles:ye({},u.styles)}),R=i.found&&n.found?ls("generateAbstractMask",y)||{children:[],attributes:{}}:ls("generateAbstractIcon",y)||{children:[],attributes:{}},S=R.children,P=R.attributes;return y.children=S,y.attributes=P,a?fK(y):hK(y)}function IP(e){var t=e.content,n=e.width,i=e.height,o=e.transform,r=e.extra,s=e.watchable,a=s===void 0?!1:s,l=ye(ye({},r.attributes),{},{class:r.classes.join(" ")});a&&(l[sa]="");var u=ye({},r.styles);rC(o)&&(u.transform=zj({transform:o,width:n,height:i}),u["-webkit-transform"]=u.transform);var h=$h(u);h.length>0&&(l.style=h);var f=[];return f.push({tag:"span",attributes:l,children:[t]}),f}function pK(e){var t=e.content,n=e.extra,i=ye(ye({},n.attributes),{},{class:n.classes.join(" ")}),o=$h(n.styles);o.length>0&&(i.style=o);var r=[];return r.push({tag:"span",attributes:i,children:[t]}),r}var gC=uo.styles;function pC(e){var t=e[0],n=e[1],i=e.slice(4),o=Vh(i,1),r=o[0],s=null;return Array.isArray(r)?s={tag:"g",attributes:{class:"".concat(We.cssPrefix,"-").concat(iC.GROUP)},children:[{tag:"path",attributes:{class:"".concat(We.cssPrefix,"-").concat(iC.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(We.cssPrefix,"-").concat(iC.PRIMARY),fill:"currentColor",d:r[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:s}}var mK={found:!1,width:512,height:512};function vK(e,t){!oP&&!We.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function mC(e,t){var n=t;return t==="fa"&&We.styleDefault!==null&&(t=as()),new Promise(function(i,o){if(n==="fa"){var r=FP(e)||{};e=r.iconName||e,t=r.prefix||t}if(e&&t&&gC[t]&&gC[t][e]){var s=gC[t][e];return i(pC(s))}vK(e,t),i(ye(ye({},mK),{},{icon:We.showMissingIcons&&e?ls("missingIconAbstract")||{}:{}}))})}var MP=function(){},vC=We.measurePerformance&&zh&&zh.mark&&zh.measure?zh:{mark:MP,measure:MP},Jc='FA "7.2.0"',CK=function(t){return vC.mark("".concat(Jc," ").concat(t," begins")),function(){return kP(t)}},kP=function(t){vC.mark("".concat(Jc," ").concat(t," ends")),vC.measure("".concat(Jc," ").concat(t),"".concat(Jc," ").concat(t," begins"),"".concat(Jc," ").concat(t," ends"))},CC={begin:CK,end:kP},Yh=function(){};function LP(e){var t=e.getAttribute?e.getAttribute(sa):null;return typeof t=="string"}function wK(e){var t=e.getAttribute?e.getAttribute(Zv):null,n=e.getAttribute?e.getAttribute(Jv):null;return t&&n}function bK(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(We.replacementClass)}function yK(){if(We.autoReplaceSvg===!0)return Zh.replace;var e=Zh[We.autoReplaceSvg];return e||Zh.replace}function SK(e){return _t.createElementNS("http://www.w3.org/2000/svg",e)}function RK(e){return _t.createElement(e)}function OP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?SK:RK:n;if(typeof e=="string")return _t.createTextNode(e);var o=i(e.tag);Object.keys(e.attributes||[]).forEach(function(s){o.setAttribute(s,e.attributes[s])});var r=e.children||[];return r.forEach(function(s){o.appendChild(OP(s,{ceFn:i}))}),o}function xK(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Zh={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(OP(o),n)}),n.getAttribute(sa)===null&&We.keepOriginalSource){var i=_t.createComment(xK(n));n.parentNode.replaceChild(i,n)}else n.remove()},nest:function(t){var n=t[0],i=t[1];if(~oC(n).indexOf(We.replacementClass))return Zh.replace(t);var o=new RegExp("".concat(We.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var r=i[0].attributes.class.split(" ").reduce(function(a,l){return l===We.replacementClass||l.match(o)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});i[0].attributes.class=r.toSvg.join(" "),r.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",r.toNode.join(" "))}var s=i.map(function(a){return Yc(a)}).join(`
621
- `);n.setAttribute(sa,""),n.innerHTML=s}};function _P(e){e()}function NP(e,t){var n=typeof t=="function"?t:Yh;if(e.length===0)n();else{var i=_P;We.mutateApproach===Ej&&(i=ss.requestAnimationFrame||_P),i(function(){var o=yK(),r=CC.begin("mutate");e.map(o),r(),n()})}}var wC=!1;function BP(){wC=!0}function bC(){wC=!1}var Jh=null;function HP(e){if(E1&&We.observeMutations){var t=e.treeCallback,n=t===void 0?Yh:t,i=e.nodeCallback,o=i===void 0?Yh:i,r=e.pseudoElementsCallback,s=r===void 0?Yh:r,a=e.observeMutationsRoot,l=a===void 0?_t:a;Jh=new E1(function(u){if(!wC){var h=as();vl(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!LP(f.addedNodes[0])&&(We.searchPseudoElements&&s(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&We.searchPseudoElements&&s([f.target],!0),f.type==="attributes"&&LP(f.target)&&~kj.indexOf(f.attributeName))if(f.attributeName==="class"&&wK(f.target)){var g=qh(oC(f.target)),m=g.prefix,v=g.iconName;f.target.setAttribute(Zv,m||h),v&&f.target.setAttribute(Jv,v)}else bK(f.target)&&o(f.target)})}}),dr&&Jh.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function FK(){Jh&&Jh.disconnect()}function PK(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(i,o){var r=o.split(":"),s=r[0],a=r.slice(1);return s&&a.length>0&&(i[s]=a.join(":").trim()),i},{})),n}function EK(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",o=qh(oC(e));return o.prefix||(o.prefix=as()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&i.length>0&&(o.iconName=Zj(o.prefix,e.innerText)||uC(o.prefix,mP(e.innerText))),!o.iconName&&We.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function DK(e){var t=vl(e.attributes).reduce(function(n,i){return n.name!=="class"&&n.name!=="style"&&(n[i.name]=i.value),n},{});return t}function TK(){return{iconName:null,prefix:null,transform:Bo,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function GP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=EK(e),i=n.iconName,o=n.prefix,r=n.rest,s=DK(e),a=dC("parseNodeAttributes",{},e),l=t.styleParser?PK(e):[];return ye({iconName:i,prefix:o,transform:Bo,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:l,attributes:s}},a)}var AK=uo.styles;function VP(e){var t=We.autoReplaceSvg==="nest"?GP(e,{styleParser:!1}):GP(e);return~t.extra.classes.indexOf(aP)?ls("generateLayersText",e,t):ls("generateSvgReplacementMutation",e,t)}function IK(){return[].concat(co(Q1),co(J1))}function WP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!dr)return Promise.resolve();var n=_t.documentElement.classList,i=function(f){return n.add("".concat(nP,"-").concat(f))},o=function(f){return n.remove("".concat(nP,"-").concat(f))},r=We.autoFetchSvg?IK():A1.concat(Object.keys(AK));r.includes("fa")||r.push("fa");var s=[".".concat(aP,":not([").concat(sa,"])")].concat(r.map(function(h){return".".concat(h,":not([").concat(sa,"])")})).join(", ");if(s.length===0)return Promise.resolve();var a=[];try{a=vl(e.querySelectorAll(s))}catch{}if(a.length>0)i("pending"),o("complete");else return Promise.resolve();var l=CC.begin("onTree"),u=a.reduce(function(h,f){try{var g=VP(f);g&&h.push(g)}catch(m){oP||m.name==="MissingIcon"&&console.error(m)}return h},[]);return new Promise(function(h,f){Promise.all(u).then(function(g){NP(g,function(){i("active"),i("complete"),o("pending"),typeof t=="function"&&t(),l(),h()})}).catch(function(g){l(),f(g)})})}function MK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;VP(e).then(function(n){n&&NP([n],t)})}function kK(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:hC(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:hC(o||{})),e(i,ye(ye({},n),{},{mask:o}))}}var LK=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,o=i===void 0?Bo:i,r=n.symbol,s=r===void 0?!1:r,a=n.mask,l=a===void 0?null:a,u=n.maskId,h=u===void 0?null:u,f=n.classes,g=f===void 0?[]:f,m=n.attributes,v=m===void 0?{}:m,w=n.styles,b=w===void 0?{}:w;if(t){var y=t.prefix,R=t.iconName,S=t.icon;return Qh(ye({type:"icon"},t),function(){return la("beforeDOMElementCreation",{iconDefinition:t,params:n}),fC({icons:{main:pC(S),mask:l?pC(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:R,transform:ye(ye({},Bo),o),symbol:s,maskId:h,extra:{attributes:v,styles:b,classes:g}})})}},OK={mixout:function(){return{icon:kK(LK)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=WP,n.nodeCallback=MK,n}}},provides:function(t){t.i2svg=function(n){var i=n.node,o=i===void 0?_t:i,r=n.callback,s=r===void 0?function(){}:r;return WP(o,s)},t.generateSvgReplacementMutation=function(n,i){var o=i.iconName,r=i.prefix,s=i.transform,a=i.symbol,l=i.mask,u=i.maskId,h=i.extra;return new Promise(function(f,g){Promise.all([mC(o,r),l.iconName?mC(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(m){var v=Vh(m,2),w=v[0],b=v[1];f([n,fC({icons:{main:w,mask:b},prefix:r,iconName:o,transform:s,symbol:a,maskId:u,extra:h,watchable:!0})])}).catch(g)})},t.generateAbstractIcon=function(n){var i=n.children,o=n.attributes,r=n.main,s=n.transform,a=n.styles,l=$h(a);l.length>0&&(o.style=l);var u;return rC(s)&&(u=ls("generateAbstractTransformGrouping",{main:r,transform:s,containerWidth:r.width,iconWidth:r.width})),i.push(u||r.icon),{children:i,attributes:o}}}},_K={mixout:function(){return{layer:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.classes,r=o===void 0?[]:o;return Qh({type:"layer"},function(){la("beforeDOMElementCreation",{assembler:n,params:i});var s=[];return n(function(a){Array.isArray(a)?a.map(function(l){s=s.concat(l.abstract)}):s=s.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(We.cssPrefix,"-layers")].concat(co(r)).join(" ")},children:s}]})}}}},NK={mixout:function(){return{counter:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.title;var o=i.classes,r=o===void 0?[]:o,s=i.attributes,a=s===void 0?{}:s,l=i.styles,u=l===void 0?{}:l;return Qh({type:"counter",content:n},function(){return la("beforeDOMElementCreation",{content:n,params:i}),pK({content:n.toString(),extra:{attributes:a,styles:u,classes:["".concat(We.cssPrefix,"-layers-counter")].concat(co(r))}})})}}}},BK={mixout:function(){return{text:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.transform,r=o===void 0?Bo:o,s=i.classes,a=s===void 0?[]:s,l=i.attributes,u=l===void 0?{}:l,h=i.styles,f=h===void 0?{}:h;return Qh({type:"text",content:n},function(){return la("beforeDOMElementCreation",{content:n,params:i}),IP({content:n,transform:ye(ye({},Bo),r),extra:{attributes:u,styles:f,classes:["".concat(We.cssPrefix,"-layers-text")].concat(co(a))}})})}}},provides:function(t){t.generateLayersText=function(n,i){var o=i.transform,r=i.extra,s=null,a=null;if(D1){var l=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();s=u.width/l,a=u.height/l}return Promise.resolve([n,IP({content:n.innerHTML,width:s,height:a,transform:o,extra:r,watchable:!0})])}}},zP=new RegExp('"',"ug"),UP=[1105920,1112319],$P=ye(ye(ye(ye({},{FontAwesome:{normal:"fas",400:"fas"}}),C$),Fj),E$),yC=Object.keys($P).reduce(function(e,t){return e[t.toLowerCase()]=$P[t],e},{}),HK=Object.keys(yC).reduce(function(e,t){var n=yC[t];return e[t]=n[900]||co(Object.entries(n))[0][1],e},{});function GK(e){var t=e.replace(zP,"");return mP(co(t)[0]||"")}function VK(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),i=n.replace(zP,""),o=i.codePointAt(0),r=o>=UP[0]&&o<=UP[1],s=i.length===2?i[0]===i[1]:!1;return r||s||t}function WK(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(t),o=isNaN(i)?"normal":i;return(yC[n]||{})[o]||HK[n]}function jP(e,t){var n="".concat(Pj).concat(t.replace(":","-"));return new Promise(function(i,o){if(e.getAttribute(n)!==null)return i();var r=vl(e.children),s=r.filter(function(A){return A.getAttribute(Yv)===t})[0],a=ss.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),u=l.match(Ij),h=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!u)return e.removeChild(s),i();if(u&&f!=="none"&&f!==""){var g=a.getPropertyValue("content"),m=WK(l,h),v=GK(g),w=u[0].startsWith("FontAwesome"),b=VK(a),y=uC(m,v),R=y;if(w){var S=Jj(v);S.iconName&&S.prefix&&(y=S.iconName,m=S.prefix)}if(y&&!b&&(!s||s.getAttribute(Zv)!==m||s.getAttribute(Jv)!==R)){e.setAttribute(n,R),s&&e.removeChild(s);var P=TK(),F=P.extra;F.attributes[Yv]=t,mC(y,m).then(function(A){var k=fC(ye(ye({},P),{},{icons:{main:A,mask:PP()},prefix:m,iconName:R,extra:F,watchable:!0})),L=_t.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(L,e.firstChild):e.appendChild(L),L.outerHTML=k.map(function(N){return Yc(N)}).join(`
622
- `),e.removeAttribute(n),i()}).catch(o)}else i()}else i()})}function zK(e){return Promise.all([jP(e,"::before"),jP(e,"::after")])}function UK(e){return e.parentNode!==document.head&&!~Dj.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Yv)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var $K=function(t){return!!t&&iP.some(function(n){return t.includes(n)})},jK=function(t){if(!t)return[];var n=new Set,i=t.split(/,(?![^()]*\))/).map(function(l){return l.trim()});i=i.flatMap(function(l){return l.includes("(")?l:l.split(",").map(function(u){return u.trim()})});var o=Gh(i),r;try{for(o.s();!(r=o.n()).done;){var s=r.value;if($K(s)){var a=iP.reduce(function(l,u){return l.replace(u,"")},s);a!==""&&a!=="*"&&n.add(a)}}}catch(l){o.e(l)}finally{o.f()}return n};function KP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(dr){var n;if(t)n=e;else if(We.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var i=new Set,o=Gh(document.styleSheets),r;try{for(o.s();!(r=o.n()).done;){var s=r.value;try{var a=Gh(s.cssRules),l;try{for(a.s();!(l=a.n()).done;){var u=l.value,h=jK(u.selectorText),f=Gh(h),g;try{for(f.s();!(g=f.n()).done;){var m=g.value;i.add(m)}}catch(w){f.e(w)}finally{f.f()}}}catch(w){a.e(w)}finally{a.f()}}catch(w){We.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(s.href," (").concat(w.message,`)
623
- If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(w){o.e(w)}finally{o.f()}if(!i.size)return;var v=Array.from(i).join(", ");try{n=e.querySelectorAll(v)}catch{}}return new Promise(function(w,b){var y=vl(n).filter(UK).map(zK),R=CC.begin("searchPseudoElements");BP(),Promise.all(y).then(function(){R(),bC(),w()}).catch(function(){R(),bC(),b()})})}}var KK={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=KP,n}}},provides:function(t){t.pseudoElements2svg=function(n){var i=n.node,o=i===void 0?_t:i;We.searchPseudoElements&&KP(o)}}},qP=!1,qK={mixout:function(){return{dom:{unwatch:function(){BP(),qP=!0}}}},hooks:function(){return{bootstrap:function(){HP(dC("mutationObserverCallbacks",{}))},noAuto:function(){FK()},watch:function(n){var i=n.observeMutationsRoot;qP?bC():HP(dC("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},QP=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(i,o){var r=o.toLowerCase().split("-"),s=r[0],a=r.slice(1).join("-");if(s&&a==="h")return i.flipX=!0,i;if(s&&a==="v")return i.flipY=!0,i;if(a=parseFloat(a),isNaN(a))return i;switch(s){case"grow":i.size=i.size+a;break;case"shrink":i.size=i.size-a;break;case"left":i.x=i.x-a;break;case"right":i.x=i.x+a;break;case"up":i.y=i.y-a;break;case"down":i.y=i.y+a;break;case"rotate":i.rotate=i.rotate+a;break}return i},n)},QK={mixout:function(){return{parse:{transform:function(n){return QP(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,i){var o=i.getAttribute("data-fa-transform");return o&&(n.transform=QP(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var i=n.main,o=n.transform,r=n.containerWidth,s=n.iconWidth,a={transform:"translate(".concat(r/2," 256)")},l="translate(".concat(o.x*32,", ").concat(o.y*32,") "),u="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),h="rotate(".concat(o.rotate," 0 0)"),f={transform:"".concat(l," ").concat(u," ").concat(h)},g={transform:"translate(".concat(s/2*-1," -256)")},m={outer:a,inner:f,path:g};return{tag:"g",attributes:ye({},m.outer),children:[{tag:"g",attributes:ye({},m.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:ye(ye({},i.icon.attributes),m.path)}]}]}}}},SC={x:0,y:0,width:"100%",height:"100%"};function YP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function YK(e){return e.tag==="g"?e.children:[e]}var ZK={hooks:function(){return{parseNodeAttributes:function(n,i){var o=i.getAttribute("data-fa-mask"),r=o?qh(o.split(" ").map(function(s){return s.trim()})):PP();return r.prefix||(r.prefix=as()),n.mask=r,n.maskId=i.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var i=n.children,o=n.attributes,r=n.main,s=n.mask,a=n.maskId,l=n.transform,u=r.width,h=r.icon,f=s.width,g=s.icon,m=Wj({transform:l,containerWidth:f,iconWidth:u}),v={tag:"rect",attributes:ye(ye({},SC),{},{fill:"white"})},w=h.children?{children:h.children.map(YP)}:{},b={tag:"g",attributes:ye({},m.inner),children:[YP(ye({tag:h.tag,attributes:ye(ye({},h.attributes),m.path)},w))]},y={tag:"g",attributes:ye({},m.outer),children:[b]},R="mask-".concat(a||cP()),S="clip-".concat(a||cP()),P={tag:"mask",attributes:ye(ye({},SC),{},{id:R,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,y]},F={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:YK(g)},P]};return i.push(F,{tag:"rect",attributes:ye({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(R,")")},SC)}),{children:i,attributes:o}}}},JK={provides:function(t){var n=!1;ss.matchMedia&&(n=ss.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var i=[],o={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:ye(ye({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=ye(ye({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:ye(ye({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:ye(ye({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ye(ye({},s),{},{values:"1;0;1;1;0;1;"})}),i.push(a),i.push({tag:"path",attributes:ye(ye({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:ye(ye({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||i.push({tag:"path",attributes:ye(ye({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ye(ye({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},XK={hooks:function(){return{parseNodeAttributes:function(n,i){var o=i.getAttribute("data-fa-symbol"),r=o===null?!1:o===""?!0:o;return n.symbol=r,n}}}},eq=[$j,OK,_K,NK,BK,KK,qK,QK,ZK,JK,XK];aK(eq,{mixoutsTo:Ci}),Ci.noAuto,Ci.config;var bl=Ci.library;Ci.dom;var RC=Ci.parse;Ci.findIconDefinition,Ci.toHtml;var ZP=Ci.icon;Ci.layer,Ci.text,Ci.counter;var tq={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M0 64C0 28.7 28.7 0 64 0L213.5 0c17 0 33.3 6.7 45.3 18.7L365.3 125.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm208-5.5l0 93.5c0 13.3 10.7 24 24 24L325.5 176 208 58.5zM164 266.7c-7.4-11-22.3-14-33.3-6.7s-14 22.3-6.7 33.3L163.2 352 124 410.7c-7.4 11-4.4 25.9 6.7 33.3s25.9 4.4 33.3-6.7l28-42 28 42c7.4 11 22.3 14 33.3 6.7s14-22.3 6.7-33.3L220.8 352 260 293.3c7.4-11 4.4-25.9-6.7-33.3s-25.9-4.4-33.3 6.7l-28 42-28-42z"]},nq={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M32 64C19.1 64 7.4 71.8 2.4 83.8S.2 109.5 9.4 118.6L192 301.3 192 416c0 8.5 3.4 16.6 9.4 22.6l64 64c9.2 9.2 22.9 11.9 34.9 6.9S320 492.9 320 480l0-178.7 182.6-182.6c9.2-9.2 11.9-22.9 6.9-34.9S492.9 64 480 64L32 64z"]},iq={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M0 256a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm168 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm224-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},oq=iq,rq={prefix:"fas",iconName:"table-columns",icon:[448,512,["columns"],"f0db","M0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 128 0 0-256-128 0zm320 0l-128 0 0 256 128 0 0-256z"]},sq=rq,aq={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},lq={prefix:"fas",iconName:"download",icon:[448,512,[],"f019","M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},cq={prefix:"fas",iconName:"file-pdf",icon:[576,512,[],"f1c1","M96 0C60.7 0 32 28.7 32 64l0 384c0 35.3 28.7 64 64 64l80 0 0-112c0-35.3 28.7-64 64-64l176 0 0-165.5c0-17-6.7-33.3-18.7-45.3L290.7 18.7C278.7 6.7 262.5 0 245.5 0L96 0zM357.5 176L264 176c-13.3 0-24-10.7-24-24L240 58.5 357.5 176zM240 380c-11 0-20 9-20 20l0 128c0 11 9 20 20 20s20-9 20-20l0-28 12 0c33.1 0 60-26.9 60-60s-26.9-60-60-60l-32 0zm32 80l-12 0 0-40 12 0c11 0 20 9 20 20s-9 20-20 20zm96-80c-11 0-20 9-20 20l0 128c0 11 9 20 20 20l32 0c28.7 0 52-23.3 52-52l0-64c0-28.7-23.3-52-52-52l-32 0zm20 128l0-88 12 0c6.6 0 12 5.4 12 12l0 64c0 6.6-5.4 12-12 12l-12 0zm88-108l0 128c0 11 9 20 20 20s20-9 20-20l0-44 28 0c11 0 20-9 20-20s-9-20-20-20l-28 0 0-24 28 0c11 0 20-9 20-20s-9-20-20-20l-48 0c-11 0-20 9-20 20z"]};function xC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function uq(e){if(Array.isArray(e))return xC(e)}function Bn(e,t,n){return(t=mq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
624
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JP(Object(n),!0).forEach(function(i){Bn(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JP(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function FC(e,t){if(e==null)return{};var n,i,o=fq(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fq(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function gq(e){return uq(e)||dq(e)||vq(e)||hq()}function pq(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mq(e){var t=pq(e,"string");return typeof t=="symbol"?t:t+""}function Xh(e){"@babel/helpers - typeof";return Xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xh(e)}function vq(e,t){if(e){if(typeof e=="string")return xC(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xC(e,t):void 0}}function PC(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Bn({},e,t):{}}function Cq(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),Bn(Bn(Bn(Bn(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(i){return n[i]?i:null}).filter(function(i){return i})}var wq=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},XP={exports:{}};(function(e){(function(t){var n=function(y,R,S){if(!u(R)||f(R)||g(R)||m(R)||l(R))return R;var P,F=0,A=0;if(h(R))for(P=[],A=R.length;F<A;F++)P.push(n(y,R[F],S));else{P={};for(var k in R)Object.prototype.hasOwnProperty.call(R,k)&&(P[y(k,S)]=n(y,R[k],S))}return P},i=function(y,R){R=R||{};var S=R.separator||"_",P=R.split||/(?=[A-Z])/;return y.split(P).join(S)},o=function(y){return v(y)?y:(y=y.replace(/[\-_\s]+(.)?/g,function(R,S){return S?S.toUpperCase():""}),y.substr(0,1).toLowerCase()+y.substr(1))},r=function(y){var R=o(y);return R.substr(0,1).toUpperCase()+R.substr(1)},s=function(y,R){return i(y,R).toLowerCase()},a=Object.prototype.toString,l=function(y){return typeof y=="function"},u=function(y){return y===Object(y)},h=function(y){return a.call(y)=="[object Array]"},f=function(y){return a.call(y)=="[object Date]"},g=function(y){return a.call(y)=="[object RegExp]"},m=function(y){return a.call(y)=="[object Boolean]"},v=function(y){return y=y-0,y===y},w=function(y,R){var S=R&&"process"in R?R.process:R;return typeof S!="function"?y:function(P,F){return S(P,y,F)}},b={camelize:o,decamelize:s,pascalize:r,depascalize:s,camelizeKeys:function(y,R){return n(w(o,R),y)},decamelizeKeys:function(y,R){return n(w(s,R),y,R)},pascalizeKeys:function(y,R){return n(w(r,R),y)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=b:t.humps=b})(wq)})(XP);var bq=XP.exports,yq=["gradientFill"],Sq=["class","style"],Rq=["type","stops","id"];function xq(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),o=bq.camelize(n.slice(0,i)),r=n.slice(i+1).trim();return t[o]=r,t},{})}function Fq(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Pq(e,t){return rc("stop",Wt({key:"".concat(t,"-").concat(e.offset),offset:e.offset,"stop-color":e.color},e.opacity!==void 0&&{"stop-opacity":e.opacity}))}function eE(e){if(typeof e=="string")return e;var t=(e.children||[]).map(eE);return e.tag==="path"&&e.attributes&&"fill"in e.attributes?Wt(Wt({},e),{},{attributes:Wt(Wt({},e.attributes),{},{fill:void 0}),children:t}):Wt(Wt({},e),{},{children:t})}function tE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var i=t.gradientFill,o=i===void 0?null:i,r=FC(t,yq),s=!!o||"fill"in n,a=s?eE(e):e,l=(a.children||[]).map(function(P){return tE(P,{},{})}),u=Object.keys(a.attributes||{}).reduce(function(P,F){var A=a.attributes[F];switch(F){case"class":P.class=Fq(A);break;case"style":P.style=xq(A);break;default:P.attrs[F]=A}return P},{attrs:{},class:{},style:{}});n.class;var h=n.style,f=h===void 0?{}:h,g=FC(n,Sq);if(o&&o.id&&(o.type==="linear"||o.type==="radial")){var m=o.type,v=o.stops,w=v===void 0?[]:v,b=o.id,y=FC(o,Rq),R=m==="linear"?"linearGradient":"radialGradient",S=rc(R,Wt(Wt({},y),{},{id:b}),w.map(Pq));return rc(a.tag,Wt(Wt(Wt(Wt({},r),{},{class:u.class,style:Wt(Wt({},u.style),f)},u.attrs),g),{},{fill:"url(#".concat(b,")")}),[S].concat(gq(l)))}return rc(e.tag,Wt(Wt(Wt({},r),{},{class:u.class,style:Wt(Wt({},u.style),f)},u.attrs),g),l)}var nE=!1;try{nE=!0}catch{}function iE(){if(!nE&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function oE(e){if(e&&Xh(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(RC.icon)return RC.icon(e);if(e===null)return null;if(Xh(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var EC=wt({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1},gradientFill:{type:Object,default:null,validator:function(t){return typeof t.id!="string"||!t.id?(console.warn("FontAwesomeIcon: gradientFill.id must be a non-empty string"),!1):t.type!=="linear"&&t.type!=="radial"?(console.warn('FontAwesomeIcon: gradientFill.type must be "linear" or "radial"'),!1):!0}}},setup:function(t,n){var i=n.attrs,o=de(function(){return oE(t.icon)}),r=de(function(){return PC("classes",Cq(t))}),s=de(function(){return PC("transform",typeof t.transform=="string"?RC.transform(t.transform):t.transform)}),a=de(function(){return PC("mask",oE(t.mask))}),l=de(function(){var h=Wt(Wt(Wt(Wt({},r.value),s.value),a.value),{},{symbol:t.symbol,maskId:t.maskId});return h.title=t.title,h.titleId=t.titleId,ZP(o.value,h)});Jt(l,function(h){if(!h)return iE("Could not find one or more icon(s)",o.value,a.value)},{immediate:!0}),t.gradientFill&&t.symbol&&iE("gradientFill is not supported when symbol is true and will be ignored");var u=de(function(){return l.value?tE(l.value.abstract[0],{gradientFill:t.symbol?null:t.gradientFill},i):null});return function(){return u.value}}});function Eq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){let n=e;for(;n;)n.callback(),n=n.next},get(){const n=[];let i=e;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!i||e===null||(i=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}const rE={notify(){},get:()=>[]};function Dq(e,t){let n,i=rE,o=0,r=!1;function s(w){h();const b=i.subscribe(w);let y=!1;return()=>{y||(y=!0,b(),f())}}function a(){i.notify()}function l(){v.onStateChange&&v.onStateChange()}function u(){return r}function h(){o++,n||(n=e.subscribe(l),i=Eq())}function f(){o--,n&&o===0&&(n(),n=void 0,i.clear(),i=rE)}function g(){r||(r=!0,h())}function m(){r&&(r=!1,f())}const v={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:g,tryUnsubscribe:m,getListeners:()=>i};return v}const cs=Symbol.for("vue-redux-context");function Tq({store:e}){const t=Dq(e);return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),{store:e,subscription:t}}function DC(e,{store:t,context:n}){const i=Tq({store:t}),o=n||cs;e.provide(o,i)}function TC(e=cs){return function(){return Kl(e)}}const sE=TC();function aE(e=cs){const t=e===cs?sE:TC(e),n=()=>{const{store:i}=t();return i};return Object.assign(n,{withTypes:()=>n}),n}const Aq=aE();function Iq(e=cs){const t=e===cs?Aq:aE(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}const Mq=Iq();function kq(e,t){let n=e;return{untrackedValue:{get(){return n},set(i){}},ref:sy((i,o)=>({get(){return i(),n},set(r){t(n,r)||(n=r,o())}}))}}const Lq=(e,t)=>e===t;function Oq(e=cs){const t=e===cs?sE:TC(e),n=(i,o={})=>{const{equalityFn:r=Lq}=typeof o=="function"?{equalityFn:o}:o,{store:s,subscription:a}=t(),l=kq(i(s.getState()),r);return Jt(()=>s,(u,h,f)=>{const g=a.addNestedSub(()=>{const m=i(s.getState());l.ref.value=m});f(()=>{g()})},{immediate:!0,deep:!1}),XI(l.ref)};return Object.assign(n,{withTypes:()=>n}),n}const _q=Oq();function Pn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Nq=typeof Symbol=="function"&&Symbol.observable||"@@observable",lE=Nq,AC=()=>Math.random().toString(36).substring(7).split("").join("."),Bq={INIT:`@@redux/INIT${AC()}`,REPLACE:`@@redux/REPLACE${AC()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${AC()}`},ef=Bq;function us(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function cE(e,t,n){if(typeof e!="function")throw new Error(Pn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Pn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Pn(1));return n(cE)(e,t)}let i=e,o=t,r=new Map,s=r,a=0,l=!1;function u(){s===r&&(s=new Map,r.forEach((b,y)=>{s.set(y,b)}))}function h(){if(l)throw new Error(Pn(3));return o}function f(b){if(typeof b!="function")throw new Error(Pn(4));if(l)throw new Error(Pn(5));let y=!0;u();const R=a++;return s.set(R,b),function(){if(y){if(l)throw new Error(Pn(6));y=!1,u(),s.delete(R),r=null}}}function g(b){if(!us(b))throw new Error(Pn(7));if(typeof b.type>"u")throw new Error(Pn(8));if(typeof b.type!="string")throw new Error(Pn(17));if(l)throw new Error(Pn(9));try{l=!0,o=i(o,b)}finally{l=!1}return(r=s).forEach(R=>{R()}),b}function m(b){if(typeof b!="function")throw new Error(Pn(10));i=b,g({type:ef.REPLACE})}function v(){const b=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(Pn(11));function R(){const P=y;P.next&&P.next(h())}return R(),{unsubscribe:b(R)}},[lE](){return this}}}return g({type:ef.INIT}),{dispatch:g,subscribe:f,getState:h,replaceReducer:m,[lE]:v}}function Hq(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ef.INIT})>"u")throw new Error(Pn(12));if(typeof n(void 0,{type:ef.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pn(13))})}function uE(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const s=t[r];typeof e[s]=="function"&&(n[s]=e[s])}const i=Object.keys(n);let o;try{Hq(n)}catch(r){o=r}return function(s={},a){if(o)throw o;let l=!1;const u={};for(let h=0;h<i.length;h++){const f=i[h],g=n[f],m=s[f],v=g(m,a);if(typeof v>"u")throw a&&a.type,new Error(Pn(14));u[f]=v,l=l||v!==m}return l=l||i.length!==Object.keys(s).length,l?u:s}}function tf(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...i)=>t(n(...i)))}function Gq(...e){return t=>(n,i)=>{const o=t(n,i);let r=()=>{throw new Error(Pn(15))};const s={getState:o.getState,dispatch:(l,...u)=>r(l,...u)},a=e.map(l=>l(s));return r=tf(...a)(o.dispatch),{...o,dispatch:r}}}function dE(e){return us(e)&&"type"in e&&typeof e.type=="string"}var IC=Symbol.for("immer-nothing"),Xc=Symbol.for("immer-draftable"),vn=Symbol.for("immer-state");function En(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var wi=Object,ca=wi.getPrototypeOf,eu="constructor",tu="prototype",MC="configurable",nf="enumerable",of="writable",nu="value",bi=e=>!!e&&!!e[vn];function yi(e){return e?fE(e)||ru(e)||!!e[Xc]||!!e[eu]?.[Xc]||su(e)||au(e):!1}var Vq=wi[tu][eu].toString(),hE=new WeakMap;function fE(e){if(!e||!yl(e))return!1;const t=ca(e);if(t===null||t===wi[tu])return!0;const n=wi.hasOwnProperty.call(t,eu)&&t[eu];if(n===Object)return!0;if(!da(n))return!1;let i=hE.get(n);return i===void 0&&(i=Function.toString.call(n),hE.set(n,i)),i===Vq}function Wq(e){return bi(e)||En(15,e),e[vn].base_}function iu(e,t,n=!0){ua(e)===0?(n?Reflect.ownKeys(e):wi.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((i,o)=>t(o,i,e))}function ua(e){const t=e[vn];return t?t.type_:ru(e)?1:su(e)?2:au(e)?3:0}var ou=(e,t,n=ua(e))=>n===2?e.has(t):wi[tu].hasOwnProperty.call(e,t),gr=(e,t,n=ua(e))=>n===2?e.get(t):e[t],rf=(e,t,n,i=ua(e))=>{i===2?e.set(t,n):i===3?e.add(n):e[t]=n};function zq(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ru=Array.isArray,su=e=>e instanceof Map,au=e=>e instanceof Set,yl=e=>typeof e=="object",da=e=>typeof e=="function",kC=e=>typeof e=="boolean";function Uq(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var $q=e=>yl(e)?e?.[vn]:null,pr=e=>e.copy_||e.base_,LC=e=>e.modified_?e.copy_:e.base_;function OC(e,t){if(su(e))return new Map(e);if(au(e))return new Set(e);if(ru(e))return Array[tu].slice.call(e);const n=fE(e);if(t===!0||t==="class_only"&&!n){const i=wi.getOwnPropertyDescriptors(e);delete i[vn];let o=Reflect.ownKeys(i);for(let r=0;r<o.length;r++){const s=o[r],a=i[s];a[of]===!1&&(a[of]=!0,a[MC]=!0),(a.get||a.set)&&(i[s]={[MC]:!0,[of]:!0,[nf]:a[nf],[nu]:e[s]})}return wi.create(ca(e),i)}else{const i=ca(e);if(i!==null&&n)return{...e};const o=wi.create(i);return wi.assign(o,e)}}function _C(e,t=!1){return af(e)||bi(e)||!yi(e)||(ua(e)>1&&wi.defineProperties(e,{set:sf,add:sf,clear:sf,delete:sf}),wi.freeze(e),t&&iu(e,(n,i)=>{_C(i,!0)},!1)),e}function jq(){En(2)}var sf={[nu]:jq};function af(e){return e===null||!yl(e)?!0:wi.isFrozen(e)}var lf="MapSet",cf="Patches",gE="ArrayMethods",uf={};function ha(e){const t=uf[e];return t||En(0,e),t}var pE=e=>!!uf[e];function Kq(e,t){uf[e]||(uf[e]=t)}var lu,mE=()=>lu,qq=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:pE(lf)?ha(lf):void 0,arrayMethodsPlugin_:pE(gE)?ha(gE):void 0});function vE(e,t){t&&(e.patchPlugin_=ha(cf),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function NC(e){BC(e),e.drafts_.forEach(Qq),e.drafts_=null}function BC(e){e===lu&&(lu=e.parent_)}var CE=e=>lu=qq(lu,e);function Qq(e){const t=e[vn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function wE(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[vn].modified_&&(NC(t),En(4)),yi(e)&&(e=bE(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(n[vn].base_,e,t)}else e=bE(t,n);return Yq(t,e,!0),NC(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==IC?e:void 0}function bE(e,t){if(af(t))return t;const n=t[vn];if(!n)return hf(t,e.handledSet_,e);if(!df(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:i}=n;if(i)for(;i.length>0;)i.pop()(e);RE(n,e)}return n.copy_}function Yq(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_C(t,n)}function yE(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var df=(e,t)=>e.scope_===t,Zq=[];function SE(e,t,n,i){const o=pr(e),r=e.type_;if(i!==void 0&&gr(o,i,r)===t){rf(o,i,n,r);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;iu(o,(l,u)=>{if(bi(u)){const h=a.get(u)||[];h.push(l),a.set(u,h)}})}const s=e.draftLocations_.get(t)??Zq;for(const a of s)rf(o,a,n,r)}function Jq(e,t,n){e.callbacks_.push(function(o){const r=t;if(!r||!df(r,o))return;o.mapSetPlugin_?.fixSetContents(r);const s=LC(r);SE(e,r.draft_??r,s,n),RE(r,o)})}function RE(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:i}=t;if(i){const o=i.getPath(e);o&&i.generatePatches_(e,o,t)}yE(e)}}function Xq(e,t,n){const{scope_:i}=e;if(bi(n)){const o=n[vn];df(o,i)&&o.callbacks_.push(function(){gf(e);const s=LC(o);SE(e,n,s,t)})}else yi(n)&&e.callbacks_.push(function(){const r=pr(e);e.type_===3?r.has(n)&&hf(n,i.handledSet_,i):gr(r,t,e.type_)===n&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&hf(gr(e.copy_,t,e.type_),i.handledSet_,i)})}function hf(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||bi(e)||t.has(e)||!yi(e)||af(e)||(t.add(e),iu(e,(i,o)=>{if(bi(o)){const r=o[vn];if(df(r,n)){const s=LC(r);rf(e,i,s,e.type_),yE(r)}}else yi(o)&&hf(o,t,n)})),e}function eQ(e,t){const n=ru(e),i={type_:n?1:0,scope_:t?t.scope_:mE(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=i,r=ff;n&&(o=[i],r=cu);const{revoke:s,proxy:a}=Proxy.revocable(o,r);return i.draft_=a,i.revoke_=s,[a,i]}var ff={get(e,t){if(t===vn)return e;let n=e.scope_.arrayMethodsPlugin_;const i=e.type_===1&&typeof t=="string";if(i&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const o=pr(e);if(!ou(o,t,e.type_))return tQ(e,o,t);const r=o[t];if(e.finalized_||!yi(r)||i&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Uq(t))return r;if(r===HC(e.base_,t)){gf(e);const s=e.type_===1?+t:t,a=VC(e.scope_,r,e,s);return e.copy_[s]=a}return r},has(e,t){return t in pr(e)},ownKeys(e){return Reflect.ownKeys(pr(e))},set(e,t,n){const i=xE(pr(e),t);if(i?.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=HC(pr(e),t),r=o?.[vn];if(r&&r.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(zq(n,o)&&(n!==void 0||ou(e.base_,t,e.type_)))return!0;gf(e),GC(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Xq(e,t,n)),!0},deleteProperty(e,t){return gf(e),HC(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),GC(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=pr(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{[of]:!0,[MC]:e.type_!==1||t!=="length",[nf]:i[nf],[nu]:n[t]}},defineProperty(){En(11)},getPrototypeOf(e){return ca(e.base_)},setPrototypeOf(){En(12)}},cu={};for(let e in ff){let t=ff[e];cu[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}cu.deleteProperty=function(e,t){return cu.set.call(this,e,t,void 0)},cu.set=function(e,t,n){return ff.set.call(this,e[0],t,n,e[0])};function HC(e,t){const n=e[vn];return(n?pr(n):e)[t]}function tQ(e,t,n){const i=xE(t,n);return i?nu in i?i[nu]:i.get?.call(e.draft_):void 0}function xE(e,t){if(!(t in e))return;let n=ca(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=ca(n)}}function GC(e){e.modified_||(e.modified_=!0,e.parent_&&GC(e.parent_))}function gf(e){e.copy_||(e.assigned_=new Map,e.copy_=OC(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var nQ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,i)=>{if(da(t)&&!da(n)){const r=n;n=t;const s=this;return function(l=r,...u){return s.produce(l,h=>n.call(this,h,...u))}}da(n)||En(6),i!==void 0&&!da(i)&&En(7);let o;if(yi(t)){const r=CE(this),s=VC(r,t,void 0);let a=!0;try{o=n(s),a=!1}finally{a?NC(r):BC(r)}return vE(r,i),wE(o,r)}else if(!t||!yl(t)){if(o=n(t),o===void 0&&(o=t),o===IC&&(o=void 0),this.autoFreeze_&&_C(o,!0),i){const r=[],s=[];ha(cf).generateReplacementPatches_(t,o,{patches_:r,inversePatches_:s}),i(r,s)}return o}else En(1,t)},this.produceWithPatches=(t,n)=>{if(da(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let i,o;return[this.produce(t,n,(s,a)=>{i=s,o=a}),i,o]},kC(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),kC(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),kC(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){yi(e)||En(8),bi(e)&&(e=FE(e));const t=CE(this),n=VC(t,e,void 0);return n[vn].isManual_=!0,BC(t),n}finishDraft(e,t){const n=e&&e[vn];(!n||!n.isManual_)&&En(9);const{scope_:i}=n;return vE(i,t),wE(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const i=ha(cf).applyPatches_;return bi(e)?i(e,t):this.produce(e,o=>i(o,t))}};function VC(e,t,n,i){const[o,r]=su(t)?ha(lf).proxyMap_(t,n):au(t)?ha(lf).proxySet_(t,n):eQ(t,n);return(n?.scope_??mE()).drafts_.push(o),r.callbacks_=n?.callbacks_??[],r.key_=i,n&&i!==void 0?Jq(n,r,i):r.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(r);const{patchPlugin_:u}=l;r.modified_&&u&&u.generatePatches_(r,[],l)}),o}function FE(e){return bi(e)||En(10,e),PE(e)}function PE(e){if(!yi(e)||af(e))return e;const t=e[vn];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=OC(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=OC(e,!0);return iu(n,(o,r)=>{rf(n,o,PE(r))},i),t&&(t.finalized_=!1),n}function iQ(){function t(v,w=[]){if(v.key_!==void 0){const b=v.parent_.copy_??v.parent_.base_,y=$q(gr(b,v.key_)),R=gr(b,v.key_);if(R===void 0||R!==v.draft_&&R!==v.base_&&R!==v.copy_||y!=null&&y.base_!==v.base_)return null;const S=v.parent_.type_===3;let P;if(S){const F=v.parent_;P=Array.from(F.drafts_.keys()).indexOf(v.key_)}else P=v.key_;if(!(S&&b.size>P||ou(b,P)))return null;w.push(P)}if(v.parent_)return t(v.parent_,w);w.reverse();try{n(v.copy_,w)}catch{return null}return w}function n(v,w){let b=v;for(let y=0;y<w.length-1;y++){const R=w[y];if(b=gr(b,R),!yl(b)||b===null)throw new Error(`Cannot resolve path at '${w.join("/")}'`)}return b}const i="replace",o="add",r="remove";function s(v,w,b){if(v.scope_.processedForPatches_.has(v))return;v.scope_.processedForPatches_.add(v);const{patches_:y,inversePatches_:R}=b;switch(v.type_){case 0:case 2:return l(v,w,y,R);case 1:return a(v,w,y,R);case 3:return u(v,w,y,R)}}function a(v,w,b,y){let{base_:R,assigned_:S}=v,P=v.copy_;P.length<R.length&&([R,P]=[P,R],[b,y]=[y,b]);const F=v.allIndicesReassigned_===!0;for(let A=0;A<R.length;A++){const k=P[A],L=R[A];if((F||S?.get(A.toString()))&&k!==L){const M=k?.[vn];if(M&&M.modified_)continue;const E=w.concat([A]);b.push({op:i,path:E,value:m(k)}),y.push({op:i,path:E,value:m(L)})}}for(let A=R.length;A<P.length;A++){const k=w.concat([A]);b.push({op:o,path:k,value:m(P[A])})}for(let A=P.length-1;R.length<=A;--A){const k=w.concat([A]);y.push({op:r,path:k})}}function l(v,w,b,y){const{base_:R,copy_:S,type_:P}=v;iu(v.assigned_,(F,A)=>{const k=gr(R,F,P),L=gr(S,F,P),N=A?ou(R,F)?i:o:r;if(k===L&&N===i)return;const M=w.concat(F);b.push(N===r?{op:N,path:M}:{op:N,path:M,value:m(L)}),y.push(N===o?{op:r,path:M}:N===r?{op:o,path:M,value:m(k)}:{op:i,path:M,value:m(k)})})}function u(v,w,b,y){let{base_:R,copy_:S}=v,P=0;R.forEach(F=>{if(!S.has(F)){const A=w.concat([P]);b.push({op:r,path:A,value:F}),y.unshift({op:o,path:A,value:F})}P++}),P=0,S.forEach(F=>{if(!R.has(F)){const A=w.concat([P]);b.push({op:o,path:A,value:F}),y.unshift({op:r,path:A,value:F})}P++})}function h(v,w,b){const{patches_:y,inversePatches_:R}=b;y.push({op:i,path:[],value:w===IC?void 0:w}),R.push({op:i,path:[],value:v})}function f(v,w){return w.forEach(b=>{const{path:y,op:R}=b;let S=v;for(let k=0;k<y.length-1;k++){const L=ua(S);let N=y[k];typeof N!="string"&&typeof N!="number"&&(N=""+N),(L===0||L===1)&&(N==="__proto__"||N===eu)&&En(19),da(S)&&N===tu&&En(19),S=gr(S,N),yl(S)||En(18,y.join("/"))}const P=ua(S),F=g(b.value),A=y[y.length-1];switch(R){case i:switch(P){case 2:return S.set(A,F);case 3:En(16);default:return S[A]=F}case o:switch(P){case 1:return A==="-"?S.push(F):S.splice(A,0,F);case 2:return S.set(A,F);case 3:return S.add(F);default:return S[A]=F}case r:switch(P){case 1:return S.splice(A,1);case 2:return S.delete(A);case 3:return S.delete(b.value);default:return delete S[A]}default:En(17,R)}}),v}function g(v){if(!yi(v))return v;if(ru(v))return v.map(g);if(su(v))return new Map(Array.from(v.entries()).map(([b,y])=>[b,g(y)]));if(au(v))return new Set(Array.from(v).map(g));const w=Object.create(ca(v));for(const b in v)w[b]=g(v[b]);return ou(v,Xc)&&(w[Xc]=v[Xc]),w}function m(v){return bi(v)?g(v):v}Kq(cf,{applyPatches_:f,generatePatches_:s,generateReplacementPatches_:h,getPath:t})}var uu=new nQ,du=uu.produce,EE=uu.produceWithPatches.bind(uu),DE=uu.applyPatches.bind(uu);function oQ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function rQ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function sQ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var TE=e=>Array.isArray(e)?e:[e];function aQ(e){const t=Array.isArray(e[0])?e[0]:e;return sQ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function lQ(e,t){const n=[],{length:i}=e;for(let o=0;o<i;o++)n.push(e[o].apply(null,t));return n}var cQ=class{constructor(e){this.value=e}deref(){return this.value}},uQ=typeof WeakRef<"u"?WeakRef:cQ,dQ=0,AE=1;function pf(){return{s:dQ,v:void 0,o:null,p:null}}function mf(e,t={}){let n=pf();const{resultEqualityCheck:i}=t;let o,r=0;function s(){let a=n;const{length:l}=arguments;for(let f=0,g=l;f<g;f++){const m=arguments[f];if(typeof m=="function"||typeof m=="object"&&m!==null){let v=a.o;v===null&&(a.o=v=new WeakMap);const w=v.get(m);w===void 0?(a=pf(),v.set(m,a)):a=w}else{let v=a.p;v===null&&(a.p=v=new Map);const w=v.get(m);w===void 0?(a=pf(),v.set(m,a)):a=w}}const u=a;let h;if(a.s===AE)h=a.v;else if(h=e.apply(null,arguments),r++,i){const f=o?.deref?.()??o;f!=null&&i(f,h)&&(h=f,r!==0&&r--),o=typeof h=="object"&&h!==null||typeof h=="function"?new uQ(h):h}return u.s=AE,u.v=h,h}return s.clearCache=()=>{n=pf(),s.resetResultsCount()},s.resultsCount=()=>r,s.resetResultsCount=()=>{r=0},s}function hQ(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...o)=>{let r=0,s=0,a,l={},u=o.pop();typeof u=="object"&&(l=u,u=o.pop()),oQ(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const h={...n,...l},{memoize:f,memoizeOptions:g=[],argsMemoize:m=mf,argsMemoizeOptions:v=[]}=h,w=TE(g),b=TE(v),y=aQ(o),R=f(function(){return r++,u.apply(null,arguments)},...w),S=m(function(){s++;const F=lQ(y,arguments);return a=R.apply(null,F),a},...b);return Object.assign(S,{resultFunc:u,memoizedResultFunc:R,dependencies:y,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:f,argsMemoize:m})};return Object.assign(i,{withTypes:()=>i}),i}var IE=hQ(mf),fQ=Object.assign((e,t=IE)=>{rQ(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(r=>e[r]);return t(i,(...r)=>r.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>fQ});function ME(e){return({dispatch:n,getState:i})=>o=>r=>typeof r=="function"?r(n,i,e):o(r)}var gQ=ME(),pQ=ME,mQ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?tf:tf.apply(null,arguments)},vQ=e=>e&&typeof e.match=="function";function ho(e,t){function n(...i){if(t){let o=t(...i);if(!o)throw new Error(Ho(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:i[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=i=>dE(i)&&i.type===e,n}var kE=class zu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,zu.prototype)}static get[Symbol.species](){return zu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new zu(...t[0].concat(this)):new zu(...t.concat(this))}};function LE(e){return yi(e)?du(e,()=>{}):e}function vf(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function CQ(e){return typeof e=="boolean"}var wQ=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:r=!0}=t??{};let s=new kE;return n&&(CQ(n)?s.push(gQ):s.push(pQ(n.extraArgument))),s},Cf="RTK_autoBatch",hu=()=>e=>({payload:e,meta:{[Cf]:!0}}),OE=e=>t=>{setTimeout(t,e)},bQ=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let o=!0,r=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:OE(10):e.type==="callback"?e.queueNotification:OE(e.timeout),u=()=>{s=!1,r&&(r=!1,a.forEach(h=>h()))};return Object.assign({},i,{subscribe(h){const f=()=>o&&h(),g=i.subscribe(f);return a.add(h),()=>{g(),a.delete(h)}},dispatch(h){try{return o=!h?.meta?.[Cf],r=!o,r&&(s||(s=!0,l(u))),i.dispatch(h)}finally{o=!0}}})},yQ=e=>function(n){const{autoBatch:i=!0}=n??{};let o=new kE(e);return i&&o.push(bQ(typeof i=="object"?i:void 0)),o};function SQ(e){const t=wQ(),{reducer:n=void 0,middleware:i,devTools:o=!0,preloadedState:r=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(us(n))a=uE(n);else throw new Error(Ho(1));let l;typeof i=="function"?l=i(t):l=t();let u=tf;o&&(u=mQ({trace:!1,...typeof o=="object"&&o}));const h=Gq(...l),f=yQ(h);let g=typeof s=="function"?s(f):f();const m=u(...g);return cE(a,r,m)}function _E(e){const t={},n=[];let i;const o={addCase(r,s){const a=typeof r=="string"?r:r.type;if(!a)throw new Error(Ho(28));if(a in t)throw new Error(Ho(29));return t[a]=s,o},addAsyncThunk(r,s){return s.pending&&(t[r.pending.type]=s.pending),s.rejected&&(t[r.rejected.type]=s.rejected),s.fulfilled&&(t[r.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:r.settled,reducer:s.settled}),o},addMatcher(r,s){return n.push({matcher:r,reducer:s}),o},addDefaultCase(r){return i=r,o}};return e(o),[t,n,i]}function RQ(e){return typeof e=="function"}function xQ(e,t){let[n,i,o]=_E(t),r;if(RQ(e))r=()=>LE(e());else{const a=LE(e);r=()=>a}function s(a=r(),l){let u=[n[l.type],...i.filter(({matcher:h})=>h(l)).map(({reducer:h})=>h)];return u.filter(h=>!!h).length===0&&(u=[o]),u.reduce((h,f)=>{if(f)if(bi(h)){const m=f(h,l);return m===void 0?h:m}else{if(yi(h))return du(h,g=>f(g,l));{const g=f(h,l);if(g===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return h},a)}return s.getInitialState=r,s}var NE=(e,t)=>vQ(e)?e.match(t):e(t);function mr(...e){return t=>e.some(n=>NE(n,t))}function fu(...e){return t=>e.every(n=>NE(n,t))}function wf(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",i=t.indexOf(e.meta.requestStatus)>-1;return n&&i}function gu(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function WC(...e){return e.length===0?t=>wf(t,["pending"]):gu(e)?mr(...e.map(t=>t.pending)):WC()(e[0])}function Sl(...e){return e.length===0?t=>wf(t,["rejected"]):gu(e)?mr(...e.map(t=>t.rejected)):Sl()(e[0])}function bf(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?fu(Sl(...e),t):gu(e)?fu(Sl(...e),t):bf()(e[0])}function ds(...e){return e.length===0?t=>wf(t,["fulfilled"]):gu(e)?mr(...e.map(t=>t.fulfilled)):ds()(e[0])}function zC(...e){return e.length===0?t=>wf(t,["pending","fulfilled","rejected"]):gu(e)?mr(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):zC()(e[0])}var FQ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",UC=(e=21)=>{let t="",n=e;for(;n--;)t+=FQ[Math.random()*64|0];return t},PQ=["name","message","stack","code"],$C=class{constructor(e,t){this.payload=e,this.meta=t}_type},BE=class{constructor(e,t){this.payload=e,this.meta=t}_type},EQ=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of PQ)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},HE="External signal was aborted",GE=(()=>{function e(t,n,i){const o=ho(t+"/fulfilled",(l,u,h,f)=>({payload:l,meta:{...f||{},arg:h,requestId:u,requestStatus:"fulfilled"}})),r=ho(t+"/pending",(l,u,h)=>({payload:void 0,meta:{...h||{},arg:u,requestId:l,requestStatus:"pending"}})),s=ho(t+"/rejected",(l,u,h,f,g)=>({payload:f,error:(i&&i.serializeError||EQ)(l||"Rejected"),meta:{...g||{},arg:h,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(h,f,g)=>{const m=i?.idGenerator?i.idGenerator(l):UC(),v=new AbortController;let w,b;function y(S){b=S,v.abort()}u&&(u.aborted?y(HE):u.addEventListener("abort",()=>y(HE),{once:!0}));const R=(async function(){let S;try{let F=i?.condition?.(l,{getState:f,extra:g});if(TQ(F)&&(F=await F),F===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((k,L)=>{w=()=>{L({name:"AbortError",message:b||"Aborted"})},v.signal.addEventListener("abort",w,{once:!0})});h(r(m,l,i?.getPendingMeta?.({requestId:m,arg:l},{getState:f,extra:g}))),S=await Promise.race([A,Promise.resolve(n(l,{dispatch:h,getState:f,extra:g,requestId:m,signal:v.signal,abort:y,rejectWithValue:(k,L)=>new $C(k,L),fulfillWithValue:(k,L)=>new BE(k,L)})).then(k=>{if(k instanceof $C)throw k;return k instanceof BE?o(k.payload,m,l,k.meta):o(k,m,l)})])}catch(F){S=F instanceof $C?s(null,m,l,F.payload,F.meta):s(F,m,l)}finally{w&&v.signal.removeEventListener("abort",w)}return i&&!i.dispatchConditionRejection&&s.match(S)&&S.meta.condition||h(S),S})();return Object.assign(R,{abort:y,requestId:m,arg:l,unwrap(){return R.then(DQ)}})}}return Object.assign(a,{pending:r,rejected:s,fulfilled:o,settled:mr(s,o),typePrefix:t})}return e.withTypes=()=>e,e})();function DQ(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function TQ(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var AQ=Symbol.for("rtk-slice-createasyncthunk");function IQ(e,t){return`${e}/${t}`}function MQ({creators:e}={}){const t=e?.asyncThunk?.[AQ];return function(i){const{name:o,reducerPath:r=o}=i;if(!o)throw new Error(Ho(11));const s=(typeof i.reducers=="function"?i.reducers(LQ()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(S,P){const F=typeof S=="string"?S:S.type;if(!F)throw new Error(Ho(12));if(F in l.sliceCaseReducersByType)throw new Error(Ho(13));return l.sliceCaseReducersByType[F]=P,u},addMatcher(S,P){return l.sliceMatchers.push({matcher:S,reducer:P}),u},exposeAction(S,P){return l.actionCreators[S]=P,u},exposeCaseReducer(S,P){return l.sliceCaseReducersByName[S]=P,u}};a.forEach(S=>{const P=s[S],F={reducerName:S,type:IQ(o,S),createNotation:typeof i.reducers=="function"};_Q(P)?BQ(F,P,u,t):OQ(F,P,u)});function h(){const[S={},P=[],F=void 0]=typeof i.extraReducers=="function"?_E(i.extraReducers):[i.extraReducers],A={...S,...l.sliceCaseReducersByType};return xQ(i.initialState,k=>{for(let L in A)k.addCase(L,A[L]);for(let L of l.sliceMatchers)k.addMatcher(L.matcher,L.reducer);for(let L of P)k.addMatcher(L.matcher,L.reducer);F&&k.addDefaultCase(F)})}const f=S=>S,g=new Map,m=new WeakMap;let v;function w(S,P){return v||(v=h()),v(S,P)}function b(){return v||(v=h()),v.getInitialState()}function y(S,P=!1){function F(k){let L=k[S];return typeof L>"u"&&P&&(L=vf(m,F,b)),L}function A(k=f){const L=vf(g,P,()=>new WeakMap);return vf(L,k,()=>{const N={};for(const[M,E]of Object.entries(i.selectors??{}))N[M]=kQ(E,k,()=>vf(m,k,b),P);return N})}return{reducerPath:S,getSelectors:A,get selectors(){return A(F)},selectSlice:F}}const R={name:o,reducer:w,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...y(r),injectInto(S,{reducerPath:P,...F}={}){const A=P??r;return S.inject({reducerPath:A,reducer:w},F),{...R,...y(A,!0)}}};return R}}function kQ(e,t,n,i){function o(r,...s){let a=t(r);return typeof a>"u"&&i&&(a=n()),e(a,...s)}return o.unwrapped=e,o}var fa=MQ();function LQ(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function OQ({type:e,reducerName:t,createNotation:n},i,o){let r,s;if("reducer"in i){if(n&&!NQ(i))throw new Error(Ho(17));r=i.reducer,s=i.prepare}else r=i;o.addCase(e,r).exposeCaseReducer(t,r).exposeAction(t,s?ho(e,s):ho(e))}function _Q(e){return e._reducerDefinitionType==="asyncThunk"}function NQ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function BQ({type:e,reducerName:t},n,i,o){if(!o)throw new Error(Ho(18));const{payloadCreator:r,fulfilled:s,pending:a,rejected:l,settled:u,options:h}=n,f=o(e,r,h);i.exposeAction(t,f),s&&i.addCase(f.fulfilled,s),a&&i.addCase(f.pending,a),l&&i.addCase(f.rejected,l),u&&i.addMatcher(f.settled,u),i.exposeCaseReducer(t,{fulfilled:s||yf,pending:a||yf,rejected:l||yf,settled:u||yf})}function yf(){}function Ho(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var HQ=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},vr="uninitialized",jC="pending",pu="fulfilled",mu="rejected";function VE(e){return{status:e,isUninitialized:e===vr,isLoading:e===jC,isSuccess:e===pu,isError:e===mu}}var WE=us;function zE(e,t){if(e===t||!(WE(e)&&WE(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),i=Object.keys(e);let o=n.length===i.length;const r=Array.isArray(t)?[]:{};for(const s of n)r[s]=zE(e[s],t[s]),o&&(o=e[s]===r[s]);return o?e:r}function KC(e,t,n){return e.reduce((i,o,r)=>(t(o,r)&&i.push(n(o,r)),i),[]).flat()}function GQ(e){return new RegExp("(^|:)//").test(e)}function VQ(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function qC(e){return e!=null}function UE(e){return[...e?.values()??[]].filter(qC)}function WQ(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var zQ=e=>e.replace(/\/$/,""),UQ=e=>e.replace(/^\//,"");function $Q(e,t){if(!e)return t;if(!t)return e;if(GQ(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=zQ(e),t=UQ(t),`${e}${n}${t}`}function Sf(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var QC=()=>new Map,jQ=e=>{const t=new AbortController;return setTimeout(()=>{const n="signal timed out",i="TimeoutError";t.abort(typeof DOMException<"u"?new DOMException(n,i):Object.assign(new Error(n),{name:i}))},e),t.signal},KQ=(...e)=>{for(const n of e)if(n.aborted)return AbortSignal.abort(n.reason);const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal},$E=(...e)=>fetch(...e),qQ=e=>e.status>=200&&e.status<=299,QQ=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function jE(e){if(!us(e))return e;const t={...e};for(const[n,i]of Object.entries(t))i===void 0&&delete t[n];return t}var YQ=e=>typeof e=="object"&&(us(e)||Array.isArray(e)||typeof e.toJSON=="function");function ZQ({baseUrl:e,prepareHeaders:t=f=>f,fetchFn:n=$E,paramsSerializer:i,isJsonContentType:o=QQ,jsonContentType:r="application/json",jsonReplacer:s,timeout:a,responseHandler:l,validateStatus:u,...h}={}){return typeof fetch>"u"&&n===$E&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(g,m,v)=>{const{getState:w,extra:b,endpoint:y,forced:R,type:S}=m;let P,{url:F,headers:A=new Headers(h.headers),params:k=void 0,responseHandler:L=l??"json",validateStatus:N=u??qQ,timeout:M=a,...E}=typeof g=="string"?{url:g}:g,I={...h,signal:M?KQ(m.signal,jQ(M)):m.signal,...E};A=new Headers(jE(A)),I.headers=await t(A,{getState:w,arg:g,extra:b,endpoint:y,forced:R,type:S,extraOptions:v})||A;const B=YQ(I.body);if(I.body!=null&&!B&&typeof I.body!="string"&&I.headers.delete("content-type"),!I.headers.has("content-type")&&B&&I.headers.set("content-type",r),B&&o(I.headers)&&(I.body=JSON.stringify(I.body,s)),I.headers.has("accept")||(L==="json"?I.headers.set("accept","application/json"):L==="text"&&I.headers.set("accept","text/plain, text/html, */*")),k){const oe=~F.indexOf("?")?"&":"?",H=i?i(k):new URLSearchParams(jE(k));F+=oe+H}F=$Q(e,F);const W=new Request(F,I);P={request:new Request(F,I)};let me;try{me=await n(W)}catch(oe){return{error:{status:(oe instanceof Error||typeof DOMException<"u"&&oe instanceof DOMException)&&oe.name==="TimeoutError"?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(oe)},meta:P}}const fe=me.clone();P.response=fe;let ve,De="";try{let oe;if(await Promise.all([f(me,L).then(H=>ve=H,H=>oe=H),fe.text().then(H=>De=H,()=>{})]),oe)throw oe}catch(oe){return{error:{status:"PARSING_ERROR",originalStatus:me.status,data:De,error:String(oe)},meta:P}}return N(me,ve)?{data:ve,meta:P}:{error:{status:me.status,data:ve},meta:P}};async function f(g,m){if(typeof m=="function")return m(g);if(m==="content-type"&&(m=o(g.headers)?"json":"text"),m==="json"){const v=await g.text();return v.length?JSON.parse(v):null}return g.text()}}var KE=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Rf="__rtkq/",JQ="online",XQ="offline",qE="focused",YC=ho(`${Rf}${qE}`),QE=ho(`${Rf}un${qE}`),ZC=ho(`${Rf}${JQ}`),YE=ho(`${Rf}${XQ}`),vu="query",ZE="mutation",JE="infinitequery";function xf(e){return e.type===vu}function eY(e){return e.type===ZE}function Ff(e){return e.type===JE}function Pf(e){return xf(e)||Ff(e)}function JC(e,t,n,i,o,r){const s=tY(e)?e(t,n,i,o):e;return s?KC(s,qC,a=>r(XE(a))):[]}function tY(e){return typeof e=="function"}function XE(e){return typeof e=="string"?{type:e}:e}function nY(e,t){return e.catch(t)}var Rl=(e,t)=>e.endpointDefinitions[t],Cu=Symbol("forceQueryFn"),XC=e=>typeof e[Cu]=="function";function iY({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:i,api:o,context:r,getInternalState:s}){const a=P=>s(P)?.runningQueries,l=P=>s(P)?.runningMutations,{unsubscribeQueryResult:u,removeMutationResult:h,updateSubscriptionOptions:f}=o.internalActions;return{buildInitiateQuery:y,buildInitiateInfiniteQuery:R,buildInitiateMutation:S,getRunningQueryThunk:g,getRunningMutationThunk:m,getRunningQueriesThunk:v,getRunningMutationsThunk:w};function g(P,F){return A=>{const k=Rl(r,P),L=e({queryArgs:F,endpointDefinition:k,endpointName:P});return a(A)?.get(L)}}function m(P,F){return A=>l(A)?.get(F)}function v(){return P=>UE(a(P))}function w(){return P=>UE(l(P))}function b(P,F){const A=(k,{subscribe:L=!0,forceRefetch:N,subscriptionOptions:M,[Cu]:E,...I}={})=>(B,W)=>{const J=e({queryArgs:k,endpointDefinition:F,endpointName:P});let me;const fe={...I,type:vu,subscribe:L,forceRefetch:N,subscriptionOptions:M,endpointName:P,originalArgs:k,queryCacheKey:J,[Cu]:E};if(xf(F))me=t(fe);else{const{direction:Fe,initialPageParam:Le,refetchCachedPages:$e}=I;me=n({...fe,direction:Fe,initialPageParam:Le,refetchCachedPages:$e})}const ve=o.endpoints[P].select(k),De=B(me),oe=ve(W()),{requestId:H,abort:Q}=De,j=oe.requestId!==H,ce=a(B)?.get(J),Ee=()=>ve(W()),Ie=Object.assign(E?De.then(Ee):j&&!ce?Promise.resolve(oe):Promise.all([ce,De]).then(Ee),{arg:k,requestId:H,subscriptionOptions:M,queryCacheKey:J,abort:Q,async unwrap(){const Fe=await Ie;if(Fe.isError)throw Fe.error;return Fe.data},refetch:Fe=>B(A(k,{subscribe:!1,forceRefetch:!0,...Fe})),unsubscribe(){L&&B(u({queryCacheKey:J,requestId:H}))},updateSubscriptionOptions(Fe){Ie.subscriptionOptions=Fe,B(f({endpointName:P,requestId:H,queryCacheKey:J,options:Fe}))}});if(!ce&&!j&&!E){const Fe=a(B);Fe.set(J,Ie),Ie.then(()=>{Fe.delete(J)})}return Ie};return A}function y(P,F){return b(P,F)}function R(P,F){return b(P,F)}function S(P){return(F,{track:A=!0,fixedCacheKey:k}={})=>(L,N)=>{const M=i({type:"mutation",endpointName:P,originalArgs:F,track:A,fixedCacheKey:k}),E=L(M),{requestId:I,abort:B,unwrap:W}=E,J=nY(E.unwrap().then(De=>({data:De})),De=>({error:De})),me=()=>{L(h({requestId:I,fixedCacheKey:k}))},fe=Object.assign(J,{arg:E.arg,requestId:I,abort:B,unwrap:W,reset:me}),ve=l(L);return ve.set(I,fe),fe.then(()=>{ve.delete(I)}),k&&(ve.set(k,fe),fe.then(()=>{ve.get(k)===fe&&ve.delete(k)})),fe}}}var eD=class extends HQ{constructor(e,t,n,i){super(e),this.value=t,this.schemaName=n,this._bqMeta=i}},ga=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function pa(e,t,n,i){const o=await e["~standard"].validate(t);if(o.issues)throw new eD(o.issues,t,n,i);return o.value}function tD(e){return e}var wu=(e={})=>({...e,[Cf]:!0});function oY({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:i,api:o,assertTagType:r,selectors:s,onSchemaFailure:a,catchSchemaFailure:l,skipSchemaValidation:u}){const h=(E,I,B,W)=>(J,me)=>{const fe=n[E],ve=i({queryArgs:I,endpointDefinition:fe,endpointName:E});if(J(o.internalActions.queryResultPatched({queryCacheKey:ve,patches:B})),!W)return;const De=o.endpoints[E].select(I)(me()),oe=JC(fe.providesTags,De.data,void 0,I,{},r);J(o.internalActions.updateProvidedBy([{queryCacheKey:ve,providedTags:oe}]))};function f(E,I,B=0){const W=[I,...E];return B&&W.length>B?W.slice(0,-1):W}function g(E,I,B=0){const W=[...E,I];return B&&W.length>B?W.slice(1):W}const m=(E,I,B,W=!0)=>(J,me)=>{const ve=o.endpoints[E].select(I)(me()),De={patches:[],inversePatches:[],undo:()=>J(o.util.patchQueryData(E,I,De.inversePatches,W))};if(ve.status===vr)return De;let oe;if("data"in ve)if(yi(ve.data)){const[H,Q,j]=EE(ve.data,B);De.patches.push(...Q),De.inversePatches.push(...j),oe=H}else oe=B(ve.data),De.patches.push({op:"replace",path:[],value:oe}),De.inversePatches.push({op:"replace",path:[],value:ve.data});return De.patches.length===0||J(o.util.patchQueryData(E,I,De.patches,W)),De},v=(E,I,B)=>W=>W(o.endpoints[E].initiate(I,{subscribe:!1,forceRefetch:!0,[Cu]:()=>({data:B})})),w=(E,I)=>E.query&&E[I]?E[I]:tD,b=async(E,{signal:I,abort:B,rejectWithValue:W,fulfillWithValue:J,dispatch:me,getState:fe,extra:ve})=>{const De=n[E.endpointName],{metaSchema:oe,skipSchemaValidation:H=u}=De,Q=E.type===vu;try{let j=tD;const ce={signal:I,abort:B,dispatch:me,getState:fe,extra:ve,endpoint:E.endpointName,type:E.type,forced:Q?y(E,fe()):void 0,queryCacheKey:Q?E.queryCacheKey:void 0},Ee=Q?E[Cu]:void 0;let Ie;const Fe=async($e,Ve,yt,O)=>{if(Ve==null&&$e.pages.length)return Promise.resolve({data:$e});const V={queryArg:E.originalArgs,pageParam:Ve},U=await Le(V),ne=O?f:g;return{data:{pages:ne($e.pages,U.data,yt),pageParams:ne($e.pageParams,Ve,yt)},meta:U.meta}};async function Le($e){let Ve;const{extraOptions:yt,argSchema:O,rawResponseSchema:V,responseSchema:U}=De;if(O&&!ga(H,"arg")&&($e=await pa(O,$e,"argSchema",{})),Ee?Ve=Ee():De.query?(j=w(De,"transformResponse"),Ve=await t(De.query($e),ce,yt)):Ve=await De.queryFn($e,ce,yt,Z=>t(Z,ce,yt)),typeof process<"u",Ve.error)throw new KE(Ve.error,Ve.meta);let{data:ne}=Ve;V&&!ga(H,"rawResponse")&&(ne=await pa(V,Ve.data,"rawResponseSchema",Ve.meta));let te=await j(ne,Ve.meta,$e);return U&&!ga(H,"response")&&(te=await pa(U,te,"responseSchema",Ve.meta)),{...Ve,data:te}}if(Q&&"infiniteQueryOptions"in De){const{infiniteQueryOptions:$e}=De,{maxPages:Ve=1/0}=$e,yt=E.refetchCachedPages??$e.refetchCachedPages??!0;let O;const V={pages:[],pageParams:[]},U=s.selectQueryEntry(fe(),E.queryCacheKey)?.data,te=y(E,fe())&&!E.direction||!U?V:U;if("direction"in E&&E.direction&&te.pages.length){const Z=E.direction==="backward",Ce=(Z?nD:ew)($e,te,E.originalArgs);O=await Fe(te,Ce,Ve,Z)}else{const{initialPageParam:Z=$e.initialPageParam}=E,Se=U?.pageParams??[],Ce=Se[0]??Z,he=Se.length;if(O=await Fe(te,Ce,Ve),Ee&&(O={data:O.data.pages[0]}),yt)for(let ie=1;ie<he;ie++){const ke=ew($e,O.data,E.originalArgs);O=await Fe(O.data,ke,Ve)}}Ie=O}else Ie=await Le(E.originalArgs);return oe&&!ga(H,"meta")&&Ie.meta&&(Ie.meta=await pa(oe,Ie.meta,"metaSchema",Ie.meta)),J(Ie.data,wu({fulfilledTimeStamp:Date.now(),baseQueryMeta:Ie.meta}))}catch(j){let ce=j;if(ce instanceof KE){let Ee=w(De,"transformErrorResponse");const{rawErrorResponseSchema:Ie,errorResponseSchema:Fe}=De;let{value:Le,meta:$e}=ce;try{Ie&&!ga(H,"rawErrorResponse")&&(Le=await pa(Ie,Le,"rawErrorResponseSchema",$e)),oe&&!ga(H,"meta")&&($e=await pa(oe,$e,"metaSchema",$e));let Ve=await Ee(Le,$e,E.originalArgs);return Fe&&!ga(H,"errorResponse")&&(Ve=await pa(Fe,Ve,"errorResponseSchema",$e)),W(Ve,wu({baseQueryMeta:$e}))}catch(Ve){ce=Ve}}try{if(ce instanceof eD){const Ee={endpoint:E.endpointName,arg:E.originalArgs,type:E.type,queryCacheKey:Q?E.queryCacheKey:void 0};De.onSchemaFailure?.(ce,Ee),a?.(ce,Ee);const{catchSchemaFailure:Ie=l}=De;if(Ie)return W(Ie(ce,Ee),wu({baseQueryMeta:ce._bqMeta}))}}catch(Ee){ce=Ee}throw console.error(ce),ce}};function y(E,I){const B=s.selectQueryEntry(I,E.queryCacheKey),W=s.selectConfig(I).refetchOnMountOrArgChange,J=B?.fulfilledTimeStamp,me=E.forceRefetch??(E.subscribe&&W);return me?me===!0||(Number(new Date)-Number(J))/1e3>=me:!1}const R=()=>GE(`${e}/executeQuery`,b,{getPendingMeta({arg:I}){const B=n[I.endpointName];return wu({startedTimeStamp:Date.now(),...Ff(B)?{direction:I.direction}:{}})},condition(I,{getState:B}){const W=B(),J=s.selectQueryEntry(W,I.queryCacheKey),me=J?.fulfilledTimeStamp,fe=I.originalArgs,ve=J?.originalArgs,De=n[I.endpointName],oe=I.direction;return XC(I)?!0:J?.status==="pending"?!1:y(I,W)||xf(De)&&De?.forceRefetch?.({currentArg:fe,previousArg:ve,endpointState:J,state:W})?!0:!(me&&!oe)},dispatchConditionRejection:!0}),S=R(),P=R(),F=GE(`${e}/executeMutation`,b,{getPendingMeta(){return wu({startedTimeStamp:Date.now()})}}),A=E=>"force"in E,k=E=>"ifOlderThan"in E,L=(E,I,B={})=>(W,J)=>{const me=A(B)&&B.force,fe=k(B)&&B.ifOlderThan,ve=(oe=!0)=>{const H={forceRefetch:oe,subscribe:!1};return o.endpoints[E].initiate(I,H)},De=o.endpoints[E].select(I)(J());if(me)W(ve());else if(fe){const oe=De?.fulfilledTimeStamp;if(!oe){W(ve());return}(Number(new Date)-Number(new Date(oe)))/1e3>=fe&&W(ve())}else W(ve(!1))};function N(E){return I=>I?.meta?.arg?.endpointName===E}function M(E,I){return{matchPending:fu(WC(E),N(I)),matchFulfilled:fu(ds(E),N(I)),matchRejected:fu(Sl(E),N(I))}}return{queryThunk:S,mutationThunk:F,infiniteQueryThunk:P,prefetch:L,updateQueryData:m,upsertQueryData:v,patchQueryData:h,buildMatchThunkActions:M}}function ew(e,{pages:t,pageParams:n},i){const o=t.length-1;return e.getNextPageParam(t[o],t,n[o],n,i)}function nD(e,{pages:t,pageParams:n},i){return e.getPreviousPageParam?.(t[0],t,n[0],n,i)}function iD(e,t,n,i){return JC(n[e.meta.arg.endpointName][t],ds(e)?e.payload:void 0,bf(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,i)}function oD(e){return bi(e)?FE(e):e}function Ef(e,t,n){const i=e[t];i&&n(i)}function bu(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function rD(e,t,n){const i=e[bu(t)];i&&n(i)}var Df={};function rY({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:i,context:{endpointDefinitions:o,apiUid:r,extractRehydrationInfo:s,hasRehydrationInfo:a},assertTagType:l,config:u}){const h=ho(`${e}/resetApiState`);function f(N,M,E,I){N[M.queryCacheKey]??={status:vr,endpointName:M.endpointName},Ef(N,M.queryCacheKey,B=>{B.status=jC,B.requestId=E&&B.requestId?B.requestId:I.requestId,M.originalArgs!==void 0&&(B.originalArgs=M.originalArgs),B.startedTimeStamp=I.startedTimeStamp;const W=o[I.arg.endpointName];Ff(W)&&"direction"in M&&(B.direction=M.direction)})}function g(N,M,E,I){Ef(N,M.arg.queryCacheKey,B=>{if(B.requestId!==M.requestId&&!I)return;const{merge:W}=o[M.arg.endpointName];if(B.status=pu,W)if(B.data!==void 0){const{fulfilledTimeStamp:J,arg:me,baseQueryMeta:fe,requestId:ve}=M;let De=du(B.data,oe=>W(oe,E,{arg:me.originalArgs,baseQueryMeta:fe,fulfilledTimeStamp:J,requestId:ve}));B.data=De}else B.data=E;else B.data=o[M.arg.endpointName].structuralSharing??!0?zE(bi(B.data)?Wq(B.data):B.data,E):E;delete B.error,B.fulfilledTimeStamp=M.fulfilledTimeStamp})}const m=fa({name:`${e}/queries`,initialState:Df,reducers:{removeQueryResult:{reducer(N,{payload:{queryCacheKey:M}}){delete N[M]},prepare:hu()},cacheEntriesUpserted:{reducer(N,M){for(const E of M.payload){const{queryDescription:I,value:B}=E;f(N,I,!0,{arg:I,requestId:M.meta.requestId,startedTimeStamp:M.meta.timestamp}),g(N,{arg:I,requestId:M.meta.requestId,fulfilledTimeStamp:M.meta.timestamp,baseQueryMeta:{}},B,!0)}},prepare:N=>({payload:N.map(I=>{const{endpointName:B,arg:W,value:J}=I,me=o[B];return{queryDescription:{type:vu,endpointName:B,originalArgs:I.arg,queryCacheKey:i({queryArgs:W,endpointDefinition:me,endpointName:B})},value:J}}),meta:{[Cf]:!0,requestId:UC(),timestamp:Date.now()}})},queryResultPatched:{reducer(N,{payload:{queryCacheKey:M,patches:E}}){Ef(N,M,I=>{I.data=DE(I.data,E.concat())})},prepare:hu()}},extraReducers(N){N.addCase(t.pending,(M,{meta:E,meta:{arg:I}})=>{const B=XC(I);f(M,I,B,E)}).addCase(t.fulfilled,(M,{meta:E,payload:I})=>{const B=XC(E.arg);g(M,E,I,B)}).addCase(t.rejected,(M,{meta:{condition:E,arg:I,requestId:B},error:W,payload:J})=>{Ef(M,I.queryCacheKey,me=>{if(!E){if(me.requestId!==B)return;me.status=mu,me.error=J??W}})}).addMatcher(a,(M,E)=>{const{queries:I}=s(E);for(const[B,W]of Object.entries(I))(W?.status===pu||W?.status===mu)&&(M[B]=W)})}}),v=fa({name:`${e}/mutations`,initialState:Df,reducers:{removeMutationResult:{reducer(N,{payload:M}){const E=bu(M);E in N&&delete N[E]},prepare:hu()}},extraReducers(N){N.addCase(n.pending,(M,{meta:E,meta:{requestId:I,arg:B,startedTimeStamp:W}})=>{B.track&&(M[bu(E)]={requestId:I,status:jC,endpointName:B.endpointName,startedTimeStamp:W})}).addCase(n.fulfilled,(M,{payload:E,meta:I})=>{I.arg.track&&rD(M,I,B=>{B.requestId===I.requestId&&(B.status=pu,B.data=E,B.fulfilledTimeStamp=I.fulfilledTimeStamp)})}).addCase(n.rejected,(M,{payload:E,error:I,meta:B})=>{B.arg.track&&rD(M,B,W=>{W.requestId===B.requestId&&(W.status=mu,W.error=E??I)})}).addMatcher(a,(M,E)=>{const{mutations:I}=s(E);for(const[B,W]of Object.entries(I))(W?.status===pu||W?.status===mu)&&B!==W?.requestId&&(M[B]=W)})}}),w={tags:{},keys:{}},b=fa({name:`${e}/invalidation`,initialState:w,reducers:{updateProvidedBy:{reducer(N,M){for(const{queryCacheKey:E,providedTags:I}of M.payload){y(N,E);for(const{type:B,id:W}of I){const J=(N.tags[B]??={})[W||"__internal_without_id"]??=[];J.includes(E)||J.push(E)}N.keys[E]=I}},prepare:hu()}},extraReducers(N){N.addCase(m.actions.removeQueryResult,(M,{payload:{queryCacheKey:E}})=>{y(M,E)}).addMatcher(a,(M,E)=>{const{provided:I}=s(E);for(const[B,W]of Object.entries(I.tags??{}))for(const[J,me]of Object.entries(W)){const fe=(M.tags[B]??={})[J||"__internal_without_id"]??=[];for(const ve of me)fe.includes(ve)||fe.push(ve),M.keys[ve]=I.keys[ve]}}).addMatcher(mr(ds(t),bf(t)),(M,E)=>{R(M,[E])}).addMatcher(m.actions.cacheEntriesUpserted.match,(M,E)=>{const I=E.payload.map(({queryDescription:B,value:W})=>({type:"UNKNOWN",payload:W,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:B}}));R(M,I)})}});function y(N,M){const E=oD(N.keys[M]??[]);for(const I of E){const B=I.type,W=I.id??"__internal_without_id",J=N.tags[B]?.[W];J&&(N.tags[B][W]=oD(J).filter(me=>me!==M))}delete N.keys[M]}function R(N,M){const E=M.map(I=>{const B=iD(I,"providesTags",o,l),{queryCacheKey:W}=I.meta.arg;return{queryCacheKey:W,providedTags:B}});b.caseReducers.updateProvidedBy(N,b.actions.updateProvidedBy(E))}const S=fa({name:`${e}/subscriptions`,initialState:Df,reducers:{updateSubscriptionOptions(N,M){},unsubscribeQueryResult(N,M){},internal_getRTKQSubscriptions(){}}}),P=fa({name:`${e}/internalSubscriptions`,initialState:Df,reducers:{subscriptionsUpdated:{reducer(N,M){return DE(N,M.payload)},prepare:hu()}}}),F=fa({name:`${e}/config`,initialState:{online:WQ(),focused:VQ(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(N,{payload:M}){N.middlewareRegistered=N.middlewareRegistered==="conflict"||r!==M?"conflict":!0}},extraReducers:N=>{N.addCase(ZC,M=>{M.online=!0}).addCase(YE,M=>{M.online=!1}).addCase(YC,M=>{M.focused=!0}).addCase(QE,M=>{M.focused=!1}).addMatcher(a,M=>({...M}))}}),A=uE({queries:m.reducer,mutations:v.reducer,provided:b.reducer,subscriptions:P.reducer,config:F.reducer}),k=(N,M)=>A(h.match(M)?void 0:N,M),L={...F.actions,...m.actions,...S.actions,...P.actions,...v.actions,...b.actions,resetApiState:h};return{reducer:k,actions:L}}var tw=Symbol.for("RTKQ/skipToken"),sD={status:vr},aD=du(sD,()=>{}),lD=du(sD,()=>{});function sY({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const i=S=>aD,o=S=>lD;return{buildQuerySelector:g,buildInfiniteQuerySelector:m,buildMutationSelector:v,selectInvalidatedBy:w,selectCachedArgsForQuery:b,selectApiState:s,selectQueries:a,selectMutations:u,selectQueryEntry:l,selectConfig:h};function r(S){return{...S,...VE(S.status)}}function s(S){return S[t]}function a(S){return s(S)?.queries}function l(S,P){return a(S)?.[P]}function u(S){return s(S)?.mutations}function h(S){return s(S)?.config}function f(S,P,F){return A=>{if(A===tw)return n(i,F);const k=e({queryArgs:A,endpointDefinition:P,endpointName:S});return n(N=>l(N,k)??aD,F)}}function g(S,P){return f(S,P,r)}function m(S,P){const{infiniteQueryOptions:F}=P;function A(k){const L={...k,...VE(k.status)},{isLoading:N,isError:M,direction:E}=L,I=E==="forward",B=E==="backward";return{...L,hasNextPage:y(F,L.data,L.originalArgs),hasPreviousPage:R(F,L.data,L.originalArgs),isFetchingNextPage:N&&I,isFetchingPreviousPage:N&&B,isFetchNextPageError:M&&I,isFetchPreviousPageError:M&&B}}return f(S,P,A)}function v(){return S=>{let P;return typeof S=="object"?P=bu(S)??tw:P=S,n(P===tw?o:k=>s(k)?.mutations?.[P]??lD,r)}}function w(S,P){const F=S[t],A=new Set,k=KC(P,qC,XE);for(const L of k){const N=F.provided.tags[L.type];if(!N)continue;let M=(L.id!==void 0?N[L.id]:Object.values(N).flat())??[];for(const E of M)A.add(E)}return Array.from(A.values()).flatMap(L=>{const N=F.queries[L];return N?{queryCacheKey:L,endpointName:N.endpointName,originalArgs:N.originalArgs}:[]})}function b(S,P){return KC(Object.values(a(S)),F=>F?.endpointName===P&&F.status!==vr,F=>F.originalArgs)}function y(S,P,F){return P?ew(S,P,F)!=null:!1}function R(S,P,F){return!P||!S.getPreviousPageParam?!1:nD(S,P,F)!=null}}var cD=WeakMap?new WeakMap:void 0,uD=({endpointName:e,queryArgs:t})=>{let n="";const i=cD?.get(t);if(typeof i=="string")n=i;else{const o=JSON.stringify(t,(r,s)=>(s=typeof s=="bigint"?{$bigint:s.toString()}:s,s=us(s)?Object.keys(s).sort().reduce((a,l)=>(a[l]=s[l],a),{}):s,s));us(t)&&cD?.set(t,o),n=o}return`${e}(${n})`};function aY(...e){return function(n){const i=mf(u=>n.extractRehydrationInfo?.(u,{reducerPath:n.reducerPath??"api"})),o={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:i,serializeQueryArgs(u){let h=uD;if("serializeQueryArgs"in u.endpointDefinition){const f=u.endpointDefinition.serializeQueryArgs;h=g=>{const m=f(g);return typeof m=="string"?m:uD({...g,queryArgs:m})}}else n.serializeQueryArgs&&(h=n.serializeQueryArgs);return h(u)},tagTypes:[...n.tagTypes||[]]},r={endpointDefinitions:{},batch(u){u()},apiUid:UC(),extractRehydrationInfo:i,hasRehydrationInfo:mf(u=>i(u)!=null)},s={injectEndpoints:l,enhanceEndpoints({addTagTypes:u,endpoints:h}){if(u)for(const f of u)o.tagTypes.includes(f)||o.tagTypes.push(f);if(h)for(const[f,g]of Object.entries(h))typeof g=="function"?g(Rl(r,f)):Object.assign(Rl(r,f)||{},g);return s}},a=e.map(u=>u.init(s,o,r));function l(u){const h=u.endpoints({query:f=>({...f,type:vu}),mutation:f=>({...f,type:ZE}),infiniteQuery:f=>({...f,type:JE})});for(const[f,g]of Object.entries(h)){if(u.overrideExisting!==!0&&f in r.endpointDefinitions){if(u.overrideExisting==="throw")throw new Error(Ho(39));continue}r.endpointDefinitions[f]=g;for(const m of a)m.injectEndpoint(f,g)}return s}return s.injectEndpoints({endpoints:n.endpoints})}}function Cr(e,...t){return Object.assign(e,...t)}var lY=({api:e,queryThunk:t,internalState:n,mwApi:i})=>{const o=`${e.reducerPath}/subscriptions`;let r=null,s=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:l}=e.internalActions,u=(w,b)=>{if(a.match(b)){const{queryCacheKey:R,requestId:S,options:P}=b.payload,F=w.get(R);return F?.has(S)&&F.set(S,P),!0}if(l.match(b)){const{queryCacheKey:R,requestId:S}=b.payload,P=w.get(R);return P&&P.delete(S),!0}if(e.internalActions.removeQueryResult.match(b))return w.delete(b.payload.queryCacheKey),!0;if(t.pending.match(b)){const{meta:{arg:R,requestId:S}}=b,P=Sf(w,R.queryCacheKey,QC);return R.subscribe&&P.set(S,R.subscriptionOptions??P.get(S)??{}),!0}let y=!1;if(t.rejected.match(b)){const{meta:{condition:R,arg:S,requestId:P}}=b;if(R&&S.subscribe){const F=Sf(w,S.queryCacheKey,QC);F.set(P,S.subscriptionOptions??F.get(P)??{}),y=!0}}return y},h=()=>n.currentSubscriptions,m={getSubscriptions:h,getSubscriptionCount:w=>h().get(w)?.size??0,isRequestSubscribed:(w,b)=>!!h()?.get(w)?.get(b)};function v(w){return JSON.parse(JSON.stringify(Object.fromEntries([...w].map(([b,y])=>[b,Object.fromEntries(y)]))))}return(w,b)=>{if(r||(r=v(n.currentSubscriptions)),e.util.resetApiState.match(w))return r={},n.currentSubscriptions.clear(),s=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(w))return[!1,m];const y=u(n.currentSubscriptions,w);let R=!0;if(y){s||(s=setTimeout(()=>{const F=v(n.currentSubscriptions),[,A]=EE(r,()=>F);b.next(e.internalActions.subscriptionsUpdated(A)),r=F,s=null},500));const S=typeof w.type=="string"&&!!w.type.startsWith(o),P=t.rejected.match(w)&&w.meta.condition&&!!w.meta.arg.subscribe;R=!S&&!P}return[R,!1]}},cY=2147483647/1e3-1,uY=({reducerPath:e,api:t,queryThunk:n,context:i,internalState:o,selectors:{selectQueryEntry:r,selectConfig:s},getRunningQueryThunk:a,mwApi:l})=>{const{removeQueryResult:u,unsubscribeQueryResult:h,cacheEntriesUpserted:f}=t.internalActions,g=mr(h.match,n.fulfilled,n.rejected,f.match);function m(S){const P=o.currentSubscriptions.get(S);return P?P.size>0:!1}const v={};function w(S){for(const P of S.values())P?.abort?.()}const b=(S,P)=>{const F=P.getState(),A=s(F);if(g(S)){let k;if(f.match(S))k=S.payload.map(L=>L.queryDescription.queryCacheKey);else{const{queryCacheKey:L}=h.match(S)?S.payload:S.meta.arg;k=[L]}y(k,P,A)}if(t.util.resetApiState.match(S)){for(const[k,L]of Object.entries(v))L&&clearTimeout(L),delete v[k];w(o.runningQueries),w(o.runningMutations)}if(i.hasRehydrationInfo(S)){const{queries:k}=i.extractRehydrationInfo(S);y(Object.keys(k),P,A)}};function y(S,P,F){const A=P.getState();for(const k of S){const L=r(A,k);L?.endpointName&&R(k,L.endpointName,P,F)}}function R(S,P,F,A){const L=Rl(i,P)?.keepUnusedDataFor??A.keepUnusedDataFor;if(L===1/0)return;const N=Math.max(0,Math.min(L,cY));if(!m(S)){const M=v[S];M&&clearTimeout(M),v[S]=setTimeout(()=>{if(!m(S)){const E=r(F.getState(),S);E?.endpointName&&F.dispatch(a(E.endpointName,E.originalArgs))?.abort(),F.dispatch(u({queryCacheKey:S}))}delete v[S]},N*1e3)}}return b},dD=new Error("Promise never resolved before cacheEntryRemoved."),dY=({api:e,reducerPath:t,context:n,queryThunk:i,mutationThunk:o,internalState:r,selectors:{selectQueryEntry:s,selectApiState:a}})=>{const l=zC(i),u=zC(o),h=ds(i,o),f={},{removeQueryResult:g,removeMutationResult:m,cacheEntriesUpserted:v}=e.internalActions;function w(F,A,k){const L=f[F];L?.valueResolved&&(L.valueResolved({data:A,meta:k}),delete L.valueResolved)}function b(F){const A=f[F];A&&(delete f[F],A.cacheEntryRemoved())}function y(F){const{arg:A,requestId:k}=F.meta,{endpointName:L,originalArgs:N}=A;return[L,N,k]}const R=(F,A,k)=>{const L=S(F);function N(M,E,I,B){const W=s(k,E),J=s(A.getState(),E);!W&&J&&P(M,B,E,A,I)}if(i.pending.match(F)){const[M,E,I]=y(F);N(M,L,I,E)}else if(v.match(F))for(const{queryDescription:M,value:E}of F.payload){const{endpointName:I,originalArgs:B,queryCacheKey:W}=M;N(I,W,F.meta.requestId,B),w(W,E,{})}else if(o.pending.match(F)){if(A.getState()[t].mutations[L]){const[E,I,B]=y(F);P(E,I,L,A,B)}}else if(h(F))w(L,F.payload,F.meta.baseQueryMeta);else if(g.match(F)||m.match(F))b(L);else if(e.util.resetApiState.match(F))for(const M of Object.keys(f))b(M)};function S(F){return l(F)?F.meta.arg.queryCacheKey:u(F)?F.meta.arg.fixedCacheKey??F.meta.requestId:g.match(F)?F.payload.queryCacheKey:m.match(F)?bu(F.payload):""}function P(F,A,k,L,N){const M=Rl(n,F),E=M?.onCacheEntryAdded;if(!E)return;const I={},B=new Promise(De=>{I.cacheEntryRemoved=De}),W=Promise.race([new Promise(De=>{I.valueResolved=De}),B.then(()=>{throw dD})]);W.catch(()=>{}),f[k]=I;const J=e.endpoints[F].select(Pf(M)?A:k),me=L.dispatch((De,oe,H)=>H),fe={...L,getCacheEntry:()=>J(L.getState()),requestId:N,extra:me,updateCachedData:Pf(M)?De=>L.dispatch(e.util.updateQueryData(F,A,De)):void 0,cacheDataLoaded:W,cacheEntryRemoved:B},ve=E(A,fe);Promise.resolve(ve).catch(De=>{if(De!==dD)throw De})}return R},hY=({api:e,context:{apiUid:t},reducerPath:n})=>(i,o)=>{e.util.resetApiState.match(i)&&o.dispatch(e.internalActions.middlewareRegistered(t))},fY=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:i,queryThunk:o,api:r,assertTagType:s,refetchQuery:a,internalState:l})=>{const{removeQueryResult:u}=r.internalActions,h=mr(ds(i),bf(i)),f=mr(ds(o,i),Sl(o,i));let g=[],m=0;const v=(y,R)=>{(o.pending.match(y)||i.pending.match(y))&&m++,f(y)&&(m=Math.max(0,m-1)),h(y)?b(iD(y,"invalidatesTags",n,s),R):f(y)?b([],R):r.util.invalidateTags.match(y)&&b(JC(y.payload,void 0,void 0,void 0,void 0,s),R)};function w(){return m>0}function b(y,R){const S=R.getState(),P=S[e];if(g.push(...y),P.config.invalidationBehavior==="delayed"&&w())return;const F=g;if(g=[],F.length===0)return;const A=r.util.selectInvalidatedBy(S,F);t.batch(()=>{const k=Array.from(A.values());for(const{queryCacheKey:L}of k){const N=P.queries[L],M=Sf(l.currentSubscriptions,L,QC);N&&(M.size===0?R.dispatch(u({queryCacheKey:L})):N.status!==vr&&R.dispatch(a(N)))}})}return v},gY=({reducerPath:e,queryThunk:t,api:n,refetchQuery:i,internalState:o})=>{const{currentPolls:r,currentSubscriptions:s}=o,a=new Set;let l=null;const u=(b,y)=>{(n.internalActions.updateSubscriptionOptions.match(b)||n.internalActions.unsubscribeQueryResult.match(b))&&h(b.payload.queryCacheKey,y),(t.pending.match(b)||t.rejected.match(b)&&b.meta.condition)&&h(b.meta.arg.queryCacheKey,y),(t.fulfilled.match(b)||t.rejected.match(b)&&!b.meta.condition)&&f(b.meta.arg,y),n.util.resetApiState.match(b)&&(v(),l&&(clearTimeout(l),l=null),a.clear())};function h(b,y){a.add(b),l||(l=setTimeout(()=>{for(const R of a)g({queryCacheKey:R},y);a.clear(),l=null},0))}function f({queryCacheKey:b},y){const R=y.getState()[e],S=R.queries[b],P=s.get(b);if(!S||S.status===vr)return;const{lowestPollingInterval:F,skipPollingIfUnfocused:A}=w(P);if(!Number.isFinite(F))return;const k=r.get(b);k?.timeout&&(clearTimeout(k.timeout),k.timeout=void 0);const L=Date.now()+F;r.set(b,{nextPollTimestamp:L,pollingInterval:F,timeout:setTimeout(()=>{(R.config.focused||!A)&&y.dispatch(i(S)),f({queryCacheKey:b},y)},F)})}function g({queryCacheKey:b},y){const S=y.getState()[e].queries[b],P=s.get(b);if(!S||S.status===vr)return;const{lowestPollingInterval:F}=w(P);if(!Number.isFinite(F)){m(b);return}const A=r.get(b),k=Date.now()+F;(!A||k<A.nextPollTimestamp)&&f({queryCacheKey:b},y)}function m(b){const y=r.get(b);y?.timeout&&clearTimeout(y.timeout),r.delete(b)}function v(){for(const b of r.keys())m(b)}function w(b=new Map){let y=!1,R=Number.POSITIVE_INFINITY;for(const S of b.values())S.pollingInterval&&(R=Math.min(S.pollingInterval,R),y=S.skipPollingIfUnfocused||y);return{lowestPollingInterval:R,skipPollingIfUnfocused:y}}return u},pY=({api:e,context:t,queryThunk:n,mutationThunk:i})=>{const o=WC(n,i),r=Sl(n,i),s=ds(n,i),a={};return(u,h)=>{if(o(u)){const{requestId:f,arg:{endpointName:g,originalArgs:m}}=u.meta,v=Rl(t,g),w=v?.onQueryStarted;if(w){const b={},y=new Promise((F,A)=>{b.resolve=F,b.reject=A});y.catch(()=>{}),a[f]=b;const R=e.endpoints[g].select(Pf(v)?m:f),S=h.dispatch((F,A,k)=>k),P={...h,getCacheEntry:()=>R(h.getState()),requestId:f,extra:S,updateCachedData:Pf(v)?F=>h.dispatch(e.util.updateQueryData(g,m,F)):void 0,queryFulfilled:y};w(m,P)}}else if(s(u)){const{requestId:f,baseQueryMeta:g}=u.meta;a[f]?.resolve({data:u.payload,meta:g}),delete a[f]}else if(r(u)){const{requestId:f,rejectedWithValue:g,baseQueryMeta:m}=u.meta;a[f]?.reject({error:u.payload??u.error,isUnhandledError:!g,meta:m}),delete a[f]}}},mY=({reducerPath:e,context:t,api:n,refetchQuery:i,internalState:o})=>{const{removeQueryResult:r}=n.internalActions,s=(l,u)=>{YC.match(l)&&a(u,"refetchOnFocus"),ZC.match(l)&&a(u,"refetchOnReconnect")};function a(l,u){const h=l.getState()[e],f=h.queries,g=o.currentSubscriptions;t.batch(()=>{for(const m of g.keys()){const v=f[m],w=g.get(m);if(!w||!v)continue;const b=[...w.values()];(b.some(R=>R[u]===!0)||b.every(R=>R[u]===void 0)&&h.config[u])&&(w.size===0?l.dispatch(r({queryCacheKey:m})):v.status!==vr&&l.dispatch(i(v)))}})}return s};function vY(e){const{reducerPath:t,queryThunk:n,api:i,context:o,getInternalState:r}=e,{apiUid:s}=o,a={invalidateTags:ho(`${t}/invalidateTags`)},l=g=>g.type.startsWith(`${t}/`),u=[hY,uY,fY,gY,dY,pY];return{middleware:g=>{let m=!1;const v=r(g.dispatch),w={...e,internalState:v,refetchQuery:f,isThisApiSliceAction:l,mwApi:g},b=u.map(S=>S(w)),y=lY(w),R=mY(w);return S=>P=>{if(!dE(P))return S(P);m||(m=!0,g.dispatch(i.internalActions.middlewareRegistered(s)));const F={...g,next:S},A=g.getState(),[k,L]=y(P,F,A);let N;if(k?N=S(P):N=L,g.getState()[t]&&(R(P,F,A),l(P)||o.hasRehydrationInfo(P)))for(const M of b)M(P,F,A);return N}},actions:a};function f(g){return e.api.endpoints[g.endpointName].initiate(g.originalArgs,{subscribe:!1,forceRefetch:!0})}}var hD=Symbol(),CY=({createSelector:e=IE}={})=>({name:hD,init(t,{baseQuery:n,tagTypes:i,reducerPath:o,serializeQueryArgs:r,keepUnusedDataFor:s,refetchOnMountOrArgChange:a,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:h,onSchemaFailure:f,catchSchemaFailure:g,skipSchemaValidation:m},v){iQ();const w=Fe=>Fe;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:ZC,onOffline:YE,onFocus:YC,onFocusLost:QE},util:{}});const b=sY({serializeQueryArgs:r,reducerPath:o,createSelector:e}),{selectInvalidatedBy:y,selectCachedArgsForQuery:R,buildQuerySelector:S,buildInfiniteQuerySelector:P,buildMutationSelector:F}=b;Cr(t.util,{selectInvalidatedBy:y,selectCachedArgsForQuery:R});const{queryThunk:A,infiniteQueryThunk:k,mutationThunk:L,patchQueryData:N,updateQueryData:M,upsertQueryData:E,prefetch:I,buildMatchThunkActions:B}=oY({baseQuery:n,reducerPath:o,context:v,api:t,serializeQueryArgs:r,assertTagType:w,selectors:b,onSchemaFailure:f,catchSchemaFailure:g,skipSchemaValidation:m}),{reducer:W,actions:J}=rY({context:v,queryThunk:A,mutationThunk:L,serializeQueryArgs:r,reducerPath:o,assertTagType:w,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:a,keepUnusedDataFor:s,reducerPath:o,invalidationBehavior:h}});Cr(t.util,{patchQueryData:N,updateQueryData:M,upsertQueryData:E,prefetch:I,resetApiState:J.resetApiState,upsertQueryEntries:J.cacheEntriesUpserted}),Cr(t.internalActions,J);const me=new WeakMap,fe=Fe=>Sf(me,Fe,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:ve,buildInitiateInfiniteQuery:De,buildInitiateMutation:oe,getRunningMutationThunk:H,getRunningMutationsThunk:Q,getRunningQueriesThunk:j,getRunningQueryThunk:ce}=iY({queryThunk:A,mutationThunk:L,infiniteQueryThunk:k,api:t,serializeQueryArgs:r,context:v,getInternalState:fe});Cr(t.util,{getRunningMutationThunk:H,getRunningMutationsThunk:Q,getRunningQueryThunk:ce,getRunningQueriesThunk:j});const{middleware:Ee,actions:Ie}=vY({reducerPath:o,context:v,queryThunk:A,mutationThunk:L,infiniteQueryThunk:k,api:t,assertTagType:w,selectors:b,getRunningQueryThunk:ce,getInternalState:fe});return Cr(t.util,Ie),Cr(t,{reducer:W,middleware:Ee}),{name:hD,injectEndpoint(Fe,Le){const $e=t,Ve=$e.endpoints[Fe]??={};xf(Le)&&Cr(Ve,{name:Fe,select:S(Fe,Le),initiate:ve(Fe,Le)},B(A,Fe)),eY(Le)&&Cr(Ve,{name:Fe,select:F(),initiate:oe(Fe)},B(L,Fe)),Ff(Le)&&Cr(Ve,{name:Fe,select:P(Fe,Le),initiate:De(Fe,Le)},B(A,Fe))}}}}),wY=aY(CY());const Vi=wY({baseQuery:ZQ({baseUrl:"https://contributor-service.complysci.com:443/pcv/api"}),endpoints:()=>({})});var Wi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yu={exports:{}},bY=yu.exports,fD;function yY(){return fD||(fD=1,(function(e,t){(function(n,i){i(t)})(bY,function(n){function i(H,Q){H.super_=Q,H.prototype=Object.create(Q.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}})}function o(H,Q){Object.defineProperty(this,"kind",{value:H,enumerable:!0}),Q&&Q.length&&Object.defineProperty(this,"path",{value:Q,enumerable:!0})}function r(H,Q,j){r.super_.call(this,"E",H),Object.defineProperty(this,"lhs",{value:Q,enumerable:!0}),Object.defineProperty(this,"rhs",{value:j,enumerable:!0})}function s(H,Q){s.super_.call(this,"N",H),Object.defineProperty(this,"rhs",{value:Q,enumerable:!0})}function a(H,Q){a.super_.call(this,"D",H),Object.defineProperty(this,"lhs",{value:Q,enumerable:!0})}function l(H,Q,j){l.super_.call(this,"A",H),Object.defineProperty(this,"index",{value:Q,enumerable:!0}),Object.defineProperty(this,"item",{value:j,enumerable:!0})}function u(H,Q,j){var ce=H.slice(Q+1||H.length);return H.length=Q<0?H.length+Q:Q,H.push.apply(H,ce),H}function h(H){var Q=typeof H>"u"?"undefined":J(H);return Q!=="object"?Q:H===Math?"math":H===null?"null":Array.isArray(H)?"array":Object.prototype.toString.call(H)==="[object Date]"?"date":typeof H.toString=="function"&&/^\/.*\//.test(H.toString())?"regexp":"object"}function f(H,Q,j,ce,Ee,Ie,Fe){Ee=Ee||[],Fe=Fe||[];var Le=Ee.slice(0);if(typeof Ie<"u"){if(ce){if(typeof ce=="function"&&ce(Le,Ie))return;if((typeof ce>"u"?"undefined":J(ce))==="object"){if(ce.prefilter&&ce.prefilter(Le,Ie))return;if(ce.normalize){var $e=ce.normalize(Le,Ie,H,Q);$e&&(H=$e[0],Q=$e[1])}}}Le.push(Ie)}h(H)==="regexp"&&h(Q)==="regexp"&&(H=H.toString(),Q=Q.toString());var Ve=typeof H>"u"?"undefined":J(H),yt=typeof Q>"u"?"undefined":J(Q),O=Ve!=="undefined"||Fe&&Fe[Fe.length-1].lhs&&Fe[Fe.length-1].lhs.hasOwnProperty(Ie),V=yt!=="undefined"||Fe&&Fe[Fe.length-1].rhs&&Fe[Fe.length-1].rhs.hasOwnProperty(Ie);if(!O&&V)j(new s(Le,Q));else if(!V&&O)j(new a(Le,H));else if(h(H)!==h(Q))j(new r(Le,H,Q));else if(h(H)==="date"&&H-Q!==0)j(new r(Le,H,Q));else if(Ve==="object"&&H!==null&&Q!==null)if(Fe.filter(function(Z){return Z.lhs===H}).length)H!==Q&&j(new r(Le,H,Q));else{if(Fe.push({lhs:H,rhs:Q}),Array.isArray(H)){var U;for(H.length,U=0;U<H.length;U++)U>=Q.length?j(new l(Le,U,new a(void 0,H[U]))):f(H[U],Q[U],j,ce,Le,U,Fe);for(;U<Q.length;)j(new l(Le,U,new s(void 0,Q[U++])))}else{var ne=Object.keys(H),te=Object.keys(Q);ne.forEach(function(Z,Se){var Ce=te.indexOf(Z);Ce>=0?(f(H[Z],Q[Z],j,ce,Le,Z,Fe),te=u(te,Ce)):f(H[Z],void 0,j,ce,Le,Z,Fe)}),te.forEach(function(Z){f(void 0,Q[Z],j,ce,Le,Z,Fe)})}Fe.length=Fe.length-1}else H!==Q&&(Ve==="number"&&isNaN(H)&&isNaN(Q)||j(new r(Le,H,Q)))}function g(H,Q,j,ce){return ce=ce||[],f(H,Q,function(Ee){Ee&&ce.push(Ee)},j),ce.length?ce:void 0}function m(H,Q,j){if(j.path&&j.path.length){var ce,Ee=H[Q],Ie=j.path.length-1;for(ce=0;ce<Ie;ce++)Ee=Ee[j.path[ce]];switch(j.kind){case"A":m(Ee[j.path[ce]],j.index,j.item);break;case"D":delete Ee[j.path[ce]];break;case"E":case"N":Ee[j.path[ce]]=j.rhs}}else switch(j.kind){case"A":m(H[Q],j.index,j.item);break;case"D":H=u(H,Q);break;case"E":case"N":H[Q]=j.rhs}return H}function v(H,Q,j){if(H&&Q&&j&&j.kind){for(var ce=H,Ee=-1,Ie=j.path?j.path.length-1:0;++Ee<Ie;)typeof ce[j.path[Ee]]>"u"&&(ce[j.path[Ee]]=typeof j.path[Ee]=="number"?[]:{}),ce=ce[j.path[Ee]];switch(j.kind){case"A":m(j.path?ce[j.path[Ee]]:ce,j.index,j.item);break;case"D":delete ce[j.path[Ee]];break;case"E":case"N":ce[j.path[Ee]]=j.rhs}}}function w(H,Q,j){if(j.path&&j.path.length){var ce,Ee=H[Q],Ie=j.path.length-1;for(ce=0;ce<Ie;ce++)Ee=Ee[j.path[ce]];switch(j.kind){case"A":w(Ee[j.path[ce]],j.index,j.item);break;case"D":Ee[j.path[ce]]=j.lhs;break;case"E":Ee[j.path[ce]]=j.lhs;break;case"N":delete Ee[j.path[ce]]}}else switch(j.kind){case"A":w(H[Q],j.index,j.item);break;case"D":H[Q]=j.lhs;break;case"E":H[Q]=j.lhs;break;case"N":H=u(H,Q)}return H}function b(H,Q,j){if(H&&Q&&j&&j.kind){var ce,Ee,Ie=H;for(Ee=j.path.length-1,ce=0;ce<Ee;ce++)typeof Ie[j.path[ce]]>"u"&&(Ie[j.path[ce]]={}),Ie=Ie[j.path[ce]];switch(j.kind){case"A":w(Ie[j.path[ce]],j.index,j.item);break;case"D":Ie[j.path[ce]]=j.lhs;break;case"E":Ie[j.path[ce]]=j.lhs;break;case"N":delete Ie[j.path[ce]]}}}function y(H,Q,j){if(H&&Q){var ce=function(Ee){j&&!j(H,Q,Ee)||v(H,Q,Ee)};f(H,Q,ce)}}function R(H){return"color: "+ve[H].color+"; font-weight: bold"}function S(H){var Q=H.kind,j=H.path,ce=H.lhs,Ee=H.rhs,Ie=H.index,Fe=H.item;switch(Q){case"E":return[j.join("."),ce,"→",Ee];case"N":return[j.join("."),Ee];case"D":return[j.join(".")];case"A":return[j.join(".")+"["+Ie+"]",Fe];default:return[]}}function P(H,Q,j,ce){var Ee=g(H,Q);try{ce?j.groupCollapsed("diff"):j.group("diff")}catch{j.log("diff")}Ee?Ee.forEach(function(Ie){var Fe=Ie.kind,Le=S(Ie);j.log.apply(j,["%c "+ve[Fe].text,R(Fe)].concat(me(Le)))}):j.log("—— no diff ——");try{j.groupEnd()}catch{j.log("—— diff end —— ")}}function F(H,Q,j,ce){switch(typeof H>"u"?"undefined":J(H)){case"object":return typeof H[ce]=="function"?H[ce].apply(H,me(j)):H[ce];case"function":return H(Q);default:return H}}function A(H){var Q=H.timestamp,j=H.duration;return function(ce,Ee,Ie){var Fe=["action"];return Fe.push("%c"+String(ce.type)),Q&&Fe.push("%c@ "+Ee),j&&Fe.push("%c(in "+Ie.toFixed(2)+" ms)"),Fe.join(" ")}}function k(H,Q){var j=Q.logger,ce=Q.actionTransformer,Ee=Q.titleFormatter,Ie=Ee===void 0?A(Q):Ee,Fe=Q.collapsed,Le=Q.colors,$e=Q.level,Ve=Q.diff,yt=typeof Q.titleFormatter>"u";H.forEach(function(O,V){var U=O.started,ne=O.startedTime,te=O.action,Z=O.prevState,Se=O.error,Ce=O.took,he=O.nextState,ie=H[V+1];ie&&(he=ie.prevState,Ce=ie.started-U);var ke=ce(te),Te=typeof Fe=="function"?Fe(function(){return he},te,O):Fe,He=B(ne),ze=Le.title?"color: "+Le.title(ke)+";":"",Xe=["color: gray; font-weight: lighter;"];Xe.push(ze),Q.timestamp&&Xe.push("color: gray; font-weight: lighter;"),Q.duration&&Xe.push("color: gray; font-weight: lighter;");var rt=Ie(ke,He,Ce);try{Te?Le.title&&yt?j.groupCollapsed.apply(j,["%c "+rt].concat(Xe)):j.groupCollapsed(rt):Le.title&&yt?j.group.apply(j,["%c "+rt].concat(Xe)):j.group(rt)}catch{j.log(rt)}var it=F($e,ke,[Z],"prevState"),Ut=F($e,ke,[ke],"action"),$t=F($e,ke,[Se,Z],"error"),Yt=F($e,ke,[he],"nextState");if(it)if(Le.prevState){var wn="color: "+Le.prevState(Z)+"; font-weight: bold";j[it]("%c prev state",wn,Z)}else j[it]("prev state",Z);if(Ut)if(Le.action){var Si="color: "+Le.action(ke)+"; font-weight: bold";j[Ut]("%c action ",Si,ke)}else j[Ut]("action ",ke);if(Se&&$t)if(Le.error){var Go="color: "+Le.error(Se,Z)+"; font-weight: bold;";j[$t]("%c error ",Go,Se)}else j[$t]("error ",Se);if(Yt)if(Le.nextState){var nn="color: "+Le.nextState(he)+"; font-weight: bold";j[Yt]("%c next state",nn,he)}else j[Yt]("next state",he);Ve&&P(Z,he,j,Te);try{j.groupEnd()}catch{j.log("—— log end ——")}})}function L(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=Object.assign({},De,H),j=Q.logger,ce=Q.stateTransformer,Ee=Q.errorTransformer,Ie=Q.predicate,Fe=Q.logErrors,Le=Q.diffPredicate;if(typeof j>"u")return function(){return function(Ve){return function(yt){return Ve(yt)}}};if(H.getState&&H.dispatch)return console.error(`[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:
625
- // Logger with default options
626
- import { logger } from 'redux-logger'
627
- const store = createStore(
628
- reducer,
629
- applyMiddleware(logger)
630
- )
631
- // Or you can create your own logger with custom options http://bit.ly/redux-logger-options
632
- import createLogger from 'redux-logger'
633
- const logger = createLogger({
634
- // ...options
635
- });
636
- const store = createStore(
637
- reducer,
638
- applyMiddleware(logger)
639
- )
640
- `),function(){return function(Ve){return function(yt){return Ve(yt)}}};var $e=[];return function(Ve){var yt=Ve.getState;return function(O){return function(V){if(typeof Ie=="function"&&!Ie(yt,V))return O(V);var U={};$e.push(U),U.started=W.now(),U.startedTime=new Date,U.prevState=ce(yt()),U.action=V;var ne=void 0;if(Fe)try{ne=O(V)}catch(Z){U.error=Ee(Z)}else ne=O(V);U.took=W.now()-U.started,U.nextState=ce(yt());var te=Q.diff&&typeof Le=="function"?Le(yt,V):Q.diff;if(k($e,Object.assign({},Q,{diff:te})),$e.length=0,U.error)throw U.error;return ne}}}}var N,M,E=function(H,Q){return new Array(Q+1).join(H)},I=function(H,Q){return E("0",Q-H.toString().length)+H},B=function(H){return I(H.getHours(),2)+":"+I(H.getMinutes(),2)+":"+I(H.getSeconds(),2)+"."+I(H.getMilliseconds(),3)},W=typeof performance<"u"&&performance!==null&&typeof performance.now=="function"?performance:Date,J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},me=function(H){if(Array.isArray(H)){for(var Q=0,j=Array(H.length);Q<H.length;Q++)j[Q]=H[Q];return j}return Array.from(H)},fe=[];N=(typeof Wi>"u"?"undefined":J(Wi))==="object"&&Wi?Wi:typeof window<"u"?window:{},M=N.DeepDiff,M&&fe.push(function(){typeof M<"u"&&N.DeepDiff===g&&(N.DeepDiff=M,M=void 0)}),i(r,o),i(s,o),i(a,o),i(l,o),Object.defineProperties(g,{diff:{value:g,enumerable:!0},observableDiff:{value:f,enumerable:!0},applyDiff:{value:y,enumerable:!0},applyChange:{value:v,enumerable:!0},revertChange:{value:b,enumerable:!0},isConflict:{value:function(){return typeof M<"u"},enumerable:!0},noConflict:{value:function(){return fe&&(fe.forEach(function(H){H()}),fe=null),g},enumerable:!0}});var ve={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},De={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(H){return H},actionTransformer:function(H){return H},errorTransformer:function(H){return H},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},oe=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=H.dispatch,j=H.getState;return typeof Q=="function"||typeof j=="function"?L()({dispatch:Q,getState:j}):void console.error(`
641
- [redux-logger v3] BREAKING CHANGE
642
- [redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.
643
- [redux-logger v3] Change
644
- [redux-logger v3] import createLogger from 'redux-logger'
645
- [redux-logger v3] to
646
- [redux-logger v3] import { createLogger } from 'redux-logger'
647
- `)};n.defaults=De,n.createLogger=L,n.logger=oe,n.default=oe,Object.defineProperty(n,"__esModule",{value:!0})})})(yu,yu.exports)),yu.exports}var SY=yY();const RY=nw(SY);var Su={exports:{}};var xY=Su.exports,gD;function FY(){return gD||(gD=1,(function(e,t){(function(){var n,i="4.17.23",o=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,h="__lodash_placeholder__",f=1,g=2,m=4,v=1,w=2,b=1,y=2,R=4,S=8,P=16,F=32,A=64,k=128,L=256,N=512,M=30,E="...",I=800,B=16,W=1,J=2,me=3,fe=1/0,ve=9007199254740991,De=17976931348623157e292,oe=NaN,H=4294967295,Q=H-1,j=H>>>1,ce=[["ary",k],["bind",b],["bindKey",y],["curry",S],["curryRight",P],["flip",N],["partial",F],["partialRight",A],["rearg",L]],Ee="[object Arguments]",Ie="[object Array]",Fe="[object AsyncFunction]",Le="[object Boolean]",$e="[object Date]",Ve="[object DOMException]",yt="[object Error]",O="[object Function]",V="[object GeneratorFunction]",U="[object Map]",ne="[object Number]",te="[object Null]",Z="[object Object]",Se="[object Promise]",Ce="[object Proxy]",he="[object RegExp]",ie="[object Set]",ke="[object String]",Te="[object Symbol]",He="[object Undefined]",ze="[object WeakMap]",Xe="[object WeakSet]",rt="[object ArrayBuffer]",it="[object DataView]",Ut="[object Float32Array]",$t="[object Float64Array]",Yt="[object Int8Array]",wn="[object Int16Array]",Si="[object Int32Array]",Go="[object Uint8Array]",nn="[object Uint8ClampedArray]",bn="[object Uint16Array]",wr="[object Uint32Array]",Dn=/\b__p \+= '';/g,pw=/\b(__p \+=) '' \+/g,mw=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lf=/&(?:amp|lt|gt|quot|#39);/g,Of=/[&<>"']/g,vw=RegExp(Lf.source),Cw=RegExp(Of.source),we=/<%-([\s\S]+?)%>/g,Me=/<%([\s\S]+?)%>/g,at=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,Mt=RegExp(Ri.source),on=/^\s+/,gs=/\s/,Ca=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pte=/\{\n\/\* \[wrapped with (.+)\] \*/,mte=/,? & /,vte=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cte=/[()=,{}\[\]\/\s]/,wte=/\\(\\)?/g,bte=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,KD=/\w*$/,yte=/^[-+]0x[0-9a-f]+$/i,Ste=/^0b[01]+$/i,Rte=/^\[object .+?Constructor\]$/,xte=/^0o[0-7]+$/i,Fte=/^(?:0|[1-9]\d*)$/,Pte=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_f=/($^)/,Ete=/['\n\r\u2028\u2029\\]/g,Nf="\\ud800-\\udfff",Dte="\\u0300-\\u036f",Tte="\\ufe20-\\ufe2f",Ate="\\u20d0-\\u20ff",qD=Dte+Tte+Ate,QD="\\u2700-\\u27bf",YD="a-z\\xdf-\\xf6\\xf8-\\xff",Ite="\\xac\\xb1\\xd7\\xf7",Mte="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kte="\\u2000-\\u206f",Lte=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ZD="A-Z\\xc0-\\xd6\\xd8-\\xde",JD="\\ufe0e\\ufe0f",XD=Ite+Mte+kte+Lte,ww="['’]",Ote="["+Nf+"]",eT="["+XD+"]",Bf="["+qD+"]",tT="\\d+",_te="["+QD+"]",nT="["+YD+"]",iT="[^"+Nf+XD+tT+QD+YD+ZD+"]",bw="\\ud83c[\\udffb-\\udfff]",Nte="(?:"+Bf+"|"+bw+")",oT="[^"+Nf+"]",yw="(?:\\ud83c[\\udde6-\\uddff]){2}",Sw="[\\ud800-\\udbff][\\udc00-\\udfff]",xl="["+ZD+"]",rT="\\u200d",sT="(?:"+nT+"|"+iT+")",Bte="(?:"+xl+"|"+iT+")",aT="(?:"+ww+"(?:d|ll|m|re|s|t|ve))?",lT="(?:"+ww+"(?:D|LL|M|RE|S|T|VE))?",cT=Nte+"?",uT="["+JD+"]?",Hte="(?:"+rT+"(?:"+[oT,yw,Sw].join("|")+")"+uT+cT+")*",Gte="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vte="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",dT=uT+cT+Hte,Wte="(?:"+[_te,yw,Sw].join("|")+")"+dT,zte="(?:"+[oT+Bf+"?",Bf,yw,Sw,Ote].join("|")+")",Ute=RegExp(ww,"g"),$te=RegExp(Bf,"g"),Rw=RegExp(bw+"(?="+bw+")|"+zte+dT,"g"),jte=RegExp([xl+"?"+nT+"+"+aT+"(?="+[eT,xl,"$"].join("|")+")",Bte+"+"+lT+"(?="+[eT,xl+sT,"$"].join("|")+")",xl+"?"+sT+"+"+aT,xl+"+"+lT,Vte,Gte,tT,Wte].join("|"),"g"),Kte=RegExp("["+rT+Nf+qD+JD+"]"),qte=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qte=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yte=-1,Ht={};Ht[Ut]=Ht[$t]=Ht[Yt]=Ht[wn]=Ht[Si]=Ht[Go]=Ht[nn]=Ht[bn]=Ht[wr]=!0,Ht[Ee]=Ht[Ie]=Ht[rt]=Ht[Le]=Ht[it]=Ht[$e]=Ht[yt]=Ht[O]=Ht[U]=Ht[ne]=Ht[Z]=Ht[he]=Ht[ie]=Ht[ke]=Ht[ze]=!1;var kt={};kt[Ee]=kt[Ie]=kt[rt]=kt[it]=kt[Le]=kt[$e]=kt[Ut]=kt[$t]=kt[Yt]=kt[wn]=kt[Si]=kt[U]=kt[ne]=kt[Z]=kt[he]=kt[ie]=kt[ke]=kt[Te]=kt[Go]=kt[nn]=kt[bn]=kt[wr]=!0,kt[yt]=kt[O]=kt[ze]=!1;var Zte={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jte={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xte={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ene={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tne=parseFloat,nne=parseInt,hT=typeof Wi=="object"&&Wi&&Wi.Object===Object&&Wi,ine=typeof self=="object"&&self&&self.Object===Object&&self,An=hT||ine||Function("return this")(),xw=t&&!t.nodeType&&t,wa=xw&&!0&&e&&!e.nodeType&&e,fT=wa&&wa.exports===xw,Fw=fT&&hT.process,zi=(function(){try{var z=wa&&wa.require&&wa.require("util").types;return z||Fw&&Fw.binding&&Fw.binding("util")}catch{}})(),gT=zi&&zi.isArrayBuffer,pT=zi&&zi.isDate,mT=zi&&zi.isMap,vT=zi&&zi.isRegExp,CT=zi&&zi.isSet,wT=zi&&zi.isTypedArray;function xi(z,ee,Y){switch(Y.length){case 0:return z.call(ee);case 1:return z.call(ee,Y[0]);case 2:return z.call(ee,Y[0],Y[1]);case 3:return z.call(ee,Y[0],Y[1],Y[2])}return z.apply(ee,Y)}function one(z,ee,Y,_e){for(var et=-1,Rt=z==null?0:z.length;++et<Rt;){var hn=z[et];ee(_e,hn,Y(hn),z)}return _e}function Ui(z,ee){for(var Y=-1,_e=z==null?0:z.length;++Y<_e&&ee(z[Y],Y,z)!==!1;);return z}function rne(z,ee){for(var Y=z==null?0:z.length;Y--&&ee(z[Y],Y,z)!==!1;);return z}function bT(z,ee){for(var Y=-1,_e=z==null?0:z.length;++Y<_e;)if(!ee(z[Y],Y,z))return!1;return!0}function ps(z,ee){for(var Y=-1,_e=z==null?0:z.length,et=0,Rt=[];++Y<_e;){var hn=z[Y];ee(hn,Y,z)&&(Rt[et++]=hn)}return Rt}function Hf(z,ee){var Y=z==null?0:z.length;return!!Y&&Fl(z,ee,0)>-1}function Pw(z,ee,Y){for(var _e=-1,et=z==null?0:z.length;++_e<et;)if(Y(ee,z[_e]))return!0;return!1}function jt(z,ee){for(var Y=-1,_e=z==null?0:z.length,et=Array(_e);++Y<_e;)et[Y]=ee(z[Y],Y,z);return et}function ms(z,ee){for(var Y=-1,_e=ee.length,et=z.length;++Y<_e;)z[et+Y]=ee[Y];return z}function Ew(z,ee,Y,_e){var et=-1,Rt=z==null?0:z.length;for(_e&&Rt&&(Y=z[++et]);++et<Rt;)Y=ee(Y,z[et],et,z);return Y}function sne(z,ee,Y,_e){var et=z==null?0:z.length;for(_e&&et&&(Y=z[--et]);et--;)Y=ee(Y,z[et],et,z);return Y}function Dw(z,ee){for(var Y=-1,_e=z==null?0:z.length;++Y<_e;)if(ee(z[Y],Y,z))return!0;return!1}var ane=Tw("length");function lne(z){return z.split("")}function cne(z){return z.match(vte)||[]}function yT(z,ee,Y){var _e;return Y(z,function(et,Rt,hn){if(ee(et,Rt,hn))return _e=Rt,!1}),_e}function Gf(z,ee,Y,_e){for(var et=z.length,Rt=Y+(_e?1:-1);_e?Rt--:++Rt<et;)if(ee(z[Rt],Rt,z))return Rt;return-1}function Fl(z,ee,Y){return ee===ee?yne(z,ee,Y):Gf(z,ST,Y)}function une(z,ee,Y,_e){for(var et=Y-1,Rt=z.length;++et<Rt;)if(_e(z[et],ee))return et;return-1}function ST(z){return z!==z}function RT(z,ee){var Y=z==null?0:z.length;return Y?Iw(z,ee)/Y:oe}function Tw(z){return function(ee){return ee==null?n:ee[z]}}function Aw(z){return function(ee){return z==null?n:z[ee]}}function xT(z,ee,Y,_e,et){return et(z,function(Rt,hn,At){Y=_e?(_e=!1,Rt):ee(Y,Rt,hn,At)}),Y}function dne(z,ee){var Y=z.length;for(z.sort(ee);Y--;)z[Y]=z[Y].value;return z}function Iw(z,ee){for(var Y,_e=-1,et=z.length;++_e<et;){var Rt=ee(z[_e]);Rt!==n&&(Y=Y===n?Rt:Y+Rt)}return Y}function Mw(z,ee){for(var Y=-1,_e=Array(z);++Y<z;)_e[Y]=ee(Y);return _e}function hne(z,ee){return jt(ee,function(Y){return[Y,z[Y]]})}function FT(z){return z&&z.slice(0,TT(z)+1).replace(on,"")}function Fi(z){return function(ee){return z(ee)}}function kw(z,ee){return jt(ee,function(Y){return z[Y]})}function Eu(z,ee){return z.has(ee)}function PT(z,ee){for(var Y=-1,_e=z.length;++Y<_e&&Fl(ee,z[Y],0)>-1;);return Y}function ET(z,ee){for(var Y=z.length;Y--&&Fl(ee,z[Y],0)>-1;);return Y}function fne(z,ee){for(var Y=z.length,_e=0;Y--;)z[Y]===ee&&++_e;return _e}var gne=Aw(Zte),pne=Aw(Jte);function mne(z){return"\\"+ene[z]}function vne(z,ee){return z==null?n:z[ee]}function Pl(z){return Kte.test(z)}function Cne(z){return qte.test(z)}function wne(z){for(var ee,Y=[];!(ee=z.next()).done;)Y.push(ee.value);return Y}function Lw(z){var ee=-1,Y=Array(z.size);return z.forEach(function(_e,et){Y[++ee]=[et,_e]}),Y}function DT(z,ee){return function(Y){return z(ee(Y))}}function vs(z,ee){for(var Y=-1,_e=z.length,et=0,Rt=[];++Y<_e;){var hn=z[Y];(hn===ee||hn===h)&&(z[Y]=h,Rt[et++]=Y)}return Rt}function Vf(z){var ee=-1,Y=Array(z.size);return z.forEach(function(_e){Y[++ee]=_e}),Y}function bne(z){var ee=-1,Y=Array(z.size);return z.forEach(function(_e){Y[++ee]=[_e,_e]}),Y}function yne(z,ee,Y){for(var _e=Y-1,et=z.length;++_e<et;)if(z[_e]===ee)return _e;return-1}function Sne(z,ee,Y){for(var _e=Y+1;_e--;)if(z[_e]===ee)return _e;return _e}function El(z){return Pl(z)?xne(z):ane(z)}function go(z){return Pl(z)?Fne(z):lne(z)}function TT(z){for(var ee=z.length;ee--&&gs.test(z.charAt(ee)););return ee}var Rne=Aw(Xte);function xne(z){for(var ee=Rw.lastIndex=0;Rw.test(z);)++ee;return ee}function Fne(z){return z.match(Rw)||[]}function Pne(z){return z.match(jte)||[]}var Ene=(function z(ee){ee=ee==null?An:Dl.defaults(An.Object(),ee,Dl.pick(An,Qte));var Y=ee.Array,_e=ee.Date,et=ee.Error,Rt=ee.Function,hn=ee.Math,At=ee.Object,Ow=ee.RegExp,Dne=ee.String,$i=ee.TypeError,Wf=Y.prototype,Tne=Rt.prototype,Tl=At.prototype,zf=ee["__core-js_shared__"],Uf=Tne.toString,Pt=Tl.hasOwnProperty,Ane=0,AT=(function(){var c=/[^.]+$/.exec(zf&&zf.keys&&zf.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),$f=Tl.toString,Ine=Uf.call(At),Mne=An._,kne=Ow("^"+Uf.call(Pt).replace(Ri,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jf=fT?ee.Buffer:n,Cs=ee.Symbol,Kf=ee.Uint8Array,IT=jf?jf.allocUnsafe:n,qf=DT(At.getPrototypeOf,At),MT=At.create,kT=Tl.propertyIsEnumerable,Qf=Wf.splice,LT=Cs?Cs.isConcatSpreadable:n,Du=Cs?Cs.iterator:n,ba=Cs?Cs.toStringTag:n,Yf=(function(){try{var c=Fa(At,"defineProperty");return c({},"",{}),c}catch{}})(),Lne=ee.clearTimeout!==An.clearTimeout&&ee.clearTimeout,One=_e&&_e.now!==An.Date.now&&_e.now,_ne=ee.setTimeout!==An.setTimeout&&ee.setTimeout,Zf=hn.ceil,Jf=hn.floor,_w=At.getOwnPropertySymbols,Nne=jf?jf.isBuffer:n,OT=ee.isFinite,Bne=Wf.join,Hne=DT(At.keys,At),fn=hn.max,Hn=hn.min,Gne=_e.now,Vne=ee.parseInt,_T=hn.random,Wne=Wf.reverse,Nw=Fa(ee,"DataView"),Tu=Fa(ee,"Map"),Bw=Fa(ee,"Promise"),Al=Fa(ee,"Set"),Au=Fa(ee,"WeakMap"),Iu=Fa(At,"create"),Xf=Au&&new Au,Il={},zne=Pa(Nw),Une=Pa(Tu),$ne=Pa(Bw),jne=Pa(Al),Kne=Pa(Au),eg=Cs?Cs.prototype:n,Mu=eg?eg.valueOf:n,NT=eg?eg.toString:n;function D(c){if(Zt(c)&&!nt(c)&&!(c instanceof dt)){if(c instanceof ji)return c;if(Pt.call(c,"__wrapped__"))return BA(c)}return new ji(c)}var Ml=(function(){function c(){}return function(d){if(!Kt(d))return{};if(MT)return MT(d);c.prototype=d;var p=new c;return c.prototype=n,p}})();function tg(){}function ji(c,d){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}D.templateSettings={escape:we,evaluate:Me,interpolate:at,variable:"",imports:{_:D}},D.prototype=tg.prototype,D.prototype.constructor=D,ji.prototype=Ml(tg.prototype),ji.prototype.constructor=ji;function dt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function qne(){var c=new dt(this.__wrapped__);return c.__actions__=ci(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=ci(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=ci(this.__views__),c}function Qne(){if(this.__filtered__){var c=new dt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function Yne(){var c=this.__wrapped__.value(),d=this.__dir__,p=nt(c),C=d<0,x=p?c.length:0,T=loe(0,x,this.__views__),_=T.start,G=T.end,$=G-_,re=C?G:_-1,ae=this.__iteratees__,ue=ae.length,Ae=0,Be=Hn($,this.__takeCount__);if(!p||!C&&x==$&&Be==$)return aA(c,this.__actions__);var Qe=[];e:for(;$--&&Ae<Be;){re+=d;for(var st=-1,Ye=c[re];++st<ue;){var ct=ae[st],ht=ct.iteratee,Di=ct.type,ei=ht(Ye);if(Di==J)Ye=ei;else if(!ei){if(Di==W)continue e;break e}}Qe[Ae++]=Ye}return Qe}dt.prototype=Ml(tg.prototype),dt.prototype.constructor=dt;function ya(c){var d=-1,p=c==null?0:c.length;for(this.clear();++d<p;){var C=c[d];this.set(C[0],C[1])}}function Zne(){this.__data__=Iu?Iu(null):{},this.size=0}function Jne(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}function Xne(c){var d=this.__data__;if(Iu){var p=d[c];return p===l?n:p}return Pt.call(d,c)?d[c]:n}function eie(c){var d=this.__data__;return Iu?d[c]!==n:Pt.call(d,c)}function tie(c,d){var p=this.__data__;return this.size+=this.has(c)?0:1,p[c]=Iu&&d===n?l:d,this}ya.prototype.clear=Zne,ya.prototype.delete=Jne,ya.prototype.get=Xne,ya.prototype.has=eie,ya.prototype.set=tie;function br(c){var d=-1,p=c==null?0:c.length;for(this.clear();++d<p;){var C=c[d];this.set(C[0],C[1])}}function nie(){this.__data__=[],this.size=0}function iie(c){var d=this.__data__,p=ng(d,c);if(p<0)return!1;var C=d.length-1;return p==C?d.pop():Qf.call(d,p,1),--this.size,!0}function oie(c){var d=this.__data__,p=ng(d,c);return p<0?n:d[p][1]}function rie(c){return ng(this.__data__,c)>-1}function sie(c,d){var p=this.__data__,C=ng(p,c);return C<0?(++this.size,p.push([c,d])):p[C][1]=d,this}br.prototype.clear=nie,br.prototype.delete=iie,br.prototype.get=oie,br.prototype.has=rie,br.prototype.set=sie;function yr(c){var d=-1,p=c==null?0:c.length;for(this.clear();++d<p;){var C=c[d];this.set(C[0],C[1])}}function aie(){this.size=0,this.__data__={hash:new ya,map:new(Tu||br),string:new ya}}function lie(c){var d=gg(this,c).delete(c);return this.size-=d?1:0,d}function cie(c){return gg(this,c).get(c)}function uie(c){return gg(this,c).has(c)}function die(c,d){var p=gg(this,c),C=p.size;return p.set(c,d),this.size+=p.size==C?0:1,this}yr.prototype.clear=aie,yr.prototype.delete=lie,yr.prototype.get=cie,yr.prototype.has=uie,yr.prototype.set=die;function Sa(c){var d=-1,p=c==null?0:c.length;for(this.__data__=new yr;++d<p;)this.add(c[d])}function hie(c){return this.__data__.set(c,l),this}function fie(c){return this.__data__.has(c)}Sa.prototype.add=Sa.prototype.push=hie,Sa.prototype.has=fie;function po(c){var d=this.__data__=new br(c);this.size=d.size}function gie(){this.__data__=new br,this.size=0}function pie(c){var d=this.__data__,p=d.delete(c);return this.size=d.size,p}function mie(c){return this.__data__.get(c)}function vie(c){return this.__data__.has(c)}function Cie(c,d){var p=this.__data__;if(p instanceof br){var C=p.__data__;if(!Tu||C.length<o-1)return C.push([c,d]),this.size=++p.size,this;p=this.__data__=new yr(C)}return p.set(c,d),this.size=p.size,this}po.prototype.clear=gie,po.prototype.delete=pie,po.prototype.get=mie,po.prototype.has=vie,po.prototype.set=Cie;function BT(c,d){var p=nt(c),C=!p&&Ea(c),x=!p&&!C&&Rs(c),T=!p&&!C&&!x&&_l(c),_=p||C||x||T,G=_?Mw(c.length,Dne):[],$=G.length;for(var re in c)(d||Pt.call(c,re))&&!(_&&(re=="length"||x&&(re=="offset"||re=="parent")||T&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||Fr(re,$)))&&G.push(re);return G}function HT(c){var d=c.length;return d?c[Qw(0,d-1)]:n}function wie(c,d){return pg(ci(c),Ra(d,0,c.length))}function bie(c){return pg(ci(c))}function Hw(c,d,p){(p!==n&&!mo(c[d],p)||p===n&&!(d in c))&&Sr(c,d,p)}function ku(c,d,p){var C=c[d];(!(Pt.call(c,d)&&mo(C,p))||p===n&&!(d in c))&&Sr(c,d,p)}function ng(c,d){for(var p=c.length;p--;)if(mo(c[p][0],d))return p;return-1}function yie(c,d,p,C){return ws(c,function(x,T,_){d(C,x,p(x),_)}),C}function GT(c,d){return c&&Wo(d,yn(d),c)}function Sie(c,d){return c&&Wo(d,di(d),c)}function Sr(c,d,p){d=="__proto__"&&Yf?Yf(c,d,{configurable:!0,enumerable:!0,value:p,writable:!0}):c[d]=p}function Gw(c,d){for(var p=-1,C=d.length,x=Y(C),T=c==null;++p<C;)x[p]=T?n:bb(c,d[p]);return x}function Ra(c,d,p){return c===c&&(p!==n&&(c=c<=p?c:p),d!==n&&(c=c>=d?c:d)),c}function Ki(c,d,p,C,x,T){var _,G=d&f,$=d&g,re=d&m;if(p&&(_=x?p(c,C,x,T):p(c)),_!==n)return _;if(!Kt(c))return c;var ae=nt(c);if(ae){if(_=uoe(c),!G)return ci(c,_)}else{var ue=Gn(c),Ae=ue==O||ue==V;if(Rs(c))return uA(c,G);if(ue==Z||ue==Ee||Ae&&!x){if(_=$||Ae?{}:TA(c),!G)return $?Xie(c,Sie(_,c)):Jie(c,GT(_,c))}else{if(!kt[ue])return x?c:{};_=doe(c,ue,G)}}T||(T=new po);var Be=T.get(c);if(Be)return Be;T.set(c,_),oI(c)?c.forEach(function(Ye){_.add(Ki(Ye,d,p,Ye,c,T))}):nI(c)&&c.forEach(function(Ye,ct){_.set(ct,Ki(Ye,d,p,ct,c,T))});var Qe=re?$?sb:rb:$?di:yn,st=ae?n:Qe(c);return Ui(st||c,function(Ye,ct){st&&(ct=Ye,Ye=c[ct]),ku(_,ct,Ki(Ye,d,p,ct,c,T))}),_}function Rie(c){var d=yn(c);return function(p){return VT(p,c,d)}}function VT(c,d,p){var C=p.length;if(c==null)return!C;for(c=At(c);C--;){var x=p[C],T=d[x],_=c[x];if(_===n&&!(x in c)||!T(_))return!1}return!0}function WT(c,d,p){if(typeof c!="function")throw new $i(s);return Gu(function(){c.apply(n,p)},d)}function Lu(c,d,p,C){var x=-1,T=Hf,_=!0,G=c.length,$=[],re=d.length;if(!G)return $;p&&(d=jt(d,Fi(p))),C?(T=Pw,_=!1):d.length>=o&&(T=Eu,_=!1,d=new Sa(d));e:for(;++x<G;){var ae=c[x],ue=p==null?ae:p(ae);if(ae=C||ae!==0?ae:0,_&&ue===ue){for(var Ae=re;Ae--;)if(d[Ae]===ue)continue e;$.push(ae)}else T(d,ue,C)||$.push(ae)}return $}var ws=pA(Vo),zT=pA(Ww,!0);function xie(c,d){var p=!0;return ws(c,function(C,x,T){return p=!!d(C,x,T),p}),p}function ig(c,d,p){for(var C=-1,x=c.length;++C<x;){var T=c[C],_=d(T);if(_!=null&&(G===n?_===_&&!Ei(_):p(_,G)))var G=_,$=T}return $}function Fie(c,d,p,C){var x=c.length;for(p=ot(p),p<0&&(p=-p>x?0:x+p),C=C===n||C>x?x:ot(C),C<0&&(C+=x),C=p>C?0:sI(C);p<C;)c[p++]=d;return c}function UT(c,d){var p=[];return ws(c,function(C,x,T){d(C,x,T)&&p.push(C)}),p}function In(c,d,p,C,x){var T=-1,_=c.length;for(p||(p=foe),x||(x=[]);++T<_;){var G=c[T];d>0&&p(G)?d>1?In(G,d-1,p,C,x):ms(x,G):C||(x[x.length]=G)}return x}var Vw=mA(),$T=mA(!0);function Vo(c,d){return c&&Vw(c,d,yn)}function Ww(c,d){return c&&$T(c,d,yn)}function og(c,d){return ps(d,function(p){return Pr(c[p])})}function xa(c,d){d=ys(d,c);for(var p=0,C=d.length;c!=null&&p<C;)c=c[zo(d[p++])];return p&&p==C?c:n}function jT(c,d,p){var C=d(c);return nt(c)?C:ms(C,p(c))}function Jn(c){return c==null?c===n?He:te:ba&&ba in At(c)?aoe(c):boe(c)}function zw(c,d){return c>d}function Pie(c,d){return c!=null&&Pt.call(c,d)}function Eie(c,d){return c!=null&&d in At(c)}function Die(c,d,p){return c>=Hn(d,p)&&c<fn(d,p)}function Uw(c,d,p){for(var C=p?Pw:Hf,x=c[0].length,T=c.length,_=T,G=Y(T),$=1/0,re=[];_--;){var ae=c[_];_&&d&&(ae=jt(ae,Fi(d))),$=Hn(ae.length,$),G[_]=!p&&(d||x>=120&&ae.length>=120)?new Sa(_&&ae):n}ae=c[0];var ue=-1,Ae=G[0];e:for(;++ue<x&&re.length<$;){var Be=ae[ue],Qe=d?d(Be):Be;if(Be=p||Be!==0?Be:0,!(Ae?Eu(Ae,Qe):C(re,Qe,p))){for(_=T;--_;){var st=G[_];if(!(st?Eu(st,Qe):C(c[_],Qe,p)))continue e}Ae&&Ae.push(Qe),re.push(Be)}}return re}function Tie(c,d,p,C){return Vo(c,function(x,T,_){d(C,p(x),T,_)}),C}function Ou(c,d,p){d=ys(d,c),c=kA(c,d);var C=c==null?c:c[zo(Qi(d))];return C==null?n:xi(C,c,p)}function KT(c){return Zt(c)&&Jn(c)==Ee}function Aie(c){return Zt(c)&&Jn(c)==rt}function Iie(c){return Zt(c)&&Jn(c)==$e}function _u(c,d,p,C,x){return c===d?!0:c==null||d==null||!Zt(c)&&!Zt(d)?c!==c&&d!==d:Mie(c,d,p,C,_u,x)}function Mie(c,d,p,C,x,T){var _=nt(c),G=nt(d),$=_?Ie:Gn(c),re=G?Ie:Gn(d);$=$==Ee?Z:$,re=re==Ee?Z:re;var ae=$==Z,ue=re==Z,Ae=$==re;if(Ae&&Rs(c)){if(!Rs(d))return!1;_=!0,ae=!1}if(Ae&&!ae)return T||(T=new po),_||_l(c)?PA(c,d,p,C,x,T):roe(c,d,$,p,C,x,T);if(!(p&v)){var Be=ae&&Pt.call(c,"__wrapped__"),Qe=ue&&Pt.call(d,"__wrapped__");if(Be||Qe){var st=Be?c.value():c,Ye=Qe?d.value():d;return T||(T=new po),x(st,Ye,p,C,T)}}return Ae?(T||(T=new po),soe(c,d,p,C,x,T)):!1}function kie(c){return Zt(c)&&Gn(c)==U}function $w(c,d,p,C){var x=p.length,T=x,_=!C;if(c==null)return!T;for(c=At(c);x--;){var G=p[x];if(_&&G[2]?G[1]!==c[G[0]]:!(G[0]in c))return!1}for(;++x<T;){G=p[x];var $=G[0],re=c[$],ae=G[1];if(_&&G[2]){if(re===n&&!($ in c))return!1}else{var ue=new po;if(C)var Ae=C(re,ae,$,c,d,ue);if(!(Ae===n?_u(ae,re,v|w,C,ue):Ae))return!1}}return!0}function qT(c){if(!Kt(c)||poe(c))return!1;var d=Pr(c)?kne:Rte;return d.test(Pa(c))}function Lie(c){return Zt(c)&&Jn(c)==he}function Oie(c){return Zt(c)&&Gn(c)==ie}function _ie(c){return Zt(c)&&yg(c.length)&&!!Ht[Jn(c)]}function QT(c){return typeof c=="function"?c:c==null?hi:typeof c=="object"?nt(c)?JT(c[0],c[1]):ZT(c):vI(c)}function jw(c){if(!Hu(c))return Hne(c);var d=[];for(var p in At(c))Pt.call(c,p)&&p!="constructor"&&d.push(p);return d}function Nie(c){if(!Kt(c))return woe(c);var d=Hu(c),p=[];for(var C in c)C=="constructor"&&(d||!Pt.call(c,C))||p.push(C);return p}function Kw(c,d){return c<d}function YT(c,d){var p=-1,C=ui(c)?Y(c.length):[];return ws(c,function(x,T,_){C[++p]=d(x,T,_)}),C}function ZT(c){var d=lb(c);return d.length==1&&d[0][2]?IA(d[0][0],d[0][1]):function(p){return p===c||$w(p,c,d)}}function JT(c,d){return ub(c)&&AA(d)?IA(zo(c),d):function(p){var C=bb(p,c);return C===n&&C===d?yb(p,c):_u(d,C,v|w)}}function rg(c,d,p,C,x){c!==d&&Vw(d,function(T,_){if(x||(x=new po),Kt(T))Bie(c,d,_,p,rg,C,x);else{var G=C?C(hb(c,_),T,_+"",c,d,x):n;G===n&&(G=T),Hw(c,_,G)}},di)}function Bie(c,d,p,C,x,T,_){var G=hb(c,p),$=hb(d,p),re=_.get($);if(re){Hw(c,p,re);return}var ae=T?T(G,$,p+"",c,d,_):n,ue=ae===n;if(ue){var Ae=nt($),Be=!Ae&&Rs($),Qe=!Ae&&!Be&&_l($);ae=$,Ae||Be||Qe?nt(G)?ae=G:rn(G)?ae=ci(G):Be?(ue=!1,ae=uA($,!0)):Qe?(ue=!1,ae=dA($,!0)):ae=[]:Vu($)||Ea($)?(ae=G,Ea(G)?ae=aI(G):(!Kt(G)||Pr(G))&&(ae=TA($))):ue=!1}ue&&(_.set($,ae),x(ae,$,C,T,_),_.delete($)),Hw(c,p,ae)}function XT(c,d){var p=c.length;if(p)return d+=d<0?p:0,Fr(d,p)?c[d]:n}function eA(c,d,p){d.length?d=jt(d,function(T){return nt(T)?function(_){return xa(_,T.length===1?T[0]:T)}:T}):d=[hi];var C=-1;d=jt(d,Fi(Ke()));var x=YT(c,function(T,_,G){var $=jt(d,function(re){return re(T)});return{criteria:$,index:++C,value:T}});return dne(x,function(T,_){return Zie(T,_,p)})}function Hie(c,d){return tA(c,d,function(p,C){return yb(c,C)})}function tA(c,d,p){for(var C=-1,x=d.length,T={};++C<x;){var _=d[C],G=xa(c,_);p(G,_)&&Nu(T,ys(_,c),G)}return T}function Gie(c){return function(d){return xa(d,c)}}function qw(c,d,p,C){var x=C?une:Fl,T=-1,_=d.length,G=c;for(c===d&&(d=ci(d)),p&&(G=jt(c,Fi(p)));++T<_;)for(var $=0,re=d[T],ae=p?p(re):re;($=x(G,ae,$,C))>-1;)G!==c&&Qf.call(G,$,1),Qf.call(c,$,1);return c}function nA(c,d){for(var p=c?d.length:0,C=p-1;p--;){var x=d[p];if(p==C||x!==T){var T=x;Fr(x)?Qf.call(c,x,1):Jw(c,x)}}return c}function Qw(c,d){return c+Jf(_T()*(d-c+1))}function Vie(c,d,p,C){for(var x=-1,T=fn(Zf((d-c)/(p||1)),0),_=Y(T);T--;)_[C?T:++x]=c,c+=p;return _}function Yw(c,d){var p="";if(!c||d<1||d>ve)return p;do d%2&&(p+=c),d=Jf(d/2),d&&(c+=c);while(d);return p}function lt(c,d){return fb(MA(c,d,hi),c+"")}function Wie(c){return HT(Nl(c))}function zie(c,d){var p=Nl(c);return pg(p,Ra(d,0,p.length))}function Nu(c,d,p,C){if(!Kt(c))return c;d=ys(d,c);for(var x=-1,T=d.length,_=T-1,G=c;G!=null&&++x<T;){var $=zo(d[x]),re=p;if($==="__proto__"||$==="constructor"||$==="prototype")return c;if(x!=_){var ae=G[$];re=C?C(ae,$,G):n,re===n&&(re=Kt(ae)?ae:Fr(d[x+1])?[]:{})}ku(G,$,re),G=G[$]}return c}var iA=Xf?function(c,d){return Xf.set(c,d),c}:hi,Uie=Yf?function(c,d){return Yf(c,"toString",{configurable:!0,enumerable:!1,value:Rb(d),writable:!0})}:hi;function $ie(c){return pg(Nl(c))}function qi(c,d,p){var C=-1,x=c.length;d<0&&(d=-d>x?0:x+d),p=p>x?x:p,p<0&&(p+=x),x=d>p?0:p-d>>>0,d>>>=0;for(var T=Y(x);++C<x;)T[C]=c[C+d];return T}function jie(c,d){var p;return ws(c,function(C,x,T){return p=d(C,x,T),!p}),!!p}function sg(c,d,p){var C=0,x=c==null?C:c.length;if(typeof d=="number"&&d===d&&x<=j){for(;C<x;){var T=C+x>>>1,_=c[T];_!==null&&!Ei(_)&&(p?_<=d:_<d)?C=T+1:x=T}return x}return Zw(c,d,hi,p)}function Zw(c,d,p,C){var x=0,T=c==null?0:c.length;if(T===0)return 0;d=p(d);for(var _=d!==d,G=d===null,$=Ei(d),re=d===n;x<T;){var ae=Jf((x+T)/2),ue=p(c[ae]),Ae=ue!==n,Be=ue===null,Qe=ue===ue,st=Ei(ue);if(_)var Ye=C||Qe;else re?Ye=Qe&&(C||Ae):G?Ye=Qe&&Ae&&(C||!Be):$?Ye=Qe&&Ae&&!Be&&(C||!st):Be||st?Ye=!1:Ye=C?ue<=d:ue<d;Ye?x=ae+1:T=ae}return Hn(T,Q)}function oA(c,d){for(var p=-1,C=c.length,x=0,T=[];++p<C;){var _=c[p],G=d?d(_):_;if(!p||!mo(G,$)){var $=G;T[x++]=_===0?0:_}}return T}function rA(c){return typeof c=="number"?c:Ei(c)?oe:+c}function Pi(c){if(typeof c=="string")return c;if(nt(c))return jt(c,Pi)+"";if(Ei(c))return NT?NT.call(c):"";var d=c+"";return d=="0"&&1/c==-fe?"-0":d}function bs(c,d,p){var C=-1,x=Hf,T=c.length,_=!0,G=[],$=G;if(p)_=!1,x=Pw;else if(T>=o){var re=d?null:ioe(c);if(re)return Vf(re);_=!1,x=Eu,$=new Sa}else $=d?[]:G;e:for(;++C<T;){var ae=c[C],ue=d?d(ae):ae;if(ae=p||ae!==0?ae:0,_&&ue===ue){for(var Ae=$.length;Ae--;)if($[Ae]===ue)continue e;d&&$.push(ue),G.push(ae)}else x($,ue,p)||($!==G&&$.push(ue),G.push(ae))}return G}function Jw(c,d){d=ys(d,c);var p=-1,C=d.length;if(!C)return!0;for(var x=c==null||typeof c!="object"&&typeof c!="function";++p<C;){var T=d[p];if(typeof T=="string"){if(T==="__proto__"&&!Pt.call(c,"__proto__"))return!1;if(T==="constructor"&&p+1<C&&typeof d[p+1]=="string"&&d[p+1]==="prototype"){if(x&&p===0)continue;return!1}}}var _=kA(c,d);return _==null||delete _[zo(Qi(d))]}function sA(c,d,p,C){return Nu(c,d,p(xa(c,d)),C)}function ag(c,d,p,C){for(var x=c.length,T=C?x:-1;(C?T--:++T<x)&&d(c[T],T,c););return p?qi(c,C?0:T,C?T+1:x):qi(c,C?T+1:0,C?x:T)}function aA(c,d){var p=c;return p instanceof dt&&(p=p.value()),Ew(d,function(C,x){return x.func.apply(x.thisArg,ms([C],x.args))},p)}function Xw(c,d,p){var C=c.length;if(C<2)return C?bs(c[0]):[];for(var x=-1,T=Y(C);++x<C;)for(var _=c[x],G=-1;++G<C;)G!=x&&(T[x]=Lu(T[x]||_,c[G],d,p));return bs(In(T,1),d,p)}function lA(c,d,p){for(var C=-1,x=c.length,T=d.length,_={};++C<x;){var G=C<T?d[C]:n;p(_,c[C],G)}return _}function eb(c){return rn(c)?c:[]}function tb(c){return typeof c=="function"?c:hi}function ys(c,d){return nt(c)?c:ub(c,d)?[c]:NA(Et(c))}var Kie=lt;function Ss(c,d,p){var C=c.length;return p=p===n?C:p,!d&&p>=C?c:qi(c,d,p)}var cA=Lne||function(c){return An.clearTimeout(c)};function uA(c,d){if(d)return c.slice();var p=c.length,C=IT?IT(p):new c.constructor(p);return c.copy(C),C}function nb(c){var d=new c.constructor(c.byteLength);return new Kf(d).set(new Kf(c)),d}function qie(c,d){var p=d?nb(c.buffer):c.buffer;return new c.constructor(p,c.byteOffset,c.byteLength)}function Qie(c){var d=new c.constructor(c.source,KD.exec(c));return d.lastIndex=c.lastIndex,d}function Yie(c){return Mu?At(Mu.call(c)):{}}function dA(c,d){var p=d?nb(c.buffer):c.buffer;return new c.constructor(p,c.byteOffset,c.length)}function hA(c,d){if(c!==d){var p=c!==n,C=c===null,x=c===c,T=Ei(c),_=d!==n,G=d===null,$=d===d,re=Ei(d);if(!G&&!re&&!T&&c>d||T&&_&&$&&!G&&!re||C&&_&&$||!p&&$||!x)return 1;if(!C&&!T&&!re&&c<d||re&&p&&x&&!C&&!T||G&&p&&x||!_&&x||!$)return-1}return 0}function Zie(c,d,p){for(var C=-1,x=c.criteria,T=d.criteria,_=x.length,G=p.length;++C<_;){var $=hA(x[C],T[C]);if($){if(C>=G)return $;var re=p[C];return $*(re=="desc"?-1:1)}}return c.index-d.index}function fA(c,d,p,C){for(var x=-1,T=c.length,_=p.length,G=-1,$=d.length,re=fn(T-_,0),ae=Y($+re),ue=!C;++G<$;)ae[G]=d[G];for(;++x<_;)(ue||x<T)&&(ae[p[x]]=c[x]);for(;re--;)ae[G++]=c[x++];return ae}function gA(c,d,p,C){for(var x=-1,T=c.length,_=-1,G=p.length,$=-1,re=d.length,ae=fn(T-G,0),ue=Y(ae+re),Ae=!C;++x<ae;)ue[x]=c[x];for(var Be=x;++$<re;)ue[Be+$]=d[$];for(;++_<G;)(Ae||x<T)&&(ue[Be+p[_]]=c[x++]);return ue}function ci(c,d){var p=-1,C=c.length;for(d||(d=Y(C));++p<C;)d[p]=c[p];return d}function Wo(c,d,p,C){var x=!p;p||(p={});for(var T=-1,_=d.length;++T<_;){var G=d[T],$=C?C(p[G],c[G],G,p,c):n;$===n&&($=c[G]),x?Sr(p,G,$):ku(p,G,$)}return p}function Jie(c,d){return Wo(c,cb(c),d)}function Xie(c,d){return Wo(c,EA(c),d)}function lg(c,d){return function(p,C){var x=nt(p)?one:yie,T=d?d():{};return x(p,c,Ke(C,2),T)}}function kl(c){return lt(function(d,p){var C=-1,x=p.length,T=x>1?p[x-1]:n,_=x>2?p[2]:n;for(T=c.length>3&&typeof T=="function"?(x--,T):n,_&&Xn(p[0],p[1],_)&&(T=x<3?n:T,x=1),d=At(d);++C<x;){var G=p[C];G&&c(d,G,C,T)}return d})}function pA(c,d){return function(p,C){if(p==null)return p;if(!ui(p))return c(p,C);for(var x=p.length,T=d?x:-1,_=At(p);(d?T--:++T<x)&&C(_[T],T,_)!==!1;);return p}}function mA(c){return function(d,p,C){for(var x=-1,T=At(d),_=C(d),G=_.length;G--;){var $=_[c?G:++x];if(p(T[$],$,T)===!1)break}return d}}function eoe(c,d,p){var C=d&b,x=Bu(c);function T(){var _=this&&this!==An&&this instanceof T?x:c;return _.apply(C?p:this,arguments)}return T}function vA(c){return function(d){d=Et(d);var p=Pl(d)?go(d):n,C=p?p[0]:d.charAt(0),x=p?Ss(p,1).join(""):d.slice(1);return C[c]()+x}}function Ll(c){return function(d){return Ew(pI(gI(d).replace(Ute,"")),c,"")}}function Bu(c){return function(){var d=arguments;switch(d.length){case 0:return new c;case 1:return new c(d[0]);case 2:return new c(d[0],d[1]);case 3:return new c(d[0],d[1],d[2]);case 4:return new c(d[0],d[1],d[2],d[3]);case 5:return new c(d[0],d[1],d[2],d[3],d[4]);case 6:return new c(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new c(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var p=Ml(c.prototype),C=c.apply(p,d);return Kt(C)?C:p}}function toe(c,d,p){var C=Bu(c);function x(){for(var T=arguments.length,_=Y(T),G=T,$=Ol(x);G--;)_[G]=arguments[G];var re=T<3&&_[0]!==$&&_[T-1]!==$?[]:vs(_,$);if(T-=re.length,T<p)return SA(c,d,cg,x.placeholder,n,_,re,n,n,p-T);var ae=this&&this!==An&&this instanceof x?C:c;return xi(ae,this,_)}return x}function CA(c){return function(d,p,C){var x=At(d);if(!ui(d)){var T=Ke(p,3);d=yn(d),p=function(G){return T(x[G],G,x)}}var _=c(d,p,C);return _>-1?x[T?d[_]:_]:n}}function wA(c){return xr(function(d){var p=d.length,C=p,x=ji.prototype.thru;for(c&&d.reverse();C--;){var T=d[C];if(typeof T!="function")throw new $i(s);if(x&&!_&&fg(T)=="wrapper")var _=new ji([],!0)}for(C=_?C:p;++C<p;){T=d[C];var G=fg(T),$=G=="wrapper"?ab(T):n;$&&db($[0])&&$[1]==(k|S|F|L)&&!$[4].length&&$[9]==1?_=_[fg($[0])].apply(_,$[3]):_=T.length==1&&db(T)?_[G]():_.thru(T)}return function(){var re=arguments,ae=re[0];if(_&&re.length==1&&nt(ae))return _.plant(ae).value();for(var ue=0,Ae=p?d[ue].apply(this,re):ae;++ue<p;)Ae=d[ue].call(this,Ae);return Ae}})}function cg(c,d,p,C,x,T,_,G,$,re){var ae=d&k,ue=d&b,Ae=d&y,Be=d&(S|P),Qe=d&N,st=Ae?n:Bu(c);function Ye(){for(var ct=arguments.length,ht=Y(ct),Di=ct;Di--;)ht[Di]=arguments[Di];if(Be)var ei=Ol(Ye),Ti=fne(ht,ei);if(C&&(ht=fA(ht,C,x,Be)),T&&(ht=gA(ht,T,_,Be)),ct-=Ti,Be&&ct<re){var sn=vs(ht,ei);return SA(c,d,cg,Ye.placeholder,p,ht,sn,G,$,re-ct)}var vo=ue?p:this,Dr=Ae?vo[c]:c;return ct=ht.length,G?ht=yoe(ht,G):Qe&&ct>1&&ht.reverse(),ae&&$<ct&&(ht.length=$),this&&this!==An&&this instanceof Ye&&(Dr=st||Bu(Dr)),Dr.apply(vo,ht)}return Ye}function bA(c,d){return function(p,C){return Tie(p,c,d(C),{})}}function ug(c,d){return function(p,C){var x;if(p===n&&C===n)return d;if(p!==n&&(x=p),C!==n){if(x===n)return C;typeof p=="string"||typeof C=="string"?(p=Pi(p),C=Pi(C)):(p=rA(p),C=rA(C)),x=c(p,C)}return x}}function ib(c){return xr(function(d){return d=jt(d,Fi(Ke())),lt(function(p){var C=this;return c(d,function(x){return xi(x,C,p)})})})}function dg(c,d){d=d===n?" ":Pi(d);var p=d.length;if(p<2)return p?Yw(d,c):d;var C=Yw(d,Zf(c/El(d)));return Pl(d)?Ss(go(C),0,c).join(""):C.slice(0,c)}function noe(c,d,p,C){var x=d&b,T=Bu(c);function _(){for(var G=-1,$=arguments.length,re=-1,ae=C.length,ue=Y(ae+$),Ae=this&&this!==An&&this instanceof _?T:c;++re<ae;)ue[re]=C[re];for(;$--;)ue[re++]=arguments[++G];return xi(Ae,x?p:this,ue)}return _}function yA(c){return function(d,p,C){return C&&typeof C!="number"&&Xn(d,p,C)&&(p=C=n),d=Er(d),p===n?(p=d,d=0):p=Er(p),C=C===n?d<p?1:-1:Er(C),Vie(d,p,C,c)}}function hg(c){return function(d,p){return typeof d=="string"&&typeof p=="string"||(d=Yi(d),p=Yi(p)),c(d,p)}}function SA(c,d,p,C,x,T,_,G,$,re){var ae=d&S,ue=ae?_:n,Ae=ae?n:_,Be=ae?T:n,Qe=ae?n:T;d|=ae?F:A,d&=~(ae?A:F),d&R||(d&=-4);var st=[c,d,x,Be,ue,Qe,Ae,G,$,re],Ye=p.apply(n,st);return db(c)&&LA(Ye,st),Ye.placeholder=C,OA(Ye,c,d)}function ob(c){var d=hn[c];return function(p,C){if(p=Yi(p),C=C==null?0:Hn(ot(C),292),C&&OT(p)){var x=(Et(p)+"e").split("e"),T=d(x[0]+"e"+(+x[1]+C));return x=(Et(T)+"e").split("e"),+(x[0]+"e"+(+x[1]-C))}return d(p)}}var ioe=Al&&1/Vf(new Al([,-0]))[1]==fe?function(c){return new Al(c)}:Pb;function RA(c){return function(d){var p=Gn(d);return p==U?Lw(d):p==ie?bne(d):hne(d,c(d))}}function Rr(c,d,p,C,x,T,_,G){var $=d&y;if(!$&&typeof c!="function")throw new $i(s);var re=C?C.length:0;if(re||(d&=-97,C=x=n),_=_===n?_:fn(ot(_),0),G=G===n?G:ot(G),re-=x?x.length:0,d&A){var ae=C,ue=x;C=x=n}var Ae=$?n:ab(c),Be=[c,d,p,C,x,ae,ue,T,_,G];if(Ae&&Coe(Be,Ae),c=Be[0],d=Be[1],p=Be[2],C=Be[3],x=Be[4],G=Be[9]=Be[9]===n?$?0:c.length:fn(Be[9]-re,0),!G&&d&(S|P)&&(d&=-25),!d||d==b)var Qe=eoe(c,d,p);else d==S||d==P?Qe=toe(c,d,G):(d==F||d==(b|F))&&!x.length?Qe=noe(c,d,p,C):Qe=cg.apply(n,Be);var st=Ae?iA:LA;return OA(st(Qe,Be),c,d)}function xA(c,d,p,C){return c===n||mo(c,Tl[p])&&!Pt.call(C,p)?d:c}function FA(c,d,p,C,x,T){return Kt(c)&&Kt(d)&&(T.set(d,c),rg(c,d,n,FA,T),T.delete(d)),c}function ooe(c){return Vu(c)?n:c}function PA(c,d,p,C,x,T){var _=p&v,G=c.length,$=d.length;if(G!=$&&!(_&&$>G))return!1;var re=T.get(c),ae=T.get(d);if(re&&ae)return re==d&&ae==c;var ue=-1,Ae=!0,Be=p&w?new Sa:n;for(T.set(c,d),T.set(d,c);++ue<G;){var Qe=c[ue],st=d[ue];if(C)var Ye=_?C(st,Qe,ue,d,c,T):C(Qe,st,ue,c,d,T);if(Ye!==n){if(Ye)continue;Ae=!1;break}if(Be){if(!Dw(d,function(ct,ht){if(!Eu(Be,ht)&&(Qe===ct||x(Qe,ct,p,C,T)))return Be.push(ht)})){Ae=!1;break}}else if(!(Qe===st||x(Qe,st,p,C,T))){Ae=!1;break}}return T.delete(c),T.delete(d),Ae}function roe(c,d,p,C,x,T,_){switch(p){case it:if(c.byteLength!=d.byteLength||c.byteOffset!=d.byteOffset)return!1;c=c.buffer,d=d.buffer;case rt:return!(c.byteLength!=d.byteLength||!T(new Kf(c),new Kf(d)));case Le:case $e:case ne:return mo(+c,+d);case yt:return c.name==d.name&&c.message==d.message;case he:case ke:return c==d+"";case U:var G=Lw;case ie:var $=C&v;if(G||(G=Vf),c.size!=d.size&&!$)return!1;var re=_.get(c);if(re)return re==d;C|=w,_.set(c,d);var ae=PA(G(c),G(d),C,x,T,_);return _.delete(c),ae;case Te:if(Mu)return Mu.call(c)==Mu.call(d)}return!1}function soe(c,d,p,C,x,T){var _=p&v,G=rb(c),$=G.length,re=rb(d),ae=re.length;if($!=ae&&!_)return!1;for(var ue=$;ue--;){var Ae=G[ue];if(!(_?Ae in d:Pt.call(d,Ae)))return!1}var Be=T.get(c),Qe=T.get(d);if(Be&&Qe)return Be==d&&Qe==c;var st=!0;T.set(c,d),T.set(d,c);for(var Ye=_;++ue<$;){Ae=G[ue];var ct=c[Ae],ht=d[Ae];if(C)var Di=_?C(ht,ct,Ae,d,c,T):C(ct,ht,Ae,c,d,T);if(!(Di===n?ct===ht||x(ct,ht,p,C,T):Di)){st=!1;break}Ye||(Ye=Ae=="constructor")}if(st&&!Ye){var ei=c.constructor,Ti=d.constructor;ei!=Ti&&"constructor"in c&&"constructor"in d&&!(typeof ei=="function"&&ei instanceof ei&&typeof Ti=="function"&&Ti instanceof Ti)&&(st=!1)}return T.delete(c),T.delete(d),st}function xr(c){return fb(MA(c,n,VA),c+"")}function rb(c){return jT(c,yn,cb)}function sb(c){return jT(c,di,EA)}var ab=Xf?function(c){return Xf.get(c)}:Pb;function fg(c){for(var d=c.name+"",p=Il[d],C=Pt.call(Il,d)?p.length:0;C--;){var x=p[C],T=x.func;if(T==null||T==c)return x.name}return d}function Ol(c){var d=Pt.call(D,"placeholder")?D:c;return d.placeholder}function Ke(){var c=D.iteratee||xb;return c=c===xb?QT:c,arguments.length?c(arguments[0],arguments[1]):c}function gg(c,d){var p=c.__data__;return goe(d)?p[typeof d=="string"?"string":"hash"]:p.map}function lb(c){for(var d=yn(c),p=d.length;p--;){var C=d[p],x=c[C];d[p]=[C,x,AA(x)]}return d}function Fa(c,d){var p=vne(c,d);return qT(p)?p:n}function aoe(c){var d=Pt.call(c,ba),p=c[ba];try{c[ba]=n;var C=!0}catch{}var x=$f.call(c);return C&&(d?c[ba]=p:delete c[ba]),x}var cb=_w?function(c){return c==null?[]:(c=At(c),ps(_w(c),function(d){return kT.call(c,d)}))}:Eb,EA=_w?function(c){for(var d=[];c;)ms(d,cb(c)),c=qf(c);return d}:Eb,Gn=Jn;(Nw&&Gn(new Nw(new ArrayBuffer(1)))!=it||Tu&&Gn(new Tu)!=U||Bw&&Gn(Bw.resolve())!=Se||Al&&Gn(new Al)!=ie||Au&&Gn(new Au)!=ze)&&(Gn=function(c){var d=Jn(c),p=d==Z?c.constructor:n,C=p?Pa(p):"";if(C)switch(C){case zne:return it;case Une:return U;case $ne:return Se;case jne:return ie;case Kne:return ze}return d});function loe(c,d,p){for(var C=-1,x=p.length;++C<x;){var T=p[C],_=T.size;switch(T.type){case"drop":c+=_;break;case"dropRight":d-=_;break;case"take":d=Hn(d,c+_);break;case"takeRight":c=fn(c,d-_);break}}return{start:c,end:d}}function coe(c){var d=c.match(pte);return d?d[1].split(mte):[]}function DA(c,d,p){d=ys(d,c);for(var C=-1,x=d.length,T=!1;++C<x;){var _=zo(d[C]);if(!(T=c!=null&&p(c,_)))break;c=c[_]}return T||++C!=x?T:(x=c==null?0:c.length,!!x&&yg(x)&&Fr(_,x)&&(nt(c)||Ea(c)))}function uoe(c){var d=c.length,p=new c.constructor(d);return d&&typeof c[0]=="string"&&Pt.call(c,"index")&&(p.index=c.index,p.input=c.input),p}function TA(c){return typeof c.constructor=="function"&&!Hu(c)?Ml(qf(c)):{}}function doe(c,d,p){var C=c.constructor;switch(d){case rt:return nb(c);case Le:case $e:return new C(+c);case it:return qie(c,p);case Ut:case $t:case Yt:case wn:case Si:case Go:case nn:case bn:case wr:return dA(c,p);case U:return new C;case ne:case ke:return new C(c);case he:return Qie(c);case ie:return new C;case Te:return Yie(c)}}function hoe(c,d){var p=d.length;if(!p)return c;var C=p-1;return d[C]=(p>1?"& ":"")+d[C],d=d.join(p>2?", ":" "),c.replace(Ca,`{
648
- /* [wrapped with `+d+`] */
649
- `)}function foe(c){return nt(c)||Ea(c)||!!(LT&&c&&c[LT])}function Fr(c,d){var p=typeof c;return d=d??ve,!!d&&(p=="number"||p!="symbol"&&Fte.test(c))&&c>-1&&c%1==0&&c<d}function Xn(c,d,p){if(!Kt(p))return!1;var C=typeof d;return(C=="number"?ui(p)&&Fr(d,p.length):C=="string"&&d in p)?mo(p[d],c):!1}function ub(c,d){if(nt(c))return!1;var p=typeof c;return p=="number"||p=="symbol"||p=="boolean"||c==null||Ei(c)?!0:je.test(c)||!Ne.test(c)||d!=null&&c in At(d)}function goe(c){var d=typeof c;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?c!=="__proto__":c===null}function db(c){var d=fg(c),p=D[d];if(typeof p!="function"||!(d in dt.prototype))return!1;if(c===p)return!0;var C=ab(p);return!!C&&c===C[0]}function poe(c){return!!AT&&AT in c}var moe=zf?Pr:Db;function Hu(c){var d=c&&c.constructor,p=typeof d=="function"&&d.prototype||Tl;return c===p}function AA(c){return c===c&&!Kt(c)}function IA(c,d){return function(p){return p==null?!1:p[c]===d&&(d!==n||c in At(p))}}function voe(c){var d=wg(c,function(C){return p.size===u&&p.clear(),C}),p=d.cache;return d}function Coe(c,d){var p=c[1],C=d[1],x=p|C,T=x<(b|y|k),_=C==k&&p==S||C==k&&p==L&&c[7].length<=d[8]||C==(k|L)&&d[7].length<=d[8]&&p==S;if(!(T||_))return c;C&b&&(c[2]=d[2],x|=p&b?0:R);var G=d[3];if(G){var $=c[3];c[3]=$?fA($,G,d[4]):G,c[4]=$?vs(c[3],h):d[4]}return G=d[5],G&&($=c[5],c[5]=$?gA($,G,d[6]):G,c[6]=$?vs(c[5],h):d[6]),G=d[7],G&&(c[7]=G),C&k&&(c[8]=c[8]==null?d[8]:Hn(c[8],d[8])),c[9]==null&&(c[9]=d[9]),c[0]=d[0],c[1]=x,c}function woe(c){var d=[];if(c!=null)for(var p in At(c))d.push(p);return d}function boe(c){return $f.call(c)}function MA(c,d,p){return d=fn(d===n?c.length-1:d,0),function(){for(var C=arguments,x=-1,T=fn(C.length-d,0),_=Y(T);++x<T;)_[x]=C[d+x];x=-1;for(var G=Y(d+1);++x<d;)G[x]=C[x];return G[d]=p(_),xi(c,this,G)}}function kA(c,d){return d.length<2?c:xa(c,qi(d,0,-1))}function yoe(c,d){for(var p=c.length,C=Hn(d.length,p),x=ci(c);C--;){var T=d[C];c[C]=Fr(T,p)?x[T]:n}return c}function hb(c,d){if(!(d==="constructor"&&typeof c[d]=="function")&&d!="__proto__")return c[d]}var LA=_A(iA),Gu=_ne||function(c,d){return An.setTimeout(c,d)},fb=_A(Uie);function OA(c,d,p){var C=d+"";return fb(c,hoe(C,Soe(coe(C),p)))}function _A(c){var d=0,p=0;return function(){var C=Gne(),x=B-(C-p);if(p=C,x>0){if(++d>=I)return arguments[0]}else d=0;return c.apply(n,arguments)}}function pg(c,d){var p=-1,C=c.length,x=C-1;for(d=d===n?C:d;++p<d;){var T=Qw(p,x),_=c[T];c[T]=c[p],c[p]=_}return c.length=d,c}var NA=voe(function(c){var d=[];return c.charCodeAt(0)===46&&d.push(""),c.replace(Tn,function(p,C,x,T){d.push(x?T.replace(wte,"$1"):C||p)}),d});function zo(c){if(typeof c=="string"||Ei(c))return c;var d=c+"";return d=="0"&&1/c==-fe?"-0":d}function Pa(c){if(c!=null){try{return Uf.call(c)}catch{}try{return c+""}catch{}}return""}function Soe(c,d){return Ui(ce,function(p){var C="_."+p[0];d&p[1]&&!Hf(c,C)&&c.push(C)}),c.sort()}function BA(c){if(c instanceof dt)return c.clone();var d=new ji(c.__wrapped__,c.__chain__);return d.__actions__=ci(c.__actions__),d.__index__=c.__index__,d.__values__=c.__values__,d}function Roe(c,d,p){(p?Xn(c,d,p):d===n)?d=1:d=fn(ot(d),0);var C=c==null?0:c.length;if(!C||d<1)return[];for(var x=0,T=0,_=Y(Zf(C/d));x<C;)_[T++]=qi(c,x,x+=d);return _}function xoe(c){for(var d=-1,p=c==null?0:c.length,C=0,x=[];++d<p;){var T=c[d];T&&(x[C++]=T)}return x}function Foe(){var c=arguments.length;if(!c)return[];for(var d=Y(c-1),p=arguments[0],C=c;C--;)d[C-1]=arguments[C];return ms(nt(p)?ci(p):[p],In(d,1))}var Poe=lt(function(c,d){return rn(c)?Lu(c,In(d,1,rn,!0)):[]}),Eoe=lt(function(c,d){var p=Qi(d);return rn(p)&&(p=n),rn(c)?Lu(c,In(d,1,rn,!0),Ke(p,2)):[]}),Doe=lt(function(c,d){var p=Qi(d);return rn(p)&&(p=n),rn(c)?Lu(c,In(d,1,rn,!0),n,p):[]});function Toe(c,d,p){var C=c==null?0:c.length;return C?(d=p||d===n?1:ot(d),qi(c,d<0?0:d,C)):[]}function Aoe(c,d,p){var C=c==null?0:c.length;return C?(d=p||d===n?1:ot(d),d=C-d,qi(c,0,d<0?0:d)):[]}function Ioe(c,d){return c&&c.length?ag(c,Ke(d,3),!0,!0):[]}function Moe(c,d){return c&&c.length?ag(c,Ke(d,3),!0):[]}function koe(c,d,p,C){var x=c==null?0:c.length;return x?(p&&typeof p!="number"&&Xn(c,d,p)&&(p=0,C=x),Fie(c,d,p,C)):[]}function HA(c,d,p){var C=c==null?0:c.length;if(!C)return-1;var x=p==null?0:ot(p);return x<0&&(x=fn(C+x,0)),Gf(c,Ke(d,3),x)}function GA(c,d,p){var C=c==null?0:c.length;if(!C)return-1;var x=C-1;return p!==n&&(x=ot(p),x=p<0?fn(C+x,0):Hn(x,C-1)),Gf(c,Ke(d,3),x,!0)}function VA(c){var d=c==null?0:c.length;return d?In(c,1):[]}function Loe(c){var d=c==null?0:c.length;return d?In(c,fe):[]}function Ooe(c,d){var p=c==null?0:c.length;return p?(d=d===n?1:ot(d),In(c,d)):[]}function _oe(c){for(var d=-1,p=c==null?0:c.length,C={};++d<p;){var x=c[d];C[x[0]]=x[1]}return C}function WA(c){return c&&c.length?c[0]:n}function Noe(c,d,p){var C=c==null?0:c.length;if(!C)return-1;var x=p==null?0:ot(p);return x<0&&(x=fn(C+x,0)),Fl(c,d,x)}function Boe(c){var d=c==null?0:c.length;return d?qi(c,0,-1):[]}var Hoe=lt(function(c){var d=jt(c,eb);return d.length&&d[0]===c[0]?Uw(d):[]}),Goe=lt(function(c){var d=Qi(c),p=jt(c,eb);return d===Qi(p)?d=n:p.pop(),p.length&&p[0]===c[0]?Uw(p,Ke(d,2)):[]}),Voe=lt(function(c){var d=Qi(c),p=jt(c,eb);return d=typeof d=="function"?d:n,d&&p.pop(),p.length&&p[0]===c[0]?Uw(p,n,d):[]});function Woe(c,d){return c==null?"":Bne.call(c,d)}function Qi(c){var d=c==null?0:c.length;return d?c[d-1]:n}function zoe(c,d,p){var C=c==null?0:c.length;if(!C)return-1;var x=C;return p!==n&&(x=ot(p),x=x<0?fn(C+x,0):Hn(x,C-1)),d===d?Sne(c,d,x):Gf(c,ST,x,!0)}function Uoe(c,d){return c&&c.length?XT(c,ot(d)):n}var $oe=lt(zA);function zA(c,d){return c&&c.length&&d&&d.length?qw(c,d):c}function joe(c,d,p){return c&&c.length&&d&&d.length?qw(c,d,Ke(p,2)):c}function Koe(c,d,p){return c&&c.length&&d&&d.length?qw(c,d,n,p):c}var qoe=xr(function(c,d){var p=c==null?0:c.length,C=Gw(c,d);return nA(c,jt(d,function(x){return Fr(x,p)?+x:x}).sort(hA)),C});function Qoe(c,d){var p=[];if(!(c&&c.length))return p;var C=-1,x=[],T=c.length;for(d=Ke(d,3);++C<T;){var _=c[C];d(_,C,c)&&(p.push(_),x.push(C))}return nA(c,x),p}function gb(c){return c==null?c:Wne.call(c)}function Yoe(c,d,p){var C=c==null?0:c.length;return C?(p&&typeof p!="number"&&Xn(c,d,p)?(d=0,p=C):(d=d==null?0:ot(d),p=p===n?C:ot(p)),qi(c,d,p)):[]}function Zoe(c,d){return sg(c,d)}function Joe(c,d,p){return Zw(c,d,Ke(p,2))}function Xoe(c,d){var p=c==null?0:c.length;if(p){var C=sg(c,d);if(C<p&&mo(c[C],d))return C}return-1}function ere(c,d){return sg(c,d,!0)}function tre(c,d,p){return Zw(c,d,Ke(p,2),!0)}function nre(c,d){var p=c==null?0:c.length;if(p){var C=sg(c,d,!0)-1;if(mo(c[C],d))return C}return-1}function ire(c){return c&&c.length?oA(c):[]}function ore(c,d){return c&&c.length?oA(c,Ke(d,2)):[]}function rre(c){var d=c==null?0:c.length;return d?qi(c,1,d):[]}function sre(c,d,p){return c&&c.length?(d=p||d===n?1:ot(d),qi(c,0,d<0?0:d)):[]}function are(c,d,p){var C=c==null?0:c.length;return C?(d=p||d===n?1:ot(d),d=C-d,qi(c,d<0?0:d,C)):[]}function lre(c,d){return c&&c.length?ag(c,Ke(d,3),!1,!0):[]}function cre(c,d){return c&&c.length?ag(c,Ke(d,3)):[]}var ure=lt(function(c){return bs(In(c,1,rn,!0))}),dre=lt(function(c){var d=Qi(c);return rn(d)&&(d=n),bs(In(c,1,rn,!0),Ke(d,2))}),hre=lt(function(c){var d=Qi(c);return d=typeof d=="function"?d:n,bs(In(c,1,rn,!0),n,d)});function fre(c){return c&&c.length?bs(c):[]}function gre(c,d){return c&&c.length?bs(c,Ke(d,2)):[]}function pre(c,d){return d=typeof d=="function"?d:n,c&&c.length?bs(c,n,d):[]}function pb(c){if(!(c&&c.length))return[];var d=0;return c=ps(c,function(p){if(rn(p))return d=fn(p.length,d),!0}),Mw(d,function(p){return jt(c,Tw(p))})}function UA(c,d){if(!(c&&c.length))return[];var p=pb(c);return d==null?p:jt(p,function(C){return xi(d,n,C)})}var mre=lt(function(c,d){return rn(c)?Lu(c,d):[]}),vre=lt(function(c){return Xw(ps(c,rn))}),Cre=lt(function(c){var d=Qi(c);return rn(d)&&(d=n),Xw(ps(c,rn),Ke(d,2))}),wre=lt(function(c){var d=Qi(c);return d=typeof d=="function"?d:n,Xw(ps(c,rn),n,d)}),bre=lt(pb);function yre(c,d){return lA(c||[],d||[],ku)}function Sre(c,d){return lA(c||[],d||[],Nu)}var Rre=lt(function(c){var d=c.length,p=d>1?c[d-1]:n;return p=typeof p=="function"?(c.pop(),p):n,UA(c,p)});function $A(c){var d=D(c);return d.__chain__=!0,d}function xre(c,d){return d(c),c}function mg(c,d){return d(c)}var Fre=xr(function(c){var d=c.length,p=d?c[0]:0,C=this.__wrapped__,x=function(T){return Gw(T,c)};return d>1||this.__actions__.length||!(C instanceof dt)||!Fr(p)?this.thru(x):(C=C.slice(p,+p+(d?1:0)),C.__actions__.push({func:mg,args:[x],thisArg:n}),new ji(C,this.__chain__).thru(function(T){return d&&!T.length&&T.push(n),T}))});function Pre(){return $A(this)}function Ere(){return new ji(this.value(),this.__chain__)}function Dre(){this.__values__===n&&(this.__values__=rI(this.value()));var c=this.__index__>=this.__values__.length,d=c?n:this.__values__[this.__index__++];return{done:c,value:d}}function Tre(){return this}function Are(c){for(var d,p=this;p instanceof tg;){var C=BA(p);C.__index__=0,C.__values__=n,d?x.__wrapped__=C:d=C;var x=C;p=p.__wrapped__}return x.__wrapped__=c,d}function Ire(){var c=this.__wrapped__;if(c instanceof dt){var d=c;return this.__actions__.length&&(d=new dt(this)),d=d.reverse(),d.__actions__.push({func:mg,args:[gb],thisArg:n}),new ji(d,this.__chain__)}return this.thru(gb)}function Mre(){return aA(this.__wrapped__,this.__actions__)}var kre=lg(function(c,d,p){Pt.call(c,p)?++c[p]:Sr(c,p,1)});function Lre(c,d,p){var C=nt(c)?bT:xie;return p&&Xn(c,d,p)&&(d=n),C(c,Ke(d,3))}function Ore(c,d){var p=nt(c)?ps:UT;return p(c,Ke(d,3))}var _re=CA(HA),Nre=CA(GA);function Bre(c,d){return In(vg(c,d),1)}function Hre(c,d){return In(vg(c,d),fe)}function Gre(c,d,p){return p=p===n?1:ot(p),In(vg(c,d),p)}function jA(c,d){var p=nt(c)?Ui:ws;return p(c,Ke(d,3))}function KA(c,d){var p=nt(c)?rne:zT;return p(c,Ke(d,3))}var Vre=lg(function(c,d,p){Pt.call(c,p)?c[p].push(d):Sr(c,p,[d])});function Wre(c,d,p,C){c=ui(c)?c:Nl(c),p=p&&!C?ot(p):0;var x=c.length;return p<0&&(p=fn(x+p,0)),Sg(c)?p<=x&&c.indexOf(d,p)>-1:!!x&&Fl(c,d,p)>-1}var zre=lt(function(c,d,p){var C=-1,x=typeof d=="function",T=ui(c)?Y(c.length):[];return ws(c,function(_){T[++C]=x?xi(d,_,p):Ou(_,d,p)}),T}),Ure=lg(function(c,d,p){Sr(c,p,d)});function vg(c,d){var p=nt(c)?jt:YT;return p(c,Ke(d,3))}function $re(c,d,p,C){return c==null?[]:(nt(d)||(d=d==null?[]:[d]),p=C?n:p,nt(p)||(p=p==null?[]:[p]),eA(c,d,p))}var jre=lg(function(c,d,p){c[p?0:1].push(d)},function(){return[[],[]]});function Kre(c,d,p){var C=nt(c)?Ew:xT,x=arguments.length<3;return C(c,Ke(d,4),p,x,ws)}function qre(c,d,p){var C=nt(c)?sne:xT,x=arguments.length<3;return C(c,Ke(d,4),p,x,zT)}function Qre(c,d){var p=nt(c)?ps:UT;return p(c,bg(Ke(d,3)))}function Yre(c){var d=nt(c)?HT:Wie;return d(c)}function Zre(c,d,p){(p?Xn(c,d,p):d===n)?d=1:d=ot(d);var C=nt(c)?wie:zie;return C(c,d)}function Jre(c){var d=nt(c)?bie:$ie;return d(c)}function Xre(c){if(c==null)return 0;if(ui(c))return Sg(c)?El(c):c.length;var d=Gn(c);return d==U||d==ie?c.size:jw(c).length}function ese(c,d,p){var C=nt(c)?Dw:jie;return p&&Xn(c,d,p)&&(d=n),C(c,Ke(d,3))}var tse=lt(function(c,d){if(c==null)return[];var p=d.length;return p>1&&Xn(c,d[0],d[1])?d=[]:p>2&&Xn(d[0],d[1],d[2])&&(d=[d[0]]),eA(c,In(d,1),[])}),Cg=One||function(){return An.Date.now()};function nse(c,d){if(typeof d!="function")throw new $i(s);return c=ot(c),function(){if(--c<1)return d.apply(this,arguments)}}function qA(c,d,p){return d=p?n:d,d=c&&d==null?c.length:d,Rr(c,k,n,n,n,n,d)}function QA(c,d){var p;if(typeof d!="function")throw new $i(s);return c=ot(c),function(){return--c>0&&(p=d.apply(this,arguments)),c<=1&&(d=n),p}}var mb=lt(function(c,d,p){var C=b;if(p.length){var x=vs(p,Ol(mb));C|=F}return Rr(c,C,d,p,x)}),YA=lt(function(c,d,p){var C=b|y;if(p.length){var x=vs(p,Ol(YA));C|=F}return Rr(d,C,c,p,x)});function ZA(c,d,p){d=p?n:d;var C=Rr(c,S,n,n,n,n,n,d);return C.placeholder=ZA.placeholder,C}function JA(c,d,p){d=p?n:d;var C=Rr(c,P,n,n,n,n,n,d);return C.placeholder=JA.placeholder,C}function XA(c,d,p){var C,x,T,_,G,$,re=0,ae=!1,ue=!1,Ae=!0;if(typeof c!="function")throw new $i(s);d=Yi(d)||0,Kt(p)&&(ae=!!p.leading,ue="maxWait"in p,T=ue?fn(Yi(p.maxWait)||0,d):T,Ae="trailing"in p?!!p.trailing:Ae);function Be(sn){var vo=C,Dr=x;return C=x=n,re=sn,_=c.apply(Dr,vo),_}function Qe(sn){return re=sn,G=Gu(ct,d),ae?Be(sn):_}function st(sn){var vo=sn-$,Dr=sn-re,CI=d-vo;return ue?Hn(CI,T-Dr):CI}function Ye(sn){var vo=sn-$,Dr=sn-re;return $===n||vo>=d||vo<0||ue&&Dr>=T}function ct(){var sn=Cg();if(Ye(sn))return ht(sn);G=Gu(ct,st(sn))}function ht(sn){return G=n,Ae&&C?Be(sn):(C=x=n,_)}function Di(){G!==n&&cA(G),re=0,C=$=x=G=n}function ei(){return G===n?_:ht(Cg())}function Ti(){var sn=Cg(),vo=Ye(sn);if(C=arguments,x=this,$=sn,vo){if(G===n)return Qe($);if(ue)return cA(G),G=Gu(ct,d),Be($)}return G===n&&(G=Gu(ct,d)),_}return Ti.cancel=Di,Ti.flush=ei,Ti}var ise=lt(function(c,d){return WT(c,1,d)}),ose=lt(function(c,d,p){return WT(c,Yi(d)||0,p)});function rse(c){return Rr(c,N)}function wg(c,d){if(typeof c!="function"||d!=null&&typeof d!="function")throw new $i(s);var p=function(){var C=arguments,x=d?d.apply(this,C):C[0],T=p.cache;if(T.has(x))return T.get(x);var _=c.apply(this,C);return p.cache=T.set(x,_)||T,_};return p.cache=new(wg.Cache||yr),p}wg.Cache=yr;function bg(c){if(typeof c!="function")throw new $i(s);return function(){var d=arguments;switch(d.length){case 0:return!c.call(this);case 1:return!c.call(this,d[0]);case 2:return!c.call(this,d[0],d[1]);case 3:return!c.call(this,d[0],d[1],d[2])}return!c.apply(this,d)}}function sse(c){return QA(2,c)}var ase=Kie(function(c,d){d=d.length==1&&nt(d[0])?jt(d[0],Fi(Ke())):jt(In(d,1),Fi(Ke()));var p=d.length;return lt(function(C){for(var x=-1,T=Hn(C.length,p);++x<T;)C[x]=d[x].call(this,C[x]);return xi(c,this,C)})}),vb=lt(function(c,d){var p=vs(d,Ol(vb));return Rr(c,F,n,d,p)}),eI=lt(function(c,d){var p=vs(d,Ol(eI));return Rr(c,A,n,d,p)}),lse=xr(function(c,d){return Rr(c,L,n,n,n,d)});function cse(c,d){if(typeof c!="function")throw new $i(s);return d=d===n?d:ot(d),lt(c,d)}function use(c,d){if(typeof c!="function")throw new $i(s);return d=d==null?0:fn(ot(d),0),lt(function(p){var C=p[d],x=Ss(p,0,d);return C&&ms(x,C),xi(c,this,x)})}function dse(c,d,p){var C=!0,x=!0;if(typeof c!="function")throw new $i(s);return Kt(p)&&(C="leading"in p?!!p.leading:C,x="trailing"in p?!!p.trailing:x),XA(c,d,{leading:C,maxWait:d,trailing:x})}function hse(c){return qA(c,1)}function fse(c,d){return vb(tb(d),c)}function gse(){if(!arguments.length)return[];var c=arguments[0];return nt(c)?c:[c]}function pse(c){return Ki(c,m)}function mse(c,d){return d=typeof d=="function"?d:n,Ki(c,m,d)}function vse(c){return Ki(c,f|m)}function Cse(c,d){return d=typeof d=="function"?d:n,Ki(c,f|m,d)}function wse(c,d){return d==null||VT(c,d,yn(d))}function mo(c,d){return c===d||c!==c&&d!==d}var bse=hg(zw),yse=hg(function(c,d){return c>=d}),Ea=KT((function(){return arguments})())?KT:function(c){return Zt(c)&&Pt.call(c,"callee")&&!kT.call(c,"callee")},nt=Y.isArray,Sse=gT?Fi(gT):Aie;function ui(c){return c!=null&&yg(c.length)&&!Pr(c)}function rn(c){return Zt(c)&&ui(c)}function Rse(c){return c===!0||c===!1||Zt(c)&&Jn(c)==Le}var Rs=Nne||Db,xse=pT?Fi(pT):Iie;function Fse(c){return Zt(c)&&c.nodeType===1&&!Vu(c)}function Pse(c){if(c==null)return!0;if(ui(c)&&(nt(c)||typeof c=="string"||typeof c.splice=="function"||Rs(c)||_l(c)||Ea(c)))return!c.length;var d=Gn(c);if(d==U||d==ie)return!c.size;if(Hu(c))return!jw(c).length;for(var p in c)if(Pt.call(c,p))return!1;return!0}function Ese(c,d){return _u(c,d)}function Dse(c,d,p){p=typeof p=="function"?p:n;var C=p?p(c,d):n;return C===n?_u(c,d,n,p):!!C}function Cb(c){if(!Zt(c))return!1;var d=Jn(c);return d==yt||d==Ve||typeof c.message=="string"&&typeof c.name=="string"&&!Vu(c)}function Tse(c){return typeof c=="number"&&OT(c)}function Pr(c){if(!Kt(c))return!1;var d=Jn(c);return d==O||d==V||d==Fe||d==Ce}function tI(c){return typeof c=="number"&&c==ot(c)}function yg(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=ve}function Kt(c){var d=typeof c;return c!=null&&(d=="object"||d=="function")}function Zt(c){return c!=null&&typeof c=="object"}var nI=mT?Fi(mT):kie;function Ase(c,d){return c===d||$w(c,d,lb(d))}function Ise(c,d,p){return p=typeof p=="function"?p:n,$w(c,d,lb(d),p)}function Mse(c){return iI(c)&&c!=+c}function kse(c){if(moe(c))throw new et(r);return qT(c)}function Lse(c){return c===null}function Ose(c){return c==null}function iI(c){return typeof c=="number"||Zt(c)&&Jn(c)==ne}function Vu(c){if(!Zt(c)||Jn(c)!=Z)return!1;var d=qf(c);if(d===null)return!0;var p=Pt.call(d,"constructor")&&d.constructor;return typeof p=="function"&&p instanceof p&&Uf.call(p)==Ine}var wb=vT?Fi(vT):Lie;function _se(c){return tI(c)&&c>=-ve&&c<=ve}var oI=CT?Fi(CT):Oie;function Sg(c){return typeof c=="string"||!nt(c)&&Zt(c)&&Jn(c)==ke}function Ei(c){return typeof c=="symbol"||Zt(c)&&Jn(c)==Te}var _l=wT?Fi(wT):_ie;function Nse(c){return c===n}function Bse(c){return Zt(c)&&Gn(c)==ze}function Hse(c){return Zt(c)&&Jn(c)==Xe}var Gse=hg(Kw),Vse=hg(function(c,d){return c<=d});function rI(c){if(!c)return[];if(ui(c))return Sg(c)?go(c):ci(c);if(Du&&c[Du])return wne(c[Du]());var d=Gn(c),p=d==U?Lw:d==ie?Vf:Nl;return p(c)}function Er(c){if(!c)return c===0?c:0;if(c=Yi(c),c===fe||c===-fe){var d=c<0?-1:1;return d*De}return c===c?c:0}function ot(c){var d=Er(c),p=d%1;return d===d?p?d-p:d:0}function sI(c){return c?Ra(ot(c),0,H):0}function Yi(c){if(typeof c=="number")return c;if(Ei(c))return oe;if(Kt(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=Kt(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=FT(c);var p=Ste.test(c);return p||xte.test(c)?nne(c.slice(2),p?2:8):yte.test(c)?oe:+c}function aI(c){return Wo(c,di(c))}function Wse(c){return c?Ra(ot(c),-ve,ve):c===0?c:0}function Et(c){return c==null?"":Pi(c)}var zse=kl(function(c,d){if(Hu(d)||ui(d)){Wo(d,yn(d),c);return}for(var p in d)Pt.call(d,p)&&ku(c,p,d[p])}),lI=kl(function(c,d){Wo(d,di(d),c)}),Rg=kl(function(c,d,p,C){Wo(d,di(d),c,C)}),Use=kl(function(c,d,p,C){Wo(d,yn(d),c,C)}),$se=xr(Gw);function jse(c,d){var p=Ml(c);return d==null?p:GT(p,d)}var Kse=lt(function(c,d){c=At(c);var p=-1,C=d.length,x=C>2?d[2]:n;for(x&&Xn(d[0],d[1],x)&&(C=1);++p<C;)for(var T=d[p],_=di(T),G=-1,$=_.length;++G<$;){var re=_[G],ae=c[re];(ae===n||mo(ae,Tl[re])&&!Pt.call(c,re))&&(c[re]=T[re])}return c}),qse=lt(function(c){return c.push(n,FA),xi(cI,n,c)});function Qse(c,d){return yT(c,Ke(d,3),Vo)}function Yse(c,d){return yT(c,Ke(d,3),Ww)}function Zse(c,d){return c==null?c:Vw(c,Ke(d,3),di)}function Jse(c,d){return c==null?c:$T(c,Ke(d,3),di)}function Xse(c,d){return c&&Vo(c,Ke(d,3))}function eae(c,d){return c&&Ww(c,Ke(d,3))}function tae(c){return c==null?[]:og(c,yn(c))}function nae(c){return c==null?[]:og(c,di(c))}function bb(c,d,p){var C=c==null?n:xa(c,d);return C===n?p:C}function iae(c,d){return c!=null&&DA(c,d,Pie)}function yb(c,d){return c!=null&&DA(c,d,Eie)}var oae=bA(function(c,d,p){d!=null&&typeof d.toString!="function"&&(d=$f.call(d)),c[d]=p},Rb(hi)),rae=bA(function(c,d,p){d!=null&&typeof d.toString!="function"&&(d=$f.call(d)),Pt.call(c,d)?c[d].push(p):c[d]=[p]},Ke),sae=lt(Ou);function yn(c){return ui(c)?BT(c):jw(c)}function di(c){return ui(c)?BT(c,!0):Nie(c)}function aae(c,d){var p={};return d=Ke(d,3),Vo(c,function(C,x,T){Sr(p,d(C,x,T),C)}),p}function lae(c,d){var p={};return d=Ke(d,3),Vo(c,function(C,x,T){Sr(p,x,d(C,x,T))}),p}var cae=kl(function(c,d,p){rg(c,d,p)}),cI=kl(function(c,d,p,C){rg(c,d,p,C)}),uae=xr(function(c,d){var p={};if(c==null)return p;var C=!1;d=jt(d,function(T){return T=ys(T,c),C||(C=T.length>1),T}),Wo(c,sb(c),p),C&&(p=Ki(p,f|g|m,ooe));for(var x=d.length;x--;)Jw(p,d[x]);return p});function dae(c,d){return uI(c,bg(Ke(d)))}var hae=xr(function(c,d){return c==null?{}:Hie(c,d)});function uI(c,d){if(c==null)return{};var p=jt(sb(c),function(C){return[C]});return d=Ke(d),tA(c,p,function(C,x){return d(C,x[0])})}function fae(c,d,p){d=ys(d,c);var C=-1,x=d.length;for(x||(x=1,c=n);++C<x;){var T=c==null?n:c[zo(d[C])];T===n&&(C=x,T=p),c=Pr(T)?T.call(c):T}return c}function gae(c,d,p){return c==null?c:Nu(c,d,p)}function pae(c,d,p,C){return C=typeof C=="function"?C:n,c==null?c:Nu(c,d,p,C)}var dI=RA(yn),hI=RA(di);function mae(c,d,p){var C=nt(c),x=C||Rs(c)||_l(c);if(d=Ke(d,4),p==null){var T=c&&c.constructor;x?p=C?new T:[]:Kt(c)?p=Pr(T)?Ml(qf(c)):{}:p={}}return(x?Ui:Vo)(c,function(_,G,$){return d(p,_,G,$)}),p}function vae(c,d){return c==null?!0:Jw(c,d)}function Cae(c,d,p){return c==null?c:sA(c,d,tb(p))}function wae(c,d,p,C){return C=typeof C=="function"?C:n,c==null?c:sA(c,d,tb(p),C)}function Nl(c){return c==null?[]:kw(c,yn(c))}function bae(c){return c==null?[]:kw(c,di(c))}function yae(c,d,p){return p===n&&(p=d,d=n),p!==n&&(p=Yi(p),p=p===p?p:0),d!==n&&(d=Yi(d),d=d===d?d:0),Ra(Yi(c),d,p)}function Sae(c,d,p){return d=Er(d),p===n?(p=d,d=0):p=Er(p),c=Yi(c),Die(c,d,p)}function Rae(c,d,p){if(p&&typeof p!="boolean"&&Xn(c,d,p)&&(d=p=n),p===n&&(typeof d=="boolean"?(p=d,d=n):typeof c=="boolean"&&(p=c,c=n)),c===n&&d===n?(c=0,d=1):(c=Er(c),d===n?(d=c,c=0):d=Er(d)),c>d){var C=c;c=d,d=C}if(p||c%1||d%1){var x=_T();return Hn(c+x*(d-c+tne("1e-"+((x+"").length-1))),d)}return Qw(c,d)}var xae=Ll(function(c,d,p){return d=d.toLowerCase(),c+(p?fI(d):d)});function fI(c){return Sb(Et(c).toLowerCase())}function gI(c){return c=Et(c),c&&c.replace(Pte,gne).replace($te,"")}function Fae(c,d,p){c=Et(c),d=Pi(d);var C=c.length;p=p===n?C:Ra(ot(p),0,C);var x=p;return p-=d.length,p>=0&&c.slice(p,x)==d}function Pae(c){return c=Et(c),c&&Cw.test(c)?c.replace(Of,pne):c}function Eae(c){return c=Et(c),c&&Mt.test(c)?c.replace(Ri,"\\$&"):c}var Dae=Ll(function(c,d,p){return c+(p?"-":"")+d.toLowerCase()}),Tae=Ll(function(c,d,p){return c+(p?" ":"")+d.toLowerCase()}),Aae=vA("toLowerCase");function Iae(c,d,p){c=Et(c),d=ot(d);var C=d?El(c):0;if(!d||C>=d)return c;var x=(d-C)/2;return dg(Jf(x),p)+c+dg(Zf(x),p)}function Mae(c,d,p){c=Et(c),d=ot(d);var C=d?El(c):0;return d&&C<d?c+dg(d-C,p):c}function kae(c,d,p){c=Et(c),d=ot(d);var C=d?El(c):0;return d&&C<d?dg(d-C,p)+c:c}function Lae(c,d,p){return p||d==null?d=0:d&&(d=+d),Vne(Et(c).replace(on,""),d||0)}function Oae(c,d,p){return(p?Xn(c,d,p):d===n)?d=1:d=ot(d),Yw(Et(c),d)}function _ae(){var c=arguments,d=Et(c[0]);return c.length<3?d:d.replace(c[1],c[2])}var Nae=Ll(function(c,d,p){return c+(p?"_":"")+d.toLowerCase()});function Bae(c,d,p){return p&&typeof p!="number"&&Xn(c,d,p)&&(d=p=n),p=p===n?H:p>>>0,p?(c=Et(c),c&&(typeof d=="string"||d!=null&&!wb(d))&&(d=Pi(d),!d&&Pl(c))?Ss(go(c),0,p):c.split(d,p)):[]}var Hae=Ll(function(c,d,p){return c+(p?" ":"")+Sb(d)});function Gae(c,d,p){return c=Et(c),p=p==null?0:Ra(ot(p),0,c.length),d=Pi(d),c.slice(p,p+d.length)==d}function Vae(c,d,p){var C=D.templateSettings;p&&Xn(c,d,p)&&(d=n),c=Et(c),d=Rg({},d,C,xA);var x=Rg({},d.imports,C.imports,xA),T=yn(x),_=kw(x,T),G,$,re=0,ae=d.interpolate||_f,ue="__p += '",Ae=Ow((d.escape||_f).source+"|"+ae.source+"|"+(ae===at?bte:_f).source+"|"+(d.evaluate||_f).source+"|$","g"),Be="//# sourceURL="+(Pt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yte+"]")+`
650
- `;c.replace(Ae,function(Ye,ct,ht,Di,ei,Ti){return ht||(ht=Di),ue+=c.slice(re,Ti).replace(Ete,mne),ct&&(G=!0,ue+=`' +
651
- __e(`+ct+`) +
652
- '`),ei&&($=!0,ue+=`';
653
- `+ei+`;
654
- __p += '`),ht&&(ue+=`' +
655
- ((__t = (`+ht+`)) == null ? '' : __t) +
656
- '`),re=Ti+Ye.length,Ye}),ue+=`';
657
- `;var Qe=Pt.call(d,"variable")&&d.variable;if(!Qe)ue=`with (obj) {
658
- `+ue+`
659
- }
660
- `;else if(Cte.test(Qe))throw new et(a);ue=($?ue.replace(Dn,""):ue).replace(pw,"$1").replace(mw,"$1;"),ue="function("+(Qe||"obj")+`) {
661
- `+(Qe?"":`obj || (obj = {});
662
- `)+"var __t, __p = ''"+(G?", __e = _.escape":"")+($?`, __j = Array.prototype.join;
663
- function print() { __p += __j.call(arguments, '') }
664
- `:`;
665
- `)+ue+`return __p
666
- }`;var st=mI(function(){return Rt(T,Be+"return "+ue).apply(n,_)});if(st.source=ue,Cb(st))throw st;return st}function Wae(c){return Et(c).toLowerCase()}function zae(c){return Et(c).toUpperCase()}function Uae(c,d,p){if(c=Et(c),c&&(p||d===n))return FT(c);if(!c||!(d=Pi(d)))return c;var C=go(c),x=go(d),T=PT(C,x),_=ET(C,x)+1;return Ss(C,T,_).join("")}function $ae(c,d,p){if(c=Et(c),c&&(p||d===n))return c.slice(0,TT(c)+1);if(!c||!(d=Pi(d)))return c;var C=go(c),x=ET(C,go(d))+1;return Ss(C,0,x).join("")}function jae(c,d,p){if(c=Et(c),c&&(p||d===n))return c.replace(on,"");if(!c||!(d=Pi(d)))return c;var C=go(c),x=PT(C,go(d));return Ss(C,x).join("")}function Kae(c,d){var p=M,C=E;if(Kt(d)){var x="separator"in d?d.separator:x;p="length"in d?ot(d.length):p,C="omission"in d?Pi(d.omission):C}c=Et(c);var T=c.length;if(Pl(c)){var _=go(c);T=_.length}if(p>=T)return c;var G=p-El(C);if(G<1)return C;var $=_?Ss(_,0,G).join(""):c.slice(0,G);if(x===n)return $+C;if(_&&(G+=$.length-G),wb(x)){if(c.slice(G).search(x)){var re,ae=$;for(x.global||(x=Ow(x.source,Et(KD.exec(x))+"g")),x.lastIndex=0;re=x.exec(ae);)var ue=re.index;$=$.slice(0,ue===n?G:ue)}}else if(c.indexOf(Pi(x),G)!=G){var Ae=$.lastIndexOf(x);Ae>-1&&($=$.slice(0,Ae))}return $+C}function qae(c){return c=Et(c),c&&vw.test(c)?c.replace(Lf,Rne):c}var Qae=Ll(function(c,d,p){return c+(p?" ":"")+d.toUpperCase()}),Sb=vA("toUpperCase");function pI(c,d,p){return c=Et(c),d=p?n:d,d===n?Cne(c)?Pne(c):cne(c):c.match(d)||[]}var mI=lt(function(c,d){try{return xi(c,n,d)}catch(p){return Cb(p)?p:new et(p)}}),Yae=xr(function(c,d){return Ui(d,function(p){p=zo(p),Sr(c,p,mb(c[p],c))}),c});function Zae(c){var d=c==null?0:c.length,p=Ke();return c=d?jt(c,function(C){if(typeof C[1]!="function")throw new $i(s);return[p(C[0]),C[1]]}):[],lt(function(C){for(var x=-1;++x<d;){var T=c[x];if(xi(T[0],this,C))return xi(T[1],this,C)}})}function Jae(c){return Rie(Ki(c,f))}function Rb(c){return function(){return c}}function Xae(c,d){return c==null||c!==c?d:c}var ele=wA(),tle=wA(!0);function hi(c){return c}function xb(c){return QT(typeof c=="function"?c:Ki(c,f))}function nle(c){return ZT(Ki(c,f))}function ile(c,d){return JT(c,Ki(d,f))}var ole=lt(function(c,d){return function(p){return Ou(p,c,d)}}),rle=lt(function(c,d){return function(p){return Ou(c,p,d)}});function Fb(c,d,p){var C=yn(d),x=og(d,C);p==null&&!(Kt(d)&&(x.length||!C.length))&&(p=d,d=c,c=this,x=og(d,yn(d)));var T=!(Kt(p)&&"chain"in p)||!!p.chain,_=Pr(c);return Ui(x,function(G){var $=d[G];c[G]=$,_&&(c.prototype[G]=function(){var re=this.__chain__;if(T||re){var ae=c(this.__wrapped__),ue=ae.__actions__=ci(this.__actions__);return ue.push({func:$,args:arguments,thisArg:c}),ae.__chain__=re,ae}return $.apply(c,ms([this.value()],arguments))})}),c}function sle(){return An._===this&&(An._=Mne),this}function Pb(){}function ale(c){return c=ot(c),lt(function(d){return XT(d,c)})}var lle=ib(jt),cle=ib(bT),ule=ib(Dw);function vI(c){return ub(c)?Tw(zo(c)):Gie(c)}function dle(c){return function(d){return c==null?n:xa(c,d)}}var hle=yA(),fle=yA(!0);function Eb(){return[]}function Db(){return!1}function gle(){return{}}function ple(){return""}function mle(){return!0}function vle(c,d){if(c=ot(c),c<1||c>ve)return[];var p=H,C=Hn(c,H);d=Ke(d),c-=H;for(var x=Mw(C,d);++p<c;)d(p);return x}function Cle(c){return nt(c)?jt(c,zo):Ei(c)?[c]:ci(NA(Et(c)))}function wle(c){var d=++Ane;return Et(c)+d}var ble=ug(function(c,d){return c+d},0),yle=ob("ceil"),Sle=ug(function(c,d){return c/d},1),Rle=ob("floor");function xle(c){return c&&c.length?ig(c,hi,zw):n}function Fle(c,d){return c&&c.length?ig(c,Ke(d,2),zw):n}function Ple(c){return RT(c,hi)}function Ele(c,d){return RT(c,Ke(d,2))}function Dle(c){return c&&c.length?ig(c,hi,Kw):n}function Tle(c,d){return c&&c.length?ig(c,Ke(d,2),Kw):n}var Ale=ug(function(c,d){return c*d},1),Ile=ob("round"),Mle=ug(function(c,d){return c-d},0);function kle(c){return c&&c.length?Iw(c,hi):0}function Lle(c,d){return c&&c.length?Iw(c,Ke(d,2)):0}return D.after=nse,D.ary=qA,D.assign=zse,D.assignIn=lI,D.assignInWith=Rg,D.assignWith=Use,D.at=$se,D.before=QA,D.bind=mb,D.bindAll=Yae,D.bindKey=YA,D.castArray=gse,D.chain=$A,D.chunk=Roe,D.compact=xoe,D.concat=Foe,D.cond=Zae,D.conforms=Jae,D.constant=Rb,D.countBy=kre,D.create=jse,D.curry=ZA,D.curryRight=JA,D.debounce=XA,D.defaults=Kse,D.defaultsDeep=qse,D.defer=ise,D.delay=ose,D.difference=Poe,D.differenceBy=Eoe,D.differenceWith=Doe,D.drop=Toe,D.dropRight=Aoe,D.dropRightWhile=Ioe,D.dropWhile=Moe,D.fill=koe,D.filter=Ore,D.flatMap=Bre,D.flatMapDeep=Hre,D.flatMapDepth=Gre,D.flatten=VA,D.flattenDeep=Loe,D.flattenDepth=Ooe,D.flip=rse,D.flow=ele,D.flowRight=tle,D.fromPairs=_oe,D.functions=tae,D.functionsIn=nae,D.groupBy=Vre,D.initial=Boe,D.intersection=Hoe,D.intersectionBy=Goe,D.intersectionWith=Voe,D.invert=oae,D.invertBy=rae,D.invokeMap=zre,D.iteratee=xb,D.keyBy=Ure,D.keys=yn,D.keysIn=di,D.map=vg,D.mapKeys=aae,D.mapValues=lae,D.matches=nle,D.matchesProperty=ile,D.memoize=wg,D.merge=cae,D.mergeWith=cI,D.method=ole,D.methodOf=rle,D.mixin=Fb,D.negate=bg,D.nthArg=ale,D.omit=uae,D.omitBy=dae,D.once=sse,D.orderBy=$re,D.over=lle,D.overArgs=ase,D.overEvery=cle,D.overSome=ule,D.partial=vb,D.partialRight=eI,D.partition=jre,D.pick=hae,D.pickBy=uI,D.property=vI,D.propertyOf=dle,D.pull=$oe,D.pullAll=zA,D.pullAllBy=joe,D.pullAllWith=Koe,D.pullAt=qoe,D.range=hle,D.rangeRight=fle,D.rearg=lse,D.reject=Qre,D.remove=Qoe,D.rest=cse,D.reverse=gb,D.sampleSize=Zre,D.set=gae,D.setWith=pae,D.shuffle=Jre,D.slice=Yoe,D.sortBy=tse,D.sortedUniq=ire,D.sortedUniqBy=ore,D.split=Bae,D.spread=use,D.tail=rre,D.take=sre,D.takeRight=are,D.takeRightWhile=lre,D.takeWhile=cre,D.tap=xre,D.throttle=dse,D.thru=mg,D.toArray=rI,D.toPairs=dI,D.toPairsIn=hI,D.toPath=Cle,D.toPlainObject=aI,D.transform=mae,D.unary=hse,D.union=ure,D.unionBy=dre,D.unionWith=hre,D.uniq=fre,D.uniqBy=gre,D.uniqWith=pre,D.unset=vae,D.unzip=pb,D.unzipWith=UA,D.update=Cae,D.updateWith=wae,D.values=Nl,D.valuesIn=bae,D.without=mre,D.words=pI,D.wrap=fse,D.xor=vre,D.xorBy=Cre,D.xorWith=wre,D.zip=bre,D.zipObject=yre,D.zipObjectDeep=Sre,D.zipWith=Rre,D.entries=dI,D.entriesIn=hI,D.extend=lI,D.extendWith=Rg,Fb(D,D),D.add=ble,D.attempt=mI,D.camelCase=xae,D.capitalize=fI,D.ceil=yle,D.clamp=yae,D.clone=pse,D.cloneDeep=vse,D.cloneDeepWith=Cse,D.cloneWith=mse,D.conformsTo=wse,D.deburr=gI,D.defaultTo=Xae,D.divide=Sle,D.endsWith=Fae,D.eq=mo,D.escape=Pae,D.escapeRegExp=Eae,D.every=Lre,D.find=_re,D.findIndex=HA,D.findKey=Qse,D.findLast=Nre,D.findLastIndex=GA,D.findLastKey=Yse,D.floor=Rle,D.forEach=jA,D.forEachRight=KA,D.forIn=Zse,D.forInRight=Jse,D.forOwn=Xse,D.forOwnRight=eae,D.get=bb,D.gt=bse,D.gte=yse,D.has=iae,D.hasIn=yb,D.head=WA,D.identity=hi,D.includes=Wre,D.indexOf=Noe,D.inRange=Sae,D.invoke=sae,D.isArguments=Ea,D.isArray=nt,D.isArrayBuffer=Sse,D.isArrayLike=ui,D.isArrayLikeObject=rn,D.isBoolean=Rse,D.isBuffer=Rs,D.isDate=xse,D.isElement=Fse,D.isEmpty=Pse,D.isEqual=Ese,D.isEqualWith=Dse,D.isError=Cb,D.isFinite=Tse,D.isFunction=Pr,D.isInteger=tI,D.isLength=yg,D.isMap=nI,D.isMatch=Ase,D.isMatchWith=Ise,D.isNaN=Mse,D.isNative=kse,D.isNil=Ose,D.isNull=Lse,D.isNumber=iI,D.isObject=Kt,D.isObjectLike=Zt,D.isPlainObject=Vu,D.isRegExp=wb,D.isSafeInteger=_se,D.isSet=oI,D.isString=Sg,D.isSymbol=Ei,D.isTypedArray=_l,D.isUndefined=Nse,D.isWeakMap=Bse,D.isWeakSet=Hse,D.join=Woe,D.kebabCase=Dae,D.last=Qi,D.lastIndexOf=zoe,D.lowerCase=Tae,D.lowerFirst=Aae,D.lt=Gse,D.lte=Vse,D.max=xle,D.maxBy=Fle,D.mean=Ple,D.meanBy=Ele,D.min=Dle,D.minBy=Tle,D.stubArray=Eb,D.stubFalse=Db,D.stubObject=gle,D.stubString=ple,D.stubTrue=mle,D.multiply=Ale,D.nth=Uoe,D.noConflict=sle,D.noop=Pb,D.now=Cg,D.pad=Iae,D.padEnd=Mae,D.padStart=kae,D.parseInt=Lae,D.random=Rae,D.reduce=Kre,D.reduceRight=qre,D.repeat=Oae,D.replace=_ae,D.result=fae,D.round=Ile,D.runInContext=z,D.sample=Yre,D.size=Xre,D.snakeCase=Nae,D.some=ese,D.sortedIndex=Zoe,D.sortedIndexBy=Joe,D.sortedIndexOf=Xoe,D.sortedLastIndex=ere,D.sortedLastIndexBy=tre,D.sortedLastIndexOf=nre,D.startCase=Hae,D.startsWith=Gae,D.subtract=Mle,D.sum=kle,D.sumBy=Lle,D.template=Vae,D.times=vle,D.toFinite=Er,D.toInteger=ot,D.toLength=sI,D.toLower=Wae,D.toNumber=Yi,D.toSafeInteger=Wse,D.toString=Et,D.toUpper=zae,D.trim=Uae,D.trimEnd=$ae,D.trimStart=jae,D.truncate=Kae,D.unescape=qae,D.uniqueId=wle,D.upperCase=Qae,D.upperFirst=Sb,D.each=jA,D.eachRight=KA,D.first=WA,Fb(D,(function(){var c={};return Vo(D,function(d,p){Pt.call(D.prototype,p)||(c[p]=d)}),c})(),{chain:!1}),D.VERSION=i,Ui(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){D[c].placeholder=D}),Ui(["drop","take"],function(c,d){dt.prototype[c]=function(p){p=p===n?1:fn(ot(p),0);var C=this.__filtered__&&!d?new dt(this):this.clone();return C.__filtered__?C.__takeCount__=Hn(p,C.__takeCount__):C.__views__.push({size:Hn(p,H),type:c+(C.__dir__<0?"Right":"")}),C},dt.prototype[c+"Right"]=function(p){return this.reverse()[c](p).reverse()}}),Ui(["filter","map","takeWhile"],function(c,d){var p=d+1,C=p==W||p==me;dt.prototype[c]=function(x){var T=this.clone();return T.__iteratees__.push({iteratee:Ke(x,3),type:p}),T.__filtered__=T.__filtered__||C,T}}),Ui(["head","last"],function(c,d){var p="take"+(d?"Right":"");dt.prototype[c]=function(){return this[p](1).value()[0]}}),Ui(["initial","tail"],function(c,d){var p="drop"+(d?"":"Right");dt.prototype[c]=function(){return this.__filtered__?new dt(this):this[p](1)}}),dt.prototype.compact=function(){return this.filter(hi)},dt.prototype.find=function(c){return this.filter(c).head()},dt.prototype.findLast=function(c){return this.reverse().find(c)},dt.prototype.invokeMap=lt(function(c,d){return typeof c=="function"?new dt(this):this.map(function(p){return Ou(p,c,d)})}),dt.prototype.reject=function(c){return this.filter(bg(Ke(c)))},dt.prototype.slice=function(c,d){c=ot(c);var p=this;return p.__filtered__&&(c>0||d<0)?new dt(p):(c<0?p=p.takeRight(-c):c&&(p=p.drop(c)),d!==n&&(d=ot(d),p=d<0?p.dropRight(-d):p.take(d-c)),p)},dt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},dt.prototype.toArray=function(){return this.take(H)},Vo(dt.prototype,function(c,d){var p=/^(?:filter|find|map|reject)|While$/.test(d),C=/^(?:head|last)$/.test(d),x=D[C?"take"+(d=="last"?"Right":""):d],T=C||/^find/.test(d);x&&(D.prototype[d]=function(){var _=this.__wrapped__,G=C?[1]:arguments,$=_ instanceof dt,re=G[0],ae=$||nt(_),ue=function(ct){var ht=x.apply(D,ms([ct],G));return C&&Ae?ht[0]:ht};ae&&p&&typeof re=="function"&&re.length!=1&&($=ae=!1);var Ae=this.__chain__,Be=!!this.__actions__.length,Qe=T&&!Ae,st=$&&!Be;if(!T&&ae){_=st?_:new dt(this);var Ye=c.apply(_,G);return Ye.__actions__.push({func:mg,args:[ue],thisArg:n}),new ji(Ye,Ae)}return Qe&&st?c.apply(this,G):(Ye=this.thru(ue),Qe?C?Ye.value()[0]:Ye.value():Ye)})}),Ui(["pop","push","shift","sort","splice","unshift"],function(c){var d=Wf[c],p=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",C=/^(?:pop|shift)$/.test(c);D.prototype[c]=function(){var x=arguments;if(C&&!this.__chain__){var T=this.value();return d.apply(nt(T)?T:[],x)}return this[p](function(_){return d.apply(nt(_)?_:[],x)})}}),Vo(dt.prototype,function(c,d){var p=D[d];if(p){var C=p.name+"";Pt.call(Il,C)||(Il[C]=[]),Il[C].push({name:d,func:p})}}),Il[cg(n,y).name]=[{name:"wrapper",func:n}],dt.prototype.clone=qne,dt.prototype.reverse=Qne,dt.prototype.value=Yne,D.prototype.at=Fre,D.prototype.chain=Pre,D.prototype.commit=Ere,D.prototype.next=Dre,D.prototype.plant=Are,D.prototype.reverse=Ire,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=Mre,D.prototype.first=D.prototype.head,Du&&(D.prototype[Du]=Tre),D}),Dl=Ene();wa?((wa.exports=Dl)._=Dl,xw._=Dl):An._=Dl}).call(xY)})(Su,Su.exports)),Su.exports}var PY=FY();const xe=nw(PY),Nt={conjunction:0,query:[]},iw={sources:Nt,contributor:Nt,employer:Nt,employeeStatus:Nt,occupation:Nt,address:Nt,state:Nt,zipCode:Nt,date:Nt,dateDetected:Nt,amount:Nt,recipient:Nt,status:Nt,reconciliationStatus:Nt,preclearance:Nt,approvalDate:Nt,approvalAmount:Nt,amended:Nt,jurisdiction:Nt,lastUpdated:Nt,lastUpdatedBy:Nt,notes:Nt,tags:Nt,groups:Nt},EY={"contribution-search":xe.cloneDeep(iw),"detected-contributions":xe.cloneDeep(iw)},pD=fa({name:"ContributionSearch",initialState:EY,reducers:{resetSearchBody:(e,t)=>({...e,[t.payload.page]:{...xe.cloneDeep(iw)}}),resetSearchBodyFilterGroup:(e,t)=>({...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:xe.cloneDeep(Nt)}}),pruneSearchBodyFilterGroups:(e,t)=>({...e,[t.payload.page]:xe.entries(e[t.payload.page]).reduce((n,[i,o])=>{const r=o.query.filter(a=>xe.isString(a.value)?!xe.isEmpty(a.value):!xe.isNil(a.value)),s={conjunction:r.length<=1?0:o.conjunction,query:r};return{...n,[i]:s}},{})}),updateSearchBodyFilterGroupConjunction:(e,t)=>({...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:{...e[t.payload.page][t.payload.filterName],conjunction:t.payload.conjunction}}}),addSearchBodyFilterGroupQuery:(e,t)=>{const n=[...e[t.payload.page][t.payload.filterName].query];return n.some(i=>i.id===t.payload.query.id)||n.push(t.payload.query),{...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:{...e[t.payload.page][t.payload.filterName],query:n}}}},updateSearchBodyFilterGroupQueryComparator:(e,t)=>{const n=e[t.payload.page][t.payload.filterName].query.map(i=>i.id!==t.payload.id?i:{...i,comparator:t.payload.comparator});return{...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:{...e[t.payload.page][t.payload.filterName],query:n}}}},updateSearchBodyFitlerGroupQueryValue:(e,t)=>{const n=e[t.payload.page][t.payload.filterName].query.map(i=>i.id!==t.payload.id?i:{...i,value:t.payload.value});return{...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:{...e[t.payload.page][t.payload.filterName],query:n}}}},removeSearchBodyFilterGroupQuery:(e,t)=>({...e,[t.payload.page]:{...e[t.payload.page],[t.payload.filterName]:{...e[t.payload.page][t.payload.filterName],query:e[t.payload.page][t.payload.filterName].query.filter(n=>n.id!==t.payload.id)}}})}}),{addSearchBodyFilterGroupQuery:mD,pruneSearchBodyFilterGroups:Vle,removeSearchBodyFilterGroupQuery:Wle,resetSearchBody:zle,resetSearchBodyFilterGroup:vD,updateSearchBodyFilterGroupConjunction:CD,updateSearchBodyFilterGroupQueryComparator:Ule,updateSearchBodyFitlerGroupQueryValue:$le}=pD.actions,DY={ContributionSearchReducer:pD.reducer},hs=(()=>{const e=[Vi.middleware];return e.push(RY),SQ({reducer:{[Vi.reducerPath]:Vi.reducer,...DY},middleware:t=>t().concat(e)})})(),TY=()=>Mq(),wD=e=>_q(e);function ma(e){const t=yo();let n,i;const o=()=>{i&&(t.value=e.select(i)(hs.getState()))},r=()=>{n?.reset(),n=void 0,i=void 0,t.value=void 0},s=()=>{n?.abort()},a=async l=>{const u=hs.dispatch(e.initiate(l));n=u,i=u.requestId,o();try{const h=await u.unwrap();return o(),h}catch(h){throw o(),h}};return{state:de(()=>t.value),data:de(()=>t.value?.data),error:de(()=>t.value?.error),isUninitialized:de(()=>t.value?.isUninitialized),isLoading:de(()=>t.value?.isLoading),isSuccess:de(()=>t.value?.isSuccess),isError:de(()=>t.value?.isError),status:de(()=>t.value?.status),originalArgs:de(()=>t.value?.originalArgs),trigger:a,abort:s,reset:r}}function Ru(e,t){const n=()=>tM(t),i=yo();let o,r;const s=()=>{r?.unsubscribe(),r=void 0,o?.(),o=void 0},a=l=>{const u=e.select(l),h=()=>{i.value=u(hs.getState())};h(),o=hs.subscribe(h),r=hs.dispatch(e.initiate(l))};return Jt(n,l=>{s(),a(l)},{immediate:!0}),Ds(()=>{s()}),{state:de(()=>i.value),data:de(()=>i.value?.data),error:de(()=>i.value?.error),currentData:de(()=>i.value?.currentData),isUninitialized:de(()=>i.value?.isUninitialized),isLoading:de(()=>i.value?.isLoading),isFetching:de(()=>i.value?.isFetching),isSuccess:de(()=>i.value?.isSuccess),isError:de(()=>i.value?.isError),status:de(()=>i.value?.status),refetch:()=>r?.refetch(),unwrap:async()=>{if(!r)throw new Error("Query has not been started yet.");return r.unwrap()}}}const bD=Vi.injectEndpoints({endpoints:e=>({getPreclearance:e.query({query:({user:t,company:n,stack:i,username:o,id:r=null})=>({url:r?`/preclearance/${r}`:"/preclearance",params:{user:t,company:n,stack:i,username:o}})}),preclearanceMatch:e.mutation({query:({id:t,body:n})=>({url:`/contributions/${t}/preclearance/match`,method:"POST",body:n})})})});function AY(e){return Ru(bD.endpoints.getPreclearance,e)}function IY(){return ma(bD.endpoints.preclearanceMatch)}function ow(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e)}function MY(e){return new Date(e).toLocaleDateString("en-CA")}function kY(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":`on ${yD(t)}`}function yD(e=new Date){return Number.isNaN(e.getTime())?"":e.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}const LY={class:"preclearance-table-scroll","aria-description":"scroll container for preclearance request table"},OY={class:"preclearance-table"},_Y={key:0,class:"preclearance-table-tr preclearance-table-tr-empty"},NY={class:"preclearance-table-td preclearance-table-td-select"},BY=["id","name","value","checked","onClick"],HY={class:"preclearance-table-td"},GY={class:"preclearance-table-td"},VY={class:"preclearance-table-td preclearance-table-td-amount"},WY={class:"preclearance-table-td"},zY={class:"preclearance-table-td"},UY={class:"preclearance-table-td"},$Y={class:"preclearance-table-td preclearance-table-td-match"},jY={class:"match-score-value","aria-description":"match score percentage"},KY=wt({__name:"PreclearanceRequestTable",props:Jo({contributionId:{type:Number},user:{type:String},company:{type:String},stack:{type:String},username:{type:String}},{modelValue:{default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=gi(e,"modelValue"),i={Approved:"preclearance-status-approved",Pending:"preclearance-status-pending",Denied:"preclearance-status-denied"},o=de(()=>({user:String(t.user),company:String(t.company),stack:t.stack,username:t.username,id:String(t.contributionId)})),{data:r}=AY(o),s=de(()=>`preclearance-match-${t.contributionId}`),a=de(()=>{const f=r.value;return f?(Array.isArray(f)?f:[f]).map(m=>l(m)):[]}),l=f=>({name:f.name,preclearanceId:f.id,requester:f.employee,amount:f.amount,recipient:f.recipient,requestDate:f.approvalDate,status:f.status,match:f.match}),u=f=>f>=90?"match-score-high":f>=75?"match-score-medium":"match-score-low",h=(f,g)=>{if(n.value?.preclearanceId===g.preclearanceId){f.preventDefault(),n.value=null;return}n.value={preclearanceId:g.preclearanceId,label:g.name}};return(f,g)=>(se(),pe("div",LY,[q("table",OY,[g[2]||(g[2]=q("thead",null,[q("tr",null,[q("th",{class:"preclearance-table-th preclearance-table-th-select",scope:"col"},"Select"),q("th",{class:"preclearance-table-th",scope:"col"},"Request ID"),q("th",{class:"preclearance-table-th",scope:"col"},"Requester"),q("th",{class:"preclearance-table-th",scope:"col"},"Amount"),q("th",{class:"preclearance-table-th",scope:"col"},"Recipient"),q("th",{class:"preclearance-table-th",scope:"col"},"Request Date"),q("th",{class:"preclearance-table-th",scope:"col"},"Status"),q("th",{class:"preclearance-table-th preclearance-table-th-match",scope:"col"},"Match Score")])],-1)),q("tbody",null,[a.value.length===0?(se(),pe("tr",_Y,[...g[0]||(g[0]=[q("td",{class:"preclearance-table-td preclearance-table-empty",colspan:"8"},"No data found",-1)])])):(se(!0),pe(bt,{key:1},Ii(a.value,m=>(se(),pe("tr",{key:m.name,class:"preclearance-table-tr"},[q("td",NY,[q("input",{id:`preclearance-radio-${m.name}`,class:ft(["preclearance-table-radio",{"preclearance-table-radio-selected":n.value?.preclearanceId===m.preclearanceId}]),type:"radio",name:s.value,value:m.name,checked:n.value?.preclearanceId===m.preclearanceId,onClick:v=>h(v,m)},null,10,BY)]),q("td",HY,Je(m.name),1),q("td",GY,Je(m.requester),1),q("td",VY,Je(Vn(ow)(m.amount)),1),q("td",WY,Je(m.recipient),1),q("td",zY,Je(m.requestDate),1),q("td",UY,[q("span",{class:ft(["preclearance-status",i[m.status]]),"aria-description":"preclearance request status"},Je(m.status),3)]),q("td",$Y,[q("span",{class:ft(["match-score",u(m.match)]),"aria-description":"match score for preclearance request"},[g[1]||(g[1]=q("span",{class:"match-score-bar","aria-hidden":"true","aria-description":"match score visual indicator"},null,-1)),q("span",jY,Je(m.match)+"% ",1)],2)])]))),128))])])]))}}),qY=`.match-score[data-v-dc726dd2]{align-items:center;display:inline-flex;gap:.4rem}.match-score-bar[data-v-dc726dd2]{align-self:center;border-radius:.125rem;flex-shrink:0;height:1em;width:.125rem}.match-score-high[data-v-dc726dd2]{color:var(--color-primary-green)}.match-score-high .match-score-bar[data-v-dc726dd2]{background:var(--color-primary-green)}.match-score-low[data-v-dc726dd2]{color:var(--color-red-700)}.match-score-low .match-score-bar[data-v-dc726dd2]{background:var(--color-red-700)}.match-score-medium[data-v-dc726dd2]{color:var(--color-yellow-700)}.match-score-medium .match-score-bar[data-v-dc726dd2]{background:var(--color-yellow-700)}.preclearance-status[data-v-dc726dd2]{font-weight:600;white-space:nowrap}.preclearance-status-approved[data-v-dc726dd2]{color:var(--color-primary-green)}.preclearance-status-denied[data-v-dc726dd2]{color:var(--color-red-700)}.preclearance-status-pending[data-v-dc726dd2]{color:var(--color-yellow-700)}.preclearance-table[data-v-dc726dd2]{border-collapse:collapse;font-size:.875rem;min-width:58rem;width:100%}.preclearance-table tbody .preclearance-table-tr[data-v-dc726dd2]:nth-child(2n){background:var(--color-green-50)}.preclearance-table-empty[data-v-dc726dd2]{color:var(--color-grey-600);padding:1.5rem 1rem;text-align:center}.preclearance-table-radio[data-v-dc726dd2]{-webkit-appearance:none;appearance:none;background:var(--color-white);border:.125rem solid var(--color-grey-300);border-radius:.25rem;box-sizing:border-box;cursor:pointer;flex-shrink:0;height:1.125rem;margin:0;vertical-align:middle;width:1.125rem}.preclearance-table-radio[data-v-dc726dd2]:focus-visible{outline:.125rem solid var(--color-primary-green);outline-offset:.125rem}.preclearance-table-radio-selected[data-v-dc726dd2]{background-color:var(--color-primary-green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:.875rem;border-color:var(--color-primary-green)}.preclearance-table-scroll[data-v-dc726dd2]{-webkit-overflow-scrolling:touch;overflow-x:auto}.preclearance-table-td[data-v-dc726dd2]{border-bottom:.0625rem solid var(--color-primary-grey);color:var(--color-primary-black);padding:.75rem 1rem;vertical-align:middle}.preclearance-table-td-amount[data-v-dc726dd2]{font-weight:700;white-space:nowrap}.preclearance-table-td-match[data-v-dc726dd2]{font-size:.75rem;line-height:1;white-space:nowrap}.preclearance-table-td-select[data-v-dc726dd2]{text-align:center;width:3.25rem}.preclearance-table-th[data-v-dc726dd2]{background:var(--color-secondary-green);border-bottom:.0625rem solid var(--color-primary-black);font-weight:600;padding:.5rem 1rem;text-align:left;white-space:nowrap}.preclearance-table-th-match[data-v-dc726dd2]{min-width:6.5rem;text-align:left}.preclearance-table-th-select[data-v-dc726dd2]{text-align:center;width:3.25rem}.preclearance-table-tr[data-v-dc726dd2]{background:var(--color-white)}.preclearance-table-tr:last-child .preclearance-table-td[data-v-dc726dd2]{border-bottom:none}`,Bt=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},QY=Bt(KY,[["styles",[qY]],["__scopeId","data-v-dc726dd2"]]),YY={class:"card-base-body","aria-description":"card body"},ZY=Bt(wt({__name:"CardBase",props:{borderColor:{default:"var(--color-green-200)",type:String},radius:{default:"0.5rem",type:String}},setup(e){return(t,n)=>(se(),pe("section",{class:"card-base",style:Uo({borderColor:e.borderColor,borderRadius:e.radius})},[t.$slots.header?(se(),pe("header",{key:0,class:"card-base-header",style:Uo({borderColor:e.borderColor})},[As(t.$slots,"header",{},void 0)],4)):gt("",!0),q("div",YY,[As(t.$slots,"default",{},void 0)])],4))}}),[["styles",[".card-base[data-v-8f2e1eff]{background:var(--color-white);border:.0625rem solid;box-sizing:border-box}.card-base-body[data-v-8f2e1eff]{padding:1.5rem}.card-base-header[data-v-8f2e1eff]{padding:1.5rem;padding-bottom:0}"]],["__scopeId","data-v-8f2e1eff"]]),JY=Vi.injectEndpoints({endpoints:e=>({getStatuses:e.query({query:({user:t,company:n,stack:i,username:o,id:r=null})=>({url:r?`/statuses/${r}`:"/statuses",params:{user:t,company:n,stack:i,username:o}}),transformResponse:t=>Array.isArray(t)?t.filter(n=>n.name.toLowerCase()!=="all"):t})})});function rw(e){return Ru(JY.endpoints.getStatuses,e)}const XY=["aria-expanded"],eZ=["aria-description"],tZ={class:"status-select-panel",role:"listbox","aria-description":"Available match status options"},nZ={key:0,class:"status-select-loading","aria-description":"Status options are loading"},iZ=["aria-selected","onClick"],oZ=["aria-description"],rZ=["aria-description"],sZ=Bt(wt({__name:"ContributionStatusSelect",props:{modelValue:{type:Object},showRadio:{type:Boolean,default:!1},user:{type:String},company:{type:String},stack:{type:String},username:{type:String}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,{data:o,isLoading:r}=rw(de(()=>({user:n.user,company:n.company,stack:n.stack,username:n.username}))),s=de(()=>{const f=o.value;return Array.isArray(f)?f:[]}),a=be(!1),l=()=>{a.value=!a.value},u=f=>{i("update:modelValue",f),a.value=!1},h=()=>{a.value=!1};return(f,g)=>(se(),pe(bt,null,[a.value?(se(),pe("div",{key:0,class:"status-select-backdrop","aria-hidden":"true","aria-description":"Closes the status menu when clicked",onClick:h})):gt("",!0),q("div",{class:ft(["status-select",{"status-select-open":a.value}]),"aria-description":"Contribution match status selector"},[q("button",{type:"button",class:"status-select-trigger","aria-expanded":a.value,onClick:mt(l,["stop"])},[q("span",{class:"status-selected","aria-description":`Current match status: ${e.modelValue.name}`},Je(e.modelValue.name),9,eZ),q("span",{class:ft(["status-select-chevron",{"status-select-chevron-open":a.value}]),"aria-hidden":"true","aria-description":"Dropdown open or closed indicator"},null,2)],8,XY),Ps(q("div",tZ,[Vn(r)?(se(),pe("div",nZ,[...g[0]||(g[0]=[q("span",{class:"status-select-spinner",role:"status","aria-label":"Loading statuses"},null,-1)])])):(se(!0),pe(bt,{key:1},Ii(s.value,m=>(se(),pe("button",{key:m.id,type:"button",class:ft(["status-option",{"status-option-active":m.id===e.modelValue.id}]),role:"option","aria-selected":m.id===e.modelValue.id,onClick:mt(v=>u(m),["stop"])},[e.showRadio?(se(),pe("span",{key:0,class:ft(["status-option-radio",{"status-option-radio-selected":m.id===e.modelValue.id}]),"aria-description":`Selected-state marker for ${m.name}`},null,10,oZ)):gt("",!0),q("span",{class:"status-option-label","aria-description":`Match status option: ${m.name}`},Je(m.name),9,rZ)],10,iZ))),128))],512),[[sp,a.value]])],2)],64))}}),[["styles",[".status-option[data-v-5ed673d2]{align-items:center;background:transparent;border:none;border-bottom:.0625rem solid var(--color-green-300);cursor:pointer;display:flex;font:inherit;font-size:.875rem;gap:.6rem;padding:.75rem;text-align:left;width:100%}.status-option[data-v-5ed673d2]:hover{background:var(--color-green-100)}.status-option-active .status-option-label[data-v-5ed673d2]{color:var(--color-primary-green);font-weight:600}.status-option-label[data-v-5ed673d2]{color:var(--color-grey-900)}.status-option-radio[data-v-5ed673d2]{border:.125rem solid var(--color-grey-300);border-radius:50%;flex-shrink:0;height:1rem;width:1rem}.status-option-radio-selected[data-v-5ed673d2]{background:radial-gradient(circle,var(--color-primary-green) 0 42%,transparent 43%);border-color:var(--color-primary-green);box-shadow:inset 0 0 0 3px var(--color-white)}.status-select[data-v-5ed673d2]{max-width:100%;position:relative;width:100%}.status-selected[data-v-5ed673d2]{color:var(--color-green-900)}.status-select-backdrop[data-v-5ed673d2]{background:transparent;inset:0;position:fixed;z-index:10000}.status-select-chevron[data-v-5ed673d2]{border-left:.3125rem solid transparent;border-right:.3125rem solid transparent;border-top:.375rem solid var(--color-green-900);flex-shrink:0;height:0;transition:transform .15s ease;width:0}.status-select-chevron-open[data-v-5ed673d2]{transform:rotate(180deg)}.status-select-loading[data-v-5ed673d2]{align-items:center;display:flex;justify-content:center;padding:1rem}.status-select-open[data-v-5ed673d2]{z-index:10001}.status-select-panel[data-v-5ed673d2]{background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.375rem;box-shadow:0 .25rem .75rem #00000014;left:0;margin-top:.25rem;position:absolute;right:0;z-index:100}.status-select-spinner[data-v-5ed673d2]{animation:status-spin-5ed673d2 .7s linear infinite;border:.15rem solid var(--color-green-200);border-radius:50%;border-top-color:var(--color-primary-green);display:inline-block;height:1.25rem;width:1.25rem}.status-select-trigger[data-v-5ed673d2]{align-items:center;background:var(--color-white);border:.0625rem solid var(--color-green-400);border-radius:.25rem;cursor:pointer;display:flex;font:inherit;font-size:.875rem;gap:.5rem;height:3rem;justify-content:space-between;padding:.75rem 1rem;text-align:left;width:100%}.status-select-trigger[data-v-5ed673d2]:focus{border:.125rem solid var(--color-brand-bright-200);outline:0}.status-select-trigger[data-v-5ed673d2]:hover{background-color:var(--color-green-50)}@keyframes status-spin-5ed673d2{to{transform:rotate(360deg)}}"]],["__scopeId","data-v-5ed673d2"]]),aZ=["aria-description"],lZ={class:"detail-item-label","aria-description":"Field label"},cZ={class:"detail-item-value","aria-description":"Field value"},SD=Bt(wt({__name:"DetailItem",props:{fullWidth:{type:Boolean,default:!1},label:{type:String},value:{default:"",type:[String,null]}},setup(e){const t=e,n=o=>o==null||o===""?"—":o,i=de(()=>`Detail field: ${t.label}`);return(o,r)=>(se(),pe("div",{class:ft(["detail-item",{"detail-item-full":e.fullWidth}]),"aria-description":i.value},[q("div",lZ,Je(e.label),1),q("div",cZ,[As(o.$slots,"value",{},()=>[to(Je(n(e.value)),1)])])],10,aZ))}}),[["styles",[".detail-item[data-v-14dc73bf]{display:flex;flex-direction:column;gap:.5rem;min-width:0}.detail-item-full[data-v-14dc73bf]{grid-column:1 / -1}.detail-item-label[data-v-14dc73bf]{color:var(--color-grey-400);font-size:.875rem;font-weight:500;line-height:1.5}.detail-item-value[data-v-14dc73bf]{color:var(--color-green-900);font-size:.875rem;line-height:1.5;word-break:break-word}"]],["__scopeId","data-v-14dc73bf"]]),uZ=["type","disabled"],fs=Bt(wt({__name:"Button",props:{disabled:{type:Boolean,default:!1},label:{type:String},type:{default:"button",type:String},variant:{default:"primary",type:String}},emits:["click"],setup(e,{emit:t}){const n=t,i=o=>{n("click",o)};return(o,r)=>(se(),pe("button",{type:e.type,class:ft(["ui-button",{"ui-button-primary":e.variant==="primary","ui-button-secondary":e.variant==="secondary","ui-button-tertiary":e.variant==="tertiary"}]),disabled:e.disabled,onClick:i},Je(e.label),11,uZ))}}),[["styles",[".ui-button[data-v-ad4347d7]{align-items:center;border-radius:.25rem;box-sizing:border-box;cursor:pointer;display:inline-flex;font-family:inherit;font-size:.875rem;font-weight:500;justify-content:center;line-height:1.25;min-height:2.25rem;padding:.5rem 1rem;transition:background-color .15s ease,filter .15s ease,border-color .15s ease,color .15s ease}.ui-button[data-v-ad4347d7]:disabled{cursor:not-allowed;filter:none}.ui-button-primary[data-v-ad4347d7]{background:var(--color-brand-dark-500);border:1px solid transparent;color:var(--color-white)}.ui-button-primary[data-v-ad4347d7]:disabled{background:var(--color-green-500)}.ui-button-primary[data-v-ad4347d7]:not(:disabled):active{background:var(--color-brand-dark-900)}.ui-button-primary[data-v-ad4347d7]:not(:disabled):focus,.ui-button-primary[data-v-ad4347d7]:not(:disabled):focus-visible{border:.125rem solid var(--color-brand-bright-100);outline:0}.ui-button-primary[data-v-ad4347d7]:not(:disabled):hover{background:var(--color-brand-dark-800)}.ui-button-secondary[data-v-ad4347d7]{background:var(--color-white);border:1px solid var(--color-brand-dark-500);color:var(--color-brand-dark-500)}.ui-button-secondary[data-v-ad4347d7]:disabled{background:var(--color-green-50);border:1px solid var(--color-green-200);color:var(--color-grey-400)}.ui-button-secondary[data-v-ad4347d7]:not(:disabled):active{background:var(--color-brand-dark-100);border-color:var(--color-brand-dark-900)}.ui-button-secondary[data-v-ad4347d7]:not(:disabled):hover{background:var(--color-brand-dark-50);border-color:var(--color-brand-dark-800)}.ui-button-tertiary[data-v-ad4347d7]{background:var(--color-white);border:1px solid var(--color-grey-300);color:var(--color-primary-black)}.ui-button-tertiary[data-v-ad4347d7]:disabled{background:var(--color-white);border-color:var(--color-grey-300);color:var(--color-grey-600)}.ui-button-tertiary[data-v-ad4347d7]:not(:disabled):active{filter:brightness(.97)}.ui-button-tertiary[data-v-ad4347d7]:not(:disabled):hover{background:var(--color-grey-50)}"]],["__scopeId","data-v-ad4347d7"]]),dZ=["aria-labelledby"],hZ={class:"dialog-header"},fZ=["id"],gZ=["aria-label"],pZ=["aria-labelledby"],mZ={key:0,class:"dialog-footer"},sw=Bt(wt({__name:"Dialog",props:{bodyPadding:{type:Boolean,default:!0},cancelButtonLabel:{default:"Cancel",type:String},closeAriaLabel:{default:"Close dialog",type:String},contentWidth:{default:"min(36rem, 100%)",type:String},primaryButtonDisabled:{type:Boolean,default:!1},primaryButtonLabel:{default:"Submit",type:String},showCloseButton:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},title:{type:String},titleId:{default:void 0,type:String}},emits:["cancel-click","close","primary-click"],setup(e,{expose:t,emit:n}){const i=e,o=n,r=be(null),s=jg(),a=de(()=>i.titleId??`dialog-title-${s}`),l=de(()=>i.showFooter&&!!(i.cancelButtonLabel||i.primaryButtonLabel)),u=()=>{const b=r.value;b&&(typeof b.showModal=="function"?b.showModal():b.setAttribute("open",""))},h=()=>{const b=r.value;b&&(typeof b.close=="function"?b.close():b.removeAttribute("open"),o("close"))},f=b=>{b.target===r.value&&h()},g=b=>{b.preventDefault(),h()},m=()=>{h()},v=()=>{h(),o("cancel-click")},w=()=>{o("primary-click")};return t({open:u,close:h,dialogRef:r}),(b,y)=>{const R=Ts("font-awesome-icon");return se(),pe("dialog",{ref_key:"dialogRef",ref:r,class:"dialog","aria-labelledby":a.value,style:Uo({width:e.contentWidth}),onCancel:g,onClick:f},[q("section",{class:"dialog-panel",onClick:y[0]||(y[0]=mt(()=>{},["stop"]))},[q("header",hZ,[q("h2",{id:a.value,class:"dialog-title"},Je(e.title),9,fZ),e.showCloseButton?(se(),pe("button",{key:0,type:"button",class:"dialog-close","aria-label":e.closeAriaLabel,onClick:m},[Oe(R,{class:"dialog-close-icon",icon:["fas","xmark"],size:"xs","aria-hidden":"true"})],8,gZ)):gt("",!0)]),q("section",{class:ft(["dialog-body",{"dialog-body-flush":!e.bodyPadding}]),"aria-labelledby":a.value},[As(b.$slots,"default",{},void 0)],10,pZ),l.value?(se(),pe("footer",mZ,[e.cancelButtonLabel?(se(),an(fs,{key:0,label:e.cancelButtonLabel,variant:"secondary",onClick:v},null,8,["label"])):gt("",!0),e.primaryButtonLabel?(se(),an(fs,{key:1,disabled:e.primaryButtonDisabled,label:e.primaryButtonLabel,variant:"primary",onClick:w},null,8,["disabled","label"])):gt("",!0)])):gt("",!0)])],44,dZ)}}}),[["styles",[".dialog[data-v-393323d3]{border:.0625rem solid var(--color-grey-300);border-radius:.5rem;box-shadow:0 8px 24px #0000001f;font-family:inherit;margin:auto;max-width:calc(100vw - 2rem);padding:0}.dialog[data-v-393323d3]::backdrop{background:#00000059}.dialog-body[data-v-393323d3]{-webkit-overflow-scrolling:touch;flex:1;max-height:75dvh;min-height:0;overflow-y:auto;padding:1.5rem}.dialog-body.dialog-body-flush[data-v-393323d3]{padding:0}.dialog-close[data-v-393323d3]{align-items:center;background:transparent;border:none;border-radius:.25rem;color:var(--color-grey-900);cursor:pointer;display:inline-flex;font-size:1.25rem;font-weight:500;height:2rem;justify-content:center;line-height:1;padding:0;width:2rem}.dialog-close[data-v-393323d3]:hover{background:var(--color-green-50)}.dialog-close-icon[data-v-393323d3]{height:1rem;width:1rem}.dialog-footer[data-v-393323d3]{align-items:center;display:flex;flex-shrink:0;flex-wrap:wrap;gap:.75rem;justify-content:flex-end;padding:1.5rem;padding-top:0}.dialog-header[data-v-393323d3]{align-items:center;display:flex;flex-shrink:0;gap:.75rem;justify-content:space-between;padding:1.5rem;padding-bottom:0}.dialog-panel[data-v-393323d3]{display:flex;flex-direction:column;max-height:calc(100vh - 3rem);padding:0}.dialog-title[data-v-393323d3]{color:var(--color-grey-900);font-size:1.25rem;font-weight:500;line-height:1.3;margin:0}"]],["__scopeId","data-v-393323d3"]]),vZ={class:"detail-grid","aria-description":"contribution detail fields grid"},CZ={class:"bottom-section","aria-description":"contribution match status"},wZ=Bt(wt({__name:"ContributionDetailsCard",props:{contribution:{type:Object},user:{type:String},company:{type:String},stack:{type:String},username:{type:String}},emits:["clear-preclearance","match-preclearance","update-status"],setup(e,{emit:t}){const n=e,i=t,{data:o}=rw(de(()=>({user:n.user,company:n.company,stack:n.stack,username:n.username}))),r=de(()=>{const f=o.value,m=(Array.isArray(f)?f:[]).find(v=>v.name===n.contribution.status);return m||{id:0,name:n.contribution.status,organization:0,created:"",modified:""}}),s=[{kind:"value",key:"contributor",label:"Contributor"},{kind:"value",key:"employer",label:"Employer"},{kind:"value",key:"occupation",label:"Occupation"},{kind:"value",key:"address",label:"Address"},{kind:"value",key:"state",label:"State"},{kind:"value",key:"zipCode",label:"Zip Code"},{kind:"value",key:"amount",label:"Amount"},{kind:"value",key:"date",label:"Date"},{kind:"value",key:"dateDetected",label:"Date Detected"},{kind:"value",key:"source",label:"Source"},{kind:"value",key:"jurisdiction",label:"Jurisdiction"},{kind:"value",key:"employeeStatus",label:"Employee Status"},{kind:"value",key:"recipient",label:"Recipient"},{kind:"value",key:"amended",label:"Amended"},{kind:"value",key:"lastUpdated",label:"Last Updated On"},{kind:"value",key:"lastUpdatedBy",label:"Last Updated By"}],a=f=>f.kind==="value"?f.key:f.kind,l=be(null),u=be(null),h=()=>{const f=u.value;f&&(i("match-preclearance",{preclearanceId:f.preclearanceId,preclearanceLabel:f.label}),l.value?.close())};return(f,g)=>(se(),an(ZY,null,{default:zn(()=>[q("div",vZ,[(se(),pe(bt,null,Ii(s,m=>Oe(SD,{key:a(m),label:m.label,value:m.kind==="value"?e.contribution[m.key]:""},null,8,["label","value"])),64))]),q("div",CZ,[Oe(SD,{label:"Status"},{value:zn(()=>[Oe(sZ,{"model-value":r.value,user:e.user,company:e.company,stack:e.stack,username:e.username,"onUpdate:modelValue":g[0]||(g[0]=m=>i("update-status",m))},null,8,["model-value","user","company","stack","username"])]),_:1})]),Oe(sw,{"body-padding":!1,"content-width":"min(60rem, calc(100vw - 2rem))","primary-button-disabled":!u.value,"primary-button-label":"Match Selected",ref_key:"preclearanceMatchDialog",ref:l,"secondary-button-label":"Cancel",title:"Match to Preclearance Request",onPrimaryClick:h},{default:zn(()=>[Oe(QY,{"contribution-id":e.contribution.contributionId,user:e.user,company:e.company,stack:e.stack,username:e.username,modelValue:u.value,"onUpdate:modelValue":g[1]||(g[1]=m=>u.value=m)},null,8,["contribution-id","user","company","stack","username","modelValue"])]),_:1},8,["primary-button-disabled"])]),_:1}))}}),[["styles",[".bottom-section[data-v-bae9060d]{border-top:.0625rem solid var(--color-green-200);display:grid;gap:1.5rem 2rem;grid-template-columns:1fr 1fr;margin-top:1rem;padding-top:1rem}.detail-grid[data-v-bae9060d]{display:grid;gap:1.5rem 2rem;grid-template-columns:repeat(3,minmax(0,1fr))}"]],["__scopeId","data-v-bae9060d"]]),bZ={class:"collapsible-panel","aria-description":"Collapsible panel"},yZ=["aria-expanded"],SZ={class:"collapsible-panel-heading","aria-description":"Panel heading"},RZ={key:0,class:"collapsible-panel-icon","aria-hidden":"true"},xZ={class:"collapsible-panel-title","aria-description":"Panel title"},FZ=["aria-hidden"],PZ={class:"collapsible-panel-body-inner","aria-description":"Panel content inner wrapper"},EZ=Bt(wt({__name:"CollapsiblePanel",props:{title:{type:String}},setup(e){const t=be(!1),n=()=>{t.value=!t.value};return(i,o)=>(se(),pe("div",bZ,[q("button",{type:"button",class:"collapsible-panel-header","aria-expanded":t.value,onClick:n},[q("span",SZ,[i.$slots.icon?(se(),pe("span",RZ,[As(i.$slots,"icon",{},void 0)])):gt("",!0),q("span",xZ,Je(e.title),1)]),q("i",{class:ft(["fa-solid fa-chevron-down collapsible-panel-chevron",{"collapsible-panel-chevron-open":t.value}]),"aria-hidden":"true"},null,2)],8,yZ),q("div",{class:ft(["collapsible-panel-body",{"collapsible-panel-body-open":t.value}]),"aria-description":"Panel content","aria-hidden":!t.value},[q("div",PZ,[As(i.$slots,"default",{},void 0)])],10,FZ)]))}}),[["styles",[".collapsible-panel[data-v-29317d49]{border:.0625rem solid var(--color-primary-grey);border-radius:.5rem;box-sizing:border-box;overflow:hidden}.collapsible-panel-body[data-v-29317d49]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease}.collapsible-panel-body-inner[data-v-29317d49]{min-height:0;opacity:0;overflow:hidden;padding:0;transition:opacity .2s ease}.collapsible-panel-body-open[data-v-29317d49]{grid-template-rows:1fr}.collapsible-panel-body-open .collapsible-panel-body-inner[data-v-29317d49]{opacity:1;padding:1rem}.collapsible-panel-chevron[data-v-29317d49]{color:var(--color-primary-black);flex-shrink:0;font-size:.75rem;margin-left:.75rem;transition:transform .2s ease}.collapsible-panel-chevron-open[data-v-29317d49]{transform:rotate(180deg)}.collapsible-panel-header[data-v-29317d49]{align-items:center;background:var(--color-white);border:none;color:var( --color-grey-900);cursor:pointer;display:flex;font:inherit;justify-content:space-between;padding:1rem;text-align:left;width:100%}.collapsible-panel-header[data-v-29317d49]:hover{background:var(--color-green-50)}.collapsible-panel-header[aria-expanded=true][data-v-29317d49]{border-bottom:1px solid var(--color-primary-grey)}.collapsible-panel-heading[data-v-29317d49]{align-items:center;display:inline-flex;gap:.5rem;min-width:0}.collapsible-panel-icon[data-v-29317d49]{align-items:center;color:var(--color-grey-900);display:inline-flex;flex-shrink:0;height:1.5rem;justify-content:center;width:1.5rem}.collapsible-panel-icon [data-v-29317d49] svg{display:block;height:100%;width:100%}.collapsible-panel-title[data-v-29317d49]{font-size:1rem;font-weight:400;line-height:1.5}"]],["__scopeId","data-v-29317d49"]]),DZ=["aria-description"],TZ=["aria-description"],AZ={key:0,class:"ui-input-req",title:"required"},IZ=["aria-description","aria-describedby"],MZ=["aria-description"],kZ=["aria-label"],LZ=["aria-description"],OZ=["title"],_Z=["aria-label","disabled","onClick"],NZ=["id","type","name","autocomplete","placeholder","disabled","maxlength","aria-invalid","aria-label","value"],BZ=["aria-label","disabled"],HZ=["id","name","autocomplete","placeholder","disabled","maxlength","rows","aria-invalid","aria-describedby"],GZ=["id","type","name","value","autocomplete","placeholder","disabled","maxlength","aria-invalid","aria-describedby"],VZ=["id"],fo=Bt(wt({inheritAttrs:!1,__name:"Input",props:Jo({autocomplete:{default:void 0,type:String},describedBy:{default:void 0,type:String},disabled:{type:Boolean,default:!1},error:{default:"",type:String},id:{default:void 0,type:String},invalid:{type:Boolean,default:!1},label:{type:String},labelAriaDescription:{default:void 0,type:String},maxlength:{default:void 0,type:Number},multiple:{type:Boolean,default:!1},name:{default:void 0,type:String},placeholder:{default:void 0,type:String},required:{type:Boolean,default:!1},rows:{default:4,type:Number},type:{default:"text",type:String}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=gi(e,"modelValue"),i=jg(),o=de(()=>t.id??i),r=de(()=>`${o.value}-error`),s=be([]),a=be(""),l=de(()=>t.invalid||!!t.error),u=de(()=>{const L=[];return t.error&&L.push(r.value),t.describedBy&&L.push(...t.describedBy.split(/\s+/).filter(Boolean)),L.length>0?L.join(" "):void 0}),h=de(()=>s.value.length>0),f=de(()=>t.type==="textarea"),g=L=>xe.isNil(t.maxlength)?L:L.slice(0,t.maxlength),m=de({get:()=>typeof n.value=="string"?n.value:"",set:L=>{n.value=g(L)}}),v=L=>{const N=L.target,M=g(N.value);N.value!==M&&(N.value=M),n.value=M},w=L=>{s.value=Array.isArray(L)?L.map(N=>String(N)):[]},b=()=>{if(!t.multiple)return;const L=Array.isArray(n.value)?n.value:[];xe.isEqual(L,s.value)||(n.value=[...s.value])};Jt(()=>n.value,L=>{if(!t.multiple)return;const N=Array.isArray(L)?L:[];xe.isEqual(N,s.value)||w(L)},{immediate:!0,deep:!0});const y=L=>{const N=L.target;a.value=g(N.value),N.value!==a.value&&(N.value=a.value)},R=L=>{y(L),S()},S=()=>{const L=a.value.trim();if(xe.isEmpty(L)||s.value.includes(L)){a.value="";return}s.value=[...s.value,L],a.value="",b()},P=L=>{L.preventDefault(),S()},F=L=>{!xe.isEmpty(String(a.value??""))||s.value.length===0||(L.preventDefault(),s.value=s.value.slice(0,-1),b())},A=L=>{s.value=s.value.filter((N,M)=>M!==L),b()},k=()=>{s.value=[],a.value="",b()};return(L,N)=>{const M=Ts("font-awesome-icon");return se(),pe("div",{class:"ui-input","aria-description":e.label?`${e.label} input field`:"input field"},[e.label?(se(),pe("span",{key:0,class:"ui-input-label","aria-description":e.labelAriaDescription??`${e.label} field label`},[to(Je(e.label)+" ",1),e.required?(se(),pe("abbr",AZ,"*")):gt("",!0)],8,TZ)):gt("",!0),e.multiple?(se(),pe("div",{key:1,class:ft(["ui-input-tags",{"ui-input-tags-invalid":l.value}]),"aria-description":e.label?`${e.label} multi-value input`:"multi-value input","aria-describedby":u.value},[q("div",{class:"ui-input-tags-value","aria-description":`${e.label} selected values`},[h.value?(se(),pe("ul",{key:0,class:"ui-input-tags-list",role:"list","aria-label":`Selected ${e.label}`},[(se(!0),pe(bt,null,Ii(s.value,(E,I)=>(se(),pe("li",{key:`${E}-${I}`,class:"ui-input-tags-item",role:"listitem"},[q("span",{class:"ui-input-tag-chip","aria-description":`Selected value: ${E}`},[q("span",{class:"ui-input-tag-text",title:E},Je(E),9,OZ),q("button",{type:"button",class:"ui-input-tag-remove","aria-label":`Remove ${E}`,disabled:e.disabled,onClick:B=>A(I)},[Oe(M,{class:"ui-input-tag-remove-icon",icon:["fas","xmark"],size:"xs","aria-hidden":"true"})],8,_Z)],8,LZ)]))),128))],8,kZ)):gt("",!0),q("input",nc({id:o.value,class:"ui-input-tags-field",type:e.type,name:e.name,autocomplete:e.autocomplete,placeholder:h.value?void 0:e.placeholder,disabled:e.disabled,maxlength:e.maxlength,"aria-invalid":l.value?!0:void 0,"aria-label":h.value?`Add ${e.label}`:void 0,value:a.value},L.$attrs,{onInput:y,onKeydown:[Xt(P,["enter"]),Xt(F,["backspace"])],onBlur:R}),null,16,NZ)],8,MZ),h.value?(se(),pe("button",{key:0,type:"button",class:"ui-input-tags-clear","aria-label":`Clear all ${e.label}`,disabled:e.disabled,onClick:k},[Oe(M,{class:"ui-input-tag-remove-icon",icon:["fas","xmark"],size:"xs","aria-hidden":"true"})],8,BZ)):gt("",!0)],10,IZ)):f.value?Ps((se(),pe("textarea",nc({key:2,id:o.value,"onUpdate:modelValue":N[0]||(N[0]=E=>m.value=E),class:"ui-input-control ui-input-control-textarea",name:e.name,autocomplete:e.autocomplete,placeholder:e.placeholder,disabled:e.disabled,maxlength:e.maxlength,rows:e.rows,"aria-invalid":l.value?!0:void 0,"aria-describedby":u.value},L.$attrs),null,16,HZ)),[[Jk,m.value]]):(se(),pe("input",nc({key:3,id:o.value,class:"ui-input-control",type:e.type,name:e.name,value:m.value,autocomplete:e.autocomplete,placeholder:e.placeholder,disabled:e.disabled,maxlength:e.maxlength,"aria-invalid":l.value?!0:void 0,"aria-describedby":u.value},L.$attrs,{onInput:v}),null,16,GZ)),e.error?(se(),pe("p",{key:4,id:r.value,class:"ui-input-error",role:"alert"},Je(e.error),9,VZ)):gt("",!0)],8,DZ)}}}),[["styles",["input[data-v-ea98b3c5]:-webkit-autofill,input[data-v-ea98b3c5]:-webkit-autofill:active,input[data-v-ea98b3c5]:-webkit-autofill:focus,input[data-v-ea98b3c5]:-webkit-autofill:hover{-webkit-box-shadow:0 0 0 1000px #fff inset}.ui-input[data-v-ea98b3c5]{display:flex;flex-direction:column;gap:.35rem;min-width:0}.ui-input-control[data-v-ea98b3c5]{border:.0625rem solid var(--color-green-400);border-radius:.25rem;box-sizing:border-box;color:var(--color-primary-black);font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.875rem;height:3rem;padding:.75rem 1rem;width:100%}.ui-input-control[data-v-ea98b3c5]:disabled{cursor:not-allowed;opacity:.65}.ui-input-control[data-v-ea98b3c5]:focus-visible{border:.125rem solid var(--color-brand-bright-200);outline:0}.ui-input-control[data-v-ea98b3c5]:hover:not(:disabled){background-color:var(--color-green-50)}.ui-input-control[data-v-ea98b3c5]::placeholder{color:var(--color-grey-600);opacity:1}.ui-input-control[aria-invalid=true][data-v-ea98b3c5]{border-color:var(--color-red)}.ui-input-control[aria-invalid=true][data-v-ea98b3c5]:focus-visible{border-color:var(--color-red)}.ui-input-control[type=number][data-v-ea98b3c5]{-moz-appearance:textfield;appearance:textfield}.ui-input-control[type=number][data-v-ea98b3c5]::-webkit-inner-spin-button,.ui-input-control[type=number][data-v-ea98b3c5]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.ui-input-control-textarea[data-v-ea98b3c5]{height:auto;line-height:1.45;min-height:6rem;resize:vertical}.ui-input-error[data-v-ea98b3c5]{color:var(--color-red);font-size:.75rem;line-height:1.125rem;margin:0}.ui-input-label[data-v-ea98b3c5]{color:var(--color-grey-900);font-size:.875rem;line-height:1.25rem;white-space:nowrap}.ui-input-req[data-v-ea98b3c5]{color:var(--color-red);cursor:help;text-decoration:none}.ui-input-tag-chip[data-v-ea98b3c5]{align-items:center;background-color:var(--color-green-100);border-radius:.25rem;box-sizing:border-box;color:var(--color-grey-900);display:inline-flex;font-size:.875rem;gap:.125rem;height:1.75rem;line-height:1.25;max-width:100%;min-width:0;overflow:hidden;padding:.25rem .5rem}.ui-input-tag-remove[data-v-ea98b3c5]{align-items:center;background:transparent;border:none;border-radius:.125rem;color:var(--color-grey-600);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:.75rem;height:1.25rem;justify-content:center;padding:0;width:1.25rem}.ui-input-tag-remove[data-v-ea98b3c5]:disabled{cursor:not-allowed;opacity:.65}.ui-input-tag-remove[data-v-ea98b3c5]:hover:not(:disabled){color:var(--color-primary-green)}.ui-input-tag-remove-icon[data-v-ea98b3c5]{height:.75rem;width:.75rem}.ui-input-tag-remove-icon[data-v-ea98b3c5]:hover{color:var(--color-red)}.ui-input-tag-text[data-v-ea98b3c5]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-input-tags[data-v-ea98b3c5]{align-items:center;background:var(--color-white);border:.0625rem solid var(--color-green-400);border-radius:.25rem;box-sizing:border-box;display:flex;gap:.5rem;min-height:3rem;padding:.45rem 1rem;width:100%}.ui-input-tags[data-v-ea98b3c5]:focus-within{border:.125rem solid var(--color-brand-bright-200)}.ui-input-tags[data-v-ea98b3c5]:hover:not(:has(:disabled)){background-color:var(--color-green-50)}.ui-input-tags-clear[data-v-ea98b3c5]{align-items:center;background:transparent;border:none;color:var(--color-grey-900);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:.875rem;height:1.75rem;justify-content:center;margin-top:.125rem;padding:0;width:1.75rem}.ui-input-tags-clear[data-v-ea98b3c5]:disabled{cursor:not-allowed;opacity:.65}.ui-input-tags-clear[data-v-ea98b3c5]:hover:not(:disabled){color:var(--color-red)}.ui-input-tags-field[data-v-ea98b3c5]{background:transparent;border:none;color:var(--color-primary-black);flex:1 1 4rem;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.875rem;min-width:2rem;outline:none;padding:.25rem 0}.ui-input-tags-field[data-v-ea98b3c5]::placeholder{color:var(--color-grey-600);opacity:1}.ui-input-tags-field[data-v-ea98b3c5]:disabled{cursor:not-allowed}.ui-input-tags-field[type=number][data-v-ea98b3c5]{-moz-appearance:textfield;appearance:textfield}.ui-input-tags-field[type=number][data-v-ea98b3c5]::-webkit-inner-spin-button,.ui-input-tags-field[type=number][data-v-ea98b3c5]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.ui-input-tags-invalid[data-v-ea98b3c5]{border-color:var(--color-red)}.ui-input-tags-item[data-v-ea98b3c5]{list-style:none;margin:0;max-width:100%;min-width:0;padding:0}.ui-input-tags-list[data-v-ea98b3c5]{display:flex;flex-wrap:wrap;gap:.625rem;list-style:none;margin:0;max-width:100%;min-width:0;padding:0}.ui-input-tags-value[data-v-ea98b3c5]{align-items:center;display:flex;flex:1;flex-wrap:wrap;gap:.625rem;min-width:0}"]],["__scopeId","data-v-ea98b3c5"]]),WZ={class:"notes-section"},zZ={class:"notes-section-actions","aria-description":"add note button container"},UZ={key:0,class:"notes-section-rule"},$Z={class:"notes-section-list",role:"list"},jZ={class:"notes-item-text"},KZ={key:0,class:"notes-item-badge"},qZ={key:1,class:"notes-item-meta"},QZ={key:1,class:"notes-item-text"},YZ=Bt(wt({__name:"ContributionNotes",props:{notes:{type:Array}},emits:["add-note"],setup(e,{emit:t}){const n=t,i=be(""),o=()=>{const r=i.value.trim();r&&(n("add-note",r),i.value="")};return(r,s)=>(se(),an(EZ,{title:"Contribution Notes & Change History"},{icon:zn(()=>[...s[1]||(s[1]=[q("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[q("path",{d:"M21 11.01L3 11V13H21V11.01ZM3 16H15V18H3V16ZM21 6H3V8.01L21 8V6Z",fill:"#222222"})],-1)])]),default:zn(()=>[q("section",WZ,[Oe(fo,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=a=>i.value=a),label:"Add New Note",placeholder:"Enter your note",type:"textarea",rows:4},null,8,["modelValue"]),q("div",zZ,[Oe(fs,{disabled:!i.value.trim(),label:"Add Note",onClick:o},null,8,["disabled"])]),e.notes.length?(se(),pe("hr",UZ)):gt("",!0),q("ul",$Z,[(se(!0),pe(bt,null,Ii(e.notes,a=>(se(),pe("li",{key:a.id,class:"notes-item","aria-description":"note text and metadata"},[a.created?.trim()?(se(),pe(bt,{key:0},[q("p",jZ,Je(a.text),1),a.type!=="user"||a.createdBy?.trim()?(se(),pe("p",KZ,Je(a.type==="user"?a.createdBy?.trim()??"":"System note"),1)):gt("",!0),a.created?.trim()?(se(),pe("p",qZ,Je(Vn(kY)(a.created)),1)):gt("",!0)],64)):(se(),pe("p",QZ,Je(a.text),1))]))),128))])])]),_:1}))}}),[["styles",[".notes-item[data-v-0a1519b3]{margin-bottom:1rem}.notes-item[data-v-0a1519b3]:last-child{margin-bottom:0}.notes-item-badge[data-v-0a1519b3]{color:var(--color-primary-black);font-size:.675rem;font-weight:500;margin:.35rem 0 0}.notes-item-meta[data-v-0a1519b3]{color:var(--color-grey-600);font-size:.625rem;margin:.35rem 0 0}.notes-item-text[data-v-0a1519b3]{color:var(--color-grey-900);font-size:.75rem;line-height:1.45;margin:0}.notes-section[data-v-0a1519b3]{display:flex;flex-direction:column;gap:1rem}.notes-section-actions[data-v-0a1519b3]{display:flex;justify-content:flex-end}.notes-section-list[data-v-0a1519b3]{margin:0;padding-left:1.25rem}.notes-section-rule[data-v-0a1519b3]{border:none;border-top:.0625rem solid var(--color-green-200);margin:.25rem 0}"]],["__scopeId","data-v-0a1519b3"]]);var Tf={exports:{}},ZZ=Tf.exports,RD;function JZ(){return RD||(RD=1,(function(e,t){(function(n,i){i()})(ZZ,function(){function n(u,h){return typeof h>"u"?h={autoBom:!1}:typeof h!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),h={autoBom:!h}),h.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function i(u,h,f){var g=new XMLHttpRequest;g.open("GET",u),g.responseType="blob",g.onload=function(){l(g.response,h,f)},g.onerror=function(){console.error("could not download file")},g.send()}function o(u){var h=new XMLHttpRequest;h.open("HEAD",u,!1);try{h.send()}catch{}return 200<=h.status&&299>=h.status}function r(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var h=document.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(h)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Wi=="object"&&Wi.global===Wi?Wi:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(u,h,f){var g=s.URL||s.webkitURL,m=document.createElement("a");h=h||u.name||"download",m.download=h,m.rel="noopener",typeof u=="string"?(m.href=u,m.origin===location.origin?r(m):o(m.href)?i(u,h,f):r(m,m.target="_blank")):(m.href=g.createObjectURL(u),setTimeout(function(){g.revokeObjectURL(m.href)},4e4),setTimeout(function(){r(m)},0))}:"msSaveOrOpenBlob"in navigator?function(u,h,f){if(h=h||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(n(u,f),h);else if(o(u))i(u,h,f);else{var g=document.createElement("a");g.href=u,g.target="_blank",setTimeout(function(){r(g)})}}:function(u,h,f,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof u=="string")return i(u,h,f);var m=u.type==="application/octet-stream",v=/constructor/i.test(s.HTMLElement)||s.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||m&&v||a)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var S=b.result;S=w?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=S:location=S,g=null},b.readAsDataURL(u)}else{var y=s.URL||s.webkitURL,R=y.createObjectURL(u);g?g.location=R:location.href=R,g=null,setTimeout(function(){y.revokeObjectURL(R)},4e4)}});s.saveAs=l.saveAs=l,e.exports=l})})(Tf)),Tf.exports}var XZ=JZ();const eJ=nw(XZ),tJ=Vi.injectEndpoints({endpoints:e=>({exportContributions:e.mutation({query:({user:t,company:n,stack:i,username:o,format:r,columnsState:s=null,sortColumn:a=null,sortOrder:l=null,match:u=!1,body:h})=>({url:`/contributions/search/export?user=${encodeURIComponent(t)}&company=${encodeURIComponent(n)}&stack=${encodeURIComponent(i)}&username=${encodeURIComponent(o)}&format=${r}&columnsState=${JSON.stringify(s)}${a&&l?`&sortColumn=${a}&sortOrder=${l}`:""}&match=${u}`,method:"POST",body:h,responseHandler:f=>f.headers.get("Content-Type")?.includes("/json")?f.json():f.blob()}),transformResponse:(t,n)=>{const o=n?.response?.headers?.get("Content-Disposition")?.match(/filename="?([^"]+)"?/)?.[1]??`contributions_export_${new Date().toISOString().split("T")[0]}`;return t instanceof Blob&&eJ(t,o),o}})})});function xD(){return ma(tJ.endpoints.exportContributions)}const nJ="3c7efRwnq2C5f4NnnvM12Q==",iJ="SZb/VbiIJxsmiO5+8HmGZg==",oJ="x054VnMWM65BNwSK0wtjPQ==",rJ={class:"content-container","aria-description":"main content container"},sJ={class:"content-title","aria-description":"content title"},aJ={key:0,"aria-description":"export actions"},lJ=["disabled"],cJ={class:"content","aria-description":"page content"},aw=Bt(wt({__name:"ContentContainer",props:{title:{type:String},user:{default:()=>iJ,type:String},company:{default:()=>nJ,type:String},stack:{default:"QA01",type:String},username:{default:()=>oJ,type:String},columnsState:{default:null,type:[Array,null]},sortColumn:{default:null,type:[String,null]},sortOrder:{default:null,type:[String,null]},page:{default:"contribution-search",type:String},showExport:{type:Boolean,default:!0},disableExport:{type:Boolean,default:!1}},setup(e){const t=wD(m=>m.ContributionSearchReducer),{trigger:n,isLoading:i}=xD(),o=e.page==="detected-contributions",r=de(()=>t.value?.[e.page]??void 0),s=be(null),a=be(null),l=be({}),u=be(!1),h=(m="xlsx",v=null,w=null,b=null)=>{!r.value||e.disableExport||(s.value?.close(),u.value=!1,console.log("Exporting contributions with subsequent search body:"),console.log(r),n({user:e.user,company:e.company,stack:e.stack,username:e.username,format:m,columnsState:v,sortColumn:w,sortOrder:b,match:o,body:r.value}))},f=async()=>{const m=s.value,v=a.value;if(!m||!v)return;const w=v?.getBoundingClientRect(),b=190,y=8,R=Math.max(y,Math.min(w.right-b,window.innerWidth-b-y)),S=Math.min(w.bottom+y,window.innerHeight-120);l.value={position:"absolute",top:`${S}px`,left:`${R}px`,margin:"0"},await Mr(),m?.showModal(),u.value=!0},g=m=>{e.disableExport||i.value||(u.value?m.target===s.value&&(s.value?.close(),u.value=!1):f())};return(m,v)=>{const w=Ts("font-awesome-icon");return se(),pe(bt,null,[q("div",rJ,[q("header",null,[q("h1",sJ,Je(e.title),1),e.page&&e.showExport?(se(),pe("span",aJ,[q("button",{class:"export-button",ref_key:"exportModalButton",ref:a,disabled:Vn(i)||e.disableExport,onClick:mt(g,["prevent"]),"aria-description":"export button"},[Oe(w,{class:"contributions-export-download-icon",icon:["fas","download"],size:"medium"})],8,lJ)])):gt("",!0)]),q("div",cJ,[As(m.$slots,"content",{},void 0)])]),q("dialog",{class:"contributions-export-modal",ref_key:"exportModal",ref:s,style:Uo(l.value),onClick:g},[q("button",{onClick:v[0]||(v[0]=mt(b=>h("xlsx",e.columnsState,e.sortColumn,e.sortOrder),["stop"]))},[Oe(w,{class:"export-excel-icon",icon:["fas","file-excel"],size:"small"}),v[1]||(v[1]=to("Export to Excel",-1))])],4)],64)}}}),[["styles",["a[data-v-aba70dec],button[data-v-aba70dec]{cursor:pointer}.content-container[data-v-aba70dec]{background:var(--color-white);display:flex;flex-direction:column;padding:1.25rem}.content-container header[data-v-aba70dec]{align-items:center;border-bottom:.0625rem solid var(--color-primary-grey);display:flex;justify-content:space-between;margin-bottom:1.5rem}.content-container header button[data-v-aba70dec]{background:transparent;border:none;border-radius:.25rem;color:var(--color-primary-green);font-size:xx-large;padding:.5rem;text-decoration:none}.content-container header button[data-v-aba70dec]:disabled{cursor:not-allowed;opacity:.5}.content-container header button[data-v-aba70dec]:hover{background:var(--color-green-50)}.content-title[data-v-aba70dec]{font-size:1.5rem;font-weight:500;margin-bottom:1rem}.contributions-export-download-icon[data-v-aba70dec]{height:2rem;width:2.5rem}.contributions-export-modal[data-v-aba70dec]{border:.1rem solid var(--color-primary-grey);box-shadow:.1875rem .15625rem .15625rem var(--color-secondary-grey);opacity:0;padding:.25rem 0;transform:translateY(-.25rem);transition:opacity .2s ease,transform .2s ease,overlay .2s ease allow-discrete;width:fit-content}.contributions-export-modal[open][data-v-aba70dec]{opacity:1;transform:translateY(0)}@starting-style{.contributions-export-modal[open][data-v-aba70dec]{opacity:0;transform:translateY(-.25rem)}}.contributions-export-modal button[data-v-aba70dec]{background:transparent;border:none;display:block;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.875rem;padding:.5rem 1rem}.contributions-export-modal button[data-v-aba70dec]:hover{background:var(--color-green-50)}.contributions-export-modal button svg[data-v-aba70dec]{margin-right:.5rem}.contributions-export-modal button .export-excel-icon[data-v-aba70dec]{color:var(--color-green);height:2rem;vertical-align:middle;width:1rem}.contributions-export-modal button .export-pdf-icon[data-v-aba70dec]{color:var(--color-red);height:2rem;vertical-align:middle;width:1rem}[data-v-aba70dec]::backdrop{background:transparent}"]],["__scopeId","data-v-aba70dec"]]),uJ=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},dJ=wt({name:"ClipLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},size:{type:String,default:"35px"},radius:{type:String,default:"100%"}},setup(e){return{spinnerStyle:de(()=>({height:e.size,width:e.size,borderWidth:"2px",borderStyle:"solid",borderColor:e.color+" "+e.color+" transparent",borderRadius:e.radius,background:"transparent"}))}}}),hJ={class:"v-spinner"};function fJ(e,t,n,i,o,r){return Ps((se(),pe("div",hJ,[q("div",{class:"v-clip",style:Uo(e.spinnerStyle)},null,4)],512)),[[sp,e.loading]])}const gJ=uJ(dJ,[["render",fJ],["__scopeId","data-v-8e9283de"]]),pJ={class:"loading-overlay"},mJ={key:0},vJ="#0a8f2a",lw=Bt(wt({__name:"LoadingSpinner",props:{loadingText:{default:null,type:String},size:{default:null,type:Number}},setup(e){const t=be(`${e.size?e.size:120}px`);return(n,i)=>(se(),pe("div",pJ,[Oe(Vn(gJ),{loading:!0,size:t.value,color:vJ},null,8,["size"]),e.loadingText?(se(),pe("span",mJ,Je(e.loadingText),1)):gt("",!0)]))}}),[["styles",[".loading-overlay[data-v-c04b44eb]{align-items:center;display:flex;flex-direction:column;gap:12px;height:100%;justify-content:center}"]],["__scopeId","data-v-c04b44eb"]]);function CJ(e){const{contribution:t,match:n}=e,i=n.preclearance,o=n.created,r=typeof o=="string"&&o.length>0?o.slice(0,10):"";return{contributionId:t.id,reference:i.name,contributor:t.contributor,employer:t.employer,occupation:t.occupation,address:t.address,state:t.state,zipCode:t.zipCode,date:t.date,dateDetected:r,amount:ow(t.amount),approvedAmount:ow(i.amount),recipient:t.recipient,source:t.source,jurisdiction:t.jurisdiction,status:n.status,employeeStatus:n.employee.status,reconciliationStatus:i.reconciliationStatus,preclearanceLabel:i.name,preclearanceId:i.id,amended:String(t.amended)==="true"?"Yes":"No",approvalDate:i.approvalDate,lastUpdated:MY(n.modified),lastUpdatedBy:n.modifiedBy}}const wJ=e=>{const t=Number(e.replace(/\/+$/,"").split("/").pop());return Number.isFinite(t)?t:void 0};function bJ(){const e=window.location.search;new URLSearchParams(e).get("id");const n=be(window.location.pathname),i=()=>{n.value=window.location.pathname};return kr(()=>{i(),window.addEventListener("popstate",i)}),pd(()=>{window.removeEventListener("popstate",i)}),de(()=>wJ(n.value))}const yJ=Vi.injectEndpoints({endpoints:e=>({getContributionDetails:e.query({query:({id:t,user:n,company:i,stack:o,username:r})=>({url:`/contributions/${t}`,params:{user:n,company:i,stack:o,username:r}})})})});function SJ(e){return Ru(yJ.endpoints.getContributionDetails,e)}const FD=Vi.injectEndpoints({endpoints:e=>({addContributionNote:e.mutation({query:({contribution:t,user:n,company:i,stack:o,username:r,body:s})=>({url:`/contributions/${t}/notes`,method:"POST",params:{user:n,company:i,stack:o,username:r},body:s})}),addContributionNoteBulk:e.mutation({query:({user:t,company:n,stack:i,username:o,body:r})=>({url:"/contributions/notes",method:"POST",params:{user:t,company:n,stack:i,username:o},body:r})})})});function RJ(){return ma(FD.endpoints.addContributionNote)}function xJ(){return ma(FD.endpoints.addContributionNoteBulk)}const PD=Vi.injectEndpoints({endpoints:e=>({updateContributionStatus:e.mutation({query:({contribution:t,user:n,company:i,stack:o,username:r,body:s})=>({url:`/contributions/${t}/status`,method:"POST",params:{user:n,company:i,stack:o,username:r},body:s})}),updateContributionsStatusBulk:e.mutation({query:({user:t,company:n,stack:i,username:o,body:r})=>({url:"/contributions/status",method:"POST",params:{user:t,company:n,stack:i,username:o},body:r})})})});function FJ(){return ma(PD.endpoints.updateContributionStatus)}function PJ(){return ma(PD.endpoints.updateContributionsStatusBulk)}const EJ=Vi.injectEndpoints({endpoints:e=>({getUsers:e.query({query:t=>`/users/${encodeURIComponent(t)}`})})});function DJ(e){return Ru(EJ.endpoints.getUsers,e)}const TJ={class:"contribution-details-stack","aria-description":"Contribution details layout stack"},AJ={key:0,class:"contribution-details-loading","aria-description":"Contribution details loading state"},IJ={key:1,"aria-description":"Contribution details load error"},MJ=Bt(wt({__name:"ContributionDetails",props:{user:{type:String},company:{type:String},stack:{type:String},username:{type:String}},setup(e){const t=e,n=bJ(),i=de(()=>({user:t.user,company:t.company,stack:t.stack,username:t.username})),{data:o}=DJ(aM(t,"user")),{data:r,isLoading:s,isError:a,refetch:l}=SJ(de(()=>({id:Number(n.value)||0,...i.value}))),{trigger:u}=RJ(),{trigger:h}=FJ(),{trigger:f}=IY(),g=de(()=>{const A=o.value;return A&&([A.firstName,A.lastName].filter(Boolean).join(" ").trim()||A.email||A.username)||"Guest"}),m=be({}),v=de(()=>{const A=r.value;return A?{...CJ(A),...m.value}:null}),w=de(()=>r.value?.match.notes??[]),b=de(()=>n.value!==void 0&&s.value),y=de(()=>n.value===void 0?"Invalid contribution id":a.value?"Failed to load contribution":null);Jt(n,()=>{m.value={}});const R=A=>{m.value={...m.value,...A}},S=async(A,k="user")=>{const L=n.value;if(L!==void 0)try{await u({contribution:Number(L),...i.value,body:{note:A,type:k}}),await l()}catch(N){console.error("Failed to add note",N)}},P=async A=>{const k=n.value;if(k!==void 0)try{await f({id:k,body:{preclearance:A.preclearanceId}}),R({preclearanceId:A.preclearanceId,preclearanceLabel:A.preclearanceLabel}),await S(`${g.value} matched preclearance to ${A.preclearanceLabel} on ${yD(new Date)}`,"system")}catch(L){console.error("Failed to match preclearance",L)}},F=async A=>{const k=n.value,L=v.value;if(!(k===void 0||!L||L.status===A.name))try{await h({contribution:Number(k),...i.value,body:{status:A.id}}),await l()}catch(N){console.error("Failed to update contribution status",N)}};return(A,k)=>(se(),an(aw,{title:"Contribution Details","show-export":!1},{content:zn(()=>[q("div",TJ,[b.value?(se(),pe("div",AJ,[Oe(lw,{size:64})])):y.value?(se(),pe("div",IJ,Je(y.value),1)):(se(),pe(bt,{key:2},[v.value?(se(),an(wZ,{key:0,contribution:v.value,user:e.user,company:e.company,stack:e.stack,username:e.username,onClearPreclearance:k[0]||(k[0]=L=>R({preclearanceId:null,preclearanceLabel:""})),onMatchPreclearance:P,onUpdateStatus:F},null,8,["contribution","user","company","stack","username"])):gt("",!0),Oe(YZ,{notes:w.value,onAddNote:S},null,8,["notes"])],64))])]),_:1}))}}),[["styles",[".contribution-details-loading[data-v-8cfa7346]{min-height:12rem}.contribution-details-stack[data-v-8cfa7346]{display:flex;flex-direction:column;gap:1rem}"]],["__scopeId","data-v-8cfa7346"]]),kJ={class:"body"},LJ=wt({__name:"ContributionDetails.ce",props:{user:{type:String},company:{type:String},stack:{type:String},username:{type:String}},setup(e){return(t,n)=>(se(),pe("div",kJ,[Oe(MJ,{user:e.user,company:e.company,stack:e.stack,username:e.username},null,8,["user","company","stack","username"])]))}}),cw=':root,:host{--color-black: #000000;--color-white: #ffffff;--color-green: #008000;--color-red: #db0400;--color-primary-green: #0a8f2a;--color-secondary-green: #eaf2ee;--color-green-50: #f0f5f0;--color-green-100: #e1ece4;--color-green-200: #d4e3d7;--color-green-300: #c7daca;--color-green-400: #bad1bd;--color-green-500: #adc2b0;--color-green-900: #2b342c;--color-brand-dark-50: #e5fff1;--color-brand-dark-100: #b8e2cb;--color-brand-dark-500: #006e33;--color-brand-dark-800: #003c1c;--color-brand-dark-900: #002b14;--color-brand-medium-500: #00892f;--color-brand-medium-600: #007229;--color-brand-bright-100: #c4f0cd;--color-brand-bright-200: #9ee6ad;--color-primary-black: #1c2b2d;--color-primary-grey: #d9d9d9;--color-secondary-grey: #d7e3dc;--color-grey-50: #fbf9fa;--color-grey-300: #c9d0cc;--color-grey-400: #8e8e8e;--color-grey-500: #757575;--color-grey-600: #5f6361;--color-grey-700: #4c4c4c;--color-grey-900: #222222;--color-yellow-700: #c07a00;--color-red-700: #c10007}#app{background:var(--color-primary-grey);color:var(--color-primary-black);display:flex;height:100vh;width:100%}:host,:root{--font-family-base: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;--topbar-border-bottom-height: .0625rem;--topbar-height: 4rem}body,.body{color:var(--color-primary-black);font-family:var(--font-family-base);margin:0}.docs-story,.sb-show-main,.sbdocs,.sbdocs-content,.sbdocs-preview,.sbdocs-wrapper,#storybook-docs,#storybook-root{font-family:var(--font-family-base)}.v-spinner .v-clip{animation:v-clipDelay .75s 0s infinite linear;border-radius:100%;color:var(--color-primary-green)}@keyframes v-clipDelay{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}',OJ=Bt(LJ,[["styles",[cw,".body>*{width:100%}"]]]),ED=6e4,DD=36e5,TD=Symbol.for("constructDateFrom");function AD(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&TD in e?e[TD](t):e instanceof Date?new e.constructor(t):new Date(t)}function Af(e,t){return AD(e,e)}function _J(e,t){return+Af(e)>+Af(t)}function ID(e,t){const n=()=>AD(t?.in,NaN),o=GJ(e);let r;if(o.date){const u=VJ(o.date,2);r=WJ(u.restDateString,u.year)}if(!r||isNaN(+r))return n();const s=+r;let a=0,l;if(o.time&&(a=zJ(o.time),isNaN(a)))return n();if(o.timezone){if(l=UJ(o.timezone),isNaN(l))return n()}else{const u=new Date(s+a),h=Af(0);return h.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),h.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),h}return Af(s+a+l)}const If={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},NJ=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,BJ=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,HJ=/^([+-])(\d{2})(?::?(\d{2}))?$/;function GJ(e){const t={},n=e.split(If.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],If.timeZoneDelimiter.test(t.date)&&(t.date=e.split(If.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const o=If.timezone.exec(i);o?(t.time=i.replace(o[1],""),t.timezone=o[1]):t.time=i}return t}function VJ(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};const o=i[1]?parseInt(i[1]):null,r=i[2]?parseInt(i[2]):null;return{year:r===null?o:r*100,restDateString:e.slice((i[1]||i[2]).length)}}function WJ(e,t){if(t===null)return new Date(NaN);const n=e.match(NJ);if(!n)return new Date(NaN);const i=!!n[4],o=xu(n[1]),r=xu(n[2])-1,s=xu(n[3]),a=xu(n[4]),l=xu(n[5])-1;if(i)return QJ(t,a,l)?$J(t,a,l):new Date(NaN);{const u=new Date(0);return!KJ(t,r,s)||!qJ(t,o)?new Date(NaN):(u.setUTCFullYear(t,r,Math.max(o,s)),u)}}function xu(e){return e?parseInt(e):1}function zJ(e){const t=e.match(BJ);if(!t)return NaN;const n=uw(t[1]),i=uw(t[2]),o=uw(t[3]);return YJ(n,i,o)?n*DD+i*ED+o*1e3:NaN}function uw(e){return e&&parseFloat(e.replace(",","."))||0}function UJ(e){if(e==="Z")return 0;const t=e.match(HJ);if(!t)return 0;const n=t[1]==="+"?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return ZJ(i,o)?n*(i*DD+o*ED):NaN}function $J(e,t,n){const i=new Date(0);i.setUTCFullYear(e,0,4);const o=i.getUTCDay()||7,r=(t-1)*7+n+1-o;return i.setUTCDate(i.getUTCDate()+r),i}const jJ=[31,null,31,30,31,30,31,31,30,31,30,31];function MD(e){return e%400===0||e%4===0&&e%100!==0}function KJ(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(jJ[t]||(MD(e)?29:28))}function qJ(e,t){return t>=1&&t<=(MD(e)?366:365)}function QJ(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function YJ(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function ZJ(e,t){return t>=0&&t<=59}const JJ=["aria-description"],XJ={class:"sources-checkbox-label"},eX=["value"],tX={class:"sources-checkbox-label-text","aria-description":"source display name"},dw=Bt(wt({__name:"ContributionSearchSourceCheckboxRow",props:Jo({isNested:{type:Boolean,default:!1},source:{type:Object}},{selectedSourceIndexes:{required:!0},selectedSourceIndexesModifiers:{}}),emits:["update:selectedSourceIndexes"],setup(e){const t=e,n=gi(e,"selectedSourceIndexes"),i=`contribution-search-source-${t.source.name}`;return(o,r)=>(se(),pe("div",{class:ft(["sources-checkbox-row",{"sources-checkbox-row-nested":e.isNested}]),role:"group","aria-description":e.isNested?"nested source checkbox row":"source checkbox row"},[q("label",XJ,[Ps(q("input",{id:i,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),type:"checkbox",name:"sources",value:e.source.name},null,8,eX),[[dp,n.value]]),q("span",tX,Je(e.source.label),1)])],10,JJ))}}),[["styles",[`.sources-checkbox-label[data-v-582fd460]{align-items:center;color:var(--color-primary-black);cursor:pointer;display:flex;font-size:.8125rem;gap:.375rem;line-height:1.35;padding:.125rem}.sources-checkbox-label[data-v-582fd460]:hover{background-color:var(--color-green-50)}.sources-checkbox-label input[type=checkbox][data-v-582fd460]{appearance:none;background-color:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.125rem;cursor:pointer;flex-shrink:0;height:1rem;margin-top:.125rem;width:1rem}.sources-checkbox-label input[type=checkbox][data-v-582fd460]:checked{background-color:var(--color-primary-green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:.625rem .5rem;border-color:var(--color-primary-green)}.sources-checkbox-row-nested .sources-checkbox-label[data-v-582fd460]{font-size:.75rem}`]],["__scopeId","data-v-582fd460"]]),Mf=e=>[e.source.name,...e.children.flatMap(t=>Mf(t))],nX=(e,t)=>{if(t.length===0||e.length===0)return t;const n=new Set(t),i=o=>{if(o.children.length>0&&n.has(o.source.name))for(const r of Mf(o))n.add(r);for(const r of o.children)i(r)};for(const o of e)i(o);return[...n]},iX=e=>{const t=new Set,n=i=>{i.children.length>0&&t.add(i.source.name);for(const o of i.children)n(o)};for(const i of e)n(i);return t},kD=(e,t)=>e.filter(n=>!t.has(n)),oX=(e,t)=>{if(t.length===0||e.length===0)return t;const n=new Set(t),i=o=>{if(o.children.length>0){const r=Mf(o).filter(a=>a!==o.source.name);r.length>0&&r.every(a=>n.has(a))?n.add(o.source.name):n.delete(o.source.name)}for(const r of o.children)i(r)};for(const o of e)i(o);return[...n]},rX={class:"source-group-header-row","aria-description":"parent source with expand control"},sX=["aria-expanded","aria-label"],aX={class:"source-group-child-list"},lX=["aria-selected"],cX=Bt(wt({__name:"ContributionSearchSourceGroupDropdown",props:Jo({depth:{default:0,type:Number},sourceDisplayNode:{type:Object}},{selectedSourceIndexes:{required:!0},selectedSourceIndexesModifiers:{}}),emits:["update:selectedSourceIndexes"],setup(e){const t=e,n=gi(e,"selectedSourceIndexes"),i=be(!1),o=be(!1),r=de(()=>t.sourceDisplayNode.source.name),s=de(()=>Mf(t.sourceDisplayNode).filter(v=>v!==r.value)),a=de(()=>n.value.includes(r.value)),l=de(()=>s.value.length===0?!0:s.value.every(v=>n.value.includes(v))),u=de(()=>`Show or hide child sources for ${t.sourceDisplayNode.source.label}`),h=()=>{i.value=!i.value},f=(v,w)=>{if(!(o.value||v===w||s.value.length===0)){if(o.value=!0,v)n.value=xe.uniq([...n.value,...s.value]);else if(l.value){const b=new Set(s.value);n.value=n.value.filter(y=>!b.has(y))}o.value=!1}},g=()=>{if(o.value||s.value.length===0)return;const v=l.value,w=a.value;v!==w&&(o.value=!0,v?n.value=xe.uniq([...n.value,r.value]):n.value=n.value.filter(b=>b!==r.value),o.value=!1)},m=de(()=>s.value.filter(v=>n.value.includes(v)).sort().join(","));return Jt(a,f,{immediate:!0}),Jt(m,g,{immediate:!0}),(v,w)=>{const b=Ts("ContributionSearchSourceGroupDropdown",!0);return se(),pe("section",{class:ft(["source-group",{"source-group-nested":e.depth>0}]),style:Uo(e.depth>0?{marginLeft:`${e.depth*.75}rem`}:void 0),"aria-description":"collapsible parent source group"},[q("header",rX,[Oe(dw,{source:e.sourceDisplayNode.source,"is-nested":e.depth>0,"selected-source-indexes":n.value,"onUpdate:selectedSourceIndexes":w[0]||(w[0]=y=>n.value=y)},null,8,["source","is-nested","selected-source-indexes"]),q("button",{type:"button",class:"source-group-caret-button","aria-expanded":i.value,"aria-label":u.value,onClick:h},[q("i",{class:ft(["fa-chevron-down fa-solid source-group-chevron",{"source-group-chevron-expanded":i.value}]),"aria-hidden":"true"},null,2)],8,sX)]),Oe(Rd,{name:"source-group-panel"},{default:zn(()=>[i.value?(se(),pe("section",{key:0,class:"source-group-panel","aria-description":"expanded child source checkboxes",onClick:w[3]||(w[3]=mt(()=>{},["stop"]))},[q("ul",aX,[(se(!0),pe(bt,null,Ii(e.sourceDisplayNode.children,y=>(se(),pe("li",{key:y.source.name,class:"source-group-child-item",role:"option","aria-selected":n.value.includes(y.source.name)},[y.children.length>0?(se(),an(b,{key:0,"source-display-node":y,depth:e.depth+1,"selected-source-indexes":n.value,"onUpdate:selectedSourceIndexes":w[1]||(w[1]=R=>n.value=R)},null,8,["source-display-node","depth","selected-source-indexes"])):(se(),an(dw,{key:1,source:y.source,"is-nested":"","selected-source-indexes":n.value,"onUpdate:selectedSourceIndexes":w[2]||(w[2]=R=>n.value=R)},null,8,["source","selected-source-indexes"]))],8,lX))),128))])])):gt("",!0)]),_:1})],6)}}}),[["styles",[".source-group[data-v-76a4741b]{display:flex;flex-direction:column;gap:.25rem}.source-group-caret-button[data-v-76a4741b]{background:transparent;border:none;color:var(--color-primary-black);cursor:pointer;flex-shrink:0;line-height:1;margin-top:.125rem;padding:.125rem}.source-group-caret-button[data-v-76a4741b]:hover{color:var(--color-primary-green)}.source-group-chevron[data-v-76a4741b]{font-size:.75rem;transform:rotate(-90deg);transition:transform .2s ease}.source-group-chevron-expanded[data-v-76a4741b]{transform:rotate(0)}.source-group-child-item[data-v-76a4741b]{list-style:none;margin:0;padding:0}.source-group-child-list[data-v-76a4741b]{display:flex;flex-direction:column;gap:.375rem;list-style:none;margin:0;padding:0}.source-group-header-row[data-v-76a4741b]{align-items:flex-start;display:flex;gap:.25rem;width:100%}.source-group-header-row[data-v-76a4741b] .sources-checkbox-label{flex:1;min-width:0}.source-group-panel[data-v-76a4741b]{margin-left:.5rem;padding:.375rem 0 0 .625rem}.source-group-panel-enter-active[data-v-76a4741b],.source-group-panel-leave-active[data-v-76a4741b]{transition:opacity .2s ease,transform .2s ease}.source-group-panel-enter-from[data-v-76a4741b],.source-group-panel-leave-to[data-v-76a4741b]{opacity:0;transform:translateY(-.25rem)}"]],["__scopeId","data-v-76a4741b"]]),LD=e=>String(e.id),OD=e=>{const t=xe.keyBy(e,LD),n={};for(const r of e){const s=r.parent;s&&t[s]&&(n[s]||(n[s]=[]),n[s].push(r))}const i=r=>({source:r,children:(n[LD(r)]??[]).sort((s,a)=>s.label.localeCompare(a.label)).map(s=>i(s))});return e.filter(r=>!r.parent||!t[r.parent]).sort((r,s)=>r.label.localeCompare(s.label)).map(r=>i(r))},uX=Vi.injectEndpoints({endpoints:e=>({getSources:e.query({query:({id:t=null})=>({url:t?`/sources/${t}`:"/sources/getAllSources"})})})});function dX(e){return Ru(uX.endpoints.getSources,e)}const hX={class:"sources-select","aria-description":"sources multi-select field"},fX=["aria-expanded","aria-label"],gX={class:"sources-dropdown-count"},pX=["aria-label"],mX={key:1,class:"sources-empty-message"},vX={key:2,class:"sources-options","aria-description":"source checkbox options"},CX={class:"sources-select-all-list"},wX={class:"sources-select-all-item"},bX={class:"sources-checkbox-label sources-select-all-label"},yX={class:"sources-list"},SX=["aria-selected"],RX=Bt(wt({__name:"ContributionSearchSourcesSelect",props:{selectedSourceIndexes:{default:()=>[]},selectedSourceIndexesModifiers:{}},emits:["update:selectedSourceIndexes"],setup(e){const t=gi(e,"selectedSourceIndexes"),n=yo({}),{data:i,isLoading:o}=dX(n),r=be(!1),s=be(null),a=be(null),l=be(null),u=be(!1),h=be(!1),f=de(()=>{const E=i.value;return E?Array.isArray(E)?E:[E]:[]}),g=de(()=>OD(f.value)),m=de(()=>iX(g.value)),v=de(()=>f.value.map(E=>E.name)),w=de(()=>kD(v.value,m.value)),b=de(()=>kD(t.value,m.value)),y=de(()=>b.value.length),R=de(()=>{const E=w.value;return E.length===0?!1:E.every(I=>t.value.includes(I))}),S=de(()=>y.value>0&&!R.value),P=de({get:()=>R.value,set:E=>{t.value=E?[...v.value]:[]}}),F=de(()=>{const E=y.value;return E===1?"1 source selected":`${E} sources selected`}),A=()=>{r.value=!r.value},k=()=>{r.value=!1},L=(E,I)=>{if(xe.isEmpty(I)||E.length===0)return I;const B=I.map(W=>E.some(me=>me.name===W)?W:E.find(me=>me.label===W)?.name??W);return xe.uniq(B).filter(W=>E.some(J=>J.name===W))},N=(E,I)=>{if(E.length===0)return;h.value=!0;let B=[...t.value];if(B=L(E,B),!xe.isEmpty(B)){const W=OD(E);B=nX(W,B),B=oX(W,B)}I&&!u.value&&(u.value=!0,xe.isEmpty(B)&&(B=E.map(W=>W.name))),xe.isEqual([...B].sort(),[...t.value].sort())||(t.value=B),h.value=!1};Jt(f,E=>{N(E,!0)},{flush:"post",immediate:!0}),Jt(t,()=>{h.value||N(f.value,!1)},{deep:!0,flush:"post"}),Jt([S,R],()=>{l.value&&(l.value.indeterminate=S.value)},{flush:"post"});const M=E=>{if(r.value){{const I=E.target;if(a.value?.contains(I)||s.value?.contains(I))return}k()}};return kr(()=>{document.addEventListener("click",M)}),Ds(()=>{document.removeEventListener("click",M)}),(E,I)=>(se(),pe("section",hX,[q("section",{class:"sources-dropdown","aria-description":"sources checkbox dropdown",onKeydown:Xt(k,["esc"])},[q("button",{ref_key:"dropdownButtonRef",ref:s,type:"button",class:ft(["sources-dropdown-button",{"sources-dropdown-button-open":r.value}]),"aria-expanded":r.value,"aria-haspopup":"listbox","aria-label":`Sources, ${F.value}`,onClick:mt(A,["stop"])},[q("span",gX,Je(y.value),1),I[4]||(I[4]=q("span",{class:"sources-dropdown-title"},"Sources Selected",-1)),q("i",{class:ft(["fa-solid fa-chevron-down sources-dropdown-chevron",{"sources-dropdown-chevron-open":r.value}]),"aria-hidden":"true"},null,2)],10,fX),Oe(Rd,{name:"sources-dropdown"},{default:zn(()=>[r.value?(se(),pe("section",{key:0,ref_key:"dropdownPanelRef",ref:a,class:"sources-dropdown-panel","aria-description":"sources checkbox list panel",role:"listbox","aria-multiselectable":"true","aria-label":F.value,onClick:I[3]||(I[3]=mt(()=>{},["stop"]))},[Vn(o)?(se(),an(lw,{key:0,size:48,"loading-text":"Loading sources…"})):f.value.length===0?(se(),pe("p",mX," No sources available. ")):(se(),pe("section",vX,[q("ul",CX,[q("li",wX,[q("label",bX,[Ps(q("input",{id:"contribution-search-source-select-all",ref_key:"selectAllCheckboxRef",ref:l,"onUpdate:modelValue":I[0]||(I[0]=B=>P.value=B),type:"checkbox",name:"sources-select-all"},null,512),[[dp,P.value]]),I[5]||(I[5]=to(" ALL SOURCES ",-1))])])]),q("ul",yX,[(se(!0),pe(bt,null,Ii(g.value,B=>(se(),pe("li",{key:B.source.name,class:"sources-list-item",role:"option","aria-selected":t.value.includes(B.source.name)},[B.children.length>0?(se(),an(cX,{key:0,"source-display-node":B,"selected-source-indexes":t.value,"onUpdate:selectedSourceIndexes":I[1]||(I[1]=W=>t.value=W)},null,8,["source-display-node","selected-source-indexes"])):(se(),an(dw,{key:1,source:B.source,"selected-source-indexes":t.value,"onUpdate:selectedSourceIndexes":I[2]||(I[2]=W=>t.value=W)},null,8,["source","selected-source-indexes"]))],8,SX))),128))])]))],8,pX)):gt("",!0)]),_:1})],32)]))}}),[["styles",[`.sources-checkbox-label[data-v-1b13abb9]{align-items:center;color:var(--color-primary-black);cursor:pointer;display:flex;font-size:.8125rem;gap:.375rem;line-height:1.35;padding:.125rem}.sources-checkbox-label[data-v-1b13abb9]:hover{background-color:var(--color-green-50)}.sources-checkbox-label input[type=checkbox][data-v-1b13abb9]{appearance:none;background-color:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.125rem;cursor:pointer;flex-shrink:0;height:1rem;margin-top:.125rem;width:1rem}.sources-checkbox-label input[type=checkbox][data-v-1b13abb9]:checked{background-color:var(--color-primary-green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:.625rem .5rem;border-color:var(--color-primary-green)}.sources-checkbox-label input[type=checkbox][data-v-1b13abb9]:indeterminate{background-color:var(--color-primary-green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-width='2' d='M2 6h8'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:.625rem;border-color:var(--color-primary-green)}.sources-dropdown[data-v-1b13abb9]{position:relative}.sources-dropdown-button[data-v-1b13abb9]{align-items:center;background:var(--color-white);border:.0625rem solid var(--color-green-400);border-radius:.25rem;box-sizing:border-box;color:var(--color-grey-900);cursor:pointer;display:flex;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:1rem;gap:.375rem;height:3rem;padding:.75rem 1rem;width:100%}.sources-dropdown-button[data-v-1b13abb9]:focus-visible,.sources-dropdown-button-open[data-v-1b13abb9]{border:.125rem solid var(--color-brand-bright-200);outline:0}.sources-dropdown-button[data-v-1b13abb9]:hover{background-color:var(--color-green-50)}.sources-dropdown-chevron[data-v-1b13abb9]{font-size:.75rem;margin-left:auto;opacity:.85;transform:rotate(0);transition:transform .2s ease}.sources-dropdown-chevron-open[data-v-1b13abb9]{transform:rotate(180deg)}.sources-dropdown-count[data-v-1b13abb9]{background-color:var(--color-brand-medium-500);border-radius:6.25rem;box-sizing:border-box;color:var(--color-white);font-size:.75rem;font-weight:400;height:1.5rem;line-height:1.125rem;padding:.25rem .5rem;text-align:center}.sources-dropdown-enter-active[data-v-1b13abb9],.sources-dropdown-leave-active[data-v-1b13abb9]{transition:opacity .2s ease,transform .2s ease}.sources-dropdown-enter-from[data-v-1b13abb9],.sources-dropdown-leave-to[data-v-1b13abb9]{opacity:0;transform:translateY(-.25rem)}.sources-dropdown-panel[data-v-1b13abb9]{background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.375rem;box-shadow:0 .625rem 1.5rem #00000014;left:0;margin-top:.375rem;max-height:min(70vh,24rem);max-width:36rem;overflow-x:hidden;overflow-y:auto;padding:.75rem;position:absolute;top:100%;width:100%;z-index:3}.sources-empty-message[data-v-1b13abb9]{color:var(--color-primary-black);font-size:.875rem;margin:0}.sources-list[data-v-1b13abb9]{display:grid;gap:.5rem 1rem;grid-template-columns:1fr 1fr;list-style:none;margin:0;padding:0}.sources-list-item[data-v-1b13abb9]{list-style:none;margin:0;min-width:0;padding:0}.sources-options[data-v-1b13abb9]{display:flex;flex-direction:column;gap:.5rem}.sources-select[data-v-1b13abb9]{display:flex;flex-direction:column;gap:.35rem;margin-top:1rem;min-width:0;width:100%}.sources-select-all-item[data-v-1b13abb9]{list-style:none}.sources-select-all-label[data-v-1b13abb9]{color:var(--color-red);font-weight:600}.sources-select-all-list[data-v-1b13abb9]{border-bottom:.0625rem solid var(--color-primary-grey);list-style:none;margin:0;padding:0 0 .5rem}`]],["__scopeId","data-v-1b13abb9"]]),_D=[{value:"AL",label:"Alabama"},{value:"AK",label:"Alaska"},{value:"AZ",label:"Arizona"},{value:"AR",label:"Arkansas"},{value:"CA",label:"California"},{value:"CO",label:"Colorado"},{value:"CT",label:"Connecticut"},{value:"DE",label:"Delaware"},{value:"DC",label:"District of Columbia"},{value:"FL",label:"Florida"},{value:"GA",label:"Georgia"},{value:"HI",label:"Hawaii"},{value:"ID",label:"Idaho"},{value:"IL",label:"Illinois"},{value:"IN",label:"Indiana"},{value:"IA",label:"Iowa"},{value:"KS",label:"Kansas"},{value:"KY",label:"Kentucky"},{value:"LA",label:"Louisiana"},{value:"ME",label:"Maine"},{value:"MD",label:"Maryland"},{value:"MA",label:"Massachusetts"},{value:"MI",label:"Michigan"},{value:"MN",label:"Minnesota"},{value:"MS",label:"Mississippi"},{value:"MO",label:"Missouri"},{value:"MT",label:"Montana"},{value:"NE",label:"Nebraska"},{value:"NV",label:"Nevada"},{value:"NH",label:"New Hampshire"},{value:"NJ",label:"New Jersey"},{value:"NM",label:"New Mexico"},{value:"NY",label:"New York"},{value:"NC",label:"North Carolina"},{value:"ND",label:"North Dakota"},{value:"OH",label:"Ohio"},{value:"OK",label:"Oklahoma"},{value:"OR",label:"Oregon"},{value:"PA",label:"Pennsylvania"},{value:"RI",label:"Rhode Island"},{value:"SC",label:"South Carolina"},{value:"SD",label:"South Dakota"},{value:"TN",label:"Tennessee"},{value:"TX",label:"Texas"},{value:"UT",label:"Utah"},{value:"VT",label:"Vermont"},{value:"VA",label:"Virginia"},{value:"WA",label:"Washington"},{value:"WV",label:"West Virginia"},{value:"WI",label:"Wisconsin"},{value:"WY",label:"Wyoming"}],xX={class:"states-select","aria-description":"U.S. states multi-select field"},FX=["aria-expanded","aria-label","onKeydown"],PX={class:"states-dropdown-value","aria-description":"Selected states or placeholder"},EX={key:0,class:"states-dropdown-placeholder","aria-description":"Placeholder for no states selected"},DX={key:1,class:"states-selected-list",role:"list","aria-label":"Selected states"},TX={class:"states-selected-chip","aria-description":"Selected state chip"},AX=["aria-label","onClick"],IX=["aria-label"],MX={class:"states-options","aria-description":"state checkbox options"},kX={class:"states-list"},LX=["aria-selected"],OX={class:"states-checkbox-label"},_X=["id","value"],NX={"aria-description":"State name"},BX=Bt(wt({__name:"ContributionSearchStatesSelect",props:{selectedStateValues:{default:()=>[]},selectedStateValuesModifiers:{}},emits:["update:selectedStateValues"],setup(e){const t=gi(e,"selectedStateValues"),n=be(!1),i=be(null),o=be(null),r=de(()=>t.value.length),s=de(()=>r.value>0),a=de(()=>{const m=[];for(const v of t.value){const w=_D.find(b=>b.value===v);w&&m.push(w)}return m}),l=de(()=>s.value?a.value.map(m=>m.label).join(", "):"Select states"),u=()=>{n.value=!n.value},h=()=>{n.value=!1},f=(m,v)=>{m.stopPropagation(),t.value=t.value.filter(w=>w!==v)},g=m=>{if(n.value){{const v=m.target;if(o.value?.contains(v)||i.value?.contains(v))return}h()}};return kr(()=>{document.addEventListener("click",g)}),Ds(()=>{document.removeEventListener("click",g)}),(m,v)=>{const w=Ts("font-awesome-icon");return se(),pe("section",xX,[v[2]||(v[2]=q("span",{class:"states-field-label","aria-description":"states field label"},"US States",-1)),q("section",{class:"states-dropdown","aria-description":"states checkbox dropdown",onKeydown:Xt(h,["esc"])},[q("div",{ref_key:"dropdownControlRef",ref:i,class:ft(["states-dropdown-control",{"states-dropdown-control-open":n.value}]),role:"combobox",tabindex:"0","aria-expanded":n.value,"aria-haspopup":"listbox","aria-label":`U.S. states, ${l.value}`,onClick:mt(u,["stop"]),onKeydown:[Xt(mt(u,["prevent"]),["enter"]),Xt(mt(u,["prevent"]),["space"])],"aria-description":"Dropdown control for selecting U.S. states"},[q("div",PX,[s.value?(se(),pe("ul",DX,[(se(!0),pe(bt,null,Ii(a.value,b=>(se(),pe("li",{key:b.value,class:"states-selected-item",role:"listitem"},[q("span",TX,[to(Je(b.label)+" ",1),q("button",{type:"button",class:"states-selected-remove","aria-label":`Remove ${b.label}`,onClick:y=>f(y,b.value)},[Oe(w,{class:"states-selected-remove-icon",icon:["fas","xmark"],size:"xs"})],8,AX)])]))),128))])):(se(),pe("span",EX,"Select states"))]),q("i",{class:ft(["fa-solid fa-chevron-down states-dropdown-chevron",{"states-dropdown-chevron-open":n.value}]),"aria-hidden":"true"},null,2)],42,FX),Oe(Rd,{name:"states-dropdown"},{default:zn(()=>[n.value?(se(),pe("section",{key:0,ref_key:"dropdownPanelRef",ref:o,class:"states-dropdown-panel","aria-description":"states checkbox list panel",role:"listbox","aria-multiselectable":"true","aria-label":l.value,onClick:v[1]||(v[1]=mt(()=>{},["stop"]))},[q("section",MX,[q("ul",kX,[(se(!0),pe(bt,null,Ii(Vn(_D),b=>(se(),pe("li",{key:b.value,class:"states-list-item",role:"option","aria-selected":t.value.includes(b.value)},[q("label",OX,[Ps(q("input",{id:`contribution-search-state-${b.value}`,"onUpdate:modelValue":v[0]||(v[0]=y=>t.value=y),type:"checkbox",name:"states",value:b.value},null,8,_X),[[dp,t.value]]),q("span",NX,Je(b.label),1)])],8,LX))),128))])])],8,IX)):gt("",!0)]),_:1})],32)])}}}),[["styles",[`.states-checkbox-label[data-v-943025f6]{align-items:center;color:var(--color-primary-black);cursor:pointer;display:flex;font-size:.75rem;gap:.375rem;line-height:1.35;padding:.125rem}.states-checkbox-label[data-v-943025f6]:hover{background-color:var(--color-green-50)}.states-checkbox-label input[type=checkbox][data-v-943025f6]{appearance:none;background-color:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.125rem;cursor:pointer;flex-shrink:0;height:1rem;margin-top:.125rem;width:1rem}.states-checkbox-label input[type=checkbox][data-v-943025f6]:checked{background-color:var(--color-primary-green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:.625rem .5rem;border-color:var(--color-primary-green)}.states-dropdown[data-v-943025f6]{position:relative}.states-dropdown-chevron[data-v-943025f6]{flex-shrink:0;font-size:.75rem;opacity:.85;transform:rotate(0);transition:transform .2s ease}.states-dropdown-chevron-open[data-v-943025f6]{transform:rotate(180deg)}.states-dropdown-control[data-v-943025f6]{align-items:center;background:var(--color-white);border:.0625rem solid var(--color-green-400);border-radius:.25rem;box-sizing:border-box;color:var(--color-grey-600);cursor:pointer;display:flex;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.9375rem;gap:.375rem;min-height:3rem;padding:.45rem 1rem;width:100%}.states-dropdown-control-open[data-v-943025f6],.states-dropdown-control[data-v-943025f6]:focus-visible{border:.125rem solid var(--color-brand-bright-200);outline:0}.states-dropdown-control[data-v-943025f6]:hover{background-color:var(--color-green-50)}.states-dropdown-enter-active[data-v-943025f6],.states-dropdown-leave-active[data-v-943025f6]{transition:opacity .2s ease,transform .2s ease}.states-dropdown-enter-from[data-v-943025f6],.states-dropdown-leave-to[data-v-943025f6]{opacity:0;transform:translateY(-.25rem)}.states-dropdown-panel[data-v-943025f6]{background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.375rem;box-shadow:0 .625rem 1.5rem #00000014;left:0;margin-top:.375rem;max-height:min(70vh,24rem);max-width:36rem;overflow-x:hidden;overflow-y:auto;padding:.75rem;position:absolute;top:100%;width:100%;z-index:3}.states-dropdown-placeholder[data-v-943025f6]{color:var(--color-grey-600);display:block;font-size:.875rem}.states-dropdown-value[data-v-943025f6]{flex:1;min-width:0}.states-field-label[data-v-943025f6]{color:var(--color-primary-black);font-size:.875rem}.states-list[data-v-943025f6]{display:grid;gap:.5rem 1rem;grid-template-columns:1fr 1fr;list-style:none;margin:0;padding:0}.states-list-item[data-v-943025f6]{list-style:none;margin:0;min-width:0;padding:0}.states-options[data-v-943025f6]{display:flex;flex-direction:column;gap:.5rem}.states-select[data-v-943025f6]{display:flex;flex-direction:column;gap:.35rem;margin-top:1rem;min-width:0;width:100%}.states-selected-chip[data-v-943025f6]{align-items:center;background-color:var(--color-green-100);border-radius:.25rem;box-sizing:border-box;color:var(--color-grey-900);display:inline-flex;font-size:.875rem;gap:.125rem;height:1.75rem;line-height:1.25;max-width:100%;padding:.25rem .5rem}.states-selected-item[data-v-943025f6]{list-style:none;margin:0;max-width:100%;padding:0}.states-selected-list[data-v-943025f6]{display:flex;flex-wrap:wrap;gap:.625rem;list-style:none;margin:0;max-width:100%;min-width:0;padding:0}.states-selected-remove[data-v-943025f6]{align-items:center;background:transparent;border:none;border-radius:.125rem;color:var(--color-primary-black);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:.75rem;height:1.25rem;justify-content:center;padding:0;width:1.25rem}.states-selected-remove[data-v-943025f6]:hover{color:var(--color-red)}.states-selected-remove-icon[data-v-943025f6]{height:.75rem;width:.75rem}`]],["__scopeId","data-v-943025f6"]]);function HX(e){return{id:e.contribution.id,contributor:e.contribution.contributor,employeeStatus:e.match?.employee?.status??"",address:e.contribution.address,state:e.contribution.state,zipCode:e.contribution.zipCode,date:e.contribution.date,dateDetected:e.match?.created??"",amount:e.contribution.amount,employer:e.contribution.employer,occupation:e.contribution.occupation,recipient:e.contribution.recipient,amended:e.contribution.amended,jurisdiction:e.contribution.jurisdiction,sources:e.contribution.source,status:e.match?.status??"",reconciliationStatus:e.match?.preclearance?.reconciliationStatus??"",preclearance:e.match?.preclearance?.name??"",approvalDate:e.match?.preclearance?.approvalDate??"",approvedAmount:e.match?.preclearance?.amount??null,lastUpdated:e.match?.modified??"",lastUpdatedBy:e.match?.modifiedBy??"",notes:e.match?.notes.map(t=>t.text).join(";")??"",tags:e.match?.employee?.tags.map(t=>t.name).join(";")??"",groups:e.match?.employee?.groups.map(t=>t.name).join(";")??""}}var ln=(e=>(e[e.NULL=0]="NULL",e[e.OR=1]="OR",e[e.AND=2]="AND",e))(ln||{}),cn=(e=>(e[e.EQUALS=1]="EQUALS",e[e.NOT_EQUALS=2]="NOT_EQUALS",e[e.LESS_THAN=3]="LESS_THAN",e[e.GREATER_THAN=4]="GREATER_THAN",e[e.LESS_THAN_OR_EQUAL=5]="LESS_THAN_OR_EQUAL",e[e.GREATER_THAN_OR_EQUAL=6]="GREATER_THAN_OR_EQUAL",e[e.CONTAINS=7]="CONTAINS",e[e.DOES_NOT_CONTAIN=8]="DOES_NOT_CONTAIN",e[e.STARTS_WITH=9]="STARTS_WITH",e[e.ENDS_WITH=10]="ENDS_WITH",e))(cn||{});const GX=Vi.injectEndpoints({endpoints:e=>({searchContributions:e.mutation({query:({user:t,company:n,stack:i,username:o,page:r,limit:s,sortColumn:a=null,sortOrder:l=null,match:u=!1,body:h})=>({url:`/contributions/search?user=${encodeURIComponent(t)}&company=${encodeURIComponent(n)}&stack=${encodeURIComponent(i)}&username=${encodeURIComponent(o)}&page=${r}&limit=${s}${a&&l?`&sortColumn=${a}&sortOrder=${l}`:""}&match=${u}`,method:"POST",body:h}),transformResponse:(t,n)=>({page:t.page,totalPages:t.totalPages,limit:t.limit,total:t.total,results:t.results.map(HX)})})})});function VX(){return ma(GX.endpoints.searchContributions)}function WX(){let e=1;return()=>e++}const zX=WX(),UX={NULL:ln.NULL,OR:ln.OR,AND:ln.AND},ND={equals:cn.EQUALS,notEqual:cn.NOT_EQUALS,lessThan:cn.LESS_THAN,greaterThan:cn.GREATER_THAN,lessThanOrEqual:cn.LESS_THAN_OR_EQUAL,greaterThanOrEqual:cn.GREATER_THAN_OR_EQUAL,contains:cn.CONTAINS,notContains:cn.DOES_NOT_CONTAIN,startsWith:cn.STARTS_WITH,endsWith:cn.ENDS_WITH};function $X(e="",t=[]){const n=UX?.[e];return!n||t.length<2?ln.NULL:n}function jX(e=""){const t=ND?.[e];return t||cn.EQUALS}function Zn(e,t){if(xe.isNil(ND[e]))throw Error("Invalid Comparator...");return{id:zX(),comparator:jX(e),value:t}}const KX={class:"search-fieldset"},qX={class:"form-row","aria-description":"first name and last name fields"},QX={class:"form-row","aria-description":"postal codes and contributor employer fields"},YX={class:"form-row","aria-description":"record from and to date fields"},ZX={class:"actions","aria-description":"form submit actions"},BD="This field is required.",HD="Record dates require both a start date and an end date.",GD="Record start date must be on or before the end date.",JX="Enter a valid 5-digit ZIP code",VD=Bt(wt({__name:"ContributionSearchForm",props:{contributionSearchPresets:{default:null,type:[Object,null]},hideBorder:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["search"],setup(e,{emit:t}){const n=e,i=t,o=be(""),r=be(""),s=be([]),a=be([]),l=be([]),u=be(""),h=be(""),f=be([]),g=be(0),m=be(""),v=be(null),w=be(""),b=be(""),y=be(""),R=(M,E)=>{const I=M.target,B=I.value.replace(/[^A-Za-z\s-]/g,"").replace(/-{2,}/g,"-").replace(/\s{2,}/g," ").replace(/^[\s-]+/,"");E==="firstName"?o.value=B:E==="lastName"&&(r.value=B),I.value=B},S=(M,E)=>{M.target.value=M.target.value.replace(/[\s-]+$/,""),R(M,E)},P=de(()=>m.value===HD||m.value===GD),F=de(()=>{const M=["record-dates-hint"];return P.value&&M.push("contribution-search-form-error"),M.join(" ")}),A=M=>{const E=M.contributor?.query?.find(oe=>oe.comparator===cn.STARTS_WITH),I=M.contributor?.query?.find(oe=>oe.comparator===cn.ENDS_WITH);o.value=xe.isNil(E?.value)?"":String(E?.value),r.value=xe.isNil(I?.value)?"":String(I?.value);const B=(M.state?.query??[]).filter(oe=>oe.comparator===cn.EQUALS);s.value=B.map(oe=>xe.isNil(oe.value)?"":String(oe.value)).filter(oe=>!xe.isEmpty(oe));const W=(M.zipCode?.query??[]).filter(oe=>oe.comparator===cn.EQUALS);a.value=W.map(oe=>xe.isNil(oe.value)?"":String(oe.value)).filter(oe=>!xe.isEmpty(oe));const J=(M.employer?.query??[]).filter(oe=>oe.comparator===cn.STARTS_WITH);l.value=J.map(oe=>xe.isNil(oe.value)?"":String(oe.value)).filter(oe=>!xe.isEmpty(oe));const me=M.date?.query?.find(oe=>oe.comparator===cn.GREATER_THAN_OR_EQUAL),fe=M.date?.query?.find(oe=>oe.comparator===cn.LESS_THAN_OR_EQUAL);u.value=xe.isNil(me?.value)?"":String(me?.value),h.value=xe.isNil(fe?.value)?"":String(fe?.value);const De=(M.sources?.query??[]).filter(oe=>oe.comparator===cn.EQUALS).map(oe=>xe.isNil(oe.value)?"":String(oe.value)).filter(oe=>!xe.isEmpty(oe));f.value=De,De.length>0&&(g.value+=1),m.value="",w.value="",b.value=""};Jt(()=>n.contributionSearchPresets,async M=>{M===null||xe.isEmpty(M)||(A(M),await Mr())},{deep:!0,immediate:!0});const k=()=>{m.value="",w.value="",b.value="",y.value="";let M=!0;if(xe.isEmpty(o.value.trim())&&(w.value=BD,M=!1),xe.isEmpty(r.value.trim())&&(b.value=BD,M=!1),a.value.some(B=>String(B).length!==5)&&(y.value=JX,M=!1),!M)return!1;const E=!xe.isEmpty(u.value),I=!xe.isEmpty(h.value);if(E!==I)return m.value=HD,!1;if(E&&I){const B=ID(u.value),W=ID(h.value);if(_J(B,W))return m.value=GD,!1}return!0},L=()=>{const M={},E=o.value.trim(),I=r.value.trim();M.contributor={conjunction:ln.AND,query:[Zn("startsWith",E),Zn("endsWith",I)]},xe.isEmpty(s.value)||(M.state={conjunction:s.value.length>1?ln.OR:ln.NULL,query:s.value.map(J=>Zn("equals",J))});const B=a.value.map(J=>J.trim()).filter(J=>!xe.isEmpty(J));xe.isEmpty(B)||(M.zipCode={conjunction:B.length>1?ln.OR:ln.NULL,query:B.map(J=>Zn("equals",J))});const W=l.value.map(J=>J.trim()).filter(J=>!xe.isEmpty(J));return xe.isEmpty(W)||(M.employer={conjunction:W.length>1?ln.OR:ln.NULL,query:W.map(J=>Zn("startsWith",J))}),!xe.isEmpty(u.value)&&!xe.isEmpty(h.value)&&(M.date={conjunction:ln.AND,query:[Zn("greaterThanOrEqual",u.value),Zn("lessThanOrEqual",h.value)]}),xe.isEmpty(f.value)||(M.sources={conjunction:f.value.length>1?ln.OR:ln.NULL,query:f.value.map(J=>Zn("equals",J))}),M},N=()=>{if(!n.loading){if(!k()){Mr(()=>{if(w.value){document.getElementById("contribution-search-first-name")?.focus();return}if(b.value){document.getElementById("contribution-search-last-name")?.focus();return}v.value?.focus()});return}i("search",L())}};return(M,E)=>(se(),pe("section",{class:ft(["search-layout",{"search-layout--borderless":e.hideBorder}]),"aria-description":"contribution search form layout"},[q("form",{class:"search-form",role:"search","aria-label":"Contribution search",novalidate:"",onSubmit:mt(N,["prevent"])},[q("fieldset",KX,[E[13]||(E[13]=q("legend",{class:"visually-hidden"},"Contribution search filters",-1)),q("div",qX,[Oe(fo,{id:"contribution-search-first-name",modelValue:o.value,"onUpdate:modelValue":E[0]||(E[0]=I=>o.value=I),class:"field",label:"First Name",required:"",name:"firstName",autocomplete:"given-name",placeholder:"Enter First Name with only letters, spaces, and hyphens (-).",error:w.value,"aria-invalid":w.value?!0:void 0,"aria-describedby":w.value?"contribution-search-first-name-error":void 0,"label-aria-description":"first name field label",onInput:E[1]||(E[1]=I=>R(I,"firstName")),onBlur:E[2]||(E[2]=I=>S(I,"firstName"))},null,8,["modelValue","error","aria-invalid","aria-describedby"]),Oe(fo,{id:"contribution-search-last-name",modelValue:r.value,"onUpdate:modelValue":E[3]||(E[3]=I=>r.value=I),class:"field",label:"Last Name",required:"",name:"lastName",autocomplete:"family-name",placeholder:"Enter Last Name with only letters, spaces, and hyphens (-).",error:b.value,"aria-invalid":b.value?!0:void 0,"aria-describedby":b.value?"contribution-search-last-name-error":void 0,"label-aria-description":"last name field label",onInput:E[4]||(E[4]=I=>R(I,"lastName")),onBlur:E[5]||(E[5]=I=>S(I,"lastName"))},null,8,["modelValue","error","aria-invalid","aria-describedby"])]),Oe(BX,{"selected-state-values":s.value,"onUpdate:selectedStateValues":E[6]||(E[6]=I=>s.value=I)},null,8,["selected-state-values"]),q("div",QX,[Oe(fo,{id:"contribution-search-postal",modelValue:a.value,"onUpdate:modelValue":E[7]||(E[7]=I=>a.value=I),type:"number",class:"field",label:"Postal Codes",multiple:"",name:"postalCode",autocomplete:"postal-code",placeholder:"Enter postal codes",error:y.value,"label-aria-description":"postal codes field label",onKeydown:E[8]||(E[8]=I=>["e","E","+","-"].includes(I.key)&&I.preventDefault())},null,8,["modelValue","error"]),Oe(fo,{id:"contribution-search-employer",modelValue:l.value,"onUpdate:modelValue":E[9]||(E[9]=I=>l.value=I),class:"field",label:"Contributor Employer",multiple:"",name:"employer",placeholder:"Enter contributor employer names","label-aria-description":"contributor employer field label",onInput:R,onBlur:S},null,8,["modelValue"])]),q("div",YX,[Oe(fo,{id:"contribution-search-date-from",modelValue:u.value,"onUpdate:modelValue":E[10]||(E[10]=I=>u.value=I),class:"field",label:"Record From Date",type:"date",name:"recordDateFrom",invalid:P.value,"aria-invalid":P.value?!0:void 0,"aria-describedby":F.value,"described-by":F.value},null,8,["modelValue","invalid","aria-invalid","aria-describedby","described-by"]),Oe(fo,{id:"contribution-search-date-to",modelValue:h.value,"onUpdate:modelValue":E[11]||(E[11]=I=>h.value=I),class:"field field-date",label:"Record To Date",type:"date",name:"recordDateTo",invalid:P.value,"aria-invalid":P.value?!0:void 0,"aria-describedby":F.value,"described-by":F.value},null,8,["modelValue","invalid","aria-invalid","aria-describedby","described-by"])]),(se(),an(RX,{key:g.value,"selected-source-indexes":f.value,"onUpdate:selectedSourceIndexes":E[12]||(E[12]=I=>f.value=I)},null,8,["selected-source-indexes"])),m.value?(se(),pe("p",{key:0,id:"contribution-search-form-error",ref_key:"formErrorMessageRef",ref:v,class:"form-error",role:"alert",tabindex:"-1"},Je(m.value),513)):gt("",!0)]),q("footer",ZX,[Oe(fs,{type:"submit","aria-label":"Search contributions",disabled:e.loading,label:"Search"},null,8,["disabled"])])],32)],2))}}),[["styles",[".actions[data-v-848536e5]{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end;margin-top:1.5rem}.field-half[data-v-848536e5]{max-width:none;width:100%}.form-error[data-v-848536e5]{color:var(--color-red);font-size:.875rem;margin:.75rem 0 0}.form-row[data-v-848536e5]{display:grid;gap:.75rem 1rem;grid-template-columns:1fr 1fr;margin-top:1rem;min-width:0}.form-row .ui-input[data-v-848536e5]{margin-top:0}.search-fieldset>.form-row[data-v-848536e5]:first-of-type{margin-top:0}.search-form fieldset[data-v-848536e5]{border:none;margin:0;padding:0}.search-form legend[data-v-848536e5]{font-weight:600;padding:0 .35rem}.search-form legend.visually-hidden[data-v-848536e5]{border:0;clip-path:inset(50%);height:.0625rem;margin:-.0625rem;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:.0625rem}.search-layout[data-v-848536e5]{border:1px solid var(--color-primary-grey);border-radius:.5rem;display:flex;flex-direction:column;min-height:0;padding:1.5rem}.search-layout--borderless[data-v-848536e5]{border:none}"]],["__scopeId","data-v-848536e5"]]);var XX=Object.defineProperty,eee=(e,t,n)=>t in e?XX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,va=(e,t,n)=>eee(e,typeof t!="symbol"?t+"":t,n);const WD=class bI{static getComponentDefinition(t,n){let i;return typeof t=="string"?i=this.searchForComponentInstance(n,t):i={extends:wt({...t})},i||vt(114,{component:t}),i.extends?(i.extends.setup&&(i.setup=i.extends.setup),i.extends.props=this.addParamsToProps(i.extends.props)):i.props=this.addParamsToProps(i.props),i}static addParamsToProps(t){return!t||Array.isArray(t)&&t.indexOf("params")===-1?t=["params",...t||[]]:typeof t=="object"&&!t.params&&(t.params={type:Object}),t}static createAndMountComponent(t,n,i,o){const r=bI.getComponentDefinition(t,i);if(!r)return;const{vNode:s,destroy:a,el:l}=this.mount(r,{params:Object.freeze(n)},i,o||{});return{componentInstance:s.component.proxy,element:l,destroy:a}}static mount(t,n,i,o){let r=Oe(t,n);r.appContext={...i.appContext,provides:o};let s=document.createDocumentFragment();return hp(r,s),{vNode:r,destroy:()=>{s&&hp(null,s),s=null,r=null},el:s}}static searchForComponentInstance(t,n,i=10,o=!1){let r=this.componentCache.get(t);if(r){const u=r.get(n);if(u!==void 0)return u}let s=null,a=0,l=t.parent;for(;!s&&l&&l.components&&++a<i;)l.components&&l.components[n]&&(s=l.components[n]),l=l.parent;for(a=0,l=t.parent;!s&&l&&l.$options&&++a<i;){const u=l;u.$options&&u.$options.components&&u.$options.components[n]?s=u.$options.components[n]:u[n]&&(s=u[n]),l=l.parent}for(a=0,l=t.parent;!s&&l&&++a<i;){if(l.exposed){const u=l;u.exposed&&u.exposed[n]?s=u.exposed[n]:u[n]&&(s=u[n])}l=l.parent}if(!s){const u=t.appContext.components;u&&u[n]&&(s=u[n])}return!s&&!o?(vt(114,{component:n}),null):(s&&(r||(r=new Map,this.componentCache.set(t,r)),r.set(n,s)),s)}};va(WD,"componentCache",new WeakMap);let hw=WD;class tee extends NU{constructor(t,n){super(),va(this,"parent"),va(this,"provides"),this.parent=t,this.provides=n}createWrapper(t){const n=this;class i extends nee{init(s){super.init(s)}hasMethod(s){var a,l;const u=o.getFrameworkComponentInstance();return u[s]?!0:((a=u.$.exposed)==null?void 0:a[s])!=null||((l=u.exposed)==null?void 0:l[s])!=null||u.$.setupState[s]!=null}callMethod(s,a){var l,u;const h=this.getFrameworkComponentInstance(),f=o.getFrameworkComponentInstance();if(f[s])return f[s].apply(h,a);{const g=((l=h.$.exposed)==null?void 0:l[s])||((u=h.exposed)==null?void 0:u[s])||h.$.setupState[s];return g?.apply(h,a)}}addMethod(s,a){o[s]=a}processMethod(s,a){return s==="refresh"&&(this.getFrameworkComponentInstance().params=Object.freeze(a[0])),this.hasMethod(s)?this.callMethod(s,a):s==="refresh"}createComponent(s){return n.createComponent(t,s)}}const o=new i;return o}createComponent(t,n){return hw.createAndMountComponent(t,n,this.parent,this.provides)}createMethodProxy(t,n,i){return function(){return t.hasMethod(n)?t.callMethod(n,arguments):(i&&le(233,{methodName:n}),null)}}destroy(){this.parent=null}}class nee{constructor(){va(this,"componentInstance"),va(this,"element"),va(this,"unmount")}getGui(){return this.element}destroy(){var t;this.getFrameworkComponentInstance()&&typeof this.getFrameworkComponentInstance().destroy=="function"&&this.getFrameworkComponentInstance().destroy(),(t=this.unmount)==null||t.call(this)}getFrameworkComponentInstance(){return this.componentInstance}init(t){const{componentInstance:n,element:i,destroy:o}=this.createComponent(t);this.componentInstance=n,this.unmount=o,this.element=i.firstElementChild??i}}class iee extends rF{constructor(t){super("vue"),va(this,"parent"),this.parent=t}frameworkComponent(t,n){let i=hw.searchForComponentInstance(this.parent,t,10,!0)?t:null;if(!i&&n&&n[t]){const o=n[t];i=hw.searchForComponentInstance(this.parent,o,10,!0)?o:null}return i}isFrameworkComponent(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}}function oee(){return{gridOptions:{},modules:[],statusBar:void 0,sideBar:void 0,suppressContextMenu:void 0,preventDefaultOnContextMenu:void 0,allowContextMenuWithControlKey:void 0,columnMenu:void 0,suppressMenuHide:void 0,enableBrowserTooltips:void 0,tooltipTrigger:void 0,tooltipShowDelay:void 0,tooltipSwitchShowDelay:void 0,tooltipHideDelay:void 0,tooltipMouseTrack:void 0,tooltipShowMode:void 0,tooltipInteraction:void 0,popupParent:void 0,copyHeadersToClipboard:void 0,copyGroupHeadersToClipboard:void 0,clipboardDelimiter:void 0,suppressCopyRowsToClipboard:void 0,suppressCopySingleCellRanges:void 0,suppressLastEmptyLineOnPaste:void 0,suppressClipboardPaste:void 0,suppressClipboardApi:void 0,suppressCutToClipboard:void 0,columnDefs:void 0,defaultColDef:void 0,defaultColGroupDef:void 0,columnTypes:void 0,dataTypeDefinitions:void 0,maintainColumnOrder:void 0,enableStrictPivotColumnOrder:void 0,suppressFieldDotNotation:void 0,headerHeight:void 0,groupHeaderHeight:void 0,floatingFiltersHeight:void 0,pivotHeaderHeight:void 0,pivotGroupHeaderHeight:void 0,hidePaddedHeaderRows:void 0,allowDragFromColumnsToolPanel:void 0,suppressMovableColumns:void 0,suppressColumnMoveAnimation:void 0,suppressMoveWhenColumnDragging:void 0,suppressDragLeaveHidesColumns:void 0,suppressGroupChangesColumnVisibility:void 0,suppressMakeColumnVisibleAfterUnGroup:void 0,suppressRowGroupHidesColumns:void 0,colResizeDefault:void 0,suppressAutoSize:void 0,autoSizePadding:void 0,skipHeaderOnAutoSize:void 0,autoSizeStrategy:void 0,animateColumnResizing:void 0,components:void 0,editType:void 0,suppressStartEditOnTab:void 0,getFullRowEditValidationErrors:void 0,invalidEditValueMode:void 0,singleClickEdit:void 0,suppressClickEdit:void 0,readOnlyEdit:void 0,stopEditingWhenCellsLoseFocus:void 0,enterNavigatesVertically:void 0,enterNavigatesVerticallyAfterEdit:void 0,enableCellEditingOnBackspace:void 0,undoRedoCellEditing:void 0,undoRedoCellEditingLimit:void 0,defaultCsvExportParams:void 0,suppressCsvExport:void 0,defaultExcelExportParams:void 0,suppressExcelExport:void 0,excelStyles:void 0,findSearchValue:void 0,findOptions:void 0,quickFilterText:void 0,cacheQuickFilter:void 0,includeHiddenColumnsInQuickFilter:void 0,quickFilterParser:void 0,quickFilterMatcher:void 0,applyQuickFilterBeforePivotOrAgg:void 0,excludeChildrenWhenTreeDataFiltering:void 0,enableAdvancedFilter:void 0,alwaysPassFilter:void 0,includeHiddenColumnsInAdvancedFilter:void 0,advancedFilterParent:void 0,advancedFilterBuilderParams:void 0,advancedFilterParams:void 0,suppressAdvancedFilterEval:void 0,suppressSetFilterByDefault:void 0,enableFilterHandlers:void 0,filterHandlers:void 0,enableCharts:void 0,chartThemes:void 0,customChartThemes:void 0,chartThemeOverrides:void 0,chartToolPanelsDef:void 0,chartMenuItems:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,localeText:void 0,masterDetail:void 0,keepDetailRows:void 0,keepDetailRowsCount:void 0,detailCellRenderer:void 0,detailCellRendererParams:void 0,detailRowHeight:void 0,detailRowAutoHeight:void 0,context:void 0,alignedGrids:void 0,tabIndex:void 0,rowBuffer:void 0,valueCache:void 0,valueCacheNeverExpires:void 0,enableCellExpressions:void 0,suppressTouch:void 0,suppressFocusAfterRefresh:void 0,suppressBrowserResizeObserver:void 0,suppressPropertyNamesCheck:void 0,suppressChangeDetection:void 0,debug:void 0,loading:void 0,overlayLoadingTemplate:void 0,loadingOverlayComponent:void 0,loadingOverlayComponentParams:void 0,suppressLoadingOverlay:void 0,overlayNoRowsTemplate:void 0,noRowsOverlayComponent:void 0,noRowsOverlayComponentParams:void 0,suppressNoRowsOverlay:void 0,suppressOverlays:void 0,overlayComponent:void 0,overlayComponentParams:void 0,overlayComponentSelector:void 0,activeOverlay:void 0,activeOverlayParams:void 0,pagination:void 0,paginationPageSize:void 0,paginationPageSizeSelector:void 0,paginationAutoPageSize:void 0,paginateChildRows:void 0,suppressPaginationPanel:void 0,pivotMode:void 0,pivotPanelShow:void 0,pivotMaxGeneratedColumns:void 0,pivotDefaultExpanded:void 0,pivotColumnGroupTotals:void 0,pivotRowTotals:void 0,pivotSuppressAutoColumn:void 0,suppressExpandablePivotGroups:void 0,functionsReadOnly:void 0,aggFuncs:void 0,formulaDataSource:void 0,formulaFuncs:void 0,suppressAggFuncInHeader:void 0,alwaysAggregateAtRootLevel:void 0,aggregateOnlyChangedColumns:void 0,suppressAggFilteredOnly:void 0,removePivotHeaderRowWhenSingleValueColumn:void 0,animateRows:void 0,cellFlashDuration:void 0,cellFadeDuration:void 0,allowShowChangeAfterFilter:void 0,domLayout:void 0,ensureDomOrder:void 0,enableCellSpan:void 0,enableRtl:void 0,suppressColumnVirtualisation:void 0,suppressMaxRenderedRowRestriction:void 0,suppressRowVirtualisation:void 0,rowDragManaged:void 0,refreshAfterGroupEdit:void 0,rowDragInsertDelay:void 0,suppressRowDrag:void 0,suppressMoveWhenRowDragging:void 0,rowDragEntireRow:void 0,rowDragMultiRow:void 0,rowDragText:void 0,dragAndDropImageComponent:void 0,dragAndDropImageComponentParams:void 0,fullWidthCellRenderer:void 0,fullWidthCellRendererParams:void 0,embedFullWidthRows:void 0,groupDisplayType:void 0,groupDefaultExpanded:void 0,autoGroupColumnDef:void 0,groupMaintainOrder:void 0,groupSelectsChildren:void 0,groupLockGroupColumns:void 0,groupAggFiltering:void 0,groupTotalRow:void 0,grandTotalRow:void 0,suppressStickyTotalRow:void 0,groupSuppressBlankHeader:void 0,groupSelectsFiltered:void 0,showOpenedGroup:void 0,groupHideParentOfSingleChild:void 0,groupRemoveSingleChildren:void 0,groupRemoveLowestSingleChildren:void 0,groupHideOpenParents:void 0,groupHideColumnsUntilExpanded:void 0,groupAllowUnbalanced:void 0,rowGroupPanelShow:void 0,groupRowRenderer:void 0,groupRowRendererParams:void 0,treeData:void 0,treeDataChildrenField:void 0,treeDataParentIdField:void 0,rowGroupPanelSuppressSort:void 0,suppressGroupRowsSticky:void 0,groupHierarchyConfig:void 0,pinnedTopRowData:void 0,pinnedBottomRowData:void 0,enableRowPinning:void 0,isRowPinnable:void 0,isRowPinned:void 0,rowModelType:void 0,rowData:void 0,asyncTransactionWaitMillis:void 0,suppressModelUpdateAfterUpdateTransaction:void 0,datasource:void 0,cacheOverflowSize:void 0,infiniteInitialRowCount:void 0,serverSideInitialRowCount:void 0,suppressServerSideFullWidthLoadingRow:void 0,cacheBlockSize:void 0,maxBlocksInCache:void 0,maxConcurrentDatasourceRequests:void 0,blockLoadDebounceMillis:void 0,purgeClosedRowNodes:void 0,serverSideDatasource:void 0,serverSideSortAllLevels:void 0,serverSideEnableClientSideSort:void 0,serverSideOnlyRefreshFilteredGroups:void 0,serverSidePivotResultFieldSeparator:void 0,viewportDatasource:void 0,viewportRowModelPageSize:void 0,viewportRowModelBufferSize:void 0,alwaysShowHorizontalScroll:void 0,alwaysShowVerticalScroll:void 0,debounceVerticalScrollbar:void 0,suppressHorizontalScroll:void 0,suppressScrollOnNewData:void 0,suppressScrollWhenPopupsAreOpen:void 0,suppressAnimationFrame:void 0,suppressMiddleClickScrolls:void 0,suppressPreventDefaultOnMouseWheel:void 0,scrollbarWidth:void 0,rowSelection:void 0,cellSelection:void 0,rowMultiSelectWithClick:void 0,suppressRowDeselection:void 0,suppressRowClickSelection:void 0,suppressCellFocus:void 0,suppressHeaderFocus:void 0,selectionColumnDef:void 0,rowNumbers:void 0,suppressMultiRangeSelection:void 0,enableCellTextSelection:void 0,enableRangeSelection:void 0,enableRangeHandle:void 0,enableFillHandle:void 0,fillHandleDirection:void 0,suppressClearOnFillReduction:void 0,sortingOrder:void 0,accentedSort:void 0,unSortIcon:void 0,suppressMultiSort:void 0,alwaysMultiSort:void 0,multiSortKey:void 0,suppressMaintainUnsortedOrder:void 0,icons:void 0,rowHeight:void 0,rowStyle:void 0,rowClass:void 0,rowClassRules:void 0,suppressRowHoverHighlight:void 0,suppressRowTransform:void 0,columnHoverHighlight:void 0,gridId:void 0,deltaSort:void 0,treeDataDisplayType:void 0,enableGroupEdit:void 0,initialState:void 0,theme:void 0,loadThemeGoogleFonts:void 0,themeCssLayer:void 0,styleNonce:void 0,themeStyleContainer:void 0,getContextMenuItems:void 0,getMainMenuItems:void 0,postProcessPopup:void 0,processUnpinnedColumns:void 0,processCellForClipboard:void 0,processHeaderForClipboard:void 0,processGroupHeaderForClipboard:void 0,processCellFromClipboard:void 0,sendToClipboard:void 0,processDataFromClipboard:void 0,isExternalFilterPresent:void 0,doesExternalFilterPass:void 0,getChartToolbarItems:void 0,createChartContainer:void 0,focusGridInnerElement:void 0,navigateToNextHeader:void 0,tabToNextHeader:void 0,navigateToNextCell:void 0,tabToNextCell:void 0,tabToNextGridContainer:void 0,getLocaleText:void 0,getDocument:void 0,paginationNumberFormatter:void 0,getGroupRowAgg:void 0,isGroupOpenByDefault:void 0,ssrmExpandAllAffectsAllRows:void 0,initialGroupOrderComparator:void 0,processPivotResultColDef:void 0,processPivotResultColGroupDef:void 0,getDataPath:void 0,getChildCount:void 0,getServerSideGroupLevelParams:void 0,isServerSideGroupOpenByDefault:void 0,isApplyServerSideTransaction:void 0,isServerSideGroup:void 0,getServerSideGroupKey:void 0,getBusinessKeyForNode:void 0,getRowId:void 0,resetRowDataOnUpdate:void 0,processRowPostCreate:void 0,isRowSelectable:void 0,isRowMaster:void 0,fillOperation:void 0,postSortRows:void 0,getRowStyle:void 0,getRowClass:void 0,getRowHeight:void 0,isFullWidthRow:void 0,isRowValidDropPosition:void 0,"onColumn-everything-changed":void 0,"onNew-columns-loaded":void 0,"onColumn-pivot-mode-changed":void 0,"onPivot-max-columns-exceeded":void 0,"onColumn-row-group-changed":void 0,"onExpand-or-collapse-all":void 0,"onColumn-pivot-changed":void 0,"onGrid-columns-changed":void 0,"onColumn-value-changed":void 0,"onColumn-moved":void 0,"onColumn-visible":void 0,"onColumn-pinned":void 0,"onColumn-group-opened":void 0,"onColumn-resized":void 0,"onDisplayed-columns-changed":void 0,"onVirtual-columns-changed":void 0,"onColumn-header-mouse-over":void 0,"onColumn-header-mouse-leave":void 0,"onColumn-header-clicked":void 0,"onColumn-header-context-menu":void 0,"onAsync-transactions-flushed":void 0,"onRow-group-opened":void 0,"onRow-data-updated":void 0,"onPinned-row-data-changed":void 0,"onPinned-rows-changed":void 0,"onRange-selection-changed":void 0,"onCell-selection-changed":void 0,"onChart-created":void 0,"onChart-range-selection-changed":void 0,"onChart-options-changed":void 0,"onChart-destroyed":void 0,"onTool-panel-visible-changed":void 0,"onTool-panel-size-changed":void 0,"onModel-updated":void 0,"onCut-start":void 0,"onCut-end":void 0,"onPaste-start":void 0,"onPaste-end":void 0,"onFill-start":void 0,"onFill-end":void 0,"onCell-selection-delete-start":void 0,"onCell-selection-delete-end":void 0,"onRange-delete-start":void 0,"onRange-delete-end":void 0,"onUndo-started":void 0,"onUndo-ended":void 0,"onRedo-started":void 0,"onRedo-ended":void 0,"onCell-clicked":void 0,"onCell-double-clicked":void 0,"onCell-mouse-down":void 0,"onCell-context-menu":void 0,"onCell-value-changed":void 0,"onCell-edit-request":void 0,"onRow-value-changed":void 0,"onHeader-focused":void 0,"onCell-focused":void 0,"onRow-selected":void 0,"onSelection-changed":void 0,"onTooltip-show":void 0,"onTooltip-hide":void 0,"onCell-key-down":void 0,"onCell-mouse-over":void 0,"onCell-mouse-out":void 0,"onFilter-changed":void 0,"onFilter-modified":void 0,"onFilter-ui-changed":void 0,"onFilter-opened":void 0,"onFloating-filter-ui-changed":void 0,"onAdvanced-filter-builder-visible-changed":void 0,"onSort-changed":void 0,"onVirtual-row-removed":void 0,"onRow-clicked":void 0,"onRow-double-clicked":void 0,"onGrid-ready":void 0,"onGrid-pre-destroyed":void 0,"onGrid-size-changed":void 0,"onViewport-changed":void 0,"onFirst-data-rendered":void 0,"onDrag-started":void 0,"onDrag-stopped":void 0,"onDrag-cancelled":void 0,"onRow-editing-started":void 0,"onRow-editing-stopped":void 0,"onCell-editing-started":void 0,"onCell-editing-stopped":void 0,"onBody-scroll":void 0,"onBody-scroll-end":void 0,"onPagination-changed":void 0,"onComponent-state-changed":void 0,"onStore-refreshed":void 0,"onState-updated":void 0,"onColumn-menu-visible-changed":void 0,"onContext-menu-visible-changed":void 0,"onRow-drag-enter":void 0,"onRow-drag-move":void 0,"onRow-drag-leave":void 0,"onRow-drag-end":void 0,"onRow-drag-cancel":void 0,"onFind-changed":void 0,"onRow-resize-started":void 0,"onRow-resize-ended":void 0,"onColumns-reset":void 0,"onBulk-editing-started":void 0,"onBulk-editing-stopped":void 0,"onBatch-editing-started":void 0,"onBatch-editing-stopped":void 0}}const ree=(e,t)=>{let n;const i=()=>{window.clearTimeout(n),n=window.setTimeout(e,t)};return i.cancel=()=>{window.clearTimeout(n)},i};function see(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype}function Fu(e){if(e==null||typeof e!="object")return e;const t=new WeakSet,n=i=>{if(i==null||typeof i!="object")return i;if(Qt(i))return n(i.value);if(Ko(i)||Ma(i))return n(ut(i));if(see(i))return ut(i);if(Array.isArray(i)){let s=!1;for(let a=0;a<i.length;a++){const l=i[a];if(l!==null&&typeof l=="object"){if(Qt(l)||Ko(l)||Ma(l)){s=!0;break}s=!0;break}}return s?i.map(a=>n(a)):i}if(t.has(i))return i;t.add(i);const o=Object.keys(i),r={};for(let s=0;s<o.length;s++)r[o[s]]=n(i[o[s]]);return r};return n(e)}const aee={ref:"root"},lee=wt({__name:"AgGridVue",props:Jo(zM({gridOptions:{},modules:{},statusBar:{},sideBar:{type:[Object,String,Array,Boolean,null]},suppressContextMenu:{type:Boolean},preventDefaultOnContextMenu:{type:Boolean},allowContextMenuWithControlKey:{type:Boolean},columnMenu:{},suppressMenuHide:{type:Boolean},enableBrowserTooltips:{type:Boolean},tooltipTrigger:{},tooltipShowDelay:{},tooltipSwitchShowDelay:{},tooltipHideDelay:{},tooltipMouseTrack:{type:Boolean},tooltipShowMode:{},tooltipInteraction:{type:Boolean},popupParent:{},copyHeadersToClipboard:{type:Boolean},copyGroupHeadersToClipboard:{type:Boolean},clipboardDelimiter:{},suppressCopyRowsToClipboard:{type:Boolean},suppressCopySingleCellRanges:{type:Boolean},suppressLastEmptyLineOnPaste:{type:Boolean},suppressClipboardPaste:{type:Boolean},suppressClipboardApi:{type:Boolean},suppressCutToClipboard:{type:Boolean},columnDefs:{},defaultColDef:{},defaultColGroupDef:{},columnTypes:{},dataTypeDefinitions:{},maintainColumnOrder:{type:Boolean},enableStrictPivotColumnOrder:{type:Boolean},suppressFieldDotNotation:{type:Boolean},headerHeight:{},groupHeaderHeight:{},floatingFiltersHeight:{},pivotHeaderHeight:{},pivotGroupHeaderHeight:{},hidePaddedHeaderRows:{type:Boolean},allowDragFromColumnsToolPanel:{type:Boolean},suppressMovableColumns:{type:Boolean},suppressColumnMoveAnimation:{type:Boolean},suppressMoveWhenColumnDragging:{type:Boolean},suppressDragLeaveHidesColumns:{type:Boolean},suppressGroupChangesColumnVisibility:{type:[Boolean,String]},suppressMakeColumnVisibleAfterUnGroup:{type:Boolean},suppressRowGroupHidesColumns:{type:Boolean},colResizeDefault:{},suppressAutoSize:{type:Boolean},autoSizePadding:{},skipHeaderOnAutoSize:{type:Boolean},autoSizeStrategy:{},animateColumnResizing:{type:Boolean},components:{},editType:{},suppressStartEditOnTab:{type:Boolean},getFullRowEditValidationErrors:{type:Function},invalidEditValueMode:{},singleClickEdit:{type:Boolean},suppressClickEdit:{type:Boolean},readOnlyEdit:{type:Boolean},stopEditingWhenCellsLoseFocus:{type:Boolean},enterNavigatesVertically:{type:Boolean},enterNavigatesVerticallyAfterEdit:{type:Boolean},enableCellEditingOnBackspace:{type:Boolean},undoRedoCellEditing:{type:Boolean},undoRedoCellEditingLimit:{},defaultCsvExportParams:{},suppressCsvExport:{type:Boolean},defaultExcelExportParams:{},suppressExcelExport:{type:Boolean},excelStyles:{},findSearchValue:{},findOptions:{},quickFilterText:{},cacheQuickFilter:{type:Boolean},includeHiddenColumnsInQuickFilter:{type:Boolean},quickFilterParser:{type:Function},quickFilterMatcher:{type:Function},applyQuickFilterBeforePivotOrAgg:{type:Boolean},excludeChildrenWhenTreeDataFiltering:{type:Boolean},enableAdvancedFilter:{type:Boolean},alwaysPassFilter:{type:Function},includeHiddenColumnsInAdvancedFilter:{type:Boolean},advancedFilterParent:{},advancedFilterBuilderParams:{},advancedFilterParams:{},suppressAdvancedFilterEval:{type:Boolean},suppressSetFilterByDefault:{type:Boolean},enableFilterHandlers:{type:Boolean},filterHandlers:{},enableCharts:{type:Boolean},chartThemes:{},customChartThemes:{},chartThemeOverrides:{},chartToolPanelsDef:{},chartMenuItems:{type:[Array,Function]},loadingCellRenderer:{},loadingCellRendererParams:{},loadingCellRendererSelector:{type:Function},localeText:{},masterDetail:{type:Boolean},keepDetailRows:{type:Boolean},keepDetailRowsCount:{},detailCellRenderer:{},detailCellRendererParams:{},detailRowHeight:{},detailRowAutoHeight:{type:Boolean},context:{},alignedGrids:{type:[Array,Function]},tabIndex:{},rowBuffer:{},valueCache:{type:Boolean},valueCacheNeverExpires:{type:Boolean},enableCellExpressions:{type:Boolean},suppressTouch:{type:Boolean},suppressFocusAfterRefresh:{type:Boolean},suppressBrowserResizeObserver:{type:Boolean},suppressPropertyNamesCheck:{type:Boolean},suppressChangeDetection:{type:Boolean},debug:{type:Boolean},loading:{type:Boolean},overlayLoadingTemplate:{},loadingOverlayComponent:{},loadingOverlayComponentParams:{},suppressLoadingOverlay:{type:Boolean},overlayNoRowsTemplate:{},noRowsOverlayComponent:{},noRowsOverlayComponentParams:{},suppressNoRowsOverlay:{type:Boolean},suppressOverlays:{},overlayComponent:{},overlayComponentParams:{},overlayComponentSelector:{type:Function},activeOverlay:{},activeOverlayParams:{},pagination:{type:Boolean},paginationPageSize:{},paginationPageSizeSelector:{type:[Array,Boolean]},paginationAutoPageSize:{type:Boolean},paginateChildRows:{type:Boolean},suppressPaginationPanel:{type:Boolean},pivotMode:{type:Boolean},pivotPanelShow:{},pivotMaxGeneratedColumns:{},pivotDefaultExpanded:{},pivotColumnGroupTotals:{},pivotRowTotals:{},pivotSuppressAutoColumn:{type:Boolean},suppressExpandablePivotGroups:{type:Boolean},functionsReadOnly:{type:Boolean},aggFuncs:{},formulaDataSource:{},formulaFuncs:{},suppressAggFuncInHeader:{type:Boolean},alwaysAggregateAtRootLevel:{type:Boolean},aggregateOnlyChangedColumns:{type:Boolean},suppressAggFilteredOnly:{type:Boolean},removePivotHeaderRowWhenSingleValueColumn:{type:Boolean},animateRows:{type:Boolean},cellFlashDuration:{},cellFadeDuration:{},allowShowChangeAfterFilter:{type:Boolean},domLayout:{},ensureDomOrder:{type:Boolean},enableCellSpan:{type:Boolean},enableRtl:{type:Boolean},suppressColumnVirtualisation:{type:Boolean},suppressMaxRenderedRowRestriction:{type:Boolean},suppressRowVirtualisation:{type:Boolean},rowDragManaged:{type:Boolean},refreshAfterGroupEdit:{type:Boolean},rowDragInsertDelay:{},suppressRowDrag:{type:Boolean},suppressMoveWhenRowDragging:{type:Boolean},rowDragEntireRow:{type:Boolean},rowDragMultiRow:{type:Boolean},rowDragText:{type:Function},dragAndDropImageComponent:{},dragAndDropImageComponentParams:{},fullWidthCellRenderer:{},fullWidthCellRendererParams:{},embedFullWidthRows:{type:Boolean},groupDisplayType:{},groupDefaultExpanded:{},autoGroupColumnDef:{},groupMaintainOrder:{type:Boolean},groupSelectsChildren:{type:Boolean},groupLockGroupColumns:{},groupAggFiltering:{type:[Boolean,Function]},groupTotalRow:{type:[String,Function]},grandTotalRow:{},suppressStickyTotalRow:{type:[Boolean,String]},groupSuppressBlankHeader:{type:Boolean},groupSelectsFiltered:{type:Boolean},showOpenedGroup:{type:Boolean},groupHideParentOfSingleChild:{type:[Boolean,String]},groupRemoveSingleChildren:{type:Boolean},groupRemoveLowestSingleChildren:{type:Boolean},groupHideOpenParents:{type:Boolean},groupHideColumnsUntilExpanded:{type:Boolean},groupAllowUnbalanced:{type:Boolean},rowGroupPanelShow:{},groupRowRenderer:{},groupRowRendererParams:{},treeData:{type:Boolean},treeDataChildrenField:{},treeDataParentIdField:{},rowGroupPanelSuppressSort:{type:Boolean},suppressGroupRowsSticky:{type:Boolean},groupHierarchyConfig:{},pinnedTopRowData:{},pinnedBottomRowData:{},enableRowPinning:{type:[Boolean,String]},isRowPinnable:{type:Function},isRowPinned:{type:Function},rowModelType:{},rowData:{},asyncTransactionWaitMillis:{},suppressModelUpdateAfterUpdateTransaction:{type:Boolean},datasource:{},cacheOverflowSize:{},infiniteInitialRowCount:{},serverSideInitialRowCount:{},suppressServerSideFullWidthLoadingRow:{type:Boolean},cacheBlockSize:{},maxBlocksInCache:{},maxConcurrentDatasourceRequests:{},blockLoadDebounceMillis:{},purgeClosedRowNodes:{type:Boolean},serverSideDatasource:{},serverSideSortAllLevels:{type:Boolean},serverSideEnableClientSideSort:{type:Boolean},serverSideOnlyRefreshFilteredGroups:{type:Boolean},serverSidePivotResultFieldSeparator:{},viewportDatasource:{},viewportRowModelPageSize:{},viewportRowModelBufferSize:{},alwaysShowHorizontalScroll:{type:Boolean},alwaysShowVerticalScroll:{type:Boolean},debounceVerticalScrollbar:{type:Boolean},suppressHorizontalScroll:{type:Boolean},suppressScrollOnNewData:{type:Boolean},suppressScrollWhenPopupsAreOpen:{type:Boolean},suppressAnimationFrame:{type:Boolean},suppressMiddleClickScrolls:{type:Boolean},suppressPreventDefaultOnMouseWheel:{type:Boolean},scrollbarWidth:{},rowSelection:{},cellSelection:{type:[Boolean,Object]},rowMultiSelectWithClick:{type:Boolean},suppressRowDeselection:{type:Boolean},suppressRowClickSelection:{type:Boolean},suppressCellFocus:{type:Boolean},suppressHeaderFocus:{type:Boolean},selectionColumnDef:{},rowNumbers:{type:[Boolean,Object]},suppressMultiRangeSelection:{type:Boolean},enableCellTextSelection:{type:Boolean},enableRangeSelection:{type:Boolean},enableRangeHandle:{type:Boolean},enableFillHandle:{type:Boolean},fillHandleDirection:{},suppressClearOnFillReduction:{type:Boolean},sortingOrder:{},accentedSort:{type:Boolean},unSortIcon:{type:Boolean},suppressMultiSort:{type:Boolean},alwaysMultiSort:{type:Boolean},multiSortKey:{},suppressMaintainUnsortedOrder:{type:Boolean},icons:{},rowHeight:{},rowStyle:{},rowClass:{},rowClassRules:{},suppressRowHoverHighlight:{type:Boolean},suppressRowTransform:{type:Boolean},columnHoverHighlight:{type:Boolean},gridId:{},deltaSort:{type:Boolean},treeDataDisplayType:{},enableGroupEdit:{type:Boolean},initialState:{},theme:{},loadThemeGoogleFonts:{type:Boolean},themeCssLayer:{},styleNonce:{},themeStyleContainer:{type:Function},getContextMenuItems:{type:Function},getMainMenuItems:{type:Function},postProcessPopup:{type:Function},processUnpinnedColumns:{type:Function},processCellForClipboard:{type:Function},processHeaderForClipboard:{type:Function},processGroupHeaderForClipboard:{type:Function},processCellFromClipboard:{type:Function},sendToClipboard:{type:Function},processDataFromClipboard:{type:Function},isExternalFilterPresent:{type:Function},doesExternalFilterPass:{type:Function},getChartToolbarItems:{type:Function},createChartContainer:{type:Function},focusGridInnerElement:{type:Function},navigateToNextHeader:{type:Function},tabToNextHeader:{type:Function},navigateToNextCell:{type:Function},tabToNextCell:{type:Function},tabToNextGridContainer:{type:Function},getLocaleText:{type:Function},getDocument:{type:Function},paginationNumberFormatter:{type:Function},getGroupRowAgg:{type:Function},isGroupOpenByDefault:{type:Function},ssrmExpandAllAffectsAllRows:{type:Boolean},initialGroupOrderComparator:{type:Function},processPivotResultColDef:{type:Function},processPivotResultColGroupDef:{type:Function},getDataPath:{type:Function},getChildCount:{type:Function},getServerSideGroupLevelParams:{type:Function},isServerSideGroupOpenByDefault:{type:Function},isApplyServerSideTransaction:{type:Function},isServerSideGroup:{type:Function},getServerSideGroupKey:{type:Function},getBusinessKeyForNode:{type:Function},getRowId:{type:Function},resetRowDataOnUpdate:{type:Boolean},processRowPostCreate:{type:Function},isRowSelectable:{type:Function},isRowMaster:{type:Function},fillOperation:{type:Function},postSortRows:{type:Function},getRowStyle:{type:Function},getRowClass:{type:Function},getRowHeight:{type:Function},isFullWidthRow:{type:Function},isRowValidDropPosition:{type:Function},"onTool-panel-visible-changed":{},"onTool-panel-size-changed":{},"onColumn-menu-visible-changed":{},"onContext-menu-visible-changed":{},"onCut-start":{},"onCut-end":{},"onPaste-start":{},"onPaste-end":{},"onColumn-visible":{},"onColumn-pinned":{},"onColumn-resized":{},"onColumn-moved":{},"onColumn-value-changed":{},"onColumn-pivot-mode-changed":{},"onColumn-pivot-changed":{},"onColumn-group-opened":{},"onNew-columns-loaded":{},"onGrid-columns-changed":{},"onDisplayed-columns-changed":{},"onVirtual-columns-changed":{},"onColumn-everything-changed":{},"onColumns-reset":{},"onColumn-header-mouse-over":{},"onColumn-header-mouse-leave":{},"onColumn-header-clicked":{},"onColumn-header-context-menu":{},"onComponent-state-changed":{},"onCell-value-changed":{},"onCell-edit-request":{},"onRow-value-changed":{},"onCell-editing-started":{},"onCell-editing-stopped":{},"onRow-editing-started":{},"onRow-editing-stopped":{},"onBulk-editing-started":{},"onBulk-editing-stopped":{},"onBatch-editing-started":{},"onBatch-editing-stopped":{},"onUndo-started":{},"onUndo-ended":{},"onRedo-started":{},"onRedo-ended":{},"onCell-selection-delete-start":{},"onCell-selection-delete-end":{},"onRange-delete-start":{},"onRange-delete-end":{},"onFill-start":{},"onFill-end":{},"onFilter-opened":{},"onFilter-changed":{},"onFilter-modified":{},"onFilter-ui-changed":{},"onFloating-filter-ui-changed":{},"onAdvanced-filter-builder-visible-changed":{},"onFind-changed":{},"onChart-created":{},"onChart-range-selection-changed":{},"onChart-options-changed":{},"onChart-destroyed":{},"onCell-key-down":{},"onGrid-ready":{},"onGrid-pre-destroyed":{},"onFirst-data-rendered":{},"onGrid-size-changed":{},"onModel-updated":{},"onVirtual-row-removed":{},"onViewport-changed":{},"onBody-scroll":{},"onBody-scroll-end":{},"onDrag-started":{},"onDrag-stopped":{},"onDrag-cancelled":{},"onState-updated":{},"onPagination-changed":{},"onRow-drag-enter":{},"onRow-drag-move":{},"onRow-drag-leave":{},"onRow-drag-end":{},"onRow-drag-cancel":{},"onRow-resize-started":{},"onRow-resize-ended":{},"onColumn-row-group-changed":{},"onRow-group-opened":{},"onExpand-or-collapse-all":{},"onPivot-max-columns-exceeded":{},"onPinned-row-data-changed":{},"onPinned-rows-changed":{},"onRow-data-updated":{},"onAsync-transactions-flushed":{},"onStore-refreshed":{},"onHeader-focused":{},"onCell-clicked":{},"onCell-double-clicked":{},"onCell-focused":{},"onCell-mouse-over":{},"onCell-mouse-out":{},"onCell-mouse-down":{},"onRow-clicked":{},"onRow-double-clicked":{},"onRow-selected":{},"onSelection-changed":{},"onCell-context-menu":{},"onRange-selection-changed":{},"onCell-selection-changed":{},"onTooltip-show":{},"onTooltip-hide":{},"onSort-changed":{}},oee()),{modelValue:{},modelModifiers:{}}),emits:Jo(["update:modelValue"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const i=e,o=DM("root"),r=yo(void 0),s=yo(!1),a=yo(!1),l=yo(!1);let u={},h=!1;const f=oM(i),g=new Set(g5());Ym().filter(M=>M!="gridOptions").forEach(M=>{const E=f[M];E&&Jt(E,(I,B)=>{(M==="rowData"&&!b.value||M!=="rowData")&&L(M,I),M==="rowData"&&(b.value=!1)},g.has(M)?void 0:{deep:!0})});const m=new Set(["rowDataUpdated","cellValueChanged","rowValueChanged"]),v=gi(e,"modelValue"),w=yo(!1),b=yo(!1),y=n;Jt(v,(M,E)=>{s.value&&(b.value||(w.value=!0,L("rowData",Fu(M),Fu(E))),b.value=!1)},{deep:!0});const R=ree(()=>{b.value=!0,y("update:modelValue",A())},10),S=Xo(),P=M=>{var E,I;l.value&&m.has(M)&&(I=(E=S?.vnode)==null?void 0:E.props)!=null&&I["onUpdate:modelValue"]&&R()},F=()=>v.value||i.rowData||i.gridOptions.rowData,A=()=>{const M=[];return r?.value.forEachLeafNode(E=>{M.push(E.data)}),M},k=M=>E=>{if(a.value)return;E==="gridReady"&&(l.value=!0);const I=Nc.has(E);I&&!M||!I&&M||m.has(E)&&(!w.value&&s.value&&P(E),w.value=!1)},L=(M,E,I)=>{if(s.value){let B=E;M==="rowData"&&B!=null&&(B=Fu(B)),u[M]=B,h||(h=!0,queueMicrotask(()=>{h=!1,!a.value&&r.value&&MO(u,r.value),u={}}))}},N=()=>Object.create(Xo().provides);return kr(()=>{$a(hF,void 0,!0);const M=new tee(Xo(),N()),E={globalListener:k(),globalSyncListener:k(!0),frameworkOverrides:new iee(Xo()),providedBeanInstances:{frameworkCompWrapper:M},modules:i.modules},I=iy(IO(Fu(i.gridOptions),i,[...Ym(),...Object.values(wh)])),B=F();B!==void 0&&(w.value=!0,I.rowData=Fu(B)),r.value=IW(o.value,I,E),s.value=!0}),pd(()=>{var M;s.value&&(R.cancel(),(M=r?.value)==null||M.destroy(),a.value=!0)}),t({api:r}),(M,E)=>(se(),pe("div",aee,null,512))}}),cee=["role","aria-hidden"],uee={key:0},dee=Bt(wt({__name:"ArrowDownToLineIcon",props:{title:{default:void 0,type:String}},setup(e){return(t,n)=>(se(),pe("svg",{class:"arrow-down-to-line-icon",viewBox:"0 0 24 24",fill:"currentColor",focusable:"false",role:e.title?"img":void 0,"aria-hidden":e.title?void 0:!0},[e.title?(se(),pe("title",uee,Je(e.title),1)):gt("",!0),n[0]||(n[0]=q("path",{d:"M9.5 3h5v7.2h4.3L12 17.9l-6.8-7.7h4.3V3Z"},null,-1)),n[1]||(n[1]=q("rect",{x:"4.5",y:"19.4",width:"15",height:"2.2",rx:"1.1"},null,-1))],8,cee))}}),[["styles",[".arrow-down-to-line-icon[data-v-bdee15f5]{display:block;height:1em;width:1em}"]],["__scopeId","data-v-bdee15f5"]]),hee=["aria-label","aria-description"],fee=["id","aria-label","aria-description"],gee={key:0,class:"ui-select-req",title:"required"},pee=["aria-label","aria-description"],mee=["id","disabled","aria-expanded","aria-controls","aria-activedescendant","aria-label","aria-labelledby","aria-description","aria-invalid","aria-describedby"],vee=["aria-label","aria-description"],Cee=["id","aria-label","aria-labelledby","aria-description"],wee=["id","aria-selected","aria-disabled","aria-description","data-active","data-value","onClick","onMousemove"],bee=["name","value"],yee=["id","aria-label","aria-description"],Pu=Bt(wt({inheritAttrs:!1,__name:"Select",props:Jo({describedBy:{default:void 0,type:String},direction:{default:"down",type:String},disabled:{type:Boolean,default:!1},error:{default:"",type:String},id:{default:void 0,type:String},inline:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},label:{default:void 0,type:String},name:{default:void 0,type:String},options:{default:()=>[],type:Array},placeholder:{default:"Select an option",type:String},required:{type:Boolean,default:!1},size:{default:"md",type:String}},{modelValue:{default:null},modelModifiers:{}}),emits:Jo(["change"],["update:modelValue"]),setup(e,{emit:t}){const n=e,i=gi(e,"modelValue"),o=t,r=jg(),s=de(()=>n.id??r),a=de(()=>`${s.value}-error`),l=de(()=>`${s.value}-label`),u=de(()=>`${s.value}-listbox`),h=W=>`${s.value}-option-${W}`,f=be(null),g=be(null),m=be(null),v=be(!1),w=be(-1),b=de(()=>n.invalid||!!n.error),y=de(()=>{const W=[];return n.error&&W.push(a.value),n.describedBy&&W.push(...n.describedBy.split(/\s+/).filter(Boolean)),W.length>0?W.join(" "):void 0}),R=de(()=>n.options.map(W=>typeof W=="object"?W:{label:String(W),value:W})),S=de(()=>R.value.findIndex(W=>String(W.value)===String(i.value??""))),P=de(()=>R.value[S.value]?.label??""),F=de(()=>S.value>=0),A=(W,J)=>{const me=R.value;for(let fe=W;fe>=0&&fe<me.length;fe+=J)if(!me[fe]?.disabled)return fe;return-1},k=async()=>{await Mr(),m.value?.querySelector('[data-active="true"]')?.scrollIntoView?.({block:"nearest"})},L=()=>{n.disabled||v.value||(v.value=!0,w.value=F.value?S.value:A(0,1),k())},N=(W=!0)=>{v.value&&(v.value=!1,w.value=-1,W&&g.value?.focus())},M=W=>{if(W.disabled)return;const J=String(W.value)!==String(i.value??"");i.value=W.value,N(),J&&o("change",W.value)},E=W=>{const J=A(w.value+W,W);J<0||(w.value=J,k())},I=W=>{if(!n.disabled)switch(W.key){case"ArrowDown":W.preventDefault(),v.value?E(1):L();break;case"ArrowUp":W.preventDefault(),v.value?E(-1):L();break;case"Home":v.value&&(W.preventDefault(),w.value=A(0,1),k());break;case"End":v.value&&(W.preventDefault(),w.value=A(R.value.length-1,-1),k());break;case"Enter":case" ":{W.preventDefault();const J=R.value[w.value];v.value&&J?M(J):L();break}case"Escape":v.value&&(W.preventDefault(),N());break;case"Tab":N(!1);break}},B=W=>{f.value?.contains(W.target)||N(!1)};return Jt(v,W=>{if(W){document.addEventListener("pointerdown",B);return}document.removeEventListener("pointerdown",B)}),Ds(()=>{document.removeEventListener("pointerdown",B)}),(W,J)=>(se(),pe("div",{ref_key:"root",ref:f,class:ft(["ui-select",{"ui-select-inline":e.inline,"ui-select-open":v.value,"ui-select-sm":e.size==="sm"}]),"aria-label":e.label??e.placeholder,"aria-description":e.label?`${e.label} select field`:"select field",onPointerdown:J[1]||(J[1]=mt(()=>{},["stop"]))},[e.label?(se(),pe("span",{key:0,id:l.value,class:"ui-select-label","aria-label":e.label,"aria-description":`${e.label} field label`},[to(Je(e.label)+" ",1),e.required?(se(),pe("abbr",gee,"*")):gt("",!0)],8,fee)):gt("",!0),q("div",{class:"ui-select-field","aria-label":e.label?`${e.label} field`:"Select field","aria-description":e.label?`${e.label} select control`:"select control"},[q("button",nc({id:s.value,ref_key:"trigger",ref:g,type:"button",class:"ui-select-control",role:"combobox",disabled:e.disabled,"aria-expanded":v.value,"aria-controls":u.value,"aria-activedescendant":v.value&&w.value>=0?h(w.value):void 0,"aria-label":e.label?void 0:e.placeholder,"aria-labelledby":e.label?l.value:void 0,"aria-description":e.label?`${e.label} select`:"select","aria-invalid":b.value?!0:void 0,"aria-describedby":y.value,onClick:J[0]||(J[0]=me=>v.value?N():L()),onKeydown:I},W.$attrs),[q("span",{class:ft(["ui-select-value",{"ui-select-value-placeholder":!F.value}]),"aria-label":F.value?P.value:e.placeholder,"aria-description":F.value?"selected value":"placeholder"},Je(F.value?P.value:e.placeholder),11,vee),q("span",{class:ft(["ui-select-chevron",{"ui-select-chevron-open":v.value}]),"aria-hidden":"true"},null,2)],16,mee),Ps(q("ul",{id:u.value,ref_key:"listbox",ref:m,class:ft(["ui-select-listbox",`ui-select-listbox-${e.direction}`]),role:"listbox","aria-label":e.label??e.placeholder,"aria-labelledby":e.label?l.value:void 0,"aria-description":e.label?`${e.label} options`:"select options"},[(se(!0),pe(bt,null,Ii(R.value,(me,fe)=>(se(),pe("li",{id:h(fe),key:String(me.value),class:ft(["ui-select-option",{"ui-select-option-active":fe===w.value,"ui-select-option-selected":fe===S.value,"ui-select-option-disabled":me.disabled}]),role:"option","aria-selected":fe===S.value,"aria-disabled":me.disabled?!0:void 0,"aria-description":`${me.label} option`,"data-active":fe===w.value?"true":void 0,"data-value":String(me.value),onClick:ve=>M(me),onMousemove:ve=>w.value=me.disabled?w.value:fe},Je(me.label),43,wee))),128))],10,Cee),[[sp,v.value]])],8,pee),e.name?(se(),pe("input",{key:1,type:"hidden",name:e.name,value:i.value??""},null,8,bee)):gt("",!0),e.error?(se(),pe("p",{key:2,id:a.value,class:"ui-select-error",role:"alert","aria-label":e.error,"aria-description":e.label?`${e.label} error`:"select error"},Je(e.error),9,yee)):gt("",!0)],42,hee))}}),[["styles",[".ui-select[data-v-9ff061c7]{display:flex;flex-direction:column;gap:.35rem;min-width:0;position:relative}.ui-select-chevron[data-v-9ff061c7]{border-left:.3125rem solid transparent;border-right:.3125rem solid transparent;border-top:.375rem solid var(--color-grey-900);flex-shrink:0;height:0;transition:transform .15s ease;width:0}.ui-select-chevron-open[data-v-9ff061c7]{transform:rotate(180deg)}.ui-select-control[data-v-9ff061c7]{align-items:center;background-color:var(--color-white);border:.0625rem solid var(--color-green-400);border-radius:.25rem;box-sizing:border-box;color:var(--color-grey-900);cursor:pointer;display:flex;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.875rem;gap:.5rem;height:3rem;justify-content:space-between;padding:.75rem 1rem;text-align:left;width:100%}.ui-select-control[data-v-9ff061c7]:disabled{cursor:not-allowed;opacity:.65}.ui-select-control[data-v-9ff061c7]:focus-visible,.ui-select-control[aria-expanded=true][data-v-9ff061c7]{border:.125rem solid var(--color-brand-bright-200);outline:0}.ui-select-control[data-v-9ff061c7]:hover:not(:disabled),.ui-select-control[data-v-9ff061c7]:active:not(:disabled){background-color:var(--color-green-50)}.ui-select-control[aria-invalid=true][data-v-9ff061c7]{border-color:var(--color-red)}.ui-select-control[aria-invalid=true][data-v-9ff061c7]:focus-visible,.ui-select-control[aria-invalid=true][aria-expanded=true][data-v-9ff061c7]{border-color:var(--color-red)}.ui-select-error[data-v-9ff061c7]{color:var(--color-red);font-size:.75rem;line-height:1.125rem;margin:0}.ui-select-field[data-v-9ff061c7]{min-width:0;position:relative}.ui-select-inline[data-v-9ff061c7]{align-items:center;display:inline-flex;flex-direction:row;gap:.5rem}.ui-select-inline .ui-select-control[data-v-9ff061c7]{width:auto}.ui-select-sm .ui-select-control[data-v-9ff061c7]{height:2.5rem;padding:.5rem .75rem}.ui-select-sm .ui-select-option[data-v-9ff061c7]{padding:.5rem .75rem}.ui-select-label[data-v-9ff061c7]{color:var(--color-grey-900);font-size:.875rem;line-height:1.25rem;white-space:nowrap}.ui-select-listbox[data-v-9ff061c7]{background-color:var(--color-white);border:.0625rem solid var(--color-green-400);border-radius:.25rem;box-shadow:0 .25rem .75rem #00000014;list-style:none;margin:0;max-height:14rem;min-width:100%;overflow-y:auto;padding:0;position:absolute;right:0;z-index:20}.ui-select-listbox-down[data-v-9ff061c7]{top:calc(100% + .25rem)}.ui-select-listbox-up[data-v-9ff061c7]{bottom:calc(100% + .25rem)}.ui-select-open[data-v-9ff061c7]{z-index:21}.ui-select-option[data-v-9ff061c7]{background-color:var(--color-white);border-bottom:.0625rem solid var(--color-green-400);color:var(--color-grey-900);cursor:pointer;font-size:.875rem;line-height:1.25;padding:.75rem 1rem;white-space:nowrap}.ui-select-option[data-v-9ff061c7]:hover:not(.ui-select-option-disabled):not(.ui-select-option-selected),.ui-select-option-active[data-v-9ff061c7]:not(.ui-select-option-selected){background-color:var(--color-green-50)}.ui-select-option[data-v-9ff061c7]:last-child{border-bottom:none}.ui-select-option-disabled[data-v-9ff061c7]{color:var(--color-grey-600);cursor:not-allowed;opacity:.65}.ui-select-option-disabled[data-v-9ff061c7]:hover{background-color:var(--color-white)}.ui-select-option-selected[data-v-9ff061c7]{background-color:var(--color-green-100);color:var(--color-grey-900)}.ui-select-req[data-v-9ff061c7]{color:var(--color-red);cursor:help;text-decoration:none}.ui-select-value[data-v-9ff061c7]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-select-value-placeholder[data-v-9ff061c7]{color:var(--color-grey-600)}"]],["__scopeId","data-v-9ff061c7"]]),See={class:"ag-cf9a-filter","aria-description":"filter modal",role:"dialog"},Ree={class:"ag-cf9a-title-row","aria-description":"container for title and close buttton"},xee={class:"ag-cf9a-title"},Fee={class:"ag-cf9a-condition-container","aria-description":"container for filter condition fields"},Pee={key:1,class:"ag-cf9a-condition-container","aria-description":"container for condition 2 inputs"},Eee={class:"ag-cf9a-actions","aria-description":"container for buttons"},zt=wt({__name:"BaseColumnFilter",props:{params:{type:Object}},setup(e){const t=be(null),n=be(""),i=be("equals"),o=be(""),r=be("equals"),s=be(""),a=be("AND"),l=de(()=>e.params.filterKind??"text"),u=de(()=>l.value==="number"?"number":l.value==="date"?"date":"text"),h=de(()=>i.value==="inRange"&&l.value!=="text"),f=de(()=>e.params.title??e.params.column?.getColDef().headerName??e.params.column?.getColDef().field??""),g=[{label:"And",value:"AND"},{label:"Or",value:"OR"}],m=de(()=>l.value==="text"?[{label:"is equal to",value:"equals"},{label:"is not equal to",value:"notEqual"},{label:"contains",value:"contains"},{label:"does not contain",value:"notContains"},{label:"begins with",value:"startsWith"},{label:"ends with",value:"endsWith"}]:[{label:"is equal to",value:"equals"},{label:"is not equal to",value:"notEqual"},{label:"is less than",value:"lessThan"},{label:"is greater than",value:"greaterThan"},{label:"is less than or equal to",value:"lessThanOrEqual"},{label:"is greater than or equal to",value:"greaterThanOrEqual"},{label:"is between",value:"inRange"}]),v=()=>{e.params.hidePopup?.(),e.params.api?.hidePopupMenu?.()},w=async()=>{await Mr(),t.value?.$el?.querySelector(".ui-input-control")?.focus()},b=F=>{if(!F){a.value="AND",n.value="",i.value="equals",o.value="",r.value="equals",s.value="";return}if("condition1"in F){a.value=F.operator??"AND",n.value=String(F.condition1?.filterTo??F.condition1?.dateTo??""),i.value=F.condition1?.type??"equals",o.value=String(F.condition1?.filter??F.condition1?.dateFrom??""),r.value=F.condition2?.type??"equals",s.value=String(F.condition2?.filter??F.condition2?.dateFrom??"");return}n.value=String(F.filterTo??F.dateTo??""),i.value=F.type??"equals",o.value=String(F.filter??F.dateFrom??""),r.value="equals",s.value=""},y=(F,A,k="")=>{const L=xe.isString(A)?A.trim():A,N=xe.isString(k)?k.trim():k;return xe.isNil(L)||xe.isString(L)&&xe.isEmpty(L)?null:l.value==="number"?F==="inRange"?xe.isNil(N)?null:{filter:Number(L),filterTo:Number(N),filterType:"number",type:F}:{filter:Number(L),filterType:"number",type:F}:l.value==="date"?F==="inRange"?xe.isNil(N)?null:{dateFrom:L,dateTo:N,filterType:"date",type:F}:{dateFrom:L,filterType:"date",type:F}:{filter:L,filterType:"text",type:F}},R=F=>{e.params.onStateChange?.({model:F}),e.params.onModelChange?.(F)},S=()=>{const F=y(i.value,o.value,n.value),A=y(r.value,s.value);if(!F&&!A){R(null),e.params.onAction?.("apply"),v();return}if(F&&A){R({condition1:F,condition2:A,filterType:l.value,operator:a.value}),e.params.onAction?.("apply"),v();return}if(i.value==="inRange"){F&&R({condition1:F,filterType:l.value,operator:a.value}),e.params.onAction?.("apply"),v();return}R(F??A),e.params.onAction?.("apply"),v()},P=()=>{b(null),R(null),e.params.onAction?.("clear"),v()};return Jt(()=>e.params.model,F=>b(F),{immediate:!0}),kr(()=>{w()}),(F,A)=>{const k=Ts("font-awesome-icon");return se(),pe("div",See,[q("div",Ree,[q("header",xee,[q("h3",null,Je(f.value),1)]),q("button",{class:"ag-cf9a-close-button",onClick:v,"aria-label":"Close Filter"},[Oe(k,{class:"ag-cf9a-close-icon",icon:["fas","xmark"],size:"xs","aria-hidden":"true"})])]),A[6]||(A[6]=q("p",{class:"ag-cf9a-helper-text"}," Show items with value that ",-1)),q("div",Fee,[Oe(Pu,{modelValue:i.value,"onUpdate:modelValue":A[0]||(A[0]=L=>i.value=L),class:"ag-cf9a-select",options:m.value,"aria-label":"First condition operator",onKeydown:[Xt(mt(v,["prevent","stop"]),["esc"]),Xt(mt(S,["prevent","stop"]),["enter"])]},null,8,["modelValue","options","onKeydown"]),Oe(fo,{ref_key:"condition1Input",ref:t,modelValue:o.value,"onUpdate:modelValue":A[1]||(A[1]=L=>o.value=L),class:"ag-cf9a-input",placeholder:"Enter value",type:u.value,"aria-label":"First condition value",onKeydown:[Xt(mt(v,["prevent","stop"]),["esc"]),Xt(mt(S,["prevent","stop"]),["enter"])]},null,8,["modelValue","type","onKeydown"]),h.value?(se(),an(fo,{key:0,modelValue:n.value,"onUpdate:modelValue":A[2]||(A[2]=L=>n.value=L),class:"ag-cf9a-input",placeholder:"Enter end value",type:u.value,"aria-label":"First condition end value",onKeydown:[Xt(mt(v,["prevent","stop"]),["esc"]),Xt(mt(S,["prevent","stop"]),["enter"])]},null,8,["modelValue","type","onKeydown"])):gt("",!0),h.value?gt("",!0):(se(),pe("div",Pee,[Oe(Pu,{modelValue:a.value,"onUpdate:modelValue":A[3]||(A[3]=L=>a.value=L),class:"ag-cf9a-select",options:g,"aria-label":"Condition join operator",onKeydown:[Xt(mt(v,["prevent","stop"]),["esc"]),Xt(mt(S,["prevent","stop"]),["enter"])]},null,8,["modelValue","onKeydown"]),Oe(Pu,{modelValue:r.value,"onUpdate:modelValue":A[4]||(A[4]=L=>r.value=L),class:"ag-cf9a-select",options:m.value,"aria-label":"Second condition operator",onKeydown:[Xt(mt(v,["prevent","stop"]),["esc"]),Xt(mt(S,["prevent","stop"]),["enter"])]},null,8,["modelValue","options","onKeydown"]),Oe(fo,{modelValue:s.value,"onUpdate:modelValue":A[5]||(A[5]=L=>s.value=L),class:"ag-cf9a-input",placeholder:"Enter value",type:u.value,"aria-label":"Second condition value",onKeydown:[Xt(mt(v,["prevent","stop"]),["esc"]),Xt(mt(S,["prevent","stop"]),["enter"])]},null,8,["modelValue","type","onKeydown"])]))]),q("div",Eee,[Oe(fs,{class:"ag-cf9a-button ag-cf9a-button-secondary",label:"Clear",variant:"secondary",onClick:P}),Oe(fs,{class:"ag-cf9a-button ag-cf9a-button-primary",label:"Filter",onClick:S})])])}}}),kf={filterKind:"date"},zD={filterKind:"number"},Cn={filterKind:"text"},fw=e=>{const t=e.value;if(xe.isNil(t)||t==="")return;const n=String(t).split(";").map(i=>i.trim()).filter(i=>i.length>0);return n.length>0?n.join(`
667
- `):void 0},UD=e=>{if(xe.isNil(e))return"";const t=Number(e);return Number.isNaN(t)?"":t.toLocaleString("en-US",{currency:"USD",style:"currency"})},gw=[{headerName:"Details",field:"id",sortable:!1,filter:!1,resizable:!0,width:120,suppressHeaderMenuButton:!0,cellRenderer:e=>{const t=e.data?.id;return t?`<a id="contribution-details-link-${t}" class="contribution-details-link" style="color:var(--color-primary-green)" href="/PoliticalContributionVerification/Contribution/${t}">View</a>`:""}},{field:"contributor",headerName:"Contributor",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"employer",headerName:"Employer",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"employeeStatus",headerName:"Employee Status",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"occupation",headerName:"Occupation",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"address",headerName:"Address",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"state",headerName:"State",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"zipCode",headerName:"Zip Code",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"date",headerName:"Date",filter:{component:zt,doesFilterPass:()=>!0},filterParams:kf},{field:"dateDetected",headerName:"Date Detected",filter:{component:zt,doesFilterPass:()=>!0},filterParams:kf},{field:"amount",headerName:"Amount",filter:{component:zt,doesFilterPass:()=>!0},filterParams:zD,valueFormatter:e=>UD(e.value),cellClass:"ag-cf9a-currency-cell"},{field:"recipient",headerName:"Recipient",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"status",headerName:"Status",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"reconciliationStatus",headerName:"Reconciliation Status",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"preclearance",headerName:"Preclearance",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn,cellRenderer:e=>{const t=e.data?.preclearance;return t?`<a id="contribution-preclearance-link-${t}" class="contribution-preclearance-link" style="color:var(--color-primary-green)" href="/preclearance/${t}">${t}</a>`:""}},{field:"approvalDate",headerName:"Approval Date",filter:{component:zt,doesFilterPass:()=>!0},filterParams:kf},{field:"approvedAmount",headerName:"Approved Amount",filter:{component:zt,doesFilterPass:()=>!0},filterParams:zD,valueFormatter:e=>UD(e.value),cellClass:"ag-cf9a-currency-cell"},{field:"amended",headerName:"Amended",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"jurisdiction",headerName:"Jurisdiction",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"lastUpdated",headerName:"Last Updated",filter:{component:zt,doesFilterPass:()=>!0},filterParams:kf},{field:"lastUpdatedBy",headerName:"Last Updated By",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn},{field:"notes",headerName:"Notes",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn,sortable:!1,tooltipValueGetter:fw},{field:"tags",headerName:"Tags",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn,tooltipValueGetter:fw},{field:"groups",headerName:"Groups",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn,tooltipValueGetter:fw},{field:"sources",headerName:"Source",filter:{component:zt,doesFilterPass:()=>!0},filterParams:Cn}],Dee={comparator:()=>0,filter:!0,flex:1,floatingFilter:!1,minWidth:180,resizable:!0,sortable:!0},Tee={maxWidth:56,minWidth:56,pinned:"left",resizable:!1,sortable:!1,suppressHeaderMenuButton:!0,width:56},Aee={mode:"multiRow",checkboxes:!0,headerCheckbox:!0,enableClickSelection:!1,selectAll:"all"},Iee={class:"toolbar-left","aria-description":"selection summary"},Mee={key:0,class:"selection-count","aria-description":"container for number of selected rows"},kee={class:"toolbar-actions","aria-description":"table toolbar actions"},Lee={ref:"bulkStatusSelect",class:"bulk-status-select-wrap","aria-description":"container for bulk status select"},Oee={ref:"bulkNoteButton",class:"bulk-note-button-wrap","aria-description":"container for add notes button"},_ee={class:"export-controls","aria-description":"container for export controls"},Nee=["disabled"],Bee={class:"column-controls","aria-description":"container for column controls"},Hee={"aria-description":"container for column visibility modal content"},Gee=["onClick"],Vee=["id","name","checked","disabled"],Wee=["for"],zee={class:"contributions-table-footer","aria-description":"container for pagination controls",role:"footer"},Uee={class:"footer-left","aria-description":"container for page size controls"},$ee={class:"footer-count","aria-description":"container for record count data"},jee={class:"footer-right","aria-label":"Pagination","aria-description":"container for page navigation controls"},Kee=["disabled"],qee=["disabled"],Qee={key:0,class:"pagination-ellipsis","aria-hidden":"true"},Yee=["aria-current","aria-label","aria-description","onClick"],Zee=["disabled"],Jee=["disabled"],Xee={"aria-description":"bulk status confirmation message"},$D=Bt(wt({__name:"ContributionsTable",props:Jo({disabledColumns:{default:()=>[],type:Array},disableSelection:{type:Boolean,default:!1},match:{type:Boolean,default:!0},page:{type:String},presets:{default:()=>({}),type:Object},user:{type:String},company:{type:String},stack:{type:String},username:{type:String}},{columnsState:{default:()=>[]},columnsStateModifiers:{},loading:{type:Boolean,default:!1},loadingModifiers:{},resultsTotal:{default:0},resultsTotalModifiers:{},sortColumn:{default:null},sortColumnModifiers:{},sortOrder:{default:null},sortOrderModifiers:{}}),emits:["update:columnsState","update:loading","update:resultsTotal","update:sortColumn","update:sortOrder"],setup(e){const t=gi(e,"columnsState"),n=gi(e,"loading"),i=gi(e,"resultsTotal"),o=gi(e,"sortColumn"),r=gi(e,"sortOrder"),s=TY(),a=wD(we=>we.ContributionSearchReducer?.[e.page]),{trigger:l}=xJ(),{trigger:u,isLoading:h}=xD(),{trigger:f}=PJ(),{trigger:g,isLoading:m}=VX(),{data:v}=rw(de(()=>({user:e.user,company:e.company,stack:e.stack,username:e.username}))),w=be(null),b=de(()=>gw.reduce((we,Me)=>{const at=Me.field;if(e.disabledColumns.includes(at)||!k.value[at])return we;let Ne=!1;return e.presets&&!xe.isEmpty(e.presets)&&(Ne=!!e.presets[at]?.query?.length),[...we,{...Me,filter:Ne?!1:Me.filter}]},[])),y=be(Dee),R={filter:ZP(nq,{classes:["grid-filter-icon"]}).html[0]??""},S=be(null),P=be([]),F=be(null),A=be(null),k=be(gw.reduce((we,Me)=>e.disabledColumns.includes(Me.field)?we:{...we,[Me.field]:!0},{})),L=be(!1),N=de(()=>i.value===0?0:Math.min(E.value*M.value,i.value)),M=be(100),E=be(1),I=[10,25,50,100],B=de(()=>i.value===0?0:(E.value-1)*M.value+1),W=be(1),J=de(()=>{const we=W.value,Me=E.value;if(we<=7)return Array.from({length:we},(Mt,on)=>on+1);const at=new Set([1,we]);let Ne=Math.max(1,Me-2);const je=Math.min(we,Ne+4);Ne=Math.max(1,je-4);for(let Mt=Ne;Mt<=je;Mt+=1)at.add(Mt);const Tn=[...at].sort((Mt,on)=>Mt-on),Ri=[];return Tn.forEach((Mt,on)=>{const gs=Tn[on-1];on>0&&gs!==void 0&&Mt-gs>1&&Ri.push("ellipsis"),Ri.push(Mt)}),Ri});let me;const fe=be(Aee),ve=de(()=>oe.value.length),De=be(Tee),oe=be([]),H=be(""),Q=be(null),j=be(!1),ce=de(()=>(v.value??[]).map(we=>({label:we.name,value:we.id}))),Ee=be(null),Ie=be(null),Fe=be(!1),Le=be(null),$e=be(null),Ve=be(!1),yt=de(()=>i.value>0&&!!a.value),O=()=>{j.value||(Q.value?.open(),j.value=!0)},V=()=>{H.value="",j.value=!1},U=we=>{const Me=xe.isNil(we)||we===""?null:Number(we);Ee.value=Me===null||Number.isNaN(Me)?null:Me,!Fe.value&&!xe.isNil(Ee.value)&&(Ie.value?.open(),Fe.value=!0)},ne=()=>{Ee.value=null,Fe.value=!1},te=we=>{if(!we.finished||!w.value)return;const Me=we.api.getAllDisplayedColumns().map(at=>at.getColId()).filter(at=>k.value[at]);t.value=Me},Z=we=>{const Me=we.target;Ve.value&&!Le.value?.contains(Me)&&!$e.value?.contains(Me)&&(Le.value?.close(),Ve.value=!1),L.value&&!A.value?.contains(Me)&&!F.value?.contains(Me)&&(A.value?.close(),L.value=!1)};kr(()=>document.addEventListener("pointerdown",Z)),Ds(()=>document.removeEventListener("pointerdown",Z));const Se=de(()=>Object.values(k.value).filter(Boolean).length),Ce=we=>k.value[we]&&Se.value===1,he=we=>{Ce(we)||(k.value={...k.value,[we]:!k.value[we]})},ie=we=>{we.stopPropagation(),L.value?(we.target===A.value||we.currentTarget===F.value)&&(A.value?.close(),L.value=!1):(A.value?.show(),L.value=!0)},ke=(we="xlsx")=>{!a.value||!yt.value||(Le.value?.close(),Ve.value=!1,console.log("Exporting contributions with subsequent search body:"),console.log(a.value),u({user:e.user,company:e.company,stack:e.stack,username:e.username,format:we,columnsState:t.value,sortColumn:o.value,sortOrder:r.value,match:e.match,body:a.value}))},Te=we=>{we.stopPropagation(),!(!yt.value||h.value)&&(Ve.value?(we.target===Le.value||we.currentTarget===$e.value)&&(Le.value?.close(),Ve.value=!1):(Le.value?.show(),Ve.value=!0))},He=async()=>{E.value=1,await Dn()},ze=async()=>{E.value<=1||(E.value=1,await Dn())},Xe=async()=>{E.value<=1||(E.value-=1,await Dn())},rt=async()=>{E.value>=W.value||(E.value+=1,await Dn())},it=async()=>{E.value>=W.value||(E.value=W.value,await Dn())},Ut=async we=>{we<1||we>W.value||we===E.value||(E.value=we,await Dn())},$t=we=>we?.conditions?.length?we.conditions:we?.condition1||we?.condition2?[we.condition1,we.condition2].filter(Me=>!xe.isNil(Me)):[we],Yt=we=>(Me,at)=>{const Ne=$t(at).reduce(we,[]),je={page:e.page,filterName:Me},Tn=$X(at?.operator,Ne);s(CD({...je,conjunction:Tn})),Ne.forEach(Ri=>s(mD({...je,query:Ri})))},wn=(we,Me)=>{Yt((Ne,je)=>xe.isEmpty(je?.dateFrom)?Ne:je.type==="inRange"&&!xe.isEmpty(je.dateFrom)&&!xe.isEmpty(je.dateTo)?[...Ne,Zn("greaterThanOrEqual",xe.isDate(je.dateFrom)?je.dateFrom.toISOString().slice(0,10):je.dateFrom),Zn("lessThanOrEqual",xe.isDate(je.dateTo)?je.dateTo.toISOString().slice(0,10):je.dateTo)]:[...Ne,Zn(je.type,xe.toString(je.dateFrom))])(we,Me)},Si=(we,Me)=>{Yt((Ne,je)=>xe.isNil(je?.filter)?Ne:je.type==="inRange"&&!xe.isNil(je.filter)&&!xe.isNil(je.filterTo)?[...Ne,Zn("greaterThanOrEqual",xe.toNumber(je.filter)),Zn("lessThanOrEqual",xe.toNumber(je.filterTo))]:[...Ne,Zn(je.type,xe.toNumber(je.filter))])(we,Me)},Go=(we,Me)=>{Yt((Ne,je)=>xe.isEmpty(je?.filter)?Ne:[...Ne,Zn(je.type,xe.toString(je.filter))])(we,Me)},nn=()=>{xe.entries(e.presets).forEach(([we,Me])=>{const at=Me.query;if(!(xe.isArray(at)&&at.every(Tn=>xe.isObject(Tn)&&xe.has(Tn,"comparator")&&xe.has(Tn,"value"))))return;const Ne=!at?.length||at.length<2?ln.NULL:Me.conjunction;if(Ne!==ln.NULL&&Ne!==ln.AND&&Ne!==ln.OR)return;const je={page:e.page,filterName:we};s(vD({...je})),s(CD({...je,conjunction:Ne})),at.forEach(Tn=>s(mD({...je,query:Tn})))})},bn=we=>{const Me=new Set(["date","dateDetected","approvalDate","lastUpdated"]),at=new Set(["amount","approvalAmount"]),Ne=new Set(["contributor","employer","employeeStatus","occupation","address","state","zipCode","recipient","status","reconciliationStatus","preclearance","amended","jurisdiction","lastUpdatedBy","notes","tags","groups","sources"]),je=[...Array.from(Me),...Array.from(at),...Array.from(Ne)],Tn=xe.entries(e.presets).reduce((Mt,[on,gs])=>gs?.query?.length?[...Mt,on]:Mt,[]),Ri=xe.difference(je,Tn);nn(),Ri.forEach(Mt=>{const on={page:e.page,filterName:Mt};s(vD({...on}))}),xe.entries(we).forEach(([Mt,on])=>{Me.has(Mt)?wn(Mt,on):at.has(Mt)?Si(Mt,on):Ne.has(Mt)&&Go(Mt,on)})};function wr(){return w.value?w.value.getColumnState().filter(we=>we.sort).sort((we,Me)=>(we.sortIndex??0)-(Me.sortIndex??0)).map(we=>({column:we.colId,direction:we.sort})):[]}const Dn=async()=>{if(!e.user||!e.company||!e.stack||!e.username)return;const we=w.value?.getFilterModel()??{};bn(we);const at=wr()[0],Ne=xe.entries(a.value).reduce((Tn,[Ri,Mt])=>{const on=Mt.query.filter(Ca=>(xe.isString(Ca.value)&&!xe.isEmpty(Ca.value)||!xe.isNil(Ca.value))&&Ca.value!=="undefined"&&Ca.value!=="null"),gs=on?.length?Mt.conjunction:ln.NULL;return{...Tn,[Ri]:{conjunction:gs,query:on}}},{}),je=await g({user:e.user,company:e.company,stack:e.stack,username:e.username,page:E.value,limit:M.value,sortColumn:at?.column,sortOrder:at?.direction,match:e.match,body:Ne});P.value=je?.results??[],E.value=je?.page??1,M.value=je?.limit??M.value,i.value=je?.total??0,W.value=je?.totalPages??1,oe.value=[]},pw=()=>{window.clearTimeout(me),me=window.setTimeout(async()=>{E.value=1,await Dn()},500)},mw=async()=>{const Me=wr()[0];o.value=Me?.column??null,r.value=Me?.direction??null,E.value=1,await Dn()},Lf=async we=>{w.value=we.api,t.value=we.api.getAllDisplayedColumns().map(Me=>Me.getColId()).filter(Me=>k.value[Me]),await Dn()},Of=we=>{oe.value=we.api.getSelectedRows()},vw=async()=>{const we=H.value.trim().replace(/ +/g," ");if(!we.length)return;const Me={contributions:oe.value.map(at=>at.id),note:we,type:"user"};await l({user:e.user,company:e.company,stack:e.stack,username:e.username,body:Me}),Q.value?.close(),H.value="",await Dn()},Cw=async()=>{if(xe.isNil(Ee.value))return;const we={contributions:oe.value.map(Me=>Me.id),status:Ee.value};await f({user:e.user,company:e.company,stack:e.stack,username:e.username,body:we}),Ie.value?.close(),await Dn()};return Jt(m,we=>{n.value=!!we}),Jt(()=>[e.match,e.presets,e.user,e.company,e.stack,e.username],async()=>{w.value&&(E.value=1,await Dn())}),Jt(k,async we=>{if(!w.value)return;await Mr();const Me=w.value.getAllDisplayedColumns().map(at=>at.getColId()).filter(at=>we[at]);t.value=Me}),(we,Me)=>{const at=Ts("font-awesome-icon");return se(),pe("div",{ref_key:"popupParent",ref:S,class:"contributions-table","aria-description":"container for table and related controls"},[q("div",{class:ft(["contributions-table-toolbar",{"contributions-table-toolbar-no-selection":e.disableSelection}]),"aria-description":"container for bulk and column controls"},[q("div",Iee,[e.disableSelection?gt("",!0):(se(),pe("span",Mee,Je(ve.value)+" selected",1))]),q("div",kee,[oe.value.length?(se(),pe(bt,{key:0},[q("span",Lee,[Oe(Pu,{id:"bulk-status-select",modelValue:Ee.value,"onUpdate:modelValue":Me[0]||(Me[0]=Ne=>Ee.value=Ne),inline:"",label:"Change Status",options:ce.value,placeholder:"Select an option",size:"sm",onChange:U},null,8,["modelValue","options"])],512),q("span",Oee,[Oe(fs,{label:"Add Notes","aria-description":"add notes button",onClick:O})],512)],64)):gt("",!0),q("div",_ee,[q("button",{type:"button",class:ft(["toolbar-icon-button",{"is-active":Ve.value}]),ref_key:"exportModalButton",ref:$e,disabled:Vn(h)||!yt.value,"aria-label":"Export","aria-description":"export button",onClick:mt(Te,["prevent"])},[Oe(dee,{class:"toolbar-icon"})],10,Nee),q("dialog",{class:"contributions-export-modal",ref_key:"exportModal",ref:Le,onPointerdown:Me[2]||(Me[2]=mt(()=>{},["stop"]))},[q("button",{type:"button",onClick:Me[1]||(Me[1]=Ne=>ke("xlsx"))}," Export to Excel ")],544)]),q("div",Bee,[q("button",{type:"button",class:ft(["toolbar-icon-button",{"is-active":L.value}]),ref_key:"columnsVisibilityButton",ref:F,"aria-label":"Toggle Columns","aria-description":"toggle columns button",onClick:ie},[Oe(at,{class:"toolbar-icon",icon:["fas","ellipsis-h"],"aria-hidden":"true"})],2),q("dialog",{ref_key:"columnsVisibilityModal",ref:A,class:"columns-visibility-modal",onPointerdown:Me[4]||(Me[4]=mt(()=>{},["stop"]))},[q("ul",Hee,[(se(!0),pe(bt,null,Ii(Vn(gw).filter(Ne=>!e.disabledColumns.includes(Ne.field)),Ne=>(se(),pe("li",{key:Ne.field,onClick:je=>he(Ne.field)},[q("input",{id:`column-visibility-${Ne.field}`,class:"column-visibility-checkbox",name:Ne.field,type:"checkbox",checked:k.value?.[Ne.field],disabled:Ce(Ne.field)},null,8,Vee),Me[7]||(Me[7]=to("    ",-1)),q("label",{for:`column-visibility-${Ne.field}`,onClick:Me[3]||(Me[3]=mt(()=>{},["stop"]))},Je(Ne.headerName),9,Wee)],8,Gee))),128))])],544)])])],2),Oe(Vn(lee),{class:"ag-theme-alpine contributions-grid",style:{height:"38.75rem",width:"100%"},"aria-description":"contributions data grid",columnDefs:b.value,defaultColDef:y.value,enableFilterHandlers:!0,icons:R,loading:Vn(m),loadingOverlayComponent:lw,popupParent:S.value??void 0,rowData:P.value,rowSelection:e.disableSelection?void 0:fe.value,selectionColumnDef:e.disableSelection?void 0:De.value,tooltipHideDelay:2e4,tooltipInteraction:!0,tooltipShowDelay:500,onColumnMoved:te,onGridReady:Lf,onFilterChanged:pw,onSortChanged:mw,onSelectionChanged:Of},null,8,["columnDefs","defaultColDef","loading","popupParent","rowData","rowSelection","selectionColumnDef"]),q("div",zee,[q("div",Uee,[Oe(Pu,{id:"contributions-table-page-size",modelValue:M.value,"onUpdate:modelValue":Me[5]||(Me[5]=Ne=>M.value=Ne),direction:"up",inline:"",label:"Items per page:",options:I,size:"sm",onChange:He},null,8,["modelValue"]),q("div",$ee,Je(B.value)+" - "+Je(N.value)+" of "+Je(i.value)+" items ",1)]),q("nav",jee,[q("button",{type:"button",class:"pagination-nav",disabled:E.value<=1,onClick:ze,"aria-label":"Go to first page","aria-description":"go to first page"},"|<",8,Kee),q("button",{type:"button",class:"pagination-nav",disabled:E.value<=1,onClick:Xe,"aria-label":"Go to previous page","aria-description":"go to previous page"},"<",8,qee),(se(!0),pe(bt,null,Ii(J.value,(Ne,je)=>(se(),pe(bt,{key:`page-item-${Ne}-${je}`},[Ne==="ellipsis"?(se(),pe("span",Qee,"...")):(se(),pe("button",{key:1,type:"button",class:ft(["pagination-page",{"is-active":Ne===E.value}]),"aria-current":Ne===E.value?"page":void 0,"aria-label":`Go to page ${Ne}`,"aria-description":`go to page ${Ne}`,onClick:Tn=>Ut(Ne)},Je(Ne),11,Yee))],64))),128)),q("button",{type:"button",class:"pagination-nav",disabled:E.value>=W.value,onClick:rt,"aria-label":"Go to next page","aria-description":"go to next page"},">",8,Zee),q("button",{type:"button",class:"pagination-nav",disabled:E.value>=W.value,onClick:it,"aria-label":"Go to last page","aria-description":"go to last page"},">|",8,Jee)])]),Oe(sw,{ref_key:"bulkStatusModal",ref:Ie,class:"bulk-status-modal","cancel-button-label":"Cancel","content-width":"min(45rem, calc(100vw - 2rem))","primary-button-disabled":!oe.value.length,"primary-button-label":"Update",title:"Change Status",onClose:ne,onPrimaryClick:Cw},{default:zn(()=>[q("p",Xee,[to("Are you sure that you want to change the status of "+Je(oe.value.length)+" Contribution"+Je(oe.value.length===1?"":"s")+" to ",1),q("strong",null,Je(ce.value.reduce((Ne,je)=>je.value===Ee.value?`${Ne}${je.label}`:Ne,"")),1),Me[8]||(Me[8]=to("?",-1))])]),_:1},8,["primary-button-disabled"]),Oe(sw,{ref_key:"bulkNoteModal",ref:Q,class:"bulk-note-modal","cancel-button-label":"Cancel","content-width":"min(45rem, calc(100vw - 2rem))","primary-button-disabled":!(H.value.trim().length&&oe.value.length),"primary-button-label":"Add",title:`Add Note To ${oe.value.length} Contribution${oe.value.length===1?"":"s"}`,onClose:V,onPrimaryClick:vw},{default:zn(()=>[Oe(fo,{id:"bulk-note-textfield",modelValue:H.value,"onUpdate:modelValue":Me[6]||(Me[6]=Ne=>H.value=Ne),label:"Note","label-aria-description":"bulk note field label",placeholder:"Enter note text here...",rows:8,type:"textarea"},null,8,["modelValue"])]),_:1},8,["primary-button-disabled","title"])],512)}}}),[["styles",['[data-v-af37f6e3]{font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif}.ag-theme-alpine[data-v-af37f6e3]{--ag-accent-color: var(--color-primary-green);--ag-background-color: var(--color-white);--ag-checkbox-unchecked-border-color: var(--color-grey-900);--ag-cell-font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;--ag-header-background-color: var(--color-green-50);--ag-header-font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;--ag-row-hover-color: var(--color-green-50);--ag-selected-row-background-color: transparent}.bulk-status-modal p[data-v-af37f6e3]{margin:.5rem 0}.column-visibility-checkbox[data-v-af37f6e3]:checked{accent-color:var(--color-primary-green)}.columns-columns-icon[data-v-af37f6e3]{height:1rem;width:1.25rem}.columns-visibility-modal[data-v-af37f6e3]{border:.0625rem solid var(--color-green-400);border-radius:.25rem;left:auto;margin:.5rem 0 0;min-width:12rem;padding:0;position:absolute;right:0;transform:translateY(-.25rem);transition:opacity .2s ease,transform .2s ease,overlay .2s ease allow-discrete;top:100%;z-index:10}.columns-visibility-modal[open][data-v-af37f6e3]{opacity:1;transform:translateY(0)}.columns-visibility-modal ul[data-v-af37f6e3]{box-sizing:border-box;color:var(--color-grey-900);cursor:pointer;font-size:.875rem;list-style-type:none;margin:0;overflow:hidden;padding-left:0}.columns-visibility-modal ul li[data-v-af37f6e3]{align-items:center;display:inline-flex;padding:.5rem .75rem;width:100%}.columns-visibility-modal ul li:hover[data-v-af37f6e3]{background:var(--color-green-50)}.columns-visibility-modal ul li:hover input[data-v-af37f6e3],.columns-visibility-modal ul li:hover label[data-v-af37f6e3]{cursor:pointer}.contributions-export-modal[data-v-af37f6e3]{border:.0625rem solid var(--color-green-400);border-radius:.25rem;left:auto;margin:.5rem 0 0;min-width:10rem;opacity:0;padding:0;position:absolute;right:0;top:100%;transform:translateY(-.25rem);transition:opacity .2s ease,transform .2s ease,overlay .2s ease allow-discrete;width:max-content;z-index:10}.contributions-export-modal[open][data-v-af37f6e3]{opacity:1;transform:translateY(0)}.contributions-export-modal button[data-v-af37f6e3]{background:transparent;border:none;color:var(--color-grey-900);cursor:pointer;display:block;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:.875rem;padding:.5rem 1rem;text-align:left;white-space:nowrap;width:100%}.contributions-export-modal button[data-v-af37f6e3]:hover{background:var(--color-green-50)}.contributions-export-modal button svg[data-v-af37f6e3]{margin-right:.5rem}.contributions-export-modal button .export-excel-icon[data-v-af37f6e3]{color:var(--color-green)}.contributions-grid[data-v-af37f6e3]{width:100%}.contributions-table[data-v-af37f6e3]{border:.0625rem solid var(--color-green-200);border-radius:.25rem;display:flex;flex-direction:column;gap:0rem;height:100%;position:relative}.contributions-table-footer[data-v-af37f6e3]{align-items:center;background:var(--color-green-50);border-radius:0 0 .25rem .25rem;border-top:.0625rem solid var(--color-green-200);box-sizing:border-box;display:flex;font-size:.875rem;gap:1rem;height:3.5rem;justify-content:space-between;padding:0 .75rem}.contributions-table-footer .footer-count[data-v-af37f6e3],.contributions-table-footer .footer-left[data-v-af37f6e3],.contributions-table-footer .footer-right[data-v-af37f6e3]{align-items:center;color:var(--color-grey-900);display:flex;gap:.5rem}.contributions-table-footer .footer-left[data-v-af37f6e3]{padding-bottom:.5rem;padding-top:.5rem}.contributions-table-footer .footer-right[data-v-af37f6e3]{font-size:1rem;gap:.25rem}.contributions-table-footer .footer-right .pagination-ellipsis[data-v-af37f6e3],.contributions-table-footer .footer-right .pagination-nav[data-v-af37f6e3],.contributions-table-footer .footer-right .pagination-page[data-v-af37f6e3]{font-size:inherit;min-width:1.75rem}.contributions-table-footer .footer-right .pagination-nav[data-v-af37f6e3],.contributions-table-footer .footer-right .pagination-page[data-v-af37f6e3]{align-items:center;background:transparent;border:none;border-radius:0;color:var(--color-grey-900);cursor:pointer;display:inline-flex;height:3.5rem;justify-content:center;padding:0 .375rem}.contributions-table-footer .footer-right .pagination-nav[data-v-af37f6e3]:disabled{color:var(--color-grey-300);cursor:not-allowed;opacity:1}.contributions-table-footer .footer-right .pagination-page[data-v-af37f6e3]{border-top:.1875rem solid transparent;font-weight:500}.contributions-table-footer .footer-right .pagination-page.is-active[data-v-af37f6e3]{border-top-color:var(--color-brand-medium-600);color:var(--color-brand-medium-600)}.contributions-table-footer .footer-right .pagination-ellipsis[data-v-af37f6e3]{text-align:center}.contributions-table-toolbar[data-v-af37f6e3]{align-items:center;background:var(--color-green-50);border-bottom:.0625rem solid var(--color-green-200);box-sizing:border-box;color:var(--color-grey-900);display:flex;font-size:.875rem;gap:.75rem;height:4.5rem;justify-content:space-between;line-height:1.25;padding:.5rem .75rem}.contributions-table-toolbar .column-controls[data-v-af37f6e3],.contributions-table-toolbar .export-controls[data-v-af37f6e3]{position:relative}.contributions-table-toolbar-no-selection[data-v-af37f6e3]{height:3.5rem}.selection-count[data-v-af37f6e3]{white-space:nowrap}.toolbar-actions[data-v-af37f6e3]{align-items:center;display:flex;flex-shrink:0;gap:.75rem}.toolbar-icon[data-v-af37f6e3]{height:1.5rem;width:1.5rem}.toolbar-icon-button[data-v-af37f6e3]{align-items:center;background:transparent;border:none;border-radius:50%;color:var(--color-grey-500);cursor:pointer;display:inline-flex;flex-shrink:0;height:2rem;justify-content:center;min-width:2rem;padding:0}.toolbar-icon-button[data-v-af37f6e3]:disabled{cursor:not-allowed;opacity:.5}.toolbar-icon-button[data-v-af37f6e3]:hover:not(:disabled){background:var(--color-green-100)}.toolbar-icon-button.is-active[data-v-af37f6e3]{background:var(--color-green-100)}.toolbar-icon-button.is-active .toolbar-icon[data-v-af37f6e3]{color:var(--color-brand-medium-500)}.toolbar-left[data-v-af37f6e3]{align-items:center;display:flex;min-width:0}[data-v-af37f6e3] .ag-cell-focus:not(.ag-cell-range-selected):focus-within{border-color:transparent;border-right:.0625rem solid var(--color-green-200)}[data-v-af37f6e3] .ag-checkbox-input-wrapper:has(:focus-visible){box-shadow:var(--ag-focus-shadow)}[data-v-af37f6e3] .ag-checkbox-input-wrapper:where(:focus-within,:active){box-shadow:none}[data-v-af37f6e3] .ag-checkbox-input-wrapper.ag-checked{background:var(--color-primary-green)}[data-v-af37f6e3] .ag-filter-apply-panel .ag-button:last-child{background:var(--color-primary-green);color:#fff}[data-v-af37f6e3] .ag-header-cell .ag-sort-indicator-container{margin:.2rem}[data-v-af37f6e3] .ag-root-wrapper{border:none}[data-v-af37f6e3] .ag-theme-alpine,[data-v-af37f6e3] .ag-theme-alpine .ag-root-wrapper{border-radius:0}[data-v-af37f6e3] .ag-tooltip{max-width:24rem;white-space:pre-wrap;word-break:break-word}[data-v-af37f6e3] .grid-filter-icon{color:var(--color-grey-500);font-size:.875rem;height:1em;width:1em}[data-v-af37f6e3] .grid-filter-icon:hover{color:var(--color-primary-green)}[data-v-af37f6e3]::backdrop{background:transparent}@starting-style{.columns-export-modal[open][data-v-af37f6e3],.columns-visibility-modal[open][data-v-af37f6e3]{opacity:0;transform:translateY(-.25rem)}}']],["__scopeId","data-v-af37f6e3"]]),ete={class:"contribution-search-content","aria-description":"contribution search page content"},tte={key:0,class:"contribution-search-initial","aria-description":"initial contribution search form"},nte=["aria-expanded","onKeydown"],ite={class:"criteria-accordion-trigger","aria-description":"modify search accordion label"},ote={key:0,id:"criteria-accordion-panel",class:"criteria-accordion-panel","aria-labelledby":"criteria-accordion-trigger","aria-description":"modify search form panel"},rte=Bt(wt({__name:"ContributionSearch",props:{user:{type:String},company:{type:String},stack:{type:String},username:{type:String}},setup(e){const t=be({}),n=be(["id","employeeStatus","dateDetected","status","reconciliationStatus","preclearance","approvalDate","approvedAmount","lastUpdated","lastUpdatedBy","notes","tags","groups"]),i=be(!1),o=be(null),r=be(!1),s=be(0),a=be(!1),l=be(0),u=be(null),h=be(null),f=()=>{r.value=!1},g=()=>{r.value=!r.value},m=b=>{a.value=!0,l.value=0,t.value=b,i.value=!0},v=b=>{a.value=!0,l.value=0,t.value=b,f()},w=()=>{a.value||(i.value=!1,t.value={},a.value=!1,l.value=0,f(),s.value+=1)};return(b,y)=>(se(),an(aw,{title:"Contribution Search",user:e.user,company:e.company,stack:e.stack,username:e.username,"columns-state":o.value,"sort-column":u.value,"sort-order":h.value,"show-export":!1,"disable-export":l.value===0},{content:zn(()=>[q("section",ete,[i.value?(se(),pe("section",{key:1,class:"criteria-accordion","aria-description":"search criteria accordion",onKeydown:Xt(f,["esc"])},[q("div",{id:"criteria-accordion-trigger",class:"criteria-accordion-header",role:"button",tabindex:"0","aria-label":"Modify Search","aria-description":"modify search accordion header","aria-expanded":r.value,"aria-controls":"criteria-accordion-panel",onClick:g,onKeydown:[Xt(mt(g,["prevent"]),["enter"]),Xt(mt(g,["prevent"]),["space"])]},[q("span",ite,[q("i",{class:ft(["fa-solid fa-chevron-down criteria-accordion-chevron",{"criteria-accordion-chevron-open":r.value}]),"aria-hidden":"true"},null,2),y[5]||(y[5]=to(" Modify Search ",-1))]),Oe(fs,{label:"New Search",onClick:mt(w,["stop"]),disabled:a.value},null,8,["disabled"])],40,nte),Oe(Rd,{name:"criteria-accordion"},{default:zn(()=>[r.value?(se(),pe("section",ote,[Oe(VD,{"hide-border":"","contribution-search-presets":t.value,onSearch:v},null,8,["contribution-search-presets"])])):gt("",!0)]),_:1})],32)):(se(),pe("section",tte,[(se(),an(VD,{key:s.value,loading:a.value,onSearch:m},null,8,["loading"]))])),i.value?(se(),an($D,{key:2,user:e.user,company:e.company,stack:e.stack,username:e.username,page:"contribution-search",match:!1,"disabled-columns":n.value,presets:t.value,"disable-selection":"","columns-state":o.value,"onUpdate:columnsState":y[0]||(y[0]=R=>o.value=R),loading:a.value,"onUpdate:loading":y[1]||(y[1]=R=>a.value=R),"results-total":l.value,"onUpdate:resultsTotal":y[2]||(y[2]=R=>l.value=R),"sort-column":u.value,"onUpdate:sortColumn":y[3]||(y[3]=R=>u.value=R),"sort-order":h.value,"onUpdate:sortOrder":y[4]||(y[4]=R=>h.value=R)},null,8,["user","company","stack","username","disabled-columns","presets","columns-state","loading","results-total","sort-column","sort-order"])):gt("",!0)])]),_:1},8,["user","company","stack","username","columns-state","sort-column","sort-order","disable-export"]))}}),[["styles",[".contribution-search-content[data-v-f54a89a0]{display:flex;flex-direction:column;gap:1.5rem;min-height:0}.criteria-accordion[data-v-f54a89a0]{background:var(--color-white);border:.0625rem solid var(--color-primary-grey);border-radius:.25rem;width:100%}.criteria-accordion-chevron[data-v-f54a89a0]{font-size:.75rem;opacity:.85;transform:rotate(0);transition:transform .2s ease}.criteria-accordion-chevron-open[data-v-f54a89a0]{transform:rotate(180deg)}.criteria-accordion-enter-active[data-v-f54a89a0],.criteria-accordion-leave-active[data-v-f54a89a0]{overflow:hidden;transition:max-height .25s ease,opacity .2s ease}.criteria-accordion-enter-from[data-v-f54a89a0],.criteria-accordion-leave-to[data-v-f54a89a0]{max-height:0;opacity:0}.criteria-accordion-enter-to[data-v-f54a89a0],.criteria-accordion-leave-from[data-v-f54a89a0]{max-height:80rem;opacity:1}.criteria-accordion-header[data-v-f54a89a0]{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;height:3.5rem;justify-content:space-between;padding:1rem;width:100%}.criteria-accordion-header[data-v-f54a89a0]:hover{background:var(--color-green-50)}.criteria-accordion-panel[data-v-f54a89a0]{border-top:.0625rem solid var(--color-primary-grey)}.criteria-accordion-trigger[data-v-f54a89a0]{align-items:center;color:var(--color-grey-900);display:inline-flex;font-family:Poppins,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-size:1rem;gap:.5rem;pointer-events:none}"]],["__scopeId","data-v-f54a89a0"]]),ste={class:"body"},ate=wt({__name:"ContributionSearch.ce",props:{user:{type:String},company:{type:String},stack:{type:String},username:{type:String}},setup(e){return(t,n)=>(se(),pe("div",ste,[Oe(rte,{user:e.user,company:e.company,stack:e.stack,username:e.username},null,8,["user","company","stack","username"])]))}}),jD=".ag-cf9a-actions{display:flex;gap:.625rem;padding-top:.75rem;width:100%}.ag-cf9a-button{width:100%}.ag-cf9a-close-button{align-items:center;background:transparent;border:0;border-radius:.25rem;color:var(--color-grey-700);cursor:pointer;display:flex;font-family:inherit;font-size:1rem;font-weight:500;height:1.5rem;justify-content:center;padding:0;transition:color .2s ease;width:1.5rem}.ag-cf9a-close-button:hover{background:var(--color-green-50)}.ag-cf9a-close-icon{height:.75rem;width:.75rem}.ag-cf9a-condition-container{display:flex;flex-direction:column;gap:.75rem}.ag-cf9a-currency-cell{font-weight:600}.ag-cf9a-filter{background:var(--color-white);border:.0625rem solid var(--color-green-400);border-radius:.5rem;box-shadow:0 .125rem .5rem #0000001f;box-sizing:border-box;display:flex;flex-direction:column;font-family:Poppins,sans-serif;padding:1rem;width:21.25rem}.ag-cf9a-helper-text{color:var(--color-grey-900);font-size:.875rem;margin:0 0 .75rem}.ag-cf9a-title h3{color:var(--color-grey-900);font-size:1rem;font-weight:500;margin:0}.ag-cf9a-title-row{align-items:center;border-bottom:.0625rem solid var(--color-primary-grey);display:flex;justify-content:space-between;margin-bottom:1rem;padding-bottom:1rem}.contributions-table .ag-menu{border:none;border-radius:.5rem}",lte=Bt(ate,[["styles",[cw,jD,".body>*{width:100%}"]]]),cte=wt({__name:"DetectedContributions",props:{user:{type:String},company:{type:String},stack:{type:String},username:{type:String}},setup(e){const t=be(["reconciliationStatus","preclearance","approvalDate","approvedAmount"]),n=be(null),i=be(0),o=be(null),r=be(null);return(s,a)=>(se(),an(aw,{title:"Detected Contributions",page:"detected-contributions",user:e.user,company:e.company,stack:e.stack,username:e.username,"columns-state":n.value,"sort-column":o.value,"sort-order":r.value,"show-export":!1,"disable-export":i.value===0},{content:zn(()=>[Oe($D,{user:e.user,company:e.company,stack:e.stack,username:e.username,page:"detected-contributions",match:!0,"disabled-columns":t.value,"columns-state":n.value,"onUpdate:columnsState":a[0]||(a[0]=l=>n.value=l),"results-total":i.value,"onUpdate:resultsTotal":a[1]||(a[1]=l=>i.value=l),"sort-column":o.value,"onUpdate:sortColumn":a[2]||(a[2]=l=>o.value=l),"sort-order":r.value,"onUpdate:sortOrder":a[3]||(a[3]=l=>r.value=l)},null,8,["user","company","stack","username","disabled-columns","columns-state","results-total","sort-column","sort-order"])]),_:1},8,["user","company","stack","username","columns-state","sort-column","sort-order","disable-export"]))}}),ute={class:"body"},dte=Bt(wt({__name:"DetectedContributions.ce",props:{user:{type:String},company:{type:String},stack:{type:String},username:{type:String}},setup(e){return(t,n)=>(se(),pe("div",ute,[Oe(cte,{user:e.user,company:e.company,stack:e.stack,username:e.username},null,8,["user","company","stack","username"])]))}}),[["styles",[cw,jD,".body>*{width:100%}"]]]);lO.registerModules([_U]),bl.add(sq),bl.add(lq),bl.add(oq),bl.add(tq),bl.add(cq),bl.add(aq);const hte=cp(OJ,{configureApp(e){e.component("font-awesome-icon",EC),DC(e,{store:hs})}}),fte=cp(lte,{configureApp(e){e.component("font-awesome-icon",EC),DC(e,{store:hs})}}),gte=cp(dte,{configureApp(e){e.component("font-awesome-icon",EC),DC(e,{store:hs})}});customElements.define("contribution-details",hte),customElements.define("contribution-search",fte),customElements.define("detected-contributions",gte)}));