UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

1 lines 995 kB
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.16.1"}}catch(e){}}(),System.register(["./chunk-legacy-Dz3fjYb5.js","./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./core-legacy-VD8c7QJ-.js","./src-legacy-B67uuxhB.js","./_plugin-vue_export-helper-legacy-DFdC_I5Z.js","./date-picker-legacy-xv7-JfaG.js","./users.store-legacy-azRUgFdP.js","./constants-legacy-2_ytuuS3.js","./useRootStore-legacy-CC08el-l.js","./settings.store-legacy-I6rZOvfF.js","./useDebounce-legacy-CRJGWVMg.js","./dataTable.store-legacy-CrFQcdTs.js","./useClipboard-legacy-DnQV92ly.js","./orderBy-legacy-BwJw7Ikl.js","./SelectedItemsInfo-legacy-BZEWNw02.js"],(function(e,t){var o,i,s,n,r,a,l,d,c,h,u,p,g,m,f,C,v,w,b,y,S,R,F,x,E,D,P,T,M,k,A,I,L,B,G,O,H,V,N,z,W,U,_,$,j,K,q,Y,Q,J,Z,X,ee,te,oe,ie,se,ne,re,ae,le,de,ce,he,ue,pe,ge,me,fe,Ce,ve,we,be,ye,Se,Re,Fe,xe,Ee,De,Pe,Te,Me,ke,Ae,Ie,Le,Be,Ge,Oe,He,Ve,Ne,ze,We,Ue,_e,$e,je,Ke,qe,Ye,Qe,Je,Ze,Xe,et,tt,ot,it,st,nt,rt,at,lt,dt,ct,ht,ut,pt,gt,mt,ft,Ct,vt,wt,bt,yt,St,Rt,Ft,xt,Et,Dt,Pt,Tt,Mt,kt,At,It,Lt,Bt,Gt,Ot,Ht,Vt,Nt,zt,Wt,Ut,_t,$t,jt,Kt,qt,Yt,Qt,Jt,Zt,Xt,eo,to,oo,io,so,no,ro,ao,lo,co,ho,uo,po,go,mo,fo,Co,vo,wo,bo,yo,So,Ro,Fo,xo,Eo,Do,Po,To,Mo,ko,Ao,Io,Lo,Bo,Go,Oo,Ho,Vo,No,zo,Wo,Uo,_o,$o,jo,Ko,qo,Yo,Qo,Jo,Zo,Xo,ei,ti,oi,ii,si,ni,ri,ai,li,di,ci,hi,ui,pi,gi,mi,fi,Ci,vi,wi,bi,yi,Si,Ri,Fi,xi,Ei,Di,Pi,Ti,Mi,ki,Ai,Ii,Li,Bi,Gi,Oi,Hi,Vi,Ni,zi,Wi,Ui,_i,$i,ji,Ki,qi,Yi,Qi,Ji,Zi,Xi,es,ts,os,is,ss,ns,rs,as,ls,ds,cs,hs,us,ps,gs,ms,fs,Cs,vs,ws,bs,ys,Ss,Rs,Fs,xs,Es,Ds,Ps,Ts,Ms,ks,As,Is,Ls,Bs,Gs,Os,Hs,Vs,Ns,zs,Ws,Us,_s,$s,js,Ks,qs,Ys,Qs,Js,Zs,Xs,en,tn,on,sn,nn,rn,an,ln,dn,cn,hn,un,pn,gn,mn,fn,Cn,vn,wn,bn,yn,Sn,Rn,Fn,xn,En,Dn,Pn,Tn,Mn,kn,An,In,Ln,Bn,Gn,On,Hn,Vn,Nn,zn,Wn,Un,_n,$n,jn,Kn,qn,Yn,Qn,Jn,Zn,Xn,er,tr,or,ir,sr,nr,rr,ar,lr,dr,cr,hr,ur,pr,gr,mr,fr,Cr,vr,wr,br,yr,Sr,Rr,Fr,xr,Er,Dr,Pr,Tr,Mr,kr,Ar,Ir,Lr,Br,Gr,Or,Hr,Vr,Nr,zr,Wr,Ur,_r,$r,jr,Kr,qr,Yr,Qr,Jr,Zr,Xr,ea,ta,oa,ia,sa,na,ra,aa,la,da,ca,ha,ua,pa,ga,ma,fa,Ca,va,wa,ba,ya,Sa,Ra,Fa,xa,Ea,Da,Pa,Ta,Ma,ka,Aa,Ia,La,Ba,Ga,Oa,Ha,Va,Na,za,Wa,Ua,_a,$a,ja,Ka,qa,Ya,Qa,Ja,Za,Xa,el,tl,ol,il,sl,nl,rl,al,ll,dl,cl,hl,ul,pl,gl,ml,fl,Cl,vl,wl,bl,yl,Sl,Rl,Fl,xl,El,Dl,Pl,Tl,Ml,kl,Al,Il,Ll,Bl,Gl,Ol,Hl,Vl,Nl,zl,Wl,Ul,_l,$l,jl,Kl,ql,Yl,Ql,Jl,Zl,Xl,ed,td,od,id,sd,nd,rd,ad,ld,dd,cd,hd,ud,pd,gd,md,fd,Cd,vd,wd,bd,yd,Sd,Rd,Fd,xd,Ed,Dd,Pd,Td,Md,kd,Ad,Id,Ld,Bd,Gd,Od,Hd,Vd,Nd,zd,Wd,Ud,_d,$d,jd,Kd,qd,Yd,Qd,Jd,Zd,Xd,ec,tc,oc,ic,sc,nc,rc,ac,lc,dc,cc,hc,uc,pc,gc,mc,fc,Cc,vc,wc,bc,yc,Sc,Rc,Fc,xc,Ec,Dc,Pc,Tc,Mc,kc,Ac,Ic,Lc,Bc,Gc,Oc,Hc,Vc,Nc,zc,Wc,Uc,_c,$c,jc,Kc,qc,Yc,Qc,Jc,Zc,Xc,eh,th,oh,ih,sh,nh,rh,ah,lh,dh,ch,hh,uh,ph,gh,mh,fh,Ch,vh,wh,bh,yh,Sh,Rh,Fh,xh,Eh,Dh,Ph,Th,Mh,kh,Ah,Ih,Lh,Bh,Gh,Oh,Hh,Vh,Nh,zh,Wh,Uh,_h,$h,jh,Kh,qh,Yh,Qh,Jh,Zh,Xh,eu,tu,ou,iu,su,nu,ru,au,lu,du,cu,hu,uu,pu,gu,mu,fu,Cu,vu,wu,bu,yu,Su,Ru,Fu,xu,Eu,Du,Pu,Tu,Mu,ku,Au,Iu,Lu,Bu,Gu,Ou,Hu,Vu,Nu,zu,Wu,Uu,_u,$u,ju,Ku,qu,Yu,Qu,Ju,Zu;function Xu(e,t){return t}function ep(e){return e?.getLocaleTextFunc()??Xu}function tp(e){return null==e||""===e?null:e}function op(e){return null!=e&&""!==e}function ip(e){return!op(e)}function sp(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function np(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function rp(e,t,o=!1){const i=null==e,s=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&s)return 0;if(i)return-1;if(s)return 1;function n(e,t){return e>t?1:e<t?-1:0}if("string"!=typeof e)return n(e,t);if(!o)return n(e,t);try{return e.localeCompare(t)}catch(r){return n(e,t)}}function ap(e,t,o=!0,i=!1){op(t)&&function(e,t){if(null!=e)if(Array.isArray(e))for(let o=0;o<e.length;o++)t(o.toString(),e[o]);else for(const o of Object.keys(e).filter((e=>!xe.has(e))))t(o,e[o])}(t,((t,s)=>{let n=e[t];n!==s&&(i&&null==n&&null!=s&&"object"==typeof s&&s.constructor===Object&&(n={},e[t]=n),dp(s)&&dp(n)&&!Array.isArray(n)?ap(n,s,o,i):(o||void 0!==s)&&(e[t]=s))}))}function lp(e,t,o){if(!t||!e)return;if(!o)return e[t];const i=t.split(".");let s=e;for(let n=0;n<i.length;n++){if(null==s)return;s=s[i[n]]}return s}function dp(e){return"object"==typeof e&&null!==e}function cp(e,t,o){null==o||"string"==typeof o&&""==o?up(e,t):hp(e,t,o)}function hp(e,t,o){e.setAttribute(pp(t),o.toString())}function up(e,t){e.removeAttribute(pp(t))}function pp(e){return`aria-${e}`}function gp(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function mp(e,t){cp(e,"label",t)}function fp(e,t){cp(e,"labelledby",t)}function Cp(e,t){cp(e,"live",t)}function vp(e,t){cp(e,"hidden",t)}function wp(e,t){hp(e,"expanded",t)}function bp(e,t){hp(e,"rowindex",t)}function yp(e,t){hp(e,"colindex",t)}function Sp(e,t){cp(e,"selected",t)}function Rp(e,t){!function(e,t){cp(e,"controls",t)}(e,t.id),fp(t,e.id)}function Fp(e,t){cp(e,"owns",t)}function xp(e,t){return void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}function Ep(){return void 0===Te&&(Te=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Te}function Dp(){return void 0===Me&&(Me=/(firefox)/i.test(navigator.userAgent)),Me}function Pp(){return void 0===ke&&(ke=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),ke}function Tp(){return void 0===Ae&&(Ae=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),Ae}function Mp(e){if(!e)return null;const t=e.tabIndex,o=e.getAttribute("tabIndex");return-1!==t||null!==o&&(""!==o||Dp())?t.toString():null}function kp(){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 o=t.offsetWidth-t.clientWidth;0===o&&0===t.clientWidth&&(o=null),t.parentNode&&t.parentNode.removeChild(t),null!=o&&(Le=o,Ie=0===o)}function Ap(){return null==Ie&&kp(),Ie}function Ip(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),i=t.call(e,Oe),s=qp(e);return o&&!i&&s}function Lp(e,t,o={}){const{skipAriaHidden:i}=o;e.classList.toggle("ag-hidden",!t),i||vp(e,!t)}function Bp(e,t){const o="disabled",i=t?e=>e.setAttribute(o,""):e=>e.removeAttribute(o);i(e);const s=e.querySelectorAll("input")??[];for(const n of s)i(n)}function Gp(e,t,o){let i=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof o){if(++i>o)break}else if(e===o)break}return!1}function Op(e){const{height:t,width:o,borderTopWidth:i,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:d,paddingLeft:c,marginTop:h,marginRight:u,marginBottom:p,marginLeft:g,boxSizing:m}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(o||"0"),borderTopWidth:parseFloat(i||"0"),borderRightWidth:parseFloat(s||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(r||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(d||"0"),paddingLeft:parseFloat(c||"0"),marginTop:parseFloat(h||"0"),marginRight:parseFloat(u||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(g||"0"),boxSizing:m}}function Hp(e){const t=Op(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function Vp(e){const t=Op(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function Np(e){const{height:t,marginBottom:o,marginTop:i}=Op(e);return Math.floor(t+o+i)}function zp(e){const{width:t,marginLeft:o,marginRight:i}=Op(e);return Math.floor(t+o+i)}function Wp(e){const t=e.getBoundingClientRect(),{borderTopWidth:o,borderLeftWidth:i,borderRightWidth:s,borderBottomWidth:n}=Op(e);return{top:t.top+(o||0),left:t.left+(i||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function Up(e,t){let o=e.scrollLeft;return t&&(o=Math.abs(o)),o}function _p(e,t,o){o&&(t*=-1),e.scrollLeft=t}function $p(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function jp(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Kp(e){return!!e.offsetParent}function qp(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!Kp(e)||"visible"!==window.getComputedStyle(e).visibility)}function Yp(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function Qp(e,t,o){o&&o.nextSibling===t||(e.firstChild?o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function Jp(e,t){for(let o=0;o<t.length;o++){const i=t[o],s=e.children[o];s!==i&&e.insertBefore(i,s)}}function Zp(e,t){if(t)for(const o of Object.keys(t)){const i=t[o];if(!o||!o.length||null==i)continue;const s=o.replace(/[A-Z]/g,(e=>`-${e.toLocaleLowerCase()}`)),n=i.toString(),r=n.replace(/\s*!important/g,""),a=r.length!=n.length?"important":void 0;e.style.setProperty(s,r,a)}}function Xp(e){return()=>{const t=e();return!t||eg(t)||tg(t)}}function eg(e){return e.clientWidth<e.scrollWidth}function tg(e){return e.clientHeight<e.scrollHeight}function og(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):ig(e,t)}function ig(e,t){t=ng(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function sg(e,t){t=ng(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function ng(e){return"number"==typeof e?`${e}px`:e}function rg(e){return e instanceof Node||e instanceof HTMLElement}function ag(e,t,o){null==o||""===o?e.removeAttribute(t):e.setAttribute(t,o.toString())}function lg(e,t,o){const i=zg(e).ResizeObserver,s=i?new i(o):null;return s?.observe(t),()=>s?.disconnect()}function dg(e,t){const o=zg(e);o.requestAnimationFrame?o.requestAnimationFrame(t):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(t):o.setTimeout(t,0)}function cg(){return Ve??(Ve=document.createTextNode(" ")),Ve.cloneNode()}function hg(e){const{attrs:t,children:o,cls:i,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(i&&(a.className=i),s&&a.setAttribute(He,s),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(o)if("string"==typeof o)a.textContent=o;else{let e=!0;for(const t of o)t&&("string"==typeof t?(a.appendChild(document.createTextNode(t)),e=!1):"function"==typeof t?a.appendChild(t()):(e&&(a.appendChild(cg()),e=!1),a.append(hg(t)),a.appendChild(cg())))}return a}function ug(e,t){Ne[t]||(e(),Ne[t]=!0)}function pg(e,t,...o){e.get("debug")&&console.log("AG Grid: "+t,...o)}function gg(e,...t){ug((()=>console.warn("AG Grid: "+e,...t)),e+t?.join(""))}function mg(e,...t){ug((()=>console.error("AG Grid: "+e,...t)),e+t?.join(""))}function fg(e,t="setTimeout",o){const i="raf"===t?We:ze;if(i.funcs.push(e),i.pending)return;i.pending=!0;const s=()=>{const e=i.funcs.slice();i.funcs.length=0,i.pending=!1,e.forEach((e=>e()))};"raf"===t?dg(o,s):window.setTimeout(s,0)}function Cg(e,t,o){let i;return function(...s){const n=this;window.clearTimeout(i),i=window.setTimeout((function(){e.isAlive()&&t.apply(n,s)}),o)}}function vg(e,t){let o=0;return function(...i){const s=Date.now();s-o<t||(o=s,e.apply(this,i))}}function wg(e,t,o){return qe?.getConsoleMessage(e,t)??[Qe(e,t,o)]}function bg(e,t,o,i){e(`error #${t}`,...wg(t,o,i))}function yg(e){let t=e;return e instanceof Error?t=e.toString():"object"==typeof e&&(t=function(e){if(!e)return String(e);const t={};for(const o of Object.keys(e))"object"!=typeof e[o]&&"function"!=typeof e[o]&&(t[o]=e[o]);return JSON.stringify(t)}(e)),t}function Sg(e){return void 0===e?"undefined":null===e?"null":e}function Rg(e,t){return`${e}?${t.toString()}`}function Fg(e,t){const o=new URLSearchParams;if(o.append(Ke,_e),t)for(const n of Object.keys(t))o.append(n,yg(t[n]));const i=`${Ye}/errors/${e}`,s=Rg(i,o);return s.length<=$e?s:function(e,t,o){const i=Array.from(t.entries()).sort(((e,t)=>t[1].length-e[1].length));let s=Rg(e,t);for(const[n,r]of i){if(n===Ke)continue;const i=s.length-o;if(i<=0)break;const a="...",l=i+3,d=r.length-l>je?r.slice(0,r.length-l)+a:r.slice(0,je)+a;t.set(n,d),s=Rg(e,t)}return s}(i,o,$e)}function xg(...e){bg(gg,e[0],e[1])}function Eg(...e){bg(mg,e[0],e[1])}function Dg(e,t,o){bg(mg,e,t,o)}function Pg(...e){return function(e,t){const o=t[0];return`error #${o} `+wg(o,t[1],e).join(" ")}(void 0,e)}function Tg(e,t){return e.get("rowModelType")===t}function Mg(e,t){return Tg(e,"clientSide")}function kg(e,t){return Tg(e,"serverSide")}function Ag(e,t){return e.get("domLayout")===t}function Ig(e){return void 0!==am(e)}function Lg(e){return"function"==typeof e.get("getRowHeight")}function Bg(e,t,o=!1,i){const{gos:s,environment:n}=e;if(null==i&&(i=n.getDefaultRowHeight()),Lg(s)){if(o)return{height:i,estimated:!0};const e={node:t,data:t.data},n=s.getCallback("getRowHeight")(e);if(Og(n))return 0===n&&xg(23),{height:Math.max(1,n),estimated:!1}}if(t.detail&&s.get("masterDetail"))return function(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return Og(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}(s);const r=s.get("rowHeight");return{height:r&&Og(r)?r:i,estimated:!1}}function Gg(e){const{environment:t,gos:o}=e,i=o.get("rowHeight");if(!i||ip(i))return t.getDefaultRowHeight();const s=t.refreshRowHeightVariable();return-1!==s?s:(xg(24),t.getDefaultRowHeight())}function Og(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)}function Hg(e,t,o){const i=t[e.getDomDataKey()];return i?i[o]:void 0}function Vg(e,t,o,i){const s=e.getDomDataKey();let n=t[s];ip(n)&&(n={},t[s]=n),n[o]=i}function Ng(e){const{gos:t,eGridDiv:o}=e;let i=null;const s=t.get("getDocument");return s&&op(s)?i=s():o&&(i=o.ownerDocument),i&&op(i)?i:document}function zg(e){return Ng(e).defaultView||window}function Wg(e){return e.eGridDiv.getRootNode()}function Ug(e){return Wg(e).activeElement}function _g(e){let t=null,o=null;try{t=Ng(e).fullscreenElement}catch(i){}finally{t||(t=Wg(e));const i=t.querySelector("body");o=i||(t instanceof ShadowRoot?t:t instanceof Document?t?.documentElement:t)}return o}function $g(e,t,o){const i=e.getBoundingClientRect().height,s=function(e){return _g(e)?.clientWidth??(window.innerWidth||-1)}(o)-2,n=function(e){return _g(e)?.clientHeight??(window.innerHeight||-1)}(o)-2;if(!e.offsetParent)return;const r=Wp(e.offsetParent),{clientY:a,clientX:l}=t;let d=a-r.top-i/2,c=l-r.left-10;const h=Ng(o),u=h.defaultView||window,p=u.pageYOffset||h.documentElement.scrollTop,g=u.pageXOffset||h.documentElement.scrollLeft;s>0&&c+e.clientWidth>s+g&&(c=s+g-e.clientWidth),c<0&&(c=0),n>0&&d+e.clientHeight>n+p&&(d=n+p-e.clientHeight),d<0&&(d=0),e.style.left=`${c}px`,e.style.top=`${d}px`}function jg(e){const t=Ug(e);return null===t||t===Ng(e).body}function Kg(e){return!e.get("ensureDomOrder")&&e.get("animateRows")}function qg(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Ag(e,"print"))}function Yg(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function Qg(e){const t=e.get("groupAggFiltering");return"function"==typeof t?e.getCallback("groupAggFiltering"):!0===t?()=>!0:void 0}function Jg(e){return e.get("grandTotalRow")}function Zg(e,t){return!t&&"groupRows"===e.get("groupDisplayType")}function Xg(e){const t=e.getCallback("getRowId");return void 0===t?t:e=>{let o=t(e);return"string"!=typeof o&&(ug((()=>xg(25,{id:o})),"getRowIdString"),o=String(o)),o}}function em(e){return e?.checkboxes??!0}function tm(e){return"multiRow"===e?.mode&&(e.headerCheckbox??!0)}function om(e){if("object"==typeof e)return e.checkboxLocation??"selectionColumn"}function im(e){return e?.hideDisabledCheckboxes??!1}function sm(e){const t=e.get("cellSelection");return void 0!==t?!!t:e.get("enableRangeSelection")}function nm(e){const t=e.get("rowSelection")??"single";if("string"==typeof t){const t=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return(!t||!o)&&(t?"enableDeselection":!o||"enableSelection")}return("singleRow"===t.mode||"multiRow"===t.mode)&&(t.enableClickSelection??!1)}function rm(e){const t=e.get("rowSelection");return"string"==typeof t?e.get("isRowSelectable"):t?.isRowSelectable}function am(e){const t="beanName"in e&&"gos"===e.beanName?e.get("rowSelection"):e.rowSelection;if("string"==typeof t)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 lm(e){return"multiRow"===am(e)}function dm(e){const t=e.get("rowSelection");if("string"==typeof t){const t=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return t&&o?"filteredDescendants":t?"descendants":"self"}return"multiRow"===t?.mode?t.groupSelects:void 0}function cm(e,t=!0){const o=e.get("rowSelection");return"object"!=typeof o?t?"all":void 0:"multiRow"===o.mode?o.selectAll:"all"}function hm(e){const t=dm(e);return"descendants"===t||"filteredDescendants"===t}function um(e){const t=e.get("rowSelection");return"object"==typeof t&&t.masterSelects||"self"}function pm(e){return"legacy"===e.get("columnMenu")}function gm(e,t){return e.addGridCommonParams(t)}function mm(e){e[Je]=!0}function fm(e){return!0===e[Je]}function Cm(e,t,o){let i=t;for(;i;){const t=Hg(e,i,o);if(t)return t;i=i.parentElement}return null}function vm(e,t){return!(!t||!e)&&function(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():function(e){const t=[];let o=e.target;for(;o;)t.push(o),o=o.parentElement;return t}(t)}(t).indexOf(e)>=0}function wm(e){return e?.toString().toString()??null}function bm(e){return wm(e)?.replace(st,(e=>nt[e]))??null}function ym(){return at++}function Sm(e){return e instanceof lt}function Rm(e){return e instanceof dt}function Fm(e,t,o){const i={},s=e.gos;return Object.assign(i,s.get("defaultColGroupDef")),Object.assign(i,t),s.validateColDef(i,o),i}function xm(e){if(e?.length)return e[e.length-1]}function Em(e,t,o){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every(((e,i)=>o?o(e,t[i]):t[i]===e))}function Dm(e,t){if(e)for(const o of e)t(o)}function Pm(e,t){const o=e.indexOf(t);o>=0&&e.splice(o,1)}function Tm(e,t,o){for(let i=0;i<t.length;i++)Pm(e,t[i]);for(let i=t.length-1;i>=0;i--)e.splice(o,0,t[i])}function Mm(e){const t=[],o=e=>{for(let i=0;i<e.length;i++){const s=e[i];Sm(s)?t.push(s):Rm(s)&&o(s.getChildren())}};return o(e),t}function km(e){return e.reduce(((e,t)=>e+t.getActualWidth()),0)}function Am(e,t,o){const i={};if(!t)return;_m(null,t,(e=>{i[e.getInstanceId()]=e})),o&&_m(null,o,(e=>{i[e.getInstanceId()]=null}));const s=Object.values(i).filter((e=>null!=e));e.context.destroyBeans(s)}function Im(e){return e.getId().startsWith(pt)}function Lm(e){return("string"==typeof e?e:"getColId"in e?e.getColId():e.colId)?.startsWith("ag-Grid-SelectionColumn")??!1}function Bm(e){return("string"==typeof e?e:"getColId"in e?e.getColId():e.colId)?.startsWith("ag-Grid-RowNumbersColumn")??!1}function Gm(e){let t=[];return e instanceof Array?t=e:"string"==typeof e&&(t=e.split(",")),t}function Om(e){return"gridOptionsUpdated"===e?"gridOptionsChanged":e}function Hm(e,t){const o=e===t,i=e.getColDef()===t,s=e.getColId()==t;return o||i||s}function Vm(e,t=null,o,i,s){const n=new ht,{existingCols:r,existingGroups:a,existingColKeys:l}=function(e){const t=[],o=[],i=[];return e&&_m(null,e,(e=>{if(Rm(e)){const t=e;o.push(t)}else{const o=e;i.push(o.getId()),t.push(o)}})),{existingCols:t,existingGroups:o,existingColKeys:i}}(i);n.addExistingKeys(l);const d=Nm(e,t,0,o,r,n,a,s),{colGroupSvc:c}=e,h=c?.findMaxDepth(d,0)??0,u=c?c.balanceColumnTree(d,0,h,n):d;return _m(null,u,((e,t)=>{Rm(e)&&e.setupExpandable(),e.originalParent=t})),{columnTree:u,treeDepth:h}}function Nm(e,t,o,i,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 h=t[c];l&&void 0!==h.children?d[c]=l.createProvidedColumnGroup(i,h,o,s,n,r,a):d[c]=zm(e,i,h,s,n,a)}return d}function zm(e,t,o,i,s,n){const r=function(e,t){if(t)for(let o=0;o<t.length;o++){const i=t[o].getUserProvidedColDef();if(i)if(null==e.colId){if(null==e.field){if(i===e)return{idx:o,column:t[o]}}else if(i.field===e.field)return{idx:o,column:t[o]}}else if(t[o].getId()===e.colId)return{idx:o,column:t[o]}}}(o,i);r&&i?.splice(r.idx,1);let a=r?.column;if(a){const t=Um(e,o,a.getColId());a.setColDef(t,o,n),function(e,t,o,i){Wm(e,t,o.hide,o.sort,o.sortIndex,o.pinned,o.flex,i);const s=t.getFlex();if(!(null!=s&&s>0))if(null!=o.width)t.setActualWidth(o.width,i);else{const e=t.getActualWidth();t.setActualWidth(e,i)}}(e,a,t,n)}else{const i=s.getUniqueKey(o.colId,o.field);a=new lt(Um(e,o,i),o,i,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function Wm(e,t,o,i,s,n,r,a){const{sortSvc:l,pinnedCols:d,colFlex:c}=e;void 0!==o&&t.setVisible(!o,a),l&&(l.updateColSort(t,i,a),void 0!==s&&l.setColSortIndex(t,s)),void 0!==n&&d?.setColPinned(t,n),void 0!==r&&c?.setColFlex(t,r)}function Um(e,t,o,i){const{gos:s,dataTypeSvc:n}=e,r={};ap(r,s.get("defaultColDef"),!1,!0);const a=function(e,t,o,i){const s=e.dataTypeSvc?.updateColDefAndGetColumnType(t,o,i),n=o.type??s??t.type;return t.type=n,n?Gm(n):void 0}(e,r,t,o);a&&function(e,t,o){if(!t.length)return;const i=Object.assign({},ct),s=e.gos.get("columnTypes")||{};for(const n of Object.keys(s)){const e=s[n];n in i?xg(34,{key:n}):(e.type&&xg(35),i[n]=e)}t.forEach((e=>{const t=i[e.trim()];t?ap(o,t,!1,!0):xg(36,{t:e})}))}(e,a,r);const l=r.cellDataType;ap(r,t,!1,!0),void 0!==l&&(r.cellDataType=l);const d=s.get("autoGroupColumnDef"),c=Yg(s);return t.rowGroup&&d&&c&&ap(r,{sort:d.sort,initialSort:d.initialSort},!1,!0),n&&(n.postProcess(r),n.validateColDef(r)),s.validateColDef(r,o,i),r}function _m(e,t,o){if(t)for(let i=0;i<t.length;i++){const s=t[i];Rm(s)&&_m(s,s.getChildren(),o),o(s,e)}}function $m(e,t){const o=[],i=[],s=[];return e.forEach((e=>{const t=e.getColDef().lockPosition;"right"===t?s.push(e):"left"===t||!0===t?o.push(e):i.push(e)})),t.get("enableRtl")?[...s,...i,...o]:[...o,...i,...s]}function jm(e,t){let o=!0;return _m(null,t,(t=>{if(!Rm(t))return;const i=t,s=i.getColGroupDef();if(!s||!s.marryChildren)return;const n=[];i.getLeafColumns().forEach((t=>{const o=e.indexOf(t);n.push(o)})),Math.max.apply(Math,n)-Math.min.apply(Math,n)>i.getLeafColumns().length-1&&(o=!1)})),o}function Km(e,t){if(!e||0==e.length)return;const o=t(e[0]);for(let i=1;i<e.length;i++)if(o!==t(e[i]))return;return o}function qm(e,t,o){if(!t.length)return;const i=1===t.length?t[0]:null,s=Km(t,(e=>e.getPinned()));e.dispatchEvent({type:"columnPinned",pinned:null!=s?s:null,columns:t,column:i,source:o})}function Ym(e,t,o,i,s=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:1===t.length?t[0]:null,flexColumns:s,finished:o,source:i})}function Qm(e,t,o){const{colModel:i,rowGroupColsSvc:s,pivotColsSvc:n,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:d,pivotResultCols:c,environment:h,valueColsSvc:u,eventSvc:p,gos:g}=e,m=i.getColDefCols()??[],f=a?.getColumns();if(!m?.length&&!f?.length)return!1;if(t?.state&&!t.state.forEach)return xg(32),!1;const C=(i,r,a,l,d)=>{if(!i)return;const c=gt(r,t.defaultState),p=c("flex").value1;if(Wm(e,i,c("hide").value1,c("sort").value1,c("sortIndex").value1,c("pinned").value1,p,o),null==p){const e=c("width").value1;if(null!=e){const t=i.getColDef().minWidth??h.getDefaultColumnMinWidth();null!=t&&e>=t&&i.setActualWidth(e,o)}}!d&&i.isPrimary()&&(u?.syncColumnWithState(i,o,c),s?.syncColumnWithState(i,o,c,a),n?.syncColumnWithState(i,o,c,l))},v=(l,c,h)=>{const u=Jm(e,o),m=c.slice(),f={},v={},w=[],b=[],y=[];let S=0;const R=s?.columns.slice()??[],F=n?.columns.slice()??[];l.forEach((e=>{const t=e.colId;if(t.startsWith("ag-Grid-AutoColumn"))return w.push(e),void y.push(e);if(Lm(t))return b.push(e),void y.push(e);const o=h(t);o?(C(o,e,f,v,!1),Pm(m,o)):(y.push(e),S+=1)}));const x=e=>C(e,null,f,v,!1);m.forEach(x),s?.sortColumns(mt.bind(s,f,R)),n?.sortColumns(mt.bind(n,v,F)),i.refreshCols(!1);const E=(e,t,o=[])=>{t.forEach((t=>{const i=e(t.colId);Pm(o,i),C(i,t,null,null,!0)})),o.forEach(x)};return E((e=>r?.getColumn(e)??null),w,r?.getColumns()?.slice()),E((e=>a?.getColumn(e)??null),b,a?.getColumns()?.slice()),function(e,t,o){if(!e.applyOrder||!e.state)return;const i=[];e.state.forEach((e=>{null!=e.colId&&i.push(e.colId)})),function(e,t,o,i){if(null==e)return;let s=[];const n={};t.forEach((t=>{if(n[t])return;const o=e.map[t];o&&(s.push(o),n[t]=!0)}));let r=0;e.list.forEach((e=>{const t=e.getColId();null==n[t]&&(t.startsWith("ag-Grid-AutoColumn")?s.splice(r++,0,e):s.push(e))})),s=$m(s,i),jm(s,o.getColTree())?e.list=s:xg(39)}(t.cols,i,t,o)}(t,i,g),d.refresh(o),p.dispatchEvent({type:"columnEverythingChanged",source:o}),u(),{unmatchedAndAutoStates:y,unmatchedCount:S}};l?.start();let{unmatchedAndAutoStates:w,unmatchedCount:b}=v(t.state||[],m,(e=>i.getColDefCol(e)));return(w.length>0||op(t.defaultState))&&(b=v(w,c?.getPivotResultCols()?.list??[],(e=>c?.getPivotResultCol(e)??null)).unmatchedCount),l?.finish(),0===b}function Jm(e,t){const{rowGroupColsSvc:o,pivotColsSvc:i,valueColsSvc:s,colModel:n,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:o?.columns.slice()??[],pivotColumns:i?.columns.slice()??[],valueColumns:s?.columns.slice()??[]},d=Zm(e),c={};return d.forEach((e=>{c[e.colId]=e})),()=>{const s=(e,o,i,s)=>{if(Em(o.map(s),i.map(s)))return;const n=new Set(o);i.forEach((e=>{n.delete(e)||n.add(e)}));const r=[...n];a.dispatchEvent({type:e,columns:r,column:1===r.length?r[0]:null,source:t})},h=e=>{const t=[];return n.forAllCols((o=>{const i=c[o.getColId()];i&&e(i,o)&&t.push(o)})),t},u=e=>e.getColId();s("columnRowGroupChanged",l.rowGroupColumns,o?.columns??[],u),s("columnPivotChanged",l.pivotColumns,i?.columns??[],u);const p=h(((e,t)=>{const o=null!=e.aggFunc,i=o!=t.isValueActive(),s=o&&e.aggFunc!=t.getAggFunc();return i||s}));p.length>0&&function(e,t,o,i){e.dispatchEvent({type:t,columns:o,column:o&&1==o.length?o[0]:null,source:i})}(a,"columnValueChanged",p,t),Ym(a,h(((e,t)=>e.width!=t.getActualWidth())),!0,t),qm(a,h(((e,t)=>e.pinned!=t.getPinned())),t),function(e,t,o){if(!t.length)return;const i=1===t.length?t[0]:null,s=Km(t,(e=>e.isVisible()));e.dispatchEvent({type:"columnVisible",visible:s,columns:t,column:i,source:o})}(a,h(((e,t)=>e.hide==t.isVisible())),t);const g=h(((e,t)=>e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()));g.length>0&&r?.dispatchSortChangedEvents(t,g),function(e,t,o,i,s){const n={};t.forEach((e=>n[e.colId]=e));const r={};e.forEach((e=>{n[e.colId]&&(r[e.colId]=!0)}));const a=e.filter((e=>r[e.colId])),l=t.filter((e=>r[e.colId])),d=[];l.forEach(((e,t)=>{const o=a&&a[t];if(o&&o.colId!==e.colId){const e=i.getCol(o.colId);e&&d.push(e)}})),d.length&&s.dispatchEvent({type:"columnMoved",columns:d,column:1===d.length?d[0]:null,finished:!0,source:o})}(d,Zm(e),t,n,a)}}function Zm(e){const{colModel:t,rowGroupColsSvc:o,pivotColsSvc:i}=e;if(ip(t.getColDefCols())||!t.isAlive())return[];const s=o?.columns,n=i?.columns,r=[];t.forAllCols((e=>(e=>{const t=e.isRowGroupActive()&&s?s.indexOf(e):null,o=e.isPivotActive()&&n?n.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null,a=null!=e.getSort()?e.getSort():null,l=null!=e.getSortIndex()?e.getSortIndex():null;r.push({colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:a,sortIndex:l,aggFunc:i,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:o,flex:e.getFlex()??null})})(e)));const a=new Map(t.getCols().map(((e,t)=>[e.getColId(),t])));return r.sort(((e,t)=>(a.has(e.colId)?a.get(e.colId):-1)-(a.has(t.colId)?a.get(t.colId):-1))),r}function Xm(e){const t=(e,t)=>null!=e?e:null!=t?t:null,o=e.getColDef(),i=t(o.sort,o.initialSort),s=t(o.sortIndex,o.initialSortIndex),n=t(o.hide,o.initialHide),r=t(o.pinned,o.initialPinned),a=t(o.width,o.initialWidth),l=t(o.flex,o.initialFlex);let d=t(o.rowGroupIndex,o.initialRowGroupIndex),c=t(o.rowGroup,o.initialRowGroup);null!=d||null!=c&&0!=c||(d=null,c=null);let h=t(o.pivotIndex,o.initialPivotIndex),u=t(o.pivot,o.initialPivot);null!=h||null!=u&&0!=u||(h=null,u=null);const p=t(o.aggFunc,o.initialAggFunc);return{colId:e.getColId(),sort:i,sortIndex:s,hide:n,pinned:r,width:a,flex:l,rowGroup:c,rowGroupIndex:d,pivot:u,pivotIndex:h,aggFunc:p}}function ef(e,t,o){return o&&e.addDestroyFunc((()=>t.destroyBean(o))),o??e}function tf(e){return"object"==typeof e&&!!e.component}function of(e,t,o,i){const{name:s}=o;let n,r,a,l,d,c;if(t){const o=t,h=o[s+"Selector"],u=h?h(i):null,p=t=>{"string"==typeof t?n=t:null!=t&&!0!==t&&(e.isFrameworkComponent(t)?a=t:r=t)};u?(p(u.component),l=u.params,d=u.popup,c=u.popupPosition):p(o[s])}return{compName:n,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:d,popupPositionFromSelector:c}}function sf(e,t,o){return e.getCompDetails(t,Tt,void 0,o)}function nf(e,t,o){return e.getCompDetails(t,Mt,"agSkeletonCellRenderer",o,!0)}function rf(e,t,o){return e.getCompDetails(t,kt,"agCellEditor",o,!0)}function af(e,t){return of(e,t,Bt)}function lf(e,t,o){return e.mergeParams(t,Bt,o)}function df(e){const t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}function cf(e){_t||(_t=e.version);const t=e=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${e} Please update all modules to the same version.`;if(e.version?function(e){const[t,o]=e.version.split(".")||[],[i,s]=_t.split(".")||[];return t===i&&o===s}(e)||mg(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${_t}.`)):mg(t(`'${e.moduleName}' is incompatible.`)),e.validate){const t=e.validate();t.isValid||mg(`${t.message}`)}}function hf(e,t,o=!1){o||($t=!0),cf(e);const i=e.rowModels??["all"];let s;zt.add(e),void 0!==t?(jt=!0,void 0===Ut[t]&&(Ut[t]={}),s=Ut[t]):s=Wt,i.forEach((t=>{void 0===s[t]&&(s[t]={}),s[t][e.moduleName]=e})),e.dependsOn&&e.dependsOn.forEach((e=>hf(e,t,o)))}function uf(e,t,o){const i=o=>!!Wt[o]?.[e]||!!Ut[t]?.[o]?.[e];return i(o)||i("all")}function pf(){return jt}function gf(e,t){const o=e.column===t.column,i=e.rowPinned===t.rowPinned,s=e.rowIndex===t.rowIndex;return o&&i&&s}function mf(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 ff(e,t){const o=e.spannedRowRenderer?.getCellByPosition(t);if(o)return o;const i=e.rowRenderer.getRowByPosition(t);return i?i.getCellCtrl(t.column):null}function Cf(e,t){const{rowIndex:o,rowPinned:i}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;return 0===o?"top"===i?null:"bottom"===i&&r.isRowsToRender()?{rowIndex:s.getLastRow(),rowPinned:null}:n?.isRowsToRender("top")?{rowIndex:n.getPinnedTopRowCount()-1,rowPinned:"top"}:null:wf(e,i?void 0:r.getRow(o),!0)??{rowIndex:o-1,rowPinned:i}}function vf(e,t){const{rowIndex:o,rowPinned:i}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;return function(e,t){const{rowPinned:o,rowIndex:i}=t,{pinnedRowModel:s,pageBounds:n}=e;return"top"===o?(s?.getPinnedTopRowCount()??0)-1<=i:"bottom"===o?(s?.getPinnedBottomRowCount()??0)-1<=i:n.getLastRow()<=i}(e,t)?"bottom"===i?null:"top"===i&&r.isRowsToRender()?{rowIndex:s.getFirstRow(),rowPinned:null}:n?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null:wf(e,i?void 0:r.getRow(o))??{rowIndex:o+1,rowPinned:i}}function wf(e,t,o=!1){const{gos:i,rowRenderer:s}=e;if(!t?.sticky||!qg(i))return;const n=s.getStickyTopRowCtrls(),r=s.getStickyBottomRowCtrls(),a=!r.some((e=>e.rowNode.rowIndex===t.rowIndex)),l=a?n:r,d=(o?-1:1)*(a?-1:1);let c;for(let h=0;h<l.length;h++)if(l[h].rowNode.rowIndex===t.rowIndex){c=l[h+d];break}return c?{rowIndex:c.rowNode.rowIndex,rowPinned:null}:void 0}function bf(e,t={}){const{rowIndex:o,rowId:i,rowCtrl:s,rowPinned:n}=t;if(s)return s;const{rowModel:r,rowRenderer:a}=e;let{rowNode:l}=t;return l||(i?l=function(e,t,o){const{rowModel:i,pinnedRowModel:s}=e;let n;return n??(n=i?.getRowNode(t)),o?n??(n=s?.getPinnedRowById(t,o)):(n??(n=s?.getPinnedRowById(t,"top")),n??(n=s?.getPinnedRowById(t,"bottom"))),n}(e,i,n):null!=o&&(l=r.getRow(o))),a.getRowCtrls(l?[l]:[])?.[0]}function yf(e,t={}){const{cellCtrl:o,colId:i,columnId:s,column:n}=t;if(o)return o;const r=e.colModel.getCol(i??s??Rf(n)),a=t.rowCtrl??bf(e,t),l=a?.getCellCtrl(r)??void 0;if(l)return l;const d=t.rowNode??a?.rowNode;return d?e.rowRenderer.getCellCtrls([d],[r])?.[0]:void 0}function Sf(e){const{editSvc:t}=e;t?.isBatchEditing()?If(e):t?.stopEditing(void 0,{source:"api"})}function Rf(e){if(e)return"string"==typeof e?e:e.getColId()}function Ff(e,t={}){const o=[],i=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns);for(const s of i){const e=s.comp?.getCellEditor();e&&o.push({ctrl:s,editor:df(e)})}return o}function xf({pendingValue:e,sourceValue:t}){return e===eo&&(e=t),e!==t}function Ef(e,t,o){const{key:i,event:s,cellStartedEdit:n,silent:r}=o??{},a=yf(e,t),l=a?.comp?.getCellEditor(),d=Pf(e,t,i,n),c=e.editModelSvc?.getEdit(t);let h=1===i?.length?i:d.value;if(void 0===h&&(h=c?.sourceValue),e.editModelSvc?.setEdit(t,{editorValue:h,state:"editing"}),l)return void l.refresh?.(d);const u=t.column.getColDef(),p=rf(e.userCompFactory,u,d),g=null!=p?.popupFromSelector?p.popupFromSelector:!!u.cellEditorPopup,m=null!=p?.popupPositionFromSelector?p.popupPositionFromSelector:u.cellEditorPopupPosition;Mf(p.params,s),a&&(a.editCompDetails=p,a.comp?.setEditDetails(p,g,m,e.gos.get("reactiveCustomComponents")),a?.rowCtrl?.refreshRow({suppressFlash:!0}),r||e.editSvc?.dispatchCellEvent(t,s,"cellEditingStarted"))}function Df(e){return(e.getValidationErrors?.()?.length??0)>0?{editorValueExists:!1}:{editorValue:e.getValue(),editorValueExists:!0}}function Pf(e,t,o,i){const{valueSvc:s,gos:n,editSvc:r}=e,a=yf(e,t),l=t.rowNode?.rowIndex??void 0,d=r?.isBatchEditing(),c=e.colModel.getCol(t.column.getId()),{rowNode:h,column:u}=t,p=a.comp?.getCellEditor(),g=r?.getCellDataValue(t,!1)??(p?Df(p)?.editorValue:void 0);return gm(n,{value:g===eo?s.getValueForDisplay(c,h)?.value:g,eventKey:o??null,column:u,colDef:u.getColDef(),rowIndex:l,node:h,data:h.data,cellStartedEdit:i??!1,onKeyDown:a?.onKeyDown.bind(a),stopEditing:o=>{r.stopEditing(t,{source:d?"ui":"api",suppressNavigateAfterEdit:o}),Lf(e,t)},eGridCell:a?.eGui,parseValue:e=>s.parseValue(c,h,e,a?.value),formatValue:a?.formatValue.bind(a),validate:()=>{r?.validateEdit()}})}function Tf(e,t){const{editModelSvc:o}=e;o?.getEditMap().forEach(((e,i)=>{e.forEach(((e,s)=>{(t||"editing"!==e.state&&e.pendingValue!==eo)&&(xf(e)||"editing"===e.state&&!t||o?.removeEdits({rowNode:i,column:s}))}))}))}function Mf(e,t){return t instanceof KeyboardEvent&&"agNumberCellEditor"===e.column.getColDef().cellEditor?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function kf(e,t){e.editModelSvc?.getEditPositions().forEach((o=>{const i=yf(e,o);if(!i)return;const s=i.comp.getCellEditor();if(!s)return;const{editorValue:n,editorValueExists:r}=Df(s);Af(e,o,t,n,0,!r)}))}function Af(e,t,o,i,s,n){const{editModelSvc:r,valueSvc:a}=e;if(!r)return;const{rowNode:l,column:d}=t;if(!l||!d)return;const c=!!yf(e,t)?.comp?.getCellEditor();let h=r.getEdit(t,!0);h?.sourceValue||(h=r.setEdit(t,{sourceValue:a.getValue(d,l,void 0,"api"),pendingValue:eo,state:c?"editing":"changed"})),r.setEdit(t,{editorValue:n?h.sourceValue:i,state:c?"editing":"changed"}),o&&function(e,t){const{editModelSvc:o}=e,i=o?.getEdit(t,!0);o?.setEdit(t,{pendingValue:i?.editorValue})}(e,t)}function If(e,t,o){t||(t=e.editModelSvc?.getEditPositions()),t.forEach((t=>Lf(e,t,o)))}function Lf(e,t,o){const{editSvc:i,editModelSvc:s}=e,{rowNode:n,column:r}=t,a=yf(e,t);if(!a)return void(s?.hasEdits(t)&&n&&r&&s?.setEdit(t,{state:"changed"}));const{comp:l}=a;if(l&&!l.getCellEditor())return;const d=l?.getCellEditor()?.getValidationErrors?.(),c=s?.getCellValidationModel();d?.length?c?.setCellValidation(t,{errorMessages:d}):c?.clearCellValidation(t),s?.getEdit(t)&&s?.setEdit(t,{state:"changed"}),l?.setEditDetails(),l?.refreshEditStyles(!1,!1),a?.refreshCell({force:!0,suppressFlash:!0});const h=s?.getEdit(t);"changed"!==h?.state||o?.silent||i?.dispatchCellEvent(t,o?.event,"cellEditingStopped",{valueChanged:xf(h),newValue:h?.pendingValue,oldValue:h?.sourceValue})}function Bf(e){const t=Ff(e),o=new Zt,{ariaAnnounce:i,localeSvc:s,editModelSvc:n,gos:r}=e,a="fullRow"===r.get("editType"),l=ep(s)("ariaValidationErrorPrefix","Cell Editor Validation");for(const c of t){const{ctrl:e,editor:t}=c,{rowNode:s,column:n}=e,r=t.getValidationErrors?.()??[],a=t.getValidationElement?.(!1)||!t.isPopup?.()&&e.eGui;if(a){const e=null!=r&&r.length>0,t=e?r.join(". "):"";cp(a,"invalid",e),e&&i.announceValue(`${l} ${r}`,"editorValidation"),a instanceof HTMLInputElement?a.setCustomValidity(t):a.classList.toggle("invalid",e)}r?.length>0&&o.setCellValidation({rowNode:s,column:n},{errorMessages:r})}kf(e,!1),n?.setCellValidationModel(o);const d=new Set;for(const{ctrl:c}of t)d.add(c.rowCtrl);if(a){const t=oo(e);n?.setRowValidationModel(t)}for(const c of d.values()){c.rowEditStyleFeature?.applyRowStyles();for(const e of c.getAllCellCtrls())e.tooltipFeature?.refreshTooltip(!0),e.editorTooltipFeature?.refreshTooltip(!0),e.editStyleFeature?.applyCellStyles?.()}}function Gf(e,t,o,i){return ip(e)?[]:function(e,t,o,i,s){if(ip(e))return[];let n;return n="function"==typeof e?e(function(e,t,o,i){return gm(t,{colDef:e,column:o,columnGroup:i})}(t,o,i,s)):e,"string"==typeof n?[n]:Array.isArray(n)?[...n]:[]}(e.headerClass,e,t,o,i)}function Of(e,t,o){e.toggleCss(io,o.isColAtEdge(t,"first")),e.toggleCss(so,o.isColAtEdge(t,"last"))}function Hf(e){return!(!e.rowPinned||!e.pinnedSibling)}function Vf(e,t,o,i){const s="top"===t;if(!o)return Vf(e,t,s?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),i);if(!i){const i=s?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return Vf(e,t,o,s?e.getPinnedTopRow(i-1):e.getPinnedBottomRow(i-1))}let n=!1,r=!1;const a=[];return e.forEachPinnedRow(t,(e=>e!==o||n?n&&e===i?(r=!0,void a.push(e)):void(n&&!r&&a.push(e)):(n=!0,void a.push(e)))),a}function Nf(e){const t=ro,o="keydown"===e.type;o&&(e.ctrlKey||e.metaKey||e.altKey)||t!==o&&(ro=o)}function zf(e){const t=Ng(e);var o;return o=t,ao>0||(o.addEventListener("keydown",Nf),o.addEventListener("mousedown",Nf)),ao++,()=>{ao--,function(e){ao>0||(e.removeEventListener("keydown",Nf),e.removeEventListener("mousedown",Nf))}(t)}}function Wf(e,t,o=!1){const i=Ge;let s=Oe;t&&(s+=", "+t),o&&(s+=', [tabindex="-1"]');const n=Array.prototype.slice.apply(e.querySelectorAll(i)).filter((e=>qp(e))),r=Array.prototype.slice.apply(e.querySelectorAll(s));return r.length?(a=r,n.filter((e=>-1===a.indexOf(e)))):n;var a}function Uf(e,t=!1,o=!1,i=!1){const s=Wf(e,i?".ag-tab-guard":null,o),n=t?xm(s):s[0];return!!n&&(n.focus({preventScroll:!0}),!0)}function _f(e,t,o,i){const s=Wf(t,o?':not([tabindex="-1"])':null),n=Ug(e);let r;r=o?s.findIndex((e=>e.contains(n))):s.indexOf(n);const a=r+(i?-1:1);return a<0||a>=s.length?null:s[a]}function $f(e,t=5){let o=0;for(;e&&null===Mp(e)&&++o<=t;)e=e.parentElement;return null===Mp(e)?null:e}function jf(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.isExclusive()}function Kf(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.isExclusive()}function qf(e,t,o=!1){const i=e.ctrlsSvc.get("gridCtrl");return!(o||!i.focusNextInnerContainer(t))||((o||!t&&!i.isDetailGrid())&&i.forceFocusOutOfContainer(t),!1)}function Yf(e,t,o){if(0===o)return!1;const i=Math.abs(e.clientX-t.clientX),s=Math.abs(e.clientY-t.clientY);return Math.max(i,s)<=o}function Qf({gos:e},t){return 2===t.button||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}function Jf(e,t){return Cm(e,t,uo)}function Zf(e,t){t[mo]=e.gridInstanceId}function Xf(e,t){return eC(e,t.target)}function eC(e,t){let o=t;for(;o;){const t=o[mo];if(op(t))return t===e.gridInstanceId;o=o.parentElement}return!1}function tC(e,t){return e+"_"+t}function oC(e){return e instanceof vo}function iC(e,t,o){return gm(t,{type:o,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}function sC(e,t){const o=e.filterUi;if(!o)return null;if(o.created)return o.promise;if(t)return null;const i=o.create(o.refreshed),s=o;return s.created=!0,s.promise=i,i}function nC(e,t,o,i,s){e?.refresh?.({...t,model:o,state:i,source:s})}function rC(e,t,o){const i=e();i?.created&&i.promise.then((e=>{const s=t();nC(e,i.filterParams,s,o()??{model:s},"ui")}))}function aC(e,t,o,i,s,n){let r,a,l=!1;switch(e){case"apply":{const e=i();a=e?.model??null,r={state:e?.state,model:a},l=!0;break}case"clear":r={model:null};break;case"reset":r={model:null},l=!0,a=null;break;case"cancel":r={model:o()}}s(r),l?n(a):rC(t,o,i)}function lC(e,t){return e[t]??null}function dC(e,t,o){return function(e,t,o,i){const s=t[o];return e.getLocaleTextFunc()(o,"function"==typeof s?s(i):s,i)}(e,xo,t,o)}function cC(e,t){const{debounceMs:o}=e;return hC(e)?(null!=o&&xg(71),0):o??t}function hC(e){return(e.buttons?.indexOf("apply")??-1)>=0}function uC(e,t){return e.toString().padStart(t,"0")}function pC(e,t=!0,o="-"){if(!e)return null;let i=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((e=>uC(e,2))).join(o);return t&&(i+=To+[e.getHours(),e.getMinutes(),e.getSeconds()].map((e=>uC(e,2))).join(":")),i}function gC(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),uC(e.getDate(),2),uC(e.getHours(),2),`:${uC(e.getMinutes(),2)}`,`:${uC(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,uC(e.getDate(),2)].map(String):null}function mC(e,t){if(null==t)return pC(e,!1);const o=uC(e.getFullYear(),4),i=["January","February","March","April","May","June","July","August","September","October","November","December"],s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n={YYYY:()=>o.slice(o.length-4,o.length),YY:()=>o.slice(o.length-2,o.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>i[e.getMonth()],MMM:()=>i[e.getMonth()].slice(0,3),MM:()=>uC(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${ko(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${ko(e.getDate())}`,DD:()=>uC(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>s[e.getDay()],ddd:()=>s[e.getDay()].slice(0,3),dd:()=>s[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${ko(e.getDay())}`,d:()=>`${e.getDay()}`},r=new RegExp(Object.keys(n).join("|"),"g");return t.replace(r,(e=>e in n?n[e]():e))}function fC(e,t=!1){return!!CC(e,t)}function CC(e,t=!1){if(!e)return null;if(!Mo.test(e))return null;const[o,i]=e.split(To);if(!o)return null;const s=o.split("-").map((e=>parseInt(e,10)));if(3!==s.filter((e=>!isNaN(e))).length)return null;const[n,r,a]=s,l=new Date(n,r-1,a);if(l.getFullYear()!==n||l.getMonth()!==r-1||l.getDate()!==a)return null;if(!i&&t)return null;if(!i||"00:00:00"===i)return l;const[d,c,h]=i.split(":").map((e=>parseInt(e,10)));if(d>=0&&d<24)l.setHours(d);else if(t)return null;if(c>=0&&c<60)l.setMinutes(c);else if(t)return null;if(h>=0&&h<60)l.setSeconds(h);else if(t)return null;return l}function vC(e,t){return null==e?-1:null==t?1:parseFloat(e)-parseFloat(t)}function wC(e){return e instanceof Date&&!isNaN(e.getTime())}function bC(e,t,o,i,s,n){if(null==o&&null==t)return;const r={},a={},l=(e,t)=>{e.split(" ").forEach((e=>{""!=e.trim()&&t(e)}))};if(o){const t=Object.keys(o);for(let s=0;s<t.length;s++){const n=t[s],d=o[n];let c;"string"==typeof d?c=!e||e.evaluate(d,i):"function"==typeof d&&(c=d(i)),l(n,(e=>{c?r[e]=!0:a[e]=!0}))}}t&&n&&Object.keys(t).forEach((e=>l(e,(e=>{r[e]||(a[e]=!0)})))),n&&Object.keys(a).forEach(n),Object.keys(r).forEach(s)}function yC(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}function SC(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key?.length}function RC(e,t,o,i,s){const n=i?i.getColDef().suppressKeyboardEvent:void 0;if(!n)return!1;const r=gm(e,{event:t,editing:s,column:i,node:o,data:o.data,colDef:i.getColDef()});return!(!n||!n(r))}function FC(e){return`ag-${DC(e).name}-viewport`}function xC(e){const t=DC(e);return t.container??`ag-${t.name}-container`}function EC(e){return`ag-${DC(e).name}-spanned-cells-container`}function DC(e){return Ci[e]}function PC(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function TC(e){const t=[],o=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const i of o){if(!i)continue;const o=i.getGroupRowCount()||0;for(let s=0;s<o;s++){const o=i.getGroupRowCtrlAtIndex(s),n=t[s];if(o){const i=MC(e,o);(null==n||i>n)&&(t[s]=i)}}}return t}function MC(e,t){let o=e.colModel.isPivotMode()?function(e){return e.gos.get("pivotGroupHeaderHeight")??LC(e)}(e):LC(e);const i=t.getHeaderCellCtrls();for(const s of i){const{column:e}=s,t=e.getAutoHeaderHeight();null!=t&&t>o&&e.isAutoHeaderHeight()&&(o=t)}return o}function kC(e){let t=e.colModel.isPivotMode()?function(e){return e.gos.get("pivotHeaderHeight")??AC(e)}(e):AC(e);return e.colModel.forAllCols((e=>{const o=e.getAutoHeaderHeight();null!=o&&o>t&&e.isAutoHeaderHeight()&&(t=o)})),t}function AC(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function IC(e){return e.gos.get("floatingFiltersHeight")??AC(e)}function LC(e){return e.gos.get("groupHeaderHeight")??AC(e)}function BC(e){return"function"==typeof e?.getAnchorElementForMenu&&"function"==typeof e.onMenuKeyboardShortcut}function GC(e,t,o){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",o))}function OC(e){const{enterpriseMenuFactory:t,filterMenuFactory:o,gos:i}=e;return t&&pm(i)?t:o}function HC(e,t,o){let i=null;"smallDown"===e?xg(262):"smallLeft"===e?xg(263):"smallRight"===e&&xg(264);const s=o&&o.getColDef().icons;if(s&&(i=s[e]),t.gos&&!i){const o=t.gos.get("icons");o&&(i=o[e])}if(i){let t;if("function"==typeof i)t=i();else{if("string"!=typeof i)return void xg(38,{iconName:e});t=i}return"string"==typeof t?Yp(t):rg(t)?t:void xg(133,{iconName:e})}{const o=t.registry.getIcon(e);return o||t.validation?.validateIcon(e),hg({tag:"span",cls:`ag-icon ag-icon-${o??e}`,role:"presentation",attrs:{unselectable:"on"}})}}function VC(e){if(-1===e.level)return!0;const t=e.parent;return!!t?.childrenAfterSort?.some((t=>t==e))&&VC(t)}function NC(e,t){const{gos:o,rowModel:i,filterManager:s}=e;return kg(o)?!i.getRowNode(t.id):s?.isAnyFilterPresent()?!VC(t):!!o.get("pivotMode")&&!t.group}function zC(e){return!!e.pinnedSibling&&function(e){return!!e.footer&&-1===e.level}(e.pinnedSibling)}function WC(e,t,o){if(t.pinnedSibling)return t.pinnedSibling;const i=function(e,t){const o=new bo(t);return Object.keys(e).forEach((t=>{yo.has(t)||(o[t]=e[t])})),o.oldRowTop=null,o}(t,e);return i.setRowTop(null),i.setRowIndex(null),i.rowPinned=o,i.id=`${"top"===o?"t-":"b-"}${o}-${t.id}`,i.pinnedSibling=t,t.pinnedSibling=i,i}function UC(e){if(!e.pinnedSibling)return;e.rowPinned=null,e.setRowTop(null),e.setRowIndex(null);const t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function _C(e){const t=new Set;e.forEach((e=>{e.group&&t.add(e)})),t.forEach((t=>e.delete(t)))}function $C(e){const t=e.size();if(0===t)return 0;const o=e.getByIndex(t-1);return void 0===o?0:o.rowTop+o.rowHeight}function jC(e){const t=QC(e);if(0===t)return 0;const o=qC(e,t-1);return void 0===o?0:o.rowTop+o.rowHeight}function KC(e,t){return e.cache[t]}function qC(e,t){return KC(e,e.order[t])}function YC(e,t){e.order.forEach(((o,i)=>{const s=KC(e,o);s&&t(s,i)}))}function QC(e){return e.order.length}function JC({gos:e,selectionColSvc:t},o){const i=e.get("rowSelection"),s=o.getColDef(),{headerCheckboxSelection:n}=s;let r=!1;if("object"==typeof i){const e=Lm(o),s=Im(o);("autoGroupColumn"===om(i)&&s||e&&t?.isSelectionColumnEnabled())&&(r=tm(i))}else r="function"==typeof n?n(gm(e,{column:o,colDef:s})):!!n;return r}function ZC(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}function XC(e,t){return((e.beanName?$s[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER)-((t.beanName?$s[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER)}function ev(e,t){return"gridDestroySvc"===e?.beanName?-1:"gridDestroySvc"===t?.beanName?1:0}function tv(e,t){return t.map((t=>{const o=`e${t[0].toUpperCase()+t.substring(1)}RowContainer`;return e[o]={name:t},{tag:"ag-row-container",ref:o,attrs:{name:t}}}))}function ov(e){return e.context.getGridId()}function iv(e){e.gridDestroySvc.destroy()}function sv(e){return e.gridDestroySvc.destroyCalled}function nv(e,t){return e.gos.get(t)}function rv(e,t,o){av(e,{[t]:o})}function av(e,t){e.gos.updateGridOptions({options:t})}function lv(e,t){const o=t.replace(/Module$/,"");return e.gos.isModuleRegistered(o)}function dv(e,t,o){e.colMoves?.moveColumnByIndex(t,o,"api")}function cv(e,t,o){e.colMoves?.moveColumns(t,o,"api")}function hv(e){const{isFromHeader:t,fromLeft:o,xPosition:i,fromEnter:s,fakeEvent:n,pinned:r,gos:a,colModel:l,colMoves:d,visibleCols:c}=e;let{allMovingColumns:h}=e;t&&(h=function(e){const t=[...e];return e.forEach((e=>{let o=null,i=e.getParent();for(;null!=i&&1===i.getDisplayedLeafColumns().length;)o=i,i=i.getParent();null!=o&&(o.getColGroupDef()?.marryChildren?o.getProvidedColumnGroup().getLeafColumns():o.getLeafColumns()).forEach((e=>{t.includes(e)||t.push(e)}))})),t}(h));const u=h.slice();var p,g;p=l.getCols(),!(g=u)||g.length<=1||g.filter((e=>p.indexOf(e)<0)).length>0||g.sort(((e,t)=>p.indexOf(e)-p.indexOf(t)));const m=function(e){const{movingCols:t,draggingRight:o,xPosition:i,pinned:s,gos:n,colModel:r,visibleCols:a}=e;if(n.get("suppressMovableColumns")||t.some((e=>e.getColDef().suppressMovable)))return[];const l=function(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}(a,s),d=r.getCols(),c=l.filter((e=>t.includes(e))),h=l.filter((e=>!t.includes(e))),u=d.filter((e=>!t.includes(e)));let p,g=0,m=i;if(o){let e=0;c.forEach((t=>e+=t.getActualWidth())),m-=e}if(m>0){for(let e=0;e<h.length&&(m-=h[e].getActualWidth(),!(m<0));e++)g++;o&&g++}if(g>0){const e=h[g-1];p=u.indexOf(e)+1}else p=u.indexOf(h[0]),-1===p&&(p=0);const f=[p],C=(e,t)=>e-t;if(o){let e=p+1;const t=d.length-1;for(;e<=t;)f.push(e),e++;f.sort(C)}else{let e=p;const t=d.