ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
4 lines • 1.24 MB
JavaScript
function q(e){if(e?.length)return e[e.length-1]}function rt(e,t,i){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s++)if(e[s]!==t[s]&&!i?.(e[s],t[s]))return!1;return!0}function Xi(e,t){if(e){for(const i of e)if(t(i))return!0}}function Ae(e,t){const i=e.indexOf(t);i>=0&&e.splice(i,1)}function Hl(e,t){let i=0,o=0;for(;i<e.length;i++)t.includes(e[i])||(e[o]=e[i],o++);for(;o<e.length;)e.pop()}function Bl(e,t,i){for(let o=0;o<t.length;o++)Ae(e,t[o]);for(let o=t.length-1;o>=0;o--)e.splice(i,0,t[o])}function im(e){return[].concat.apply([],e)}var $e=e=>e==null||e===""?null:e;function M(e){return e!=null&&e!==""}function K(e){return!M(e)}var Zo=e=>e!=null&&typeof e.toString=="function"?e.toString():null,Ci=(e,t)=>{const i=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return i===o},Ol=(e,t,i=!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()),!i||typeof e!="string"?e>t?1:e<t?-1:0:e.localeCompare(t)),wt=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,i){const o=t?this.allAsyncListeners:this.allSyncListeners;let s=o.get(e);return!s&&i&&(s=new Set,o.set(e,s)),s}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const o=this.getListeners(e,i,!1);o&&(o.delete(t),o.size===0&&(i?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 i=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:o}=this,s=a=>{const l=o?()=>o.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},n=this.getListeners(i,t,!1);if((n?.size??0)>0){const a=new Set(n);for(const l of a)n?.has(l)&&s(()=>l(e))}const r=this.getGlobalListeners(t);if(r.size>0){const a=new Set(r);for(const l of a)s(()=>l(i,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)},i=this.frameworkOverrides;i?i.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}},om=/[&<>"']/g,sm={"&":"&","<":"<",">":">",'"':""","'":"'"};function qt(e){return e?.toString().toString()??null}function vi(e){return qt(e)?.replace(om,t=>sm[t])??null}function Dn(e){return typeof e=="string"&&e.startsWith("=")&&e.length>1}function Vl(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,i=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(i,"$1 $2$3").replace(/\./g," ").split(" ").map(s=>s.substring(0,1).toUpperCase()+(s.length>1?s.substring(1,s.length):"")).join(" ")}function ke(e){return e.eRootDiv.getRootNode()}function j(e){return ke(e).activeElement}function se(e){const{gos:t,eRootDiv:i}=e;let o=null;const s=t.get("getDocument");return s&&M(s)?o=s():i&&(o=i.ownerDocument),o&&M(o)?o:document}function Xo(e){const t=j(e);return t===null||t===se(e).body}function Jo(e){return se(e).defaultView||window}function es(e){let t=null,i=null;try{t=se(e).fullscreenElement}catch{}finally{t||(t=ke(e));const o=t.querySelector("body");o?i=o:t instanceof ShadowRoot?i=t:t instanceof Document?i=t?.documentElement:i=t}return i}function nm(e){return es(e)?.clientWidth??(window.innerWidth||-1)}function rm(e){return es(e)?.clientHeight??(window.innerHeight||-1)}function we(e,t,i){i==null||typeof i=="string"&&i==""?ts(e,t):Ee(e,t,i)}function Ee(e,t,i){e.setAttribute(Gl(t),i.toString())}function ts(e,t){e.removeAttribute(Gl(t))}function Gl(e){return`aria-${e}`}function Ke(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function am(e){const t=e?.direction;return t==="asc"?"ascending":t==="desc"?"descending":t==="mixed"?"other":"none"}function lm(e){return Number.parseInt(e.getAttribute("aria-posinset"),10)}function dm(e){return e.getAttribute("aria-label")}function $t(e,t){we(e,"label",t)}function wi(e,t){we(e,"labelledby",t)}function cm(e,t){we(e,"describedby",t)}function Nl(e,t){we(e,"live",t)}function um(e,t){we(e,"atomic",t)}function hm(e,t){we(e,"relevant",t)}function is(e,t){we(e,"invalid",t)}function gm(e,t){we(e,"level",t)}function zl(e,t){we(e,"disabled",t)}function Mn(e,t){we(e,"hidden",t)}function pm(e,t){we(e,"activedescendant",t)}function os(e,t){Ee(e,"expanded",t)}function fm(e){ts(e,"expanded")}function Wl(e,t){Ee(e,"setsize",t)}function _l(e,t){Ee(e,"posinset",t)}function mm(e,t){Ee(e,"multiselectable",t)}function Ul(e,t){Ee(e,"rowcount",t)}function bi(e,t){Ee(e,"rowindex",t)}function Cm(e,t){Ee(e,"rowspan",t)}function ql(e,t){Ee(e,"colcount",t)}function Tn(e,t){Ee(e,"colindex",t)}function $l(e,t){Ee(e,"colspan",t)}function Kl(e,t){Ee(e,"sort",t)}function jl(e){ts(e,"sort")}function In(e,t){we(e,"selected",t)}function vm(e,t){Ee(e,"checked",t===void 0?"mixed":t)}function Yl(e,t){we(e,"controls",t)}function Ql(e,t){Yl(e,t.id),wi(t,e.id)}function Zl(e,t){we(e,"owns",t)}function wm(e,t){we(e,"haspopup",t===!1?null:t)}function ss(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}function bm(e,t){t?Ee(e,"orientation",t):ts(e,"orientation")}function Sm(e,t,i){const o=e.parentElement;let s=o&&o.firstChild;for(;s;)t&&s.classList.toggle(t,s===e),i&&s.classList.toggle(i,s!==e),s=s.nextSibling}var ym="[tabindex], input, select, button, textarea, [href]",Xl="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Si(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(Xl)?!1:De(e)}function _(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||Mn(e,!t)}function Jl(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||Mn(e,!t)}function yi(e,t){const i="disabled",o=t?n=>n.setAttribute(i,""):n=>n.removeAttribute(i);o(e);const s=e.querySelectorAll("input")??[];for(const n of s)o(n)}function Kt(e,t,i){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof i=="number"){if(++o>i)break}else if(e===i)break}return!1}function jt(e){const{height:t,width:i,borderTopWidth:o,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:d,paddingLeft:c,marginTop:u,marginRight:h,marginBottom:g,marginLeft:p,boxSizing:f}=window.getComputedStyle(e),m=Number.parseFloat;return{height:m(t||"0"),width:m(i||"0"),borderTopWidth:m(o||"0"),borderRightWidth:m(s||"0"),borderBottomWidth:m(n||"0"),borderLeftWidth:m(r||"0"),paddingTop:m(a||"0"),paddingRight:m(l||"0"),paddingBottom:m(d||"0"),paddingLeft:m(c||"0"),marginTop:m(u||"0"),marginRight:m(h||"0"),marginBottom:m(g||"0"),marginLeft:m(p||"0"),boxSizing:f}}function ns(e){const t=jt(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function Ri(e){const t=jt(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function An(e){const{height:t,marginBottom:i,marginTop:o}=jt(e);return Math.floor(t+i+o)}function Ji(e){const{width:t,marginLeft:i,marginRight:o}=jt(e);return Math.floor(t+i+o)}function ed(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:s,borderBottomWidth:n}=jt(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function rs(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function eo(e,t,i){i&&(t*=-1),e.scrollLeft=t}function ae(e){for(;e?.firstChild;)e.firstChild.remove()}function Pe(e){e?.parentNode&&e.remove()}function td(e){return!!e.offsetParent}function De(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!td(e)||window.getComputedStyle(e).visibility!=="visible")}function as(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function id(e,t,i){i&&i.nextSibling===t||(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.prepend(t):e.appendChild(t))}function od(e,t){for(let i=0;i<t.length;i++){const o=t[i],s=e.children[i];s!==o&&e.insertBefore(o,s)}}function Rm(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function to(e,t){if(t)for(const i of Object.keys(t)){const o=t[i];if(!i?.length||o==null)continue;const s=Rm(i),n=o.toString(),r=n.replace(/\s*!important/g,""),a=r.length!=n.length?"important":void 0;e.style.setProperty(s,r,a)}}function Yt(e){return()=>{const t=e();return t?sd(t)||Em(t):!0}}function sd(e){return e.clientWidth<e.scrollWidth}function Em(e){return e.clientHeight<e.scrollHeight}function ls(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Ge(e,t)}function Ge(e,t){t=kn(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function io(e,t){t=kn(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function kn(e){return typeof e=="number"?`${e}px`:e}function ds(e){return e instanceof Node||e instanceof HTMLElement}function be(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function nd(e,t){if(!t.isContentEditable)return;const i=Jo(e).getSelection();if(!i)return;const o=se(e).createRange();o.selectNodeContents(t),o.collapse(!1),i.removeAllRanges(),i.addRange(o)}function at(e,t,i){const s=Jo(e).ResizeObserver,n=s?new s(i):null;return n?.observe(t),()=>n?.disconnect()}function je(e,t){const i=Jo(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var rd="data-ref",Ln;function ad(){return Ln??(Ln=document.createTextNode(" ")),Ln.cloneNode()}function bt(e){const{attrs:t,children:i,cls:o,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),s&&a.setAttribute(rd,s),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(i)if(typeof i=="string")a.textContent=i;else{let l=!0;for(const d of i)d&&(typeof d=="string"?(a.appendChild(document.createTextNode(d)),l=!1):typeof d=="function"?a.appendChild(d()):(l&&(a.appendChild(ad()),l=!1),a.append(bt(d)),a.appendChild(ad())))}return a}var Fm=["touchstart","touchend","touchmove","touchcancel","scroll"],xm=["wheel"],Hn={},cs=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return i=>{if(typeof Hn[i]=="boolean")return Hn[i];const o=document.createElement(e[i]||"div");return i="on"+i,Hn[i]=i in o}})();function ld(e,t){return!t||!e?!1:Dm(t).indexOf(e)>=0}function Pm(e){const t=[];let i=e.target;for(;i;)t.push(i),i=i.parentElement;return t}function Dm(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():Pm(t)}function Mm(e,t,i){const o=Tm(t);let s;o!=null&&(s={passive:o}),e.addEventListener(t,i,s)}var Tm=e=>{const t=Fm.includes(e),i=xm.includes(e);if(t)return!0;if(i)return!1};function dd(e,t,i){if(i===0)return!1;const o=Math.abs(e.clientX-t.clientX),s=Math.abs(e.clientY-t.clientY);return Math.max(o,s)<=i}var Ei=(e,t)=>{const i=e.identifier;for(let o=0,s=t.length;o<s;++o){const n=t[o];if(n.identifier===i)return n}return null};function oo(e,t){return e.gos.isElementInThisInstance(t.target)}function cd(e,t,i){const s=e.getBoundingClientRect().height,n=nm(i)-2,r=rm(i)-2;if(!e.offsetParent)return;const l=ed(e.offsetParent),{clientY:d,clientX:c}=t;let u=d-l.top-s/2,h=c-l.left-10;const g=se(i),p=g.defaultView||window,f=p.pageYOffset||g.documentElement.scrollTop,m=p.pageXOffset||g.documentElement.scrollLeft;n>0&&h+e.clientWidth>n+m&&(h=n+m-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+f&&(u=r+f-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var us=(e,...t)=>{for(const i of t){const[o,s,n,r]=i;o.addEventListener(s,n,r),e.push(i)}},Bn=e=>{if(e){for(const[t,i,o,s]of e)t.removeEventListener(i,o,s);e.length=0}},St=e=>{e.cancelable&&e.preventDefault()};function Im(e,t){return t}function On(e){return e?.getLocaleTextFunc()??Im}function ud(e,t,i,o){const s=t[i];return e.getLocaleTextFunc()(i,typeof s=="function"?s(o):s,o)}function hd(e){return(t,i,o)=>e({key:t,defaultValue:i,variableValues:o})}function gd(e){return(t,i,o)=>{let s=e?.[t];if(s&&o?.length){let n=0;for(;!(n>=o.length||s.indexOf("${variable}")===-1);)s=s.replace("${variable}",o[n++])}return s??i}}var he=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,i){this.localEventService||(this.localEventService=new wt),this.localEventService.addEventListener(e,t,i)}removeEventListener(e,t,i){this.localEventService?.removeEventListener(e,t,i)}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 i=[];for(const o of Object.keys(t)){const s=t[o];s&&i.push(this._setupListener(e,o,s))}return i}_setupListener(e,t,i){if(this.destroyed)return()=>null;let o;if(Am(e))e.__addEventListener(t,i),o=()=>(e.__removeEventListener(t,i),null);else{const s=km(e);e instanceof HTMLElement?Mm(e,t,i):s?e.addListener(t,i):e.addEventListener(t,i),o=s?()=>(e.removeListener(t,i),null):()=>(e.removeEventListener(t,i),null)}return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==o),null)}setupPropertyListener(e,t){const{gos:i}=this;i.addPropertyEventListener(e,t);const o=()=>(i.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==o),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const i=e.join("-")+this.propertyListenerId++,o=s=>{if(s.changeSet){if(s.changeSet&&s.changeSet.id===this.lastChangeSetIdLookup[i])return;this.lastChangeSetIdLookup[i]=s.changeSet.id}const n={type:"propertyChanged",changeSet:s.changeSet,source:s.source};t(n)};for(const s of e)this.setupPropertyListener(s,o)}getLocaleTextFunc(){return On(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 i=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),i}createBean(e,t,i){return(t||this.stubContext).createBean(e,i)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function Am(e){return e.__addEventListener!==void 0}function km(e){return e.eventServiceType==="global"}var y=class extends he{},Vn=new Set,so=(e,t)=>{Vn.has(t)||(Vn.add(t),e())};so._set=Vn;var Lm={pending:!1,funcs:[]},Hm={pending:!1,funcs:[]};function hs(e,t="setTimeout",i){const o=t==="raf"?Hm:Lm;if(o.funcs.push(e),o.pending)return;o.pending=!0;const s=()=>{const n=o.funcs.slice();o.funcs.length=0,o.pending=!1;for(const r of n)r()};t==="raf"?je(i,s):window.setTimeout(s,0)}function te(e,t,i){let o;return function(...s){const n=this;return window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(n,s)},i),o}}function pd(e,t){let i=0;return function(...o){const s=this,n=Date.now();n-i<t||(i=n,e.apply(s,o))}}function fd(e,t,i,o=100){const s=Date.now();let n=null,r=!1;const a=()=>{n!=null&&(window.clearInterval(n),n=null)};e.addDestroyFunc(a);const l=()=>{const d=Date.now()-s>o;(t()||d)&&(i(),r=!0,a())};l(),r||(n=window.setInterval(l,10))}var md=new Set(["__proto__","constructor","prototype"]);function Bm(e,t){if(e!=null){if(Array.isArray(e)){for(let i=0;i<e.length;i++)t(i.toString(),e[i]);return}for(const i of Object.keys(e).filter(o=>!md.has(o)))t(i,e[i])}}function ge(e,t,i=!0,o=!1){M(t)&&Bm(t,(s,n)=>{let r=e[s];r!==n&&(o&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[s]=r),Cd(n)&&Cd(r)&&!Array.isArray(r)?ge(r,n,i,o):(i||n!==void 0)&&(e[s]=n))})}function Cd(e){return typeof e=="object"&&e!==null}var Gn=class vt{static applyGlobalGridOptions(t){if(!vt.gridOptions)return{...t};let i={};return ge(i,vt.gridOptions,!0,!0),vt.mergeStrategy==="deep"?ge(i,t,!0,!0):i={...i,...t},vt.gridOptions.context&&(i.context=vt.gridOptions.context),t.context&&(vt.mergeStrategy==="deep"&&i.context&&ge(t.context,i.context,!0,!0),i.context=t.context),i}static applyGlobalGridOption(t,i){if(vt.mergeStrategy==="deep"){const o=Nn(t);if(o&&typeof o=="object"&&typeof i=="object")return vt.applyGlobalGridOptions({[t]:i})[t]}return i}};Gn.gridOptions=void 0,Gn.mergeStrategy="shallow";var no=Gn;function Om(e,t="shallow"){no.gridOptions=e,no.mergeStrategy=t}function Nn(e){return no.gridOptions?.[e]}var vd={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},wd="https://www.ag-grid.com";function yt(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function Qt(e,...t){so(()=>Sd(e,...t),e+t?.join(""))}function Fi(e,...t){so(()=>bd(e,...t),e+t?.join(""))}function bd(e,...t){console.error("AG Grid: "+e,...t)}function Sd(e,...t){console.warn("AG Grid: "+e,...t)}var yd=new Set,gs={},Zt={},ps,Rd=!1,Ed=!1,Fd=!1;function Vm(e){const[t,i]=e.version.split(".")||[],[o,s]=ps.split(".")||[];return t===o&&i===s}function Gm(e){ps||(ps=e.version);const t=o=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${o} Please update all modules to the same version.`;e.version?Vm(e)||Fi(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${ps}.`)):Fi(t(`'${e.moduleName}' is incompatible.`));const i=e.validate?.();i&&!i.isValid&&Fi(`${i.message}`)}function xi(e,t,i=!1){i||(Rd=!0),Gm(e);const o=e.rowModels??["all"];yd.add(e);let s;t!==void 0?(Ed=!0,Zt[t]===void 0&&(Zt[t]={}),s=Zt[t]):s=gs;for(const n of o)s[n]===void 0&&(s[n]={}),s[n][e.moduleName]=e;if(e.dependsOn)for(const n of e.dependsOn)xi(n,t,i)}function Nm(e){delete Zt[e]}function zn(e,t,i){const o=s=>!!gs[s]?.[e]||!!Zt[t]?.[s]?.[e];return o(i)||o("all")}function Wn(){return Ed}function zm(e,t){const i=Zt[e]??{};return[...Object.values(gs.all??{}),...Object.values(i.all??{}),...Object.values(gs[t]??{}),...Object.values(i[t]??{})]}function Wm(){return new Set(yd)}function _m(e,t){const i=Zt[e]??{};return[...Object.values(i.all??{}),...Object.values(i[t]??{})]}function Um(){return Rd}function _n(){return Fd}function qm(){Fd=!0}var xd=class{static register(e){xi(e,void 0)}static registerModules(e){for(const t of e)xi(t,void 0)}};function Pd(e){for(const t of e){if("setLicenseKey"in t)return t;if(t.dependsOn){const i=Pd(t.dependsOn);if(i)return i}}}var P="35.2.0",Dd=2e3,Md=100,Td="_version_",Id=null,Pi=`${wd}/javascript-data-grid`;function $m(e){Id=e}function Km(e){Pi=e}function Ad(e,t,i){return Id?.(e,t)??[Zm(e,t,i)]}function fs(e,t,i,o,s){e(`${o?"warning":"error"} #${t}`,...Ad(t,i,s))}function jm(e){if(!e)return String(e);const t={};for(const i of Object.keys(e))typeof e[i]!="object"&&typeof e[i]!="function"&&(t[i]=e[i]);return JSON.stringify(t)}function Ym(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=jm(e)),t}function ms(e){return e===void 0?"undefined":e===null?"null":e}function Un(e,t){return`${e}?${t.toString()}`}function Qm(e,t,i){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let s=Un(e,t);for(const[n,r]of o){if(n===Td)continue;const a=s.length-i;if(a<=0)break;const l="...",d=a+l.length,c=r.length-d>Md?r.slice(0,r.length-d)+l:r.slice(0,Md)+l;t.set(n,c),s=Un(e,t)}return s}function kd(e,t){const i=new URLSearchParams;if(i.append(Td,P),t)for(const n of Object.keys(t))i.append(n,Ym(t[n]));const o=`${Pi}/errors/${e}`,s=Un(o,i);return s.length<=Dd?s:Qm(o,i,Dd)}var Zm=(e,t,i)=>{const o=kd(e,t),s=`${i?i+`
`:""}Visit ${o}`;return _n()?s:`${s}${i?"":`
Alternatively register the ValidationModule to see the full message in the console.`}`};function F(...e){fs(Qt,e[0],e[1],!0)}function W(...e){fs(Fi,e[0],e[1],!1)}function ro(e,t,i){fs(Fi,e,t,!1,i)}function Xm(e,t,i){fs(Qt,e,t,!0,i)}function Ld(e,t){const i=t[0];return`error #${i} `+Ad(i,t[1],e).join(" ")}function Ne(...e){return Ld(void 0,e)}function Jm(...e){return Ld(`
`,e)}function Hd(e,t){return e.get("rowModelType")===t}function J(e,t){return Hd(e,"clientSide")}function Di(e,t){return Hd(e,"serverSide")}function le(e,t){return e.get("domLayout")===t}function Rt(e){return uo(e)!==void 0}function qn(e){return typeof e.get("getRowHeight")=="function"}function eC(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function Bd({gos:e,formula:t}){const i=e.get("rowNumbers");return i||!!t?.active&&i!==!1}function lt(e,t,i=!1,o){const{gos:s,environment:n}=e;if(o==null&&(o=n.getDefaultRowHeight()),qn(s)){if(i)return{height:o,estimated:!0};const l={node:t,data:t.data},d=s.getCallback("getRowHeight")(l);if($n(d))return d===0&&F(23),{height:Math.max(1,d),estimated:!1}}if(t.detail&&s.get("masterDetail"))return tC(s);const r=s.get("rowHeight");return{height:r&&$n(r)?r:o,estimated:!1}}function tC(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return $n(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Et(e){const{environment:t,gos:i}=e,o=i.get("rowHeight");if(!o||K(o))return t.getDefaultRowHeight();const s=t.refreshRowHeightVariable();return s!==-1?s:(F(24),t.getDefaultRowHeight())}function $n(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function Od(e,t,i){const o=t[e.getDomDataKey()];return o?o[i]:void 0}function Xt(e,t,i,o){const s=e.getDomDataKey();let n=t[s];K(n)&&(n={},t[s]=n),n[i]=o}function Jt(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function Kn(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||le(e,"print"))}function Ye(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function ao(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function jn(e){return e.get("grandTotalRow")}function iC(e){const t=e.get("groupTotalRow");return typeof t=="function"?e.getCallback("groupTotalRow"):()=>t??void 0}function Vd(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function Gd(e){return Vd(e)&&e.get("groupHideColumnsUntilExpanded")&&J(e)}function Yn(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function Qn(e,t,i){return!!t.group&&!t.footer&&Yn(e,i)}function ei(e){const t=e.getCallback("getRowId");return t===void 0?t:i=>{let o=t(i);return typeof o!="string"&&(so(()=>F(25,{id:o}),"getRowIdString"),o=String(o)),o}}function Nd(e,t){const i=e.get("groupHideParentOfSingleChild");return!!(i===!0||i==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function zd(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function oC(e,t){const i=e.get("suppressGroupChangesColumnVisibility");if(i===!0||t&&i==="suppressHideOnGroup"||!t&&i==="suppressShowOnUngroup")return!1;const o=e.get("suppressRowGroupHidesColumns");if(t&&o===!0)return!1;const s=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&s===!0)}function ti(e){return e?.checkboxes??!0}function lo(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function co(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function Zn(e){return e?.hideDisabledCheckboxes??!1}function Wd(e){return typeof e.get("rowSelection")!="string"}function sC(e){return e.get("cellSelection")!==void 0}function nC(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t?.suppressMultiRanges??!1:!1:e.get("suppressMultiRangeSelection")}function Qe(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function rC(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"&&t.handle?.mode==="fill"?t.handle:void 0:{mode:"fill",setFillValue:e.get("fillOperation"),direction:e.get("fillHandleDirection"),suppressClearOnFillReduction:e.get("suppressClearOnFillReduction")}}function ii(e){const t=e.get("cellSelection")??!1;return(typeof t=="object"&&t.enableColumnSelection)??!1}function _d(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const i=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return i&&o?!1:i?"enableDeselection":o?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function aC(e){const t=_d(e);return t===!0||t==="enableSelection"}function lC(e){const t=_d(e);return t===!0||t==="enableDeselection"}function Cs(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function uo(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 Mi(e){return uo(e)==="multiRow"}function dC(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function ho(e){const t=e.get("rowSelection");if(typeof t=="string"){const i=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return i&&o?"filteredDescendants":i?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function Ud(e,t=!0){const i=e.get("rowSelection");return typeof i!="object"?t?"all":void 0:i.mode==="multiRow"?i.selectAll:"all"}function cC(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function Ti(e){const t=ho(e);return t==="descendants"||t==="filteredDescendants"}function qd(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function $d(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function Se(e){return e.get("columnMenu")==="legacy"}function Kd(e){return!Se(e)}function jd(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function uC(e,t,i){typeof e!="object"&&(e={});const o={...e};for(const s of i){const n=t[s];typeof n<"u"&&(o[s]=n)}return o}function hC(e,t){if(!e)return;const i={};let o=!1;for(const r of Object.keys(e))i[r]=e[r],o=!0;if(!o)return;const s={type:"gridOptionsChanged",options:i};t.dispatchEvent(s);const n={type:"componentStateChanged",...i};t.dispatchEvent(n)}function k(e,t){return e.addCommon(t)}function gC(e,t){return e[t]??e.gridOptions?.[t]??Nn(t)??vd[t]}function Yd({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var pC={resizable:!0,sortable:!0},fC=0;function Qd(){return fC++}function dt(e){return e instanceof ct}var mC=["asc","desc",null],CC=[{type:"absolute",direction:"asc"},{type:"absolute",direction:"desc"},null],ct=class extends y{constructor(e,t,i,o){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=i,this.primary=o,this.isColumn=!0,this.instanceId=Qd(),this.autoHeaderHeight=null,this.sortDef=Me(),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 wt,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=vi(i)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}initState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:i,colFlex:o}}=this;t?.initCol(this);const s=e.hide;s!==void 0?this.visible=!s:this.visible=!e.initialHide,i?.initCol(this),o?.initCol(this)}setColDef(e,t,i){const o=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),o&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",i)}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:i}}=this,o=e.get("suppressFieldDotNotation");this.fieldContainsDots=M(t)&&t.includes(".")&&!o,this.tooltipFieldContainsDots=M(i)&&i.includes(".")&&!o}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:i=>{const o=e.recreateColDef(this.colDef);this.setColDef(o,o,i.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 i=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,i)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,i)}createColumnFunctionCallbackParams(e){return k(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]??pC[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const i=this.createColumnFunctionCallbackParams(e);return t(i)}return!1}createColumnEvent(e,t){return k(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:i}=this.colDef,o=t===null?t:Ze(t?.type),s=i===null?i:Ze(i?.type);return o&&e.push(o),s&&e.push(s),e}getSortingOrder(){const e=this.getColDefAllowedSortTypes().includes("absolute")?CC:mC;return(this.colDef.sortingOrder??this.gos.get("sortingOrder")??e).map(t=>Me(t))}getAvailableSortTypes(){const e=this.getSortingOrder().reduce((t,i)=>(i.direction&&t.push(i.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 K(this.getSort())}isSorting(){return M(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 F(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 i=e===!0;this.visible!==i&&(this.visible=i,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 i=!0;for(;e;){if(!e.isPadding()){i=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:i}}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 k(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(K(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.colSpan(t);return Math.max(i,1)}getRowSpan(e){if(K(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.rowSpan(t);return Math.max(i,1)}setActualWidth(e,t,i=!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),i||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,i){const o=this.createColumnEvent(e,t);i&&ge(o,i),this.colEventSvc.dispatchEvent(o)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function Me(e){return Ii(e)?{direction:e.direction,type:e.type}:{direction:po(e),type:Ze(e)}}function ut(e){return e==="asc"||e==="desc"||e===null}function vs(e){return e==="default"||e==="absolute"}function Ii(e){if(!e||typeof e!="object")return!1;const t=e;return vs(t.type)&&ut(t.direction)}function go(e,t){return e?t?e.type===t.type&&e.direction===t.direction:e?e.direction===null:!0:t?t.direction===null:!0}function po(e){return ut(e)?e:null}function Ze(e){return vs(e)?e:"default"}function Zd(e,t,i){const s=i?.()??t.sortSvc.getDisplaySortForColumn(e),n=Ze(s?.type),r=po(s?.direction),a=e.getAvailableSortTypes(),l=a.has("default"),d=a.has("absolute");return{isDefaultSortAllowed:l,isAbsoluteSortAllowed:d,isAbsoluteSort:n==="absolute",isDefaultSort:n==="default",isAscending:r==="asc",isDescending:r==="desc",direction:r}}function ue(e){return e instanceof Ai}var Ai=class extends y{constructor(e,t,i,o){super(),this.colGroupDef=e,this.groupId=t,this.padding=i,this.level=o,this.isColumn=!1,this.expandable=!1,this.instanceId=Qd(),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)dt(t)?e(t):ue(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)dt(t)?e.push(t):ue(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,i=!1;const o=this.findChildrenRemovingPadding();for(let n=0,r=o.length;n<r;n++){const a=o[n];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,i=!0):l==="closed"?(t=!0,i=!0):(e=!0,t=!0)}const s=e&&t&&i;this.expandable!==s&&(this.expandable=s,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=i=>{for(const o of i)ue(o)&&o.isPadding()?t(o.children):e.push(o)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},vC={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function Xn(e,t,i){const o={},s=e.gos;return Object.assign(o,s.get("defaultColGroupDef")),Object.assign(o,t),s.validateColDef(o,i),o}var Xd=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=Zo(e);let i=0;for(;;){let o=e??t;if(o?i!==0&&(o+="_"+i):o=i,!this.existingKeys[o]){const s=String(o);return e&&i>0&&F(273,{providedId:e,usedId:s}),this.existingKeys[s]=!0,s}i++}}},Jd=(e,t)=>{ue(e)&&e.setupExpandable(),e.originalParent=t};function wC(e,t=null,i,o,s){const{existingCols:n,existingGroups:r}=tc(o),a=new Map(n.map(f=>[f.getId(),f])),l=new Map(r.map(f=>[f.getId(),f]));let d=0;const c=(f,m)=>{if(d=Math.max(d,m),sc(f)){if(!e.colGroupSvc)return null;const S=f.groupId,R=l.get(S),E=Xn(e,f,S),D=new Ai(E,S,!1,m);return e.context.createBean(D),R&&D.setExpanded(R.isExpanded()),D.setChildren(f.children.map(H=>c(H,m+1))),D}const C=f.colId;let v=a.get(C);const w=fo(e,f,v?.getColId()??C);return v?(v.setColDef(w,f,s),Jn(e,v,w,s)):(v=new ct(w,f,C,i),e.context.createBean(v)),e.dataTypeSvc?.addColumnListeners(v),v},u=t?.map(f=>c(f,0))??[];let h=0;const g={getUniqueKey:(f,m)=>String(++h)},p=e.colGroupSvc?e.colGroupSvc.balanceColumnTree(u,0,d,g):u;return Xe(null,p,Jd),{columnTree:p,treeDepth:d}}function ec(e,t=null,i,o,s){const n=new Xd,{existingCols:r,existingGroups:a,existingColKeys:l}=tc(o);n.addExistingKeys(l);const d=ic(e,t,0,i,r,n,a,s),{colGroupSvc:c}=e,u=c?.findMaxDepth(d,0)??0,h=c?c.balanceColumnTree(d,0,u,n):d;return Xe(null,h,Jd),{columnTree:h,treeDepth:u}}function tc(e){const t=[],i=[],o=[];return e&&Xe(null,e,s=>{if(ue(s)){const n=s;i.push(n)}else{const n=s;o.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:i,existingColKeys:o}}function ic(e,t,i,o,s,n,r,a){if(!t)return[];const{colGroupSvc:l}=e,d=new Array(t.length);for(let c=0;c<d.length;c++){const u=t[c];l&&sc(u)?d[c]=l.createProvidedColumnGroup(o,u,i,s,n,r,a):d[c]=bC(e,o,u,s,n,a)}return d}function bC(e,t,i,o,s,n){const r=SC(i,o);r&&o?.splice(r.idx,1);let a=r?.column;if(a){const l=fo(e,i,a.getColId());a.setColDef(l,i,n),Jn(e,a,l,n)}else{const l=s.getUniqueKey(i.colId,i.field),d=fo(e,i,l);a=new ct(d,i,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function oc(e,t,i,o,s,n,r,a){const{sortSvc:l,pinnedCols:d,colFlex:c}=e;i!==void 0&&t.setVisible(!i,a),l&&(l.updateColSort(t,o,a),s!==void 0&&l.setColSortIndex(t,s)),n!==void 0&&d?.setColPinned(t,n),r!==void 0&&c?.setColFlex(t,r)}function Jn(e,t,i,o){oc(e,t,i.hide,i.sort,i.sortIndex,i.pinned,i.flex,o);const s=t.getFlex();if(!(s!=null&&s>0))if(i.width!=null)t.setActualWidth(i.width,o);else{const n=t.getActualWidth();t.setActualWidth(n,o)}}function SC(e,t){if(t)for(let i=0;i<t.length;i++){const o=t[i].getUserProvidedColDef();if(!o)continue;if(e.colId!=null){if(t[i].getId()===e.colId)return{idx:i,column:t[i]};continue}if(e.field!=null){if(o.field===e.field)return{idx:i,column:t[i]};continue}if(o===e)return{idx:i,column:t[i]}}}function fo(e,t,i,o){const{gos:s,dataTypeSvc:n}=e,r={},a=s.get("defaultColDef");ge(r,a,!1,!0);const l=yC(e,r,t,i);l&&RC(e,l,r);const d=r.cellDataType;ge(r,t,!1,!0),d!==void 0&&(r.cellDataType=d);const c=s.get("autoGroupColumnDef"),u=Ye(s);return t.rowGroup&&c&&u&&ge(r,{sort:c.sort,initialSort:c.initialSort},!1,!0),n?.postProcess(r),n?.validateColDef(r,t,a,i),s.validateColDef(r,i,o),r}function yC(e,t,i,o){const s=e.dataTypeSvc?.updateColDefAndGetColumnType(t,i,o),n=i.type??s??t.type;return t.type=n,n?ys(n):void 0}function RC(e,t,i){if(!t.length)return;const o=Object.assign({},vC),s=e.gos.get("columnTypes")||{};for(const n of Object.keys(s)){const r=s[n];n in o?F(34,{key:n}):(r.type&&F(35),o[n]=r)}for(const n of t){const r=o[n.trim()];r?ge(i,r,!1,!0):F(36,{t:n})}}function sc(e){return e.children!==void 0}function Xe(e,t,i){if(t)for(let o=0;o<t.length;o++){const s=t[o];ue(s)&&Xe(s,s.getChildren(),i),i(s,e)}}var ht="ag-Grid-AutoColumn",ws="ag-Grid-SelectionColumn",bs="ag-Grid-RowNumbersColumn",EC="ag-Grid-HierarchyColumn";function er(e){const t=[],i=o=>{for(let s=0;s<o.length;s++){const n=o[s];dt(n)?t.push(n):ue(n)&&i(n.getChildren())}};return i(e),t}function gt(e){return e.reduce((t,i)=>t+i.getActualWidth(),0)}function mo(e,t,i){const o={};if(!t)return;Xe(null,t,n=>{o[n.getInstanceId()]=n}),i&&Xe(null,i,n=>{o[n.getInstanceId()]=null});const s=Object.values(o).filter(n=>n!=null);e.context.destroyBeans(s)}function Ss(e){return e.getId().startsWith(ht)}function pt(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(ws)??!1}function pe(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(bs)??!1}function nc(e){return pt(e)||pe(e)}function ys(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function rc(e,t){return rt(e,t,(i,o)=>i.getColId()===o.getColId())}function ac(e){e.map={};for(const t of e.list)e.map[t.getId()]=t}function oi(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function ki(e,t){return e===t||e.colId==t||e.getColDef()===t}var FC=(e,t)=>(i,o)=>{const s={value1:void 0,value2:void 0};let n=